/* URBAIN FORMA · palette Nuit, titres en capitales étroites
   Angles vifs partout (rayon 0). Le site est sombre : la lumière jaune y ressort
   comme sous la porte du logo (boutons, fenêtres allumées, accents).
   Rôles des variables : --blanc = fond de page, --blanc-2 = surfaces,
   --encre = texte principal, --cobalt = sections et volumes « nuit ». */

:root {
  --blanc: #0E1630;
  --blanc-2: #1A2547;
  --encre: #F3F4F1;
  --encre-2: #C3C9DA;
  --encre-3: #98A1BD;
  --cobalt: #1F2B52;
  --cobalt-fonce: #070C1C;
  --cobalt-clair: #8E97B5;
  --sur-cobalt: #C3C9DA;
  --sur-encre: #AEB6D3;
  --lumiere: #FFC24B;
  --trait: rgba(243, 244, 241, .14);
  --surface: #131C38;

  /* Volumes des illustrations : maquette blanche sur fond de nuit */
  --illu-haut: #F3F4F1;
  --illu-gauche: #C9CEDD;
  --illu-droite: #8E97B5;
  --illu-sol: #1A2547;
  --illu-trait: #F3F4F1;

  --police: 'Archivo', system-ui, sans-serif;
  --arabe: 'Noto Kufi Arabic', 'Archivo', sans-serif;
  --sortie: cubic-bezier(0.23, 1, 0.32, 1);
  --glisse: cubic-bezier(0.77, 0, 0.175, 1);

  --gouttiere: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
[lang="ar"] { font-family: var(--arabe); font-weight: 500; }

::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.methode :focus-visible, .activites :focus-visible, .pied :focus-visible { outline-color: var(--lumiere); }
html { scrollbar-color: var(--encre-3) var(--blanc-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--blanc-2); }
::-webkit-scrollbar-thumb { background: var(--encre-3); border: 2px solid var(--blanc-2); }

.evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--lumiere); color: #0E1630; padding: .75rem 1rem; }
.evitement:focus { left: 1rem; top: 1rem; }

/* Typographie */
.titre-xl {
  font-size: clamp(3rem, 7.2vw, 6rem);
  font-weight: 800;
  font-stretch: 116%;
  line-height: .94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.titre-l {
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Boutons et liens */
.bouton {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.4rem;
  background: var(--cobalt); color: #fff;
  border: 0; border-radius: 0;
  font-weight: 650; font-size: 1rem; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 rgba(14, 22, 48, .2), 0 8px 24px -10px rgba(22, 82, 217, .55);
  transition: transform 160ms var(--sortie), background-color 200ms ease, box-shadow 200ms ease;
}
.bouton i { font-size: 1.1em; transition: transform 200ms var(--sortie); }
.bouton:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--cobalt-fonce); }
  .bouton:hover i { transform: translateX(3px); }
}
.bouton--petit { padding: .7rem 1rem; font-size: .9375rem; box-shadow: none; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none;
  padding: .5rem 0;
  border-bottom: 1px solid currentColor;
}
.lien-fleche i { transition: transform 200ms var(--sortie); }
@media (hover: hover) and (pointer: fine) {
  .lien-fleche:hover i.ph-arrow-down { transform: translateY(3px); }
  .lien-fleche:hover i.ph-arrow-right { transform: translateX(3px); }
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--blanc) 95%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav[data-defile="oui"] { border-bottom-color: var(--trait); }
.nav__in {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gouttiere);
  display: flex; align-items: center; gap: 2rem;
}
.marque { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.marque__signe { width: 32px; height: 32px; color: var(--encre); flex: none; }
.marque__nom { height: 14px; width: 134px; color: var(--encre); flex: none; }
.nav__liens { display: flex; gap: 1.75rem; }
.nav__liens a { text-decoration: none; font-weight: 550; font-size: .9375rem; color: var(--encre-2); padding: .5rem 0; background: linear-gradient(var(--cobalt), var(--cobalt)) 0 100% / 0 2px no-repeat; transition: background-size 250ms var(--sortie), color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav__liens a:hover { color: var(--encre); background-size: 100% 2px; }
}
@media (max-width: 860px) { .nav__liens { display: none; } }
@media (max-width: 480px) {
  .nav__in { gap: 1rem; }
  .marque { gap: .5rem; }
  .marque__signe { width: 28px; height: 28px; }
  .marque__nom { height: 12px; width: 115px; }
  .bouton--petit { padding: .6rem .8rem; font-size: .875rem; }
}
@media (max-width: 360px) { .marque__nom { height: 10px; width: 96px; } }

/* Ouverture */
.ouverture {
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100dvh - var(--nav-h));
  padding: clamp(2rem, 5vh, 4.5rem) var(--gouttiere) clamp(2rem, 4vh, 3rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.ouverture__texte { display: grid; gap: 1.75rem; align-content: center; }
.ouverture__sous { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--encre-2); max-width: 30ch; }
.ouverture__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .5rem; }
.ouverture__scene { margin: 0; display: grid; gap: 1rem; }

