/* SMART-IT Campagnes : feuille de style, d'après la charte graphique SMART-IT AFRICA v1.0.
   Couleurs, polices et règles de contraste viennent de la charte ; ne pas en ajouter d'autres. */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(polices/poppins-latin-500-normal.woff2) format("woff2"); 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: "Poppins"; font-weight: 500; font-display: swap; src: url(polices/poppins-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(polices/poppins-latin-600-normal.woff2) format("woff2"); 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: "Poppins"; font-weight: 600; font-display: swap; src: url(polices/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(polices/poppins-latin-700-normal.woff2) format("woff2"); 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: "Poppins"; font-weight: 700; font-display: swap; src: url(polices/poppins-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: italic; font-display: swap; src: url(polices/poppins-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(polices/inter-latin-wght-normal.woff2) format("woff2-variations"); 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: "Inter"; font-weight: 100 900; font-display: swap; src: url(polices/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(polices/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  /* Palette principale */
  --vert: #0B6B3E;          /* Vert Smart : marque, boutons, titres */
  --vert-profond: #063D26;  /* fonds sombres, dégradés */
  --rouge: #EF171C;         /* Rouge Power : accents ponctuels, jamais un fond de texte long */
  --orange: #F47026;        /* Orange Énergie : séparateurs, accents secondaires */
  /* Teintes secondaires */
  --bleu-pale: #C7E9EB;
  --vert-pale: #E8F5EE;
  --ardoise: #4A5C63;
  --ligne: #E2E6E3;
  /* Encre et fonds */
  --encre: #1A2E35;
  --papier: #FBFAF8;
  --bleu-vert: #0E4A48;
  --blanc: #FFFFFF;
  /* Dérivés d'interface (teintes des couleurs de la charte, pour les états) */
  --vert-survol: #095A34;
  --vert-trait: #CFE6D9;
  --ardoise-clair: #66777D;
  --orange-fond: #FEF1E8;
  --orange-texte: #9A3E0C;
  --rouge-fond: #FDECEC;
  --rouge-texte: #B3121A;
  --info-fond: #E9F6F7;

  --titre: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  --texte: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --rayon: 12px;
  --rayon-petit: 8px;
  --ombre: 0 1px 2px rgba(26, 46, 53, .05), 0 6px 24px rgba(26, 46, 53, .05);
  --ombre-forte: 0 2px 4px rgba(26, 46, 53, .06), 0 16px 40px rgba(26, 46, 53, .10);
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 15px/1.6 var(--texte); color: var(--encre); background: var(--papier);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--titre); color: var(--encre); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 30px; line-height: 38px; font-weight: 700; }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--vert); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--vert-survol); }
code, .mono { font-family: var(--mono); font-size: 13px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid rgba(11, 107, 62, .35); outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; vertical-align: -3px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barre du haut ---------- */
.barre { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ligne); }
.barre-int { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.marque img { width: 34px; height: 34px; }
.marque-nom { font: 700 17px/1 var(--titre); color: var(--vert); letter-spacing: .01em; }
.marque-produit { font: 500 15px/1 var(--titre); color: var(--ardoise); padding-left: 12px; border-left: 1px solid var(--ligne); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--rayon-petit); color: var(--ardoise); text-decoration: none; font: 500 14px/1 var(--titre); }
.nav a:hover { background: var(--vert-pale); color: var(--vert); }
.nav a[aria-current="page"] { color: var(--vert); background: var(--vert-pale); }
.moi { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--vert); color: var(--blanc); font: 600 14px/1 var(--titre); flex: none; text-transform: uppercase; }
.moi-texte { display: flex; flex-direction: column; line-height: 1.25; }
.moi-nom { font: 600 13px/1.3 var(--titre); }
.moi-role { font-size: 12px; color: var(--ardoise-clair); }
.moi form { margin: 0; }

