/* =============================================================================
   BTC CHAUFFAGE 12 — btcchauffage12.fr
   Feuille de style unique. Aucun framework, aucun build : ce fichier se dépose
   tel quel chez Hostinger.

   Charte : le bleu du logo (maison, lettrage) porte la confiance technique ;
   le cuivre de la flamme est l'accent d'action (boutons, repères). Le fond
   reste clair et aéré ; les sections sombres (marine) servent aux moments
   forts : le hero, l'espace client, l'appel à l'action final.
   ============================================================================= */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --marine-950: #06111f;
  --marine-900: #0a1a2f;
  --marine-800: #10284a;
  --marine-700: #163864;
  --bleu-600:   #2f6fb5;   /* bleu du logo */
  --bleu-500:   #3b82c4;
  --bleu-100:   #e4eefb;
  --ciel:       #1ea7e1;   /* la goutte */
  --cuivre-600: #e8641b;   /* la flamme */
  --cuivre-700: #c9531a;
  --cuivre-100: #fdeee3;
  --or:         #f2a61b;

  --encre:  #14202e;
  --texte:  #2b3a4b;
  --sourd:  #5e6c7b;
  --trait:  #e3e8ef;
  --fond:   #f7f9fc;
  --fond-2: #eef3f9;
  --blanc:  #ffffff;

  --ok:     #1f9d55;
  --alerte: #d64545;

  --rayon-s: 10px;
  --rayon:   18px;
  --rayon-l: 28px;

  --ombre-s: 0 1px 2px rgba(10, 26, 47, .06), 0 4px 14px rgba(10, 26, 47, .06);
  --ombre:   0 10px 30px rgba(10, 26, 47, .10);
  --ombre-l: 0 24px 60px rgba(10, 26, 47, .18);

  --large: 1200px;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 76px;

  --police: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 {
  color: var(--encre);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--bleu-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cuivre-700); }
strong { color: var(--encre); font-weight: 700; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cuivre-600); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bleu-100); color: var(--encre); }

.conteneur {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.conteneur--etroit { max-width: 860px; }

.lien-evitement {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--encre); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.lien-evitement:focus { left: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Boutons ------------------------------------------------------ */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton svg { width: 1.15em; height: 1.15em; flex: none; }
@media (min-width: 640px) { .bouton { white-space: nowrap; } }

.bouton--primaire { background: var(--cuivre-600); color: #fff; box-shadow: 0 8px 22px rgba(232, 100, 27, .32); }
.bouton--primaire:hover { background: var(--cuivre-700); color: #fff; box-shadow: 0 12px 28px rgba(232, 100, 27, .38); }

.bouton--bleu { background: var(--bleu-600); color: #fff; box-shadow: 0 8px 22px rgba(47, 111, 181, .3); }
.bouton--bleu:hover { background: var(--marine-700); color: #fff; }

.bouton--secondaire { background: var(--blanc); color: var(--encre); border-color: var(--trait); box-shadow: var(--ombre-s); }
.bouton--secondaire:hover { color: var(--bleu-600); border-color: var(--bleu-500); }

.bouton--fantome { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.bouton--fantome:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }

.bouton--compact { min-height: 42px; padding: .55rem 1.1rem; font-size: .92rem; }
.bouton--large { min-height: 58px; padding: 1rem 2rem; font-size: 1.08rem; }
.bouton--bloc { width: 100%; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--bleu-600);
}
.lien-fleche::after { content: '→'; transition: transform .18s ease; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* ---------- En-tête ------------------------------------------------------ */
.bandeau-urgence {
  background: var(--marine-950); color: #cfe0f5; font-size: .85rem; font-weight: 600;
}
.bandeau-urgence .conteneur {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 36px; flex-wrap: wrap;
}
@media (min-width: 1180px) { .bandeau-urgence .conteneur { flex-wrap: nowrap; } .bandeau-urgence span { white-space: nowrap; } }
.bandeau-urgence a { color: #fff; text-decoration: none; font-weight: 800; }
.bandeau-urgence a:hover { color: var(--or); }
.bandeau-urgence .pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: .45rem; box-shadow: 0 0 0 4px rgba(31,157,85,.18); }
@media (max-width: 640px) { .bandeau-urgence .masque-mobile { display: none; } }

.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20,32,46,.06);
  transition: box-shadow .25s ease;
}
.nav.est-scrolle { box-shadow: 0 6px 24px rgba(10,26,47,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--nav-h); }

.logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--encre); }
.logo img { height: 54px; width: auto; }
.logo__texte { display: flex; flex-direction: column; line-height: 1.05; }
.logo__nom { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--bleu-600); white-space: nowrap; }
.logo__sous { font-size: .68rem; font-weight: 700; color: var(--cuivre-600); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }

.nav__liens { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__liens > li { position: relative; }
.nav__liens a:not(.bouton), .nav__liens button.nav__deroulant {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .7rem; border-radius: 10px;
  color: var(--texte); font-weight: 600; font-size: .94rem; text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__liens a:not(.bouton):hover, .nav__liens button.nav__deroulant:hover, .nav__liens a[aria-current="page"] { color: var(--bleu-600); background: var(--bleu-100); }
.nav__liens .est-phare a { color: var(--cuivre-700); }
.nav__liens .est-phare a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cuivre-600); }
.nav__deroulant svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav__deroulant[aria-expanded="true"] svg { transform: rotate(180deg); }

.sous-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre-l); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__liens > li:hover > .sous-menu, .nav__liens > li:focus-within > .sous-menu, .sous-menu.est-ouvert { opacity: 1; visibility: visible; transform: translateY(0); }
.sous-menu a { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 0 !important; padding: .65rem .8rem !important; }
.sous-menu a small { color: var(--sourd); font-weight: 500; font-size: .8rem; }

