/* FICHIER GÉNÉRÉ par tools/build_css.py à partir de index.css : ne pas éditer.
   Modifier les feuilles importées puis lancer `make css`. */

/* ---- tokens.css ---- */
/* Couche 1 : tokens de la charte v0.2 (valeurs brutes, jamais utilisées par les composants).
   Couche 2 : variables sémantiques (seules utilisées par les composants).
   Un thème sombre futur = redéfinir la couche 2 sous prefers-color-scheme / [data-theme="dark"]. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.311d352d9323.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.665db5e157d2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --- Charte (valeurs brutes) --- */
  --marine: #022e60;
  --marine-profond: #011b3c;
  --marine-ton: #0b3b72;
  --orange: #e77c09;
  --orange-texte: #9a5200;
  --brun-clair: #b58e67;
  --papier: #faf7f2;
  --sable: #ede4d6;
  --sable-fonce: #d9d2c5;
  --encre: #14202e;
  --gris: #5a6672;
  --gris-fonce: #3f4b57;
  --gris-clair: #8e98a3;
  --bordure: #ddd3c3;
  --bordure-champ: #cfc4b2;
  --blanc: #ffffff;

  /* --- Variables sémantiques --- */
  --fond-page: var(--papier);
  --fond-carte: var(--blanc);
  --fond-section: var(--sable);
  --fond-inverse: var(--marine);
  --fond-inverse-profond: var(--marine-profond);
  --texte: var(--encre);
  --texte-secondaire: var(--gris);
  --texte-doux: var(--gris-fonce);
  --texte-inverse: var(--papier);
  --texte-inverse-secondaire: var(--sable-fonce);
  --texte-inverse-discret: var(--gris-clair);
  --texte-barre: var(--sable);
  --titre: var(--marine);
  --bordure-defaut: var(--bordure);
  --bordure-champ-defaut: var(--bordure-champ);
  --primaire: var(--marine);
  --sur-primaire: var(--papier);
  --primaire-survol: var(--marine-ton);
  --accent: var(--orange);
  --sur-accent: var(--marine);
  --accent-texte: var(--orange-texte);
  --motif: var(--brun-clair);
  --motif-ton: var(--marine-ton);
  --focus: var(--orange-texte);
  --ombre-carte: 0 24px 48px -24px rgb(0 0 0 / 50%);

  /* Bulles animées du héros (reprises par le thème sombre) */
  --bulle-1: #0b3b72;
  --bulle-2: #1b5fa8;
  --bulle-3: var(--orange);
  --bulle-opacite: 0.9;

  /* Cartes « verre » des tarifs et formule mise en avant */
  --verre-fond: rgb(255 255 255 / 68%);
  --verre-bordure: rgb(2 46 96 / 12%);
  --vedette-fond: var(--marine);

  /* --- Typographie --- */
  --police-titre: "Montserrat", system-ui, sans-serif;
  --police-texte: "Roboto", system-ui, sans-serif;

  /* --- Gabarit --- */
  /* Longueur de ligne maximale d'un texte de lecture (environ 75 caractères). */
  --mesure: 72ch;
  --gouttiere: 32px;
  /* Marge des barres pleine largeur (infos, en-tête, messages) : même repère à gauche et à droite. */
  --gouttiere-bord: clamp(16px, 1.1vw, 24px);
  --rayon: 8px;
  --rayon-bouton: 6px;
  --cible-tactile: 44px;
}

@media (width <= 600px) {
  :root {
    --gouttiere: 20px;
  }
}

/* Thème sombre « Nuit marine » : on ne redéfinit que la couche 2 (variables sémantiques).
   Activé par <html data-theme="dark"> (static_src/js/theme.js : choix du visiteur, sinon réglage
   du système). Les logos passent en version inversée (voir header.css). Contrastes vérifiés :
   texte sur fond 16,1 · orange sur fond 6,0 · orange sur carte 4,7. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --fond-page: #011b3c;
  --fond-carte: #022e60;
  --fond-section: #02244b;
  --fond-inverse: #02244b;
  --fond-inverse-profond: #010f24;

  --texte: #faf7f2;
  --texte-secondaire: #c9d3e0;
  --texte-doux: #b4c0cf;
  --titre: #faf7f2;

  --bordure-defaut: #0b3b72;
  --bordure-champ-defaut: #6a89b3;

  /* Boutons principaux : papier sur marine (inversion du thème clair) */
  --primaire: #faf7f2;
  --sur-primaire: #022e60;
  --primaire-survol: #ede4d6;

  --accent-texte: #e77c09;
  --focus: #e77c09;
  --ombre-carte: 0 24px 48px -24px rgb(0 0 0 / 70%);

  --bulle-1: #0b3b72;
  --bulle-2: #124c8f;
  --bulle-3: #e77c09;
  --bulle-opacite: 0.75;

  --verre-fond: rgb(2 46 96 / 55%);
  --verre-bordure: rgb(250 247 242 / 14%);
  --vedette-fond: #0b3b72;
}

/* ---- base.css ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

  /* L'en-tête reste visible : les ancres (#tarifs, #formulaire…) ne passent pas dessous. */
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--fond-page);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--police-titre);
  color: var(--titre);
}

h1 {
  font-weight: 800;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
}

h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--rayon-bouton);
  background: var(--primaire);
  color: var(--sur-primaire);
  font-family: var(--police-titre);
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

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

/* ---- layout.css ---- */
/* Tout le site va d'un bord à l'autre de l'écran : le conteneur ne plafonne plus la largeur et
   chaque section part de la même marge (--gouttiere-bord) que le logo. La lisibilité est protégée
   un cran plus bas : les textes de lecture (introductions, paragraphes, articles) gardent une
   longueur de ligne confortable (--mesure), alignés à gauche sur cette marge. */
.container,
.container--fluid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--gouttiere-bord);
}

/* Un paragraphe ne dépasse jamais une longueur de ligne confortable, même sur un très grand écran.
   Les composants qui ont leur propre plafond (introductions, titres, contenus de lecture) le gardent. */
p {
  max-width: var(--mesure);
}

/* Les barres de message et d'annonce s'étendent d'un bord à l'autre : leur texte n'est pas plafonné
   (les autres avis, comme l'avertissement éducatif, gardent la longueur de ligne confortable). */
.messages .notice p,
.notice--announce p {
  max-width: none;
}

.section {
  padding-block: 96px 88px;
}

.section--sable {
  background: var(--fond-section);
}

.section--inverse {
  background: var(--fond-inverse);
  color: var(--texte-inverse);
}

@media (width <= 600px) {
  .section {
    padding-block: 64px 56px;
  }
}

.eyebrow {
  margin-bottom: 12px;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.section--inverse .eyebrow,
.hero .eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
}

.lead {
  font-size: 18px;
  color: var(--texte-secondaire);
  max-width: 640px;
}

.section--inverse .lead {
  color: var(--texte-inverse-secondaire);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

/* ---- components/button.css ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--rayon-bouton);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  /* Effet « ripple » : la vague est clippée par le bouton et reste sous le texte. */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

/* Principal : marine plein */
.btn--primary {
  background: var(--primaire);
  color: var(--sur-primaire);
}

.btn--primary:hover {
  background: var(--primaire-survol);
}

/* Appel à l'action : orange, texte marine */
.btn--cta {
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 700;
}

.btn--cta:hover {
  background: #f08a1c;
}

/* Secondaire : contour */
.btn--outline {
  border-color: var(--primaire);
  color: var(--primaire);
  background: transparent;
}

.btn--outline:hover {
  background: var(--fond-section);
}

.btn--outline-inverse {
  border-color: var(--texte-inverse);
  color: var(--texte-inverse);
  background: transparent;
}

.btn--outline-inverse:hover {
  background: rgb(250 247 242 / 10%);
}

.btn--lg {
  min-height: 52px;
  padding: 0 26px;
}

.btn--sm {
  min-height: var(--cible-tactile);
  padding: 0 16px;
  font-size: 14px;
}

.btn--link {
  min-height: var(--cible-tactile);
  padding: 0 6px;
  color: var(--primaire);
  font-size: 14px;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn svg,
.infobar svg,
.card__icon svg {
  flex: none;
}

/* Choix non sélectionné (modes de rendez-vous) */
.btn--choice {
  border-color: var(--bordure-champ-defaut);
  background: var(--fond-carte);
  color: var(--primaire);
}

.btn--choice:hover {
  background: var(--fond-section);
}

/* --- Effet ripple (inspiré d'Animate UI « ripple button », sans React) -------------------
 * Survol : léger agrandissement. Appui : léger rétrécissement. Clic : une vague part du point
 * touché (voir static_src/js/ripple.js). Sans effet pour les liens-boutons et les boutons
 * désactivés, et désactivé avec prefers-reduced-motion. */
.btn__ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentcolor;
  opacity: 0.28;
  transform: scale(0);
  pointer-events: none;
  animation: btn-ripple 0.65s ease-out forwards;
}

@keyframes btn-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:not(.btn--link):not(:disabled):not([aria-disabled="true"]):hover {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn:not(.btn--link):not(:disabled):not([aria-disabled="true"]):active {
    transform: scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn__ripple {
    display: none;
  }
}

/* ---- components/card.css ---- */
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  background: var(--fond-carte);
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon);
}

.card--compact {
  padding: 28px;
  gap: 14px;
}

.card--sable {
  background: var(--fond-section);
  border-color: transparent;
}

