/* =========================================================================
   CHARTE VISUELLE — Mobilité durable et écologique
   Thème unique partagé par le site public, le backoffice et les supports
   commerciaux imprimables. Ne pas redéfinir ces valeurs ailleurs.
   Chargé APRÈS bootstrap.min.css.
   ========================================================================= */

:root {
  /* Palette officielle */
  --brand-foret:    #123B32;  /* couleur institutionnelle, fonds forts, titres */
  --brand-energie:  #A8D943;  /* accent : actions, repères, jamais en texte sur fond clair */
  --brand-ivoire:   #F4F3EC;  /* fond de page principal */
  --brand-anthracite:#202723; /* texte courant */
  --brand-blanc:    #FFFFFF;  /* cartes, surfaces */
  --brand-sauge:    #D8DFD7;  /* séparateurs, fonds secondaires */

  /* Dérivés techniques (mêmes teintes, opacités) */
  --brand-foret-90: rgba(18, 59, 50, .9);
  --brand-anthracite-70: rgba(32, 39, 35, .72);
  --brand-sauge-50: rgba(216, 223, 215, .5);

  /* Typographies */
  --font-titre: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rythme */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --space-section: clamp(4rem, 8vw, 7.5rem);
  --shadow-doux: 0 1px 2px rgba(18,59,50,.06), 0 8px 24px rgba(18,59,50,.06);

  /* Raccordement Bootstrap 5.3 */
  --bs-body-font-family: var(--font-texte);
  --bs-body-color: var(--brand-anthracite);
  --bs-body-bg: var(--brand-ivoire);
  --bs-primary: var(--brand-foret);
  --bs-primary-rgb: 18, 59, 50;
  --bs-secondary: var(--brand-sauge);
  --bs-secondary-rgb: 216, 223, 215;
  --bs-success: var(--brand-foret);
  --bs-link-color: var(--brand-foret);
  --bs-link-color-rgb: 18, 59, 50;
  --bs-link-hover-color: var(--brand-anthracite);
  --bs-border-color: var(--brand-sauge);
  --bs-border-radius: var(--radius-s);
  --bs-border-radius-lg: var(--radius-m);
  --bs-emphasis-color: var(--brand-anthracite);
  --bs-heading-color: var(--brand-foret);
  --bs-focus-ring-color: rgba(168, 217, 67, .55);
}

/* ---------- Typographie ---------- */
body { font-family: var(--font-texte); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .font-titre {
  font-family: var(--font-titre); font-weight: 700; letter-spacing: -0.02em; color: var(--brand-foret);
}
.display-hero { font-family: var(--font-titre); font-weight: 800; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; }
.surtitre { font-family: var(--font-texte); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-foret); }
.surtitre::before { content: ""; display: inline-block; width: 1.5rem; height: 3px; margin-right: .6rem; vertical-align: middle; background: var(--brand-energie); border-radius: 2px; }
.lead { color: var(--brand-anthracite-70); font-weight: 400; }

/* ---------- Surfaces ---------- */
.bg-foret   { background: var(--brand-foret) !important; color: var(--brand-ivoire); }
.bg-foret h1, .bg-foret h2, .bg-foret h3, .bg-foret h4, .bg-foret .surtitre { color: var(--brand-blanc); }
.bg-foret .lead, .bg-foret p { color: rgba(244,243,236,.82); }
.bg-ivoire  { background: var(--brand-ivoire) !important; }
.bg-sauge   { background: var(--brand-sauge) !important; }
.bg-blanc   { background: var(--brand-blanc) !important; }
.text-foret { color: var(--brand-foret) !important; }
.text-energie-sur-fonce { color: var(--brand-energie) !important; } /* réservé aux fonds forêt / anthracite */

.section { padding-block: var(--space-section); }
.carte { background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: var(--radius-m); box-shadow: var(--shadow-doux); overflow: hidden; height: 100%; }
.carte-corps { padding: 1.75rem; }
.filet { height: 1px; background: var(--brand-sauge); border: 0; opacity: 1; }

/* ---------- Boutons ---------- */
.btn { font-family: var(--font-texte); font-weight: 600; border-radius: 999px; padding: .75rem 1.5rem; }
.btn-energie { background: var(--brand-energie); color: var(--brand-foret); border: 1px solid var(--brand-energie); }
.btn-energie:hover, .btn-energie:focus { background: #97C834; border-color: #97C834; color: var(--brand-foret); }
.btn-foret { background: var(--brand-foret); color: var(--brand-blanc); border: 1px solid var(--brand-foret); }
.btn-foret:hover, .btn-foret:focus { background: var(--brand-anthracite); color: var(--brand-blanc); }
.btn-contour { background: transparent; color: var(--brand-foret); border: 1px solid var(--brand-foret); }
.btn-contour:hover { background: var(--brand-foret); color: var(--brand-blanc); }
.bg-foret .btn-contour { color: var(--brand-blanc); border-color: rgba(255,255,255,.5); }
.bg-foret .btn-contour:hover { background: var(--brand-blanc); color: var(--brand-foret); }
.btn-primary { --bs-btn-bg: var(--brand-foret); --bs-btn-border-color: var(--brand-foret); --bs-btn-hover-bg: var(--brand-anthracite); --bs-btn-hover-border-color: var(--brand-anthracite); }

:focus-visible { outline: 3px solid var(--brand-energie); outline-offset: 2px; }

/* ---------- En-tête public ---------- */
.site-header { background: rgba(244,243,236,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--brand-sauge); }
.site-header .nav-link { font-weight: 500; color: var(--brand-anthracite); padding-inline: .9rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand-foret); }
.site-header .nav-link.active { box-shadow: inset 0 -3px 0 var(--brand-energie); }
.marque { font-family: var(--font-titre); font-weight: 800; font-size: 1.25rem; color: var(--brand-foret); text-decoration: none; letter-spacing: -0.02em; }
.marque img { max-height: 40px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--brand-blanc); background: var(--brand-foret); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,59,50,.94) 0%, rgba(18,59,50,.7) 45%, rgba(18,59,50,.15) 100%); }
.hero-contenu { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); max-width: 42rem; }
.hero h1 { color: var(--brand-blanc); }
.hero p { color: rgba(244,243,236,.85); font-size: 1.15rem; }

/* ---------- Univers (grille d'accueil) ---------- */
.univers-carte { display: block; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.univers-carte:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(18,59,50,.12); color: inherit; }
.univers-numero { font-family: var(--font-titre); font-weight: 800; color: var(--brand-sauge); font-size: 2.5rem; line-height: 1; }
.univers-carte:hover .univers-numero { color: var(--brand-energie); }
.ratio-photo { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--brand-sauge); }

/* ---------- État « contenu à venir » ---------- */
.contenu-vide { border: 1px dashed var(--brand-sauge); border-radius: var(--radius-m); padding: 2.5rem; text-align: center; color: var(--brand-anthracite-70); background: var(--brand-sauge-50); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brand-anthracite); color: rgba(244,243,236,.75); }
.site-footer h6 { color: var(--brand-blanc); font-family: var(--font-titre); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: rgba(244,243,236,.75); text-decoration: none; }
.site-footer a:hover { color: var(--brand-energie); }
.site-footer .marque { color: var(--brand-blanc); }