.scene { position: relative; }
.scene__svg { width: 100%; height: auto; overflow: visible; }
.scene__lot { font-size: 11px; font-weight: 600; font-family: var(--police); letter-spacing: .01em; }
.scene__borne { font-size: 11px; font-weight: 700; font-family: var(--police); }
.scene__surface { font-size: 17px; font-weight: 800; font-stretch: 112%; font-family: var(--police); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.scene__bati { cursor: default; }
.scene__toit { transition: fill 200ms ease; }
.scene--duo { display: grid; overflow: clip; overflow-clip-margin: 32px; }
@media (max-width: 900px) { .scene--duo { overflow-clip-margin: 0px; } }
.scene--duo > svg { grid-area: 1 / 1; will-change: transform, opacity; }
.scene__appart { opacity: 0; pointer-events: none; }
.appart__eau.coule line { animation: goutte 420ms linear infinite; }
@keyframes goutte { to { stroke-dashoffset: -11; } }
.scene__mention { position: absolute; top: 0; right: 0; font-size: .75rem; font-weight: 600; color: var(--encre-3); }

.notifs { position: absolute; left: 0; bottom: 3%; z-index: 2; display: grid; gap: .5rem; width: min(17.5rem, 62%); pointer-events: none; }
.notifs li {
  display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center;
  background: #fff; padding: .65rem .85rem .65rem .65rem;
  box-shadow: 0 1px 0 rgba(14, 22, 48, .06), 0 12px 28px -14px rgba(14, 22, 48, .45);
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity 260ms var(--sortie), transform 420ms var(--sortie);
}
.notifs li:not(.visible) { position: absolute; left: 0; right: 0; bottom: 0; }
.notifs li.visible { opacity: 1; transform: none; }
.notifs i { grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: #E6EDFF; color: var(--cobalt); font-size: 1.25rem; }
.notifs strong { font-size: .875rem; font-weight: 700; line-height: 1.25; }
.notifs span { font-size: .8125rem; color: var(--encre-3); line-height: 1.3; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .notifs { bottom: 0; }
  .notifs li.visible:not(.derniere) { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(-6px) scale(.97); }
}
@media (max-width: 480px) { .notifs { width: 78%; } .notifs li { padding: .5rem .65rem .5rem .5rem; } .notifs i { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; } .notifs strong { font-size: .8125rem; } .notifs span { font-size: .75rem; } }

.sous-etape { font-size: .875rem; font-weight: 600; color: var(--encre-2); min-height: 1.4em; }

.scene__bulle {
  position: absolute; z-index: 2; pointer-events: none;
  background: var(--encre); color: #fff;
  padding: .45rem .65rem; font-size: .8125rem; line-height: 1.3; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 6px 18px -8px rgba(14, 22, 48, .6);
}
.scene__bulle strong { font-weight: 700; }
.scene__bulle span { color: var(--sur-encre); font-variant-numeric: tabular-nums; }

.etapes-puces { display: grid; gap: .6rem; }
.puces { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.puces button {
  width: 100%; display: grid; gap: .5rem; text-align: left;
  background: none; border: 0; padding: .25rem 0; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--encre-3);
  transition: color 200ms ease;
}
.puces button[aria-current="step"] { color: var(--encre); }
.puces__barre { display: block; height: 3px; background: var(--trait); overflow: hidden; }
.puces__barre span { display: block; height: 100%; width: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(var(--rempli, 0)); }
@media (hover: hover) and (pointer: fine) { .puces button:hover { color: var(--encre); } }
.etapes-puces__pied { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8125rem; color: var(--encre-3); }
.rejouer { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: .35rem 0; cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--encre-2); }
.rejouer:active { transform: scale(0.97); }

@media (max-width: 900px) {
  .ouverture { grid-template-columns: 1fr; min-height: 0; align-items: start; padding-top: 2.25rem; }
  .ouverture__sous { max-width: 34ch; }
}
@media (max-width: 480px) { .puces button { font-size: .75rem; } }

/* Affirmation */
.affirmation { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 12vh, 9rem) var(--gouttiere); }
.affirmation__texte {
  font-size: clamp(2rem, 5.4vw, 5rem); font-weight: 750; font-stretch: 108%;
  line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance;
}
.trait {
  background: linear-gradient(var(--cobalt), var(--cobalt)) 0 92% / 0 .12em no-repeat;
  transition: background-size 1100ms var(--glisse);
}
.affirmation__texte.vu .trait { background-size: 100% .12em; }
.affirmation__texte.vu .trait + .trait, .affirmation__texte.vu .trait:last-child { transition-delay: 450ms; }

