/* =====================================================================
   AET COMPANY - pages publiques (Views/Login)
   ===================================================================== */

:root {
    --vert-foret: #1f3a2b;
    --vert-profond: #2c5139;
    --olive: #779523;
    --olive-clair: #a7c157;
    --creme: #f7f4ec;
    --sable: #ece6d6;
    --encre: #1d2420;
    --gris: #5d675f;
    --blanc: #ffffff;
    --rayon: 14px;
    --ombre: 0 18px 40px -22px rgba(31, 58, 43, .45);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--encre);
    background: var(--creme);
}

img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--vert-profond); }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--vert-foret);
    margin: 0 0 .6em;
}

.conteneur {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* ---------- En-tête ---------- */

.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(31, 58, 43, .97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.entete .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--blanc); }
.logo img { height: 52px; width: auto; }
.logo span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em; }
.logo:hover { color: var(--blanc); }

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

.nav a {
    color: rgba(255, 255, 255, .82);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: background .2s, color .2s;
}

.nav a:hover { color: var(--blanc); background: rgba(255, 255, 255, .08); }
.nav a.actif { color: var(--blanc); box-shadow: inset 0 -2px 0 var(--olive-clair); border-radius: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
    font-family: var(--sans);
    font-size: 1rem;
}

.btn:hover { transform: translateY(-2px); }
.btn-plein { background: var(--olive); color: var(--blanc); }
.btn-plein:hover { background: #688419; color: var(--blanc); }
.btn-contour { border-color: rgba(255, 255, 255, .7); color: var(--blanc); }
.btn-contour:hover { background: var(--blanc); color: var(--vert-foret); }
.nav .btn { margin-left: 12px; padding: 9px 20px; }
.nav .btn:hover { background: #688419; }

.burger {
    display: none;
    background: none;
    border: 0;
    color: var(--blanc);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px;
}

/* ---------- Héros ---------- */

.heros {
    position: relative;
    color: var(--blanc);
    background: var(--vert-foret) center / cover no-repeat;
    isolation: isolate;
}

.heros::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20, 38, 28, .92) 0%, rgba(20, 38, 28, .65) 50%, rgba(20, 38, 28, .25) 100%);
    z-index: -1;
}

/* Vidéo de fond de l'accueil (sous le dégradé .heros::before) */
.heros-video { overflow: hidden; }
.heros-fond {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.heros .conteneur { padding-block: 120px 110px; }
.heros-page .conteneur { padding-block: 90px 80px; }

.surtitre {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--olive-clair);
    margin-bottom: 18px;
}

.heros h1 { color: var(--blanc); font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 14ch; }
.heros-page h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 22ch; }
.heros p { font-size: 1.2rem; max-width: 56ch; color: rgba(255, 255, 255, .88); }
.heros .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Sections ---------- */

.section { padding-block: 96px; }
.section-sable { background: var(--sable); }
.section-sombre { background: var(--vert-foret); color: rgba(255, 255, 255, .86); }
.section-sombre h2, .section-sombre h3 { color: var(--blanc); }

.titre-section { max-width: 720px; margin-bottom: 52px; }
.titre-section.centre { margin-inline: auto; text-align: center; }
.titre-section h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.titre-section p { color: var(--gris); font-size: 1.1rem; }
.section-sombre .titre-section p { color: rgba(255, 255, 255, .75); }

.deux-colonnes {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.deux-colonnes p { color: var(--gris); }

.photo {
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre);
}

.photo img { width: 100%; height: 100%; object-fit: cover; }

.badge-bpe {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blanc);
    border-left: 4px solid var(--olive);
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: var(--ombre);
    margin-top: 24px;
    font-weight: 600;
    color: var(--vert-foret);
}

.badge-bpe i { color: var(--olive); font-size: 1.4rem; }

/* ---------- Cartes ---------- */

.grille {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.carte {
    background: var(--blanc);
    border-radius: var(--rayon);
    padding: 32px 28px;
    box-shadow: 0 1px 0 rgba(31, 58, 43, .06);
    border: 1px solid rgba(31, 58, 43, .08);
    transition: transform .25s, box-shadow .25s;
}

.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.carte h3 { font-size: 1.3rem; }
.carte p { color: var(--gris); margin: 0; }

.carte .icone {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(119, 149, 35, .12);
    color: var(--olive);
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.section-sombre .carte { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section-sombre .carte p { color: rgba(255, 255, 255, .75); }
.section-sombre .carte .icone { background: rgba(167, 193, 87, .15); color: var(--olive-clair); }

.liste-valeurs { list-style: none; padding: 0; margin: 0; }
.liste-valeurs li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--gris); }
.liste-valeurs li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 10px; border-radius: 50%; background: var(--olive); }