/* ---------- Bandeau de page ---------- */
.bandeau { position: relative; overflow: hidden; color: var(--blanc); background: linear-gradient(125deg, var(--vert-profond) 0%, #08502F 45%, var(--vert) 100%); }
.bandeau::before { /* bloc Rouge Power, repris de la couverture de la charte */
  content: ""; position: absolute; top: 0; right: 0; width: 132px; height: 88px; background: var(--rouge); }
.bandeau::after { /* bloc Orange Énergie, accolé au rouge comme sur la couverture */
  content: ""; position: absolute; top: 0; right: 132px; width: 44px; height: 22px; background: var(--orange); }
.bandeau-int { position: relative; max-width: var(--largeur); margin: 0 auto; padding: 36px 24px 92px; }
.bandeau h1 { color: var(--blanc); font-size: 34px; line-height: 42px; max-width: 760px; }
.bandeau .chapeau { color: rgba(255, 255, 255, .84); font-size: 16px; line-height: 26px; max-width: 680px; margin: 10px 0 0; }
.bandeau a { color: var(--blanc); }
.fil { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.fil a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.fil a:hover { color: var(--blanc); text-decoration: underline; }
.fil .sep { opacity: .5; }
.bandeau-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bandeau-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Étiquette de section : capitales en mono, sans trait devant (il se lisait comme un tiret long) */
.etiquette { display: inline-flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--vert); margin-bottom: 12px; }
.bandeau .etiquette, .ecran-marque .etiquette { color: #FFB38A; }

/* ---------- Contenu ---------- */
main { flex: 1; }
.contenu { max-width: var(--largeur); margin: -56px auto 0; padding: 0 24px 56px; position: relative; }
.contenu.sans-bandeau { margin-top: 36px; }
.section { margin-top: 40px; }
.section-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-tete p { margin: 4px 0 0; color: var(--ardoise); }
.carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px; }
.carte-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.carte-tete h2, .carte-tete h3 { display: flex; align-items: center; gap: 10px; }
.carte-tete p { margin: 4px 0 0; color: var(--ardoise); font-size: 14px; }
.grille { display: grid; gap: 20px; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pile > * + * { margin-top: 20px; }
.discret { color: var(--ardoise); }
.petit { font-size: 13px; line-height: 20px; }
.centre { text-align: center; }

/* Indicateurs */
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.kpi-tete { display: flex; align-items: center; justify-content: space-between; color: var(--ardoise); font: 500 13px/1.2 var(--texte); }
.kpi-icone { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); }
.kpi-valeur { font: 700 34px/1.1 var(--titre); color: var(--encre); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-valeur small { font-size: 18px; font-weight: 600; color: var(--ardoise); margin-left: 2px; }
.kpi-detail { font-size: 13px; color: var(--ardoise-clair); line-height: 1.45; }

/* L'essentiel */
.essentiel { border-left: 4px solid var(--orange); }
.essentiel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.essentiel li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 24px; }
.essentiel li .puce { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); flex: none; margin-top: -3px; }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px; border-radius: var(--rayon-petit);
  border: 1px solid transparent; background: var(--vert); color: var(--blanc); font: 600 14px/1.2 var(--titre); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.bouton:hover { background: var(--vert-survol); color: var(--blanc); }
.bouton:active { transform: translateY(1px); }
.bouton.large { width: 100%; min-height: 48px; font-size: 15px; }
.bouton.secondaire { background: var(--blanc); color: var(--encre); border-color: #C9D0CC; }
.bouton.secondaire:hover { border-color: var(--encre); color: var(--encre); }
.bouton.clair { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: var(--blanc); }
.bouton.clair:hover { background: rgba(255, 255, 255, .2); }
.bouton.danger { background: var(--blanc); color: var(--rouge-texte); border-color: #F2C4C5; }
.bouton.danger:hover { background: var(--rouge-fond); border-color: var(--rouge-texte); }
.bouton.fantome { background: transparent; color: var(--ardoise); padding: 8px 10px; min-height: 36px; }
.bouton.fantome:hover { background: var(--vert-pale); color: var(--vert); }
.bouton.mini { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.bouton[disabled] { background: #ECEAE5; color: #9AA3A0; border-color: transparent; cursor: not-allowed; }

/* ---------- Formulaires ---------- */
.champ { margin-bottom: 18px; }
.champ:last-child { margin-bottom: 0; }
label, .label { display: block; font: 500 13px/18px var(--texte); color: var(--encre); margin-bottom: 6px; }
.aide { display: block; font-size: 13px; line-height: 19px; color: var(--ardoise-clair); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #CDD4D0; border-radius: var(--rayon-petit); background: var(--blanc);
  color: var(--encre); font: 400 15px/1.4 var(--texte); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #98A4A0; }
input:hover, select:hover, textarea:hover { border-color: #AEB8B3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(11, 107, 62, .14); }
input[readonly] { background: var(--papier); color: var(--ardoise); }
textarea { min-height: 112px; font: 400 13px/1.6 var(--mono); resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234A5C63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.saisie-icone { position: relative; }
.saisie-icone > .ic { position: absolute; left: 14px; top: 13px; color: var(--ardoise-clair); pointer-events: none; }
.saisie-icone input { padding-left: 44px; }
.saisie-icone .voir { position: absolute; right: 6px; top: 6px; min-height: 32px; padding: 4px 10px; border: 0; background: transparent; color: var(--ardoise); font: 500 12px/1 var(--titre); border-radius: 6px; cursor: pointer; }
.saisie-icone .voir:hover { background: var(--vert-pale); color: var(--vert); }
.saisie-icone input.avec-voir { padding-right: 84px; }
.code-otp { font: 600 26px/1 var(--mono) !important; letter-spacing: .3em; text-align: center; min-height: 60px !important; }
.case { display: flex; align-items: flex-start; gap: 10px; font: 400 14px/20px var(--texte); color: var(--encre); margin: 0 0 12px; cursor: pointer; }
.case input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--vert); flex: none; }
.case small { display: block; color: var(--ardoise-clair); font-size: 13px; }
.fichier { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed #BFD6C9; border-radius: var(--rayon); background: var(--vert-pale); cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.fichier:hover, .fichier:focus-within { border-color: var(--vert); }
.fichier input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fichier .ic-rond { width: 42px; height: 42px; border-radius: 50%; background: var(--blanc); color: var(--vert); display: grid; place-items: center; flex: none; }
.fichier strong { display: block; font: 600 14px/1.3 var(--titre); }
.fichier .nom { font-size: 13px; color: var(--ardoise); font-weight: 400; }
.force { height: 6px; border-radius: 3px; background: var(--ligne); margin-top: 8px; overflow: hidden; }
.force span { display: block; height: 100%; width: 0; background: var(--rouge-texte); transition: width .2s, background .2s; }
.etapes { counter-reset: etape; }
.etape { position: relative; padding-left: 44px; margin-bottom: 22px; }
.etape::before { counter-increment: etape; content: counter(etape); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--vert); color: var(--blanc); display: grid; place-items: center; font: 600 13px/1 var(--titre); }
.etape > .label { font: 600 14px/24px var(--titre); }
.options { border-top: 1px solid #EEF0EE; padding-top: 16px; margin-top: 4px; }
details.avance summary { cursor: pointer; font: 500 13px/20px var(--titre); color: var(--vert); list-style: none; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 4px; }
details.avance summary::-webkit-details-marker { display: none; }
details.avance[open] summary { margin-bottom: 14px; }

/* ---------- Messages ---------- */
.message { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--rayon-petit); margin: 0 0 20px; font-size: 14px; line-height: 21px; border: 1px solid transparent; }
.message .ic { margin-top: 1px; }
.message > div { flex: 1; min-width: 0; }
.message.ok { background: var(--vert-pale); color: #074A2B; border-color: var(--vert-trait); }
.message.info { background: var(--info-fond); color: var(--bleu-vert); border-color: var(--bleu-pale); }
.message.erreur { background: var(--rouge-fond); color: var(--rouge-texte); border-color: #F6CACB; }
.message.alerte { background: var(--orange-fond); color: var(--orange-texte); border-color: #FAD6C0; }
.message p:last-child { margin: 0; }
.message strong { display: block; font: 600 14px/1.4 var(--titre); margin-bottom: 2px; }
.annonce { box-shadow: var(--ombre); }
.secret-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; margin-top: 8px; background: var(--blanc); border: 1px solid var(--vert-trait); border-radius: var(--rayon-petit); color: var(--encre); }
.secret-box code { flex: 1; font-size: 14px; overflow-wrap: anywhere; }
.secret-box .label-court { font: 500 12px/1 var(--texte); color: var(--ardoise-clair); width: 92px; flex: none; }

/* ---------- Pastilles ---------- */
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font: 600 12px/18px var(--texte); white-space: nowrap; }
.pastille.ok { background: var(--vert-pale); color: var(--vert); }
.pastille.neutre { background: #EEF0EE; color: var(--ardoise); }
.pastille.alerte { background: var(--orange-fond); color: var(--orange-texte); }
.pastille.info { background: var(--bleu-pale); color: var(--bleu-vert); }
.pastille.sur-sombre { background: rgba(255, 255, 255, .14); color: var(--blanc); }
.point { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Tableaux ---------- */
.tableau-defile { position: relative; overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 12px/16px var(--texte); color: var(--ardoise-clair); padding: 0 12px 10px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #EEF0EE; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coupe { max-width: 320px; overflow-wrap: anywhere; color: var(--ardoise); font-size: 13px; }
.cellule-titre { font-weight: 600; color: var(--encre); }
.cellule-sous { display: block; font-size: 12px; color: var(--ardoise-clair); font-weight: 400; }
.avec-icone { display: inline-flex; align-items: center; gap: 10px; }
.icone-canal { width: 30px; height: 30px; border-radius: 8px; background: var(--vert-pale); color: var(--vert); display: grid; place-items: center; flex: none; }
.jauge { height: 8px; background: #EDF0EE; border-radius: 4px; min-width: 72px; overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--vert); border-radius: 4px; }

/* ---------- Graphique : clics par jour (une série, Vert Smart) ---------- */
.graphe { position: relative; padding-left: 36px; }
.graphe-grille { position: absolute; left: 36px; right: 0; top: 0; height: 200px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.graphe-grille div { border-top: 1px dashed #E4E8E5; position: relative; }
.graphe-grille div span { position: absolute; left: -36px; top: -8px; width: 28px; text-align: right; font: 400 11px/16px var(--mono); color: var(--ardoise-clair); }
.barres { position: relative; height: 200px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--ligne); }
.barre-jour { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; min-width: 6px; cursor: default; outline: none; }
.barre-jour .b { width: 100%; background: var(--vert); border-radius: 4px 4px 0 0; min-height: 3px; transition: background .12s; }
.barre-jour:hover .b, .barre-jour:focus-visible .b { background: var(--vert-profond); }
.bulle { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--encre); color: var(--blanc);
  padding: 8px 12px; border-radius: 8px; font-size: 12px; line-height: 18px; z-index: 3; pointer-events: none; box-shadow: var(--ombre-forte); }
.bulle strong { display: block; font: 600 13px/18px var(--titre); }
.barre-jour:hover .bulle, .barre-jour:focus-visible .bulle { display: block; }
.barre-jour:first-child .bulle { left: 0; transform: none; }
.barre-jour:last-child .bulle { left: auto; right: 0; transform: none; }
.axe { display: flex; justify-content: space-between; margin: 8px 0 0 36px; font: 400 11px/16px var(--mono); color: var(--ardoise-clair); }
details.donnees summary { cursor: pointer; color: var(--vert); font: 500 13px/20px var(--titre); margin-top: 16px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.donnees summary::-webkit-details-marker { display: none; }
details.donnees[open] summary { margin-bottom: 12px; }

/* ---------- Onglets ---------- */
.onglets { display: flex; gap: 6px; padding: 6px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); width: max-content; max-width: 100%; margin-bottom: 24px; overflow-x: auto; }
.onglets a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--rayon-petit); text-decoration: none; color: var(--ardoise); font: 500 14px/1 var(--titre); white-space: nowrap; }
.onglets a:hover { color: var(--vert); background: var(--vert-pale); }
.onglets a[aria-current="page"] { background: var(--vert); color: var(--blanc); }

/* ---------- Listes de clients et de campagnes ---------- */
.tuile { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tuile:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); border-color: var(--vert-trait); color: inherit; }
.tuile-tete { display: flex; align-items: center; gap: 14px; }
.monogramme { width: 46px; height: 46px; border-radius: 12px; background: var(--vert-pale); color: var(--vert); display: grid; place-items: center; font: 700 17px/1 var(--titre); flex: none; letter-spacing: .02em; }
.tuile h3 { font-size: 17px; }
.tuile-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid #EEF0EE; }
.tuile-chiffres div { display: flex; flex-direction: column; }
.tuile-chiffres strong { font: 700 20px/1.2 var(--titre); font-variant-numeric: tabular-nums; }
.tuile-chiffres span { font-size: 12px; color: var(--ardoise-clair); }
.tuile-pied { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ardoise-clair); margin-top: auto; }
.tuile-pied .lire { color: var(--vert); font: 600 13px/1 var(--titre); display: inline-flex; align-items: center; gap: 6px; }
.tuile .champ { margin: 0; }
.tuile-nouvelle { border: 1.5px dashed #BFD6C9; background: rgba(232, 245, 238, .45); box-shadow: none; }
.campagne-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 32px; align-items: center; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
a.campagne-ligne:hover { box-shadow: var(--ombre-forte); border-color: var(--vert-trait); color: inherit; }
.campagne-ligne h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.campagne-ligne p { margin: 4px 0 0; color: var(--ardoise); font-size: 14px; }
.liste-campagnes > * + * { margin-top: 14px; }
.campagne-chiffres { display: flex; gap: 32px; }
.campagne-chiffres div { display: flex; flex-direction: column; align-items: flex-end; }
.campagne-chiffres strong { font: 700 22px/1.2 var(--titre); font-variant-numeric: tabular-nums; }
.campagne-chiffres span { font-size: 12px; color: var(--ardoise-clair); white-space: nowrap; }
.fleche-rond { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); }

.vide { text-align: center; padding: 48px 24px; }
.vide .ic-grand { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--vert-pale); color: var(--vert); }
.vide h3 { margin-bottom: 6px; font-size: 18px; }
.vide p { color: var(--ardoise); max-width: 480px; margin: 0 auto; }

.membre { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF0EE; }
.membre:last-of-type { border-bottom: 0; }
.membre .avatar { background: var(--vert-pale); color: var(--vert); }
.membre-texte { flex: 1; min-width: 0; }
.membre-texte strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.membre-texte .pastille { margin-top: 4px; }
.membre-actions { display: flex; gap: 4px; }
.membre-actions form { margin: 0; }

.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; padding: 16px; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); }
.codes code { font-size: 15px; letter-spacing: .04em; text-align: center; padding: 6px; }
.qr { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.qr-image { padding: 10px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); line-height: 0; }
.qr-image svg { width: 184px; height: 184px; }
.statut-securite { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--rayon-petit); margin-bottom: 20px; }
.statut-securite.ok { background: var(--vert-pale); }
.statut-securite.alerte { background: var(--orange-fond); }
.statut-securite .rond { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blanc); flex: none; }
.statut-securite.ok .rond { color: var(--vert); }
.statut-securite.alerte .rond { color: var(--orange-texte); }
.statut-securite strong { display: block; font: 600 14px/1.3 var(--titre); }
.statut-securite span { font-size: 13px; color: var(--ardoise); }
.zone-sensible { border-color: #F2D3D4; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); background: var(--blanc); }
.pied-int { max-width: var(--largeur); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ardoise); }
.pied-marque { display: flex; align-items: center; gap: 10px; }
.pied-marque img { width: 24px; height: 24px; }
.pied-marque strong { font: 700 13px/1 var(--titre); color: var(--encre); }
.pied a { color: var(--ardoise); text-decoration: none; }
.pied a:hover { color: var(--vert); }
.pied-liens { display: flex; gap: 18px; flex-wrap: wrap; }
.signature { font: italic 700 15px/1 var(--titre); color: var(--vert); }

/* ---------- Écrans d'accueil (connexion, vérification, bienvenue) ---------- */
.ecran { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.ecran-marque { position: relative; overflow: hidden; color: var(--blanc); padding: 48px 56px; display: flex; flex-direction: column;
  background: linear-gradient(150deg, var(--vert-profond) 0%, #08502F 50%, var(--vert) 100%); }
.ecran-marque::before { content: ""; position: absolute; top: 0; right: 0; width: 30%; height: 24%; background: var(--rouge); }
.ecran-marque::after { content: ""; position: absolute; bottom: 0; left: 0; width: 28%; height: 16%; background: var(--orange); }
.ecran-marque > * { position: relative; z-index: 1; }
.ecran-logo { display: flex; align-items: center; gap: 16px; }
.ecran-logo .disque { width: 76px; height: 76px; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.ecran-logo .disque img { width: 68px; height: 68px; }
.ecran-logo strong { display: block; font: 700 21px/1.15 var(--titre); }
.ecran-logo span { font-size: 13px; color: rgba(255, 255, 255, .78); }
.ecran-accroche { margin: auto 0; max-width: 480px; padding: 48px 0; }
.ecran-accroche h1 { color: var(--blanc); font-size: 42px; line-height: 50px; }
.ecran-accroche p { color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 26px; margin: 18px 0 30px; }
.atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.atouts li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .94); }
.atouts .ic-rond { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .13); display: grid; place-items: center; flex: none; margin-top: -5px; }
.ecran-pied { font-size: 12px; color: rgba(255, 255, 255, .78); padding-left: 32%; }
.ecran-formulaire { display: flex; flex-direction: column; padding: 40px 24px; background: var(--papier); }
.ecran-boite { width: 100%; max-width: 420px; margin: auto; }
.ecran-boite h2 { font-size: 28px; line-height: 36px; font-weight: 700; margin-bottom: 8px; }
.ecran-boite > p.discret { margin-bottom: 28px; }
.ecran-bas { text-align: center; margin-top: 28px; font-size: 13px; color: var(--ardoise-clair); }
.ecran-signature { text-align: center; margin-top: 36px; }
.icone-tete { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); margin-bottom: 20px; }

/* ---------- Pages publiques (liens) ---------- */
.public { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: var(--papier); }
.public .carte { max-width: 440px; width: 100%; text-align: center; padding: 40px 32px; }
.public .ic-grand { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--vert-pale); color: var(--vert); }
.public h1 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.public-pied { margin-top: 24px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ardoise-clair); }
.public-pied img { width: 18px; height: 18px; }