/* Métiers */
.activites {
  background: var(--encre); color: #fff;
  padding: clamp(4.5rem, 12vh, 8rem) var(--gouttiere);
}
.activites > * { max-width: calc(var(--max) - 2 * var(--gouttiere)); margin-left: auto; margin-right: auto; }
.activites .titre-l { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.metiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.25rem, 3vw, 3rem); row-gap: 3rem; }
.metier { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 1.5rem; display: grid; align-content: start; gap: 1rem; }
.metier__titre { font-size: clamp(1.6rem, 2.6vw, 2.35rem); font-weight: 780; font-stretch: 110%; line-height: 1.02; letter-spacing: -0.025em; }
.metier__accroche { color: var(--sur-encre); font-size: 1.0625rem; max-width: 30ch; }
.metier__liste { margin-top: .75rem; }
.metier__liste li {
  position: relative;
  padding: .7rem 0 .7rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-weight: 600; font-size: 1.0625rem;
}
.metier__liste li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 10px; height: 13px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: transparent;
  transition: background-color 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}
.metier__liste li.allume::before { background: var(--lumiere); border-color: var(--lumiere); box-shadow: 0 0 14px rgba(255, 194, 75, .45); }
@media (max-width: 900px) { .metiers { grid-template-columns: 1fr; } .metier__accroche { max-width: 44ch; } }

/* Méthode */
.methode { background: var(--cobalt); color: #fff; }
.methode__in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
}
.methode__textes { padding: clamp(4.5rem, 12vh, 8rem) 0 20vh; }
.methode__textes .titre-l { margin-bottom: 12vh; }
.etape { min-height: 62vh; display: grid; align-content: start; gap: .9rem; opacity: .38; transition: opacity 400ms var(--sortie); }
.etape.active { opacity: 1; }
.etape:last-child { min-height: 46vh; }
.etape__num { font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sur-cobalt); }
.etape__titre { font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 780; font-stretch: 110%; line-height: 1.02; letter-spacing: -0.025em; }
.etape__resume { font-size: 1.125rem; color: var(--sur-cobalt); max-width: 34ch; }
.methode__scene {
  position: sticky; top: calc(var(--nav-h) + 4vh);
  height: calc(100vh - var(--nav-h) - 8vh);
  display: grid; grid-template-rows: 1fr auto; align-items: center; gap: 1rem;
  padding: 2vh 0;
}
.methode__scene .scene { height: 100%; display: grid; align-items: center; }
.methode__scene .scene__svg { max-height: 100%; }
.methode__legende { font-size: .875rem; font-weight: 650; color: var(--sur-cobalt); }
@media (max-width: 900px) {
  .methode__in { grid-template-columns: 1fr; gap: 0; }
  .methode__scene {
    grid-row: 1; z-index: 2; top: var(--nav-h);
    height: auto; padding: 1rem 0 .75rem;
    background: var(--cobalt);
    box-shadow: 0 14px 18px -12px rgba(11, 52, 151, .9);
  }
  .methode__scene .scene__svg { max-height: 34vh; margin: 0 auto; }
  .methode__textes { grid-row: 2; padding-top: 2.5rem; }
  .methode__textes .titre-l { margin-bottom: 4rem; }
  .etape { min-height: 48vh; }
}

/* Partout au Maroc */
.maroc { padding: clamp(4.5rem, 12vh, 8rem) 0; overflow: hidden; }
.maroc__in {
  max-width: var(--max); margin: 0 auto clamp(2.5rem, 6vh, 4rem); padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.maroc__tete { display: grid; gap: 1.25rem; align-content: center; }
.maroc__tete p { font-size: 1.125rem; color: var(--encre-2); max-width: 32ch; }
.maroc__legende { display: grid; gap: .6rem; margin-top: .5rem; font-size: .9375rem; font-weight: 600; color: var(--encre-2); }
.maroc__legende li { display: flex; align-items: center; gap: .65rem; }
.pastille { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--cobalt), 0 0 0 5px rgba(255, 194, 75, .55); }
.pastille--siege { width: 14px; height: 14px; background: var(--lumiere); box-shadow: 0 0 0 2px var(--cobalt), 0 0 0 6px rgba(255, 194, 75, .4); }
@media (max-width: 900px) { .maroc__in { grid-template-columns: 1fr; } }

