:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#eef2f8;background:#090e19;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 0,#16243b 0,transparent 38%),#090e19}button,input,select{font:inherit}a{color:inherit}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1240px)/2));background:#080c16eF;border-bottom:1px solid #344157;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:1rem;font-weight:900;letter-spacing:.07em}.brand img{height:61px;width:70px;object-fit:contain}.brand b,.section-heading h2 span{color:#ed343d}.navlinks{display:flex;gap:28px}.navlinks a{text-decoration:none;color:#bdc7d7;font-size:.9rem}.navlinks a:hover{color:white}.hero{max-width:1440px;margin:auto}.hero-banner{display:block;width:100%;height:auto;max-height:460px;object-fit:cover}.hero-bottom{padding:38px max(24px,calc((100vw - 1240px)/2)) 62px;background:linear-gradient(110deg,#101c2d,#0b111f 65%);border-bottom:1px solid #28384e}.eyebrow{font-size:.74rem;color:#f45b64;letter-spacing:.2em;font-weight:850}.hero h1{font-size:clamp(1.8rem,4vw,3.5rem);line-height:1.1;letter-spacing:.015em;margin:15px 0}.hero h1 em{font-style:normal;color:#e83c46}.hero p{color:#b7c4d4;max-width:660px;line-height:1.6}.hero-cta{display:inline-flex;gap:22px;align-items:center;background:#c71e2e;color:white;padding:15px 22px;text-decoration:none;border-radius:5px;font-size:.82rem;font-weight:850;letter-spacing:.04em;margin-top:12px;box-shadow:0 7px 25px #c71e2e30}.hero-cta:hover{background:#e02a3b}main{max-width:1240px;margin:auto;padding:62px 24px 70px}.section-heading{display:flex;align-items:end;gap:30px;margin-bottom:28px}.section-heading h2{margin:8px 0 0;font-size:clamp(1.5rem,3vw,2.25rem);letter-spacing:.03em}.section-line{height:1px;background:linear-gradient(90deg,#bd2532,#2c3a51);flex:1;margin-bottom:8px}.filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:12px;padding:18px;background:#101b2a;border:1px solid #2c3d54;border-radius:10px}input,select{min-width:0;background:#0b1422;color:#f1f4f8;border:1px solid #394b61;border-radius:6px;padding:14px 13px;outline:none}input:focus,select:focus{border-color:#ee4751;box-shadow:0 0 0 2px #ee475130}#count{font-size:.85rem;color:#aabbd0;margin:25px 0 17px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{background:#121e30;border:1px solid #304157;border-radius:11px;overflow:hidden;display:flex;flex-direction:column;transition:transform .18s,border-color .18s}.card:hover{transform:translateY(-3px);border-color:#c3424a}.preview{height:auto;aspect-ratio:16/9;background:radial-gradient(circle at center,#233750,#111a29);display:flex;justify-content:center;align-items:center;color:#8196ad;font-size:.82rem;font-weight:800;letter-spacing:.08em;position:relative;overflow:hidden}.preview:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 24px,#ffffff05 25px 26px);pointer-events:none}.preview img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.play-mark{position:absolute;z-index:2;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#c61e2edc;color:white;font-size:22px;padding-left:3px;box-shadow:0 8px 25px #0009}.body{padding:22px;display:flex;flex-direction:column;flex:1}.meta{font-size:.75rem;color:#f07179;font-weight:750;line-height:1.5}.card h2{font-size:1.32rem;margin:9px 0 7px;color:#fff}.description{font-size:.93rem;color:#b9c7d6;line-height:1.55;margin:7px 0 22px}.card-actions{display:flex;flex-direction:column;gap:9px;margin-top:auto}.action{display:block;width:100%;text-align:center;text-decoration:none;border:0;border-radius:6px;padding:13px 10px;background:#c62031;color:#fff;font-size:.78rem;font-weight:850;letter-spacing:.035em;cursor:pointer}.action:hover{filter:brightness(1.16)}.secondary-action{background:#223349;color:#cbd7e4;border:1px solid #354b63}footer{border-top:1px solid #26354b;background:#080d17;text-align:center;padding:30px 20px 42px;color:#c2cfdd}footer img{height:72px;width:90px;object-fit:contain}footer p{font-weight:800;letter-spacing:.04em}footer small{color:#94a5bb}footer a{color:#ff6972}.modal-open{overflow:hidden}.figure-overlay{position:fixed;inset:0;background:#02050bdc;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}.figure-panel{position:relative;background:#121e30;color:#eef2f8;border:1px solid #526079;border-top:3px solid #d62839;border-radius:12px;padding:28px;width:min(860px,100%);max-height:94vh;overflow-y:auto;box-shadow:0 22px 75px #000a}.figure-panel h2{font-size:1.9rem;margin:0 130px 5px 0}.figure-panel h3{font-size:1.15rem;margin:22px 0 7px}.figure-panel p{line-height:1.6;color:#c8d3e1}.figure-close{position:absolute;right:22px;top:20px;background:#26384f;border:1px solid #51637a;color:white;border-radius:6px;padding:10px 12px;cursor:pointer}.figure-video{display:block;width:100%;max-height:56vh;object-fit:contain;background:#050910;border-radius:8px;margin:18px 0}.figure-source{display:block;color:#ff828a;margin:10px 0;overflow-wrap:anywhere}.figure-note{border-top:1px solid #36465b;padding-top:14px;font-size:.85rem}@media(max-width:950px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}}@media(max-width:620px){.topbar{height:72px;padding:0 14px}.brand{font-size:.78rem}.brand img{height:50px;width:54px}.navlinks{gap:12px}.navlinks a{font-size:.75rem}.navlinks a:last-child{display:none}.hero-bottom{padding:28px 20px 40px}.grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.filters input{grid-column:auto}main{padding:38px 16px}.section-line{display:none}.figure-panel{padding:18px}.figure-panel h2{font-size:1.45rem;margin-right:100px}.figure-close{right:12px;top:12px;padding:8px;font-size:.75rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
/* Nom anglais sous le titre français */
.figure-english {
    color: #91a5bf;
    font-size: 0.85rem;
    font-style: italic;
    margin: 4px 0 12px;
}