/* ---------- Backoffice (mêmes jetons) ---------- */
.admin-site .card { border-color: var(--brand-sauge); border-radius: var(--radius-m); }
.admin-site .card-header { background: var(--brand-blanc); font-family: var(--font-titre); font-weight: 700; color: var(--brand-foret); }
.badge-publie { background: var(--brand-energie); color: var(--brand-foret); }
.badge-brouillon { background: var(--brand-sauge); color: var(--brand-anthracite); }

/* ---------- Impression (supports commerciaux) ---------- */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .hero, .bg-foret { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Composants Bootstrap aux couleurs de la marque ---------- */
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand-foret); --bs-nav-link-color: var(--brand-foret); --bs-nav-link-hover-color: var(--brand-anthracite); }
.nav-pills .nav-link { border-radius: 999px; }
.form-check-input:checked { background-color: var(--brand-foret); border-color: var(--brand-foret); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand-foret); box-shadow: 0 0 0 .2rem rgba(168, 217, 67, .45); }
.accordion { --bs-accordion-active-bg: var(--brand-sauge-50); --bs-accordion-active-color: var(--brand-foret); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(168,217,67,.45); }
.page-link { color: var(--brand-foret); }
.active > .page-link, .page-link.active { background-color: var(--brand-foret); border-color: var(--brand-foret); }

/* =========================================================================
   VERSION 2 — composants enrichis
   ========================================================================= */

/* ---------- Pictogrammes ---------- */
.icone { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.pastille { width: 3.25rem; height: 3.25rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(168,217,67,.22); color: var(--brand-foret); }
.pastille .icone { width: 1.6rem; height: 1.6rem; }
.bg-foret .pastille, .pastille-fonce { background: rgba(168,217,67,.14); color: var(--brand-energie); }

/* ---------- En-têtes de section ---------- */
.section-entete { max-width: 46rem; margin-bottom: 3rem; }
.section-entete.centre { margin-inline: auto; text-align: center; }
.section-entete.centre .surtitre::before { display: none; }
.section-entete h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; margin-bottom: 1rem; }
.section-entete .lead { font-size: 1.125rem; }

/* ---------- En-tête du site ---------- */
.site-header { transition: box-shadow .25s ease; }
.site-header.defile { box-shadow: 0 6px 24px rgba(18,59,50,.08); }
.marque img { height: 40px; }
@media (max-width: 991.98px) { .marque img { height: 34px; } }
.offcanvas-menu { background: var(--brand-foret); color: var(--brand-ivoire); }
.offcanvas-menu .nav-link { color: var(--brand-ivoire); font-family: var(--font-titre); font-size: 1.35rem; font-weight: 700; padding: .85rem 0; border-bottom: 1px solid rgba(244,243,236,.12); display: flex; align-items: center; gap: .9rem; }
.offcanvas-menu .nav-link .icone { color: var(--brand-energie); }
.offcanvas-menu .btn-close { filter: invert(1); }

/* ---------- Hero v2 ---------- */
.hero-v2 { position: relative; background: var(--brand-foret); color: var(--brand-blanc); overflow: hidden; isolation: isolate; }
.hero-v2 .container { position: relative; z-index: 2; }
.hero-v2 .hero-texte { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 8vw, 7rem); }
.hero-v2 h1 { color: var(--brand-blanc); }
.hero-v2 .hero-intro { color: rgba(244,243,236,.86); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36rem; }
.hero-v2 .surtitre { color: var(--brand-energie); }
.hero-visuel { position: absolute; inset: 0 0 0 48%; z-index: 1; }
.hero-visuel img { width: 100%; height: 100%; object-fit: cover; }
.hero-visuel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--brand-foret) 0%, rgba(18,59,50,.55) 30%, rgba(18,59,50,0) 65%); }
.hero-motif { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(62vw, 820px); z-index: 1; pointer-events: none; }
@media (max-width: 991.98px) {
  .hero-visuel { position: relative; inset: auto; height: 46vw; min-height: 240px; }
  .hero-visuel::before { background: linear-gradient(180deg, var(--brand-foret) 0%, rgba(18,59,50,0) 45%); }
  .hero-motif { width: 120vw; right: -40vw; opacity: .45; }
}
.hero-page .hero-texte { padding-block: clamp(3.5rem, 8vw, 6rem); }
.fil-ariane { font-size: .85rem; color: rgba(244,243,236,.7); margin-bottom: 1.25rem; }
.fil-ariane a { color: rgba(244,243,236,.7); text-decoration: none; }
.fil-ariane a:hover { color: var(--brand-energie); }

/* Accès rapides sous le hero d'accueil */
.acces-rapides { position: relative; z-index: 3; margin-top: -3rem; }
.acces-rapides .carte { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; text-decoration: none; color: var(--brand-anthracite); transition: transform .2s ease, box-shadow .2s ease; }
.acces-rapides .carte:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(18,59,50,.14); }
.acces-rapides strong { font-family: var(--font-titre); color: var(--brand-foret); display: block; }
.acces-rapides small { color: var(--brand-anthracite-70); }

/* ---------- Univers ---------- */
.univers-carte { display: flex; flex-direction: column; }
.univers-carte .carte-corps { display: flex; flex-direction: column; flex: 1; }
.univers-carte .lien-fleche { margin-top: auto; padding-top: 1.25rem; font-weight: 600; color: var(--brand-foret); display: inline-flex; align-items: center; gap: .4rem; }
.univers-carte .lien-fleche::after { content: "→"; transition: transform .2s ease; }
.univers-carte:hover .lien-fleche::after { transform: translateX(4px); }
.univers-tete { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.univers-carte .univers-numero { font-size: 1rem; color: var(--brand-anthracite-70); font-weight: 700; }
.univers-carte.vedette { background: var(--brand-foret); border-color: var(--brand-foret); color: var(--brand-ivoire); }
.univers-carte.vedette h2, .univers-carte.vedette h3, .univers-carte.vedette .lien-fleche { color: var(--brand-blanc); }
.univers-carte.vedette p { color: rgba(244,243,236,.8) !important; }
.univers-carte.vedette .pastille { background: rgba(168,217,67,.16); color: var(--brand-energie); }
.univers-carte.vedette .univers-numero { color: rgba(244,243,236,.6); }

/* ---------- Avantages ---------- */
.avantage { padding: 2rem; height: 100%; background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: var(--radius-m); transition: border-color .2s ease, transform .2s ease; }
.avantage:hover { border-color: var(--brand-energie); transform: translateY(-2px); }
.avantage h3 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
.avantage p { margin: 0; color: var(--brand-anthracite-70); }
.bg-blanc .avantage { background: var(--brand-ivoire); }
.bg-foret .avantage { background: rgba(255,255,255,.04); border-color: rgba(244,243,236,.14); }
.bg-foret .avantage h3 { color: var(--brand-blanc); }
.bg-foret .avantage p { color: rgba(244,243,236,.75); }

/* ---------- Étapes (frise) ---------- */
.frise { position: relative; counter-reset: etape; }
.frise-etape { position: relative; padding-top: 4.25rem; }
.frise-etape::before { counter-increment: etape; content: counter(etape, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-weight: 800; background: var(--brand-foret); color: var(--brand-energie); z-index: 1; }
@media (min-width: 992px) {
  .frise-etape::after { content: ""; position: absolute; top: 1.5rem; left: 3.5rem; right: -1rem; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-sauge) 0 8px, transparent 8px 14px); }
  .frise > :last-child .frise-etape::after { display: none; }
}
.frise-etape h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.frise-etape p { color: var(--brand-anthracite-70); margin: 0; }
.bg-foret .frise-etape::before { background: var(--brand-energie); color: var(--brand-foret); }
.bg-foret .frise-etape p { color: rgba(244,243,236,.75); }
.bg-foret .frise-etape h3 { color: var(--brand-blanc); }