/* Carte : la seule forme ronde du site, ce sont des points de carte */
.carte { margin: 0; }
.carte svg { width: 100%; max-height: 82vh; overflow: visible; }
.carte__terre { fill: var(--cobalt); opacity: 0; transition: opacity 900ms ease 700ms; }
.carte__trait { fill: none; stroke: var(--encre); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--glisse); }
.carte__mer { font-size: 13px; font-style: italic; font-weight: 500; fill: var(--encre-3); letter-spacing: .02em; opacity: 0; transition: opacity 800ms ease 1200ms; }
.carte__arc { fill: none; stroke: var(--lumiere); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--sortie); transition-delay: calc(1700ms + var(--i) * 110ms); }
.carte__ville, .carte__siege { opacity: 0; transition: opacity 400ms ease; }
.carte__ville { transition-delay: calc(2300ms + var(--i) * 110ms); }
.carte__siege { transition-delay: 1400ms; }
.carte__point { fill: #fff; stroke: var(--encre); stroke-width: 1.2; }
.carte__siege .carte__point { fill: var(--lumiere); stroke: var(--encre); stroke-width: 1.5; }
.carte__onde { fill: none; stroke: var(--lumiere); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.carte__nom { font-size: 12.5px; font-weight: 650; paint-order: stroke; stroke-width: 3.5px; stroke-linejoin: round; transition: font-weight 150ms ease; }
.carte__ville--o .carte__nom { fill: var(--encre); stroke: var(--blanc); }
.carte__ville--i .carte__nom, .carte__nom--siege { fill: #fff; stroke: var(--cobalt); }
.carte__nom--siege { font-size: 15px; font-weight: 800; }
.carte__sous { font-size: 11px; font-weight: 700; fill: var(--lumiere); }
@media (hover: hover) and (pointer: fine) { .carte__ville:hover .carte__nom { font-weight: 800; } }
@media (max-width: 600px) {
  .carte__nom { font-size: 19px; stroke-width: 4.5px; }
  .carte__nom--siege { font-size: 23px; }
  .carte__sous { font-size: 16px; }
  .carte__mer { font-size: 18px; }
  .carte__ville--mineure .carte__nom { display: none; }
}

.carte.vu .carte__terre, .carte.vu .carte__mer, .carte.vu .carte__ville, .carte.vu .carte__siege { opacity: 1; }
.carte.vu .carte__trait, .carte.vu .carte__arc { stroke-dashoffset: 0; }
.carte.vu .carte__onde { animation: onde 3.2s cubic-bezier(0.23, 1, 0.32, 1) infinite; animation-delay: calc(2600ms + var(--i, -1) * 240ms); }
.carte.vu .carte__siege .carte__onde { animation-duration: 2.4s; animation-delay: 1600ms; }
@keyframes onde { 0% { opacity: .95; transform: scale(.35); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.villes { border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); overflow: hidden; }
.villes__piste { display: flex; width: max-content; animation: defile 60s linear infinite; }
.villes:hover .villes__piste { animation-play-state: paused; }
.villes__piste li {
  display: flex; align-items: baseline; gap: .9rem;
  padding: 1.4rem 2.2rem 1.4rem 0; margin-right: 2.2rem;
  border-right: 1px solid var(--trait);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: 780; font-stretch: 112%; letter-spacing: -0.025em; white-space: nowrap;
}
.villes__piste li [lang="ar"] { font-size: .5em; font-weight: 500; color: var(--cobalt); letter-spacing: 0; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Contact */
.contact {
  max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 12vh, 8rem) var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem);
  border-top: 1px solid var(--trait);
}
.contact__tete { display: grid; gap: 1.25rem; align-content: start; }
.contact__tete > p { font-size: 1.125rem; color: var(--encre-2); max-width: 32ch; }
.contact__direct { display: grid; gap: .6rem; margin-top: .75rem; }
.contact__direct li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.contact__direct i { color: var(--cobalt); font-size: 1.2rem; }
.contact__direct a { text-decoration: none; border-bottom: 1px solid var(--trait); }
@media (hover: hover) and (pointer: fine) { .contact__direct a:hover { border-bottom-color: var(--cobalt); } }

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; align-content: start; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.champ { grid-column: 1 / -1; display: grid; gap: .45rem; }
.champ--demi { grid-column: span 1; }
.champ label { font-size: .9375rem; font-weight: 650; }
.champ input, .champ select, .champ textarea {
  width: 100%; border-radius: 0;
  background: #fff; border: 1px solid rgba(14, 22, 48, .28);
  padding: .85rem .9rem; font-size: 1rem; line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  caret-color: var(--cobalt);
}
.champ textarea { resize: vertical; min-height: 7.5rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(22, 82, 217, .18); }
.champ [aria-invalid="true"] { border-color: #B3261E; }
.champ__erreur { font-size: .875rem; color: #B3261E; font-weight: 600; min-height: 0; }
.champ__erreur:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select i { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--encre-2); }
.formulaire__aide { grid-column: 1 / -1; font-size: .875rem; color: var(--encre-3); max-width: 70ch; }
.formulaire__pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.formulaire__statut { font-size: .9375rem; font-weight: 600; color: var(--encre-2); }
.formulaire__statut[data-etat="ok"] { color: var(--cobalt); }
.formulaire__statut[data-etat="erreur"] { color: #B3261E; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .champ--demi { grid-column: 1 / -1; } }

/* Pied de page */
.pied { background: var(--cobalt-fonce); color: #fff; padding: clamp(3rem, 8vh, 5rem) var(--gouttiere) 2rem; overflow: hidden; }
.pied > * { max-width: calc(var(--max) - 2 * var(--gouttiere)); margin-left: auto; margin-right: auto; }
.pied__geant { display: block; width: 100%; height: auto; aspect-ratio: 441 / 46; color: #fff; }
.pied__lignes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-top: clamp(2rem, 5vh, 3.5rem); padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.pied__ville { font-size: 1.25rem; font-weight: 700; display: flex; gap: .8rem; align-items: baseline; }
.pied__ville [lang="ar"] { color: var(--cobalt-clair); font-size: 1rem; }
.pied__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.pied__nav a { text-decoration: none; font-weight: 550; color: var(--sur-cobalt); }
@media (hover: hover) and (pointer: fine) { .pied__nav a:hover { color: #fff; text-decoration: underline; } }
.pied__legal { margin-top: 2rem; font-size: .8125rem; line-height: 1.6; color: var(--cobalt-clair); }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .villes__piste { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gouttiere); }
  .villes__piste li[aria-hidden="true"] { display: none; }
  .trait, .etape, .metier__liste li::before, .notifs li { transition: none; }
  .appart__eau.coule line { animation: none; }
  .carte * { transition: none !important; }
  .carte.vu .carte__onde { animation: none; }
}

/* ==========================================================================
   Version finale : palette Nuit et titres en capitales étroites
   ========================================================================== */

/* Nuit : la lumière jaune devient la couleur d'action */
::selection { background: var(--lumiere); color: #0E1630; }
:focus-visible { outline-color: var(--lumiere); }
.bouton { background: var(--lumiere); color: #0E1630; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .bouton:hover { background: #FFD27A; } }
.activites { background: var(--surface); color: var(--encre); }
.champ input, .champ select, .champ textarea { background: var(--surface); border-color: rgba(243, 244, 241, .25); }
.notifs li { background: var(--blanc-2); }
.notifs i { background: rgba(255, 194, 75, .14); color: var(--lumiere); }
.scene__bulle { background: #F3F4F1; color: #0E1630; }
.scene__bulle span { color: #3A4260; }
.puces__barre span { background: var(--lumiere); }
.trait { background-image: linear-gradient(var(--lumiere), var(--lumiere)); }
.villes__piste li [lang="ar"], .contact__direct i { color: var(--lumiere); }
.nav__liens a { background-image: linear-gradient(var(--lumiere), var(--lumiere)); }

/* Titres en capitales étroites, comme l'affichage d'un chantier */
:is(.titre-xl, .titre-l, .etape__titre, .metier__titre, .affirmation__texte, .villes__piste li) { font-stretch: 72%; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: .95; }
.bouton { font-stretch: 85%; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 360px) { .nav .bouton--petit { padding: .55rem .6rem; font-size: .8125rem; letter-spacing: .02em; } }

/* Détail de chaque étape de la méthode */
.etape__details { display: grid; gap: .1rem; margin-top: .4rem; max-width: 40ch; }
.etape__details li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-top: 1px solid rgba(243, 244, 241, .14); font-size: 1rem; color: var(--encre); line-height: 1.4; }
.etape__details li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 9px; height: 12px; border: 1px solid rgba(243, 244, 241, .4); transition: background-color 400ms ease, border-color 400ms ease; }
.etape.active .etape__details li::before { background: var(--lumiere); border-color: var(--lumiere); }
.etape__details li span { display: block; font-size: .875rem; color: var(--sur-cobalt); margin-top: .1rem; }

/* Boucle de l'ouverture : fondu entre deux tours */
.scene--duo { transition: opacity 450ms ease; }
.scene--duo.fondu { opacity: 0; }