/* IRIS by FIDU-GENEVE — feuille unique. Écrans de l'espace : maquette validée par Igor le 09.11.2026 ;
   identité (logo Diaphragme, hall d'accueil, bandeau, Aide, Sécurité, Contact) : maquette du 10.11.2026.
   Téléphone d'abord ; aucune ressource externe (police hébergée ici, licence OFL dans polices/OFL.txt) ;
   aucun style en ligne (CSP stricte). Contrastes AA vérifiés pour chaque couple texte/fond ci-dessous. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("polices/atkinson-hyperlegible-700.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("polices/atkinson-hyperlegible-400-italique.woff2") format("woff2");
}

:root {
  --papier: #F5F7F6;        /* fond : blanc froid */
  --carte: #FFFFFF;
  --encre: #13263F;         /* textes, titres (15:1 sur blanc) */
  --encre-2: #4A5B70;       /* texte secondaire (6,9:1 sur blanc, 6,5:1 sur le fond) */
  --trait: #D6DEE4;
  --action: #3B34B5;        /* indigo iris : actions (8,6:1 avec le blanc) */
  --sur-action: #FFFFFF;
  --halo: rgba(59, 52, 181, .2);
  --iris-fond: #ECEBFA;     /* onglet courant, encadré « bon à savoir » */
  --hall: #13263F;          /* fond encre du hall d'accueil (identique en mode sombre) */
  --hall-texte: #C9D3E3;    /* texte secondaire sur l'encre (10:1) */
  --pollen: #E9B53B;        /* le cœur de l'iris : décoratif seulement, jamais pour du texte */
  --attention-texte: #5E3404;
  --tampon: #1E7A52;        /* reçu (4,6:1 sur son fond) */
  --tampon-fond: #E6F3EC;
  --echeance: #955305;      /* échéance proche (5,4:1 sur son fond ; #A85E06 de la maquette assombri pour l'AA) */
  --echeance-fond: #FBF1E2;
  --alerte: #B42318;
  --alerte-fond: #FDECEA;
  --inactif-fond: #D6DEE4;  /* bouton désactivé : texte --inactif-texte à 5,2:1 (AA) */
  --inactif-texte: #4A5B70;
  --rayon: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0F151C;
    --carte: #18212C;
    --encre: #EEF2F6;
    --encre-2: #B4C0CD;
    --trait: #334152;
    --action: #A9A5F0;      /* 7:1 sur la carte sombre */
    --sur-action: #0B1420;
    --halo: rgba(169, 165, 240, .3);
    --iris-fond: #26264A;
    --attention-texte: #FFC277;
    --tampon: #6FD3A0;
    --tampon-fond: #14301F;
    --echeance: #FFC277;
    --echeance-fond: #3A2A10;
    --alerte: #FFB4A8;
    --alerte-fond: #3D1C18;
    --inactif-fond: #334152;  /* texte à 5,5:1 */
    --inactif-texte: #B4C0CD;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
[hidden], .cache { display: none !important; }
a { color: var(--action); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--carte); padding: .5rem 1rem; z-index: 20; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; }