.card--elevated {
  box-shadow: var(--ombre-carte);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--rayon);
  background: var(--primaire);
  color: var(--sur-primaire);
}

.card__title {
  font-size: 20px;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--cible-tactile);
  text-decoration: none;
  color: var(--titre);
  font-weight: 500;
  border-bottom: 1px solid var(--bordure-defaut);
}

.card--link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

.card--link:hover {
  border-color: var(--primaire);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  color: var(--primaire);
}

.card__footnote {
  font-size: 14px;
  color: var(--texte-doux);
}

.card__list-item {
  display: flex;
  align-items: center;
  min-height: var(--cible-tactile);
  border-bottom: 1px solid var(--bordure-defaut);
  width: 100%;
  font-weight: 500;
  color: var(--titre);
}

.card__list li {
  display: flex;
}

.card__list a {
  width: 100%;
}

.card__list a svg {
  flex-shrink: 0;
}

.card__list--plain li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 18px;
}

/* ---- components/tag.css ---- */
/* Puces de filtre et de rubrique */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: 20px;
  background: transparent;
  color: var(--primaire);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.chip[aria-pressed="true"],
.chip--selected {
  background: var(--primaire);
  border-color: var(--primaire);
  color: var(--sur-primaire);
}

/* Badges : « Bientôt », « Contenu éducatif » */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid var(--accent-texte);
  border-radius: 20px;
  color: var(--accent-texte);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 12px;
}

.badge--sable {
  background: var(--fond-section);
  border-color: transparent;
  color: var(--texte-doux);
}

/* ---- components/form.css ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  color: var(--titre);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: var(--rayon-bouton);
  background: var(--fond-carte);
  color: var(--texte);
  font: inherit;
}

.textarea {
  min-height: 140px;
  padding: 12px 16px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--texte-secondaire);
}

/* Erreur : toujours icône + texte, jamais la couleur seule (charte) */
.field--error .input,
.field--error .select,
.field--error .textarea {
  border-color: var(--accent-texte);
  border-width: 2px;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--accent-texte);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--texte-doux);
}

.checkbox input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--primaire);
}

/* Champ piège anti-spam (CLAUDE.md §12) : invisible pour les humains */
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Questions facultatives d'Afriksys Verify dans le formulaire de contact */
.verify-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.verify-fields[hidden] {
  display: none;
}

.verify-fields legend {
  padding: 0 6px;
}

/* ---- components/notice.css ---- */
/* Avertissement éducatif et encadrés d'information */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--rayon-bouton);
  background: var(--fond-section);
  color: var(--texte-doux);
  font-size: 14px;
}

.notice__icon {
  flex: none;
  margin-top: 2px;
  color: var(--accent-texte);
}

/* Bandeau d'annonce au-dessus de la barre d'infos */
.notice--announce {
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 500;
}

.notice--announce .notice__icon {
  margin-top: 0;
  color: var(--sur-accent);
}

/* Confirmation : icône coche + texte (pas de vert, charte) */
.notice--success {
  margin-block: 16px;
  border: 1.5px solid var(--primaire);
  background: var(--fond-carte);
  color: var(--texte);
}

.notice--success .notice__icon {
  color: var(--primaire);
}

/* Messages de confirmation : barre pleine largeur sous l'en-tête (templates/base.html, messages.js).
   Le texte commence au même repère que le logo (marge --gouttiere-bord). */
.messages {
  margin: 0;
  padding: 0;
  list-style: none;
}

.messages .notice {
  align-items: center;
  margin: 0;
  padding: 12px var(--gouttiere-bord);
  border: 0;
  border-bottom: 1px solid var(--bordure-defaut);
  border-radius: 0;
  background: var(--fond-carte);
  color: var(--texte);
  font-size: 15px;
  transition: opacity 0.25s ease;
}

.messages .notice p {
  flex: 1;
  margin: 0;
}

.messages .notice .notice__icon {
  margin-top: 0;
}

/* Avertissement ou erreur : trait orange et icône d'alerte (jamais la couleur seule, jamais de rouge). */
.messages .notice--attention {
  border-bottom: 3px solid var(--accent);
}

.messages .notice--attention .notice__icon {
  color: var(--accent-texte);
}

.notice__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--cible-tactile);
  height: var(--cible-tactile);
  margin-block: -8px;
  border: 0;
  border-radius: var(--rayon-bouton);
  background: none;
  color: var(--texte-secondaire);
  cursor: pointer;
}

.notice__close[hidden] {
  display: none;
}

.notice__close:hover {
  background: var(--fond-section);
  color: var(--texte);
}

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

.messages .notice.is-leaving {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .messages .notice {
    transition: none;
  }
}

/* ---- components/ndop.css ---- */
/* Motifs inspirés du Ndop : bandeaux et séparateurs, jamais derrière du texte. */
.ndop {
  height: 24px;
  flex: none;
  background-color: var(--fond-inverse);
  background-image:
    linear-gradient(135deg, var(--motif) 25%, transparent 25%),
    linear-gradient(225deg, var(--motif) 25%, transparent 25%),
    linear-gradient(315deg, var(--motif) 25%, transparent 25%),
    linear-gradient(45deg, var(--motif) 25%, transparent 25%);
  background-position:
    -12px 0,
    -12px 0,
    0 0,
    0 0;
  background-size: 24px 24px;
}

.ndop--profond {
  background-color: var(--fond-inverse-profond);
}

/* Dents de scie : séparateur de sections claires */
.ndop--sawtooth {
  background-color: var(--fond-page);
  background-image:
    linear-gradient(135deg, var(--accent) 25%, transparent 25%),
    linear-gradient(225deg, var(--accent) 25%, transparent 25%);
  background-position:
    -12px 0,
    -12px 0;
  background-size: 24px 24px;
}

/* Ton sur ton : vignettes d'articles sans photo */
.ndop-tile {
  min-height: 140px;
  background-color: var(--fond-inverse);
  background-image:
    linear-gradient(135deg, var(--motif-ton) 25%, transparent 25%),
    linear-gradient(225deg, var(--motif-ton) 25%, transparent 25%),
    linear-gradient(315deg, var(--motif-ton) 25%, transparent 25%),
    linear-gradient(45deg, var(--motif-ton) 25%, transparent 25%);
  background-position:
    -16px 0,
    -16px 0,
    0 0,
    0 0;
  background-size: 32px 32px;
}

/* Damier : accent ponctuel */
.ndop-checker {
  background-color: var(--fond-section);
  background-image: conic-gradient(
    var(--fond-inverse) 25%,
    var(--fond-section) 0 50%,
    var(--fond-inverse) 0 75%,
    var(--fond-section) 0
  );
  background-size: 32px 32px;
}

/* ---- components/header.css ---- */
/* Barre d'infos */
.infobar {
  background: var(--fond-inverse-profond);
  color: var(--texte-barre);
  font-size: 14px;
}

.infobar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 10px;
}

.infobar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.infobar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.infobar__status {
  font-weight: 500;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 13px;
}

.lang-switch a {
  text-decoration: none;
}

.lang-switch [aria-current="true"] {
  color: var(--accent);
}

.lang-switch__sep {
  color: var(--texte-inverse-discret);
}

@media (width <= 760px) {
  .infobar__item--address {
    display: none;
  }
}

/* En-tête */
/* Barre de navigation fixe : reste en haut de l'écran pendant le défilement. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fond-page);
  border-bottom: 1px solid var(--bordure-defaut);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__icon {
  width: 42px;
  height: auto;
}

.brand__word {
  height: 24px;
  width: auto;
}

.nav {
  display: flex;
  gap: 8px 18px;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 15px;
  color: var(--primaire);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* Sous-menu « Services » : <details> natif, sans JavaScript, fermé au clic extérieur (header.js). */
.nav-group {
  position: relative;
}

.nav-group > summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg);
}

.nav-group[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.nav-group__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -12px;
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 300px;
  padding: 8px;
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: var(--ombre-carte);
}

.nav .nav-group__menu a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: normal;
}

.nav .nav-group__menu a:hover,
.nav .nav-group__menu a:focus-visible {
  background: var(--fond-section);
}

.nav-group__menu small {
  color: var(--texte-secondaire);
  font-family: var(--police-texte);
  font-weight: 400;
  font-size: 13px;
}

@media (width <= 1100px) {
  /* Menu replié : le sous-menu s'ouvre dans le flux, sans fenêtre flottante. */
  .nav-group__menu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 12px;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__collapsible {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--cible-tactile);
  height: var(--cible-tactile);
  border: 1.5px solid var(--primaire);
  border-radius: var(--rayon-bouton);
  background: transparent;
  color: var(--primaire);
  cursor: pointer;
}

