/* ======================================================
   VARIABLES GLOBALES
====================================================== */
:root {
    --vert: #2e5c2e;
    --jaune: #fce17c;
    --gris-clair: #f5f5f5;
    --texte: #2b2b2b;
}

/* ======================================================
   BASE GÉNÉRALE (TOUTES LES PAGES)
====================================================== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: var(--gris-clair);
    color: var(--texte);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h2, h3 {
    color: var(--vert);
}

a {
    color: var(--jaune);
    text-decoration: none;
}

/* ======================================================
   HEADER (TOUTES LES PAGES)
====================================================== */
.site-header {
    background: var(--vert);
    padding: 35px 0 25px;
    text-align: center;
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.2);
}

/* Logo */
.header-logo img {
    height: 200px;
    max-width: 100%;
    margin-bottom: 20px;
}

/* Navigation sous forme de boutons */
.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-btn {
    color: var(--jaune);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(252, 225, 124, 0.08);
    border: 1px solid rgba(252, 225, 124, 0.25);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.2),
        inset 0 -1px 2px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--jaune);
    color: var(--vert);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* ======================================================
   PAGE ACCUEIL (index.html)
====================================================== */
.hero {
    padding: 90px 20px;
    text-align: center;
    background: linear-gradient(
        rgba(114, 138, 114, 0.95),
        rgba(30, 60, 30, 0.95)
    );
    color: white;
    border-radius: 0 0 40px 40px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
}

.highlight {
    color: var(--jaune);
    font-weight: 700;
}

/* Boutons CTA accueil */
.btn {
    background: var(--jaune);
    color: var(--vert);
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    margin: 30px 20px;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #f9d94a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* ======================================================
   PAGE PROPRIÉTAIRES (proprietaires.html)
====================================================== */

/* SECTION INTRO */
.intro-section {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.intro-section h2 {
    color: #2e5c2e;
    margin-bottom: 15px;
}

.intro-section p {
    margin-bottom: 30px;
    color: #444;
    line-height: 1.6;
}

/* TITRES AVANT CARTES / AVIS */
.cards-title {
    text-align: center;
    margin: 80px 0 40px;
    color: #2e5c2e;
    position: relative;
}

/* Ligne jaune élégante */
.cards-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #fce17c;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* AVIS PROPRIÉTAIRES */
.avis-section {
    max-width: 900px;
    margin: 0 auto 80px;
}

.avis-box {
    background: linear-gradient(
        rgba(114, 138, 114, 0.95),
        rgba(30, 60, 30, 0.95)
    );
    color: white;
    padding: 50px;
    border-radius: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: center;
}

/* Texte en italique */
.avis-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Auteur */
.avis-author {
    display: block;
    font-weight: 600;
    color: #fce17c;
}

/* CTA CENTRÉ */
.cta-center {
    text-align: center;
    margin-bottom: 80px;
}


/* ======================================================
   PAGE APPARTEMENTS (appartements.html)
====================================================== */
.appartement-card {
    background: white;
    padding: 25px;
    border-radius: 18px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ======================================================
   PAGE CONTACT
====================================================== */

/* Section principale */
.contact-section {
    max-width: 700px;
    margin: 80px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* Titre */
.contact-section h2 {
    text-align: center;
    color: #2e5c2e;
    margin-bottom: 10px;
    font-size: 2rem;
}

/* Texte d’introduction */
.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    color: #444;
    font-size: 1.05rem;
}

/* formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Groupes */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.form-group label {
    font-weight: 600;
    color: #2e5c2e;
}

/* Champs */
.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

/* Focus */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e5c2e;
}

/* Textarea extensible */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* RGPD */
.rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #444;
}

.rgpd input[type="checkbox"] {
    margin-top: 4px;
}

/* bouton */
.contact-form .btn {
    align-self: center;
    margin-top: 20px;
    padding: 14px 40px;
}

/* ======================================================
   RESPONSIVE (TOUTES LES PAGES)
====================================================== */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .header-logo img {
        height: 90px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* ======================================================
   RESPONSIVE – MOBILE & TABLETTE
====================================================== */

@media (max-width: 768px) {

    /* Conteneurs */
    .container {
        padding: 0 16px;
    }

    /* Header */
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
    }

    .header-logo img {
        max-width: 180px;
        height: auto;
    }

    .header-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Boutons menu */
    .header-nav .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding: 60px 20px;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Cards (propriétaires / services) */
    .cards {
        flex-direction: column;
        gap: 25px;
    }

    .card {
        width: 100%;
    }

    /* CONTACT */
    .contact-section {
        margin: 40px auto;
        padding: 30px 20px;
        border-radius: 25px;
    }

    .contact-section h2 {
        font-size: 1.7rem;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Champs formulaire */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* IMPORTANT pour iOS (évite le zoom auto) */
        padding: 14px;
    }

    /* RGPD */
    .rgpd {
        font-size: 0.85rem;
        gap: 8px;
    }

    /* Bouton */
    .contact-form .btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 1rem;
    }
}