/* ---------- Chiffres ---------- */
.chiffre { border-top: 3px solid var(--brand-energie); padding-top: 1.25rem; }
.chiffre-valeur { font-family: var(--font-titre); font-weight: 800; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; color: var(--brand-foret); }
.bg-foret .chiffre-valeur { color: var(--brand-energie); }

/* ---------- Texte et image ---------- */
.photo-cadre { position: relative; }
.photo-cadre img { border-radius: var(--radius-l); }
.photo-cadre::after { content: ""; position: absolute; width: 38%; height: 38%; right: -1.25rem; bottom: -1.25rem; border-radius: var(--radius-l); background: var(--brand-energie); z-index: -1; }
.photo-cadre.gauche::after { right: auto; left: -1.25rem; }
.photo-cadre { isolation: isolate; }
.prose { font-size: 1.075rem; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Bandeau photo ---------- */
.bandeau { position: relative; min-height: clamp(360px, 48vw, 560px); display: flex; align-items: flex-end; color: var(--brand-blanc); background: var(--brand-foret); overflow: hidden; }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(18,59,50,.92) 0%, rgba(18,59,50,.25) 60%, rgba(18,59,50,0) 100%); }
.bandeau .container { position: relative; z-index: 2; padding-block: 3.5rem; }
.bandeau h2 { color: var(--brand-blanc); font-size: clamp(1.9rem, 4vw, 3rem); max-width: 40rem; }
.bandeau p { color: rgba(244,243,236,.86); max-width: 36rem; font-size: 1.1rem; }

/* ---------- Citation ---------- */
.citation { max-width: 52rem; margin-inline: auto; text-align: center; }
.citation blockquote { font-family: var(--font-titre); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--brand-foret); letter-spacing: -0.015em; }
.citation blockquote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .6; color: var(--brand-energie); margin-bottom: 1rem; }
.citation-auteur { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.5rem; text-align: left; }
.citation-auteur img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.bg-foret .citation blockquote { color: var(--brand-blanc); }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--brand-sauge); background: transparent; }
.faq .accordion-button { background: transparent; font-family: var(--font-titre); font-weight: 700; font-size: 1.075rem; color: var(--brand-foret); padding: 1.35rem 0; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--brand-foret); background: transparent; }
.faq .accordion-body { padding: 0 0 1.5rem; color: var(--brand-anthracite-70); }

/* ---------- Appel à l'action ---------- */
.cta-panneau { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--brand-foret); color: var(--brand-ivoire); padding: clamp(2rem, 5vw, 4rem); isolation: isolate; }
.cta-panneau h2 { color: var(--brand-blanc); }
.cta-panneau p { color: rgba(244,243,236,.82); }
.cta-panneau .cta-motif { position: absolute; right: -14%; top: -45%; width: 50%; z-index: -1; opacity: .35; }

/* ---------- Fiches ERP ---------- */
.fiche { display: flex; flex-direction: column; }
.fiche .carte-corps { flex: 1; display: flex; flex-direction: column; }
.fiche-details { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--brand-sauge); }
.fiche-details li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--brand-sauge); font-size: .925rem; }
.fiche-details span:first-child { color: var(--brand-anthracite-70); }
.fiche-details span:last-child { font-weight: 600; text-align: right; }
.fiche-visuel { aspect-ratio: 4/3; background: var(--brand-sauge-50); display: flex; align-items: center; justify-content: center; color: var(--brand-foret); }
.fiche-visuel .icone { width: 3rem; height: 3rem; opacity: .5; }

/* ---------- Autres univers ---------- */
.autres-univers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.autres-univers a { scroll-snap-align: start; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-m); background: var(--brand-blanc); border: 1px solid var(--brand-sauge); text-decoration: none; color: var(--brand-foret); font-family: var(--font-titre); font-weight: 700; transition: border-color .2s ease; }
.autres-univers a:hover { border-color: var(--brand-energie); }

/* ---------- Pied de page v2 ---------- */
.pre-footer { background: var(--brand-foret); color: var(--brand-ivoire); position: relative; overflow: hidden; isolation: isolate; }
.pre-footer h2 { color: var(--brand-blanc); }
.pre-footer p { color: rgba(244,243,236,.8); }
.pre-footer .cta-motif { position: absolute; right: -12%; left: auto; top: -40%; width: 46%; z-index: -1; opacity: .22; }
.site-footer .marque img { height: 44px; }

/* ---------- Barre d'action mobile ---------- */
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(244,243,236,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--brand-sauge); }
.barre-mobile a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem; border-radius: 10px; font-size: .75rem; font-weight: 600; text-decoration: none; color: var(--brand-foret); }
.barre-mobile a.principal { background: var(--brand-foret); color: var(--brand-blanc); }
.barre-mobile .icone { width: 1.25rem; height: 1.25rem; }
@media (max-width: 991.98px) { body.avec-barre { padding-bottom: 4.75rem; } }

/* ---------- Aperçu des brouillons ---------- */
.bandeau-apercu { position: sticky; top: 0; z-index: 1040; background: var(--brand-energie); color: var(--brand-foret); font-weight: 600; font-size: .9rem; text-align: center; padding: .5rem 1rem; }
.bloc-brouillon { position: relative; outline: 2px dashed rgba(32,39,35,.35); outline-offset: -8px; }
.bloc-brouillon::before { content: attr(data-etat); position: absolute; top: 14px; right: 14px; z-index: 5; background: var(--brand-anthracite); color: var(--brand-blanc); font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; } }

