/*
 * signalement.onarp.org : thème institutionnel sur fond #EBEBEB.
 * Volet marine à gauche, formulaire clair à droite, or des insignes, police Inter seule.
 * Un seul moment orchestré (le monogramme du volet qui apparaît au chargement) ; le reste du mouvement répond aux gestes : survol, choix, envoi.
 * Chaque paire de couleurs est mesurée dans docs/design/contrastes.md.
 */

:root {
  --fond: #EBEBEB;
  --surface: #FFFFFF;
  --surface-douce: #F6F7F9;
  --texte: #1A2A42;
  --titre: #0B1A2F;
  --secondaire: #374151;
  --bordure: #6B7280;
  --filet: #D9DDE3;
  --navy: #0B1A2F;
  --navy-2: #13294A;
  --navy-survol: #1D3A5F;
  --navy-actif: #061220;
  --or: #C4983E;
  --or-clair: #E4CB8A;
  --or-pale: #F6EEDA;
  --sur-navy: #FFFFFF;
  --sur-navy-doux: #CDD6E2;
  --lien: #1D4E89;
  --focus: #1D4E89;
  --alerte: #A4161A;
  --alerte-survol: #7A1013;
  --alerte-fond: #FCEDEE;
  --attention: #7A5A12;
  --attention-fond: #FAF5E6;
  --info-fond: #EEF3FA;
  --succes: #1E6B3A;
  --succes-fond: #EAF5EE;

  --sans: Inter, "Segoe UI", system-ui, Arial, sans-serif;

  --rayon-s: 8px;
  --rayon: 12px;
  --rayon-l: 18px;
  --ombre-1: 0 1px 2px rgba(11, 26, 47, .06);
  --ombre-2: 0 1px 2px rgba(11, 26, 47, .05), 0 10px 28px -8px rgba(11, 26, 47, .16);
  --ombre-3: 0 2px 4px rgba(11, 26, 47, .06), 0 30px 60px -18px rgba(11, 26, 47, .35);

  --doux: cubic-bezier(.2, .7, .2, 1);
  --ressort: cubic-bezier(.34, 1.4, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--doux), text-decoration-color .2s var(--doux); }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--titre); line-height: 1.25; }
h1, h2 { font-weight: 600; letter-spacing: -.015em; }
h3 { font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: var(--or-pale); color: var(--titre); }

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

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.evitement {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 16px; border-radius: var(--rayon-s);
  background: var(--navy); color: #FFFFFF; font-weight: 600; text-decoration: none;
  transition: top .2s var(--doux);
}
.evitement:focus { top: 12px; color: #FFFFFF; }

/* ------------------------------------------------------------ pictogrammes animés
 * Chaque tracé porte pathLength="1" : dasharray 1 = tracé complet, dashoffset 1 = invisible.
 * « tracer » redessine l'icône, la classe .m désigne la partie qui bouge.
 */

.icone { width: 22px; height: 22px; flex: none; overflow: visible; }
.icone * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.icone .m { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ressort); }
@keyframes tracer { from { stroke-dashoffset: 1; } }
@keyframes tracer-tard { 0%, 35% { stroke-dashoffset: 1; } }

/* Au clic, l'icône d'un bouton s'enfonce légèrement. */
.bouton:active .icone, .carte-choix:active .carte-choix__picto .icone { transform: scale(.9); transition: transform .1s ease; }

/* ------------------------------------------------------------ écran partagé
 * Volet foncé à gauche (objet du site, garanties, mentions), espace clair à droite (formulaire).
 * Sur grand écran, le volet reste fixe pendant que le formulaire défile.
 */

.ecran { min-height: 100vh; }
@media (min-width: 1024px) {
  /* Grand écran : la page ne défile pas, seul l'espace clair de droite défile ; le volet reste immobile. */
  .ecran { display: grid; grid-template-columns: minmax(400px, 42%) 1fr; height: 100vh; height: 100dvh; overflow: hidden; }
}

.volet {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px clamp(20px, 5vw, 64px) 32px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(29, 58, 95, .85), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--sur-navy-doux);
  isolation: isolate;
}
.volet::after {
  /* Liseré or vertical qui sépare le volet du formulaire */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--or) 20%, var(--or-clair) 50%, var(--or) 80%, transparent);
  opacity: .7;
}
@media (min-width: 1024px) {
  .volet { height: 100%; overflow: hidden; padding-top: 32px; padding-bottom: 28px; }
}
/* Monogramme ONARP en filigrane : seul décor du volet, il apparaît lentement au chargement.
 * En image de fond d'un pseudo-élément : il ne crée jamais de défilement dans le volet. */
.volet::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/monogramme-blanc.webp") no-repeat 50% 62% / min(84%, 560px) auto;
  opacity: .06;
  pointer-events: none;
  animation: filigrane 2.4s .2s var(--doux) both;
}
@keyframes filigrane { from { opacity: 0; transform: scale(1.04); } }