/* HELICO 3D - Correction affichage accueil */
.hero .hero-bottom {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 38px clamp(24px, 5vw, 70px);
    text-align: left;
}

.hero .hero-bottom > * {
    max-width: 100%;
}

.hero .hero-bottom h1 {
    display: block;
    width: 100%;
    max-width: 900px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin: 18px 0;
}

.hero .hero-bottom p {
    display: block;
    width: 100%;
    max-width: 660px;
    line-height: 1.7;
}

.hero .hero-bottom .hero-cta {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .hero .hero-bottom {
        padding: 28px 20px;
    }

    .hero .hero-bottom h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
}

/* Accueil : bannière complète et responsive */
body.home-page .hero-banner {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

/* Accueil : espacement plus compact */
body.home-page .hero .hero-bottom {
    padding-top: 45px;
    padding-bottom: 45px;
}

@media (max-width: 700px) {
    body.home-page .hero .hero-bottom {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Catalogue : bouton compact avec logo à droite */
body.figures-page .hero-bottom .hero-cta {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    align-self: start;
}

/* HELICO 3D FRANCE : boutons uniformes du catalogue */
body.figures-page .figure-hero-actions .home-link,
body.figures-page .figure-hero-actions .hero-cta {
    box-sizing: border-box;
    width: 230px;
    min-height: 48px;
    padding: 12px 16px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

/* Même épaisseur de bordure pour les deux boutons */
body.figures-page .figure-hero-actions .home-link {
    border: 1px solid #405570;
}

body.figures-page .figure-hero-actions .hero-cta {
    border: 1px solid transparent;
}

@media (max-width: 520px) {
    body.figures-page .figure-hero-actions .home-link,
    body.figures-page .figure-hero-actions .hero-cta {
        width: 100%;
    }
}

/* Accueil : boutons identiques en dimensions */
body.home-page .home-actions .hero-cta {
    box-sizing: border-box;
    width: 230px;
    min-height: 48px;
    padding: 12px 16px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 520px) {
    body.home-page .home-actions .hero-cta {
        width: 100%;
    }
}

/* HÉLICO 3D FRANCE — Fonds photographiques des en-têtes */
body.home-page .hero,
body.figures-page .hero {
    position: relative;
    isolation: isolate;
    background-color: #081426;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

body.home-page .hero {
    background-image:
        linear-gradient(90deg,
            rgba(5, 15, 31, 0.50) 0%,
            rgba(5, 15, 31, 0.22) 52%,
            rgba(5, 15, 31, 0.10) 100%),
        url("assets/banniere-accueil-optim.webp");
}

body.figures-page .hero {
    background-image:
        linear-gradient(90deg,
            rgba(5, 15, 31, 0.83) 0%,
            rgba(5, 15, 31, 0.46) 55%,
            rgba(5, 15, 31, 0.28) 100%),
        url("assets/banniere-accueil-optim.webp");
}

body.home-page .hero > *,
body.figures-page .hero > * {
    position: relative;
    z-index: 1;
}

/* Correction : rendre visibles les fonds photographiques */
body.home-page .hero .hero-bottom,
body.figures-page .hero .hero-bottom {
    background: transparent !important;
}

/* HÉLICO 3D FRANCE — Encadrés photographiques accueil */
body.home-page .home-card {
    background-image:
        linear-gradient(110deg,
            rgba(13, 25, 43, 0.91),
            rgba(13, 25, 43, 0.76)),
        url("assets/fond-figures.webp");
    background-size: cover;
    background-position: center;
    border: 1px solid #344b65;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

body.home-page .home-card:nth-child(2) {
    background-position: 65% center;
}

body.home-page .home-card:nth-child(3) {
    background-position: right center;
}

body.home-page .discord-cta {
    background-image:
        linear-gradient(110deg,
            rgba(13, 25, 43, 0.93),
            rgba(13, 25, 43, 0.79)),
        url("assets/fond-accueil.webp");
    background-size: cover;
    background-position: center;
}

/* Trois fonds distincts pour les cartes d'accueil */
body.home-page .home-card:nth-child(1) {
    background-image: linear-gradient(90deg,rgba(8,18,34,.50),rgba(8,18,34,.18)),url("assets/carte-decouvrir-optim.webp");
}
body.home-page .home-card:nth-child(2) {
    background-image: linear-gradient(90deg,rgba(8,18,34,.50),rgba(8,18,34,.18)),url("assets/carte-apprendre-optim.webp");
}
body.home-page .home-card:nth-child(3) {
    background-image: linear-gradient(90deg,rgba(8,18,34,.50),rgba(8,18,34,.18)),url("assets/carte-partager-optim.webp");
}

/* Bouton Discord de l'en-tête : bleu uni */
body.home-page .hero a.discord-cta,
body.home-page .hero .hero-bottom a.discord-cta {
    background: #223349 !important;
    background-image: none !important;
    border: 1px solid #354b63 !important;
}

/* HÉLICO 3D FRANCE — Harmonisation des deux en-têtes */
body.figures-page .hero {
    background-image:
        linear-gradient(90deg,
            rgba(5, 15, 31, 0.80) 0%,
            rgba(5, 15, 31, 0.42) 52%,
            rgba(5, 15, 31, 0.25) 100%),
        url("assets/banniere-accueil-optim.webp");
    background-size: cover;
    background-position: center;
}

/* Page Figures : en-tête plus compact comme l'accueil */
@media (min-width: 701px) {
    body.figures-page .hero .hero-bottom {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    body.figures-page .hero h1 {
        font-size: clamp(2rem, 3.3vw, 3rem);
        line-height: 1.08;
        margin: 12px 0;
    }

    body.figures-page .hero p {
        margin: 12px 0;
    }
}

/* HÉLICO 3D FRANCE — En-têtes de hauteur identique */
@media (min-width: 701px) {
    body.home-page .hero,
    body.figures-page .hero {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        box-sizing: border-box;
    }

    body.home-page .hero .hero-bottom,
    body.figures-page .hero .hero-bottom {
        height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box;
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }

    body.figures-page .hero h1 {
        font-size: clamp(2rem, 3.5vw, 3.5rem);
        line-height: 1.1;
        margin: 15px 0;
    }
}

/* HELICO 3D FRANCE - Alignement commun des en-tetes */
@media (min-width: 701px) {

    body.home-page .hero .hero-bottom,
    body.figures-page .hero .hero-bottom {
        position: relative;
        height: 400px !important;
        padding: 35px 5% !important;
        box-sizing: border-box;
    }

    /* Petit texte rouge */
    body.home-page .hero .eyebrow,
    body.figures-page .hero .eyebrow {
        position: absolute;
        top: 35px;
        left: 5%;
        margin: 0;
    }

    /* Grand titre */
    body.home-page .hero h1,
    body.figures-page .hero h1 {
        position: absolute;
        top: 72px;
        left: 5%;
        width: 60%;
        max-width: 660px;
        margin: 0 !important;
        font-size: clamp(2rem, 3.5vw, 3.5rem);
        line-height: 1.1;
    }

    /* Description */
    body.home-page .hero p,
    body.figures-page .hero p {
        position: absolute;
        top: 220px;
        left: 5%;
        width: 55%;
        max-width: 660px;
        margin: 0 !important;
    }

    /* Boutons */
    body.home-page .hero .home-actions,
    body.figures-page .hero .figure-hero-actions {
        position: absolute;
        top: 315px;
        left: 5%;
        margin: 0 !important;
    }
}

/* Correction du chevauchement des textes - Figures */
@media (min-width: 701px) {
    body.figures-page .hero h1 {
        top: 72px !important;
        width: 68% !important;
        max-width: 800px !important;
        font-size: clamp(2rem, 3.2vw, 3.2rem) !important;
        line-height: 1.15 !important;
    }

    body.figures-page .hero p {
        top: 220px !important;
    }

    body.figures-page .hero .figure-hero-actions {
        top: 315px !important;
    }
}

/* HELICO 3D FRANCE - Correction des trois cartes d'accueil */
body.home-page .home-card {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

body.home-page .home-card::before,
body.home-page .home-card::after {
    background-image: none !important;
}

/* HELICO 3D FRANCE - Fonds uniformes des trois cartes */
body.home-page .home-card:nth-child(1),
body.home-page .home-card:nth-child(2),
body.home-page .home-card:nth-child(3) {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 10px;
    overflow: hidden;
}

/* HELICO 3D FRANCE - Suppression des bandes internes des cartes */
body.home-page .home-grid .home-card {
    border-left: 1px solid #344b65 !important;
    border-right: 1px solid #344b65 !important;
    box-shadow: none !important;
}

body.home-page .home-grid .home-card::before,
body.home-page .home-grid .home-card::after {
    content: none !important;
    display: none !important;
}
/* Compteur Discord - HELICO 3D FRANCE */
.discord-stats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #e8edf5;
  font-size: 13px;
  font-weight: 500;
}

.discord-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.discord-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-dot.online {
  background-color: #43b86b;
}

.discord-dot.members {
  background-color: #c5c9d0;
}

/* Signature discrète du pied de page */
footer .footer-signature {
    margin-top: 18px;
    text-align: center;
}

footer .footer-signature p {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #8b95a5 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.2px;
    margin: 2px 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
}


/* Signature minimaliste HÉLICO 3D FRANCE */
footer .footer-signature {
    margin: 28px auto 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(180, 195, 215, 0.15) !important;
    width: min(90%, 420px) !important;
    text-align: center !important;
}

footer .footer-signature p {
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #8390a3 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    margin: 2px 0 !important;
}

/* Pied de page HÉLICO 3D FRANCE */
footer.helico-footer {
    background: #111b2a !important;
    text-align: center !important;
    padding: 55px 20px 60px !important;
    color: #f4f6fa !important;
}

footer.helico-footer > img {
    display: block !important;
    width: 150px !important;
    max-width: 45% !important;
    height: auto !important;
    margin: 0 auto 28px !important;
}

footer.helico-footer .footer-description {
    color: #f4f6fa !important;
    font-size: clamp(14px, 1.6vw, 20px) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin: 0 auto 30px !important;
    text-shadow: none !important;
}

footer.helico-footer .footer-signature {
    border-top: 1px solid rgba(160, 175, 200, 0.22) !important;
    width: min(90%, 420px) !important;
    margin: 0 auto !important;
    padding-top: 24px !important;
    text-align: center !important;
}

footer.helico-footer .footer-signature p {
    color: #8995a8 !important;
    font-family: Arial, sans-serif !important;
    font-size: clamp(10px, 1vw, 13px) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    margin: 2px 0 !important;
}

/* Cadrage commun des bannieres */
body.home-page header.hero, body.figures-page header.hero, body.pilote-page header.hero .pilote-hero { background-size: 100% 100%, max(100%, 1536px) auto !important; background-position: center top !important; background-repeat: no-repeat !important; }
@media (max-width: 700px) { body.home-page header.hero, body.figures-page header.hero, body.pilote-page header.hero .pilote-hero { background-size: 100% 100%, max(100%, 1152px) auto !important; } }

/* Alignement accueil sur les cartes */
@media (min-width: 701px) {
  body.home-page header.hero .hero-bottom { padding-inline: clamp(20px, 5vw, 90px) !important; }
  body.home-page header.hero .hero-bottom > :is(.eyebrow, h1, p, .home-actions) { left: 0 !important; }
  body.home-page header.hero .home-hero-logo { justify-self: end; }
}

/* Luminosite des autres bannieres */
body.figures-page header.hero, body.pilote-page header.hero .pilote-hero {
  background-image: linear-gradient(90deg, rgba(5, 15, 31, 0.50) 0%, rgba(5, 15, 31, 0.22) 52%, rgba(5, 15, 31, 0.10) 100%), url(assets/banniere-accueil-optim.webp) !important;
}

/* Logos et en-tetes mobiles */
@media (max-width: 700px) {
  body.home-page header.hero .hero-bottom,
  body.figures-page header.hero .hero-bottom,
  body.pilote-page header.hero .pilote-hero {
    padding-block: 24px 30px !important;
  }
  body.home-page header.hero .home-hero-logo,
  body.figures-page header.hero .figure-hero-logo,
  body.pilote-page header.hero .pilote-hero .pilote-logo {
    order: -1 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: center;
    justify-self: center;
    display: block;
    width: min(45%, 124px) !important;
    height: auto !important;
    margin: 0 auto 12px !important;
  }
  body.pilote-page header.hero .pilote-hero { row-gap: 8px; }
}
