/* Bontemps : la charte des outils de la campagne, reprise de Pompadour (qui la tient du CLUD).
   Barre latérale en dégradé nuit → bleu Horizons, bande blanche au nom de l'outil, fond « course du soleil » sous un
   voile (85 % dans l'outil, 65 % sur les cartes seules), cartes « verre », titres en DM Serif Display avec le trait
   bleu, texte en Plus Jakarta Sans, intitulés en petites capitales grises. Ambre, émeraude et rouge pour les états
   seulement, en teintes foncées pour le texte (contraste AA).
   Tout est servi par Bontemps : la page d'envoi (/entrer/…) n'admet que 'self' pour les styles, images et polices. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url("/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
/* Le bouton Google suit les règles de marque de Google : Roboto Medium. */
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("/fonts/roboto-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bleu: #0000B9;
  --bleu-fonce: #000090;
  --bleu-pale: #E8E8FA;
  --bleu-tres-pale: #F2F2FD;
  --nuit: #0A0A2E;
  --degrade-barre: linear-gradient(180deg, #0A0A2E 0%, #0E0E38 40%, #000090 100%);
  --ardoise-50: #F8FAFC;
  --ardoise-100: #F1F5F9;
  --ardoise-200: #E2E8F0;
  --ardoise-300: #CBD5E1;
  --ardoise-400: #94A3B8;
  --ardoise-500: #64748B;
  --ardoise-600: #475569;
  --ardoise-700: #334155;
  --rouge: #DC2626;
  --rouge-texte: #B91C1C;
  --rouge-pale: #FEF2F2;
  --rouge-filet: #FECACA;
  --ambre-texte: #B45309;
  --ambre-pale: #FFFBEB;
  --ambre-filet: #FDE68A;
  --vert-texte: #047857;
  --vert-pale: #ECFDF5;
  --vert-filet: #A7F3D0;
  --fond: #F4F5F9;
  --voile: rgba(244, 245, 249, .85);
  --verre: rgba(255, 255, 255, .92);
  --filet-verre: rgba(0, 0, 185, .06);
  --ombre-carte: 0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);
  --ombre-survol: 0 10px 40px rgba(0, 0, 185, .1), 0 4px 12px rgba(0, 0, 0, .05);
  --rayon: .5rem;
  --rayon-xl: .875rem;
  --rayon-carte: 1rem;
  --corps: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titre: "DM Serif Display", Georgia, serif;
  --largeur: 1080px;
  --barre: 240px;
  --bande: 3.5rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 .875rem/1.55 var(--corps);
  color: var(--ardoise-700);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Le fond « course du soleil », sous son voile : un calque fixe derrière tout le contenu. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--voile), var(--voile)), url("/fond.jpg") center / cover no-repeat;
}
::selection { background: rgba(0, 0, 185, .15); color: var(--bleu-fonce); }
h1, h2, h3 { margin: 0; color: var(--nuit); line-height: 1.25; font-weight: 400; }
h1 { font-family: var(--titre); font-size: 1.5rem; }
/* Le trait bleu sous le titre de page. */
h1::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--bleu); }
h2 { font-family: var(--titre); font-size: 1.125rem; }
p { margin: 0; }
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-fonce); text-decoration: underline; text-underline-offset: .15em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; border-radius: 2px; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 1rem; top: -3rem; z-index: 30; padding: .5rem 1rem;
  background: var(--bleu); color: #fff; border-radius: var(--rayon); font-weight: 700;
}
.evitement:focus { top: .5rem; color: #fff; }

/* ---- coquille : barre latérale, bande, contenu ---- */

.coquille { display: flex; min-height: 100dvh; }
/* La barre court sur toute la hauteur de la page ; son contenu reste à l'écran pendant le défilement. */
.barre { position: relative; z-index: 10; width: var(--barre); flex: none; background: var(--degrade-barre); color: #fff; }
.barre :focus-visible { outline-color: #fff; }
.barre-interieur {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; overflow: clip;
}
.barre-interieur::before, .barre-interieur::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.barre-interieur::before { bottom: -5rem; left: -5rem; width: 15rem; height: 15rem; background: rgba(0, 0, 185, .2); filter: blur(80px); }
.barre-interieur::after { top: 33%; right: -2.5rem; width: 10rem; height: 10rem; background: rgba(0, 0, 185, .1); filter: blur(60px); }
.barre-tete { position: relative; z-index: 1; display: flex; align-items: center; padding: 1.25rem .75rem 1.25rem 1.5rem; }
.barre-tete::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.marque { display: block; flex: none; line-height: 0; }
.marque img { display: block; height: 1.75rem; width: auto; }
.navigation { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; padding: .75rem .75rem .5rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.navigation-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.navigation-liens a {
  display: block; padding: .5rem .75rem; border-radius: var(--rayon-xl); color: rgba(255, 255, 255, .75);
  font-size: .8125rem; font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s;
}
.navigation-liens a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.navigation-liens a.actif {
  background: rgba(255, 255, 255, .12); color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}
.navigation-section {
  padding: 1rem .75rem .25rem; font-size: .625rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.navigation-pied { position: relative; z-index: 1; padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.compte-carte {
  display: block; min-width: 0; padding: .75rem; border-radius: var(--rayon-xl); text-decoration: none;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); transition: background-color .15s;
}
.compte-carte:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.compte-nom, .compte-adresse { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-nom { font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.compte-adresse { margin-top: .125rem; font-size: .6875rem; color: rgba(255, 255, 255, .6); }
.sortie {
  display: flex; align-items: center; gap: .5rem; width: 100%; padding: .5rem .75rem; border: 0; border-radius: var(--rayon-xl);
  background: none; font: 400 .75rem var(--corps); color: rgba(255, 255, 255, .6); cursor: pointer; text-align: left;
  transition: background-color .15s, color .15s;
}
.sortie::before {
  content: ""; width: 1rem; height: 1rem; flex: none; background: currentColor;
  -webkit-mask: url("/sortie.svg") center / contain no-repeat; mask: url("/sortie.svg") center / contain no-repeat;
}
.sortie:hover { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); }


.cadre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bande {
  position: sticky; top: 0; z-index: 8; height: var(--bande); flex: none; display: flex; align-items: center; padding: 0 1rem;
  background: #fff; border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.bande-titre { font-family: var(--titre); font-size: 1.0625rem; color: var(--nuit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ce qui ne sert qu'au téléphone (barre haute, onglets, pastilles de l'administration, sortie de la page Compte). */
.barre-haut, .onglets, .seulement-telephone { display: none; }

@media (min-width: 601px) {
  /* Le fond commence au bord de la barre : la photo reste entière dans la zone de contenu. */
  body:has(> .coquille)::before { left: var(--barre); }
}

/* ---- téléphone : la coquille mobile du CLUD (MobileTopbar, MobileBottomBar), sans script ---- */

@media (max-width: 600px) {
  :root { --hauteur-onglets: 4rem; --barre-bas: calc(var(--hauteur-onglets) + env(safe-area-inset-bottom)); }
  .coquille { display: block; }
  .barre, .bande, .retour { display: none; }
  .seulement-telephone { display: revert; }

  /* En haut : barre blanche fine et collante, la marque ou la flèche retour, puis le titre de la page. */
  .barre-haut {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .25rem;
    height: calc(3rem + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
    padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right));
    background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
  }
  .barre-haut:has(.retour-rond) { padding-left: max(.25rem, env(safe-area-inset-left)); }
  .marque-mobile { display: block; flex: none; margin-right: .25rem; line-height: 0; }
  .marque-mobile img { display: block; width: 1.5rem; height: 1.5rem; }
  .retour-rond {
    display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%;
    color: var(--ardoise-700);
  }
  .retour-rond:hover, .retour-rond:active { background: var(--ardoise-100); color: var(--ardoise-700); text-decoration: none; }
  .retour-rond svg { width: 1.25rem; height: 1.25rem; }
  .barre-haut-titre { min-width: 0; font: 400 15px/1.3 var(--titre); color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* La barre haute porte le titre : le grand titre de la page ne reste que pour les lecteurs d’écran. */
  .entete-page > h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .coquille .entete-page:has(> h1:only-child) { margin: 0; }
  .coquille .entete-page { margin-bottom: 1rem; }

  /* En bas : la barre d'onglets fixe ; le contenu garde sa hauteur en marge pour ne jamais passer dessous. */
  .onglets {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: stretch;
    height: var(--barre-bas); padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
    background: #fff; border-top: 1px solid rgba(226, 232, 240, .8); box-shadow: 0 -2px 8px rgba(0, 0, 0, .04);
  }
  .onglet {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font: 500 11px/1.2 var(--corps); color: var(--ardoise-500); text-decoration: none; user-select: none;
    -webkit-tap-highlight-color: transparent; transition: color .15s, background-color .15s;
  }
  .onglet svg { width: 1.5rem; height: 1.5rem; }
  .onglet:hover { color: var(--ardoise-700); text-decoration: none; }
  .onglet:active { background: var(--ardoise-100); }
  .onglet.actif, .onglet.actif:hover { color: var(--bleu); }
  .onglet:focus-visible { outline-offset: -3px; }
  /* Plus précis que la règle des 640 px qui suit : la marge basse du contenu garde la hauteur des onglets. */
  .coquille .page { padding-bottom: calc(var(--barre-bas) + 1.5rem); }

  /* Au téléphone, la photo se recadre sur Édouard Philippe plutôt que sur le slogan. */
  body::before { background-position: center, 14% center; }
}

/* Les sous-pages de l'administration, en pastilles défilantes en haut de Personnes (téléphone seulement). */
.pastilles-admin { margin: 0 -1rem 1rem; padding: 0 1rem .25rem; overflow-x: auto; scrollbar-width: none; }
.pastilles-admin::-webkit-scrollbar { display: none; }
.pastilles-admin ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; width: max-content; }
.pastilles-admin a {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .875rem; border-radius: 999px; white-space: nowrap;
  font-size: .8125rem; font-weight: 600; color: var(--bleu); background: var(--verre); border: 1px solid rgba(0, 0, 185, .14);
}
.pastilles-admin a:hover, .pastilles-admin a:active { background: var(--bleu-tres-pale); text-decoration: none; }
.sortie-compte { margin-top: 1.25rem; }

/* ---- page ---- */

.page { display: block; width: 100%; max-width: calc(var(--largeur) + 4rem); padding: 2rem 2rem 4rem; }
.page:focus { outline: none; }
.entete-page { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.retour { margin-bottom: 1rem; font-size: .8125rem; }
.retour a { color: var(--ardoise-500); font-weight: 600; }
.retour a:hover { color: var(--bleu); }
.titre-section { margin: 2rem 0 .875rem; }

.carte {
  background: var(--verre); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--filet-verre); border-radius: var(--rayon-carte); box-shadow: var(--ombre-carte); padding: 1.75rem;
}
.carte + .carte, .carte + .cartes-cote, .cartes-cote + .carte { margin-top: 1.25rem; }
.cartes-cote { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; align-items: start; }
.carte > .bouton:last-child { margin-top: .25rem; }
/* Intitulé de bloc : petites capitales grises. */
.carte > h2, .intitule {
  font: 700 .6875rem/1.4 var(--corps); letter-spacing: .05em; text-transform: uppercase; color: var(--ardoise-500);
}
.carte > h2 { margin-bottom: 1rem; }
.carte-tableau { padding: 1.25rem 1.5rem; }
.note { margin-top: .875rem; color: var(--ardoise-500); font-size: .75rem; }

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

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 2.25rem;
  padding: .375rem .875rem; font: 600 .875rem/1.2 var(--corps); color: var(--ardoise-600); background: #fff;
  border: 1px solid var(--ardoise-200); border-radius: var(--rayon); cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton:hover { border-color: var(--bleu); color: var(--bleu); text-decoration: none; }
.bouton.principal { color: #fff; background: var(--bleu); border-color: var(--bleu); }
.bouton.principal:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.bouton.danger { color: var(--rouge-texte); border-color: var(--rouge-filet); }
.bouton.danger:hover { background: var(--rouge-pale); border-color: var(--rouge-texte); color: var(--rouge-texte); }
.bouton.large { width: 100%; }
@media (pointer: coarse) { .bouton { min-height: 2.75rem; } }
.actions { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; margin-top: 1.25rem; }
.actions form { display: contents; }
.actions-carte { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.actions-carte form { display: contents; }

/* ---- champs ---- */

.champ { margin-bottom: 1.125rem; }
.champ > label, .champ-libelle {
  display: block; margin-bottom: .375rem; font-size: .6875rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ardoise-500);
}
input[type=text], input[type=email], input[type=search], input[type=password], input:not([type]), select, textarea {
  display: block; width: 100%; min-height: 2.5rem; padding: .5rem .75rem; font: 400 .875rem/1.45 var(--corps);
  color: var(--ardoise-700); background: var(--ardoise-50); border: 1px solid var(--ardoise-200); border-radius: var(--rayon);
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
::placeholder { color: var(--ardoise-400); opacity: 1; }
textarea { resize: vertical; min-height: 4.5rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8125rem; }
select { appearance: auto; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: rgba(0, 0, 185, .35); box-shadow: 0 0 0 3px rgba(0, 0, 185, .12); }
/* Pas de zoom d'iOS sur un champ : 16 px au téléphone. */
@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  input[type=text], input[type=email], input[type=search], input[type=password], input:not([type]), select, textarea { font-size: 16px; }
}
.champ-court { max-width: 26rem; }
.champ .note { margin-top: .375rem; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.grille-acces { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 1.25rem; }
.recherche { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: 1rem; max-width: 34rem; }
.recherche input[type=search] { flex: 1 1 12rem; width: auto; min-width: 0; background: var(--verre); }

/* ---- messages et états ---- */

.message {
  margin: 0 0 1.25rem; padding: .75rem 1rem; border-radius: var(--rayon-xl); border: 1px solid rgba(0, 0, 185, .1);
  background: var(--bleu-tres-pale); color: var(--nuit);
}
.message-succes { border-color: var(--vert-filet); background: var(--vert-pale); color: var(--vert-texte); font-weight: 600; }
.message-erreur { border-color: var(--rouge-filet); background: var(--rouge-pale); color: var(--rouge-texte); font-weight: 600; }
.message ul { margin: .5rem 0 0; padding-left: 1.25rem; font-weight: 400; }
.encart {
  margin: 0 0 1.25rem; padding: .75rem 1rem; border-radius: var(--rayon-xl);
  background: var(--bleu-tres-pale); border: 1px solid rgba(0, 0, 185, .1); color: var(--nuit);
}
.encart-attente { background: var(--ambre-pale); border-color: var(--ambre-filet); color: var(--ambre-texte); font-weight: 600; }
.etat { padding: 2.5rem 1.5rem; text-align: center; color: var(--ardoise-500); }
.etat-vide { background: var(--verre); border: 1px dashed var(--ardoise-300); border-radius: var(--rayon-carte); }
.etat-titre { color: var(--nuit); font-weight: 600; font-size: .9375rem; max-width: 34rem; margin: 0 auto; text-wrap: balance; }

/* ---- pastilles ---- */

.pastille {
  display: inline-flex; align-items: center; padding: .125rem .5rem; border-radius: .375rem;
  font: 600 .6875rem/1.4 var(--corps); white-space: nowrap;
}
.ton-attente { background: var(--ambre-pale); color: var(--ambre-texte); }
.ton-role { background: rgba(0, 0, 185, .06); color: var(--bleu); }
.ton-ok { background: var(--vert-pale); color: var(--vert-texte); }
.ton-echec { background: var(--rouge-pale); color: var(--rouge-texte); }
/* Une précision neutre (« super-admin ») : contour seul, sans couleur. */
.etiquette {
  display: inline-flex; align-items: center; padding: .0625rem .5rem; border-radius: .375rem; border: 1px solid var(--ardoise-200);
  color: var(--ardoise-500); font: 600 .6875rem/1.4 var(--corps); white-space: nowrap; vertical-align: middle;
}
h1 .etiquette { font-size: .75rem; }

/* ---- lanceur ---- */

.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.tuile {
  display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.5rem; color: var(--ardoise-700); text-decoration: none;
  background: var(--verre); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--filet-verre); border-radius: var(--rayon-carte); box-shadow: var(--ombre-carte);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.tuile:hover { color: var(--ardoise-700); text-decoration: none; box-shadow: var(--ombre-survol); border-color: rgba(0, 0, 185, .14); transform: translateY(-2px); }
.tuile:focus-visible { outline-offset: 3px; border-radius: var(--rayon-carte); }
.tuile-icone { display: block; width: 3rem; height: 3rem; flex: none; border-radius: .75rem; }
.tuile-corps { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; }
.tuile-nom { font: 400 1.25rem/1.2 var(--titre); color: var(--nuit); }
.tuile-description { color: var(--ardoise-500); }
.tuile-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin-top: .5rem; }
.tuile-ouvrir { font-weight: 600; font-size: .8125rem; color: var(--bleu); }
.tuile:hover .tuile-ouvrir { text-decoration: underline; text-underline-offset: .15em; }
@media (prefers-reduced-motion: reduce) { .tuile, .tuile:hover { transition: none; transform: none; } }

/* ---- fiches ---- */

.infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.infos dt { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ardoise-500); }
.infos dd { margin: .25rem 0 0; color: var(--nuit); font-weight: 600; overflow-wrap: anywhere; }
/* ---- tableaux ---- */

.tableau { width: 100%; border-collapse: collapse; }
.tableau th {
  text-align: left; padding: 0 .75rem .75rem; border-bottom: 1px solid var(--ardoise-100); white-space: nowrap;
  font-size: .625rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ardoise-500);
}
.carte-tableau { overflow-x: auto; }
.tableau td { padding: .75rem; border-bottom: 1px solid var(--ardoise-100); vertical-align: top; overflow-wrap: break-word; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .nom { font-weight: 600; color: var(--bleu); }
.tableau .nom + .etiquette { margin-left: .375rem; }
.tableau .sous-ligne { display: block; margin-top: .125rem; color: var(--ardoise-500); font-size: .8125rem; }
.tableau .pale, .pale { color: var(--ardoise-500); }
.tableau .court { white-space: nowrap; }
/* Au téléphone, chaque ligne devient une fiche sur deux colonnes : aucune colonne n'est perdue, rien ne déborde. */
@media (max-width: 640px) {
  .carte-tableau { overflow-x: visible; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau, .tableau tbody { display: block; width: 100%; }
  .tableau tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem 1rem; padding: .875rem 0; border-bottom: 1px solid var(--ardoise-100); }
  .tableau tr:first-child { padding-top: 0; }
  .tableau tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .tableau td { display: block; min-width: 0; border: 0; padding: 0; overflow-wrap: anywhere; }
  .tableau td.large { grid-column: 1 / -1; }
  .tableau .court { white-space: normal; }
  .tableau td[data-libelle]::before {
    content: attr(data-libelle); display: block; margin-bottom: .125rem; font-size: .625rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--ardoise-500);
  }
  .tableau td:empty { display: none; }
}

/* ---- cartes seules : connexion, mot de passe ---- */

body:has(> .page-seule) { --voile: rgba(244, 245, 249, .65); }
.page-seule { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.page-seule:focus { outline: none; }
.carte-seule {
  width: 100%; max-width: 24rem; padding: 2rem; background: #fff; border: 1px solid var(--ardoise-100);
  border-radius: var(--rayon-carte); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px rgba(10, 10, 46, .06);
}
.carte-marque { display: flex; flex-direction: column; align-items: center; gap: .875rem; }
.carte-marque img { display: block; }
.carte-marque .marque-campagne { width: 3rem; height: 3rem; border-radius: .75rem; }
.carte-marque .logo { height: 1.75rem; width: auto; }
.carte-seule h1 { margin: 1rem 0 1.5rem; font-size: 1.25rem; text-align: center; }
.carte-seule h1::after { display: none; }
.carte-seule .champ > label { font-size: .875rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ardoise-700); }
.carte-seule input { min-height: 2.75rem; padding: .625rem .875rem; background: #fff; border-radius: var(--rayon-xl); }
.carte-seule .bouton { min-height: 2.75rem; border-radius: var(--rayon-xl); }
.carte-seule .bouton.principal { border: 0; background: var(--degrade-barre); font-weight: 600; transition: opacity .15s; }
.carte-seule .bouton.principal:hover { background: var(--degrade-barre); opacity: .9; }
.carte-seule .message { margin-bottom: 1.25rem; }
.carte-seule .identite { margin: -.75rem 0 1.25rem; text-align: center; color: var(--ardoise-500); }
.carte-seule .identite strong { color: var(--nuit); }
.lien-bas { margin-top: 1.25rem; text-align: center; font-size: .8125rem; }
.lien-bas a { font-weight: 600; }
.lien-bas + .lien-bas { margin-top: .625rem; }

/* Bouton Google, selon les règles de marque de Google (thème clair) : fond blanc, filet #747775, G multicolore à
   gauche, Roboto Medium 14 px, texte #1F1F1F, 12 px de marge, 10 px entre le G et le texte, forme pilule. */
.bouton-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 2.75rem; padding: 0 12px;
  font: 500 14px/20px Roboto, var(--corps); letter-spacing: .25px; color: #1F1F1F; background: #FFFFFF;
  border: 1px solid #747775; border-radius: 999px; text-decoration: none; transition: background-color .15s, box-shadow .15s;
}
.bouton-google img { display: block; width: 20px; height: 20px; flex: none; }
.bouton-google:hover { color: #1F1F1F; text-decoration: none; background: #F8F9FA; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
.separateur {
  display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ardoise-400);
  font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.separateur::before, .separateur::after { content: ""; flex: 1; border-top: 1px solid var(--ardoise-200); }

@media (max-width: 640px) {
  .page { padding: 1.25rem 1rem 3rem; }
  h1 { font-size: 1.375rem; }
  .carte { padding: 1.125rem; }
  .carte-tableau { padding: 1rem 1.125rem; }
  .grille { grid-template-columns: minmax(0, 1fr); }
  .carte-seule { padding: 1.75rem 1.25rem; }
  .entete-page .bouton, .actions-carte .bouton { flex: 1 1 auto; }
  .tuile { padding: 1.25rem; }
}

/* La scène d'entrée (spec signes § 5) : le grand signe, 168 px au centre, sur la nuit. Même image à la fin de l'envol
   (accueil, lanceur.js), au premier affichage de la page d'envoi (envoi.js) et à l'arrivée dans l'appli. */
.scene { position: fixed; inset: 0; z-index: 1000; }
.scene-fond { position: absolute; inset: 0; background: linear-gradient(135deg, #0A0A2E, #12123E 55%, #000090); }
.scene-signe { position: absolute; left: 50%; top: 50%; width: 168px; height: 168px; margin: -84px 0 0 -84px; transform-origin: 0 0; }
.scene-signe svg { display: block; width: 100%; height: 100%; overflow: visible; }
.scene-barre, .scene-point { fill: #fff; transform-box: view-box; transform-origin: 0 0; }
.scene-barre { transform: translate(18px, 32px) rotate(90deg); }
.scene-point { transform: translate(32.757px, 32px) rotate(59.078deg) translate(8.743px, 0px); }
.scene-icone { position: absolute; left: 30px; top: 30px; width: 108px; height: 108px; opacity: 0; }
.scene-legende { position: absolute; left: 1rem; right: 1rem; top: min(calc(50% + 106px), calc(100% - 5.5rem)); margin: 0; text-align: center; font-size: .9375rem; color: rgba(255, 255, 255, .72); }
.scene-formulaire { position: absolute; left: 1rem; right: 1rem; top: min(calc(50% + 150px), calc(100% - 3.5rem)); display: flex; justify-content: center; }
/* Le bouton de secours n'apparaît qu'après 4 s : envoi coincé, ou page sans JavaScript. */
.scene-secours { visibility: hidden; opacity: 0; animation: scene-secours .3s 4s forwards; }
@keyframes scene-secours { to { visibility: visible; opacity: 1; } }
/* La page d'envoi : fond nuit sans l'image du site (elle serait chargée pour rien sous la scène opaque). */
.corps-scene { background: #0A0A2E; }
.corps-scene::before { content: none; }
.scene-formulaire .scene-secours { width: auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
