/* ==========================================================================
   Accueil — style du modèle retenu (police Outfit, accent vert ACONOQ,
   pilules, cartes arrondies). Chargé après home.css, uniquement sur l'accueil.
   Pour changer la couleur d'accent : modifier --fx-accent ci-dessous.
   ========================================================================== */
:root { --fx-paper: #fcfdfc; }
:root {
    --fx-accent: #006633;
    --fx-accent-dark: #004d28;
    --fx-accent-soft: #e7f0ea;
    --fx-navy: #0e1f16;
    --fx-text: #5c6b62;
    --fx-line: #e2e9e5;
    --fx-lavender: #edf3ef;
    --fx-grey: #f4f7f5;
    --fx-radius: 16px;
    --fx-shadow: 0 12px 32px -12px rgba(6, 40, 26, .18);

    /* Les sections existantes héritent du nouveau style */
    --h-green: var(--fx-accent);
    --h-green-dark: var(--fx-accent-dark);
    --h-green-soft: var(--fx-accent-soft);
    --h-red: var(--fx-accent);
    --h-gold: var(--fx-accent);
    --h-ink: var(--fx-navy);
    --h-ink-dark: var(--fx-navy);
    --h-text: var(--fx-text);
    --h-muted: var(--fx-text);
    --h-grey: var(--fx-grey);
    --h-border: var(--fx-line);
    --h-shadow: var(--fx-shadow);
}
.home-main, .home-main h1, .home-main h2, .home-main h3, .home-main button, .home-main input, .home-main select { font-family: var(--font-sans); }

/* ---------- En-tête sur l'accueil : transparent, liens blancs, bouton orange ---------- */
.home .header { border-bottom-color: var(--c-255-255-255-_14); }
.home .header .nav__trigger { font-family: var(--font-sans-3); font-weight: 500; }
/* Bouton « Contactez-nous » : règle commune à tout le site (style.css) */
.home .header.is-fixed { background: var(--fx-paper); box-shadow: 0 6px 24px -12px var(--c-6-40-26-_25); border-bottom-color: var(--fx-line); }
.home .header.is-fixed .nav__trigger { color: var(--fx-navy); }
.home .header.is-fixed .nav__trigger:hover { background: var(--fx-grey); color: var(--fx-navy); }
.home .header.is-fixed .burger span { background: var(--fx-navy); }
/* Logo : version claire sur le carrousel, version en couleurs dès que l'en-tête passe sur fond blanc */
.home .header .brand__logo--couleur { display: none; }
.home .header.is-fixed .brand__logo--clair { display: none; }
.home .header.is-fixed .brand__logo--couleur { display: block; }
.home .header.is-fixed .nav__item.is-current > .nav__trigger { box-shadow: inset 0 -2px 0 var(--fx-accent); }

/* ---------- Boutons pilules ---------- */
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-family: var(--font-sans-3); font-size: 15px; font-weight: 500; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.fx-btn:hover { transform: translateY(-1px); text-decoration: none; }
.fx-btn--primary { background: var(--fx-accent); color: var(--fx-paper); }
.fx-btn--primary:hover { background: var(--fx-accent-dark); color: var(--fx-paper); }
.fx-btn--outline { border-color: var(--c-255-255-255-_85); color: var(--fx-paper); }
.fx-btn--outline:hover { background: var(--fx-paper); color: var(--fx-navy); }

/* ==========================================================================
   HERO
   ========================================================================== */
.home .h-hero { min-height: 680px; min-height: min(92svh, 780px); background: var(--c-0b1f15); }
.home .h-hero__texts { min-height: 680px; min-height: min(92svh, 780px); }
.home .h-hero__slide::after { background: linear-gradient(90deg, var(--c-11-31-21-_88) 0%, var(--c-11-31-21-_62) 38%, var(--c-11-31-21-_15) 70%, var(--c-11-31-21-_05) 100%), linear-gradient(to top, var(--c-11-31-21-_55) 0%, transparent 35%); }
.home .h-hero__text { align-items: center; padding: 96px 0 150px; }
.h-hero__eyebrow { margin: 0 0 16px; color: var(--fx-accent); font-size: 14px; font-weight: 600; }
.home .h-hero__title { max-width: 620px; font-size: clamp(34px, 4.6vw, 58px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.home .h-hero__subtitle { max-width: 470px; margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--c-255-255-255-_8); }
.home .h-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home .h-hero__text.is-active .h-hero__eyebrow { opacity: 1; }

.fx-hero__bottom { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 20; display: flex; align-items: center; gap: 24px; }
.home .h-hero__dots { position: static; transform: none; }
.home .h-hero__dot { width: 8px; height: 8px; }
.home .h-hero__dot.is-active { background: var(--fx-accent); transform: none; width: 22px; border-radius: 99px; }

/* ==========================================================================
   DEMANDE RAPIDE
   ========================================================================== */
.fx-quick-wrap { padding: 72px 0 24px; background: var(--fx-paper); }
.fx-quick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 32px 40px; border-radius: 20px; background: var(--fx-lavender); }
.fx-quick h2 { flex: 1 1 280px; margin: 0; color: var(--fx-navy); font-size: 22px; font-weight: 500; line-height: 1.3; }
.fx-quick input { flex: 0 1 230px; min-width: 0; padding: 13px 20px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-paper); color: var(--fx-navy); font-size: 14px; }
.fx-quick input:focus { outline: none; border-color: var(--fx-accent); box-shadow: 0 0 0 3px var(--fx-accent-soft); }
.fx-quick .hp { position: absolute; left: -9999px; }

