/* =========================================================
   PLCC — Moteur de styles partagé
   Plateforme de Lutte Contre la Cybercriminalité
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Dominante : la tenue des agents */
  --marine-900: #081426;
  --marine-800: #0B1B33;
  --marine-700: #14294A;
  --marine-600: #1E3A63;
  --marine-400: #4A6E9E;
  --marine-300: #8FA5C4;
  --marine-100: #D6DFEC;

  /* Accent : l'orange du bouclier */
  --orange-600: #C96A08;
  --orange-500: #E8871E;
  --orange-300: #F4B36B;
  --orange-50:  #FDF2E3;

  /* Institutionnel : le vert du bouclier */
  --vert-700: #006643;
  --vert-500: #00875A;
  --vert-50:  #E4F4ED;

  /* Alerte */
  --rouge-600: #A50F1A;
  --rouge-500: #C1121F;
  --rouge-50:  #FCECEE;
  --jaune-500: #FFC300;

  /* Neutres */
  --blanc:     #FFFFFF;
  --gris-50:   #F4F6F9;
  --gris-100:  #E8ECF2;
  --gris-300:  #C3CBD8;
  --gris-500:  #6B7A90;
  --gris-700:  #3B4759;

  /* Typographie */
  --font-display: "Barlow Condensed", "Arial Narrow", Helvetica, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Rythme */
  --wrap: 1200px;
  --wrap-etroit: 820px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --sect: clamp(3.5rem, 7vw, 6.5rem);
  --ombre: 0 2px 4px rgba(8, 20, 38, .06), 0 12px 28px rgba(8, 20, 38, .10);
  --ombre-forte: 0 4px 10px rgba(8, 20, 38, .12), 0 24px 48px rgba(8, 20, 38, .18);
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gris-700);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--marine-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--marine-800);
  margin: 0 0 .6em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ---------- 3. Utilitaires de mise en page ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-etroit { width: min(100% - 2.5rem, var(--wrap-etroit)); margin-inline: auto; }

.section { padding-block: var(--sect); }
.section--clair { background: var(--gris-50); }
.section--marine { background: var(--marine-800); color: var(--marine-100); }
.section--marine h2,
.section--marine h3 { color: var(--blanc); }

.saut-lien {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--orange-500); color: var(--marine-900);
  padding: .7rem 1.2rem; border-radius: var(--r-md); font-weight: 600;
  transition: top var(--transition);
}
.saut-lien:focus { top: 1rem; }

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

/* ---------- 4. Eyebrow : référence légale / rubrique ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--orange-500);
}
.section--marine .eyebrow { color: var(--orange-300); }

.chapeau {
  font-size: 1.15rem;
  color: var(--gris-500);
  max-width: 58ch;
}
.section--marine .chapeau { color: var(--marine-300); }

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer; text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn--principal { background: var(--orange-500); color: var(--marine-900); }
.btn--principal:hover { background: var(--orange-600); color: var(--blanc); }

.btn--fantome { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.45); }
.btn--fantome:hover { background: rgba(255,255,255,.12); color: var(--blanc); border-color: var(--blanc); }

.btn--marine { background: var(--marine-800); color: var(--blanc); }
.btn--marine:hover { background: var(--marine-700); color: var(--blanc); }

.btn--alerte { background: var(--rouge-500); color: var(--blanc); }
.btn--alerte:hover { background: var(--rouge-600); color: var(--blanc); }

/* ---------- 6. Bandeau d'urgence ---------- */
.bandeau-urgence {
  background: var(--rouge-500);
  color: var(--blanc);
  font-size: .9rem;
}
.bandeau-urgence .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: .55rem;
}
.bandeau-urgence a { color: var(--blanc); font-weight: 600; }
.bandeau-urgence__num { font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- 7. En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: var(--marine-800);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.entete .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .7rem;
}

.marque { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.marque img { width: 52px; height: auto; flex-shrink: 0; }
.pied__marque img, .marque img { image-rendering: auto; }
.marque__sigle {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--blanc); line-height: 1; letter-spacing: .04em;
}
.marque__nom {
  font-family: var(--font-body); font-size: .68rem; font-weight: 500;
  color: var(--marine-300); text-transform: uppercase; letter-spacing: .1em;
  line-height: 1.35; display: block; max-width: 22ch;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--marine-100); text-decoration: none;
  padding-block: .4rem; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav a:hover { color: var(--blanc); border-bottom-color: var(--orange-500); }