/* ---------- Backoffice v2 ---------- */
.admin-site .kpi { padding: 1.25rem 1.5rem; border-radius: var(--radius-m); background: var(--brand-blanc); border: 1px solid var(--brand-sauge); height: 100%; }
.admin-site .kpi-valeur { font-family: var(--font-titre); font-weight: 800; font-size: 2rem; color: var(--brand-foret); line-height: 1; }
.admin-site .progression { height: 8px; border-radius: 99px; background: var(--brand-sauge); overflow: hidden; }
.admin-site .progression span { display: block; height: 100%; background: var(--brand-energie); border-radius: 99px; }
.admin-site .bloc-carte { border-left: 4px solid var(--brand-sauge); }
.admin-site .bloc-carte.publie { border-left-color: var(--brand-energie); }
.admin-site .bloc-carte:target { box-shadow: 0 0 0 3px rgba(168,217,67,.55); }
.admin-site .badge-proposition { background: #FFF4D6; color: #6B4E00; }
.admin-site .badge-consigne { background: #FDE2E1; color: #8A1C17; }
.admin-site .item-ligne { background: var(--brand-ivoire); border: 1px solid var(--brand-sauge); border-radius: var(--radius-s); padding: .75rem; }
.admin-site .type-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.admin-site .type-choix label { border: 1px solid var(--brand-sauge); border-radius: var(--radius-s); padding: .75rem .9rem; cursor: pointer; background: var(--brand-blanc); font-size: .85rem; height: 100%; }
.admin-site .type-choix input:checked + label { border-color: var(--brand-foret); box-shadow: inset 0 0 0 1px var(--brand-foret); background: rgba(168,217,67,.12); }
.admin-site .compteur { font-size: .75rem; color: var(--brand-anthracite-70); float: right; }
.admin-site .icone-choix .icone { width: 1.1rem; height: 1.1rem; }
.hero-v2 .btn-contour { color: var(--brand-blanc); border-color: rgba(255,255,255,.45); }
.hero-v2 .btn-contour:hover { background: var(--brand-blanc); color: var(--brand-foret); }
.pre-footer .btn-contour { color: var(--brand-blanc); border-color: rgba(255,255,255,.45); }
.pre-footer .btn-contour:hover { background: var(--brand-blanc); color: var(--brand-foret); }

.site-header .btn { white-space: nowrap; }
.site-header .nav-link { white-space: nowrap; }
@media (max-width: 1199.98px) { .site-header .nav-link { padding-inline: .55rem !important; font-size: .95rem; } }
@media (max-width: 767.98px) { .pre-footer .cta-motif, .cta-panneau .cta-motif { display: none; } }
@media (max-width: 767.98px) {
  .acces-rapides { margin-top: -2rem; }
  .acces-rapides .carte { flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem; }
  .acces-rapides .pastille { width: 2.5rem; height: 2.5rem; border-radius: 10px; }
  .acces-rapides strong { font-size: .95rem; line-height: 1.25; }
  .hero-motif { opacity: .22; }
  .hero-v2 .btn-lg { width: 100%; }
}
.admin-site .form-label { display: block; }
.admin-site .compteur { font-weight: 400; margin-left: .5rem; }
.bg-foret .btn-contour, header.bg-foret .btn-contour { color: var(--brand-blanc); border-color: rgba(255,255,255,.45); }
header.bg-foret .btn-contour:hover { background: var(--brand-blanc); color: var(--brand-foret); }

/* =========================================================================
   VERSION 3 — carrousel, services, catalogue, formules, partenaires
   ========================================================================= */

.badge-exemple { display: inline-block; background: #FFF4D6; color: #6B4E00; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; margin-bottom: .5rem; }

/* ---------- Carrousel ---------- */
.carrousel { position: relative; background: var(--brand-foret); color: var(--brand-blanc); overflow: hidden; }
.carrousel-swiper { height: clamp(560px, 84vh, 820px); }
.carrousel-slide { position: relative; display: flex; align-items: center; overflow: hidden; background: var(--brand-foret); }
.carrousel-visuel { position: absolute; inset: 0; }
.carrousel-visuel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.swiper-slide-active .carrousel-visuel img { transform: scale(1); }
.carrousel-slide.avec-illustration .carrousel-visuel { left: 38%; }
.carrousel-slide.avec-illustration .carrousel-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-foret) 0%, rgba(18,59,50,.6) 22%, rgba(18,59,50,0) 55%); }
.carrousel-slide.avec-photo .carrousel-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,59,50,.95) 0%, rgba(18,59,50,.75) 38%, rgba(18,59,50,.1) 75%), linear-gradient(0deg, rgba(18,59,50,.6) 0%, rgba(18,59,50,0) 35%); }
.carrousel-contenu { position: relative; z-index: 2; max-width: 40rem; padding-block: 5rem 7rem; }
.carrousel-contenu > * { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.swiper-slide-active .carrousel-contenu > * { opacity: 1; transform: none; }
.swiper-slide-active .carrousel-contenu > *:nth-child(2) { transition-delay: .12s; }
.swiper-slide-active .carrousel-contenu > *:nth-child(3) { transition-delay: .24s; }
.swiper-slide-active .carrousel-contenu > *:nth-child(4) { transition-delay: .36s; }
.swiper-slide-active .carrousel-contenu > *:nth-child(n+5) { transition-delay: .48s; }
.carrousel .surtitre { color: var(--brand-energie); }
.carrousel-titre { font-family: var(--font-titre); font-weight: 800; color: var(--brand-blanc); font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.25rem; }
.carrousel-texte { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(244,243,236,.86); max-width: 34rem; }
.carrousel-puces { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.carrousel-puces li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: .9rem; font-weight: 500; }
.carrousel-puces .icone { width: 1.05rem; height: 1.05rem; color: var(--brand-energie); }
.carrousel .btn-contour { color: var(--brand-blanc); border-color: rgba(255,255,255,.45); }
.carrousel .btn-contour:hover { background: var(--brand-blanc); color: var(--brand-foret); }
.carrousel-commandes { position: absolute; left: 0; right: 0; bottom: 2.25rem; z-index: 5; display: flex; align-items: center; gap: 1.5rem; }
.carrousel-compteur { font-family: var(--font-titre); font-weight: 700; color: rgba(244,243,236,.6); font-size: .95rem; white-space: nowrap; }
.carrousel-compteur .actuel { color: var(--brand-blanc); font-size: 1.15rem; }
.carrousel-pagination.swiper-pagination { position: static; display: flex; gap: .4rem; flex: 1; max-width: 340px; }
.carrousel-pagination .swiper-pagination-bullet { flex: 1; height: 3px; border-radius: 3px; background: rgba(244,243,236,.3); opacity: 1; margin: 0 !important; transition: background .3s; }
.carrousel-pagination .swiper-pagination-bullet-active { background: var(--brand-energie); }
.carrousel-fleche { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: var(--brand-blanc); font-size: 1.15rem; transition: all .2s; }
.carrousel-fleche:hover { background: var(--brand-energie); border-color: var(--brand-energie); color: var(--brand-foret); }
.carrousel + .acces-rapides { margin-top: -3.25rem; }
@media (max-width: 991.98px) {
  .carrousel-swiper { height: auto; }
  .carrousel-slide { flex-direction: column-reverse; align-items: stretch; }
  .carrousel-visuel, .carrousel-slide.avec-illustration .carrousel-visuel { position: relative; inset: auto; left: 0; height: 52vw; min-height: 230px; }
  .carrousel-slide .carrousel-visuel::after { background: linear-gradient(0deg, var(--brand-foret) 0%, rgba(18,59,50,0) 45%) !important; }
  .carrousel-contenu { padding-block: 1rem 6.5rem; }
  .carrousel-commandes { bottom: 1.5rem; }
  .carrousel-fleche { display: none; }
}

/* ---------- Onglets ---------- */
.onglets { gap: .5rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
.onglets .nav-link { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; border-radius: 999px; padding: .65rem 1.15rem; font-weight: 600; color: var(--brand-foret); background: var(--brand-blanc); border: 1px solid var(--brand-sauge); }
.onglets .nav-link .icone { width: 1.15rem; height: 1.15rem; }
.onglets .nav-link:hover { border-color: var(--brand-foret); }
.onglets .nav-link.active { background: var(--brand-foret); color: var(--brand-blanc); border-color: var(--brand-foret); }
.onglets .nav-link.active .icone { color: var(--brand-energie); }
.onglets .compte { font-size: .75rem; background: var(--brand-sauge); color: var(--brand-foret); border-radius: 999px; padding: .05rem .5rem; }
.onglets .active .compte { background: var(--brand-energie); }

/* ---------- Cartes services ---------- */
.carte-service { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--brand-ivoire); border-radius: var(--radius-l); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.carte-service:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(18,59,50,.14); }
.carte-service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.carte-service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte-service:hover .carte-service-media img { transform: scale(1.06); }
.pastille-flottante { position: absolute; left: 1.25rem; bottom: -1.6rem; background: var(--brand-energie); color: var(--brand-foret); box-shadow: 0 8px 20px rgba(18,59,50,.2); z-index: 2; }
.carte-service-corps { position: relative; padding: 2.6rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.carte-service-corps .pastille-flottante { top: -1.6rem; bottom: auto; left: 1.5rem; }
.carte-service-corps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.carte-service-corps p { color: var(--brand-anthracite-70); margin-bottom: 1rem; }
.carte-service .lien-fleche { margin-top: auto; font-weight: 600; color: var(--brand-foret); text-decoration: none; display: inline-flex; gap: .4rem; }
.carte-service .lien-fleche .fleche { display: inline-block; transition: transform .2s; }
.carte-service:hover .lien-fleche .fleche { transform: translateX(4px); }

/* ---------- Cartes produits ---------- */
.carte-produit { height: 100%; display: flex; flex-direction: column; background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: var(--radius-l); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.carte-produit:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(18,59,50,.12); border-color: transparent; }
.carte-produit-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--brand-ivoire); overflow: hidden; }
.carte-produit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte-produit:hover .carte-produit-media img { transform: scale(1.05); }
.carte-produit-badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.carte-produit-badges .badge-exemple { margin: 0; }
.badge-produit { display: inline-block; background: var(--brand-energie); color: var(--brand-foret); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.badge-produit.sombre { background: var(--brand-anthracite); color: var(--brand-blanc); }
.badge-produit.clair { background: var(--brand-sauge); }
.carte-produit-corps { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.carte-produit-categorie { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-anthracite-70); margin-bottom: .35rem; }
.carte-produit h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.carte-produit h3 a { color: inherit; text-decoration: none; }
.carte-produit-accroche { color: var(--brand-anthracite-70); margin-bottom: 1rem; }
.carte-produit-specs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.carte-produit-specs li { background: var(--brand-ivoire); border-radius: 10px; padding: .55rem .6rem; display: flex; flex-direction: column; font-size: .72rem; color: var(--brand-anthracite-70); }
.carte-produit-specs strong { font-size: .9rem; color: var(--brand-foret); font-family: var(--font-titre); }
.carte-produit-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--brand-sauge); }
.carte-produit-prix { font-family: var(--font-titre); font-weight: 800; font-size: 1.15rem; color: var(--brand-foret); }
.produits-swiper { padding-bottom: 2rem; }
.produits-swiper .swiper-scrollbar { height: 4px; background: var(--brand-sauge); left: 0; width: 100%; bottom: 0; }
.produits-swiper .swiper-scrollbar-drag { background: var(--brand-foret); }