/* Navigation repliée en menu sous 1100 px (le menu complet n'y tient plus sur une ligne) */
@media (width <= 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__collapsible {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-header__collapsible.is-open {
    display: flex;

    /* En-tête fixe : un menu ouvert plus haut que l'écran reste défilable. */
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  .nav {
    flex-direction: column;
    gap: 0;
  }

  .site-header__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.infobar__item svg {
  flex: none;
}

/* Cibles tactiles >= 44 px (CLAUDE.md §4) sans agrandir le visuel */
.infobar a.infobar__item,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cible-tactile);
  min-height: var(--cible-tactile);
}

/* Mobile : barre d'infos sur une seule ligne utile (téléphone, statut, langue) */
@media (width <= 760px) {
  .infobar__hours {
    display: none;
  }

  .infobar__inner {
    flex-wrap: nowrap;
    gap: 4px 12px;
    padding-block: 0;
  }

  .infobar__list {
    flex: 1;
    min-width: 0;
    gap: 0 12px;
  }

  .infobar__status {
    font-size: 13px;
  }
}

/* --- Logo : version normale en thème clair, inversée en thème sombre ------------------------
   Le logo normal est marine : sur le fond sombre il serait invisible (contraste 1,3). */
.brand__logo--sombre {
  display: none;
}

:root[data-theme="dark"] .brand__logo--clair {
  display: none;
}

:root[data-theme="dark"] .brand__logo--sombre {
  display: block;
}

/* --- Bascule clair / sombre (à côté du sélecteur de langue) --------------------------------- */
.infobar__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cible-tactile);
  height: var(--cible-tactile);
  padding: 0;
  border: 0;
  border-radius: var(--rayon-bouton);
  background: transparent;
  color: var(--texte-inverse);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.theme-toggle:hover {
  background: rgb(250 247 242 / 10%);
}

/* Les deux icônes sont superposées ; celle qui n'est pas active pivote et s'efface. */
.theme-toggle__icon {
  position: absolute;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s;
}

.theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}

.theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: var(--accent);
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: var(--accent);
}

:root[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__icon {
    transition: none;
  }
}

/* Transition de thème : cercle qui s'étend depuis le bouton (API View Transitions, theme.js).
   Sans l'API ou avec mouvement réduit, le changement est instantané. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* Suggestion de langue selon le pays détecté (jamais de redirection automatique) */
.lang-suggestion {
  background: var(--fond-section);
  border-bottom: 1px solid var(--bordure-defaut);
  font-size: 14px;
}

.lang-suggestion__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 8px;
}

.lang-suggestion p {
  margin: 0;
}

/* ---- components/footer.css ---- */
.site-footer {
  background: var(--fond-inverse-profond);
  color: var(--texte-inverse-secondaire);
  font-size: 15px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 56px 40px;
}

@media (width <= 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__tagline {
  margin-top: 16px;
}

.site-footer__title {
  margin-bottom: 14px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-inverse);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

/* Cibles tactiles >= 44 px (CLAUDE.md §4) : liens de liste et coordonnées. */
.site-footer__grid li > a,
.site-footer address a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  border-top: 1px solid rgb(250 247 242 / 15%);
  font-size: 14px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Contenu inconnu : placeholder visible entre crochets (CLAUDE.md règle 7) */
.placeholder {
  color: var(--texte-inverse);
  font-style: italic;
}

.site-footer ul a,
.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
}

/* Le bouton flottant ne recouvre jamais le bas du pied de page */
.site-footer {
  padding-bottom: 76px;
}

/* ---- components/whatsapp.css ---- */
/* Bouton WhatsApp flottant : pictogramme neutre marine et orange, pas de logo tiers */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primaire);
  color: var(--sur-primaire);
  box-shadow: 0 8px 20px -6px rgb(2 46 96 / 60%);
  text-decoration: none;
}

.wa-float:hover {
  background: var(--primaire-survol);
}

.wa-float__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--fond-page);
  border-radius: 50%;
  background: var(--accent);
}

/* Masqué pendant la saisie d'un formulaire : il recouvrait le texte de consentement */
.wa-float.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- components/hero.css ---- */
/* Héros de l'accueil (fond marine, bordure Ndop en bas) */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--fond-inverse);
  color: var(--texte-inverse);
}

/* Bulles animées (inspirées d'Animate UI « bubble background », sans React).
   Teintes : --bulle-1/2/3 du thème (marine, bleu, orange en touche). Décoratif seulement :
   derrière le contenu (z-index -1), jamais lu par les lecteurs d'écran. */
.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: var(--bulle-opacite);
  will-change: transform;
  animation: bubble-float 18s ease-in-out infinite alternate;
}

.hero-bubble--1 {
  left: -8%;
  top: -22%;
  width: min(46vmax, 560px);
  aspect-ratio: 1;
  background: var(--bulle-1);
}

.hero-bubble--2 {
  right: -10%;
  top: 8%;
  width: min(40vmax, 480px);
  aspect-ratio: 1;
  background: var(--bulle-2);
  animation-duration: 23s;
  animation-delay: -7s;
}

.hero-bubble--3 {
  left: 42%;
  bottom: -26%;
  width: min(22vmax, 280px);
  aspect-ratio: 1;
  background: var(--bulle-3);
  opacity: calc(var(--bulle-opacite) * 0.5);
  animation-duration: 14s;
  animation-delay: -3s;
}

/* Bulle qui suit le pointeur (--px, --py posés par bubbles.js ; centrée par défaut) */
.hero-bubble--pointer {
  left: 0;
  top: 0;
  width: min(26vmax, 320px);
  aspect-ratio: 1;
  background: var(--bulle-2);
  opacity: calc(var(--bulle-opacite) * 0.7);
  transform: translate(calc(var(--px, 55%) - 50%), calc(var(--py, 45%) - 50%));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  animation: none;
}

@keyframes bubble-float {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(4%, -6%) scale(1.14);
  }
}

/* Hors écran : animations en pause (économie de batterie) */
.hero.is-offscreen .hero-bubble,
.auth-split__panel.is-offscreen .hero-bubble,
.page-title.is-offscreen::before {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bubble {
    animation: none;
  }

  .hero-bubble--pointer {
    transition: none;
  }
}

/* Écrans tactiles et petits écrans : moins de bulles, moins de flou (performances) */
@media (width <= 600px), (pointer: coarse) {
  .hero-bubble {
    filter: blur(32px);
  }

  .hero-bubble--pointer {
    display: none;
  }
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--texte-inverse);
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 80px 88px;
}

.hero__copy {
  flex: 1 1 520px;
  min-width: 0;
}

.hero__text {
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--texte-inverse-secondaire);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__commitments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--texte-inverse-secondaire);
}

.hero__commitments li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero__check {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

@media (width <= 600px) {
  .hero__inner {
    gap: 40px;
    padding-block: 48px 56px;
  }

  .hero__text {
    font-size: 18px;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* Carte de rendez-vous */
.appt {
  flex: 1 1 380px;
  max-width: 480px;
  min-width: 0;
  padding: 30px;
  gap: 0;
  color: var(--texte);
}

.appt__title {
  margin-bottom: 4px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 22px;
  color: var(--titre);
}

.appt__sub {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--texte-secondaire);
}

.appt__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.appt__note {
  min-height: 70px;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.5;
}

.appt__cta {
  width: 100%;
  min-height: 50px;
}

.appt__place {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--bordure-defaut);
  font-size: 14px;
  color: var(--texte-secondaire);
}

.appt__place svg {
  flex: none;
}

/* Titre de page intérieure (fond marine, bordure Ndop) */
.page-title {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--fond-inverse);
  color: var(--texte-inverse);
  /* La bulle « pointeur » glisse vers la souris (--px et --py posés par bubbles.js) */
  transition:
    --px 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    --py 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bulles des pages intérieures : mêmes teintes que le héros (--bulle-1/2/3, adaptées au thème),
   dessinées par deux pseudo-éléments, donc sans modifier les gabarits des 8 pages concernées. */
/* inherits: true est indispensable : --px et --py sont posés sur le conteneur (.hero ou
   .page-title) et lus par la bulle pointeur et par les pseudo-éléments, qui sont ses descendants. */
@property --px {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 72%;
}

@property --py {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 40%;
}

.page-title::before,
.page-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.page-title::before {
  inset: -20%;
  background:
    radial-gradient(circle at 14% 34%, var(--bulle-1) 0, transparent 40%),
    radial-gradient(circle at 84% 22%, var(--bulle-2) 0, transparent 38%),
    radial-gradient(circle at 52% 106%, var(--bulle-3) 0, transparent 24%);
  opacity: var(--bulle-opacite);
  will-change: transform;
  animation: page-bubbles 20s ease-in-out infinite alternate;
}

.page-title::after {
  inset: 0;
  background: radial-gradient(circle at var(--px) var(--py), var(--bulle-2) 0, transparent 24%);
  opacity: calc(var(--bulle-opacite) * 0.7);
}

@keyframes page-bubbles {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(3%, -5%) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-title::before {
    animation: none;
  }

  .page-title {
    transition: none;
  }
}

@media (pointer: coarse) {
  .page-title::after {
    display: none;
  }
}

.page-title .container {
  padding-block: 64px 56px;
}

.page-title h1 {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--texte-inverse);
}

.page-title__lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--texte-inverse-secondaire);
}

.page-title .eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
}

/* ---- components/sections.css ---- */
/* Sections de l'accueil */
.section--tight {
  padding-block: 56px;
}

.section__intro {
  margin: 14px 0 48px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section__head h2 {
  margin-bottom: 14px;
}

.section__note {
  margin-top: 32px;
}

.section__more {
  margin-top: 40px;
}

.grid-auto--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}

/* Trois pôles : trois colonnes dès que la largeur le permet (sinon la grille automatique). */
@media (width >= 1000px) {
  .grid-auto--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Méthode : frise numérotée */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--primaire);
  color: var(--sur-primaire);
  font-family: var(--police-titre);
  font-weight: 700;
}

.steps__title {
  font-family: var(--police-titre);
  font-size: 17px;
  color: var(--titre);
}

