/* Le cachet électronique de SÉNÉGAL BARKEL : le vert et l'or du badge, l'ivoire de la charte. Le téléphone d'abord.
 * Aucun style dans les pages (la politique de sécurité n'en accepte pas) : tout est ici. */
@font-face { font-family: Archivo; src: url(polices/archivo-normal-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; src: url(polices/archivo-normal-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Archivo; src: url(polices/archivo-italic-latin.woff2) format("woff2"); font-weight: 100 900; font-style: italic; }
@font-face { font-family: Fraunces; src: url(polices/fraunces-normal-latin.woff2) format("woff2"); font-weight: 100 900; }

:root {
  --nuit: #0A1F16; --email: #0F4A2D; --vert: #006E35; --vert-c: #0B8A45; --vert-pale: #E5F2E9;
  --or: #E2BE55; --or-c: #F1D88A; --or-f: #B98F2D; --or-s: #8C6A1C; --or-pale: #F8EDCB;
  --ivoire: #FBF6EA; --fond: #F4F0E6; --texte: #1C2A23; --gris: #5C6A61; --gris-c: #8B978F;
  --filet: #E7E2D6; --filet-f: #D3CDBE;
  --rouge: #A3261C; --rouge-pale: #FBECE9; --ambre: #8A5D00; --ambre-pale: #FBF0D6;
  --ombre: 0 1px 2px rgba(10, 31, 22, .05), 0 14px 34px -16px rgba(10, 31, 22, .24);
  --ombre-douce: 0 1px 2px rgba(10, 31, 22, .05), 0 8px 20px -14px rgba(10, 31, 22, .2);
  --rayon: 20px;
  --or-degrade: linear-gradient(145deg, var(--or-c) 0%, var(--or) 45%, var(--or-f) 100%);
}
* { box-sizing: border-box; }
/* l'attribut hidden l'emporte toujours, même sur un display: flex écrit plus bas */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fond) linear-gradient(180deg, #ECE6D7 0, var(--fond) 360px) no-repeat; color: var(--texte); font: 16.5px/1.55 Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 26px 16px 72px; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; color: var(--email); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 12px; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
p { margin: 0 0 12px; }
small { color: var(--gris); font-weight: 400; }
a { color: var(--vert); text-underline-offset: 3px; }
.icone { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------ l'en-tête et les onglets */
.entete { color: var(--ivoire); background: radial-gradient(130% 160% at 0% 0%, #17603F 0%, var(--email) 40%, var(--nuit) 100%); border-bottom: 1px solid rgba(226, 190, 85, .4); box-shadow: 0 10px 30px -18px rgba(10, 31, 22, .8); }
.entete-haut { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; }
.marque { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.marque img { flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(226, 190, 85, .55), 0 6px 14px -4px rgba(0, 0, 0, .55); }
.marque span { display: flex; flex-direction: column; line-height: 1.2; }
.marque b { font-size: 15.5px; font-weight: 800; letter-spacing: .1em; font-stretch: 112%; }
.marque small { color: var(--or); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.moi { display: flex; align-items: center; gap: 10px; min-width: 0; }
.moi form { margin: 0; }
.moi-lien { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; min-width: 0; color: inherit; text-decoration: none; border-radius: 12px; }
.moi-lien:hover .avatar { box-shadow: inset 0 0 0 1px rgba(226, 190, 85, .7); }
.moi-texte { display: flex; flex-direction: column; line-height: 1.25; text-align: right; min-width: 0; }
.moi-texte b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moi-texte small { color: var(--or); font-size: 12px; white-space: nowrap; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: .04em; background: var(--vert-pale); color: var(--email); }
.entete .avatar { background: rgba(251, 246, 234, .1); color: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(251, 246, 234, .28); }
.avatar.president, .entete .avatar.president { background: var(--or-degrade); color: var(--nuit); box-shadow: 0 0 0 3px rgba(226, 190, 85, .28); }
.avatar.suppleant, .entete .avatar.suppleant { box-shadow: inset 0 0 0 2px var(--or); }
button.sortir { min-height: 40px; padding: 6px 12px; gap: 6px; border-radius: 11px; border: 1px solid rgba(251, 246, 234, .24); background: rgba(251, 246, 234, .06); color: var(--ivoire); font-size: 14px; font-weight: 600; box-shadow: none; }
button.sortir:hover { background: rgba(251, 246, 234, .14); border-color: rgba(226, 190, 85, .6); }
button.sortir .icone { width: 18px; height: 18px; }

.onglets { max-width: 1040px; margin: 0 auto; display: flex; gap: 2px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px 14px; color: rgba(251, 246, 234, .7); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: 10px 10px 0 0; }
.onglets a:hover { color: var(--ivoire); background: rgba(251, 246, 234, .05); }
.onglets a[aria-current="page"] { color: #fff; }
.onglets a[aria-current="page"] .icone { color: var(--or); }
.onglets a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--or-degrade); }
.onglets .icone { width: 19px; height: 19px; }
.onglets .court { display: none; }
.pastille { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; font-size: 11.5px; font-weight: 800; line-height: 1; background: var(--or-degrade); color: var(--nuit); box-shadow: 0 0 0 2px var(--email); }

/* ------------------------------------------------------------ les blocs de page */
.tete-page { max-width: 980px; margin: 4px auto 22px; }
.tete-page h1 { margin-bottom: 8px; }
.surtitre { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--or-s); margin: 0 0 8px; }
.surtitre .icone { width: 17px; height: 17px; }
.chapo { color: var(--gris); font-size: 16.5px; max-width: 680px; }
.aide { color: var(--gris); font-size: 14.5px; }
.vide { color: var(--gris); text-align: center; padding: 18px 0 8px; }

.carte { background: #fff; border: 1px solid rgba(15, 74, 45, .07); border-radius: var(--rayon); padding: 24px 22px; margin: 0 auto 18px; max-width: 640px; box-shadow: var(--ombre); }
.carte.large { max-width: 980px; }
.carte.etroite { max-width: 460px; margin-top: 10px; }
.alerte { background: var(--rouge-pale); color: var(--rouge); border: 1px solid rgba(163, 38, 28, .18); border-radius: 12px; padding: 11px 14px; font-size: 15px; font-weight: 600; }
.alerte.large { max-width: 980px; margin: 0 auto 18px; }

/* ------------------------------------------------------------ formulaires et boutons */
label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 16px; }
label small { display: block; font-size: 13.5px; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--filet-f); border-radius: 12px; background: #FDFCF8; color: var(--texte); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #BDB6A4; }
textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(226, 190, 85, .35); background: #fff; }
input::placeholder, textarea::placeholder { color: var(--gris-c); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.case { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; padding: 14px 16px; border: 1.5px solid var(--filet); border-radius: 14px; background: #FDFCF8; cursor: pointer; transition: border-color .15s, background-color .15s; }
.case:has(input:checked) { border-color: var(--vert); background: var(--vert-pale); }
.case input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--vert); box-shadow: none; }

button, .bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; font: inherit; font-weight: 700; border-radius: 12px; border: 1.5px solid rgba(15, 74, 45, .28); background: #fff; color: var(--email); cursor: pointer; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .06s; }
button:hover, .bouton:hover { border-color: var(--email); background: #FAFBF8; }
button:active, .bouton:active { transform: translateY(1px); }
button.principal, .bouton.principal { color: #fff; border-color: #005A2B; background: linear-gradient(180deg, #0A7E41 0%, var(--vert) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 20px -12px rgba(0, 110, 53, .95); }
button.principal:hover, .bouton.principal:hover { background: linear-gradient(180deg, #0B8A45 0%, #00642F 100%); }
button.large { width: 100%; }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; transform: none; }
button.lien { border: 0; background: none; min-height: 0; padding: 4px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--vert); box-shadow: none; }
button.petit, .bouton.petit { min-height: 38px; padding: 6px 13px; font-size: 14.5px; border-radius: 10px; gap: 6px; }
button.petit .icone, .bouton.petit .icone { width: 17px; height: 17px; }
button.danger { border-color: rgba(163, 38, 28, .4); color: var(--rouge); }
button.danger:hover { border-color: var(--rouge); background: var(--rouge-pale); }
button.or { border-color: var(--or-f); color: var(--or-s); background: #FFFBF0; }
button.or:hover { background: var(--or-pale); border-color: var(--or-s); }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.boutons.collant { position: sticky; bottom: 0; z-index: 2; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--filet); box-shadow: 0 -10px 22px rgba(10, 31, 22, .08); margin: 14px -22px -24px; padding: 12px 22px 14px; border-radius: 0 0 var(--rayon) var(--rayon); }

/* ------------------------------------------------------------ sceller : les étapes */
.fil { counter-reset: etape; display: flex; list-style: none; padding: 0; margin: 0 auto 22px; max-width: 640px; }
.fil li { counter-increment: etape; position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--gris); text-align: center; line-height: 1.2; }
.fil li::before { content: counter(etape); position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; background: #fff; color: var(--gris); box-shadow: inset 0 0 0 1.5px var(--filet-f); }
.fil li::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; border-radius: 2px; background: var(--filet-f); }
.fil li:last-child::after { display: none; }
.fil li.actif { color: var(--email); font-weight: 800; }
.fil li.actif::before { background: var(--or-degrade); color: var(--nuit); box-shadow: 0 0 0 4px rgba(226, 190, 85, .26); }
.fil li.fait { color: var(--vert); }
.fil li.fait::before { content: ""; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }
.fil li.fait::after { background: var(--vert); }

.depot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px 24px; margin-bottom: 18px; border: 1.5px dashed var(--or-f); border-radius: 16px; background: linear-gradient(180deg, #FFFCF4, var(--ivoire)); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.depot:hover { border-color: var(--or-s); }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.depot-signe { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--or-s); box-shadow: 0 0 0 1px rgba(185, 143, 45, .3), 0 8px 18px -12px rgba(140, 106, 28, .9); margin-bottom: 4px; }
.depot-signe .icone { width: 24px; height: 24px; }
.depot-titre { font-weight: 800; color: var(--email); max-width: 100%; overflow-wrap: anywhere; }
.depot-aide { font-weight: 400; color: var(--gris); font-size: 14px; }
.depot.pret { border-style: solid; border-color: var(--vert); background: var(--vert-pale); }
.depot.pret .depot-signe { color: var(--vert); }
.depot.petit { padding: 16px; flex-direction: row; justify-content: center; gap: 12px; }
.depot.petit .depot-signe { width: 40px; height: 40px; margin: 0; }

.pad { display: block; width: 100%; height: 220px; border: 1.5px solid var(--or-f); border-radius: 14px; background: var(--ivoire) linear-gradient(to top, transparent 50px, #C9D3CB 50px, #C9D3CB 51.5px, transparent 51.5px); touch-action: none; }
.vue-signature { display: block; width: 100%; max-width: 420px; height: 160px; border-radius: 14px; background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--filet); margin: 0 auto 12px; }

.scene { position: relative; margin: 0 auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scene canvas#page-canvas { display: block; width: 100%; box-shadow: 0 1px 2px rgba(10, 31, 22, .1), 0 18px 40px -18px rgba(10, 31, 22, .45); border-radius: 4px; background: #fff; }
.bloc { position: absolute; display: flex; align-items: stretch; cursor: grab; touch-action: none; outline: 2px dashed var(--or-f); outline-offset: 3px; border-radius: 4px; }
.bloc.tient { cursor: grabbing; outline-color: var(--vert); opacity: .92; }
.bloc img { display: block; height: 100%; width: auto; pointer-events: none; }
.bloc-sig { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; pointer-events: none; }
.bloc-sig canvas { flex: 1; width: 100%; min-height: 0; border-bottom: 1px solid #9AA59E; }
.bloc-sig b, .bloc-sig span { display: block; white-space: nowrap; line-height: 1.2; }
.bloc-sig span { color: var(--gris); font-weight: 500; }
.choix-page { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 4px; }
.choix-page button { min-height: 40px; min-width: 44px; padding: 4px 10px; font-size: 15px; }
.choix-page button.actif { background: var(--email); border-color: var(--email); color: #fff; }

.apercu { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.apercu canvas { display: block; width: 100%; max-width: 820px; box-shadow: 0 1px 2px rgba(10, 31, 22, .1), 0 18px 40px -18px rgba(10, 31, 22, .45); border-radius: 4px; }
.apercu .legende { font-size: 13.5px; color: var(--gris); margin-top: -6px; }

.fin { text-align: center; }
.fin .boutons { justify-content: center; }
.fin-signe { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 10px; background: var(--vert-pale); color: var(--vert); }
.fin-signe .icone { width: 34px; height: 34px; }
.fin .icone.annule, .fin.annulee .icone.delivre { display: none; }
.fin.annulee .icone.annule { display: block; }
.fin.annulee .fin-signe { background: #ECEEEB; color: var(--gris); }

/* ------------------------------------------------------------ listes : documents, registre */
.liste { list-style: none; padding: 0; margin: 0; }
.ligne { padding: 16px 0; border-top: 1px solid var(--filet); }
.ligne:first-child { border-top: 0; padding-top: 4px; }
.ligne-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.numero { color: var(--email); font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.ligne-titre { font-weight: 600; margin-top: 3px; overflow-wrap: anywhere; }
.meta { color: var(--gris); font-size: 14px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions form { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.revoquer { flex: 1 1 320px; }
.revoquer input { width: auto; flex: 1 1 200px; margin: 0; padding: 8px 12px; font-size: 15px; border-radius: 10px; }
.statut { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 4px 11px 4px 9px; white-space: nowrap; }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.statut.delivre { background: var(--vert-pale); color: var(--vert); }
.statut.en_attente { background: var(--ambre-pale); color: var(--ambre); }
.statut.annule { background: #ECEEEB; color: var(--gris); }
.statut.revoque { background: var(--rouge-pale); color: var(--rouge); }

.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 980px; margin: 0 auto 18px; }
.chiffre { background: #fff; border: 1px solid rgba(15, 74, 45, .07); border-radius: 16px; padding: 14px 16px 12px; box-shadow: var(--ombre-douce); }
.chiffre b { display: block; font-family: Fraunces, Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--email); font-variant-numeric: tabular-nums; }
.chiffre span { font-size: 13px; font-weight: 600; color: var(--gris); }
.chiffre.delivre b { color: var(--vert); }
.chiffre.en_attente b { color: var(--ambre); }
.chiffre.revoque b { color: var(--rouge); }
.chiffre.annule b { color: var(--gris); }

/* ------------------------------------------------------------ l'équipe */
.corps-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 6px; }
.corps-tete h2 { margin-bottom: 2px; }
.corps-tete .aide { margin: 0; }
.complet { color: var(--rouge); font-weight: 700; }
.places { text-align: right; flex: none; }
.places b { font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 600; color: var(--email); line-height: 1; }
.places b small { font-family: Archivo, system-ui, sans-serif; font-size: 15px; font-weight: 600; color: var(--gris-c); }
.jauge { display: flex; gap: 4px; justify-content: flex-end; margin-top: 8px; }
.jauge i { width: 9px; height: 9px; border-radius: 50%; background: var(--filet); }
.jauge i.prise { background: var(--or-degrade); box-shadow: 0 0 0 1px rgba(140, 106, 28, .25); }
.personne { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--filet); }
.personne:first-child { border-top: 0; }
.personne.eteinte { opacity: .55; }
.personne-corps { flex: 1; min-width: 0; }
.personne-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.personne-tete b { font-size: 16.5px; }
.ident { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.personne .statut { padding: 2px 9px 2px 8px; font-size: 12px; }
.insigne { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .02em; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.insigne.president { background: var(--or-degrade); color: #3A2B04; box-shadow: 0 6px 14px -10px rgba(140, 106, 28, .9); }
.insigne.suppleant { color: var(--or-s); background: #FFFBF0; box-shadow: inset 0 0 0 1.5px var(--or-f); }
.insigne.vous { color: var(--vert); background: var(--vert-pale); }
.insigne.communication { gap: 5px; color: #2B5562; background: #E6EFF1; }
.insigne .icone { width: 14px; height: 14px; }
.gerer { margin-top: 8px; }
.gerer summary { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 700; color: var(--email); background: #F3F1EA; }
.gerer summary::-webkit-details-marker { display: none; }
.gerer summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.gerer[open] summary { background: var(--email); color: #fff; }
.gerer[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.gerer .actions { margin-top: 10px; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grille .boutons, .grille input[type=hidden] { grid-column: 1 / -1; }
.remise { max-width: 980px; margin: 0 auto 18px; padding: 20px 22px; border-radius: var(--rayon); background: linear-gradient(180deg, #FFFCF2, var(--ivoire)); border: 1.5px solid var(--or-f); box-shadow: 0 14px 30px -20px rgba(140, 106, 28, .8); }
.secret { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0; font-size: 19px; }
.secret dt { color: var(--gris); font-size: 15px; font-weight: 600; align-self: center; }
.secret dd { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; color: var(--email); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ le journal */
.scelle-note { display: flex; align-items: center; gap: 12px; max-width: 980px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 14px; background: #FFFBF0; border: 1px solid rgba(185, 143, 45, .4); color: var(--or-s); font-size: 14.5px; font-weight: 600; }
.scelle-note .icone { width: 22px; height: 22px; }
.evenements { list-style: none; margin: 0; padding: 0; }
.evenement { display: grid; grid-template-columns: 150px 1fr; gap: 2px 18px; padding: 12px 0; border-top: 1px solid var(--filet); }
.evenement:first-child { border-top: 0; padding-top: 2px; }
.evenement time { color: var(--gris); font-size: 13.5px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.evenement .quoi { color: var(--texte); }
.evenement .par { color: var(--email); font-weight: 600; }

/* ------------------------------------------------------------ public : l'accueil et la vérification */
.heros { max-width: 760px; margin: 6px auto 22px; text-align: center; }
.heros-badge { border-radius: 50%; box-shadow: 0 0 0 1px rgba(185, 143, 45, .5), 0 18px 36px -16px rgba(10, 31, 22, .7); margin-bottom: 14px; }
.heros .surtitre { justify-content: center; }
.heros h1 { font-size: 42px; }
.heros .chapo { margin: 0 auto 20px; }
.chercher { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-width: 560px; margin: 0 auto; padding: 18px; text-align: left; background: #fff; border: 1px solid rgba(15, 74, 45, .07); border-radius: var(--rayon); box-shadow: var(--ombre); }
.chercher label { flex: 1 1 260px; margin: 0; font-weight: 600; font-size: 14px; color: var(--gris); }
.chercher input { font-size: 18px; font-weight: 700; letter-spacing: .05em; color: var(--email); }
.chercher button { flex: 1 0 auto; }
.pied { text-align: center; color: var(--gris); font-size: 14.5px; margin-top: 8px; }
.numero-titre { font-variant-numeric: tabular-nums; }
.verdict { display: flex; align-items: flex-start; gap: 16px; margin: 6px 0 4px; padding: 18px; border-radius: 16px; background: #F3F4F1; }
.verdict p:last-child { margin-bottom: 0; }
.verdict-signe { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--gris); }
.verdict-signe .icone { width: 30px; height: 30px; }
.verdict.bon { background: var(--vert-pale); }
.verdict.bon .verdict-signe { color: #fff; background: linear-gradient(145deg, var(--vert-c), var(--vert)); box-shadow: 0 0 0 4px rgba(0, 110, 53, .14); }
.verdict.mauvais { background: var(--rouge-pale); }
.verdict.mauvais .verdict-signe { color: #fff; background: var(--rouge); box-shadow: 0 0 0 4px rgba(163, 38, 28, .12); }
.verdict.attente { background: var(--ambre-pale); }
.verdict.attente .verdict-signe { color: #fff; background: var(--ambre); }
.etat { display: block; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.15; margin: 4px 0 6px; }
.etat.bon { color: var(--vert); }
.etat.mauvais { color: var(--rouge); }
.etat.attente { color: var(--ambre); }
.etat.inconnu { color: var(--texte); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 20px 0; border: 1px solid var(--filet); border-radius: 14px; overflow: hidden; }
.details dt, .details dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--filet); }
.details dt:first-of-type, .details dd:first-of-type { border-top: 0; }
.details dt { font-weight: 700; font-size: 14px; color: var(--gris); background: #FAF8F2; }
.empreinte { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.comparer { border-top: 1px solid var(--filet); padding-top: 20px; margin-top: 8px; }
.resultat { font-weight: 700; border-radius: 12px; padding: 11px 14px; }
.resultat.bon { background: var(--vert-pale); color: var(--vert); }
.resultat.mauvais { background: var(--rouge-pale); color: var(--rouge); }
.carte.avance { padding: 0; }
.avance summary { display: flex; align-items: center; gap: 10px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; color: var(--email); }
.avance summary::-webkit-details-marker { display: none; }
.avance summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--or-s); border-bottom: 2px solid var(--or-s); transform: rotate(45deg); transition: transform .15s; }
.avance[open] summary::after { transform: rotate(-135deg); }
.avance summary .icone { color: var(--or-s); }
.avance > :not(summary) { margin-left: 22px; margin-right: 22px; }
.avance > :last-child { margin-bottom: 20px; }

/* ------------------------------------------------------------ l'entrée */
.entree { background: radial-gradient(120% 90% at 50% 0%, #17603F 0%, var(--email) 38%, var(--nuit) 100%) fixed; }
.entree main { display: flex; align-items: center; justify-content: center; padding-top: 36px; }
.entree .carte { margin: 0 auto; width: 100%; text-align: center; padding: 30px 26px 24px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.entree form { text-align: left; margin-top: 18px; }
.entree .surtitre { justify-content: center; }
.sceau-entree { border-radius: 50%; box-shadow: 0 0 0 1px rgba(185, 143, 45, .5), 0 14px 28px -14px rgba(10, 31, 22, .7); margin: -2px auto 12px; display: block; }
.retour { margin: 16px 0 0; font-size: 14.5px; }
.entree .pied-page { color: rgba(251, 246, 234, .6); }

.pied-page { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 16px 26px; color: var(--gris-c); font-size: 13px; letter-spacing: .02em; }
.pied-page img { border-radius: 50%; opacity: .9; }

/* ------------------------------------------------------------ l'accueil de l'espace des membres */
.tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 980px; margin: 0 auto 18px; }
.tuile { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: var(--rayon); background: #fff; border: 1px solid rgba(15, 74, 45, .07); box-shadow: var(--ombre-douce); color: var(--texte); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .06s; }
.tuile:hover { border-color: var(--or-f); box-shadow: var(--ombre); }
.tuile:active { transform: translateY(1px); }
.tuile-signe { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); }
.tuile-signe .icone { width: 24px; height: 24px; }
.tuile-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tuile-texte b { font-family: Fraunces, Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.15; color: var(--email); }
.tuile-texte > span { color: var(--gris); font-size: 14.5px; }
.tuile.principale { grid-column: 1 / -1; padding: 24px; color: var(--ivoire); background: radial-gradient(130% 160% at 0% 0%, #17603F 0%, var(--email) 45%, var(--nuit) 100%); border-color: rgba(226, 190, 85, .45); box-shadow: 0 18px 36px -20px rgba(10, 31, 22, .9); }
.tuile.principale:hover { border-color: var(--or); }
.tuile.principale .tuile-signe { width: 56px; height: 56px; border-radius: 50%; background: var(--or-degrade); color: var(--nuit); box-shadow: 0 0 0 4px rgba(226, 190, 85, .22); }
.tuile.principale .tuile-signe .icone { width: 28px; height: 28px; }
.tuile.principale .tuile-texte b { color: #fff; font-size: 25px; }
.tuile.principale .tuile-texte > span { color: rgba(251, 246, 234, .8); font-size: 15.5px; }
.tuile-chiffres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tuile-chiffres em { font-style: normal; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: #F3F1EA; color: var(--gris); }
.tuile-chiffres em.attend { background: var(--or-pale); color: var(--or-s); }

/* ------------------------------------------------------------ le courrier */
.vues { display: flex; flex-wrap: wrap; gap: 6px; max-width: 980px; margin: 0 auto 14px; }
.vues a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--filet-f); color: var(--email); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.vues a:hover { border-color: var(--email); }
.vues a b { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: #F3F1EA; color: var(--gris); font-size: 12.5px; text-align: center; font-variant-numeric: tabular-nums; }
.vues a[aria-current="page"] { background: var(--email); border-color: var(--email); color: #fff; }
.vues a[aria-current="page"] b { background: var(--or-degrade); color: var(--nuit); }
.lettre-ligne { display: flex; gap: 14px; padding: 14px 2px; border-top: 1px solid var(--filet); color: var(--texte); text-decoration: none; }
.liste li:first-child .lettre-ligne { border-top: 0; padding-top: 2px; }
.lettre-ligne:hover .lettre-objet { color: var(--vert); text-decoration: underline; text-underline-offset: 3px; }
.lettre-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lettre-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lettre-tete b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lettre-tete time { flex: none; color: var(--gris); font-size: 13px; font-variant-numeric: tabular-nums; }
.lettre-objet { font-weight: 600; color: var(--email); overflow-wrap: anywhere; }
.icone.mini { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.confirmation { display: flex; align-items: center; gap: 10px; max-width: 980px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 14px; background: var(--vert-pale); color: var(--vert); font-size: 15px; font-weight: 600; }
.confirmation.deja { background: var(--ambre-pale); color: var(--ambre); }
.confirmation .icone { width: 22px; height: 22px; }
.aide.centre { text-align: center; max-width: 640px; margin: 0 auto; }
.retour-haut { max-width: 980px; margin: 0 auto 12px; }
.retour-haut a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.retour-haut .icone { width: 18px; height: 18px; }
.lettre-entete { display: flex; align-items: flex-start; gap: 16px; }
.lettre-entete > div { min-width: 0; }
.lettre-entete h1 { font-size: 28px; overflow-wrap: anywhere; }
.avatar.grand { width: 52px; height: 52px; font-size: 17px; }
.lettre-numero { flex-wrap: wrap; gap: 4px 10px; }
.lettre-numero span { white-space: nowrap; }
.etiquette { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; letter-spacing: .06em; background: #F3F1EA; color: var(--gris); }
.etiquette.nouveau { background: var(--or-pale); color: var(--or-s); }
.etiquette.transmis { background: var(--vert-pale); color: var(--vert); }
.etiquette.traite { background: #E6EFF1; color: #2B5562; }
.lettre .details { margin-top: 12px; }
.suivi { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: #FAF8F2; border: 1px solid var(--filet); font-size: 14.5px; }
.suivi li { display: flex; align-items: flex-start; gap: 10px; }
.suivi .icone { width: 18px; height: 18px; margin-top: 2px; color: var(--or-s); }
.suivi q { display: block; margin-top: 4px; font-style: italic; color: var(--email); quotes: "« " " »"; }
.texte-lettre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; padding: 18px 2px 6px; border-top: 1px solid var(--filet); }
.pieces-titre { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 18px 0 10px; }
.pieces-titre .icone { color: var(--or-s); }
.pieces { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 0 0 8px; padding: 0; }
.piece { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--filet-f); background: #FDFCF8; color: var(--email); text-decoration: none; }
.piece:hover { border-color: var(--vert); background: var(--vert-pale); }
.piece span { display: flex; flex-direction: column; min-width: 0; }
.piece b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.piece small { font-size: 12.5px; }
.decider { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--filet); }
.decider form { margin: 0; }
.decider form + form { margin-top: 10px; }
.decider .boutons, .lettre > form.boutons { justify-content: flex-start; }
.lettre > form.boutons { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--filet); }

/* ------------------------------------------------------------ le téléphone */
@media (max-width: 640px) {
  main { padding-top: 20px; }
  h1 { font-size: 29px; }
  .heros h1 { font-size: 34px; }
  .moi-texte, button.sortir span { display: none; }
  button.sortir { padding: 6px 9px; }
  .marque b { font-size: 14px; letter-spacing: .08em; }
  .marque small { font-size: 10px; letter-spacing: .13em; }
  .marque img { width: 40px; height: 40px; }
  .marque { gap: 10px; }
  .entete-haut { padding: 12px 12px 10px; }
  .onglets { gap: 0; padding: 0 4px; }
  .onglets a { flex: 1 0 auto; flex-direction: column; gap: 3px; padding: 8px 9px 11px; font-size: 12.5px; font-stretch: 92%; }
  .onglets .icone { width: 21px; height: 21px; }
  .onglets .long, .onglet-accueil span { display: none; }
  .onglets .court { display: inline; }
  .onglets a { padding-left: 7px; padding-right: 7px; }
  .onglets .pastille { position: absolute; top: 3px; left: calc(50% + 3px); }
  .onglets a[aria-current="page"]::after { left: 6px; right: 6px; }
  .tuiles { grid-template-columns: 1fr; gap: 10px; }
  .tuile { padding: 16px; gap: 14px; }
  .tuile.principale { padding: 20px 16px; }
  .tuile.principale .tuile-texte b { font-size: 22px; }
  .lettre-entete h1 { font-size: 23px; }
  .avatar.grand { width: 44px; height: 44px; font-size: 15px; }
  .carte { padding: 20px 16px; border-radius: 18px; }
  .boutons.collant { margin: 14px -16px -20px; padding: 12px 16px 14px; border-radius: 0 0 18px 18px; }
  .chiffres { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grille { grid-template-columns: 1fr; }
  .evenement { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .details dd { border-top: 0; padding-top: 0; }
  .details dt { background: none; padding-bottom: 2px; }
  .details dt:first-of-type { border-top: 0; }
  .secret { grid-template-columns: 1fr; gap: 0; }
  .secret dd { margin-bottom: 8px; }
  .verdict { padding: 14px; gap: 12px; }
  .verdict-signe { width: 44px; height: 44px; }
  .avance summary { padding: 16px; }
  .corps-tete h2 { font-size: 22px; }
  .avance > :not(summary) { margin-left: 16px; margin-right: 16px; }
}
