/* =========================
   BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    font-weight: 700;
    color: #ff5864;
}

.header nav a {
    margin-left: 20px;
    font-weight: 500;
}

/* =========================
   HERO
========================= */

.hero {
    height: 100vh;
    background: url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-buttons {
    margin-top: 20px;
}

.btn {
    padding: 12px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn.primary {
    background: #ff5864;
    color: white;
}

.btn.secondary {
    background: white;
    color: #ff5864;
}

.btn:hover {
    transform: scale(1.05);
}

/* =========================
   INTRO
========================= */

.intro-swipe {
    padding: 60px 20px;
    text-align: center;
}

/* =========================
   CARD (style Tinder)
========================= */

.profile-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.card {
    width: 350px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.location {
    color: #777;
    margin-bottom: 10px;
}

.tags span {
    display: inline-block;
    background: #f3f3f3;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 3px;
}

.compatibility {
    margin-top: 10px;
    font-weight: bold;
    color: #ff5864;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-like {
    background: #ff5864;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50px;
    flex: 1;
    margin-right: 10px;
}

.btn-pass {
    background: #eee;
    border: none;
    padding: 10px;
    border-radius: 50px;
    flex: 1;
}

/* =========================
   MATCH MESSAGE
========================= */

.match-message {
    position: absolute;
    top: 20px;
    background: #ff5864;
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    animation: pop 0.5s ease;
}

.hidden {
    display: none;
}

@keyframes pop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =========================
   MATCH SECTION
========================= */

.match-section {
    padding: 80px 20px;
    text-align: center;
}

.reasons{
    max-width:1200px;
    margin:50px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.reason-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================
   GALLERY
========================= */

.gallery{
    max-width:1200px;
    margin:40px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.gallery img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
    transition:.3s;
}

.gallery img:hover{
    transform:scale(1.04);
}

/* =========================
   SERVICES
========================= */

.services{
    max-width:1000px;
    margin:40px auto;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

.service{
    background:white;
    padding:15px 25px;
    border-radius:30px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.service:hover{
    transform:translateY(-5px);
}

/* =========================
   LOTISSEMENT
========================= */

.lotissement-section {
    padding: 80px 20px;
    text-align: center;
}

.lotissement-card {
    background: white;
    max-width: 500px;
    margin: auto;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.highlight {
    margin-top: 20px;
    font-weight: bold;
    color: #ff5864;
}

/* =========================
   FORM
========================= */

.contact-section {
    padding: 80px 20px;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 10px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.checkbox {
    text-align: left;
    font-size: 14px;
}

/* =========================
   FINAL MATCH
========================= */

.final-match {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #ff5864, #ff7a85);
    color: white;
}

.match-box {
    max-width: 500px;
    margin: auto;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 30px;
    text-align: center;
    background: #111;
    color: white;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.gallery-section,
.services-section,
.transition {
    padding: 80px 20px;
    text-align: center;
}

.gallery-section h2,
.services-section h2,
.transition h2,
.lotissement-section h2,
.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.subtitle,
.note,
.transition p {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.transition-box{
    max-width:700px;
    margin:40px auto;
    padding:50px;
    background:white;
    border-radius:25px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }
}