.steps__text {
  font-size: 15px;
  color: var(--texte-secondaire);
}

@media (width <= 600px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    row-gap: 2px;
  }

  .steps__num {
    grid-row: span 2;
  }
}

/* Partenaires agréés */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.partners__copy {
  flex: 1 1 420px;
}

.partners__copy h2 {
  margin-bottom: 14px;
}

.partners__logos {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  gap: 16px;
}

.partner {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  padding: 20px;
  border: 1.5px dashed var(--bordure-champ-defaut);
  border-radius: var(--rayon);
  text-align: center;
}

.partner__placeholder {
  font-style: italic;
  color: var(--texte-secondaire);
}

.partner__role {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  color: var(--titre);
}

/* Bande défilante des partenaires (inspirée du composant « Infinite Slider » de 21st.dev,
   reproduite en CSS natif). Deux groupes identiques : la piste glisse de -50 % puis boucle sans
   saut. Pause au survol et au focus ; sans animation si le visiteur demande moins de mouvement. */
.partners-band {
  overflow: hidden;
}

.partners-band .partners {
  margin-bottom: 36px;
}

.slider {
  position: relative;
  overflow: hidden;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.slider__track {
  display: flex;
  width: max-content;
  animation: slider-scroll 70s linear infinite;
}

.slider:hover .slider__track,
.slider:focus-within .slider__track {
  animation-play-state: paused;
}

.slider__group,
.slider__set {
  display: flex;
  gap: 16px;
}

.slider__group {
  flex: none;
  padding-right: 16px;
}

.slider .partner {
  flex: 0 0 260px;
  background: var(--verre-fond);
}

@keyframes slider-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .slider__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--gouttiere);
    animation: none;
  }

  /* Une seule série visible : les copies servent uniquement à la boucle */
  .slider__group[aria-hidden="true"],
  .slider__set[aria-hidden="true"] {
    display: none;
  }
}

/* Formules tarifaires : cartes « verre » sur halos, formule mise en avant (inspiré du composant
   « Pricing Section » de Launch UI / 21st.dev, reproduit en CSS natif, couleurs d'Afriksys). */
.pricing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pricing__halos {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.pricing__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
}

.pricing__halo--1 {
  left: -8%;
  top: 6%;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  background: var(--bulle-2);
}

.pricing__halo--2 {
  right: -6%;
  bottom: 4%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  background: var(--bulle-3);
  opacity: 0.16;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px 28px;
  border: 1px solid var(--verre-bordure);
  border-radius: var(--rayon);
  background: var(--verre-fond);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--ombre-carte);
  transition:
    transform 0.25s ease,
    border-color 0.25s;
}

.plan:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sur-accent);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan__name {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 20px;
  color: var(--titre);
}

.plan__audience {
  margin: 0;
  font-size: 15px;
  color: var(--texte-secondaire);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0;
  padding-block: 14px;
  border-block: 1px solid var(--verre-bordure);
  font-family: var(--police-titre);
}

.plan__amount {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  color: var(--titre);
}

.plan__currency {
  font-weight: 700;
  font-size: 15px;
  color: var(--titre);
}

.plan__period {
  font-weight: 500;
  font-size: 15px;
  color: var(--texte-secondaire);
}

.plan__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--texte);
}

.plan__check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--sur-accent);
}

.plan__check svg {
  flex: none;
}

.plan__cta {
  width: 100%;
}

/* Formule mise en avant : fond marine, liseré orange et halo, légèrement surélevée */
.plan--featured {
  border-color: var(--accent);
  background: var(--vedette-fond);
  box-shadow:
    0 0 0 1px rgb(231 124 9 / 45%),
    0 28px 70px -28px rgb(231 124 9 / 45%);
}

.plan--featured .plan__name,
.plan--featured .plan__amount,
.plan--featured .plan__currency,
.plan--featured .plan__list li {
  color: var(--texte-inverse);
}

.plan--featured .plan__audience,
.plan--featured .plan__period {
  color: var(--texte-inverse-secondaire);
}

.plan--featured .plan__price {
  border-color: rgb(250 247 242 / 18%);
}

@media (width >= 960px) {
  .plan--featured {
    transform: translateY(-10px);
    padding-block: 38px 34px;
  }

  .plan--featured:hover {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan,
  .plan--featured,
  .plan:hover,
  .plan--featured:hover {
    transition: none;
    transform: none;
  }
}

.quote {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}

.quote__title {
  margin-bottom: 8px;
  font-size: 26px;
}

/* Bureau */
.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (width <= 900px) {
  .office {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.office h2 {
  margin-bottom: 24px;
}

.office__details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin: 0 0 24px;
}

.office__details dt {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-texte);
}

.office__details dd {
  margin: 0;
}

.office__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.placeholder-text {
  font-style: italic;
  color: var(--texte-secondaire);
}

/* Plan schématique */
.map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-section);
}

.map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map__pin {
  position: absolute;
  top: 40%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  color: var(--primaire);
}

.map__label {
  padding: 6px 12px;
  border-radius: var(--rayon-bouton);
  background: var(--primaire);
  color: var(--sur-primaire);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.map__caption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  font-size: 12px;
  text-align: center;
  color: var(--texte-doux);
}

.office__details dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (width <= 480px) {
  .office__details {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .office__details dd {
    margin-bottom: 12px;
  }
}

/* ---- components/pages.css ---- */
/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (width <= 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-grid__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

/* Pages de contenu (services, à propos, légal) */
.prose-layout {
  max-width: 820px;
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 26px;
}

.prose h3 {
  margin: 28px 0 8px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose a {
  color: var(--primaire);
}

.toc {
  margin-bottom: 40px;
  padding: 20px 24px;
  border-radius: var(--rayon);
  background: var(--fond-section);
}

.toc__title {
  margin-bottom: 8px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-texte);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  display: inline-block;
  padding-block: 4px;
  color: var(--primaire);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.contact-grid > *,
.office > * {
  min-width: 0;
}

/* Variantes sans style en ligne (CSP : style-src 'self') */
.cta-row--flush {
  margin-top: 0;
  margin-bottom: 32px;
}

.cta-row--inline {
  margin-top: 0;
}

.related-grid {
  margin-top: 24px;
}

.address-plain {
  font-style: normal;
}

.address-plain a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
}

/* ---- components/poles.css ---- */
/* Pages des pôles et pastilles de statut (maquettes validées le 10 novembre 2026).
   Un statut s'affiche toujours avec une icône ET un texte, jamais par la couleur seule. */
.status-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--bordure-defaut);
  border-radius: 20px;
  background: var(--fond-page);
  color: var(--texte-doux);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 13px;
}

.status-pill--prep {
  border-color: var(--accent-texte);
  color: var(--accent-texte);
}

.status-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: var(--mesure);
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--fond-carte);
  color: var(--texte);
}

.status-banner p {
  margin: 0;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* Sur l'en-tête marine, les puces reprennent les couleurs inverses (sinon marine sur marine). */
.page-title .anchor-nav .chip {
  border-color: color-mix(in srgb, var(--texte-inverse) 45%, transparent);
  color: var(--texte-inverse);
}

.page-title .anchor-nav .chip:hover,
.page-title .anchor-nav .chip:focus-visible {
  border-color: var(--texte-inverse);
  background: color-mix(in srgb, var(--texte-inverse) 12%, transparent);
}

.split {
  display: grid;
  gap: var(--gouttiere);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

/* Tableau « Qui fait quoi » : devient une fiche empilée par ligne sur mobile. */
.resp-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--rayon);
  background: var(--fond-carte);
  font-size: 15px;
  overflow: hidden;
}

.resp-table th,
.resp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bordure-defaut);
  text-align: left;
  vertical-align: top;
}

.resp-table thead th {
  background: var(--fond-inverse);
  color: var(--texte-inverse);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 14px;
}

.resp-table td.is-yes {
  color: var(--titre);
  font-weight: 600;
}

.resp-table td.is-no {
  color: var(--texte-secondaire);
}

@media (width <= 720px) {
  .resp-table thead {
    display: none;
  }

  .resp-table tr {
    display: grid;
    padding: 10px 0;
    border-bottom: 1px solid var(--bordure-defaut);
  }

  .resp-table td,
  .resp-table th {
    padding: 4px 14px;
    border: 0;
  }

  .resp-table td::before {
    content: attr(data-col) " : ";
    color: var(--texte-secondaire);
    font-weight: 400;
  }
}

/* ---- components/blog.css ---- */
/* Blog : recherche, filtres, cartes, article */
.blog-search {
  max-width: 720px;
  margin-top: 28px;
}

.blog-search .input {
  min-height: 54px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.results-count {
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--texte-secondaire);
}

.grid-auto--cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.article-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.article-card__visual {
  min-height: 130px;
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.article-card__meta {
  margin: 0;
}

.article-card__link {
  color: inherit;
  text-decoration: none;
}

/* Toute la carte est cliquable via le lien du titre */
.article-card {
  position: relative;
}

.article-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font-size: 13px;
  color: var(--texte-doux);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.empty-state {
  padding: 48px 24px;
  border: 1.5px dashed var(--bordure-champ-defaut);
  border-radius: var(--rayon);
  text-align: center;
  color: var(--texte-secondaire);
}

/* Article */
.article__head {
  padding-block: 56px 32px;
  background: var(--fond-section);
}

.article__head h1 {
  margin-bottom: 16px;
}

.article__head .lead {
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--texte-secondaire);
}

