
/* Charte : repères Apple (hiérarchie par la taille et la graisse, couleur réservée à l'action principale et aux états,
   listes groupées, un seul bouton principal par écran). Toutes les couleurs passent par les variables ci-dessous. */
:root { --fond: #f2f2f7; --carte: #fff; --champ: #fff; --barre: rgba(255, 255, 255, .82); --texte: #1d1d1f; --discret: #6e6e73; --trait: #d2d2d7; --trait-leger: #e5e5ea;
  --bleu: #0071e3; --bleu-appuye: #005bb5; --sur-bleu: #fff; --halo: rgba(0, 113, 227, .28); --vert: #1d7a36; --orange: #9a5700; --rouge: #c4291f; --marine: #1c4587; --gris: #48484a;
  --fond-vert: #e3f4e8; --fond-orange: #fff1dc; --fond-rouge: #fde4e3; --fond-bleu: #dde8fb; --fond-gris: #e9e9ee; --fond-gris-appuye: #dcdce2; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; background: var(--fond); color: var(--texte); -webkit-font-smoothing: antialiased; }
a { color: var(--bleu); }
header { position: sticky; top: 0; z-index: 10; background: var(--barre); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--trait-leger); padding: 10px 24px; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
header strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-right: 16px; }
header a { color: var(--texte); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
header a:hover { background: var(--fond-gris); }
header a.ici { background: var(--fond-gris); font-weight: 600; }
header form { margin-left: auto; display: flex; gap: 10px; align-items: center; color: var(--discret); font-size: 13px; }
header form button { min-height: 30px; padding: 4px 12px; font-size: 13px; }
main { max-width: 980px; margin: 0 auto; padding: 28px 24px 64px; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0 0 16px; }
p.aide { color: var(--discret); margin: 0 0 20px; max-width: 70ch; }
.tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 0 24px; flex-wrap: wrap; margin-bottom: 12px; } .tete p.aide { margin-bottom: 12px; }
.carte { background: var(--carte); border-radius: 14px; box-shadow: 0 0 0 1px var(--trait-leger); padding: 20px; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--trait-leger); vertical-align: top; font-size: 14px; }
th { color: var(--discret); font-weight: 600; font-size: 12px; } tr:last-child td { border-bottom: 0; }
.pastille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.envoye { background: var(--fond-vert); color: var(--vert); } .brouillon { background: var(--fond-orange); color: var(--orange); } .alerte { background: var(--fond-rouge); color: var(--rouge); }
.range { background: var(--fond-bleu); color: var(--marine); } .ignore, .attente { background: var(--fond-gris); color: var(--gris); }
.legende span { margin-right: 14px; white-space: nowrap; } .legende .pastille { margin-right: 4px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input[type=text], textarea, select { font: inherit; width: 100%; padding: 9px 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--champ); color: var(--texte); }
textarea { resize: vertical; }
input[type=text]:focus, textarea:focus, select:focus { outline: 3px solid var(--halo); border-color: var(--bleu); }
button, a.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 16px; border: 0; border-radius: 999px; background: var(--fond-gris); color: var(--texte); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
button:hover, a.bouton:hover { background: var(--fond-gris-appuye); } button:active, a.bouton:active { transform: scale(.97); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--halo); outline-offset: 2px; }
button.principal, a.bouton.principal { background: var(--bleu); color: var(--sur-bleu); font-weight: 600; } button.principal:hover, a.bouton.principal:hover { background: var(--bleu-appuye); }
button.danger { color: var(--rouge); }
.grand { min-height: 44px; padding: 10px 24px; font-size: 16px; }
.pile { display: grid; gap: 16px; } .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .petit { color: var(--discret); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ligne { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 12px; align-items: end; }
.message { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; } .ok { background: var(--fond-vert); color: var(--vert); } .erreur { background: var(--fond-rouge); color: var(--rouge); }
td details summary, details.conseil summary { cursor: pointer; color: var(--bleu); font-size: 14px; white-space: nowrap; }
td details form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--trait-leger); display: grid; gap: 8px; min-width: 260px; } td details form label { font-weight: 400; }
details.conseil { margin: 0 4px 20px; } details.conseil ul { margin: 8px 0 0; padding-left: 20px; color: var(--discret); font-size: 14px; max-width: 70ch; }
.section { margin: 28px 4px 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--discret); }
.section + p { margin: 0 4px 10px; }
.liste { background: var(--carte); border-radius: 14px; box-shadow: 0 0 0 1px var(--trait-leger); overflow: hidden; }
.rang { border-bottom: 1px solid var(--trait-leger); } .rang:last-child { border-bottom: 0; }
.rang > summary, div.rang { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 12px; align-items: center; padding: 12px 16px; }
.rang > summary { cursor: pointer; list-style: none; } .rang > summary::-webkit-details-marker { display: none; }
.rang > summary::after { content: "›"; color: var(--discret); font-size: 22px; line-height: 1; text-align: center; transition: transform .15s; } .rang[open] > summary::after { transform: rotate(90deg); }
.rang > summary:hover { background: var(--fond); }
.rang-apercu { display: block; color: var(--discret); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rang[open] .rang-apercu { display: none; }
.rang-texte { padding: 12px 16px 16px; border-top: 1px solid var(--trait-leger); } .rang-texte p { margin: 0 0 14px; max-width: 70ch; white-space: pre-line; }
.signature { white-space: pre-line; color: var(--discret); font-size: 14px; }
.centre { max-width: 420px; margin: 12vh auto; text-align: center; padding: 32px; }
@media (max-width: 720px) { .ligne, .deux { grid-template-columns: 1fr; } th:nth-child(4), td:nth-child(4) { display: none; } main { padding: 20px 14px 48px; } h1 { font-size: 26px; } }