.nav a[aria-current="page"] { color: var(--blanc); border-bottom-color: var(--orange-500); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--blanc);
}
.burger span {
  display: block; width: 26px; height: 2px; background: currentColor;
  margin: 5px 0; transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero { position: relative; background: var(--marine-900); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(8,20,38,.94) 0%, rgba(8,20,38,.86) 42%, rgba(8,20,38,.42) 100%),
    linear-gradient(180deg, rgba(8,20,38,.55) 0%, rgba(8,20,38,0) 45%);
}
.hero__contenu {
  position: relative; z-index: 2;
  padding-block: clamp(4.5rem, 11vw, 9rem);
  max-width: 62ch;
}
.hero h1 { color: var(--blanc); margin-bottom: .5rem; }
.hero h1 em { font-style: normal; color: var(--orange-500); display: block; }
.hero__chapeau { color: var(--marine-100); font-size: 1.2rem; max-width: 52ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Signature : balayage forensique au chargement */
.hero__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--orange-500) 22%, var(--jaune-500) 50%, var(--orange-500) 78%, transparent);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scan { animation: balayage 2.6s cubic-bezier(.5,0,.2,1) .35s 1 forwards; }
}
@keyframes balayage {
  0%   { top: 0;    opacity: 0; }
  12%  { opacity: .9; }
  88%  { opacity: .9; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- 9. Accès rapides ---------- */
.acces { margin-top: -3.5rem; position: relative; z-index: 5; padding-bottom: var(--sect); }
.acces__grille {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.carte-acces {
  background: var(--blanc);
  border: 1px solid var(--gris-100);
  border-top: 4px solid var(--orange-500);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--ombre);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte-acces:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); color: inherit; }
.carte-acces--alerte { border-top-color: var(--rouge-500); }
.carte-acces--vert { border-top-color: var(--vert-500); }
.carte-acces h3 { margin-bottom: .4rem; }
.carte-acces p { font-size: .97rem; color: var(--gris-500); }
.carte-acces__fleche {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600);
}

/* ---------- 10. Chiffres ---------- */
.chiffres {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); overflow: hidden;
}
.chiffre { background: var(--marine-800); padding: 1.9rem 1.4rem; text-align: center; }
.chiffre__valeur {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700; color: var(--orange-500); line-height: 1; display: block;
}
.chiffre__label {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--marine-300); margin-top: .6rem; display: block;
}

/* ---------- 11. Duo texte + image ---------- */
.duo {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.duo--inverse .duo__media { order: -1; }
.duo__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombre); }
.duo__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- 12. Cartes institutionnelles (DITT / PLCC) ---------- */
.institutions {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.institution {
  background: var(--blanc); border: 1px solid var(--gris-100);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombre);
  display: flex; flex-direction: column;
}
.institution__media { aspect-ratio: 16 / 9; overflow: hidden; }
.institution__media img { width: 100%; height: 100%; object-fit: cover; }
.institution__corps { padding: 1.8rem 1.7rem; flex: 1; }
.institution__meta {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--vert-700); margin-bottom: .7rem;
}
.institution--plcc .institution__meta { color: var(--orange-600); }
.institution ul { margin: 0; padding-left: 1.1rem; }
.institution li { margin-bottom: .45rem; }