.breadcrumb a {
  color: var(--primaire);
}

.article__meta {
  font-size: 14px;
  color: var(--texte-doux);
}

.article .prose {
  padding-top: 40px;
}

.article__sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bordure-defaut);
}

.article__sources h2 {
  font-size: 20px;
}

.article__sources ul {
  padding-left: 20px;
}

.author-box {
  margin-top: 40px;
}

.takeaway {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: var(--rayon-bouton);
  background: var(--fond-section);
}

.takeaway__title {
  margin-bottom: 8px;
  font-family: var(--police-titre);
  font-weight: 700;
  color: var(--titre);
}

.takeaway p:last-child,
.takeaway ul:last-child {
  margin-bottom: 0;
}

.article-quote {
  margin: 28px 0;
  padding-left: 24px;
  border-left: 4px solid var(--motif);
  font-size: 20px;
  font-style: italic;
  color: var(--titre);
}

.article-quote footer {
  margin-top: 8px;
  font-size: 15px;
  font-style: normal;
  color: var(--texte-secondaire);
}

.article-figure {
  margin: 28px 0;
}

.article-figure img {
  height: auto;
  border-radius: var(--rayon);
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--texte-secondaire);
}

.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.article-table caption {
  margin-bottom: 8px;
  text-align: left;
  font-weight: 600;
}

.article-table th,
.article-table td {
  padding: 10px 12px;
  border: 1px solid var(--bordure-defaut);
  text-align: left;
}

.article-table th {
  background: var(--fond-section);
  font-family: var(--police-titre);
}

/* Newsletter */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.newsletter__copy {
  flex: 1 1 380px;
}

.newsletter__title {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 34px);
  color: inherit;
}

.newsletter__form {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.newsletter-form__label {
  color: inherit;
}

.newsletter-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-form__row .input {
  flex: 1 1 220px;
}

.newsletter-form__consent {
  color: inherit;
  opacity: 0.9;
}

.section--inverse .field__error {
  color: var(--accent);
}

.chips a,
.chips button {
  min-height: var(--cible-tactile);
}

/* ---- components/auth.css ---- */
/* Espace client : connexion, création de compte, Mes demandes */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px;
  align-items: start;
}

.auth-whatsapp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.auth-benefits {
  margin-top: 56px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit .card__icon {
  flex: none;
  width: 44px;
  height: 44px;
}

.benefit .card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.request-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Pages allauth génériques (mot de passe oublié, confirmation…) */
.auth-shell {
  max-width: 560px;
}

.auth-shell h1 {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 38px);
}

.auth-shell p {
  margin-bottom: 14px;
}

.auth-shell form p {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-shell label {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  color: var(--titre);
}

.auth-shell input:not([type="checkbox"], [type="radio"], [type="hidden"]) {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: var(--rayon-bouton);
  background: var(--fond-carte);
  font: inherit;
}

.auth-shell .helptext,
.auth-shell ul.errorlist {
  font-size: 14px;
  color: var(--texte-doux);
}

.auth-shell ul.errorlist {
  margin: 0;
  padding-left: 18px;
  color: var(--accent-texte);
}

/* Messages Django (confirmations allauth, etc.) */
.messages {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-whatsapp .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* --- Connexion et création de compte : formulaire à gauche, panneau de marque à droite --------
   Inspiré du composant « Sign In » de 21st.dev, reproduit en CSS natif et aux couleurs d'Afriksys.
   Pas de faux témoignages, ni photo, ni connexion Google : le panneau reprend les avantages réels
   du compte et le fond de bulles du site. */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 680px;
  background: var(--fond-page);
}

.auth-split__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gouttiere);
}

.auth-split__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 440px;
}

/* La carte perd son cadre : le formulaire respire sur le fond de la page */
.auth-split .card {
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-split .card__title {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
}

/* Champs « verre » : coins arrondis, flou léger, anneau orange au focus */
.auth-split .input,
.auth-split .select {
  min-height: 54px;
  border-radius: 14px;
  background: var(--verre-fond);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.auth-split .input:focus,
.auth-split .select:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(231 124 9 / 28%);
}

.auth-split .btn--lg {
  width: 100%;
}

.auth-split .auth-whatsapp .btn {
  width: auto;
}

.auth-split__switch {
  margin: 0;
  text-align: center;
  color: var(--texte-secondaire);
}

/* Bouton afficher / masquer le mot de passe (password-toggle.js) */
.pw-wrap {
  position: relative;
}

.pw-wrap .input {
  padding-right: 52px;
}

.pw-toggle {
  position: absolute;
  inset-block: 0;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cible-tactile);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--texte-secondaire);
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--texte);
}

.pw-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
}

/* Panneau de marque : fond du thème, bulles, avantages du compte */
.auth-split__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  margin: 16px;
  padding: 48px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--fond-inverse);
  color: var(--texte-inverse);
}

.auth-split__logo {
  display: block;
  width: 190px;
  height: auto;
}

.auth-split__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  color: var(--texte-inverse);
}

.auth-split__lead {
  max-width: 460px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--texte-inverse-secondaire);
}

.auth-split__panel .eyebrow {
  color: var(--accent);
}

.auth-split__list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-split__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgb(250 247 242 / 16%);
  border-radius: 16px;
  background: rgb(250 247 242 / 7%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-weight: 500;
}

.auth-split__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--sur-accent);
}

/* Apparition en cascade (floutée) de la colonne du formulaire et du panneau */
@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.auth-split__inner > *,
.auth-split__copy > *,
.auth-split__logo,
.auth-split .form-grid > * {
  animation: auth-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-split__inner > :nth-child(2),
.auth-split__copy > :nth-child(2) {
  animation-delay: 0.1s;
}

.auth-split .form-grid > :nth-child(1) {
  animation-delay: 0.12s;
}

.auth-split .form-grid > :nth-child(2) {
  animation-delay: 0.2s;
}

.auth-split .form-grid > :nth-child(3) {
  animation-delay: 0.28s;
}

.auth-split .form-grid > :nth-child(4) {
  animation-delay: 0.36s;
}

.auth-split .form-grid > :nth-child(n + 5) {
  animation-delay: 0.44s;
}

.auth-split__copy > :nth-child(3) {
  animation-delay: 0.2s;
}

.auth-split__copy > :nth-child(4) {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .auth-split__inner > *,
  .auth-split__copy > *,
  .auth-split__logo,
  .auth-split .form-grid > * {
    animation: none;
  }
}

@media (width <= 900px) {
  .auth-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-split__form {
    padding-block: 36px;
  }

  .auth-split__panel {
    margin: 0 var(--gouttiere) 32px;
    padding: 32px 24px;
  }
}

/* ---- components/portal.css ---- */
/* Espace client : bandeau, navigation, tableau de bord */
.portal-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-head__name {
  margin-bottom: 4px;
}

.portal-head__avatar {
  border: 3px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
}

.portal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding-block: 40px 72px;
  transition: grid-template-columns 0.24s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Barre latérale de l'espace client (static_src/js/portal-nav.js) : une carte qui se replie en
   icônes. Compteurs sur les entrées qui attendent une action, aide et déconnexion en bas. */
.portal-nav__inner {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / 35%);
}

.portal-nav__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--rayon-bouton);
  background: none;
  color: var(--texte-secondaire);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.portal-nav__toggle[hidden] {
  display: none;
}

.portal-nav__toggle:hover {
  background: var(--fond-section);
  color: var(--titre);
}

.portal-nav__toggle svg {
  flex-shrink: 0;
  transition: transform 0.24s ease;
}

.portal-nav__label {
  margin: 0 0 6px;
  padding-inline: 12px;
  color: var(--texte-secondaire);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-nav a,
.portal-nav__footer button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: var(--cible-tactile);
  padding: 0 12px;
  border: 0;
  border-radius: var(--rayon-bouton);
  background: none;
  color: var(--titre);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.portal-nav__icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.portal-nav__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-nav a:hover,
.portal-nav__footer button:hover {
  background: var(--fond-section);
}

/* Entrée active : fond léger et repère orange (texte gras : jamais la couleur seule). */
.portal-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--titre) 9%, transparent);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 700;
}

/* Compteur : un nombre dans une pastille (le texte complet est lu par les lecteurs d'écran). */
.portal-nav__badge {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--sur-accent);
  font-family: var(--police-texte);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.portal-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--bordure-defaut);
}

.portal-nav__footer a,
.portal-nav__footer button {
  color: var(--texte-secondaire);
  font-weight: 500;
  font-size: 14px;
}

.portal-nav__footer a:hover,
.portal-nav__footer button:hover {
  color: var(--titre);
}

.portal-nav__footer form {
  margin: 0;
}