/* ---------- Fiche produit ---------- */
.fil-clair, .fil-clair a { color: var(--brand-anthracite-70); }
.fil-clair a:hover { color: var(--brand-foret); }
.galerie-principale { border-radius: var(--radius-l); overflow: hidden; background: var(--brand-blanc); border: 1px solid var(--brand-sauge); }
.galerie-principale img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.galerie-principale .swiper-button-prev, .galerie-principale .swiper-button-next { color: var(--brand-foret); background: rgba(255,255,255,.9); width: 44px; height: 44px; border-radius: 50%; }
.galerie-principale .swiper-button-prev::after, .galerie-principale .swiper-button-next::after { font-size: 1rem; font-weight: 700; }
.galerie-vignettes .swiper-slide { border-radius: 12px; overflow: hidden; opacity: .55; cursor: pointer; border: 2px solid transparent; }
.galerie-vignettes .swiper-slide-thumb-active { opacity: 1; border-color: var(--brand-energie); }
.galerie-vignettes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fiche-infos { position: sticky; top: 6.5rem; }
.fiche-prix { background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: var(--radius-m); padding: 1.25rem 1.5rem; display: grid; gap: .15rem; }
.fiche-prix span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-anthracite-70); font-weight: 600; }
.fiche-prix strong { font-family: var(--font-titre); font-size: 2rem; color: var(--brand-foret); line-height: 1.1; }
.fiche-prix small { font-weight: 600; }
.fiche-prix .dispo::before { content: "●"; color: #5FA312; margin-right: .35rem; }
.fiche-prix .indispo::before { content: "●"; color: #B54B3B; margin-right: .35rem; }
.fiche-prix .a-venir::before { content: "●"; color: #D9A21B; margin-right: .35rem; }
.fiche-garanties { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.fiche-garanties li { display: flex; align-items: center; gap: .75rem; color: var(--brand-anthracite-70); }
.fiche-garanties .icone { color: var(--brand-foret); }
.fiche-infos .btn .icone { width: 1.15rem; height: 1.15rem; vertical-align: -3px; }
.specs { margin: 0; border-top: 1px solid var(--brand-sauge); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--brand-sauge); }
.specs dt { font-weight: 500; color: var(--brand-anthracite-70); }
.specs dd { margin: 0; font-weight: 700; color: var(--brand-foret); text-align: right; }
.hero-compact .hero-texte { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Formules ---------- */
.formules-section { position: relative; overflow: hidden; isolation: isolate; }
.formules-section .cta-motif { position: absolute; right: -12%; top: -20%; width: 55%; opacity: .2; z-index: -1; pointer-events: none; }
.formule { position: relative; height: 100%; display: flex; flex-direction: column; padding: 2.25rem 2rem 2rem; border-radius: var(--radius-l); background: rgba(255,255,255,.05); border: 1px solid rgba(244,243,236,.16); color: var(--brand-ivoire); backdrop-filter: blur(4px); }
.formule h3 { color: var(--brand-blanc); font-size: 1.4rem; margin-bottom: .35rem; }
.formule-accroche { color: rgba(244,243,236,.72) !important; margin-bottom: 1.25rem; }
.formule-prix { padding: 1.25rem 0; border-block: 1px solid rgba(244,243,236,.14); margin-bottom: 1.25rem; }
.formule-prix strong { font-family: var(--font-titre); font-size: 2.4rem; font-weight: 800; color: var(--brand-blanc); letter-spacing: -0.03em; }
.formule-prix strong.petit { font-size: 1.5rem; }
.formule-prix span { margin-left: .4rem; color: rgba(244,243,236,.7); }
.formule-inclus { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.formule-inclus li { display: flex; gap: .6rem; align-items: flex-start; color: rgba(244,243,236,.9) !important; }
.formule-inclus .icone { color: var(--brand-energie); width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.formule.recommandee { background: var(--brand-ivoire); color: var(--brand-anthracite); border-color: var(--brand-energie); box-shadow: 0 0 0 3px rgba(168,217,67,.35), 0 30px 60px rgba(0,0,0,.25); transform: translateY(-10px); }
.formule.recommandee h3, .formule.recommandee .formule-prix strong { color: var(--brand-foret); }
.formule.recommandee .formule-accroche, .formule.recommandee .formule-prix span { color: var(--brand-anthracite-70) !important; }
.formule.recommandee .formule-prix { border-color: var(--brand-sauge); }
.formule.recommandee .formule-inclus li { color: var(--brand-anthracite) !important; }
.formule.recommandee .formule-inclus .icone { color: var(--brand-foret); }
.formule-ruban { position: absolute; top: -.85rem; left: 2rem; background: var(--brand-energie); color: var(--brand-foret); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .8rem; border-radius: 999px; }
.formule .btn-contour { color: var(--brand-blanc); border-color: rgba(244,243,236,.4); }
.formule .btn-contour:hover { background: var(--brand-blanc); color: var(--brand-foret); }
@media (max-width: 767.98px) { .formule.recommandee { transform: none; } }

/* ---------- Partenaires (défilement) ---------- */
.partenaires { background: var(--brand-blanc); border-top: 1px solid var(--brand-sauge); padding: 3rem 0; overflow: hidden; }
.partenaires-titre { text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-anthracite-70); margin-bottom: 1.75rem; }
.defilant { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defilant-piste { display: flex; width: max-content; gap: 4rem; animation: defile var(--duree, 30s) linear infinite; }
.defilant:hover .defilant-piste { animation-play-state: paused; }
.partenaire { display: flex; align-items: center; height: 64px; }
.partenaire img { height: 52px; max-width: 180px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.partenaire:hover img { filter: none; opacity: 1; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 2rem)); } }
@media (prefers-reduced-motion: reduce) { .defilant-piste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }
.admin-site .choix-visuels { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-site .choix-visuels label { cursor: pointer; }
.admin-site .choix-visuels input { position: absolute; opacity: 0; }
.admin-site .choix-visuels img, .admin-site .choix-visuels .aucun { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; background: var(--brand-ivoire); font-size: .8rem; }
.admin-site .choix-visuels input:checked + img, .admin-site .choix-visuels input:checked + .aucun { border-color: var(--brand-energie); box-shadow: 0 0 0 2px var(--brand-foret); }
.admin-site .vignette-admin { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; }
.admin-site .vignette-admin img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; }
.admin-site .nav-pills .nav-link { padding: .4rem .85rem; font-size: .9rem; }
.badge-exemple { align-self: flex-start; }
@media (max-width: 991.98px) {
  .carrousel + .acces-rapides { margin-top: 1.25rem; }
  .carrousel-commandes { bottom: 1.25rem; }
  .carrousel-slide.avec-illustration .carrousel-visuel { height: 62vw; }
}
@media (max-width: 991.98px) { .carrousel-contenu { padding-block: 1rem 2rem; } }

/* =========================================================================
   VERSION 4 — finitions, barre supérieure, pied de page, FAQ, assistant, admin
   ========================================================================= */

::selection { background: rgba(168,217,67,.45); color: var(--brand-foret); }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
.btn { transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-energie:hover { box-shadow: 0 10px 24px rgba(168,217,67,.35); }
.btn-foret:hover { box-shadow: 0 10px 24px rgba(18,59,50,.25); }
.btn .icone { width: 1.15rem; height: 1.15rem; vertical-align: -3px; margin-right: .2rem; }

/* ---------- Barre supérieure ---------- */
.barre-haut { background: var(--brand-foret); color: rgba(244,243,236,.82); font-size: .82rem; }
.barre-haut .container { min-height: 40px; }
.barre-haut span, .barre-haut a { display: inline-flex; align-items: center; gap: .45rem; color: rgba(244,243,236,.82); text-decoration: none; white-space: nowrap; }
.barre-haut a:hover { color: var(--brand-energie); }
.barre-haut .icone { width: 1rem; height: 1rem; color: var(--brand-energie); }

/* ---------- En-tête ---------- */
.site-header { background: rgba(244,243,236,.9); }
.site-header .navbar { padding-block: .85rem; }
.site-header .nav-link { font-size: .95rem; position: relative; }
.site-header .nav-link.active { box-shadow: none; }
.site-header .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--brand-energie); transform: scaleX(0); transition: transform .25s ease; }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.btn-entete { padding: .6rem 1.25rem; font-size: .92rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: #17201C; color: rgba(244,243,236,.7); padding-top: 4.5rem; }
.site-footer h6 { color: var(--brand-blanc); font-family: var(--font-titre); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(244,243,236,.75); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brand-energie); }
.site-footer .marque img { height: 46px; }
.pied-haut { padding-bottom: 3.5rem; }
.contact-pied li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-pied .icone { color: var(--brand-energie); width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.reseaux { display: flex; gap: .5rem; margin-top: 1.5rem; }
.reseaux a { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(244,243,236,.2); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.reseaux a:hover { background: var(--brand-energie); color: var(--brand-foret); border-color: var(--brand-energie); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: 1.5rem 0; border-top: 1px solid rgba(244,243,236,.1); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-recherche { position: relative; max-width: 36rem; }
.faq-recherche .icone { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--brand-foret); width: 1.3rem; height: 1.3rem; }
.faq-recherche input { width: 100%; border: 0; border-radius: 999px; padding: 1.05rem 1.5rem 1.05rem 3.4rem; font-size: 1.05rem; background: var(--brand-blanc); color: var(--brand-anthracite); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.faq-recherche input:focus { outline: 3px solid var(--brand-energie); }
.faq-sommaire { position: sticky; top: 7rem; display: grid; gap: .35rem; }
.faq-sommaire a { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: var(--radius-m); color: var(--brand-anthracite); text-decoration: none; font-weight: 500; transition: background .2s; }
.faq-sommaire a:hover { background: var(--brand-blanc); color: var(--brand-foret); }
.faq-sommaire .icone { color: var(--brand-foret); width: 1.2rem; height: 1.2rem; }
.faq-sommaire span { flex: 1; }
.faq-sommaire small { background: var(--brand-sauge); border-radius: 999px; padding: .05rem .5rem; font-weight: 600; color: var(--brand-foret); }
.faq-groupe { margin-bottom: 3rem; }
.faq-groupe-titre { display: flex; align-items: center; gap: .85rem; font-size: 1.45rem; margin-bottom: 1rem; }
.faq-groupe .accordion { background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: var(--radius-l); padding: 0 1.5rem; }
.faq-groupe .faq .accordion-item:last-child { border-bottom: 0; }
.faq .accordion-button::after { background-image: none; content: "+"; font-family: var(--font-titre); font-size: 1.5rem; font-weight: 600; color: var(--brand-foret); width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-ivoire); display: inline-flex; align-items: center; justify-content: center; transform: none; transition: background .2s, transform .25s; }
.faq .accordion-button:not(.collapsed)::after { content: "–"; background: var(--brand-energie); transform: rotate(180deg); }
.faq-aide { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem; border-radius: var(--radius-l); background: var(--brand-foret); color: var(--brand-ivoire); }
.faq-aide h2 { color: var(--brand-blanc); }
.faq-aide p { color: rgba(244,243,236,.78); }
.faq-aide .btn-contour { color: var(--brand-blanc); border-color: rgba(255,255,255,.45); }

/* ---------- Assistant IA ---------- */
.assistant { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1050; font-family: var(--font-texte); }
.assistant-bouton { display: inline-flex; align-items: center; gap: .65rem; border: 0; border-radius: 999px; padding: .55rem 1.25rem .55rem .55rem; background: var(--brand-foret); color: var(--brand-blanc); font-weight: 600; box-shadow: 0 16px 40px rgba(18,59,50,.35); transition: transform .2s, box-shadow .2s; }
.assistant-bouton:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(18,59,50,.45); }
.assistant-bouton-icone { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-energie); color: var(--brand-foret); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.assistant-bouton-icone::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand-energie); opacity: .6; animation: pulsation 2.4s ease-out infinite; }
@keyframes pulsation { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.assistant.ouvert .assistant-bouton { display: none; }
.assistant-panneau { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 2rem)); height: min(640px, calc(100vh - 3rem)); display: flex; flex-direction: column; background: var(--brand-ivoire); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(18,59,50,.35), 0 0 0 1px rgba(18,59,50,.08); animation: apparition .25s ease; }
.assistant-panneau[hidden] { display: none; }
@keyframes apparition { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.assistant-entete { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: var(--brand-foret); color: var(--brand-blanc); }
.assistant-entete strong { display: block; font-family: var(--font-titre); font-size: 1.02rem; }
.assistant-entete span { font-size: .78rem; color: rgba(244,243,236,.75); display: inline-flex; align-items: center; gap: .35rem; }
.assistant-avatar { width: 42px; height: 42px; border-radius: 12px; }
.assistant-pastille-en-ligne { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-energie); display: inline-block; }
.assistant-action { border: 0; background: rgba(255,255,255,.1); color: var(--brand-blanc); width: 2.1rem; height: 2.1rem; border-radius: 10px; }
.assistant-action:hover { background: rgba(255,255,255,.2); }
.assistant-fil { flex: 1; overflow-y: auto; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: .75rem; scroll-behavior: smooth; }
.assistant-msg { max-width: 86%; padding: .75rem 1rem; border-radius: 16px; font-size: .93rem; line-height: 1.55; word-wrap: break-word; }
.assistant-msg p { margin: 0 0 .5rem; } .assistant-msg p:last-child { margin: 0; }
.assistant-msg ul { margin: .25rem 0 .5rem; padding-left: 1.1rem; }
.assistant-msg a { color: var(--brand-foret); font-weight: 600; }
.assistant-msg.bot { align-self: flex-start; background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-bottom-left-radius: 6px; color: var(--brand-anthracite); }
.assistant-msg.moi { align-self: flex-end; background: var(--brand-foret); color: var(--brand-blanc); border-bottom-right-radius: 6px; }
.points { display: inline-flex; gap: 4px; padding: .2rem 0; }
.points i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-foret); opacity: .35; animation: point 1.2s infinite; }
.points i:nth-child(2) { animation-delay: .15s; } .points i:nth-child(3) { animation-delay: .3s; }
@keyframes point { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .75rem; }
.assistant-suggestions[hidden] { display: none; }
.assistant-suggestions button { border: 1px solid var(--brand-sauge); background: var(--brand-blanc); color: var(--brand-foret); font-size: .82rem; font-weight: 500; border-radius: 999px; padding: .4rem .8rem; text-align: left; }
.assistant-suggestions button:hover { border-color: var(--brand-foret); }
.assistant-saisie { display: flex; align-items: flex-end; gap: .5rem; margin: 0 .85rem; padding: .45rem .45rem .45rem 1rem; background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: 18px; }
.assistant-saisie:focus-within { border-color: var(--brand-foret); box-shadow: 0 0 0 3px rgba(168,217,67,.35); }
.assistant-saisie textarea { flex: 1; border: 0; resize: none; outline: none; background: transparent; font-size: .95rem; padding: .45rem 0; max-height: 120px; }
.assistant-saisie button { width: 2.6rem; height: 2.6rem; border: 0; border-radius: 12px; background: var(--brand-energie); color: var(--brand-foret); flex-shrink: 0; }
.assistant-mention { font-size: .7rem; color: var(--brand-anthracite-70); text-align: center; margin: .6rem 1rem .8rem; line-height: 1.35; }
@media (max-width: 991.98px) {
  .assistant { right: 1rem; bottom: 5.5rem; }
  .assistant-bouton-texte { display: none; }
  .assistant-bouton { padding: .45rem; }
  .assistant.ouvert { inset: 0; right: 0; bottom: 0; }
  .assistant-panneau { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; }
}