.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--trait);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--encre);
}
.nav__burger svg { width: 22px; height: 22px; }

@media (max-width: 1500px) { .logo__sous { display: none; } }
.nav .conteneur { max-width: 1360px; }
.nav__liens a:not(.bouton), .nav__liens button.nav__deroulant { white-space: nowrap; }
.nav__liens .masque-desktop { display: none; }
@media (max-width: 1080px) {
  .nav__liens { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions .bouton--espace { display: none; }
}
@media (max-width: 560px) { .logo__texte { display: none; } .nav__actions .bouton--tel span { display: none; } .nav__actions .bouton--tel { padding-inline: .8rem; } }

/* Tiroir mobile */
.tiroir {
  position: fixed; inset: 0; z-index: 1500; display: none;
}
.tiroir.est-ouvert { display: block; }
.tiroir__fond { position: absolute; inset: 0; background: rgba(6,17,31,.55); backdrop-filter: blur(4px); }
.tiroir__panneau {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 92vw);
  background: #fff; padding: 1.2rem 1.4rem 2rem; overflow-y: auto;
  box-shadow: var(--ombre-l); animation: glisse .25s ease;
}
@keyframes glisse { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.tiroir__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tiroir__fermer { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--trait); background: #fff; cursor: pointer; }
.tiroir nav a { display: block; padding: .8rem .6rem; border-radius: 10px; text-decoration: none; color: var(--encre); font-weight: 700; font-size: 1.05rem; }
.tiroir nav a:hover { background: var(--bleu-100); }
.tiroir nav .groupe { margin: .5rem 0 .2rem; padding: .4rem .6rem 0; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--sourd); }
.tiroir nav .groupe + a, .tiroir nav a.sous { padding-left: 1.2rem; font-weight: 600; font-size: .98rem; }
.tiroir__actions { display: grid; gap: .6rem; margin-top: 1.2rem; }