.volet__marque { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; min-height: 44px; color: #FFFFFF; text-decoration: none; }
.volet__marque img { transition: transform .5s var(--ressort); }
.volet__marque:hover { color: #FFFFFF; }
.volet__marque:hover img { transform: rotate(-8deg) scale(1.04); }
.volet__nom { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: .12em; }
.volet__nom span { color: var(--or-clair); font-size: 14px; font-weight: 500; letter-spacing: .01em; }

.volet__corps { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.volet__emetteur {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  color: var(--or-clair); font-size: 15px; font-weight: 500;
  animation: monte .7s .1s var(--doux) both;
}
.volet__emetteur::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.volet__titre {
  margin: 0 0 18px;
  color: #FFFFFF;
  font-size: clamp(28px, 2.9vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em;
  text-wrap: balance;
  animation: monte .8s .18s var(--doux) both;
}
.volet__chapo { margin: 0 0 28px; font-size: 16px; line-height: 1.65; animation: monte .8s .28s var(--doux) both; }
@keyframes monte { from { opacity: 0; transform: translateY(12px); } }

.garanties { display: grid; gap: 16px; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(228, 203, 138, .22); list-style: none; }
.garantie { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; line-height: 1.55; animation: monte .7s var(--doux) both; }
.garantie:nth-child(1) { animation-delay: .45s; }
.garantie:nth-child(2) { animation-delay: .55s; }
.garantie:nth-child(3) { animation-delay: .65s; }
.garantie strong { display: block; margin-bottom: 2px; color: #FFFFFF; font-weight: 600; }
.garantie__detail { display: block; }
.garantie__picto {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(228, 203, 138, .45);
  color: var(--or-clair);
  transition: background-color .3s var(--doux), border-color .3s var(--doux), transform .4s var(--ressort);
}
.garantie__picto .icone { width: 20px; height: 20px; }
.garantie__picto .icone * { animation: tracer 1.2s var(--doux) both; }
.garantie:nth-child(1) .icone * { animation-delay: .8s; }
.garantie:nth-child(2) .icone * { animation-delay: 1s; }
.garantie:nth-child(3) .icone * { animation-delay: 1.2s; }
.garantie:hover .garantie__picto { background: rgba(228, 203, 138, .12); border-color: var(--or-clair); transform: translateY(-2px); }
.garantie:hover .icone * { animation: tracer .8s var(--doux) both; }
.garantie:hover .icone--cadenas .m { transform: translateY(-2px); }
.icone--horloge .m { transform-box: view-box; transform-origin: 12px 12px; }
.garantie:hover .icone--horloge .aiguille-m { animation: aiguille-minutes 1.1s var(--doux); }
.garantie:hover .icone--horloge .aiguille-h { animation: aiguille-heures 1.1s var(--doux); }
@keyframes aiguille-minutes { to { transform: rotate(360deg); } }
@keyframes aiguille-heures { to { transform: rotate(30deg); } }
.garantie:hover .icone--anonyme * { animation-duration: .6s; }

.volet__pied { display: grid; gap: 10px; font-size: 14px; }
.volet__pied p { margin: 0; }
.volet__urgence { color: #FFFFFF; font-weight: 500; }
.volet__asso { color: var(--sur-navy-doux); font-size: 13px; }
.volet :focus-visible { outline-color: var(--or-clair); }

/* Après l'envoi, le volet se concentre sur l'essentiel */
.volet--envoye .volet__chapo { display: none; }

/* ------------------------------------------------------------ espace clair et carte */

.espace { position: relative; min-width: 0; padding: 48px 0 0; isolation: isolate; }
.espace::before {
  /* Monogramme en filigrane très discret sur la partie claire, derrière la carte */
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%; width: min(520px, 80%); aspect-ratio: 1200 / 1057; transform: translate(-50%, -50%);
  background: url("../img/monogramme-noir.webp") no-repeat center / contain;
  opacity: .035;
  pointer-events: none;
}
@media (min-width: 1024px) {
  /* Centré dans la colonne claire, immobile pendant le défilement */
  .espace::before { position: fixed; top: 50%; left: calc(max(400px, 42vw) + (100vw - max(400px, 42vw)) / 2); width: min(560px, 44vw); }
}
.espace:focus { outline: none; }
@media (min-width: 1024px) {
  .espace { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 24px; padding: 64px 0 0; }
  .espace > * { flex-shrink: 0; }   /* colonne défilante : aucun bloc ne doit être écrasé */
}
.page { width: min(720px, 100% - 32px); margin-inline: auto; }
main.page { padding: 48px 0 64px; }   /* page isolée sans volet (accès refusé au backoffice) */
.page:focus { outline: none; }

.carte { background: var(--surface); border: 1px solid rgba(11, 26, 47, .08); border-radius: var(--rayon-l); box-shadow: var(--ombre-2); }
.espace .carte { animation: monte .8s .3s var(--doux) both; }

/* ------------------------------------------------------------ formulaire et étapes */

.formulaire { padding: 30px clamp(20px, 5vw, 48px) 36px; }
.progression { margin: 0 0 30px; }
.progression__texte { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--secondaire); }
.progression__barre { position: relative; height: 4px; border-radius: 2px; background: #E4E7EC; overflow: hidden; }
.progression__barre span {
  display: block; height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--navy-survol) 70%, var(--or));
  transition: width .6s var(--doux);
}

.etape__titre { margin: 0 0 8px; font-size: clamp(26px, 4vw, 32px); }
.etape__titre:focus { outline: none; }
.etape__titre:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.etape__aide { margin: 0 0 24px; color: var(--secondaire); }
.etape--entree { animation: etape-entree .45s var(--doux); }
@keyframes etape-entree { from { opacity: 0; transform: translateX(14px); } }

.facultatif, .obligatoire { font-family: var(--sans); font-weight: 400; font-size: .62em; color: var(--secondaire); letter-spacing: 0; vertical-align: .2em; }
label .facultatif, legend .facultatif, label .obligatoire, legend .obligatoire { font-size: .9em; vertical-align: baseline; }
.obligatoire { color: var(--alerte); }

/* Cartes sélectionnables (profils, objets) */
.cartes-choix { display: grid; gap: 12px; }
.carte-choix {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  min-height: 76px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-1);
  cursor: pointer;
  font-weight: 500; line-height: 1.45; color: var(--titre);
  overflow: hidden;
  transition: border-color .25s var(--doux), box-shadow .3s var(--doux), transform .3s var(--doux), background-color .25s var(--doux);
  animation: carte-entree .5s var(--doux) both;
  animation-delay: calc(var(--rang, 0) * 60ms);
}
@keyframes carte-entree { from { opacity: 0; transform: translateY(8px); } }
/*
 * Survol : une lumière suit le pointeur (--x, --y posés par formulaire.js) et le contour s'éclaire
 * là où il passe. Sa teinte dépend de la position horizontale (--t, de 0 à 1) : bleu clair à gauche,
 * puis cyan, vert, jaune, orange, jusqu'au rouge à droite (teinte HSL de 200 à 0 degrés).
 */
.carte-choix, .option { --teinte: calc(200 - 200 * var(--t, 0)); }
.carte-choix > * { position: relative; z-index: 1; }
.carte-choix::before, .carte-choix::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--doux);
}
.carte-choix::before {
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), hsl(var(--teinte) 85% 60% / .16), hsl(var(--teinte) 85% 60% / .05) 45%, transparent 70%);
}
.carte-choix::after {
  padding: 1px;
  background: radial-gradient(150px circle at var(--x, 50%) var(--y, 50%), hsl(var(--teinte) 85% 55%), hsl(var(--teinte) 85% 60% / .3) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.carte-choix:hover { border-color: #B9C2CE; box-shadow: var(--ombre-2); transform: translateY(-1px); }
.carte-choix:hover::before, .carte-choix:hover::after { opacity: 1; }
.carte-choix:active { transform: translateY(0) scale(.995); transition-duration: .1s; }
.carte-choix__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.carte-choix__picto {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--info-fond); color: var(--navy);
  transition: background-color .3s var(--doux), color .3s var(--doux), transform .45s var(--ressort);
}
.carte-choix__picto .icone { width: 24px; height: 24px; }
.carte-choix:hover .carte-choix__picto { background: var(--navy); color: var(--or-clair); transform: rotate(-6deg); }
.carte-choix:hover .carte-choix__picto .icone * { animation: tracer .7s var(--doux) both; }
.carte-choix:hover .icone--loupe .m { transform: translate(1px, 1px) scale(1.15); }
.carte-choix:hover .icone--diplome .m { transform: translateY(1.5px); }
.carte-choix:hover .icone--mallette .m { transform: translateY(-1.5px); }
.carte-choix:hover .icone--personne .m { transform: translate(1px, 1px); }
.carte-choix:hover .icone--drapeau .m { transform: skewY(-6deg); }
.carte-choix:hover .icone--graphique .m { transform: scaleY(1.2); transform-origin: bottom; }
.carte-choix:hover .icone--bulle .m { transform: translateX(1.5px); }
.carte-choix:hover .icone--dossier .m { transform: scaleX(1.2); }
.carte-choix:hover .icone--ampoule .m { transform: translateY(-1px); filter: drop-shadow(0 0 3px rgba(228, 203, 138, .9)); }
.carte-choix:hover .icone--bouclier .m { transform: translateY(1px); }
.carte-choix:hover .icone--globe .m { transform: scaleX(-1); transition-duration: .7s; }
.carte-choix:hover .icone--etoile .m { transform: rotate(72deg) scale(1.08); transition-duration: .6s; }
.carte-choix:hover .icone--oeil .m { transform: translateX(1.5px); }
.carte-choix:hover .icone--balance .m { transform: rotate(-6deg); transform-origin: 50% 0%; }
.carte-choix:hover .icone--attention .m { transform: translateY(-1px); }
.carte-choix:hover .icone--fichier .m { transform: translateX(1.5px); }
.carte-choix__texte { flex: 1; min-width: 0; }
.carte-choix__marque {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 1.5px solid var(--bordure);
  border-radius: 50%;
  background: var(--surface);
  transition: background-color .25s var(--doux), border-color .25s var(--doux), transform .4s var(--ressort);
}
.carte-choix__coche { width: 15px; height: 15px; color: #FFFFFF; stroke-width: 3; }
.carte-choix__coche * { stroke-dashoffset: 1; }
.carte-choix:hover .carte-choix__marque { border-color: var(--navy); }
.carte-choix:has(.carte-choix__input:checked) { border-color: var(--navy); background: var(--info-fond); box-shadow: 0 0 0 1px var(--navy), var(--ombre-2); }
.carte-choix:has(.carte-choix__input:checked)::after { opacity: 0; }
.carte-choix:has(.carte-choix__input:checked) .carte-choix__picto { background: var(--navy); color: var(--or-clair); }
.carte-choix:has(.carte-choix__input:checked) .carte-choix__marque { border-color: var(--navy); background: var(--navy); transform: scale(1.08); }
.carte-choix:has(.carte-choix__input:checked) .carte-choix__coche * { stroke-dashoffset: 0; transition: stroke-dashoffset .35s .08s var(--doux); }
.carte-choix:has(.carte-choix__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Champs */
.champ { margin: 0 0 24px; }
.champ > label:not(.option), .groupe > legend { display: block; margin: 0 0 8px; font-weight: 600; color: var(--titre); }
.groupe { border: 0; padding: 0; min-width: 0; }
.groupe > legend { padding: 0; }
.sous-libelle { display: block; margin: 0 0 6px; font-size: 14px; color: var(--secondaire); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="month"], input[type="search"], select, textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: var(--surface);
  color: var(--texte);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(11, 26, 47, .04);
  transition: border-color .2s var(--doux), box-shadow .25s var(--doux), background-color .2s var(--doux);
}
textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
select { appearance: none; padding-right: 42px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2A42' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 20px; cursor: pointer; }
select:disabled { background-color: #F3F4F6; color: var(--secondaire); cursor: not-allowed; }
input:hover, select:hover:not(:disabled), textarea:hover { border-color: var(--navy); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(29, 78, 137, .14); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
::placeholder { color: #4B5563; opacity: 1; }
.arbre { display: grid; gap: 12px; }
@media (min-width: 620px) { .arbre { grid-template-columns: 1fr 1fr; } }

.option {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 44px; margin: 0 -10px; padding: 10px;
  border-radius: var(--rayon-s);
  cursor: pointer;
  transition: background-color .2s var(--doux);
}
.option { position: relative; isolation: isolate; }
.option::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px circle at var(--x, 50%) var(--y, 50%), hsl(var(--teinte) 85% 60% / .16), transparent 70%), var(--surface-douce);
  opacity: 0; transition: opacity .5s var(--doux);
}
.option:hover::before { opacity: 1; }
.option input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
.option--consentement { margin: 0; padding: 16px 18px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface-douce); transition: border-color .2s var(--doux), background-color .2s var(--doux); }
.option--consentement:hover { border-color: var(--navy); background: var(--info-fond); }
.option--consentement:has(input:checked) { border-color: var(--navy); background: var(--info-fond); box-shadow: 0 0 0 1px var(--navy); }

.champ__aide { margin: 6px 0 0; font-size: 14px; color: var(--secondaire); }
.champ__compteur { margin: 6px 0 0; font-size: 13px; color: var(--secondaire); text-align: right; font-variant-numeric: tabular-nums; }
.champ__compteur--limite { color: var(--alerte); font-weight: 600; }
.champ__erreur, .erreur-groupe { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; color: var(--alerte); font-size: 15px; font-weight: 500; animation: secousse .4s var(--doux); }
@keyframes secousse { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.champ__erreur .icone, .erreur-groupe .icone { width: 20px; height: 20px; margin-top: 1px; }
.erreur-groupe { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--rayon-s); background: var(--alerte-fond); }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border: 2px solid var(--alerte); }
.champ--erreur.depot { border-color: var(--alerte); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Encadrés */
.alerte { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 22px; padding: 16px 18px; border-radius: var(--rayon); border: 1px solid; border-left-width: 4px; font-size: 15px; }
.alerte p { margin: 0; }
.alerte .icone { margin-top: 1px; }
.alerte--info { background: var(--info-fond); border-color: #C9D7EA; border-left-color: var(--lien); color: var(--texte); }
.alerte--info .icone { color: var(--lien); }
.alerte--attention { background: var(--attention-fond); border-color: #E9DDB8; border-left-color: var(--attention); color: var(--texte); }
.alerte--attention .icone { color: var(--attention); }
.alerte--attention .icone .m { animation: clignote 2.4s 1s var(--doux) 2; }
@keyframes clignote { 50% { opacity: .25; } }
.alerte__titre { font-weight: 600; color: var(--titre); margin-bottom: 4px !important; }

.relais { margin: 8px 0 24px; padding: 20px 22px; border: 1px solid #E8B4B6; border-left: 4px solid var(--alerte); border-radius: var(--rayon); background: var(--alerte-fond); }
.relais p { margin: 0 0 12px; font-size: 15px; }
.relais__titre { font-weight: 600; color: var(--alerte-survol); }
.relais .bouton { padding-top: 12px; padding-bottom: 12px; line-height: 1.35; }
@media (max-width: 560px) { .relais .bouton { width: 100%; } }

/* ------------------------------------------------------------ boutons */

.bouton {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; min-width: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--rayon-s);
  font: 600 15px/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .25s var(--doux), border-color .25s var(--doux), color .25s var(--doux), box-shadow .3s var(--doux), transform .15s var(--doux);
}
.bouton:hover { text-decoration: none; }
.bouton:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.bouton .icone { width: 19px; height: 19px; }
.bouton .icone .m { transition: transform .35s var(--ressort); }
.bouton:hover .icone--chevron .m { transform: translateX(3px); }
.bouton:hover .icone--retour .m { transform: translateX(-3px); }
.bouton:hover .icone--envoyer .m { transform: translate(2px, -2px); }
.bouton:hover .icone--externe .m { transform: translate(2px, -2px); }
.bouton:hover .icone--copier .m { transform: translate(-1.5px, -1.5px); }
.bouton:hover .icone--telecharger .m { transform: translateY(2px); }

.bouton--primaire { background: var(--navy); color: #FFFFFF; box-shadow: inset 0 -2px 0 var(--or), 0 6px 16px -8px rgba(11, 26, 47, .6); }
.bouton--primaire::before {
  /* Voile clair qui balaie le bouton au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(228, 203, 138, .16) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .7s var(--doux);
}
.bouton--primaire:hover:not(:disabled) { background: var(--navy-survol); color: #FFFFFF; box-shadow: inset 0 -2px 0 var(--or-clair), 0 12px 24px -10px rgba(11, 26, 47, .7); }
.bouton--primaire:hover:not(:disabled)::before { transform: translateX(110%); }
.bouton--primaire:active:not(:disabled) { background: var(--navy-actif); }
.bouton--primaire .icone { color: var(--or-clair); }
.bouton--secondaire { background: var(--surface); border-color: var(--texte); color: var(--texte); }
.bouton--secondaire:hover:not(:disabled) { background: #E8ECF2; border-color: var(--navy); color: var(--titre); }
.bouton--secondaire:active:not(:disabled) { background: #DCE2EA; }
.bouton--tertiaire { min-height: 44px; padding: 0 10px; background: none; color: var(--lien); font-weight: 500; overflow: visible; }
.bouton--tertiaire span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bouton--tertiaire:hover:not(:disabled) { color: var(--navy); background: var(--info-fond); }
.bouton--tertiaire:hover:not(:disabled) span { text-decoration-thickness: 2px; }
.bouton--alerte { background: var(--alerte); color: #FFFFFF; }
.bouton--alerte:hover:not(:disabled) { background: var(--alerte-survol); color: #FFFFFF; }
.bouton:disabled { background: #D1D5DB; border-color: #9CA3AF; color: #374151; box-shadow: none; cursor: not-allowed; }
.bouton--chargement { cursor: progress !important; }
.bouton--chargement:disabled { background: var(--navy-survol); border-color: transparent; color: #FFFFFF; box-shadow: inset 0 -2px 0 var(--or); }
.bouton--chargement .icone { display: none; }
.bouton--chargement::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--or-clair);
  animation: tourne .8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

.navigation-etapes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--filet); }
.navigation-etapes .bouton--primaire { margin-left: auto; }
@media (max-width: 560px) {
  .navigation-etapes { flex-direction: column-reverse; }
  .navigation-etapes .bouton { width: 100%; }
}

/* ------------------------------------------------------------ pièces jointes */

.depot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 32px 20px;
  border: 1.5px dashed var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface-douce);
  text-align: center;
  transition: border-color .25s var(--doux), background-color .25s var(--doux), transform .25s var(--doux);
}
.depot__picto {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 4px; border-radius: 50%;
  background: var(--surface); color: var(--navy); box-shadow: var(--ombre-2);
  transition: background-color .3s var(--doux), color .3s var(--doux), transform .45s var(--ressort);
}
.depot__picto .icone { width: 28px; height: 28px; }
.depot:hover { border-color: var(--navy); }
.depot:hover .depot__picto, .depot--survol .depot__picto { background: var(--navy); color: var(--or-clair); transform: translateY(-3px); }
.depot:hover .depot__picto .m, .depot--survol .depot__picto .m { animation: rebond 1s var(--doux) infinite; }
@keyframes rebond { 50% { transform: translateY(-3px); } }
.depot--survol { border-color: var(--navy); border-style: solid; background: var(--info-fond); transform: scale(1.01); }
.depot__texte { margin: 4px 0 0; font-size: 17px; font-weight: 600; color: var(--titre); }
.depot__ou { margin: 0; color: var(--secondaire); font-size: 14px; }
.depot__formats { margin: 10px 0 0; font-size: 13px; color: var(--secondaire); }
.depot:has(input:focus-visible) label { outline: 3px solid var(--focus); outline-offset: 2px; }

.fichiers { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fichier { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre-1); animation: carte-entree .35s var(--doux) both; }
.fichier__icone { color: var(--navy); }
.fichier__icone * { animation: tracer .8s var(--doux) both; }
.fichier__infos { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fichier__nom { font-weight: 500; overflow-wrap: anywhere; }
.fichier__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--secondaire); }
.fichier__alerte { width: 18px; height: 18px; }
.fichier__progression { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: #E4E7EC; overflow: hidden; }
.fichier__progression-remplissage { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--navy), var(--or)); transition: width .25s var(--doux); }
.fichier--ok .fichier__progression, .fichier--erreur .fichier__progression { display: none; }
.fichier--ok .fichier__etat { color: var(--succes); font-weight: 500; }
.fichier--erreur { border-color: var(--alerte); background: var(--alerte-fond); }
.fichier--erreur .fichier__meta { color: var(--alerte); font-weight: 500; }
.fichier--erreur .fichier__icone { color: var(--alerte); }

/* ------------------------------------------------------------ vérification */

.recap { display: grid; gap: 14px; margin: 0 0 26px; }
.recap__bloc { padding: 18px 20px; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--surface-douce); transition: border-color .25s var(--doux), background-color .25s var(--doux); }
.recap__bloc:hover { border-color: #B7C0CC; background: var(--surface); }
.recap__entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--filet); }
.recap__entete h3 { margin: 0; font-size: 17px; }
.recap dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 16px; }
.recap dt { color: var(--secondaire); font-size: 15px; }
.recap dd { margin: 0; overflow-wrap: anywhere; }
.recap__texte { white-space: pre-wrap; max-height: 240px; overflow-y: auto; }
.recap__vide { grid-column: 1 / -1; color: var(--secondaire); font-style: italic; }
@media (max-width: 560px) { .recap dl { grid-template-columns: 1fr; } .recap dd { margin-bottom: 8px; } }

.rgpd { margin: 0 0 22px; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--surface); overflow: hidden; }
.rgpd summary {
  min-height: 52px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; color: var(--titre); cursor: pointer; list-style: none;
  transition: background-color .2s var(--doux);
}
.rgpd summary::-webkit-details-marker { display: none; }
.rgpd summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.75px solid var(--navy); border-bottom: 1.75px solid var(--navy);
  transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ressort);
}
.rgpd summary:hover { background: var(--surface-douce); }
.rgpd[open] summary { border-bottom: 1px solid var(--filet); }
.rgpd[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.rgpd[open] > :not(summary) { animation: carte-entree .35s var(--doux) both; }
.rgpd dl, .rgpd > p { margin: 0; padding: 16px 18px 0; font-size: 15px; }
.rgpd > p { padding-bottom: 18px; }
.rgpd dt { font-weight: 600; color: var(--titre); margin-top: 12px; }
.rgpd dt:first-child { margin-top: 0; }
.rgpd dd { margin: 2px 0 0; color: var(--secondaire); }
.turnstile { margin: 0 0 8px; min-height: 0; }

/* ------------------------------------------------------------ confirmation */

.confirmation { padding: 44px clamp(20px, 5vw, 48px); text-align: center; animation: monte .6s var(--doux) both; }
.confirmation:focus { outline: none; }
.confirmation h1, .confirmation h2 { margin: 18px 0 14px; font-size: clamp(28px, 4.5vw, 34px); text-wrap: balance; }
.confirmation__icone {
  position: relative; display: grid; place-items: center;
  width: 84px; height: 84px; margin: 0 auto; border-radius: 50%;
  background: var(--succes-fond); color: var(--succes);
}
.confirmation__icone::before {
  /* Onde unique qui s'éloigne, une fois */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--succes); opacity: 0;
  animation: onde 1.4s .6s var(--doux) both;
}
@keyframes onde { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.confirmation__icone .icone { width: 42px; height: 42px; stroke-width: 1.5; }
.confirmation__icone .icone circle { animation: tracer .7s .15s var(--doux) both; }
.confirmation__icone .icone .m { animation: tracer .45s .7s var(--doux) both; }
.reference {
  display: inline-block; margin: 6px 0 10px; padding: 14px 28px;
  border: 1px solid var(--or); border-radius: var(--rayon);
  background: linear-gradient(180deg, #FFFFFF, var(--or-pale));
  box-shadow: inset 0 0 0 4px #FFFFFF, inset 0 0 0 5px rgba(196, 152, 62, .45);
  font: 600 clamp(22px, 6vw, 30px)/1.2 var(--sans); letter-spacing: .05em; color: var(--titre);
  font-variant-numeric: tabular-nums lining-nums;
}
.confirmation .bouton--tertiaire { margin: 0 auto 8px; }
.suite { max-width: 520px; margin: 24px auto; padding: 0; list-style: none; text-align: left; display: grid; gap: 12px; }
.suite li { position: relative; padding-left: 30px; }
.suite li::before { content: ""; position: absolute; left: 6px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--or); }
.confirmation .alerte, .confirmation .relais { text-align: left; max-width: 560px; margin-inline: auto; }
.confirmation__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 0; }

