
: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; }
}