/* ---------- Sections ----------------------------------------------------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--serree { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--fond { background: var(--fond-2); }
.section--blanc { background: var(--blanc); }
.section--marine { background: radial-gradient(1200px 600px at 80% -10%, rgba(30,167,225,.22), transparent 60%), var(--marine-900); color: #d7e3f2; }
.section--marine h2, .section--marine h3, .section--marine h4 { color: #fff; }
.section--marine p { color: #c3d2e5; }
.section--marine strong { color: #fff; }

.entete-section { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.entete-section--centre { margin-inline: auto; text-align: center; }
.surtitre {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cuivre-700); margin-bottom: .9rem;
}
.surtitre::before { content: ''; width: 22px; height: 2px; background: var(--cuivre-600); border-radius: 2px; }
.entete-section--centre .surtitre::after { content: ''; width: 22px; height: 2px; background: var(--cuivre-600); border-radius: 2px; }
.section--marine .surtitre { color: var(--or); }
.section--marine .surtitre::before, .section--marine .surtitre::after { background: var(--or); }
.chapo { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--sourd); }
.section--marine .chapo { color: #b9c9dd; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--marine-900);
  min-height: min(92vh, 860px);
  display: grid; align-items: end;
}
.hero__scenes { position: absolute; inset: 0; }
.hero__scene {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
}
.hero__scene.est-active { opacity: 1; }
.hero__scene picture, .hero__scene img, .hero__scene video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__scene.est-active img { animation: ken-burns 9s ease-out forwards; }
@keyframes ken-burns { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero__scene--logo { background: radial-gradient(800px 500px at 50% 40%, rgba(47,111,181,.45), transparent 70%), var(--marine-900); display: grid; place-items: center; }
.hero__scene--logo img { position: static; width: min(300px, 60vw); height: auto; object-fit: contain; animation: none !important; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.hero__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,17,31,.55) 0%, rgba(6,17,31,.25) 35%, rgba(6,17,31,.82) 100%),
    linear-gradient(90deg, rgba(6,17,31,.55) 0%, rgba(6,17,31,0) 60%);
}
.hero__contenu { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__grille { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; }
.hero__grille > * { min-width: 0; }
@media (max-width: 900px) { .hero__grille { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .6em; }
.hero h1 em { font-style: normal; color: var(--or); }
.hero__sous { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: #d3e0f0; max-width: 56ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__sous-titrage {
  min-height: 3.2em; margin-bottom: 1.2rem;
  font-weight: 700; font-size: clamp(.95rem, 1.4vw, 1.08rem); color: #fff;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem .95rem .55rem .7rem; border-radius: 999px;
  background: rgba(6,17,31,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
}
.hero__sous-titrage .puce { width: 10px; height: 10px; border-radius: 50%; background: var(--cuivre-600); box-shadow: 0 0 0 5px rgba(232,100,27,.28); animation: pulse 1.6s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(232,100,27,.08); } }

.hero__scenario { display: grid; gap: .5rem; }
.hero__scenario button {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; text-align: left;
  padding: .7rem .9rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #dbe6f5; cursor: pointer; font-family: inherit; min-width: 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero__scenario button:hover { background: rgba(255,255,255,.12); }
.hero__scenario button.est-active { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); transform: translateX(4px); }
.hero__scenario .num { font-weight: 800; font-size: .78rem; letter-spacing: .1em; color: var(--or); }
.hero__scenario .lib { font-weight: 700; font-size: .95rem; color: #fff; min-width: 0; overflow-wrap: anywhere; }
.hero__scenario .lib small { display: block; font-weight: 500; color: #b9c9dd; font-size: .8rem; }
.hero__scenario .barre { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.hero__scenario .barre i { display: block; height: 100%; width: 0; background: var(--cuivre-600); }
.hero__scenario button.est-active .barre i { animation: progression var(--duree, 9s) linear forwards; }
@keyframes progression { to { width: 100%; } }
@media (max-width: 900px) { .hero__scenario { grid-template-columns: repeat(2, 1fr); } .hero__scenario .lib small { display: none; } }
@media (max-width: 520px) { .hero__scenario { grid-template-columns: 1fr 1fr; } .hero__scenario button { padding: .55rem .7rem; } }

.hero__defile { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; color: #9fb3c9; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

/* Barre de confiance */
.confiance { background: #fff; border-bottom: 1px solid var(--trait); }
.confiance__grille { display: grid; grid-template-columns: repeat(4, 1fr); }
.confiance__item { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1rem; border-right: 1px solid var(--trait); }
.confiance__item:last-child { border-right: 0; }
.confiance__item svg { width: 30px; height: 30px; color: var(--bleu-600); flex: none; }
.confiance__item strong { display: block; font-size: .98rem; }
.confiance__item span { font-size: .84rem; color: var(--sourd); }
@media (max-width: 900px) { .confiance__grille { grid-template-columns: repeat(2, 1fr); } .confiance__item:nth-child(2) { border-right: 0; } .confiance__item:nth-child(-n+2) { border-bottom: 1px solid var(--trait); } }
@media (max-width: 480px) { .confiance__grille { grid-template-columns: 1fr; } .confiance__item { border-right: 0 !important; border-bottom: 1px solid var(--trait); } }

/* ---------- Cartes ------------------------------------------------------- */
.grille { display: grid; gap: 1.4rem; }
.grille > *, .split > *, .portails > *, .etapes > *, .chiffres > * { min-width: 0; }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grille--4 { grid-template-columns: repeat(2, 1fr); } .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; } }

