
:root {
    --lagon: #087e98;
    --turquoise: #24b5b4;
    --corail: #f28c70;
    --vert: #268b6a;
    --sable: #f6f3eb;
    --texte: #19343d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--texte);
    background: white;
    line-height: 1.6;
}

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

header {
    background: white;
    padding: 20px 5%;
    box-shadow: 0 2px 10px #00000012;
}

.logo img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .logo img {
        width: 175px;
    }
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a:hover {
    color: var(--turquoise);
}

.hero {
    padding: 100px 8%;
    color: white;
    background-color: var(--lagon);
    background-image:
        linear-gradient(90deg, rgba(8, 45, 58, 0.76), rgba(8, 45, 58, 0.18)),
        url("../images/accueil-moorea.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 65px);
    margin-bottom: 15px;
}

.hero p {
    color: white;
    font-size: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

.cards {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border: 1px solid #e0eae9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px #0000000a;
}

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

.card-content {
    padding: 22px;
}

.card h3 {
    color: var(--lagon);
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    background: var(--corail);
    color: white;
    border-radius: 9px;
    font-weight: bold;
}

footer {
    background: var(--texte);
    color: white;
    padding: 40px 8%;
    text-align: center;
}

@media (max-width: 700px) {
    .hero {
        padding: 65px 6%;
    }

    nav {
        gap: 12px;
    }
}


/* Navigation Fenua Auto */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
}

.nav-group {
    position: relative;
}

.submenu-toggle {
    background: transparent;
    border: 0;
    color: var(--texte);
    font: inherit;
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px #0002;
    padding: 12px;
    z-index: 100;
}

.submenu.is-open {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Affichage téléphone */

@media (max-width: 800px) {

    .menu-toggle {
        display: block;
        padding: 10px 16px;
        background: var(--lagon);
        color: white;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 15px;
        padding: 20px 0;
    }

    .main-nav.is-open {
        display: flex;
    }

    .submenu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: var(--sable);
        margin-top: 8px;
    }

    .submenu-toggle {
        padding: 0;
        text-align: left;
    }
}


/* Fenua Auto V2 — Cartes de présentation */
.cards { align-items: stretch; }
.card {
    position: relative;
    border: 1px solid #e2eceb;
    border-radius: 18px;
    box-shadow: 0 7px 24px rgba(25, 52, 61, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover, .card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(25, 52, 61, .13);
    border-color: #b5dfdd;
}
.card-content { padding: 24px; }
.card h3 { margin-top: 0; line-height: 1.3; }
.card p { margin-bottom: 0; }
/* Pictogrammes décoratifs, sans modifier les images existantes. */
.cards > .card:not(:has(img)) .card-content::before {
    content: "🚗";
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #ffe5ed;
    font-size: 25px;
}
.cards > .card:nth-child(2):not(:has(img)) .card-content::before { content: "🔧"; background: #def7f5; }
.cards > .card:nth-child(3):not(:has(img)) .card-content::before { content: "🌺"; background: #ffebe2; }
.cards > .card:nth-child(4):not(:has(img)) .card-content::before { content: "📋"; background: #e0f7ed; }
.cards > .card:nth-child(5):not(:has(img)) .card-content::before { content: "💡"; background: #fff3d7; }
.cards > .card:nth-child(6):not(:has(img)) .card-content::before { content: "👥"; background: #ffe5ed; }
@media (max-width: 700px) {
    .cards { grid-template-columns: 1fr; gap: 16px; }
    .card-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
    .card:hover, .card:focus-within { transform: none; }
}

/* Fenua Auto — compteur et historique des visites */
.footer-stats { background: #244653; color: #fff; padding: 32px 5%; text-align: center; }
.footer-stats h2, .footer-stats h3 { color: #fff; }
.stats-compteurs { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 22px auto; }
.stats-bloc { background: #315763; border-radius: 14px; padding: 16px 24px; min-width: 170px; display: flex; flex-direction: column; gap: 5px; }
.stats-bloc span { color: #c2e0e1; font-size: 14px; }
.stats-bloc strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.stats-graphique { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); align-items: end; gap: 8px; width: 100%; max-width: 850px; margin: 25px auto; }
.stats-colonne { display: flex; flex-direction: column; align-items: center; min-width: 0; gap: 6px; }
.stats-valeur { font-size: 11px; color: #e5f5f5; }
.stats-barre-zone { height: 135px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.stats-barre { width: 72%; min-height: 3px; background: #24b5b4; border-radius: 6px 6px 0 0; }
.stats-colonne:last-child .stats-barre { background: #f28c70; }
.stats-mois { font-size: 11px; color: #d4e9e9; white-space: nowrap; }
.footer-signature { margin-top: 28px; font-size: 13px; color: #c2e0e1; }
@media(max-width:600px) { .footer-stats { padding: 26px 3%; } .stats-graphique { gap: 3px; } .stats-mois, .stats-valeur { font-size: 9px; } .stats-barre-zone { height: 100px; } .stats-bloc { min-width: 135px; padding: 12px; } }

/* Bandeau des modules en développement */

.card {
    position: relative;
}

.card:not(#immatriculation)::after {
    content: "BIENTÔT DISPONIBLE";
    position: absolute;
    top: 16px;
    right: 12px;

    background: #D4F3FA;
    color: #087E98;

    padding: 7px 10px;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;

    transform: none;
    width: auto;
    height: auto;
    inset: auto 12px auto auto;
    top: 16px;

    box-shadow: none;
    pointer-events: none;
}

/* Bandeau nouveauté Fenua Auto */

.hero-annonce {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-nouveaute {
    background: #F28C70;
    color: white;
    padding: 9px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-message {
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-annonce {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-message {
        font-size: 15px;
    }
}

/* Fenua Auto — largeur harmonisée du bandeau d'accueil (2026-10) */
body > main > .hero {
    width: calc(100% - 32px);
    max-width: 1100px;
    min-height: 300px;
    margin: 20px auto 0;
    padding: 42px clamp(22px, 5vw, 65px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body > main > .hero h1 {font-size: clamp(30px, 4vw, 48px); margin: 8px 0 12px; line-height: 1.15;}
body > main > .hero p {font-size: clamp(15px, 1.5vw, 18px); margin: 8px 0 14px;}
body > main > .hero .hero-annonce {margin-bottom: 12px;}
body > main > .hero .hero-message {font-size: 14px;}
body > main > .hero .btn {align-self: flex-start;}
body > main > .container {max-width: 1100px;}
.fa-home-ad-width {width: calc(100% - 32px);max-width: 1100px;margin-inline:auto;overflow:hidden;}
@media(max-width:700px){
    body > main > .hero {min-height:260px;padding:30px 22px;margin-top:12px;}
    body > main > .hero .hero-annonce {align-items:flex-start;}
}