/* --- Bandeau des pages clients (maquette du 10.11.2026) ------------------------------------- */
.logo { display: block; height: auto; aspect-ratio: 172 / 52; }
.bandeau { background: var(--carte); border-bottom: 1px solid var(--trait); position: relative; z-index: 15; }
.bandeau .ligne { max-width: 75rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px 10px; }
.accueil-logo { display: block; flex: none; line-height: 0; border-radius: 4px; }
.bandeau .logo { width: 118px; }
.bandeau .mandataire { order: 3; flex-basis: 100%; border-top: 1px solid var(--trait); padding-top: 9px; font-size: 14px; color: var(--encre-2); line-height: 1.3; }
.bandeau .mandataire b { color: var(--encre); font-size: 15px; margin-left: 4px; }
.bandeau .liens { display: none; }
.menu { margin-left: auto; }
.menu-btn {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--trait); background: var(--carte);
  border-radius: 11px; padding: 8px 12px; font-weight: 700; font-size: 15px; min-height: 44px; cursor: pointer; color: var(--encre);
}
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn svg { width: 18px; height: 18px; }
.menu[open] .menu-btn { border-color: var(--action); color: var(--action); }
.tiroir {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--carte); border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait); padding: 6px 16px 14px; box-shadow: 0 18px 28px -18px rgba(19, 38, 63, .45);
}
.tiroir > a, .tiroir > span { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 2px; min-height: 44px; border-bottom: 1px solid var(--trait); color: var(--encre); text-decoration: none; font-weight: 700; }
.tiroir > a span, .tiroir > span span { font-weight: 400; font-size: 14px; color: var(--encre-2); text-align: right; }
.tiroir .qui { padding: 12px 2px 4px; font-size: 14px; color: var(--encre-2); }
.tiroir .bouton { margin-top: 12px; width: 100%; }
.sous-bandeau { max-width: 46rem; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 18px 8px; border-top: 1px solid var(--trait); min-height: 56px; }
@media (prefers-color-scheme: dark) {
  .bandeau .logo .mot { fill: #FFFFFF; }
  .bandeau .logo .sous { fill: #C9D3E3; }
}
.marque { font-weight: 700; font-size: 15px; letter-spacing: .2px; min-width: 0; }
.marque small { display: block; font-weight: 400; color: var(--encre-2); font-size: 13px; overflow-wrap: anywhere; }
.marque.droite { text-align: right; }
.lien {
  color: var(--action); font: inherit; font-size: 15px; background: none; border: 0; padding: 0 4px;
  min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: none;
}
.lien:hover { text-decoration: underline; }
.lien.dans-texte { min-height: 0; padding: 0; text-decoration: underline; display: inline; font-size: inherit; }
.deconnexion { margin: 0; flex: none; }
.retour { flex: none; font-size: 16px; }

/* --- Barre du bas (téléphone) ; onglets sous le bandeau sur ordinateur ------------------------- */

nav.bas { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--carte); border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom); }
nav.bas > * { flex: 1; text-align: center; padding: 8px 0 10px; min-height: 56px; font-size: 13px; color: var(--encre-2); text-decoration: none; }
nav.bas > [aria-current="page"] { color: var(--action); font-weight: 700; }
nav.bas svg { display: block; margin: 0 auto 2px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.avec-barre { padding-bottom: 76px; }

/* --- Corps -------------------------------------------------------------------------------- */
.corps { max-width: 46rem; margin: 0 auto; padding: 20px 18px 28px; }
.centre { max-width: 30rem; margin: 0 auto; padding: 40px 22px 32px; }
.phrase { font-size: 27px; line-height: 1.22; font-weight: 700; margin: 4px 0 6px; letter-spacing: -.2px; }
.phrase.moyenne { font-size: 24px; }
.phrase.petite { font-size: 22px; }
.sous { color: var(--encre-2); margin: 0 0 20px; font-size: 15.5px; }
.petit { font-size: 14px; color: var(--encre-2); }
.petit.espace-haut { margin-top: 18px; }
.petit.espace-haut-large { margin-top: 28px; }
.titre-section { font-size: 15px; color: var(--encre-2); margin: 24px 0 8px; font-weight: 700; }
.alerte { background: var(--alerte-fond); color: var(--alerte); padding: 12px 14px; border-radius: 12px; font-size: 15.5px; }
.details { padding-left: 1.25rem; margin: 10px 0; }
.details li { margin: 4px 0; overflow-wrap: anywhere; }
.note-donnees { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--encre-2); margin: 16px 0; }
.indice { font-size: 14.5px; color: var(--encre-2); margin: 10px 0 0; }
.note-donnees p { margin: 0; }