.carte {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.6rem; box-shadow: var(--ombre-s);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.carte:hover { transform: translateY(-5px); box-shadow: var(--ombre); border-color: #d5deea; }
.carte p:last-child { margin-bottom: 0; }
.carte__icone {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--bleu-100); color: var(--bleu-600); margin-bottom: 1.1rem;
}
.carte__icone svg { width: 28px; height: 28px; }
.carte--cuivre .carte__icone { background: var(--cuivre-100); color: var(--cuivre-700); }
.carte .lien-fleche { margin-top: auto; padding-top: 1rem; }
.carte__liste { list-style: none; padding: 0; margin: .3rem 0 1rem; display: grid; gap: .45rem; }
.carte__liste li { position: relative; padding-left: 1.5rem; font-size: .97rem; }
.carte__liste li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

.carte--image { padding: 0; overflow: hidden; }
.carte--image .carte__visuel { aspect-ratio: 4 / 3; overflow: hidden; }
.carte--image .carte__visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte--image:hover .carte__visuel img { transform: scale(1.06); }
.carte--image .carte__corps { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.carte--image.carte--haute .carte__visuel { aspect-ratio: 3 / 3.4; }

.carte--metier { position: relative; }
.carte--metier .etiquette { position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.etiquette {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--cuivre-600); color: #fff;
}
.etiquette--bleu { background: var(--bleu-600); }
.etiquette--claire { background: #fff; color: var(--encre); border: 1px solid var(--trait); }

.carte--sombre { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #d7e3f2; box-shadow: none; }
.carte--sombre:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.carte--sombre .carte__icone { background: rgba(255,255,255,.1); color: #fff; }
.carte--sombre h3 { color: #fff; }
.carte--sombre .carte__liste li::before { border-color: var(--or); }

/* Carte phare (recherche de fuite) */
.phare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .phare { grid-template-columns: 1fr; } }
.phare__visuel { position: relative; }
.phare__visuel img { border-radius: var(--rayon-l); box-shadow: var(--ombre-l); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.phare__badge {
  position: absolute; right: -14px; bottom: 26px; background: #fff; border-radius: var(--rayon); padding: .9rem 1.1rem;
  box-shadow: var(--ombre); display: flex; gap: .8rem; align-items: center; max-width: 280px; border: 1px solid var(--trait);
}
.phare__badge svg { width: 34px; height: 34px; color: var(--ok); flex: none; }
.phare__badge strong { display: block; font-size: .95rem; }
.phare__badge span { font-size: .82rem; color: var(--sourd); }
@media (max-width: 640px) { .phare__badge { position: static; margin-top: 1rem; max-width: none; } }

.methodes { display: grid; gap: .8rem; margin: 1.4rem 0; }
.methode { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1rem 1.1rem; border-radius: var(--rayon-s); background: #fff; border: 1px solid var(--trait); }
.methode__num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--bleu-600); background: var(--bleu-100); }
.methode strong { display: block; margin-bottom: .15rem; }
.methode p { margin: 0; font-size: .95rem; color: var(--sourd); }

/* ---------- Sections en deux colonnes ----------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--inverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--inverse > :first-child { order: 0; } }
.split img { border-radius: var(--rayon-l); box-shadow: var(--ombre-l); width: 100%; object-fit: cover; }
.split__visuel--ratio img { aspect-ratio: 4 / 3; }

.liste-coches { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.liste-coches li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.liste-coches li::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%; flex: none; margin-top: .1rem;
  background: var(--bleu-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fb5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 15px no-repeat;
}
.section--marine .liste-coches li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a61b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
.liste-coches li strong { display: block; }
.liste-coches li span { color: var(--sourd); font-size: .97rem; }
.section--marine .liste-coches li span { color: #b9c9dd; }

/* ---------- Chiffres / engagements -------------------------------------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
.chiffre { padding: 1.4rem 1.2rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--trait); }
.chiffre strong { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--bleu-600); letter-spacing: -0.03em; line-height: 1; margin-bottom: .4rem; }
.chiffre span { font-size: .92rem; color: var(--sourd); }

/* ---------- Étapes ------------------------------------------------------- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: etape; }
@media (max-width: 900px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }
.etape { position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--trait); }
.etape::before {
  counter-increment: etape; content: counter(etape, decimal-leading-zero);
  display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .12em; color: var(--cuivre-700);
  background: var(--cuivre-100); padding: .3rem .6rem; border-radius: 8px; margin-bottom: .9rem;
}
.etape h3 { font-size: 1.12rem; }
.etape p { margin: 0; font-size: .96rem; color: var(--sourd); }

/* ---------- Espace client / portails ------------------------------------ */
.portails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .portails { grid-template-columns: 1fr; } }
.portail {
  position: relative; padding: 1.8rem 1.6rem; border-radius: var(--rayon-l); background: #fff; border: 1px solid var(--trait);
  box-shadow: var(--ombre-s); display: flex; flex-direction: column; gap: .6rem; min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.portail:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.portail--phare { border-color: var(--bleu-500); box-shadow: 0 0 0 4px var(--bleu-100), var(--ombre); }
.portail__pour { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cuivre-700); }
.portail h3 { margin-bottom: .2rem; }
.portail ul { list-style: none; padding: 0; margin: .2rem 0 .8rem; display: grid; gap: .35rem; font-size: .95rem; color: var(--sourd); }
.portail ul li { padding-left: 1.3rem; position: relative; }
.portail ul li::before { content: '•'; position: absolute; left: .2rem; color: var(--bleu-600); font-weight: 800; }
.portail__actions { margin-top: auto; display: grid; gap: .5rem; }
.portail__actions .bouton { white-space: normal; }
.portail__aide { font-size: .84rem; color: var(--sourd); margin: 0; }
.portail__aide a { font-weight: 700; }

.mockup-portail {
  position: relative; border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre-l);
  border: 1px solid rgba(255,255,255,.14);
}
.mockup-portail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mockup-portail__carte {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; max-width: 360px;
  background: rgba(255,255,255,.96); color: var(--encre); border-radius: var(--rayon); padding: .9rem 1rem;
  box-shadow: var(--ombre); font-size: .9rem;
}
.mockup-portail__carte .ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--trait); }
.mockup-portail__carte .ligne:last-child { border: 0; }
.mockup-portail__carte .etat { font-weight: 800; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; }
.etat--ok { background: #e3f6ea; color: #167a41; }
.etat--attente { background: #fff2dc; color: #9a5b00; }
.etat--info { background: var(--bleu-100); color: var(--bleu-600); }

/* ---------- Zone d'intervention ----------------------------------------- */
.villes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.villes span { padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--trait); font-weight: 600; font-size: .92rem; color: var(--encre); }
.villes span.principale { background: var(--bleu-600); border-color: var(--bleu-600); color: #fff; }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0 1.3rem; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--ombre-s); border-color: #d5deea; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.4rem 1.1rem 0; font-weight: 700; font-size: 1.04rem; color: var(--encre); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: .2rem; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--bleu-600); border-bottom: 2.5px solid var(--bleu-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__reponse { padding: 0 0 1.2rem; color: var(--texte); }
.faq .faq__reponse p:last-child { margin-bottom: 0; }

/* ---------- Formulaire --------------------------------------------------- */
.formulaire {
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-l); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--ombre);
}
.formulaire__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 640px) { .formulaire__grille { grid-template-columns: 1fr; } }
.champ { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-weight: 700; font-size: .92rem; color: var(--encre); }
.champ label small { font-weight: 500; color: var(--sourd); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-width: 0; font: inherit; color: var(--encre); background: var(--fond);
  border: 1.5px solid var(--trait); border-radius: 12px; padding: .8rem .95rem; min-height: 50px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu-500); background: #fff; box-shadow: 0 0 0 4px var(--bleu-100); }