/* ---------- Backoffice v3 : barre latérale ---------- */
.admin-corps { background: #EEF1EC; }
.admin-cadre { display: flex; min-height: 100vh; }
.admin-lateral { width: 264px; flex-shrink: 0; background: var(--brand-foret); color: rgba(244,243,236,.8); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { display: block; padding: 1.5rem 1.5rem 1rem; }
.admin-logo img { height: 34px; }
.admin-nav { padding: .5rem .85rem; flex: 1; }
.admin-nav p { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,243,236,.45); margin: 1.25rem .65rem .5rem; }
.lien-lateral { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 10px; color: rgba(244,243,236,.82); text-decoration: none; font-size: .92rem; font-weight: 500; transition: background .2s, color .2s; }
.lien-lateral .icone { width: 1.2rem; height: 1.2rem; opacity: .85; }
.lien-lateral span { flex: 1; }
.lien-lateral b { background: var(--brand-energie); color: var(--brand-foret); font-size: .72rem; border-radius: 999px; padding: .05rem .5rem; }
.lien-lateral:hover { background: rgba(255,255,255,.07); color: var(--brand-blanc); }
.lien-lateral.actif { background: rgba(168,217,67,.16); color: var(--brand-blanc); box-shadow: inset 3px 0 0 var(--brand-energie); }
.lien-lateral.actif .icone { color: var(--brand-energie); opacity: 1; }
.admin-lateral-pied { padding: 1rem 1.25rem 1.5rem; }
.admin-principal { flex: 1; min-width: 0; }
.admin-haut { display: flex; align-items: center; gap: 1rem; padding: .85rem 2rem; background: var(--brand-blanc); border-bottom: 1px solid var(--brand-sauge); position: sticky; top: 0; z-index: 20; }
.admin-fil { font-size: .85rem; color: var(--brand-anthracite-70); }
.admin-utilisateur { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; }
.admin-initiale { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand-energie); color: var(--brand-foret); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.admin-corps .admin-site { padding: 2rem !important; }
.admin-corps .admin-site .card { border: 0; box-shadow: 0 1px 2px rgba(18,59,50,.05), 0 6px 20px rgba(18,59,50,.05); border-radius: 16px; }
.admin-corps .admin-site .card-header { border-bottom: 1px solid #EEF1EC; padding: 1rem 1.25rem; border-radius: 16px 16px 0 0 !important; }
.admin-corps .admin-site .kpi { border: 0; box-shadow: 0 1px 2px rgba(18,59,50,.05), 0 6px 20px rgba(18,59,50,.05); border-radius: 16px; }
.admin-corps .admin-site h1 { font-size: 1.65rem; }
.admin-corps .table > :not(caption) > * > * { padding: .85rem 1rem; }
.admin-corps .table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-anthracite-70); font-weight: 600; background: #F8FAF7; }
@media (max-width: 991.98px) {
  .admin-lateral { position: fixed; z-index: 1040; transform: translateX(-100%); transition: transform .25s; }
  .admin-lateral.ouvert { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.3); }
  .admin-corps .admin-site { padding: 1.25rem !important; }
  .admin-haut { padding: .75rem 1rem; }
}
.admin-corps .btn-sm { padding: .38rem .85rem; font-size: .82rem; }
.admin-corps .btn { padding: .55rem 1.15rem; }
.admin-corps .btn-sm, .admin-corps .table .btn { padding: .35rem .8rem; font-size: .82rem; }
.admin-corps .kpi .small { line-height: 1.3; display: inline-block; }
@media (max-width: 991.98px) {
  .faq-sommaire { position: static; display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-inline: -.25rem; }
  .faq-sommaire a { flex-shrink: 0; background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: 999px; padding: .5rem .9rem; font-size: .9rem; }
  .faq-sommaire span { flex: none; }
  .faq-groupe .accordion { padding: 0 1rem; }
}