/* --- Boutons -------------------------------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; text-decoration: none;
  border-radius: 12px; border: 1.5px solid var(--action); background: var(--carte); color: var(--action);
  font: inherit; font-weight: 700; font-size: 15px; padding: 9px 14px; min-height: 44px; cursor: pointer;
}
.bouton.plein { background: var(--action); color: var(--sur-action); }
.bouton.large { width: 100%; min-height: 52px; font-size: 17px; }
.bouton svg { width: 22px; height: 22px; flex: none; }
/* Désactivé : pas d'opacité (texte trop pâle) mais des couleurs dédiées, contraste AA du texte */
.bouton:disabled, .bouton[aria-disabled="true"] { border-color: var(--inactif-fond); color: var(--inactif-texte); cursor: default; }
.bouton.plein:disabled, .bouton.plein[aria-disabled="true"] { background: var(--inactif-fond); }
.bouton.large + .bouton.large, .bouton.large + form, form + .bouton.large { margin-top: 10px; }
.espace-haut-bouton { margin-top: 14px; }
form { margin: 0; }

/* --- Champs -------------------------------------------------------------------------------- */
label.l { display: block; font-weight: 700; margin: 18px 0 6px; }
.champ {
  width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; min-height: 52px;
  border: 1.5px solid var(--trait); border-radius: 12px; background: var(--carte); color: var(--encre);
}
.champ:focus { border-color: var(--action); box-shadow: 0 0 0 3px var(--halo); outline: none; }
.case { display: flex; gap: 12px; align-items: center; font-size: 15.5px; min-height: 44px; margin: 14px 0 0; cursor: pointer; }
.case input { width: 22px; height: 22px; flex: none; accent-color: var(--action); margin: 0; }
.case small { display: block; color: var(--encre-2); font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 2px; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--encre-2); font-size: 14px; margin: 26px 0 4px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--trait); }

/* Code à six chiffres : un vrai champ (collage, saisie automatique) dessiné en six cases par depot.js */
.code-saisie { position: relative; margin: 14px 0 8px; }
.code-saisie .champ-code { letter-spacing: .3em; font-variant-numeric: tabular-nums; font-size: 24px; text-align: center; }
.code { display: none; gap: 8px; }
.code span { flex: 1; height: 58px; border: 1.5px solid var(--trait); border-radius: 12px; background: var(--carte); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.code span.actif { border-color: var(--action); box-shadow: 0 0 0 3px var(--halo); }
.code-saisie.cases .code { display: flex; }
.code-saisie.cases .champ-code {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; font-size: 16px;
  caret-color: transparent; border: 0; padding: 0; cursor: text;
}
/* Le focus se voit sur la case active (bordure et halo), comme sur la maquette */

/* --- Demandes (accueil) -------------------------------------------------------------------- */
.demande { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); margin: 0 0 16px; overflow: hidden; }
.demande-tete { padding: 14px 16px 12px; }
.demande-tete h2 { font-size: 18px; line-height: 1.3; }
.demande-tete .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: var(--encre-2); }
.demande-tete .message { font-size: 14.5px; color: var(--encre-2); margin: 6px 0 0; }
.echeance { white-space: nowrap; }
.echeance.proche, .echeance.retard { color: var(--echeance); background: var(--echeance-fond); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 13px; }
.echeance.retard { color: var(--alerte); background: var(--alerte-fond); }
.jauge { display: flex; gap: 4px; margin-top: 10px; }
.jauge i { flex: 1; height: 6px; border-radius: 3px; background: var(--trait); }
.jauge i.ok { background: var(--tampon); }
.pieces { list-style: none; margin: 0; padding: 0; }
.piece { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 13px 16px; border-top: 1px solid var(--trait); align-items: center; }
.piece-nom { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.piece .aide { grid-column: 1 / -1; font-size: 14px; color: var(--encre-2); margin-top: -4px; }
.piece .facultatif { font-weight: 400; font-size: 14px; color: var(--encre-2); }
.piece .attendu { font-size: 13px; font-weight: 700; color: var(--echeance); }
.en-traitement { font-size: 13px; font-weight: 700; color: var(--encre-2); white-space: nowrap; }
.repli { border-top: 1px solid var(--trait); }
.repli > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 16px; min-height: 52px; color: var(--encre-2); cursor: pointer; }
.repli > summary::-webkit-details-marker { display: none; }
.repli > summary .lien { pointer-events: none; }
.repli[open] > summary .voir { display: none; }
.repli:not([open]) > summary .masquer { display: none; }
.vide { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; color: var(--encre-2); margin: 0 0 16px; }