/* ---------- 13. Missions ---------- */
.missions {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.mission {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  border-left: 3px solid var(--orange-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.5rem 1.4rem;
}
.mission__num {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; color: var(--orange-300); display: block; margin-bottom: .5rem;
}
.mission h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.mission p { font-size: .95rem; color: var(--marine-300); margin: 0; }

/* ---------- 14. Infractions ---------- */
.infractions {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.infraction {
  background: var(--blanc);
  border: 1px solid var(--gris-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.infraction:hover { border-color: var(--rouge-500); box-shadow: var(--ombre); transform: translateY(-3px); }
.infraction__corps { padding: 1.6rem 1.5rem 1.4rem; flex: 1; }
.infraction h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.infraction p { font-size: .96rem; color: var(--gris-500); margin: 0; }

/* Le bandeau des peines : rouge pleine largeur, texte blanc */
.infraction__peines {
  background: var(--rouge-600);
  color: var(--blanc);
  padding: 1.25rem 1.5rem 1.15rem;
  margin-top: auto;
}
.infraction__peines::before {
  content: "Peines encourues";
  display: block;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-bottom: .7rem;
}
.peine {
  font-family: var(--font-display);
  font-size: 1.42rem; font-weight: 600; line-height: 1.2;
  letter-spacing: .01em;
  color: var(--blanc);
  margin: 0 0 .3rem;
  display: block;
}
.peine:last-of-type { margin-bottom: 0; }
.peine small {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 400; letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-top: .1rem;
}
.infraction__ref {
  display: block;
  margin-top: .95rem; padding-top: .8rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--font-body);
  font-size: .78rem; line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}

/* ---------- 15. Listes de prévention ---------- */
.conseils {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.conseil { background: var(--blanc); border-radius: var(--r-lg); padding: 1.8rem 1.7rem; border: 1px solid var(--gris-100); }
.conseil__titre {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .35rem 1.1rem; border-radius: 100px; margin-bottom: 1.2rem;
}
.conseil--eviter .conseil__titre { background: var(--rouge-50); color: var(--rouge-600); }
.conseil--mefier .conseil__titre { background: var(--orange-50); color: var(--orange-600); }
.conseil--adopter .conseil__titre { background: var(--vert-50); color: var(--vert-700); }
.conseil ul { list-style: none; margin: 0; padding: 0; }
.conseil li {
  position: relative; padding-left: 1.7rem; margin-bottom: .8rem; font-size: .98rem;
}
.conseil li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--orange-500);
}
.conseil--eviter li::before { background: var(--rouge-500); }
.conseil--adopter li::before { background: var(--vert-500); }

/* ---------- 16. Bande d'appel ---------- */
.bande-cta { position: relative; overflow: hidden; background: var(--marine-900); }
.bande-cta__media { position: absolute; inset: 0; }
.bande-cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.bande-cta__voile { position: absolute; inset: 0; background: rgba(8, 20, 38, .90); }
.bande-cta__contenu {
  position: relative; z-index: 2; text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.bande-cta h2 { color: var(--blanc); }
.bande-cta p { color: var(--marine-100); max-width: 56ch; margin-inline: auto; }
.bande-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2rem; }

/* ---------- 17. Pied de page ---------- */
.pied { background: var(--marine-900); color: var(--marine-300); padding-block: 3.5rem 2rem; font-size: .95rem; }
.pied__grille {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.pied h4 {
  color: var(--blanc); font-size: 1rem; letter-spacing: .08em; margin-bottom: 1rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .55rem; }
.pied a { color: var(--marine-300); text-decoration: none; }
.pied a:hover { color: var(--orange-500); }
.pied__contact { font-family: var(--font-mono); font-size: .88rem; line-height: 1.9; }
.pied__bas {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.6rem; font-size: .85rem;
}
.pied__marque { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.pied__marque img { width: 46px; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--marine-900);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav[data-ouvert="true"] { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange-500); }
  .entete .wrap { position: relative; }
  .entete .btn { display: none; }
  .duo--inverse .duo__media { order: 0; }
  .acces { margin-top: -2rem; }
}

@media (max-width: 560px) {
  .marque__nom { display: none; }
  .hero__actions .btn, .bande-cta__actions .btn { width: 100%; }
}

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

/* ---------- 19. Impression ---------- */
@media print {
  .entete, .bandeau-urgence, .hero__media, .bande-cta__media, .burger { display: none !important; }
  body { color: #000; }
}

/* =========================================================
   20. FORMULAIRE DE SIGNALEMENT
   ========================================================= */
.page-entete { background: var(--marine-800); color: var(--marine-100); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-entete h1 { color: var(--blanc); margin-bottom: .6rem; }
.page-entete .chapeau { color: var(--marine-100); }

.fil { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--marine-300); margin-bottom: 1.2rem; }
.fil a { color: var(--marine-300); text-decoration: none; }
.fil a:hover { color: var(--orange-500); }

.encart {
  border-left: 4px solid var(--orange-500);
  background: var(--orange-50);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 2.5rem;
  font-size: .97rem;
}
.encart--alerte { border-left-color: var(--rouge-500); background: var(--rouge-50); }
.encart--info { border-left-color: var(--vert-500); background: var(--vert-50); }
.encart strong { color: var(--marine-800); }

.formulaire { max-width: 860px; }

.bloc {
  background: var(--blanc);
  border: 1px solid var(--gris-100);
  border-radius: var(--r-lg);
  padding: 2rem 1.9rem;
  margin-bottom: 1.5rem;
}
.bloc__entete { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gris-100); }
.bloc__num {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  color: var(--blanc); background: var(--marine-700);
  padding: .25rem .6rem; border-radius: var(--r-sm); flex-shrink: 0;
}
.bloc__entete h2 { font-size: 1.4rem; margin: 0; }

.champs { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.champ--large { grid-column: 1 / -1; }

.champ { display: flex; flex-direction: column; gap: .4rem; }
.champ > label {
  font-size: .88rem; font-weight: 600; color: var(--marine-800);
  display: flex; align-items: center; gap: .35rem;
}
.champ .requis { color: var(--rouge-500); }
.champ .aide { font-size: .82rem; color: var(--gris-500); font-weight: 400; }

.champ input[type="text"], .champ input[type="tel"], .champ input[type="email"],
.champ input[type="date"], .champ input[type="number"], .champ select, .champ textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--gris-700);
  background: var(--blanc);
  border: 1px solid var(--gris-300); border-radius: var(--r-md);
  padding: .7rem .85rem; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { min-height: 170px; resize: vertical; line-height: 1.65; }
.champ select { cursor: pointer; }

.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--marine-400); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(232, 135, 30, .18);
}
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"], .champ select[aria-invalid="true"] {
  border-color: var(--rouge-500); box-shadow: 0 0 0 3px rgba(193, 18, 31, .14);
}
.champ__erreur { font-size: .84rem; color: var(--rouge-600); font-weight: 500; min-height: 0; }