/* ---------- Services en lignes alternées (image | texte), collées ---------- */
.section-services { padding-top: var(--space-section); background: var(--brand-blanc); }
.services-lignes { display: flex; flex-direction: column; }
.service-ligne { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(380px, 38vw, 520px); }
.service-ligne.inverse .service-ligne-media { order: 2; }
.service-ligne-media { position: relative; overflow: hidden; background: var(--brand-foret); }
.service-ligne-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.service-ligne:hover .service-ligne-media img { transform: scale(1.04); }
.service-ligne-texte { display: flex; align-items: center; padding: clamp(2.5rem, 6vw, 5.5rem); background: var(--brand-ivoire); }
.service-ligne.inverse .service-ligne-texte { background: var(--brand-ivoire); }
.service-ligne-contenu { max-width: 32rem; position: relative; }
.service-ligne-contenu::before { content: ""; position: absolute; left: 0; top: -1.75rem; width: 3rem; height: 4px; border-radius: 4px; background: var(--brand-energie); }
.service-ligne h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1rem; }
.service-ligne p { font-size: 1.1rem; line-height: 1.7; color: var(--brand-anthracite-70); margin-bottom: 1.5rem; }
.service-numero { font-family: var(--font-titre); font-weight: 700; font-size: .9rem; letter-spacing: .08em; color: var(--brand-anthracite-70); }
@media (max-width: 767.98px) {
  .service-ligne { grid-template-columns: 1fr; min-height: 0; }
  .service-ligne.inverse .service-ligne-media { order: 0; }
  .service-ligne-media { aspect-ratio: 4 / 3; }
  .service-ligne-texte { padding: 2rem 1.5rem 2.5rem; }
}