/* ==========================================================================
   QUI SOMMES-NOUS
   ========================================================================== */
.fx-about { padding: 72px 0 88px; background: var(--fx-paper); }
.fx-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.fx-about__media img { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; }
.home .h-tag { color: var(--fx-accent); font-weight: 600; letter-spacing: 0; }
.home .h-tag::before { display: none; }
.fx-title { margin: 0 0 24px; color: var(--fx-navy); font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.fx-tabs { display: flex; border-bottom: 1px solid var(--fx-line); margin-bottom: 20px; }
.fx-tabs button { flex: 1; padding: 12px 8px; border: 0; background: none; color: var(--fx-navy); font-size: 16px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.fx-tabs button.is-active { color: var(--fx-accent); border-bottom-color: var(--fx-accent); }
.fx-tabpanel p { color: var(--fx-text); font-size: 15px; line-height: 1.75; margin: 0 0 18px; }
.fx-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.fx-checks li { display: flex; align-items: center; gap: 10px; color: var(--fx-navy); font-size: 15px; }
.fx-checks li::before { content: "\f00c"; font-family: var(--font-icons); font-weight: 900; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--fx-accent); color: var(--fx-accent); font-size: 10px; display: grid; place-items: center; }
.fx-about__btn { margin-top: 28px; }

.fx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 72px; text-align: center; }
.fx-stats strong { display: block; color: var(--fx-navy); font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.fx-stats span { display: block; margin-top: 10px; color: var(--fx-text); font-size: 14.5px; }

/* ==========================================================================
   Sections existantes : harmonisation avec le modèle
   ========================================================================== */
.home .h-section { padding: 88px 0; }
.home .h-section--grey, .home .h-norms__bg::after { background: var(--fx-grey); }
.home .h-norms__bg img { display: none; }
.home .h-dots::before { display: none; }
.home .h-heading { font-weight: 500; letter-spacing: -.02em; font-size: clamp(28px, 3.2vw, 40px); }
.home .h-heading em, .home .h-red { color: var(--fx-accent); }

.home .link-more { background: transparent; padding: 0; margin-top: 18px; }
.home .link-more__inner { background: var(--fx-accent); color: var(--fx-paper); padding: 11px 20px; border-radius: 999px; }
.home .link-more__arrow { display: none; }
.home .link-more:hover { transform: translateY(-1px); box-shadow: none; }
.home .link-more:hover .link-more__inner { background: var(--fx-accent-dark); color: var(--fx-paper); }
.home .link-more--red .link-more__inner { background: var(--fx-accent); color: var(--fx-paper); }
.home .h-btn-outline, .home .h-btn-pill { border-radius: 999px; border-width: 1.5px; border-color: var(--fx-accent); color: var(--fx-accent); padding: 12px 24px; font-size: 15px; font-weight: 500; }
.home .h-btn-outline:hover, .home .h-btn-pill:hover { background: var(--fx-accent); color: var(--fx-paper); }

.home .h-feature { border: 1px solid var(--fx-line); border-radius: var(--fx-radius); box-shadow: 0 1px 2px var(--c-6-40-26-_04); }
.home .h-feature:hover { box-shadow: var(--fx-shadow); }
.home .h-feature--red { border-color: var(--fx-line); }
.home .h-feature__icon, .home .h-feature--red .h-feature__icon { background: var(--fx-accent-soft); color: var(--fx-accent); }
.home .h-feature:hover .h-feature__icon, .home .h-feature--red:hover .h-feature__icon { background: var(--fx-accent); color: var(--fx-paper); }

/* PCEC : fond bleu nuit */
.home .h-pcec { margin-top: 0; }
.home .h-pcec__bg::after { background: var(--c-11-31-21-_88); }
.home .h-pcec__tabs { border-radius: 0 0 16px 16px; background: var(--fx-paper); }
.home .h-pcec__tabs i { color: var(--fx-accent); }
.home .h-pcec__tag { color: var(--fx-accent); }
.home .h-pcec__tag::before { display: none; }
.home .h-pcec__head h2 { font-weight: 500; }
.home .h-program { border-radius: var(--fx-radius); border-color: transparent; }
.home .h-program__num { -webkit-text-stroke-color: var(--fx-accent); }
.home .h-program__icon { background: var(--fx-accent-soft); color: var(--fx-accent); }
.home .h-program:hover .h-program__icon { background: var(--fx-accent); color: var(--fx-paper); }
.home .h-program h3, .home .h-program li, .home .h-program__link { color: var(--fx-navy); }
.home .h-program li i, .home .h-program__link i { color: var(--fx-accent); }

/* Normes, événements, galerie, FAQ, partenaires */
.home .h-filters input, .home .h-filters select { border-radius: 999px; border-color: var(--fx-line); }
.home .h-norm { border-radius: var(--fx-radius); box-shadow: 0 1px 2px var(--c-6-40-26-_05); border: 1px solid var(--fx-line); }
.home .h-norm__cover::after { background: linear-gradient(90deg, var(--c-11-31-21-_7), var(--c-11-31-21-_1)); }
.home .h-norm__actions .h-norm__buy { border-radius: 999px; padding: 8px 14px; }
.home .h-event__date { background: var(--fx-accent-soft); color: var(--fx-accent); }
.home .h-gallery__card, .home .h-card-link__img { border-radius: var(--fx-radius); }
.home .h-gallery__caption small { color: var(--fx-accent); }
.home .h-gallery__dot.is-active { background: var(--fx-accent); }
.home .h-process__dots button.is-active { background: var(--fx-accent); }
.home .h-process__arrow { color: var(--fx-navy); }
.home .h-process__arrow:hover { background: var(--fx-accent); }
.home .h-faq__item { background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); }
.home .h-faq__item.is-open { box-shadow: var(--fx-shadow); }
.home .h-partner { border-radius: var(--fx-radius); border-color: var(--fx-line); }

/* Pied de page : bande newsletter assortie */

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .fx-about__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .fx-about__media img { height: 380px; }
    .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .fx-hero__bottom { bottom: 24px; }
}
@media (max-width: 720px) {
    .home .h-hero__text { padding: 110px 0 130px; }
    .fx-quick { padding: 24px 20px; }
    .fx-quick input, .fx-quick .fx-btn { flex: 1 1 100%; }
    .fx-checks { grid-template-columns: 1fr; }
    .fx-tabs button { font-size: 14px; }
    .home .h-section, .fx-about { padding: 64px 0; }
}