.portal-nav a:focus-visible,
.portal-nav__footer button:focus-visible,
.portal-nav__toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (width > 900px) {
  :root[data-portal-nav="collapsed"] .portal {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  :root[data-portal-nav="collapsed"] .portal-nav__toggle svg {
    transform: scaleX(-1);
  }

  /* Textes masqués à l'écran mais gardés pour les lecteurs d'écran (nom accessible des liens). */
  :root[data-portal-nav="collapsed"] .portal-nav__text,
  :root[data-portal-nav="collapsed"] .portal-nav__toggle-label,
  :root[data-portal-nav="collapsed"] .portal-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Repliée : info-bulle au survol et au focus clavier (le nom reste lu par les lecteurs d'écran). */
  :root[data-portal-nav="collapsed"] .portal-nav [data-tip]::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    z-index: 30;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--fond-inverse-profond);
    color: var(--texte-inverse);
    font-family: var(--police-texte);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    content: attr(data-tip);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.12s ease;
  }

  :root[data-portal-nav="collapsed"] .portal-nav [data-tip]:hover::after,
  :root[data-portal-nav="collapsed"] .portal-nav [data-tip]:focus-visible::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal,
  .portal-nav a,
  .portal-nav__footer button,
  .portal-nav__toggle svg,
  .portal-nav [data-tip]::after {
    transition: none;
  }
}

.portal-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
}

.portal-main h2 {
  font-size: 28px;
}

.portal-subtitle {
  margin-top: 16px;
  font-size: 22px;
}

/* Mobile : onglets défilants */
@media (width <= 900px) {
  .portal {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 24px 56px;
  }

  .portal-nav {
    margin-inline: calc(var(--gouttiere-bord) * -1);
    padding-inline: var(--gouttiere-bord);
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .portal-nav__inner {
    position: static;
    flex-direction: row;
    gap: 8px;
    width: max-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .portal-nav__footer {
    display: none;
  }

  .portal-nav a {
    width: auto;
  }

  .portal-nav__badge {
    top: -7px;
    right: -9px;
  }

  .portal-nav__toggle,
  .portal-nav__label {
    display: none;
  }

  .portal-nav ul {
    flex-direction: row;
    gap: 8px;
  }

  .portal-nav a {
    border: 1.5px solid var(--bordure-champ-defaut);
  }
}

/* Bienvenue et complétude du profil */
.portal-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.completeness {
  flex: 1 1 280px;
  max-width: 420px;
}

.completeness__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 14px;
}

.completeness__bar {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 5px;
  background: var(--fond-section);
  accent-color: var(--accent);
}

.completeness__bar::-webkit-progress-bar {
  border-radius: 5px;
  background: var(--fond-section);
}

.completeness__bar::-webkit-progress-value {
  border-radius: 5px;
  background: var(--accent);
}

.completeness__bar::-moz-progress-bar {
  border-radius: 5px;
  background: var(--accent);
}

/* Compteurs */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.counter {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: inherit;
  text-decoration: none;
}

a.counter:hover {
  border-color: var(--primaire);
}

.counter__value {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--titre);
}

.counter__label {
  font-size: 14px;
  color: var(--texte-secondaire);
}

.counter__hint {
  font-size: 13px;
  color: var(--accent-texte);
}

/* Blocs du tableau de bord */
.portal-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  align-items: start;
}

.todo-list,
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--cible-tactile);
  color: var(--titre);
  font-weight: 500;
  text-decoration: none;
}

.todo-list time {
  margin-left: auto;
  font-size: 13px;
  color: var(--accent-texte);
}

.activity-feed li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.activity-feed p {
  font-size: 15px;
}

.activity-feed time {
  font-size: 13px;
  color: var(--texte-secondaire);
}

.activity-feed__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fond-section);
  color: var(--primaire);
}

.help-card {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.help-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pastille « ouvert / fermé » : forme pleine ou vide, jamais la couleur seule */
.open-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--texte-doux);
  border-radius: 50%;
}

.open-dot--open {
  border-color: var(--primaire);
  background: var(--primaire);
}

/* Titres de page avec action */
.portal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Statut : icône + libellé ; la forme du fond varie aussi (plein / contour / pointillé) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1.5px solid var(--primaire);
  border-radius: 20px;
  background: transparent;
  color: var(--primaire);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.status--done,
.status--closed {
  background: var(--primaire);
  color: var(--sur-primaire);
}

.status--awaiting_documents {
  border-color: var(--accent-texte);
  border-style: dashed;
  color: var(--accent-texte);
}

.status--draft {
  border-color: var(--texte-secondaire);
  border-style: dotted;
  color: var(--texte-secondaire);
}

/* Liste des demandes */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}

/* Le lien du titre s'étire sur toute la carte (article-card__link::after) : la carte doit donc être
   le repère de position, sinon le lien couvre la page entière et capte tous les clics. */
.request-card {
  position: relative;
}

.request-card__ref {
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--accent-texte);
}

.draft-card {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.draft-card__actions {
  display: flex;
  gap: 10px;
}

/* Détail d'une demande */
.request-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}

.request-head h2 {
  margin-top: 4px;
}

.request-head .eyebrow {
  margin-bottom: 0;
}

.request-message {
  padding-top: 12px;
  border-top: 1px solid var(--bordure-defaut);
  white-space: pre-line;
}

.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0;
}

.kv dt {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-texte);
}

.kv dd {
  margin: 0;
}

@media (width <= 480px) {
  .kv {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .kv dd {
    margin-bottom: 10px;
  }
}

/* Frise de progression en cinq étapes */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
}

.timeline__step::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  left: -50%;
  height: 3px;
  background: var(--bordure-champ-defaut);
}

.timeline__step:first-child::before {
  display: none;
}

.timeline__step--done::before,
.timeline__step--current::before {
  background: var(--primaire);
}

.timeline__dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--bordure-champ-defaut);
  border-radius: 50%;
  background: var(--fond-carte);
  color: var(--texte-secondaire);
}

.timeline__step--done .timeline__dot {
  border-color: var(--primaire);
  background: var(--primaire);
  color: var(--sur-primaire);
}

.timeline__step--current .timeline__dot {
  border-color: var(--accent);
  border-width: 3px;
  color: var(--primaire);
}

.timeline__step--current .timeline__label {
  font-weight: 700;
  color: var(--titre);
}

@media (width <= 560px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .timeline__step {
    flex-direction: row;
    text-align: left;
  }

  .timeline__step::before {
    display: none;
  }
}

/* Onglets */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--bordure-defaut);
}

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  color: var(--titre);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.tabs a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* Nouvelle demande : étapes et brouillon */
.stepper {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texte-secondaire);
  font-family: var(--police-titre);
  font-weight: 600;
}

.stepper__item[aria-current="step"] {
  color: var(--titre);
}

.stepper__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid currentcolor;
  border-radius: 50%;
}

.stepper__item[aria-current="step"] .stepper__num,
.stepper__item--done .stepper__num {
  background: var(--primaire);
  border-color: var(--primaire);
  color: var(--sur-primaire);
}

.draft-status-line {
  min-height: 1.5em;
  font-size: 14px;
  color: var(--texte-secondaire);
}

.draft-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.draft-status--error {
  color: var(--accent-texte);
}

/* Documents : zone de dépôt, cartes, liste de pièces */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  border: 2px dashed var(--bordure-champ-defaut);
  border-radius: var(--rayon);
  background: var(--fond-section);
  color: var(--titre);
  text-align: center;
  cursor: pointer;
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--primaire);
}

.dropzone__title {
  font-family: var(--police-titre);
  font-weight: 600;
}

.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.doc-card__main {
  min-width: 0;
  flex: 1 1 260px;
}

.doc-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.doc-card__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.doc-card__reason {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent-texte);
  font-size: 14px;
}

.status--doc-compliant {
  background: var(--primaire);
  color: var(--sur-primaire);
}

.status--doc-redo,
.status--doc-missing {
  border-color: var(--accent-texte);
  border-style: dashed;
  color: var(--accent-texte);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.checklist__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checklist__upload {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.badge--unread {
  background: var(--accent);
  color: var(--titre);
}

/* Messagerie : bulles. Le côté est donné par l'alignement ET l'étiquette, pas la couleur seule. */
.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: min(100%, 560px);
  padding: 12px 16px;
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  overflow-wrap: anywhere;
}

.bubble--me {
  align-self: flex-end;
  border-color: var(--primaire);
}

.bubble--team {
  align-self: flex-start;
  background: var(--fond-section);
}

.bubble__meta {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--texte-secondaire);
}

.bubble__file {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
}

/* Rendez-vous */
.appt-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.appt-card__when {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--police-titre);
  font-weight: 600;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.slot {
  position: relative;
}

.slot input {
  position: absolute;
  opacity: 0;
}

.slot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: var(--cible-tactile);
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: var(--rayon-bouton);
  font-weight: 600;
  cursor: pointer;
}

.slot input:checked + span {
  border-color: var(--primaire);
  background: var(--primaire);
  color: var(--sur-primaire);
}

.slot input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.viewas-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--titre);
  font-weight: 600;
}

/* Étapes du dossier (page d'une demande) : état par icône et texte, jamais par la couleur seule. */
.case-steps__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-steps__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  min-height: var(--cible-tactile);
  padding: 6px 0;
  border-bottom: 1px solid var(--bordure-defaut);
}

.case-steps__item:last-child {
  border-bottom: 0;
}

.case-steps__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--bordure-champ-defaut);
  border-radius: 50%;
  color: var(--sur-primaire);
}

.case-steps__item--done .case-steps__mark {
  border-color: var(--primaire);
  background: var(--primaire);
}