.champ textarea { min-height: 140px; resize: vertical; }
.champ select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6c7b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.6rem; }
.champ .aide { font-size: .84rem; color: var(--sourd); }

.segments { display: flex; flex-wrap: wrap; gap: .5rem; }
.segments label { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--trait); background: var(--fond); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .18s ease; }
.segments label:has(input:checked) { background: var(--bleu-600); border-color: var(--bleu-600); color: #fff; }
.segments input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }

.consentement { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .88rem; color: var(--sourd); }
.consentement input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--bleu-600); }
.formulaire__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.formulaire__pied .note { font-size: .84rem; color: var(--sourd); margin: 0; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.formulaire__message { display: none; padding: .9rem 1.1rem; border-radius: 12px; margin-top: 1rem; font-weight: 600; }
.formulaire__message.est-ok { display: block; background: #e3f6ea; color: #167a41; }
.formulaire__message.est-erreur { display: block; background: #fdeaea; color: #a12c2c; }

.coordonnees { display: grid; gap: 1rem; }
.coordonnee { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--trait); }
.coordonnee svg { width: 24px; height: 24px; color: var(--bleu-600); margin-top: .15rem; }
.coordonnee strong { display: block; }
.coordonnee a { font-weight: 700; text-decoration: none; }
.coordonnee span, .coordonnee small { color: var(--sourd); font-size: .92rem; }

/* ---------- Appel à l'action final --------------------------------------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 15% 100%, rgba(232,100,27,.28), transparent 60%); pointer-events: none; }
.cta-final .conteneur { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .cta-final .conteneur { grid-template-columns: 1fr; } }
.cta-final h2 { max-width: 20ch; }
.cta-final__actions { display: grid; gap: .7rem; min-width: 280px; }

/* ---------- Pied de page ------------------------------------------------- */
.pied { background: var(--marine-950); color: #9fb3c9; padding-block: 3.5rem 1.5rem; font-size: .93rem; }
.pied a { color: #d7e3f2; text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied__grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: 1fr; } }
.pied h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pied .logo img { height: 64px; background: #fff; border-radius: 12px; padding: 6px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.4rem; font-size: .82rem; color: #7f93aa; }
.pied__bas a { color: #9fb3c9; }
.pied__mentions { font-size: .8rem; color: #7f93aa; margin-top: 1rem; }

/* ---------- Fil d'Ariane / en-tête de page ------------------------------ */
.entete-page {
  background: linear-gradient(180deg, var(--marine-900), var(--marine-800)); color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden;
}
.entete-page::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(30,167,225,.28), transparent 65%); }
.entete-page h1 { color: #fff; max-width: 18ch; }
.entete-page .chapo { color: #c3d2e5; max-width: 62ch; }
.entete-page .surtitre { color: var(--or); }
.entete-page .surtitre::before { background: var(--or); }
.ariane { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: #9fb3c9; }
.ariane a { color: #d7e3f2; text-decoration: none; }
.ariane li + li::before { content: '/'; margin-right: .4rem; color: #5f7590; }
.entete-page__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; position: relative; }
.entete-page--visuel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .entete-page--visuel { grid-template-columns: 1fr; } }
.entete-page--visuel img { border-radius: var(--rayon-l); box-shadow: var(--ombre-l); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; position: relative; z-index: 1; }

/* ---------- Encadré ------------------------------------------------------ */
.encadre { padding: 1.4rem 1.6rem; border-radius: var(--rayon); background: var(--bleu-100); border-left: 4px solid var(--bleu-600); }
.encadre--cuivre { background: var(--cuivre-100); border-left-color: var(--cuivre-600); }
.encadre p:last-child { margin-bottom: 0; }

/* Pages légales / prose */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.prose th { color: var(--encre); background: var(--fond-2); }
.tableau-defilant { overflow-x: auto; }

/* ---------- Apparition au défilement ------------------------------------ */
.reveler { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveler.est-visible { opacity: 1; transform: none; }
.reveler--2 { transition-delay: .1s; }
.reveler--3 { transition-delay: .2s; }
.reveler--4 { transition-delay: .3s; }

/* Bouton d'appel flottant (mobile) */
.appel-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 900; display: none;
  width: 58px; height: 58px; border-radius: 50%; background: var(--cuivre-600); color: #fff;
  box-shadow: 0 12px 30px rgba(232,100,27,.45); align-items: center; justify-content: center;
}
.appel-flottant svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .appel-flottant { display: inline-flex; } }

/* ---------- Accessibilité / mouvement ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveler { opacity: 1; transform: none; }
  .hero__scene.est-active img { animation: none; }
}

@media print {
  .bandeau-urgence, .nav, .appel-flottant, .hero__scenario, .cta-final, .tiroir { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; }
  a { color: #000; }
}