.compteur { font-family: var(--font-mono); font-size: .78rem; color: var(--gris-500); text-align: right; }

.options { display: flex; flex-wrap: wrap; gap: .6rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.option span {
  display: block; padding: .55rem 1.1rem;
  border: 1px solid var(--gris-300); border-radius: 100px;
  font-size: .92rem; cursor: pointer;
  transition: all var(--transition);
}
.option input:hover + span { border-color: var(--marine-400); }
.option input:checked + span { background: var(--marine-800); border-color: var(--marine-800); color: var(--blanc); }
.option input:focus-visible + span { outline: 3px solid var(--orange-500); outline-offset: 2px; }

.case { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; margin-bottom: .9rem; }
.case input { width: 20px; height: 20px; margin: .15rem 0 0; flex-shrink: 0; accent-color: var(--orange-500); cursor: pointer; }
.case label { cursor: pointer; }

.depot {
  border: 2px dashed var(--gris-300); border-radius: var(--r-lg);
  padding: 2rem 1.5rem; text-align: center; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.depot:hover, .depot[data-survol="true"] { border-color: var(--orange-500); background: var(--orange-50); }
.depot input { display: none; }
.depot__titre { font-weight: 600; color: var(--marine-800); margin-bottom: .3rem; }
.depot__aide { font-size: .86rem; color: var(--gris-500); margin: 0; }

.pieces { list-style: none; margin: 1rem 0 0; padding: 0; }
.pieces li {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem .9rem; background: var(--gris-50);
  border-radius: var(--r-md); margin-bottom: .5rem; font-size: .92rem;
}
.pieces__nom { flex: 1; word-break: break-all; }
.pieces__poids { font-family: var(--font-mono); font-size: .8rem; color: var(--gris-500); }
.pieces__retirer {
  background: none; border: 0; cursor: pointer; color: var(--rouge-500);
  font-size: 1.3rem; line-height: 1; padding: 0 .3rem;
}

.actions-formulaire { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.actions-formulaire .btn[disabled] { opacity: .55; cursor: not-allowed; }

.etat { font-size: .95rem; font-weight: 500; }
.etat--erreur { color: var(--rouge-600); }
.etat--ok { color: var(--vert-700); }

/* ---------- Récépissé ---------- */
.recepisse {
  border: 2px solid var(--vert-500); border-radius: var(--r-lg);
  background: var(--vert-50); padding: 2.2rem 2rem; max-width: 860px;
}
.recepisse h2 { color: var(--vert-700); }
.recepisse__refs {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.6rem 0;
}
.ref-carte { background: var(--blanc); border: 1px solid var(--gris-100); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.ref-carte__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-500); display: block; margin-bottom: .35rem; }
.ref-carte__valeur { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; color: var(--marine-800); word-break: break-all; }

/* =========================================================
   21. FICHE IMPRIMABLE (procédure)
   ========================================================= */
.fiche { display: none; }

@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }

  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .bandeau-urgence, .entete, .pied, .saut-lien, .page-entete,
  .formulaire, .encart, .recepisse, .bande-cta, .acces, .hero { display: none !important; }

  .fiche { display: block !important; font-family: "IBM Plex Sans", Arial, sans-serif; color: #000; }

  .fiche__entete {
    display: flex; align-items: center; gap: 12mm;
    border-bottom: 2pt solid #000; padding-bottom: 4mm; margin-bottom: 6mm;
  }
  .fiche__entete img { width: 22mm; height: auto; }
  .fiche__institution { font-size: 8.5pt; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; }
  .fiche__institution strong { display: block; font-size: 11pt; letter-spacing: .02em; }
  .fiche__ref { margin-left: auto; text-align: right; font-family: "IBM Plex Mono", monospace; font-size: 9pt; }
  .fiche__ref strong { display: block; font-size: 12pt; }

  .fiche h1 {
    font-family: "IBM Plex Sans", Arial, sans-serif; font-size: 14pt; font-weight: 600;
    text-align: center; text-transform: uppercase; letter-spacing: .08em;
    color: #000; margin: 0 0 6mm;
  }

  .fiche__section { break-inside: avoid; margin-bottom: 5mm; }
  .fiche__section > h2 {
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 9.5pt; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
    color: #000; background: #E8ECF2;
    padding: 1.5mm 2.5mm; margin: 0 0 2.5mm; border-left: 3pt solid #000;
  }

  .fiche table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .fiche td { border: .5pt solid #6B7A90; padding: 1.8mm 2.5mm; vertical-align: top; }
  .fiche td.k { width: 42mm; background: #F4F6F9; font-weight: 600; font-size: 9pt; }
  .fiche td.wide { width: auto; }

  .fiche__recit {
    border: .5pt solid #6B7A90; padding: 3mm; min-height: 40mm;
    white-space: pre-wrap; font-size: 10pt; line-height: 1.55;
  }

  .fiche__mention { font-size: 8.5pt; font-style: italic; margin-top: 3mm; }

  .fiche__signatures {
    display: flex; gap: 10mm; margin-top: 10mm; break-inside: avoid;
  }
  .fiche__signature { flex: 1; }
  .fiche__signature span { font-size: 9pt; font-weight: 600; display: block; margin-bottom: 1.5mm; }
  .fiche__signature div { border: .5pt solid #6B7A90; height: 26mm; }

  .fiche__reception { margin-top: 8mm; break-inside: avoid; }
  .fiche__reception > h2 { background: #FDF2E3; border-left-color: #C96A08; }
  .fiche__reception td.wide { height: 9mm; }

  .fiche__cachet {
    margin-top: 4mm; border: .5pt dashed #6B7A90;
    height: 30mm; position: relative;
  }
  .fiche__cachet span {
    position: absolute; top: 2mm; left: 3mm;
    font-size: 8pt; color: #6B7A90; text-transform: uppercase; letter-spacing: .08em;
  }

  .fiche__pied {
    margin-top: 8mm; padding-top: 2.5mm; border-top: .5pt solid #6B7A90;
    font-size: 8pt; display: flex; justify-content: space-between;
  }

  a[href]::after { content: ""; }
}