/* ------------------------------------------------------------ mobile et tablette */

@media (max-width: 1023px) {
  .volet { gap: 28px; padding-bottom: 40px; }
  .volet::after { top: auto; left: 0; width: auto; height: 2px; background: linear-gradient(90deg, transparent, var(--or) 20%, var(--or-clair) 50%, var(--or) 80%, transparent); }
  .volet::before { background-position: 50% 45%; background-size: min(78%, 420px) auto; }
  .volet__corps { max-width: 640px; }
  .espace { padding-top: 32px; }
}
@media (max-width: 720px) {
  .volet__chapo { margin-bottom: 26px; font-size: 16px; }
  /* Garanties condensées : pictogramme et titre, le détail reste lu par les lecteurs d'écran */
  .garanties { grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 20px; }
  .garantie { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .garantie strong { margin: 0; font-size: 13.5px; line-height: 1.3; }
  .garantie__detail { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .carte-choix { min-height: 68px; gap: 12px; }
  .carte-choix__picto { width: 42px; height: 42px; }
}
/* Petits téléphones (320 à 400 px) : marges, pictogramme et coche resserrés pour laisser au moins
 * 150 px au texte des cartes de choix, souvent long (« Je suis professionnel… et je cesse mon activité »). */
@media (max-width: 400px) {
  .carte.formulaire { padding-left: 14px; padding-right: 14px; }
  .carte-choix { gap: 10px; padding: 12px; font-size: 15px; }
  .carte-choix__picto { width: 34px; height: 34px; }
  .carte-choix__picto .icone { width: 20px; height: 20px; }
  .carte-choix__marque { width: 22px; height: 22px; }
}


@media (hover: none) {
  .carte-choix:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ volet : situation en cours
 * Sur grand écran, dès le premier choix, le texte d'accueil cède la place à la situation :
 * profil, objet, suite donnée, étapes. Sur mobile, le volet garde son texte d'accueil.
 */

.situation { display: none; }
@media (min-width: 1024px) {
  .volet--situation .volet__accueil { display: none; }
  .volet--situation .volet__titre { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 26px; }
  .volet--situation .situation:not([hidden]) { display: block; animation: monte .5s var(--doux) both; }
}
.situation__titre { margin: 0 0 14px; color: var(--or-clair); font-size: 15px; font-weight: 600; }
.situation__choix { display: grid; gap: 10px; margin: 0 0 20px; }
.situation__ligne {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px;
  padding: 12px 14px; border: 1px solid rgba(228, 203, 138, .22); border-radius: var(--rayon);
  background: rgba(255, 255, 255, .03);
  animation: monte .45s var(--doux) both;
}
.situation__ligne dt { display: contents; color: var(--sur-navy-doux); font-size: 13px; }
.situation__ligne dt .situation__picto { grid-row: span 2; }
.situation__ligne dd { grid-column: 2; margin: 0; color: #FFFFFF; font-weight: 600; line-height: 1.35; }
.situation__ligne--vide { border-style: dashed; }
.situation__ligne--vide dd { color: var(--sur-navy-doux); font-weight: 400; }
.situation__picto {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(228, 203, 138, .12); color: var(--or-clair);
}
.situation__picto .icone { width: 20px; height: 20px; }
.situation__picto .icone * { animation: tracer .9s .1s var(--doux) both; }
.situation__ligne:hover .situation__picto .icone * { animation: tracer .7s var(--doux) both; }
.situation__suite { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.situation__note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; color: #FFFFFF; font-size: 14px; line-height: 1.5; }
.situation__note .icone { width: 18px; height: 18px; margin-top: 2px; color: var(--or-clair); }

.situation__etapes { display: grid; gap: 2px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(228, 203, 138, .22); list-style: none; counter-reset: none; }
.situation__etape { position: relative; display: flex; align-items: center; gap: 12px; min-height: 34px; color: var(--sur-navy-doux); font-size: 14px; }
.situation__etape:not(:last-child)::after {
  /* Fil vertical qui relie les étapes */
  content: ""; position: absolute; left: 12px; top: 30px; height: 8px; width: 1px; background: rgba(228, 203, 138, .3);
}
.situation__numero {
  flex: none; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%;
  border: 1px solid rgba(205, 214, 226, .45);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--doux), border-color .3s var(--doux), color .3s var(--doux);
}
.situation__numero .icone { width: 14px; height: 14px; stroke-width: 2.5; }
.situation__numero .icone * { animation: tracer .4s var(--doux) both; }
.situation__etape--fait { color: #FFFFFF; }
.situation__etape--fait .situation__numero { border-color: var(--or-clair); color: var(--or-clair); }
.situation__etape--courant { color: #FFFFFF; font-weight: 600; }
.situation__etape--courant .situation__numero { border-color: var(--or-clair); background: var(--or-clair); color: var(--navy); box-shadow: 0 0 0 4px rgba(228, 203, 138, .15); }

/* Écrans larges mais peu hauts (portables 13 pouces, 1024 x 768) : volet resserré pour tenir sans défiler */
@media (min-width: 1024px) and (max-height: 900px) {
  .volet { gap: 14px; padding-top: 20px; padding-bottom: 18px; }
  .volet__marque img { width: 40px; height: 40px; }
  .volet__emetteur { margin-bottom: 12px; }
  .volet__chapo { margin-bottom: 20px; font-size: 15px; line-height: 1.55; }
  .garanties { gap: 12px; padding-top: 16px; }
  .garantie__picto { width: 38px; height: 38px; }
  .volet--situation .volet__emetteur { display: none; }
  .volet--situation .volet__titre { font-size: 22px; margin-bottom: 16px; }
  .situation__titre { margin-bottom: 10px; }
  .situation__choix { gap: 8px; margin-bottom: 14px; }
  .situation__ligne { padding: 8px 12px; }
  .situation__picto { width: 34px; height: 34px; }
  .situation__suite { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
  .situation__note { margin-bottom: 8px; font-size: 13.5px; }
  .situation__etapes { margin-top: 14px; padding-top: 12px; }
  .situation__etape { min-height: 28px; }
  .situation__etape:not(:last-child)::after { top: 26px; height: 4px; }
  .situation__numero { width: 22px; height: 22px; }
  .volet__asso { display: none; }
}

/* Tablette : garanties sur trois colonnes, sous le texte d'accueil */
@media (min-width: 721px) and (max-width: 1023px) {
  .garanties { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .garantie { flex-direction: column; gap: 10px; font-size: 14px; }
}

/* Écrans très peu hauts : le volet ne défile jamais, il se resserre encore */
@media (min-width: 1024px) and (max-height: 760px) {
  .volet__chapo { display: none; }
  .garantie__detail { font-size: 13.5px; }
  .situation__suite { display: none; }
}
@media (min-width: 1024px) and (max-height: 640px) {
  .garantie__detail, .volet__pied { display: none; }
  .situation__etapes { display: none; }
}

/* ------------------------------------------------------------ pied de page (espace clair)
 * Bandeau marine sur toute la largeur de l'espace clair, contenu centré : marque, nom de
 * l'organisation, liens séparés par des losanges or, mentions de propriété.
 */

.pied {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 56px; padding: 44px 16px 36px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: var(--sur-navy-doux); text-align: center; font-size: 14px;
}
.pied::before {
  /* Liseré or en tête du bandeau */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--or) 20%, var(--or-clair) 50%, var(--or) 80%, transparent);
}
.pied::after {
  /* Monogramme discret, centré derrière la marque */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 360px; aspect-ratio: 1200 / 1057; transform: translate(-50%, -50%);
  background: url("../img/monogramme-blanc.webp") no-repeat center / contain; opacity: .05;
}
@media (min-width: 1024px) { .pied { margin-top: auto; } .espace .page { margin-bottom: 56px; } }
.pied__interieur { display: grid; justify-items: center; gap: 14px; width: min(720px, 100%); margin-inline: auto; }
.pied__marque { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: #FFFFFF; text-decoration: none; }
.pied__marque img { transition: transform .7s var(--ressort); }
.pied__marque:hover { color: #FFFFFF; }
.pied__marque:hover img { transform: rotate(-6deg) scale(1.04); }
.pied__nom { font-size: 18px; font-weight: 500; letter-spacing: .01em; }
.pied__nom strong { font-weight: 600; letter-spacing: .12em; color: var(--or-clair); }
.pied__accroche { margin: -6px 0 6px; font-size: 13.5px; }
.pied__liens {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 6px;
  padding: 10px 0; border-top: 1px solid rgba(228, 203, 138, .18); border-bottom: 1px solid rgba(228, 203, 138, .18);
  width: 100%;
}
.pied__lien {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border: 0; background: none;
  color: #FFFFFF; font: 500 14px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: color .4s var(--doux);
}
.pied__lien + .pied__lien::before {
  /* Losange or entre deux liens */
  content: ""; position: absolute; left: -5px; top: 50%; width: 5px; height: 5px;
  background: var(--or); transform: translateY(-50%) rotate(45deg); opacity: .8;
}
.pied__lien::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px;
  background: var(--or-clair); transform: scaleX(0); transition: transform .5s var(--doux);
}
.pied__lien:hover { color: var(--or-clair); }
.pied__lien:hover::after { transform: scaleX(1); }
.pied__lien .icone { width: 15px; height: 15px; color: var(--or-clair); }
.pied__lien:hover .icone--externe .m { transform: translate(2px, -2px); }
.pied :focus-visible { outline-color: var(--or-clair); }
.pied__copyright { margin: 4px 0 0; font-size: 12.5px; color: var(--sur-navy-doux); }
@media (max-width: 560px) {
  .pied__lien + .pied__lien::before { display: none; }
  .pied__liens { display: grid; grid-template-columns: 1fr 1fr; }
  .pied__lien { justify-content: center; }
}

/* ------------------------------------------------------------ rappel permanent du chiffrement */

.progression__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.progression__ligne .progression__texte { margin: 0; }
.sceau-chiffre {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding: 5px 12px 5px 9px; border-radius: 999px;
  background: var(--succes-fond); color: var(--succes); font-size: 13px; font-weight: 600;
  cursor: default;
}
.sceau-chiffre .icone { width: 16px; height: 16px; }
.sceau-chiffre:hover .icone--cadenas .m { transform: translateY(-2px); }
.sceau-chiffre .icone * { animation: tracer 1.2s .6s var(--doux) both; }

/* ------------------------------------------------------------ champ « Précisez » (choix Autre) */

.champ--precision { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--filet); border-radius: var(--rayon-s); background: var(--surface-douce); }
.champ--precision > label { font-size: 15px; }
.champ--apparition { animation: deplie .45s var(--doux) both; }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }

.rgpd__liens { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.rgpd__liens .bouton--tertiaire { margin-left: -10px; }

/* ------------------------------------------------------------ volet : avertissements en rouge */

.situation__note--alerte {
  padding: 10px 12px; border-radius: var(--rayon-s);
  background: rgba(248, 113, 113, .12); border-left: 3px solid #F87171;
}
.situation__note--alerte .icone { width: 22px; height: 22px; margin-top: 0; color: #F87171; }
.situation__note--alerte .icone .m { animation: clignote 2.4s 1s var(--doux) 2; }

/* ------------------------------------------------------------ retour en haut
 * Apparition et survol très progressifs : fondu lent, anneau de lecture, flèche qui s'élève.
 */

.haut {
  position: fixed; z-index: 30; right: 24px; bottom: 24px;
  display: grid; place-items: center;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: var(--navy); color: var(--or-clair);
  box-shadow: 0 10px 24px -10px rgba(11, 26, 47, .55);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.92);
  transition: opacity .9s var(--doux), transform .9s var(--doux), visibility 0s .9s, background-color 1.1s var(--doux), box-shadow 1.1s var(--doux);
}
.haut--visible { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--doux), transform .9s var(--doux), visibility 0s, background-color 1.1s var(--doux), box-shadow 1.1s var(--doux); }
.haut__anneau { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); transform: rotate(-90deg); fill: none; stroke-width: 2; }
.haut__anneau circle { stroke: rgba(228, 203, 138, .2); }
.haut__anneau .haut__progression { stroke: var(--or-clair); stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.haut__fleche { position: relative; width: 22px; height: 22px; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.haut:hover { background: var(--navy-survol); box-shadow: 0 18px 34px -12px rgba(11, 26, 47, .7); }
.haut:hover .haut__fleche { transform: translateY(-4px); }
.haut:active .haut__fleche { transform: translateY(-7px); transition-duration: .3s; }
.haut:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 720px) { .haut { right: 16px; bottom: 16px; width: 50px; height: 50px; } }

/* ------------------------------------------------------------ texte des mentions (modale) */

.legal { font-size: 15px; line-height: 1.65; color: var(--texte); }
.legal h3 { margin: 22px 0 6px; font-size: 16px; color: var(--titre); }
.legal h3:first-child { margin-top: 0; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal code { font-size: 13px; padding: 1px 5px; border-radius: 4px; background: var(--surface-douce); }
.legal__maj { margin-top: 20px !important; color: var(--secondaire); font-size: 13px; }

/* ------------------------------------------------------------ navigation en haut du formulaire
 * Discrète : mêmes actions que les boutons du bas, sans concurrencer le contenu de l'étape.
 */

.navigation-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -12px 0 18px; }
.navigation-haut--seul { justify-content: flex-end; }
.bouton--discret {
  min-height: 44px; padding: 0 14px; gap: 8px;
  border: 1px solid var(--filet); background: var(--surface); color: var(--titre);
  font-size: 14px; font-weight: 500; box-shadow: var(--ombre-1);
}
.bouton--discret .icone { width: 17px; height: 17px; }
.bouton--discret:hover:not(:disabled) { border-color: var(--navy); background: var(--info-fond); color: var(--titre); }
.bouton--discret-avant { border-color: var(--navy); }
.bouton--discret-avant .icone { color: var(--navy); }
@media (max-width: 560px) { .navigation-haut .bouton { flex: 1; } .navigation-haut--seul .bouton { flex: 0 1 auto; } }

/* ------------------------------------------------------------ liens transmis (étape « Les faits ») */

.liens { margin: 0 0 24px; }
.liens > legend { display: block; margin: 0 0 4px; font-weight: 600; color: var(--titre); }
.liens__aide { margin: 0 0 12px; }
.liens__liste { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.liens__ligne {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px;
  margin: 0; padding: 12px; border: 1px solid var(--filet); border-radius: var(--rayon);
  background: var(--surface-douce); animation: deplie .4s var(--doux) both;
  transition: border-color .25s var(--doux), background-color .25s var(--doux);
}
.liens__ligne:focus-within { border-color: var(--navy); background: var(--surface); }
.liens__numero {
  display: grid; place-items: center; width: 28px; height: 28px; margin-top: 11px; border-radius: 50%;
  background: var(--navy); color: var(--or-clair); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.liens__champs { display: grid; gap: 8px; min-width: 0; }
.liens__champs input { min-height: 48px; }
.liens__note { font-size: 15px; }
.liens__retirer {
  display: grid; place-items: center; width: 44px; height: 44px; margin-top: 2px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--secondaire); cursor: pointer;
  transition: background-color .3s var(--doux), color .3s var(--doux), transform .4s var(--ressort);
}
.liens__retirer .icone { width: 18px; height: 18px; }
.liens__retirer:hover { background: var(--alerte-fond); color: var(--alerte); transform: rotate(90deg); }
.liens__ajouter .icone { width: 18px; height: 18px; }
.liens__ajouter:hover .icone--lien .m:first-child { transform: translate(-1px, 1px); }
.liens__ajouter:hover .icone--lien .m:last-child { transform: translate(1px, -1px); }
@media (max-width: 480px) {
  .liens__ligne { grid-template-columns: 1fr auto; padding: 10px; }
  .liens__numero { display: none; }
}
.recap__lien { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ copier la référence
 * Au clic : l'icône de copie s'efface, une coche se trace, un reflet traverse la référence.
 */

.bouton--copier .bouton__icones { position: relative; display: grid; place-items: center; width: 19px; height: 19px; }
.bouton--copier .bouton__icones .icone { position: absolute; inset: 0; transition: opacity .3s var(--doux), transform .45s var(--ressort); }
.bouton--copier .icone--copiee { opacity: 0; transform: scale(.6); color: var(--succes); stroke-width: 2.5; }
.bouton--copier .icone--copiee * { stroke-dashoffset: 1; }
.bouton--copie .icone--copier { opacity: 0; transform: scale(.6) rotate(-20deg); }
.bouton--copie .icone--copiee { opacity: 1; transform: none; }
.bouton--copie .icone--copiee * { animation: tracer-coche .45s .1s var(--doux) forwards; }
@keyframes tracer-coche { to { stroke-dashoffset: 0; } }
.bouton--copie, .bouton--copie:hover:not(:disabled) { color: var(--succes); }
.bouton--copie .bouton__texte { animation: texte-copie .4s var(--doux); }
@keyframes texte-copie { from { opacity: 0; transform: translateY(4px); } }
.bouton--copie-echec { color: var(--alerte); }
.reference { position: relative; overflow: hidden; }
.reference::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
  transform: translateX(-120%);
}
.reference--copiee { animation: reference-pulse .6s var(--ressort); }
.reference--copiee::after { animation: reference-reflet .9s var(--doux); }
@keyframes reference-pulse { 40% { transform: scale(1.04); box-shadow: inset 0 0 0 4px #FFFFFF, inset 0 0 0 5px var(--succes), 0 0 0 6px rgba(30, 107, 58, .15); } }
@keyframes reference-reflet { to { transform: translateX(120%); } }

/* ------------------------------------------------------------ animation d'accueil (partials/chargement.php)
 * À chaque chargement de l'accueil. 0 à 1,5 s : les tambours « ONARP » roulent et s'arrêtent un à un ;
 * 0,25 à 2,15 s : ceux de « SIGNALEMENT » ; 2,15 à 2,65 s : la coche se dessine ; 2,65 à 3,1 s : temps
 * de lecture ; 3,1 à 3,45 s : le voile s'efface. Jamais bloquant : pointer-events à none, retiré à 3,6 s. */
.chargement {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, #16294A 0%, var(--navy) 70%);
  animation: chargement-sortie .35s 3.1s cubic-bezier(.4, 0, .2, 1) forwards;
}
/* Monogramme en filigrane : apparaît doucement et grossit à peine pendant toute l'animation */
.chargement::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/monogramme-blanc.webp") no-repeat 50% 50% / min(88vw, 88vh, 640px) auto;
  opacity: 0; animation: chargement-monogramme 3.1s cubic-bezier(.2, .7, .2, 1) forwards;
}
.chargement__logo { display: block; width: clamp(52px, 7vw, 68px); height: auto; border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(228, 203, 138, .18); animation: chargement-logo .6s cubic-bezier(.2, .8, .2, 1) both; }
.chargement__centre { position: relative; display: grid; justify-items: center; gap: 22px; animation: chargement-centre .35s 3.1s cubic-bezier(.4, 0, .2, 1) forwards; }
.chargement__rouleau { display: grid; justify-items: center; gap: 12px; }
.chargement__ligne { display: flex; gap: 8px; font: 600 clamp(28px, 4.2vw, 42px)/1 "Inter", "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.chargement__ligne--2 { gap: 5px; font-size: clamp(16px, 5.2vw, 28px); }
.chargement__tambour {
  position: relative; display: block; width: 1.05em; height: 1.4em; overflow: hidden; border-radius: .2em;
  background: linear-gradient(180deg, #0A1528, #1A2E50 50%, #0A1528);
  box-shadow: inset 0 0 0 1px rgba(228, 203, 138, .28), 0 6px 18px -8px rgba(0, 0, 0, .6);
}
/* Courbure du tambour : les caractères s'estompent en haut et en bas */
.chargement__tambour::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 21, 40, .9), transparent 32%, transparent 68%, rgba(10, 21, 40, .9)); }
.chargement__bande { display: flex; flex-direction: column; color: rgba(228, 203, 138, .55); animation: chargement-rouler 1s cubic-bezier(.12, .7, .22, 1) both; }
.chargement__bande span { display: grid; place-items: center; height: 1.4em; }
.chargement__bande span:last-child { animation: chargement-lettre .3s ease forwards; }
.chargement__ligne--1 .chargement__tambour:nth-child(1) .chargement__bande { animation-duration: 1.10s; }
.chargement__ligne--1 .chargement__tambour:nth-child(1) .chargement__bande span:last-child { animation-delay: 1.05s; }
.chargement__ligne--1 .chargement__tambour:nth-child(2) .chargement__bande { animation-duration: 1.20s; }
.chargement__ligne--1 .chargement__tambour:nth-child(2) .chargement__bande span:last-child { animation-delay: 1.15s; }
.chargement__ligne--1 .chargement__tambour:nth-child(3) .chargement__bande { animation-duration: 1.30s; }
.chargement__ligne--1 .chargement__tambour:nth-child(3) .chargement__bande span:last-child { animation-delay: 1.25s; }
.chargement__ligne--1 .chargement__tambour:nth-child(4) .chargement__bande { animation-duration: 1.40s; }
.chargement__ligne--1 .chargement__tambour:nth-child(4) .chargement__bande span:last-child { animation-delay: 1.35s; }
.chargement__ligne--1 .chargement__tambour:nth-child(5) .chargement__bande { animation-duration: 1.50s; }
.chargement__ligne--1 .chargement__tambour:nth-child(5) .chargement__bande span:last-child { animation-delay: 1.45s; }
.chargement__ligne--2 .chargement__tambour:nth-child(1) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.10s; }
.chargement__ligne--2 .chargement__tambour:nth-child(1) .chargement__bande span:last-child { animation-delay: 1.30s; }
.chargement__ligne--2 .chargement__tambour:nth-child(2) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.18s; }
.chargement__ligne--2 .chargement__tambour:nth-child(2) .chargement__bande span:last-child { animation-delay: 1.38s; }
.chargement__ligne--2 .chargement__tambour:nth-child(3) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.26s; }
.chargement__ligne--2 .chargement__tambour:nth-child(3) .chargement__bande span:last-child { animation-delay: 1.46s; }
.chargement__ligne--2 .chargement__tambour:nth-child(4) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.34s; }
.chargement__ligne--2 .chargement__tambour:nth-child(4) .chargement__bande span:last-child { animation-delay: 1.54s; }
.chargement__ligne--2 .chargement__tambour:nth-child(5) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.42s; }
.chargement__ligne--2 .chargement__tambour:nth-child(5) .chargement__bande span:last-child { animation-delay: 1.62s; }
.chargement__ligne--2 .chargement__tambour:nth-child(6) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.50s; }
.chargement__ligne--2 .chargement__tambour:nth-child(6) .chargement__bande span:last-child { animation-delay: 1.70s; }
.chargement__ligne--2 .chargement__tambour:nth-child(7) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.58s; }
.chargement__ligne--2 .chargement__tambour:nth-child(7) .chargement__bande span:last-child { animation-delay: 1.78s; }
.chargement__ligne--2 .chargement__tambour:nth-child(8) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.66s; }
.chargement__ligne--2 .chargement__tambour:nth-child(8) .chargement__bande span:last-child { animation-delay: 1.86s; }
.chargement__ligne--2 .chargement__tambour:nth-child(9) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.74s; }
.chargement__ligne--2 .chargement__tambour:nth-child(9) .chargement__bande span:last-child { animation-delay: 1.94s; }
.chargement__ligne--2 .chargement__tambour:nth-child(10) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.82s; }
.chargement__ligne--2 .chargement__tambour:nth-child(10) .chargement__bande span:last-child { animation-delay: 2.02s; }
.chargement__ligne--2 .chargement__tambour:nth-child(11) .chargement__bande { animation-delay: 0.25s; animation-duration: 1.90s; }
.chargement__ligne--2 .chargement__tambour:nth-child(11) .chargement__bande span:last-child { animation-delay: 2.10s; }
.chargement__coche { width: 60px; height: 60px; overflow: visible; }
.chargement__coche circle { stroke: var(--or); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transform: rotate(-90deg); transform-origin: center; animation: chargement-trait .4s 2.15s cubic-bezier(.65, 0, .35, 1) forwards; }
.chargement__coche path { stroke: var(--or-clair); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: chargement-trait .28s 2.37s cubic-bezier(.65, 0, .35, 1) forwards, chargement-pulse .36s 2.65s var(--ressort); transform-origin: center; }
.chargement__texte { margin: 0; color: var(--or-clair); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: 0; animation: chargement-texte .35s 2.3s ease forwards; }
@keyframes chargement-rouler { 0% { transform: translateY(0); filter: blur(1.4px); } 75% { filter: blur(.3px); } 100% { transform: translateY(-94.4444%); filter: none; } }
@keyframes chargement-lettre { to { color: #F6EEDA; text-shadow: 0 0 12px rgba(228, 203, 138, .55); } }
/* Tracé invisible avant son départ : sans cela, l'extrémité arrondie du trait laisse voir un point */
@keyframes chargement-trait { from { opacity: 1; stroke-dashoffset: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes chargement-pulse { 50% { transform: scale(1.12); } }
@keyframes chargement-texte { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes chargement-centre { to { transform: scale(.96); } }
@keyframes chargement-sortie { to { opacity: 0; visibility: hidden; } }
@keyframes chargement-monogramme { from { opacity: 0; transform: scale(.94); } 30% { opacity: .07; } to { opacity: .07; transform: scale(1); } }
@keyframes chargement-logo { from { opacity: 0; transform: translateY(-8px) scale(.9); } }
/* Compteurs : mêmes tambours, plus petits. Ils roulent de 0,4 s à 2,15 s au plus tard, de gauche à droite
 * (--c : rang du compteur) et chiffre par chiffre (--d : rang du chiffre) ; libellés visibles dès le début.
 * Rien ne dépasse 3,1 s : l'animation garde sa durée. */
.chargement__compteurs { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 16px 36px; margin-top: 8px; }
.chargement__compteur { display: grid; justify-items: center; gap: 10px; }
.chargement__chiffres { display: flex; gap: 4px; font: 600 clamp(20px, 3vw, 30px)/1 "Inter", "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.chargement__espace { width: .25em; }
.chargement__libelle { margin: 0; color: var(--sur-navy-doux); font-size: clamp(13px, 1.3vw, 15px); font-weight: 500; letter-spacing: .05em; text-align: center; animation: chargement-texte .4s .1s ease both; }
.chargement__compteur:nth-child(2) { --c: 1; }
.chargement__compteur:nth-child(3) { --c: 2; }
.chargement__compteur:nth-child(4) { --c: 3; }
.chargement__chiffres .chargement__tambour:nth-child(2) { --d: 1; }
.chargement__chiffres .chargement__tambour:nth-child(3) { --d: 2; }
.chargement__chiffres .chargement__tambour:nth-child(4) { --d: 3; }
.chargement__chiffres .chargement__tambour:nth-child(5) { --d: 4; }
.chargement__chiffres .chargement__tambour:nth-child(6) { --d: 5; }
.chargement__chiffres .chargement__tambour:nth-child(n+7) { --d: 6; }
.chargement__chiffres .chargement__bande { animation-delay: .4s; animation-duration: calc(1.15s + var(--c, 0) * .12s + var(--d, 0) * .05s); }
.chargement__chiffres .chargement__bande span:last-child { animation-delay: calc(1.5s + var(--c, 0) * .12s + var(--d, 0) * .05s); }
@media (max-width: 640px) { .chargement__compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; } }
/* Écrans peu hauts (téléphone à l'horizontale) : tout tient sans être rogné, compteurs sur une ligne */
@media (max-height: 560px) {
  .chargement__centre { gap: 10px; }
  .chargement__logo, .chargement__coche { display: none; }
  .chargement__ligne { font-size: 26px; }
  .chargement__ligne--2 { font-size: 18px; }
  .chargement__rouleau { gap: 8px; }
  .chargement__compteurs { grid-template-columns: repeat(4, minmax(0, auto)); gap: 10px 20px; margin-top: 0; }
  .chargement__chiffres { font-size: 21px; }
  .chargement__libelle { font-size: 12.5px; }
}
@media (max-width: 360px) { .chargement__ligne--1 { font-size: 26px; gap: 6px; } .chargement__ligne--2 { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .chargement { display: none; } }

/* ------------------------------------------------------------ questions fréquentes (partials/faq.php)
 * Cartes <details> : ouverture et fermeture animées en hauteur par site.js, signe + qui pivote en -. */
.faq { margin: 40px 0 8px; }
.faq__titre { margin: 0 0 16px; color: var(--titre); font-size: clamp(22px, 3vw, 26px); font-weight: 500; letter-spacing: -.01em; }
.faq__liste { display: grid; gap: 10px; }
.faq__carte {
  overflow: hidden; border: 1px solid rgba(11, 26, 47, .08); border-radius: 14px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 26, 47, .04); transition: box-shadow .3s var(--doux), border-color .3s var(--doux);
}
.faq__carte:hover { border-color: rgba(11, 26, 47, .16); }
.faq__carte[open] { border-color: rgba(196, 152, 62, .55); box-shadow: var(--ombre-2); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px 14px 20px;
  color: var(--titre); font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: -.003em; cursor: pointer; list-style: none;
  transition: background-color .2s var(--doux);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { background: #F7F8FA; }
.faq__question:focus-visible { outline: 3px solid #1D4E89; outline-offset: -3px; border-radius: 14px; }
/* Signe + dessiné en CSS : la barre verticale pivote et s'efface à l'ouverture */
.faq__signe { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--or-pale); transition: background-color .3s var(--doux), transform .45s var(--ressort); }
.faq__signe::before, .faq__signe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #7A5A12; transition: transform .45s var(--ressort), opacity .3s ease; }
.faq__signe::after { transform: rotate(90deg); }
.faq__carte[open] .faq__signe { background: var(--navy); transform: rotate(180deg); }
.faq__carte[open] .faq__signe::before, .faq__carte[open] .faq__signe::after { background: #FFFFFF; }
.faq__carte[open] .faq__signe::after { transform: rotate(0deg); opacity: 0; }
.faq__reponse { padding: 0 20px 18px; }
.faq__reponse p { margin: 0; padding-top: 2px; color: #33445C; font-size: 15px; font-weight: 400; line-height: 1.7; }
.faq__carte[open] .faq__reponse p { animation: faq-texte .4s .05s var(--doux) both; }
@keyframes faq-texte { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .faq__carte[open] .faq__reponse p { animation: none; } .faq__signe, .faq__signe::before, .faq__signe::after { transition: none; } }

/* ------------------------------------------------------------ partenaires
 * Second volet par-dessus le volet foncé : le formulaire reste visible à droite sur grand écran.
 * Bouton du volet : or clair sur marine. Pastilles d'état : couples déjà mesurés dans contrastes.md.
 */
.volet__entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.volet__entete .volet__marque { align-self: center; }
.volet__partenaires {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--or); border-radius: var(--rayon-s);
  background: transparent; color: var(--or-clair); font: 500 14px/1.3 var(--sans); cursor: pointer;
  transition: background-color .2s var(--doux), color .2s var(--doux);
}
.volet__partenaires:hover { background: var(--or-clair); color: var(--navy); }

.panneau-partenaires {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: 100%; overflow-y: auto;
  padding: 28px clamp(20px, 5vw, 64px); color: var(--sur-navy-doux);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--ombre-3); border-right: 2px solid var(--or);
  transform: translateX(-100%); transition: transform .3s var(--doux);
}
.panneau-partenaires--ouvert { transform: none; }
.panneau-partenaires:focus { outline: none; }
.panneau-partenaires :focus-visible { outline-color: var(--or-clair); }
@media (min-width: 1024px) { .panneau-partenaires { width: max(400px, 42vw); } }
@media (prefers-reduced-motion: reduce) { .panneau-partenaires { transition: none; } }
.panneau-partenaires__fermer {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 12px auto; padding: 0;
  border: 1px solid var(--sur-navy-doux); border-radius: var(--rayon-s); background: transparent; color: #FFFFFF; cursor: pointer;
}
.panneau-partenaires__fermer:hover { border-color: var(--or-clair); color: var(--or-clair); }
.panneau-partenaires__titre { margin: 0 0 24px; color: #FFFFFF; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.panneau-partenaires__merci { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--rayon); background: var(--succes-fond); color: var(--succes); font-size: 15px; line-height: 1.5; }
.panneau-partenaires__merci a { color: var(--succes); }
.panneau-partenaires .panneau-partenaires__merci a:focus-visible { outline-color: var(--focus); }
.partenaires { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.partenaire-public {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--rayon);
  background: var(--surface); color: var(--texte); text-decoration: none;
  transition: transform .2s var(--doux), box-shadow .2s var(--doux);
}
.partenaire-public:hover { color: var(--texte); transform: translateY(-1px); box-shadow: var(--ombre-2); }
.partenaire-public img { flex: none; width: 80px; height: 80px; object-fit: contain; border-radius: var(--rayon-s); }
.partenaire-public__texte { display: grid; gap: 2px; min-width: 0; }
.partenaire-public__texte strong { color: var(--titre); font-size: 17px; line-height: 1.3; }
.partenaire-public__texte > span:not(.visuellement-cache) { display: inline-flex; align-items: center; gap: 6px; color: var(--lien); font-size: 14px; overflow-wrap: anywhere; }
.partenaire-public .icone { flex: none; width: 15px; height: 15px; }

.option__detail { display: block; margin-top: 8px; color: var(--secondaire); font-size: 15px; line-height: 1.55; }
.lien-partenaires { padding: 0; border: 0; background: none; color: var(--lien); font: inherit; text-decoration: underline; cursor: pointer; }
.lien-partenaires:hover { color: var(--titre); }
.confirmation form { margin: 0; }

.partenaires-liste { margin: 0; padding: 4px 0; list-style: none; }
.partenaires-vide { padding: 24px; }
.partenaire + .partenaire { border-top: 1px solid var(--filet); }
.partenaire__ligne { display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer; }
.partenaire__logo { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: var(--rayon-s); }
.partenaire__logo--vide { background: var(--surface-douce); border: 1px solid var(--filet); }
.partenaire__identite { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.partenaire__identite strong { color: var(--titre); overflow-wrap: anywhere; }
.partenaire__identite span { color: var(--secondaire); font-size: 14px; }
.partenaire__detail h3 { margin: 26px 0 10px; }
.partenaire__suppression { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--filet); }
.partenaire__modale .bouton { margin-top: 4px; }
.partenaire__champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 20px; }
.partenaire__detail .option, .partenaire__modale .option { margin: 0 0 18px; }
.partenaire__emails { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.partenaire__emails li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--filet); border-radius: var(--rayon-s); background: var(--surface-douce); }
.partenaire__email { font-weight: 600; color: var(--titre); overflow-wrap: anywhere; }
.partenaire__date { color: var(--secondaire); font-size: 14px; }
.partenaire__actions { display: flex; gap: 8px; margin-left: auto; }
.partenaire__actions form { margin: 0; }
.partenaire__ajout { max-width: 560px; }
.partenaire__modifier { flex-basis: 100%; max-width: 560px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--filet); }
.partenaire__modifier .champ { margin-bottom: 12px; }
/* Détail d'un partenaire : affiché sans le dépliage en hauteur des statistiques (grille 0fr / 1fr),
   que Safari peut figer à une hauteur trop petite et qui coupait alors les adresses de copie. */
.partenaire .objet-detail__corps { display: block; }
.partenaire .objet-detail:not(.objet-detail--ouvert) .objet-detail__corps { display: none; }
.partenaire .objet-detail__interieur { overflow: visible; }
.partenaire .objet-detail--ouvert .objet-detail__interieur { animation: monte .35s var(--doux) both; }
.pastille-partenaire { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.6; }
.pastille-partenaire--en_attente { background: var(--attention-fond); color: var(--attention); }
.pastille-partenaire--accepte { background: var(--succes-fond); color: var(--succes); }
.pastille-partenaire--refuse { background: var(--alerte-fond); color: var(--alerte); }
.pastille-partenaire--retire { background: #E5E7EB; color: var(--secondaire); }