/* ---------- Adaptation ---------- */
@media (max-width: 1020px) {
  .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecran { grid-template-columns: 1fr; }
  .ecran-marque { padding: 28px 24px; }
  .ecran-marque::before { width: 96px; height: 56px; }
  .ecran-marque::after { width: 64px; height: 20px; }
  .ecran-accroche { padding: 28px 0 8px; }
  .ecran-accroche h1 { font-size: 28px; line-height: 36px; }
  .ecran-accroche p { margin-bottom: 8px; }
  .atouts, .ecran-pied { display: none; }
  .campagne-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .campagne-ligne .fleche-rond { display: none; }
}
@media (max-width: 760px) {
  .grille-2, .grille-3, .grille-4 { grid-template-columns: minmax(0, 1fr); }
  .tableau-defile table.large { min-width: 540px; }
  .barre-int { gap: 12px; padding: 0 16px; }
  .marque-produit, .moi-texte { display: none; }
  .nav a span { display: none; }
  .bandeau::before { width: 72px; height: 48px; }
  .bandeau::after { right: 72px; width: 28px; height: 14px; }
  .bandeau-int { padding: 28px 16px 84px; }
  .bandeau h1 { font-size: 26px; line-height: 34px; }
  .contenu { padding: 0 16px 40px; }
  .carte { padding: 20px; }
  .tableau-defile { margin: 0 -20px; padding: 0 20px; }
  .campagne-ligne { grid-template-columns: 1fr; gap: 16px; }
  .campagne-chiffres { gap: 24px; }
  .campagne-chiffres div { align-items: flex-start; }
  .qr { grid-template-columns: 1fr; justify-items: center; }
  .kpi-valeur { font-size: 28px; }
  .pied-int { flex-direction: column; align-items: flex-start; }
}