.case-steps__item--current .case-steps__mark {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.case-steps__item--current .case-steps__label {
  font-weight: 700;
}

.case-steps__item--upcoming .case-steps__label {
  color: var(--texte-secondaire);
}

.case-steps__meta {
  color: var(--texte-secondaire);
  font-size: 13px;
  text-align: right;
}

@media (width <= 600px) {
  .case-steps__item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .case-steps__meta {
    grid-column: 2;
    text-align: left;
  }
}

/* ---- components/comparison.css ---- */
/* Tableau comparatif des formules (templates/components/plan_comparison.html, js/comparison.js).
   Colonne des prestations : 34 % ; les formules se partagent le reste. Sous 480 px de large
   (requête de conteneur), une seule formule est affichée, choisie par les onglets. */
.comparison {
  container: comparaison / inline-size;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: var(--ombre-carte);
}

.comparison__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--bordure-defaut);
}

.comparison__caption {
  margin: 0;
  font-size: 18px;
}

.comparison__switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--cible-tactile);
  padding: 0;
  border: 0;
  background: none;
  color: var(--texte-secondaire);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.comparison__track {
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 20px;
  padding: 2px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: 999px;
  background: var(--fond-section);
  transition: background-color 0.2s ease;
}

.comparison__thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--texte-secondaire);
  transition: transform 0.2s ease;
}

/* Commandes affichées seulement quand le script est prêt (amélioration progressive). */
.comparison__switch[hidden],
.comparison [hidden] {
  display: none;
}

.comparison__switch[aria-checked="true"] .comparison__track {
  border-color: var(--primaire);
  background: var(--primaire);
}

.comparison__switch[aria-checked="true"] .comparison__thumb {
  background: var(--sur-primaire);
  transform: translateX(16px);
}

.comparison__switch:focus-visible,
.comparison__tab:focus-visible,
.comparison__name:focus-visible,
.comparison__cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Onglets : seulement sous 480 px, une fois le script prêt. */
.comparison__tabs {
  display: none;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--bordure-defaut);
}

.comparison__tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--cible-tactile);
  padding: 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: var(--rayon-bouton);
  background: none;
  color: var(--texte-secondaire);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.comparison__tab[aria-checked="true"] {
  background: var(--primaire);
  color: var(--sur-primaire);
}

/* Tableau et projecteur */
.comparison__stage {
  position: relative;
  isolation: isolate;
  overflow-x: auto;
}

.comparison__table {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 560px; /* sans script : défilement horizontal plutôt que des colonnes écrasées */
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.comparison.is-ready .comparison__table {
  min-width: 0;
}

.comparison__table th:first-child {
  width: 34%;
}

.comparison__spotlight {
  display: none;
  position: absolute;
  inset-block: 0;
  left: 34%;
  z-index: 0;
  width: 33%;
  border-inline: 1px solid color-mix(in srgb, var(--titre) 12%, transparent);
  background: color-mix(in srgb, var(--titre) 6%, transparent);
  transform: translateX(calc(var(--spotlight-index, 0) * 100%));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.comparison__spotlight::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  content: "";
}

.comparison--plans-2 .comparison__spotlight {
  width: 33%;
}

.comparison--plans-3 .comparison__spotlight {
  width: 22%;
}

.comparison--plans-4 .comparison__spotlight {
  width: 16.5%;
}

.comparison.is-ready .comparison__spotlight {
  display: block;
}

.comparison__corner,
.comparison__plan {
  padding: 16px 12px;
  text-align: left;
  vertical-align: bottom;
  font-weight: 400;
}

.comparison__corner {
  padding-inline: 20px;
}

.comparison__corner-label {
  display: block;
  color: var(--texte-secondaire);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison__count {
  display: block;
  margin-top: 4px;
  color: var(--texte-secondaire);
  font-size: 12px;
}

.comparison__plan {
  vertical-align: top;
}

.comparison__badge {
  min-height: 16px;
  margin: 0 0 4px;
  color: var(--accent-texte);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison__name {
  display: block;
  min-height: var(--cible-tactile);
  padding: 0;
  border: 0;
  background: none;
  color: var(--titre);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.comparison__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin: 0 0 12px;
}

.comparison__amount {
  color: var(--titre);
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
}

.comparison__period {
  color: var(--texte-secondaire);
  font-size: 12px;
}

.comparison__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: var(--cible-tactile);
  padding: 0 8px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: var(--rayon-bouton);
  color: var(--titre);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.comparison__plan.is-active .comparison__cta {
  border-color: var(--primaire);
  background: var(--primaire);
  color: var(--sur-primaire);
}

.comparison__feature {
  padding: 10px 20px;
  border-top: 1px solid var(--bordure-defaut);
  color: var(--texte);
  text-align: left;
  font-weight: 400;
}

.comparison__cell {
  padding: 10px 12px;
  border-top: 1px solid var(--bordure-defaut);
  color: var(--texte-secondaire);
  text-align: center;
}

.comparison__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.comparison__mark--yes {
  background: var(--fond-section);
  color: var(--titre);
}

.comparison__cell.is-active .comparison__mark--yes {
  background: var(--primaire);
  color: var(--sur-primaire);
}

.comparison__empty {
  margin: 0;
  padding: 16px 20px;
  color: var(--texte-secondaire);
  text-align: center;
}

/* Une seule formule à la fois sur petit écran (une fois le script prêt). */
@container comparaison (width < 480px) {
  .comparison.is-ready .comparison__tabs {
    display: flex;
  }

  .comparison.is-ready .comparison__table th:first-child {
    width: 52%;
  }

  .comparison.is-ready [data-plan]:not(.is-active) {
    display: none;
  }

  .comparison.is-ready .comparison__spotlight {
    left: 52%;
    width: 48%;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comparison__spotlight,
  .comparison__track,
  .comparison__thumb,
  .comparison__cta {
    transition: none;
  }
}

/* ---- components/countdown.css ---- */
/* Décompte avant le lancement (templates/components/countdown.html, js/countdown.js). */
.countdown {
  background: var(--fond-inverse-profond);
  color: var(--texte-inverse);
}

.countdown__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 8px;
}

/* Bande fine sur une seule ligne (décision du 10 novembre 2026) : environ 50 px de haut. */
.countdown__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.countdown .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
}

.countdown__title {
  margin: 0;
  color: var(--texte-inverse);
  font-size: 15px;
  font-weight: 600;
}

.countdown__timer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  max-width: 100%;
  min-width: 0;
}

.countdown__unit {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.countdown__value {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown__label {
  color: var(--texte-inverse-secondaire);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (width <= 600px) {
  .countdown__inner {
    justify-content: flex-start;
  }
}

/* ---- components/map.css ---- */
/* Carte interactive du bureau (templates/components/office_map.html, js/map.js). */
.map-live {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--bordure-champ-defaut);
  border-radius: var(--rayon);
  background: var(--fond-section);
}

/* Sélecteur doublé : maplibre-gl.css (chargé après) impose `position: relative` à la carte. */
.map-live .map-live__canvas {
  position: absolute;
  inset: 0;
}

.map-live__canvas[hidden],
.map-live__loader[hidden],
.map-live__gate[hidden] {
  display: none;
}

.map-live__gate {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.map-live__icon {
  color: var(--accent);
}

.map-live__address {
  margin: 0;
  font-weight: 600;
}

.map-live__note {
  max-width: 46ch;
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 13px;
}

.map-live__link {
  font-size: 14px;
}

.map-live__error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.map-live__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: color-mix(in srgb, var(--fond-section) 70%, transparent);
  pointer-events: none;
}

.map-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--texte-secondaire);
  animation: map-live-pulse 1s ease-in-out infinite;
}

.map-live__dot:nth-of-type(2) {
  animation-delay: 150ms;
}

.map-live__dot:nth-of-type(3) {
  animation-delay: 300ms;
}

@keyframes map-live-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-live__dot {
    animation: none;
  }
}

/* Repère : pastille aux couleurs du site, étiquette dessous. */
.map-pin {
  position: relative;
  cursor: pointer;
}

.map-pin__dot {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
  transition: transform 150ms ease;
}

.map-pin:hover .map-pin__dot,
.map-pin:focus-visible .map-pin__dot {
  transform: scale(1.12);
}

.map-pin:focus-visible {
  border-radius: 50%;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.map-pin__label {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 4px;
  transform: translateX(-50%);
  color: #0f2b46;
  font-size: 12px;
  font-weight: 600;
  text-shadow:
    0 0 3px #fff,
    0 0 3px #fff;
  white-space: nowrap;
}

:root[data-theme="dark"] .map-pin__label {
  color: #fff;
  text-shadow:
    0 0 3px #000,
    0 0 3px #000;
}

/* Infobulle (sélecteurs plus précis que maplibre-gl.css, chargé après la feuille du site). */
.map-live .map-tip .maplibregl-popup-content {
  max-width: 260px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--fond-inverse-profond);
  box-shadow: 0 4px 14px rgb(0 0 0 / 30%);
  color: var(--texte-inverse);
  font-size: 13px;
  pointer-events: none;
}

.map-live .map-tip.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.map-live .map-tip.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.map-live .map-tip.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: var(--fond-inverse-profond);
}

.map-live .map-tip.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.map-live .map-tip.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.map-live .map-tip.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: var(--fond-inverse-profond);
}

/* ---- components/audit.css ---- */
/* Questionnaire d'audit de projet (templates/project_audit, composant « auditFunnel »).
   Sans JavaScript : les trois sections s'affichent l'une sous l'autre. */
.audit-form__step {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.audit-form__step[hidden],
.audit-form__nav[hidden],
.audit-form__progress[hidden] {
  display: none;
}

.audit-form__step legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--titre);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 20px;
}

.audit-form__step:focus {
  outline: none;
}