/* ---------- Galerie ---------- */

.galerie {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
}

.galerie figure { margin: 0; border-radius: 12px; overflow: hidden; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galerie figure:hover img { transform: scale(1.06); }
.galerie .large { grid-column: span 2; }
.galerie .haute { grid-row: span 2; }

/* ---------- Équipe ---------- */

.equipe {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 1fr);
}

.membre {
    background: var(--blanc);
    border-radius: var(--rayon);
    overflow: hidden;
    border: 1px solid rgba(31, 58, 43, .08);
    transition: transform .25s, box-shadow .25s;
}

.membre:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.membre .portrait { aspect-ratio: 4 / 4.4; background: var(--sable); }
.membre .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.membre .infos { padding: 20px 22px 24px; }
.membre h3 { font-size: 1.2rem; margin-bottom: 4px; }
.membre .role { color: var(--olive); font-weight: 600; font-size: .95rem; margin: 0; }
.membre .contact { margin-top: 12px; font-size: .9rem; color: var(--gris); word-break: break-word; }
.membre .contact div { display: flex; gap: 8px; align-items: baseline; }

.membre-vedette {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    background: var(--blanc);
    border-radius: var(--rayon);
    overflow: hidden;
    border: 1px solid rgba(31, 58, 43, .08);
    margin-bottom: 40px;
}

.membre-vedette .portrait { height: 100%; min-height: 300px; background: var(--sable); }
.membre-vedette .portrait img { width: 100%; height: 100%; object-fit: cover; }
.membre-vedette .portrait.logo-portrait { display: grid; place-items: center; padding: 32px; }
.membre-vedette .portrait.logo-portrait img { height: auto; max-height: 240px; object-fit: contain; }
.membre-vedette .infos { padding: 36px 36px 36px 0; }
.membre-vedette h3 { font-size: 1.8rem; }

/* ---------- Contact ---------- */

.contact-grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; }
.contact-liste { display: grid; gap: 16px; }

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--blanc);
    padding: 22px 24px;
    border-radius: var(--rayon);
    border: 1px solid rgba(31, 58, 43, .08);
}

.contact-item .icone {
    flex: 0 0 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(119, 149, 35, .12);
    color: var(--olive);
    font-size: 1.15rem;
}

.contact-item h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.contact-item p { margin: 0; font-weight: 600; color: var(--vert-foret); }

.carte-map { border-radius: var(--rayon); overflow: hidden; min-height: 420px; box-shadow: var(--ombre); }
.carte-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Bandeau d'appel ---------- */

.bandeau {
    background: linear-gradient(120deg, var(--olive) 0%, #5b7419 100%);
    color: var(--blanc);
    border-radius: 20px;
    padding: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}

.bandeau h2 { color: var(--blanc); margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.bandeau p { margin: 0; color: rgba(255, 255, 255, .88); }
.bandeau .btn-contour:hover { color: var(--olive); }

/* ---------- Pied de page ---------- */

.pied { background: #15281e; color: rgba(255, 255, 255, .7); padding-block: 64px 0; font-size: .95rem; }
.pied .colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
.pied h4 { font-family: var(--sans); color: var(--blanc); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 10px; display: flex; gap: 10px; }
.pied li i { color: var(--olive-clair); margin-top: 4px; width: 16px; }
.pied a { color: rgba(255, 255, 255, .7); }
.pied a:hover { color: var(--blanc); }
.pied .logo img { height: 60px; }
.pied .devise { margin-top: 16px; font-family: var(--serif); font-size: 1.1rem; color: var(--olive-clair); }
.pied .bas { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-block: 22px; font-size: .85rem; text-align: center; }

/* ---------- Apparition au défilement ---------- */

.apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.apparait.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .apparait { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .burger { display: block; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--vert-foret);
        padding: 12px 24px 24px;
        display: none;
    }

    .nav.ouvert { display: flex; }
    .nav a.actif { box-shadow: inset 3px 0 0 var(--olive-clair); }
    .nav .btn { margin: 10px 0 0; justify-content: center; }

    .deux-colonnes, .contact-grille, .membre-vedette { grid-template-columns: 1fr; gap: 36px; }
    .membre-vedette .infos { padding: 0 28px 32px; }
    .pied .colonnes { grid-template-columns: 1fr; gap: 32px; }
    .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .equipe { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .section { padding-block: 68px; }
    .conteneur { padding-inline: 18px; }
    .heros .conteneur { padding-block: 84px 76px; }
    .bandeau { padding: 36px 26px; }
    .galerie, .equipe { grid-template-columns: 1fr; }
    .galerie .large { grid-column: auto; }
    .galerie .haute { grid-row: auto; }
}
