/* ============================================================
   index.css — Le bureau des requêtes · Ordre des Bannis
   Une tour la nuit : deux faisceaux qui balaient, une mer noire,
   des braises qui montent. Le formulaire tient la place du guichet,
   la FAQ celle de la vigie.
   Moteur : public/assets/js/phare.js
   ============================================================ */

/* ── 1. Jetons de la page ───────────────────────────────────── */
.phare-page{
  --ph-ink: #f8ede8;
  --ph-soft: #d3bab6;
  --ph-muted: #a1848a;
  --ph-ruby: #ff3d5c;
  --ph-ember: #ff7a3c;
  --ph-amber: #ffb340;
  --ph-gold: #ffdc9a;
  --ph-line: #ffb9a326;
  --ph-line-soft: #ffb9a312;
  --ph-glass: linear-gradient(158deg, #ffffff0e, #ffffff03 46%), #241813d9;
  --ph-flame: linear-gradient(96deg, #ff5f74 0%, #ff9a5f 46%, #ffe6b8 100%);
  --ph-ease: cubic-bezier(.16, 1, .3, 1);
  /* Canaux de profondeur nourris par phare.js : avancée de lecture, puis
     position du regard en [-.5, .5]. */
  --ph-progress: 0%;
  --ph-px: 0;
  --ph-py: 0;
  /* Teinte du canal ou de la veilleuse, redéfinie élément par élément. */
  --phare-tone: #ff8a4c;

  position: relative; z-index: 1; min-width: 0;
  padding: 0 var(--page-gutter) clamp(60px, 9vh, 130px);
  color: var(--ph-ink); font-family: var(--font-body);
}
/* La remise à zéro ne doit jamais gagner contre un composant : :where() la
   laisse toujours perdante en cas d'égalité. */
.phare-page :where(h1, h2, h3, h4, p, ol, ul, li, dl, dt, dd, figure){ margin: 0; padding: 0 }
.phare-page :where(ol, ul){ list-style: none }
.phare-page :where(p, ol, ul, dl){ max-width: none }
.phare-page em{ font-style: normal }
:where(.phare-page a){ color: inherit; text-decoration: none }
.phare-page :is(a, button, input, select, textarea, summary):focus-visible{
  outline: 2px solid var(--ph-gold); outline-offset: 4px; border-radius: 10px;
}

html[data-theme="light"] .phare-page{
  --ph-ink: #2b1a18;
  --ph-soft: #5d4642;
  --ph-muted: #8b706c;
  /* Les teintes pâles de la flamme disparaissent sur le fond pêche : on les
     descend d'un cran, ce qui corrige d'un coup canaux, cartes et veilleuses. */
  --ph-amber: #cf750b;
  --ph-gold: #a4560d;
  --ph-line: #b9544633;
  --ph-line-soft: #b954461a;
  --ph-flame: linear-gradient(96deg, #e2555c 0%, #e2683a 52%, #b97814 100%);
  --ph-glass: linear-gradient(158deg, #fffffff2, #ffffffc4 46%), #fff4ecf0;
}

/* ── 2. Atmosphère : faisceaux, voûte, mer, braises ─────────── */
.phare-atmos{ position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none }
.phare-sweep{
  position: absolute; top: -34%; left: 50%; width: 30vw; height: 150%;
  transform-origin: 50% 0; filter: blur(48px);
  translate: calc(var(--ph-px) * -26px) calc(var(--ph-py) * -16px);
}
/* Un cône de lumière obtenu par un masque en fuseau : rien ne tourne,
   le faisceau respire, la framerate reste intacte. */
.phare-sweep::before{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#ffcf9a30, #ff7a3c0d 42%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 38% 60% at 50% 0, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 38% 60% at 50% 0, #000, transparent 72%);
  animation: ph-sweep 17s ease-in-out infinite;
}
.phare-sweep--a::before{ rotate: -22deg }
.phare-sweep--b{ top: -30%; left: 58% }
.phare-sweep--b::before{ rotate: 26deg; animation-delay: -8.5s; background: linear-gradient(#ffb34026, #ff3d5c08 44%, transparent 78%) }
.phare-vault{
  position: absolute; inset: 0; display: grid; place-items: center;
  overflow: hidden; user-select: none;
  translate: calc(var(--ph-px) * 38px) calc(var(--ph-py) * 26px + var(--ph-progress) * -.28);
}
.phare-vault > .bi{
  font-size: clamp(300px, 38vw, 760px); line-height: 1;
  color: #ff8a4c05; opacity: .5;
  -webkit-text-stroke: 1.4px #ff8a4c1c;
  filter: drop-shadow(0 0 70px #ff5c3a12);
  rotate: -6deg;
}
/* La mer : deux nappes répétées, vues de très haut, dont l'écume glisse. */
.phare-sea{
  position: absolute; left: -25%; right: -25%; bottom: -8%; height: 42vh;
  background:
    repeating-linear-gradient(90deg, #ff8a4c10 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, #ffb3400d 0 1px, transparent 1px 74px);
  transform: perspective(420px) rotateX(74deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000c, transparent 78%);
  mask-image: linear-gradient(to top, #000c, transparent 78%);
  animation: ph-sea 22s linear infinite;
}
.phare-vignette{ position: absolute; inset: 0; background: radial-gradient(ellipse 80% 64% at 50% 38%, transparent 42%, #0b0507a8 100%) }
/* Les braises montent en translate pur : aucun filtre, la framerate reste intacte. */
.phare-embers{ position: absolute; inset: auto 0 0; height: 62vh }
.phare-embers i{
  position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #fff2cf, var(--ph-ember) 58%, #ff3d5c00);
  box-shadow: 0 0 12px 3px #ff8a4c5c;
  opacity: 0; animation: ph-ember 9.5s linear infinite;
}
.phare-embers i:nth-child(1){ left: 9%; animation-delay: -.4s }
.phare-embers i:nth-child(2){ left: 26%; animation-delay: -2.6s; scale: .7 }
.phare-embers i:nth-child(3){ left: 43%; animation-delay: -5.1s; scale: 1.25 }
.phare-embers i:nth-child(4){ left: 58%; animation-delay: -1.5s; scale: .8 }
.phare-embers i:nth-child(5){ left: 74%; animation-delay: -6.8s }
.phare-embers i:nth-child(6){ left: 89%; animation-delay: -3.9s; scale: .65 }
html[data-theme="light"] .phare-atmos{ opacity: .42 }
html[data-theme="light"] .phare-vignette{ background: radial-gradient(ellipse 80% 64% at 50% 38%, transparent 46%, #6b3b2a12 100%) }

/* ── 3. Scène d'ouverture ───────────────────────────────────── */
.phare-stage{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(28px, 4.4vw, 84px); align-items: center;
  max-width: 1420px; margin-inline: auto;
  padding: clamp(40px, 8vh, 104px) 0 clamp(52px, 7vh, 88px);
  container-type: inline-size;
}
.phare-wordmark{
  position: absolute; left: 50%; bottom: 2%;
  translate: calc(-50% + var(--ph-progress) * -.5) 0;
  font-family: 'Rocket Brush', 'Outfit', sans-serif; font-weight: 400;
  font-size: clamp(28px, 5vw, 110px); line-height: .9; letter-spacing: 0;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px #ffb9a31c;
  pointer-events: none; user-select: none;
}
html[data-theme="light"] .phare-wordmark{ -webkit-text-stroke-color: #b954462b }
.phare-kicker{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border: 1px solid var(--ph-line); border-radius: 999px;
  background: #ffffff07;
  font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ph-amber);
}
.phare-kicker > i{ flex: 0 0 34px; height: 1px; background: linear-gradient(90deg, var(--ph-ember), transparent); box-shadow: 0 0 14px #ff7a3c66 }
html[data-theme="light"] .phare-kicker{ color: #a4560d; background: #b954460a }
.phare-stage-copy > .phare-kicker{ margin-bottom: clamp(16px, 2.4vh, 28px) }
/* Titre posé sur la scène, pas sur sa colonne : deux lignes et il déborde
   dans l'intervalle au lieu de s'empiler. */
.phare-page .phare-stage h1{
  width: max-content; max-width: 122%;
  font-family: 'Rocket Brush', 'Outfit', sans-serif !important;
  font-size: clamp(38px, 8.6cqi, 96px); font-weight: 400; line-height: 1.12;
  letter-spacing: 0;
}
.phare-stage h1 em{
  background: var(--flame-text); background-size: 220% 100%; background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: ph-shimmer 9s ease-in-out infinite;
}
.phare-stage-copy > p{
  max-width: 50ch; margin-top: clamp(18px, 2.2vh, 28px);
  font-size: clamp(16px, 1.15vw, 19px); line-height: 1.85; color: var(--ph-soft);
}
.phare-stage-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 1.6vw, 26px); margin-top: clamp(24px, 3.4vh, 40px) }
.phare-note{
  display: flex; align-items: center; gap: 10px; margin-top: clamp(20px, 2.8vh, 32px);
  font-size: 13.5px; line-height: 1.7; color: var(--ph-muted);
}
.phare-note > .bi{ font-size: 16px; color: var(--ph-amber) }

/* ── 4. Boutons et liens de la scène ────────────────────────── */
.phare-button{
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 16px 30px; border-radius: 999px;
  background: var(--ph-flame); background-size: 180% 100%;
  color: #2b0d10; font-family: 'Outfit', var(--font-body);
  font-size: 16px; font-weight: 650; letter-spacing: .01em;
  box-shadow: 0 16px 34px #ff5a3d2e, inset 0 1px 0 #ffffff5c;
  transition: translate .45s var(--ph-ease), scale .45s var(--ph-ease), background-position .8s var(--ph-ease), box-shadow .45s var(--ph-ease);
}
.phare-button::after{
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(120px 60px at var(--ph-mx, 50%) var(--ph-my, 50%), #ffffff7a, transparent 70%);
  transition: opacity .4s ease;
}
.phare-button:hover{ translate: 0 -3px; scale: 1.015; background-position: 100% 0; box-shadow: 0 22px 44px #ff5a3d45, inset 0 1px 0 #ffffff7a }
.phare-button:hover::after{ opacity: 1 }
.phare-button > .bi{ font-size: 1.05em }
.phare-text-link{
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 15px; font-weight: 550; letter-spacing: .02em; color: var(--ph-soft);
  transition: color .3s ease, gap .35s var(--ph-ease);
}
.phare-text-link:hover{ color: var(--ph-gold); gap: .85em }

/* ── 5. La tour : lanterne puis veilleuses ──────────────────── */
.phare-tower{ display: grid; justify-items: center; gap: clamp(16px, 2.4vh, 28px) }
.phare-lantern{
  --ph-dial: clamp(150px, 21cqi, 230px);
  position: relative; display: grid; place-items: center;
  width: var(--ph-dial); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 118%, #ff5a3d2e, transparent 62%), var(--ph-glass);
  box-shadow: inset 0 1px 0 #ffffff14, 0 24px 54px #0a040766;
}
.phare-lantern::before{
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px dashed #ffdc9a2e; animation: ph-spin 38s linear infinite;
}
.phare-halo{
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, #ff8a4c2e, transparent 66%);
  animation: ph-breathe 7.5s ease-in-out infinite;
}
.phare-glass{
  position: relative; z-index: 1; display: grid; place-items: center;
  font-size: calc(var(--ph-dial) * .34);
  background: var(--flame-text); background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px #ff5a3d40);
}
.phare-panel{ display: grid; justify-items: center; gap: clamp(10px, 1.5vh, 16px); width: 100% }
.phare-lamp-row{
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
  width: 100%; max-width: 380px; padding: 13px 18px;
  border: 1px solid var(--ph-line-soft); border-radius: 15px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--phare-tone) 9%, transparent), transparent 58%), #ffffff06;
  transition: border-color .35s ease, translate .45s var(--ph-ease), background .35s ease;
}
.phare-lamp-row:hover{ border-color: color-mix(in srgb, var(--phare-tone) 42%, transparent); translate: 0 -2px }
.phare-lamp-row > span{ display: grid; gap: 2px; min-width: 0 }
.phare-lamp-row small{ font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ph-muted) }
.phare-lamp-row strong{ font-family: 'Outfit', var(--font-body); font-size: 17px; font-weight: 600; color: var(--ph-ink) }
.phare-lamp-beacon{
  width: 11px; height: 11px; border-radius: 50%; background: var(--phare-tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--phare-tone) 16%, transparent), 0 0 16px 2px color-mix(in srgb, var(--phare-tone) 60%, transparent);
  animation: ph-pulse 3.4s ease-in-out infinite;
}
html[data-theme="light"] .phare-lamp-row{ background: linear-gradient(100deg, color-mix(in srgb, var(--phare-tone) 14%, transparent), transparent 58%), #ffffffa8 }
html[data-theme="light"] .phare-lantern{ box-shadow: inset 0 1px 0 #ffffffcc, 0 18px 40px #8d3a2f22 }

/* ── 6. Les trois voies ─────────────────────────────────────── */
.phare-channels{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 1420px; margin: clamp(10px, 1.6vh, 20px) auto 0;
}
.phare-channel{
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 1.4vw, 18px);
  min-width: 0; padding: clamp(18px, 1.8vw, 24px);
  border: 1px solid color-mix(in srgb, var(--phare-tone) 22%, transparent); border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0, color-mix(in srgb, var(--phare-tone) 9%, transparent), transparent 62%),
    var(--ph-glass);
  transition: border-color .35s ease, translate .45s var(--ph-ease), box-shadow .35s ease;
}
.phare-channel:hover{ translate: 0 -3px; border-color: color-mix(in srgb, var(--phare-tone) 46%, transparent); box-shadow: 0 18px 40px #0a040755 }
.phare-channel.is-static{ grid-template-columns: auto minmax(0, 1fr) }
.phare-channel-ico{
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--phare-tone) 30%, transparent);
  background: color-mix(in srgb, var(--phare-tone) 11%, transparent);
  color: var(--phare-tone); font-size: 20px;
}
.phare-channel-copy{ display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere }
.phare-channel-copy strong{ font-family: 'Outfit', var(--font-body); font-size: 15px; font-weight: 600; color: var(--ph-ink) }
.phare-channel-copy span{ font-size: 13px; line-height: 1.65; color: var(--ph-muted) }
.phare-channel-go{ font-size: 15px; color: var(--phare-tone); transition: translate .35s var(--ph-ease) }
.phare-channel:hover .phare-channel-go{ translate: 3px -3px }

/* ── 7. Guichet et vigie ────────────────────────────────────── */
.phare-grid{
  display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px); align-items: start;
  max-width: 1420px; margin: clamp(18px, 2.6vh, 30px) auto 0;
}
.phare-card{
  position: relative; overflow: hidden; scroll-margin-top: 24px;
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--ph-line-soft); border-radius: 28px;
  background:
    radial-gradient(ellipse 62% 110% at 100% 0, #ff8a4c0d, transparent 60%),
    var(--ph-glass);
  box-shadow: inset 0 1px 0 #ffffff0a;
}
.phare-card--form{ border-color: color-mix(in srgb, var(--ph-amber) 26%, transparent) }
.phare-card .phare-kicker{ margin-bottom: clamp(12px, 1.6vh, 18px) }
.phare-page .phare-card-title{
  display: flex; align-items: center; gap: 13px; max-width: none;
  font-family: 'Rocket Brush', 'Outfit', sans-serif !important;
  font-size: clamp(24px, 2.1vw, 32px); font-weight: 400; line-height: 1.2; letter-spacing: 0;
}
.phare-card-title > .bi{ font-size: .92em; color: var(--ph-amber); filter: drop-shadow(0 0 12px #ffb34040) }
.phare-intro{ max-width: 62ch; margin-top: clamp(12px, 1.5vh, 18px); font-size: 14.5px; line-height: 1.8; color: var(--ph-muted) }
.phare-side{ display: grid; gap: clamp(18px, 2.2vw, 30px); align-content: start; min-width: 0 }

/* ── 8. Les bandeaux de réponse ─────────────────────────────── */
.phare-flash{ display: grid; gap: 8px; margin: clamp(18px, 2.2vh, 26px) 0 0 }
.phare-flash li{
  display: flex; align-items: center; gap: 11px; padding: 14px 18px;
  border-radius: 16px; font-size: 14px; line-height: 1.65;
  border: 1px solid #76d2bc47; background: #76d2bc12; color: #a9e6d6;
}
.phare-flash .bi{ flex: 0 0 auto; font-size: 17px }
.phare-flash--err li{ border-color: #ff6b7d47; background: #ff6b7d12; color: #ffb3bd }
html[data-theme="light"] .phare-flash li{ color: #1d6b58 }
html[data-theme="light"] .phare-flash--err li{ color: #a12534 }

/* ── 9. Le formulaire ───────────────────────────────────────── */
.phare-form{ display: grid; margin-top: clamp(22px, 3vh, 34px) }
.phare-field ~ .phare-field{ margin-top: clamp(18px, 2vh, 26px) }
.phare-label{
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 10px;
  font-size: 14px; font-weight: 550; color: var(--ph-soft);
}
.phare-req{ color: var(--ph-ruby) }
.phare-count{ margin-left: auto; font-size: 11.5px; font-weight: 400; letter-spacing: .04em; color: var(--ph-muted); font-variant-numeric: tabular-nums }
.phare-count.is-full{ color: var(--ph-ruby) }
/* Le seul point où la coquille force la main : elle pose 8 px en !important avec
   quatre gardes :not(), ce qui lui donne une spécificité de (0,5,1) — aucune classe
   de page ne l'atteint. Reprendre les mêmes gardes, pour le seul arrondi. */
html body .app-main .phare-page .phare-field :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea){
  border-radius: 14px !important;
}
html body .phare-page .phare-field :is(input, select, textarea){
  width: 100%; min-width: 0; padding: 14px 17px;
  border: 1px solid var(--ph-line) !important;
  background: #120c0ca8; color: var(--ph-ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  box-shadow: inset 0 1px 0 #ffffff0a;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.phare-beside{ position: relative; display: block }
.phare-beside > .bi{
  position: absolute; left: 16px; top: 17px; z-index: 2;
  font-size: 16px; color: var(--ph-amber); pointer-events: none;
}
.phare-beside--tall > .bi{ top: 19px }
html body .phare-page .phare-beside :is(input, textarea){ padding-left: 44px }
html body .phare-page .phare-field textarea{ min-height: 210px; resize: vertical }
html body .phare-page .phare-field :is(input, select, textarea)::placeholder{ color: #a1848a99 }
html body .phare-page .phare-field :is(input, select, textarea):hover{ border-color: #ffb9a340 !important }
html body .phare-page .phare-field :is(input, select, textarea):focus{
  border-color: var(--ph-gold) !important; background: #1a100cc4;
  box-shadow: 0 0 0 4px #ffdc9a14, inset 0 1px 0 #ffffff0f; outline: none;
}
html[data-theme="light"] body .phare-page .phare-field :is(input, select, textarea){ background: #ffffffcc; color: var(--ph-ink) }
html[data-theme="light"] body .phare-page .phare-field :is(input, select, textarea):focus{ background: #fffdf9 }

/* Le choix du sujet : une liste à l'habilleuse, ouvrante sur une flèche. */
.phare-select{ position: relative; display: block }
html body .phare-page .phare-select select{ appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; color-scheme: dark }
.phare-select > .bi{
  position: absolute; right: 17px; top: 50%; translate: 0 -50%; z-index: 2;
  font-size: 14px; color: var(--ph-muted); pointer-events: none;
  transition: color .3s ease
}
.phare-select:focus-within > .bi{ color: var(--ph-gold) }
html[data-theme="light"] body .phare-page .phare-select select{ color-scheme: light }
.phare-hint{ margin-top: 9px; font-size: 12.5px; line-height: 1.7; color: var(--ph-muted) }
.phare-err{ display: grid; gap: 5px; margin-top: 9px }
.phare-err li{ font-size: 12.5px; line-height: 1.6; color: #ffb3bd }
html[data-theme="light"] .phare-err li{ color: #a12534 }

.phare-actions{ display: grid; gap: clamp(14px, 1.8vh, 20px); margin-top: clamp(24px, 3vh, 34px) }
.phare-send{
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  width: 100%; min-height: 56px; padding: 16px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ph-flame); background-size: 180% 100%;
  font-family: 'Outfit', var(--font-body); font-size: 16px; font-weight: 650; color: #2b0d10;
  box-shadow: 0 14px 30px #ff5a3d33, inset 0 1px 0 #ffffff5c;
  transition: translate .45s var(--ph-ease), background-position .8s var(--ph-ease), box-shadow .45s var(--ph-ease);
}
.phare-send::after{
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(180px 80px at var(--ph-mx, 50%) var(--ph-my, 50%), #ffffff7a, transparent 70%);
  transition: opacity .4s ease;
}
.phare-send:hover{ translate: 0 -3px; background-position: 100% 0; box-shadow: 0 20px 40px #ff5a3d4d, inset 0 1px 0 #ffffff7a }
.phare-send:hover::after{ opacity: 1 }
.phare-send > .bi{ font-size: 1.05em }
.phare-lock{ display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ph-muted) }
.phare-lock > .bi{ flex: 0 0 auto; margin-top: 3px; font-size: 15px; color: var(--ph-amber) }
.phare-lock-link{ color: var(--ph-gold); text-decoration: underline; text-underline-offset: 3px }

/* ── 10. La vigie : questions et réponses ───────────────────── */
.phare-faq{ display: grid; gap: 10px; margin-top: clamp(20px, 2.6vh, 28px) }
.phare-query{
  overflow: hidden;
  border: 1px solid var(--ph-line-soft); border-radius: 16px;
  background: #ffffff04;
  transition: border-color .35s ease, background .35s ease;
}
.phare-query:hover{ border-color: var(--ph-line) }
.phare-query[open]{ border-color: #ffdc9a45; background: #ffdc9a0a }
.phare-query summary{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 14px; line-height: 1.65; font-weight: 550; color: var(--ph-soft);
}
.phare-query summary::-webkit-details-marker{ display: none }
.phare-query summary > .bi{ flex: 0 0 auto; font-size: 13px; color: var(--ph-amber); transition: rotate .3s var(--ph-ease) }
.phare-query[open] summary > .bi{ rotate: 180deg }
.phare-query-body{
  padding: 0 18px 18px;
  font-size: 13.5px; line-height: 1.85; color: var(--ph-muted);
}
.phare-query-body a{ color: var(--ph-gold); text-decoration: underline; text-underline-offset: 3px }

.phare-notes{ display: grid; gap: clamp(14px, 1.8vh, 20px); margin-top: clamp(18px, 2.4vh, 26px) }
.phare-notes li{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start }
.phare-notes > li > .bi{ margin-top: 2px; font-size: 19px; color: var(--ph-amber) }
.phare-notes strong{ display: block; font-family: 'Outfit', var(--font-body); font-size: 14px; font-weight: 600; color: var(--ph-ink) }
.phare-notes li span span{ display: block; margin-top: 5px; font-size: 13px; line-height: 1.75; color: var(--ph-muted) }

/* ── 11. La clôture : les sorties ───────────────────────────── */
.phare-call{
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center;
  gap: clamp(24px, 3vw, 56px);
  max-width: 1420px; margin: clamp(46px, 7vh, 96px) auto 0;
  padding: clamp(30px, 3.8vw, 58px) clamp(24px, 3vw, 54px);
  border: 1px solid var(--ph-line-soft); border-radius: 32px;
  background: radial-gradient(ellipse 70% 120% at 50% 118%, #ff5a3d24, transparent 68%), var(--ph-glass);
}
.phare-call-copy > .phare-kicker{ margin-bottom: clamp(14px, 1.8vh, 20px) }
.phare-page .phare-call h2{
  max-width: none;
  font-family: 'Rocket Brush', 'Outfit', sans-serif !important; font-size: clamp(30px, 3.1vw, 48px);
  font-weight: 400; line-height: 1.16; letter-spacing: 0;
}
.phare-call h2 em{ background: var(--flame-text); background-size: 220% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ph-shimmer 9s ease-in-out infinite }
.phare-call-copy > p{ max-width: 54ch; margin-top: clamp(14px, 1.8vh, 22px); font-size: 15.5px; line-height: 1.85; color: var(--ph-soft) }
.phare-call-list{ display: grid; gap: 12px }
.phare-exit{
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--ph-line-soft); border-radius: 18px;
  background: #ffffff05;
  transition: border-color .35s ease, background .35s ease, translate .45s var(--ph-ease);
}
.phare-exit:hover{ border-color: var(--ph-line); background: #ffffff09; translate: 0 -2px }
.phare-exit > .bi{ font-size: 19px; color: var(--ph-amber) }
.phare-exit strong{ display: block; font-family: 'Outfit', var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ph-ink) }
.phare-exit small{ display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: var(--ph-muted) }
.phare-exit-go{ font-size: 14px; color: var(--ph-muted); transition: translate .35s var(--ph-ease), color .3s ease }
.phare-exit:hover .phare-exit-go{ translate: 3px -3px; color: var(--ph-gold) }

/* ── 12. L'ouverture, puis les bandeaux qui se déplient ─────── */
/* Le jeton vient du moteur : sans lui, tout reste visible et posé. */
@keyframes ph-rise { from { opacity: 0; translate: 0 26px } to { opacity: 1; translate: 0 0 } }
@keyframes ph-lift { from { opacity: 0; translate: 0 14px; scale: .96 } to { opacity: 1; translate: 0 0; scale: 1 } }
@keyframes ph-breathe { 0%, 100% { opacity: .6 } 50% { opacity: 1 } }
@keyframes ph-spin { to { rotate: 360deg } }
@keyframes ph-sweep { 0%, 100% { transform: rotate(-7deg); opacity: .55 } 50% { transform: rotate(7deg); opacity: 1 } }
@keyframes ph-sea { to { background-position: 0 74px, 0 74px } }
@keyframes ph-ember { 0% { opacity: 0; translate: 0 0 } 12% { opacity: 1 } 100% { opacity: 0; translate: -18px -58vh } }
@keyframes ph-pulse { 0%, 100% { opacity: .72 } 50% { opacity: 1 } }
@keyframes ph-shimmer { 0%, 100% { background-position: 0 0 } 50% { background-position: 100% 0 } }
[data-modeste] .phare-page :is(.phare-stage h1, .phare-call h2) em{ animation: none }

.ph-motion .phare-stage-copy > :not([aria-hidden]){ animation: ph-rise .95s var(--ph-ease) both }
.ph-motion .phare-stage-copy > :nth-child(2){ animation-delay: .18s }
.ph-motion .phare-stage-copy > :nth-child(3){ animation-delay: .3s }
.ph-motion .phare-stage-copy > :nth-child(4){ animation-delay: .44s }
.ph-motion .phare-stage-copy > :nth-child(5){ animation-delay: .58s }
.ph-motion .phare-tower{ animation: ph-lift 1.1s var(--ph-ease) .3s both }

.ph-motion :is(.phare-channels, .phare-card, .phare-call){
  transition: opacity .85s var(--ph-ease), translate .85s var(--ph-ease);
}
.ph-motion :is(.phare-channels, .phare-card, .phare-call):not(.is-lit){ opacity: 0; translate: 0 26px }
/* Une carte se déplie par ses blocs : le titre ouvre, la suite suit. */
.ph-motion .phare-card > :nth-child(2),.ph-motion .phare-channels > :nth-child(2){ transition-delay: .1s }
.ph-motion .phare-card > :nth-child(3),.ph-motion .phare-channels > :nth-child(3){ transition-delay: .18s }

/* ── 13. Très grands écrans : on rend la largeur, pas la taille ─ */
@media (min-width: 1900px) {
  .phare-stage{ max-width: 1720px; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: clamp(70px, 3.8vw, 96px) }
  .phare-page .phare-stage h1{ font-size: clamp(104px, 7.6cqi, 122px); max-width: none }
  .phare-stage-copy > p{ font-size: 19px; max-width: 52ch }
  .phare-wordmark{ font-size: clamp(90px, 5vw, 120px) }
  .phare-channels,.phare-grid,.phare-call{ max-width: 1900px }
  .phare-page .phare-card-title{ font-size: 32px }
  html body .phare-page .phare-field :is(input, select, textarea){ font-size: 16px }
}
@media (min-width: 2400px) {
  .phare-stage{ max-width: 1980px }
  .phare-channels,.phare-grid,.phare-call{ max-width: 2200px }
}

/* ── 14. Repli : la scène devient colonne, les cartes s'empilent ─ */
@media (max-width: 1399px) {
  .phare-grid{ grid-template-columns: minmax(0, 1fr) }
  .phare-side{ grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start }
}
@media (max-width: 1180px) {
  .phare-stage{ grid-template-columns: minmax(0, 1fr) }
  .phare-page .phare-stage h1{ width: auto; max-width: none }
  /* La tour descend sous le propos : son halo déborde au-dessus de sa lanterne
     et serait rogné par la barre supérieure sinon. */
  .phare-tower{ margin-top: clamp(14px, 3.4vh, 34px) }
  .phare-lamp-row{ max-width: 460px }
  .phare-wordmark{ top: auto; bottom: 0; font-size: clamp(28px, 5.6vw, 64px); opacity: .5 }
}
@media (max-width: 980px) {
  .phare-call{ grid-template-columns: minmax(0, 1fr) }
  .phare-channels{ grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 760px) {
  .phare-page .phare-stage h1{ font-size: clamp(36px, 10vw, 58px) }
  .phare-page .phare-call h2{ font-size: clamp(28px, 7.5vw, 42px) }
  .phare-kicker{ font-size: 10px; letter-spacing: .18em }
  .phare-kicker > i{ flex-basis: 24px }
  .phare-side{ grid-template-columns: minmax(0, 1fr) }
  .phare-page{ padding-bottom: clamp(40px, 7vh, 70px) }
  .phare-card,.phare-call{ border-radius: 22px }
  html body .phare-page .phare-field :is(input, select, textarea){ font-size: 16px }
  .phare-query summary{ font-size: 13.5px }
}
@media (max-width: 520px) {
  .phare-button,.phare-text-link{ width: 100%; justify-content: center }
  .phare-channel{ grid-template-columns: auto minmax(0, 1fr) }
  .phare-channel-go{ display: none }
}

/* Sans préférence de mouvement : la page est posée dès le premier tracé. */
@media (prefers-reduced-motion: reduce) {
  .phare-page *,.phare-page *::before,.phare-page *::after{ animation: none !important; transition: none !important }
  .ph-motion :is(.phare-channels, .phare-card, .phare-call):not(.is-lit){ opacity: 1; translate: none }
  .ph-motion .phare-tower{ opacity: 1; translate: none; scale: 1 }
}