/* Le tampon de réception : l'identité de l'espace */
.tampon {
  display: inline-block; transform: rotate(-4deg); border: 2px solid var(--tampon); color: var(--tampon); border-radius: 8px;
  padding: 2px 9px 1px; font-weight: 700; font-size: 12.5px; line-height: 1.25; text-align: center; background: var(--tampon-fond); white-space: nowrap;
}
.tampon small { display: block; font-weight: 400; font-size: 11px; }

/* --- Documents ------------------------------------------------------------------------------- */
.liste-docs { list-style: none; margin: 0; padding: 0; }
.doc { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--trait); color: inherit; text-decoration: none; min-height: 64px; }
.liste-docs > li:first-child .doc, .liste-docs > li:first-child.doc { border-top: 0; }
a.doc:hover .doc-titre { text-decoration: underline; }
.pdf { width: 38px; height: 46px; border-radius: 6px; border: 1.5px solid var(--trait); display: flex; align-items: flex-end; justify-content: center; font-size: 10px; font-weight: 700; color: var(--alerte); padding-bottom: 5px; background: var(--carte); flex: none; }
.doc .t { flex: 1; min-width: 0; }
.doc-titre { display: block; font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.doc .info { display: block; font-size: 13.5px; color: var(--encre-2); }
.restant { font-size: 13px; font-weight: 700; color: var(--echeance); white-space: nowrap; }
.doc .coche { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -6px -6px -10px; cursor: pointer; }
.doc .coche input { width: 22px; height: 22px; accent-color: var(--action); margin: 0; cursor: pointer; }
.doc .fin { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.doc .fin .lien { min-height: 44px; font-size: 14px; padding: 0 6px; }
.actions-docs { display: grid; gap: 10px; margin: 16px 0 0; }
.actions-docs > .bouton.large + .bouton.large, .actions-docs > .bouton.large { margin-top: 0; }

/* --- Envoi ----------------------------------------------------------------------------------- */
.pour { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; margin-bottom: 12px; }
.cible { border: 2px dashed var(--trait); border-radius: var(--rayon); padding: 18px; text-align: center; background: var(--carte); }
.choix-fichier { position: relative; }
.choix-fichier + .choix-fichier { margin-top: 10px; }
.choix-fichier { flex-wrap: wrap; }
.choix-fichier input[type=file] { display: block; width: 100%; margin-top: 8px; font-size: 15px; font-weight: 400; }
/* Avec l'aperçu (depot.js), le bouton suffit : le champ natif est masqué mais reste atteignable */
.apercu-actif .choix-fichier input[type=file] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; overflow: hidden; }
.choix-fichier:focus-within { outline: 3px solid var(--action); outline-offset: 2px; }
.formats { margin: 12px 0 0; }
/* Ordinateur (souris) : pas d'appareil photo à viser, « Choisir des fichiers » devient l'action principale */
@media (hover: hover) and (pointer: fine) {
  .choix-photo { display: none; }
  .choix-fichier.choix-fichiers { background: var(--action); color: var(--sur-action); margin-top: 0; }
}
.vignettes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.vignette { position: relative; margin: 0; min-width: 0; }
.vignette .image { aspect-ratio: 3 / 4; border-radius: 10px; border: 1px solid var(--trait); background: var(--carte); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette .type { font-size: 13px; font-weight: 700; color: var(--alerte); }
.vignette .nom { display: block; font-size: 12.5px; color: var(--encre-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vignette .taille { display: block; font-size: 12.5px; color: var(--encre-2); white-space: nowrap; }
.vignette .retirer {
  position: absolute; right: -8px; top: -8px; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--encre-2); font: inherit;
}
.vignette .retirer span { width: 26px; height: 26px; border-radius: 50%; background: var(--carte); border: 1px solid var(--trait); display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
.pret { margin: 0 0 12px; }

/* --- Bien reçu ------------------------------------------------------------------------------- */
.recu-grand { text-align: center; padding: 36px 22px; max-width: 30rem; margin: 0 auto; }
.recu-grand .tampon { font-size: 22px; padding: 8px 18px 6px; border-width: 3px; border-radius: 12px; transform: rotate(-6deg); margin: 10px 0 22px; }
.recu-grand .tampon small { font-size: 14px; }
.recu-grand .sous { text-align: left; }
.pour-piece { text-align: left; font-size: 15px; color: var(--encre-2); margin: 14px 0 0; }
.liste-recue { list-style: none; padding: 0; text-align: left; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; margin: 12px 0 18px; }
.liste-recue li { padding: 11px 14px; border-top: 1px solid var(--trait); font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.liste-recue li:first-child { border-top: 0; }
.liste-recue .nom { overflow-wrap: anywhere; min-width: 0; }
.liste-recue .petit { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .recu-grand .tampon { animation: pose .5s cubic-bezier(.2, 1.6, .4, 1) both .15s; }
  @keyframes pose {
    from { transform: rotate(-6deg) scale(1.6); opacity: 0; }
    to { transform: rotate(-6deg) scale(1); opacity: 1; }
  }
  /* Le seul mouvement de l'identité : le diaphragme du hall s'ouvre une fois, à l'affichage */
  .s-ouvre .lamelles { transform-box: fill-box; transform-origin: center; animation: ouvre 1.6s cubic-bezier(.3, .1, .2, 1) both .2s; }
  .s-ouvre .coeur { transform-box: fill-box; transform-origin: center; animation: coeur 1.6s cubic-bezier(.3, .1, .2, 1) both .2s; }
  @keyframes ouvre { from { transform: rotate(-60deg); } to { transform: rotate(0); } }
  @keyframes coeur { from { transform: scale(0); } to { transform: scale(1); } }
}

/* --- Historique ------------------------------------------------------------------------------ */
.jour { font-size: 13.5px; font-weight: 700; color: var(--encre-2); margin: 18px 0 6px; }
.jour:first-child { margin-top: 4px; }
.evts { list-style: none; margin: 0; padding: 0; }
.evt { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 15px; }
.evt .p { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--tampon); }
.evt .p.b { background: var(--action); }
.evt .texte { min-width: 0; }
.evt .texte span { display: block; font-size: 13.5px; color: var(--encre-2); overflow-wrap: anywhere; }

/* --- Choix d'espace, pied ------------------------------------------------------------------- */
.liste-espaces { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pied { max-width: 46rem; margin: 0 auto; padding: 14px 18px 24px; color: var(--encre-2); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; border-top: 1px solid var(--trait); }
.pied p { margin: 0; }
.pied > p:last-child { flex-basis: 100%; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; }
.pied-liens > a { font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; }
.pied-liens > a[aria-current="page"] { color: var(--encre); text-decoration: none; }
.suisse { margin-left: auto; color: var(--encre-2); display: inline-flex; gap: 6px; align-items: center; font-size: 14.5px; }
.suisse .drapeau { width: 16px; height: 16px; flex: none; }

/* --- Hall d'accueil (connexion, code, activation, clé d'accès) ------------------------------- */
.hall { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.hall .scene { background: var(--hall); color: #FFFFFF; position: relative; overflow: hidden; padding: 26px 22px 30px; }
.hall .scene .grand { position: absolute; right: -150px; top: -160px; width: 340px; height: 340px; }
.hall .scene .logo { width: 150px; position: relative; }
.hall .scene p { position: relative; margin: 0; color: var(--hall-texte); font-size: 16px; max-width: 34ch; }
.hall .scene .accroche { color: #FFFFFF; font-size: 30px; line-height: 1.15; font-weight: 700; margin: 96px 0 10px; letter-spacing: -.3px; max-width: 13ch; }
.hall .scene :focus-visible { outline-color: var(--pollen); }
.porte { padding: 26px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.titre-porte { font-size: 21px; line-height: 1.25; margin: 0 0 14px; }
.porte .ou { margin: 22px 0 4px; }
.invitation { margin: 22px 0 0; padding: 14px 16px; background: var(--carte); border: 1px solid var(--trait); border-left: 4px solid var(--pollen); border-radius: 4px 10px 10px 4px; font-size: 15px; }
.pied-hall { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }

/* --- Pages Aide, Sécurité, Contact ------------------------------------------------------------ */
.page h1, .contact-page h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.2px; }
.chapo { color: var(--encre-2); margin: 0 0 18px; font-size: 16px; }
.sommaire { display: none; }
.sujet { background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; margin: 0 0 12px; overflow: hidden; }
.sujet > summary { list-style: none; cursor: pointer; padding: 15px 16px; min-height: 44px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sujet > summary::-webkit-details-marker { display: none; }
.sujet > summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--action); border-bottom: 2.5px solid var(--action); transform: rotate(45deg); margin-top: -5px; flex: none; }
.sujet[open] > summary::after { transform: rotate(-135deg); margin-top: 5px; }
.sujet .contenu { padding: 0 16px 16px; font-size: 16px; }
.sujet .contenu p { margin: 0 0 10px; }
.etapes { counter-reset: e; list-style: none; margin: 4px 0 10px; padding: 0; }
.etapes li { counter-increment: e; position: relative; padding: 0 0 12px 40px; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: -1px; width: 27px; height: 27px; border-radius: 50%; background: var(--iris-fond); color: var(--action); font-weight: 700; font-size: 14.5px; display: flex; align-items: center; justify-content: center; }
.etapes li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 29px; bottom: 3px; width: 1.5px; background: var(--trait); }
.bon-a-savoir { background: var(--iris-fond); border-radius: 10px; padding: 10px 13px; font-size: 15px; margin: 6px 0 4px; }
.attention { background: var(--echeance-fond); border-radius: 10px; padding: 10px 13px; font-size: 15px; margin: 6px 0 4px; color: var(--attention-texte); }
.reponse .ref { font-size: 14px; color: var(--encre-2); }
.sceau-suisse { display: flex; gap: 12px; align-items: center; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }
.sceau-suisse .drapeau { width: 34px; height: 34px; flex: none; }
.contact { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.contact .adr { padding: 18px 18px 6px; }
.contact .adr b { font-size: 19px; display: block; }
.contact address { font-style: normal; color: var(--encre-2); margin: 4px 0 12px; }
.contact .moyen { display: flex; gap: 14px; align-items: center; padding: 14px 18px; margin: 0; border-top: 1px solid var(--trait); text-decoration: none; color: var(--encre); min-height: 56px; }
.contact .moyen svg { width: 26px; height: 26px; flex: none; color: var(--action); }
.contact .moyen > span > b { display: block; font-size: 17px; }
.contact .moyen > span > span { display: block; font-size: 14px; color: var(--encre-2); }
.contact a.moyen:hover b { text-decoration: underline; }
.contact .rappel { padding: 14px 18px; margin: 0; background: var(--echeance-fond); color: var(--attention-texte); font-size: 15px; border-top: 1px solid var(--trait); }
.mandat { margin: 16px 0; font-size: 15px; color: var(--encre-2); }
.mandat b { color: var(--encre); }

/* --- Tablette et ordinateur ----------------------------------------------------------------- */
@media (min-width: 48rem) {
  .sous-bandeau { padding: 6px 24px 8px; }
  .marque { flex: none; white-space: nowrap; }
  .corps { padding: 32px 24px 40px; }
  .phrase { font-size: 32px; }
  .phrase.moyenne { font-size: 28px; }
  .phrase.petite { font-size: 26px; }
  .actions-docs { grid-template-columns: 1fr 1fr; }
}

/* --- Ordinateur (maquette 1280 px) : bandeau en ligne, onglets, hall en deux moitiés ------------ */
@media (min-width: 56.25rem) {
  .bandeau .ligne { padding: 14px 40px; gap: 22px; }
  .bandeau .logo { width: 150px; }
  .bandeau .mandataire { order: 0; flex-basis: auto; border-top: 0; padding-top: 0; border-left: 1px solid var(--trait); padding-left: 22px; font-size: 13.5px; }
  .bandeau .mandataire b { display: block; font-size: 16px; margin-left: 0; }
  .menu { display: none; }
  .bandeau .liens { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .liens > a, .liens > span:not([class]) { color: var(--encre); text-decoration: none; font-weight: 700; font-size: 15.5px; padding: 8px 12px; border-radius: 9px; min-height: 40px; display: inline-flex; align-items: center; }
  .liens > a:hover { text-decoration: underline; }
  .liens > [aria-current="page"] { background: var(--iris-fond); color: var(--action); }
  .liens .sep { width: 1px; height: 28px; background: var(--trait); margin: 0 10px; }
  .liens .qui { font-size: 14.5px; color: var(--encre-2); margin-right: 6px; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .liens .bouton { min-height: 40px; font-size: 14.5px; padding: 7px 14px; }

  /* La barre du bas devient la rangée d'onglets, alignée sur la colonne du contenu */
  nav.bas { position: static; gap: 4px; padding: 0 max(16px, calc(50% - 23rem + 8px)); border-top: 0; border-bottom: 1px solid var(--trait); }
  nav.bas > * { flex: none; display: flex; align-items: center; padding: 12px 16px 11px; min-height: 44px; font-size: 15.5px; font-weight: 700; border-bottom: 3px solid transparent; }
  nav.bas > [aria-current="page"] { color: var(--action); border-bottom-color: var(--action); }
  nav.bas svg { display: none; }
  body.avec-barre { padding-bottom: 0; }

  .hall { flex-direction: row; }
  .hall .scene { flex: 0 0 56%; padding: 44px 64px; display: flex; flex-direction: column; }
  .hall .scene .grand { width: 720px; height: 720px; right: -300px; top: -230px; }
  .hall .scene .logo { width: 190px; }
  .hall .scene p { font-size: 19px; max-width: 36ch; margin-bottom: 40px; }
  .hall .scene .accroche { font-size: 54px; margin: auto 0 18px; max-width: 12ch; }
  .porte { padding: 64px 72px 36px; justify-content: center; }
  .porte > * { max-width: 430px; }
  .titre-porte { font-size: 27px; }
  .pied-hall { margin-top: 48px; }

  .corps.large { max-width: 75rem; padding: 36px 40px 48px; }
  .page { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
  .page .tete { grid-column: 1 / -1; }
  .page h1, .contact-page h1 { font-size: 40px; }
  .chapo { font-size: 18px; max-width: 60ch; }
  .sommaire { display: block; position: sticky; top: 20px; border-left: 2px solid var(--trait); padding-left: 4px; }
  .sommaire a { display: block; padding: 7px 14px; color: var(--encre-2); text-decoration: none; font-size: 15px; }
  .sommaire a:hover { color: var(--action); text-decoration: underline; }
  .sujets { max-width: 760px; }
  .sujet { border-radius: 0; border: 0; border-bottom: 1px solid var(--trait); background: none; margin: 0; }
  .sujet > summary { padding: 22px 0 10px; font-size: 22px; cursor: default; }
  .sujet > summary::after { display: none; }
  .sujet .contenu { padding: 0 0 22px; font-size: 17px; }
  .etapes { columns: 2; column-gap: 36px; }
  .etapes li { break-inside: avoid; }
  .faq .page { grid-template-columns: 1fr; }
  .faq .sujets { columns: 2; column-gap: 44px; max-width: none; }
  .faq .sujet { break-inside: avoid; }
  .sceau-suisse { max-width: 760px; font-size: 16px; }
  .contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .contact .moyens { display: grid; grid-template-columns: 1fr 1fr; }
  .contact .moyens .moyen:nth-child(2) { border-left: 1px solid var(--trait); }
  .pied { max-width: 75rem; padding: 18px 40px 28px; }
}