/* =========================================================================
   VERSION 5 — accueil enrichi : comparatif, manifeste, aperçu FAQ
   ========================================================================= */
.comparatif { background: var(--brand-blanc); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 1px 2px rgba(18,59,50,.05), 0 20px 50px rgba(18,59,50,.08); border: 1px solid var(--brand-sauge); }
.bg-blanc .comparatif { background: var(--brand-ivoire); }
.comparatif-ligne { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; border-bottom: 1px solid var(--brand-sauge); }
.comparatif-ligne:last-child { border-bottom: 0; }
.comparatif-ligne > span { padding: 1.05rem 1.25rem; display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.comparatif-ligne > span:first-child { font-family: var(--font-titre); font-weight: 700; color: var(--brand-foret); }
.comparatif-tete > span { font-size: .78rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-anthracite-70); padding-block: 1.25rem !important; }
.comparatif .cote-avant { color: var(--brand-anthracite-70); }
.comparatif .cote-avant i { flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #F1E3E1; color: #A2463A; font-style: normal; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; }
.comparatif .cote-kira { background: rgba(168,217,67,.14); color: var(--brand-foret); font-weight: 600; }
.comparatif-tete .cote-kira { background: var(--brand-foret) !important; color: var(--brand-blanc) !important; }
.comparatif-tete .cote-kira .icone { color: var(--brand-energie); width: 1.1rem; height: 1.1rem; }
.comparatif .cote-kira i { flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--brand-energie); color: var(--brand-foret); font-style: normal; font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 767.98px) {
  .comparatif-ligne { grid-template-columns: 1fr 1fr; }
  .comparatif-ligne > span:first-child { grid-column: 1 / -1; padding-bottom: .25rem; }
  .comparatif-tete > span:first-child { display: none; }
  .comparatif-ligne > span { padding: .75rem 1rem; font-size: .88rem; }
}

.manifeste { position: relative; overflow: hidden; isolation: isolate; }
.manifeste .cta-motif { position: absolute; right: -10%; bottom: -35%; width: 50%; opacity: .25; z-index: -1; pointer-events: none; }
.manifeste-contenu { max-width: 62rem; }
.manifeste-texte { font-family: var(--font-titre); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--brand-foret); margin: 0; }
.bg-foret .manifeste-texte { color: var(--brand-blanc); }
.manifeste-texte mark { background: none; padding: 0; color: var(--brand-foret); background-image: linear-gradient(transparent 62%, rgba(168,217,67,.75) 62%); }
.bg-foret .manifeste-texte mark { color: var(--brand-energie); background-image: none; }
.manifeste-signature { margin: 2rem 0 0; font-weight: 600; color: var(--brand-anthracite-70); }
.bg-foret .manifeste-signature { color: rgba(244,243,236,.75) !important; }

.faq-carte { background: var(--brand-blanc); border: 1px solid var(--brand-sauge); border-radius: var(--radius-l); padding: 0 1.75rem; }
.faq-carte .accordion-item:last-child { border-bottom: 0; }
.chiffre p { color: var(--brand-anthracite-70); }
.bg-foret .chiffre p { color: rgba(244,243,236,.8); }

/* ---------- Variantes de coloris ---------- */
.variantes { margin: 1.5rem 0 .5rem; }
.variantes-titre { font-size: .95rem; margin-bottom: .75rem; color: var(--brand-anthracite-70); }
.variantes-titre strong { color: var(--brand-foret); }
.variantes-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.variante { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--brand-anthracite); border-radius: 12px; padding: .35rem; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.variante:hover { background: var(--brand-blanc); border-color: var(--brand-sauge); }
.variante.active { border-color: var(--brand-foret); background: var(--brand-blanc); }
.variante-vignette { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--brand-ivoire); }
.variante-vignette img { width: 100%; height: 100%; object-fit: cover; }
.variante-nom { display: flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; line-height: 1.2; }
.variante-nom i { flex-shrink: 0; width: .8rem; height: .8rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.pastilles { display: flex; align-items: center; gap: .35rem; margin: -.25rem 0 1rem; position: relative; z-index: 2; }
.pastille-couleur { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s; }
.pastille-couleur:hover { transform: scale(1.15); }
.pastille-couleur.active { outline-color: var(--brand-foret); }
.pastilles-compte { margin-left: .35rem; font-size: .78rem; color: var(--brand-anthracite-70); }