/* ---------- Impression : le rapport de campagne ---------- */
.imprime-seul { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: var(--blanc); font-size: 12px; }
  .barre, .pied, .onglets, .bandeau-actions, .sans-impression, .fil, details.donnees summary { display: none !important; }
  .grille-2, .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section .grille-2, .grille-2.section { grid-template-columns: minmax(0, 1fr); }
  .tableau-defile { overflow: visible; margin: 0; padding: 0; }
  .kpi, .essentiel, .graphe { break-inside: avoid; }
  tr { break-inside: avoid; }
  .imprime-seul { display: flex !important; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ligne); }
  .imprime-seul img { width: 40px; height: 40px; }
  .bandeau { background: none; color: var(--encre); }
  .bandeau::before, .bandeau::after { display: none; }
  .bandeau-int { padding: 0 0 12px; }
  .bandeau h1, .bandeau a, .fil, .fil a, .bandeau .chapeau, .meta { color: var(--encre); }
  .bandeau .etiquette { color: var(--vert); }
  .pastille.sur-sombre { background: var(--vert-pale); color: var(--vert); }
  .contenu { margin: 16px 0 0; padding: 0; max-width: none; }
  .carte { box-shadow: none; }
  details.donnees > *:not(summary) { display: block; }
  a { text-decoration: none; }
}