.audit-form__step:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.audit-form__progress {
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 14px;
  font-weight: 600;
}

.audit-form__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.audit-form__nav .btn[hidden] {
  display: none;
}

/* Étape finale : le bouton d'envoi remplace « Suivant ». */
.audit-form.is-enhanced .audit-form__step[data-audit-step="3"] .btn {
  width: 100%;
}

/* ---- components/surveys.css ---- */
/* Questionnaires (templates/surveys, apps/surveys). Mobile d'abord ; couche sémantique de la
   charte uniquement (le thème sombre suit tout seul). Aucune couleur ne porte seule une information. */

.sv-wrap {
  width: 100%;
  max-width: 820px;
  margin-inline: 0;
}

.sv-wrap--wide {
  max-width: 1180px;
}

.sv-card {
  padding: 20px;
  border: 1.5px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}

.sv-stack {
  display: grid;
  gap: 20px;
}

.sv-meta {
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 14px;
}

.sv-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-left: 6px solid var(--accent);
  border-radius: var(--rayon-bouton);
  background: var(--fond-section);
  font-size: 15px;
}

.sv-notice p {
  margin: 0;
}

.sv-text p,
.sv-text ul {
  margin: 0 0 12px;
}

.sv-text ul {
  padding-left: 22px;
}

/* --- Progression ------------------------------------------------------------------------ */
.sv-progress {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.sv-progress__label {
  margin: 0;
  color: var(--texte-doux);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 14px;
}

.sv-progress progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--sable);
  accent-color: var(--accent);
  appearance: none;
}

.sv-progress progress::-webkit-progress-bar {
  border-radius: 6px;
  background: var(--sable-fonce);
}

.sv-progress progress::-webkit-progress-value {
  border-radius: 6px;
  background: var(--primaire);
}

.sv-progress progress::-moz-progress-bar {
  border-radius: 6px;
  background: var(--primaire);
}

/* --- Questions -------------------------------------------------------------------------- */
.sv-q {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sv-q[hidden] {
  display: none;
}

.sv-q__label,
.sv-q > legend {
  padding: 0;
  color: var(--titre);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

.sv-q__number {
  display: inline-block;
  min-width: 2.8em;
  margin-right: 6px;
  color: var(--accent-texte);
}

.sv-q__required {
  margin-left: 6px;
  color: var(--accent-texte);
  font-size: 13px;
  font-weight: 600;
}

.sv-q__help {
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 14px;
}

.sv-q--error {
  padding-left: 12px;
  border-left: 4px solid var(--accent-texte);
}

.sv-choices {
  display: grid;
  gap: 8px;
}

.sv-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: var(--cible-tactile);
  padding: 8px 14px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: var(--rayon-bouton);
  background: var(--fond-carte);
  cursor: pointer;
}

.sv-choice input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--primaire);
}

.sv-choice:has(input:checked) {
  border-color: var(--primaire);
  background: var(--fond-section);
}

.sv-choice:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sv-other {
  margin: 4px 0 0 34px;
}

.sv-other[hidden] {
  display: none;
}

.sv-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-scale .sv-choice {
  min-width: var(--cible-tactile);
  justify-content: center;
}

.sv-info {
  padding: 14px 16px;
  border-radius: var(--rayon-bouton);
  background: var(--fond-section);
}

.sv-info p:last-child {
  margin-bottom: 0;
}

.sv-files {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sv-files li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sv-error-summary {
  padding: 14px 16px;
  border: 2px solid var(--accent-texte);
  border-radius: var(--rayon-bouton);
  background: var(--fond-carte);
}

.sv-error-summary:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sv-error-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* --- Barre d'actions -------------------------------------------------------------------- */
.sv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sv-actions .btn {
  flex: 1 1 100%;
}

.sv-actions__spacer {
  display: none;
}

@media (width >= 640px) {
  .sv-actions .btn {
    flex: 0 0 auto;
  }

  .sv-actions__spacer {
    display: block;
    flex: 1;
  }
}

.sv-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Lien à copier --------------------------------------------------------------------- */
.sv-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-copy .input {
  flex: 1 1 260px;
  min-width: 0;
}

.sv-copy .btn[hidden] {
  display: none;
}

/* --- Récapitulatif et réponses ----------------------------------------------------------- */
.sv-recap dt {
  margin-top: 12px;
  color: var(--texte-doux);
  font-size: 14px;
}

.sv-recap dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.sv-recap .sv-empty {
  color: var(--texte-secondaire);
  font-style: italic;
}

/* --- Back-office ------------------------------------------------------------------------- */
.sv-adminbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--bordure-defaut);
}

.sv-adminbar a {
  min-height: var(--cible-tactile);
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.sv-tablewrap {
  overflow-x: auto;
}

.sv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sv-table th,
.sv-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bordure-defaut);
  text-align: left;
  vertical-align: top;
}

.sv-table th {
  color: var(--texte-doux);
  font-size: 13px;
  white-space: nowrap;
}

.sv-inline {
  display: inline;
}

.sv-rowactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1.5px solid var(--bordure-champ-defaut);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sv-badge--live::before {
  content: "● ";
}

.sv-badge--draft::before {
  content: "○ ";
}

.sv-badge--archived::before {
  content: "▪ ";
}

.sv-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--bordure-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}

.sv-section--archived,
.sv-qrow--archived {
  opacity: 0.7;
}

.sv-section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

.sv-section__head h2 {
  margin: 0;
  font-size: 20px;
}

.sv-qrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--bordure-defaut);
  border-radius: var(--rayon-bouton);
}

.sv-qrow__main {
  flex: 1 1 320px;
  min-width: 0;
}

.sv-qrow__label {
  margin: 0;
  overflow-wrap: anywhere;
}

.sv-qrow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.sv-form-grid {
  display: grid;
  gap: 16px;
}

.sv-helptext {
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 14px;
}

.sv-slugstatus {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.sv-preview fieldset {
  min-width: 0;
}

/* --- Impression (vue « devis ») ----------------------------------------------------------- */
.sv-print-only {
  display: none;
}

@media print {
  .sv-noprint,
  .site-header,
  .site-footer,
  .infobar,
  .whatsapp-float,
  .messages {
    display: none !important;
  }

  .sv-print-only {
    display: block;
  }

  body {
    background: #fff;
    color: #000;
  }

  .sv-recap dd {
    break-inside: avoid;
  }

  .sv-section-print {
    break-before: auto;
  }
}

/* ---- components/espaces.css ---- */
/* Espaces clients (/espace/…) et leur back-office (/espace-admin/…). Mobile d'abord. */
.esp-slogan {
  margin: 8px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.esp-layout {
  display: grid;
  gap: 24px;
}

.esp-main,
.esp-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

@media (min-width: 900px) {
  .esp-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.esp-group__title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.esp-items,
.esp-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.esp-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.esp-card {
  display: grid;
  gap: 6px;
  min-height: 120px;
}

.esp-item {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .esp-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.esp-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.esp-item__actions,
.esp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.esp-item__actions .btn,
.esp-actions .btn,
.esp-whatsapp {
  min-height: 44px;
}

.esp-new {
  background: var(--accent);
  color: #fff;
}

.esp-meta {
  margin: 0;
  color: var(--texte-secondaire);
  font-size: 13px;
}

/* Lecteur PDF intégré : hauteur d'écran, repli par les boutons au-dessus. */
.esp-viewer {
  margin-top: 16px;
  border: 1px solid var(--bordure-champ-defaut);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--fond-section);
}

.esp-viewer__frame {
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 420px;
  border: 0;
}

.esp-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: var(--rayon);
}

/* Back-office */
.esp-admin {
  display: grid;
  gap: 20px;
}

.esp-adminbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 600;
}

.esp-panel {
  display: grid;
  gap: 12px;
}

.esp-tablewrap {
  overflow-x: auto;
}

.esp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.esp-table th,
.esp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bordure-champ-defaut);
  text-align: left;
  vertical-align: top;
}

.esp-rowactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.esp-rowactions form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.esp-replace {
  flex-wrap: wrap;
}

.esp-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--fond-section);
  font-size: 12px;
  font-weight: 700;
}

.esp-badge--live {
  background: var(--accent);
  color: #fff;
}

.esp-form {
  display: grid;
  max-width: 640px;
  gap: 14px;
}

.esp-inline {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.esp-drop {
  max-width: none;
  padding: 16px;
  border: 2px dashed var(--bordure-champ-defaut);
  border-radius: var(--rayon);
}

.esp-drop--over {
  border-color: var(--accent);
  background: var(--fond-section);
}

.esp-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.esp-error {
  margin: 4px 0 0;
  color: var(--erreur, #b3261e);
  font-size: 14px;
  font-weight: 600;
}

[data-slug-status].is-bad {
  color: var(--erreur, #b3261e);
  font-weight: 600;
}

/* Texte secondaire sur le bandeau bleu : le gris des cartes y serait illisible. */
.page-title .esp-meta,
.page-title .lead {
  color: rgb(255 255 255 / 85%);
}

.page-title .esp-meta a {
  color: inherit;
}

/* ---- utilities.css ---- */
/* Très peu d'utilitaires, uniquement ce qui ne mérite pas un composant. */
.stack > * + * {
  margin-top: var(--stack, 16px);
}

.text-secondary {
  color: var(--texte-secondaire);
}

.text-center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

[x-cloak] {
  display: none !important;
}
