@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

/* secret.jaimmme.com
   Base blanche, typo système, gris doux, une seule couleur d'accent. Le fun passe par le mouvement. */

:root {
  --fond: #ffffff;
  --surface: #f7f7f5;
  --surface-2: #efefec;
  --ligne: #e9e9e6;
  --ligne-forte: #d9d9d4;
  --texte: #1f1f1d;
  --doux: #6f6e69;
  --tres-doux: #9b9a95;
  --accent: #5b3df5;
  --accent-fonce: #4628e0;
  --accent-doux: #f0edff;
  --accent-texte: #4a2fe0;
  --ok: #1a8a4f;
  --ok-doux: #e8f6ee;
  --alerte: #d9433b;
  --alerte-doux: #fdeeec;
  --info: #2964d8;
  --info-doux: #eaf1fd;
  --rayon: 14px;
  --rayon-petit: 10px;
  --police: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --titre: "Funnel Display", "Instrument Sans", ui-sans-serif, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #191919;
    --surface: #222221;
    --surface-2: #2b2b2a;
    --ligne: #2f2f2e;
    --ligne-forte: #3d3d3b;
    --texte: #ecebe8;
    --doux: #a3a29d;
    --tres-doux: #75746f;
    --accent: #8a75ff;
    --accent-fonce: #9d8bff;
    --accent-doux: #2a2546;
    --accent-texte: #b3a6ff;
    --ok: #4cc884;
    --ok-doux: #1d2f25;
    --alerte: #f0716a;
    --alerte-doux: #3a2422;
    --info: #79a6f5;
    --info-doux: #1f2a3d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16.5px/1.55 var(--police);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--titre); }
h1 { font-size: clamp(32px, 6.4vw, 44px); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent-texte); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--accent-doux); }

.hors-ecran { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.doux { color: var(--doux); }
.petit-texte { font-size: 13.5px; }
.centre { text-align: center; }
.centre.pile, .centre.pile-l { align-items: center; }
.gauche { text-align: left; width: 100%; }
.pile { display: flex; flex-direction: column; gap: 12px; }
.pile-l { display: flex; flex-direction: column; gap: 20px; }
.espace { flex: 1; }
.texte-libre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Page ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.contenu { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 8px 0 32px; }
.contenu.entree { animation: apparaitre-page .25s ease-out both; }
@keyframes apparaitre-page { from { opacity: 0; } }
@keyframes monter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 18px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--texte); font-family: var(--titre); font-weight: 650; font-size: 21px; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo-marque {
  width: 26px; height: 26px; border-radius: 8px; background: var(--accent);
  position: relative; display: inline-block;
}
.logo-marque::before { content: ""; position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -4px; background: #fff; border-radius: 50%; }
.logo-marque::after { content: ""; position: absolute; left: 50%; top: 11px; width: 6px; height: 9px; margin-left: -3px; background: #fff; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }
.logo:hover .logo-marque { animation: frisson .4s; }
@keyframes frisson { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

.nav { display: flex; gap: 2px; background: var(--surface); border-radius: 999px; padding: 3px; }
.nav a { position: relative; color: var(--doux); padding: 6px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 550; }
.nav a:hover { color: var(--texte); text-decoration: none; }
.nav a.actif { background: var(--fond); color: var(--texte); box-shadow: 0 0 0 1px var(--ligne); }
.pastille { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }

.pied { border-top: 1px solid var(--ligne); padding-top: 24px; color: var(--tres-doux); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pied a { color: var(--doux); }

.intro { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 4px; }
.chapo { color: var(--doux); font-size: 17px; max-width: 34em; }
.retour { display: inline-flex; align-items: center; gap: 6px; color: var(--doux); font-size: 14px; align-self: flex-start; }

/* ---------- Cartes ---------- */

.carte { background: var(--fond); border: 1px solid var(--ligne); border-radius: 18px; padding: 22px; }
@media (max-width: 480px) { .carte { padding: 18px; border-radius: 16px; } }
.titre-moyen { font-size: 26px; letter-spacing: -0.025em; }
.titre-petit { font-size: 18px; }
.sous-titre { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.surtitre { color: var(--accent-texte); font-size: 14px; font-weight: 600; }
.squelette { min-height: 120px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: luire 1.4s infinite linear; border: 0; }
@keyframes luire { to { background-position: -200% 0; } }

/* ---------- Icônes ---------- */

.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic-inline { width: 15px; height: 15px; vertical-align: -2px; }
.grosse-icone { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; color: var(--doux); margin: 4px auto 0; }
.grosse-icone .ic { width: 30px; height: 30px; }
.grosse-icone.accent { background: var(--accent-doux); color: var(--accent-texte); }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 10px 16px;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .1s, opacity .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.plein { width: 100%; }
.btn.grand { padding: 14px 18px; font-size: 16px; border-radius: 13px; }
.btn.petit { padding: 7px 11px; font-size: 13.5px; border-radius: 9px; }
.btn.petit .ic { width: 15px; height: 15px; }
.btn-premier { background: var(--accent); color: #fff; }
.btn-premier:hover:not(:disabled) { background: var(--accent-fonce); }
.btn-second { background: var(--fond); color: var(--texte); border-color: var(--ligne-forte); }
.btn-second:hover:not(:disabled) { background: var(--surface); }
.btn-fantome { background: transparent; color: var(--doux); }
.btn-fantome:hover:not(:disabled) { background: var(--surface); color: var(--texte); }
.btn-danger { background: var(--alerte-doux); color: var(--alerte); }
.btn-danger:hover:not(:disabled) { background: var(--alerte); color: #fff; }
.btn-lien { background: none; border: 0; color: var(--doux); padding: 6px 4px; font-weight: 500; font-size: 14px; }
.btn-lien:hover { color: var(--texte); text-decoration: underline !important; text-underline-offset: 3px; }
.btn-lien.danger:hover { color: var(--alerte); }
.btn.charge .ic { animation: tourner 1s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }
.btn-icone {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 0; background: transparent; color: var(--doux); cursor: pointer; flex: none;
}
.btn-icone:hover { background: var(--surface-2); color: var(--texte); }
.btn-icone.tourne .ic { animation: lancer .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes lancer { from { transform: rotate(-200deg) scale(.6); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Champs ---------- */

.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ-titre { font-size: 14px; font-weight: 600; }
.champ-aide { font-size: 13px; color: var(--doux); }
.input {
  width: 100%; min-width: 0; border: 1px solid var(--ligne-forte); border-radius: var(--rayon-petit);
  background: var(--fond); color: var(--texte); padding: 11px 12px; font: inherit; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--tres-doux); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
textarea.input { resize: vertical; line-height: 1.5; }
textarea.input.grand { min-height: 140px; }
input[type="file"].input { padding: 9px; font-size: 14px; }
.input-groupe { display: flex; align-items: center; border: 1px solid var(--ligne-forte); border-radius: var(--rayon-petit); padding-right: 4px; transition: border-color .15s, box-shadow .15s; }
.input-groupe:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.input-groupe .input { border: 0; box-shadow: none !important; font-family: var(--mono); font-size: 15px; letter-spacing: .02em; }
.input-prefixe { display: flex; align-items: center; border: 1px solid var(--ligne-forte); border-radius: var(--rayon-petit); overflow: hidden; }
.input-prefixe:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.input-prefixe span { padding: 0 2px 0 12px; color: var(--tres-doux); font-size: 15px; white-space: nowrap; }
.input-prefixe .input { border: 0; box-shadow: none !important; padding-left: 0; }
.lien-champ { font-size: 14.5px; color: var(--doux); background: var(--surface); text-overflow: ellipsis; }
.erreur { color: var(--alerte); font-size: 14.5px; font-weight: 500; }

/* Choix du type */
.types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 560px) { .types { grid-template-columns: repeat(3, 1fr); } }
.type {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px;
  border: 1px solid var(--ligne); border-radius: 13px; background: var(--fond); cursor: pointer;
  font-size: 13px; font-weight: 550; color: var(--doux); transition: all .15s;
}
.type .ic { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.type:hover { border-color: var(--ligne-forte); color: var(--texte); }
.type.actif { border-color: var(--accent); background: var(--accent-doux); color: var(--accent-texte); }
.type.actif .ic { transform: scale(1.12); }

/* Segments */
.seg { display: flex; background: var(--surface); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--doux); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--texte); }
.seg button.actif { background: var(--fond); color: var(--texte); box-shadow: 0 0 0 1px var(--ligne-forte); }
.reglages { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 560px) { .reglages { grid-template-columns: 1fr; } }

/* Interrupteurs */
.bascule { display: flex; align-items: center; gap: 14px; cursor: pointer; position: relative; }
.bascule-texte { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bascule-titre { font-size: 14.5px; font-weight: 600; }
.bascule-aide { font-size: 13px; color: var(--doux); }
.bascule-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bascule-piste { width: 42px; height: 25px; border-radius: 999px; background: var(--ligne-forte); position: relative; flex: none; transition: background .2s; }
.bascule-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.bascule-input:checked + .bascule-piste { background: var(--accent); }
.bascule-input:checked + .bascule-piste::after { transform: translateX(17px); }
.bascule-input:focus-visible + .bascule-piste { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cases à cocher */
.cases { display: flex; gap: 8px; flex-wrap: wrap; }
.case { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ligne-forte); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 14.5px; font-weight: 550; color: var(--doux); }
.case input { position: absolute; opacity: 0; }
.case:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); color: var(--accent-texte); }
.case:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Options */
.options { border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.options summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; cursor: pointer; }
.options summary::-webkit-details-marker { display: none; }
.options-titre { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.options-titre .ic { transition: transform .25s; }
.options[open] .options-titre .ic { transform: rotate(45deg); }
.options-resume { font-size: 13px; color: var(--tres-doux); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.options-corps { padding: 2px 0 18px; gap: 18px; }

/* Zone de fichier */
.zone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px;
  border: 1.5px dashed var(--ligne-forte); border-radius: var(--rayon); background: var(--surface);
  cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.zone:hover, .zone.survol { border-color: var(--accent); background: var(--accent-doux); }
.zone.pleine { border-style: solid; }
.zone-ic { width: 24px; height: 24px; color: var(--doux); margin-bottom: 4px; }
.zone-titre { font-weight: 600; overflow-wrap: anywhere; }
.zone-sous { font-size: 13px; color: var(--doux); }
.apercu-photo img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--rayon); display: block; }

/* Encarts */
.encart { display: flex; gap: 11px; background: var(--surface); border-radius: 12px; padding: 13px 14px; font-size: 14.5px; color: var(--texte); text-align: left; }
.encart > .ic { color: var(--doux); margin-top: 2px; }
.encart strong { font-weight: 650; }

/* ---------- Résultat ---------- */

.resultat h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 4px; }
.suivi-carte { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 14px 16px; }
.suivi-carte p { font-size: 13.5px; }

/* ---------- Listes ---------- */

.mes-envois { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mes-envois > * { width: 100%; }
.mes-envois > .btn-lien { width: auto; }
.liste-tete { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px 4px; }
.liste-tete h2 { font-size: 16px; }
.liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.liste li + li { border-top: 1px solid var(--ligne); }
.liste > li.doux { padding: 10px 14px; }
.liste-ligne { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--texte); }
.liste-ligne:hover { background: var(--surface); text-decoration: none; }
.liste-ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--surface); color: var(--doux); }
.liste-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.liste-texte strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-texte .doux { font-size: 13px; }

.etiquette { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.etiquette-neutre { background: var(--surface-2); color: var(--doux); }
.etiquette-info { background: var(--accent-doux); color: var(--accent-texte); }
.etiquette-ok { background: var(--ok-doux); color: var(--ok); }
.etiquette-alerte { background: var(--alerte-doux); color: var(--alerte); }

/* ---------- Toasts et modale ---------- */

.toasts { position: fixed; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 50; padding: 0 16px; }
.toast { background: var(--texte); color: var(--fond); padding: 10px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 550; max-width: 440px; text-align: center; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .2s, transform .25s cubic-bezier(.3,1.4,.5,1); }
.toast.visible { opacity: 1; transform: none; }

.modale-fond { position: fixed; inset: 0; background: rgba(15,15,15,.45); display: grid; place-items: center; padding: 16px; z-index: 40; opacity: 0; transition: opacity .2s; }
.modale-fond.visible { opacity: 1; }
.modale { position: relative; background: var(--fond); border-radius: 20px; padding: 26px 22px 22px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; text-align: center; transform: scale(.96); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.modale-fond.visible .modale { transform: none; }
.modale-fermer { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 9px; color: var(--doux); cursor: pointer; display: grid; place-items: center; }
.modale-fermer:hover { background: var(--surface); }
.modale-titre { font-size: 20px; }
.qr { background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--ligne); }
.qr svg { display: block; width: 100%; height: auto; }

/* ---------- Enveloppe ---------- */

.enveloppe { width: 168px; margin: 4px auto 0; }
.enveloppe svg { width: 100%; height: auto; overflow: visible; display: block; }
.env-dos { fill: var(--surface-2); stroke: var(--ligne-forte); stroke-width: 1.5; }
.env-lettre rect { fill: var(--fond); stroke: var(--ligne-forte); stroke-width: 1.5; }
.env-lettre path { stroke: var(--ligne-forte); stroke-width: 3; stroke-linecap: round; }
.env-lettre { transform: translateY(16px); transition: transform .6s cubic-bezier(.2,.8,.2,1) .35s; }
.env-poche { fill: var(--surface); stroke: var(--ligne-forte); stroke-width: 1.5; stroke-linejoin: round; }
.env-plis { stroke: var(--ligne-forte); stroke-width: 1.5; fill: none; }
.env-rabat path, .env-rabat-haut path { fill: var(--surface-2); stroke: var(--ligne-forte); stroke-width: 1.5; stroke-linejoin: round; }
.env-rabat, .env-rabat-haut { transform-box: view-box; transform-origin: 100px 52px; }
.env-rabat { transition: transform .22s ease-in; }
.env-rabat-haut { transform: scaleY(0); transition: transform .25s ease-out .2s; }
.env-sceau circle { fill: var(--accent); }
.env-sceau path { fill: #fff; }
.env-sceau { transform-box: fill-box; transform-origin: center; transition: transform .25s, opacity .25s; }
.enveloppe:not(.ouverte):not(.scellee) .env-sceau { animation: battre 2.2s ease-in-out infinite; }
@keyframes battre { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.12); } 90% { transform: scale(.96); } }
.enveloppe.ouverte .env-sceau { transform: scale(0); opacity: 0; }
.enveloppe.ouverte .env-rabat { transform: scaleY(0); }
.enveloppe.ouverte .env-rabat-haut { transform: scaleY(1); }
.enveloppe.ouverte .env-lettre { transform: translateY(-30px); }
.enveloppe.scellee { animation: sceller .7s cubic-bezier(.3,1.4,.5,1) both; }
.enveloppe.scellee .env-sceau { animation: tampon .5s cubic-bezier(.3,1.6,.5,1) .35s both; }
@keyframes sceller { from { transform: translateY(14px) scale(.9); opacity: 0; } }
@keyframes tampon { from { transform: scale(2.2); opacity: 0; } }
.enveloppe.envolee { animation: sceller .6s cubic-bezier(.3,1.4,.5,1) both, envol 1s cubic-bezier(.6,0,.4,1) 1.3s forwards; }
@keyframes envol { 30% { transform: translate(-6px, 6px) rotate(-4deg); } to { transform: translate(140px, -120px) rotate(18deg) scale(.4); opacity: 0; } }

/* ---------- Lecture ---------- */

.note-publique { display: flex; justify-content: center; }
.note-publique span { background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.note-publique span::before { content: "« "; color: var(--tres-doux); }
.note-publique span::after { content: " »"; color: var(--tres-doux); }

.tenir {
  position: relative; overflow: hidden; width: 100%; padding: 16px 18px; border-radius: 14px;
  background: var(--texte); color: var(--fond); font-size: 16px; touch-action: none; isolation: isolate;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.tenir-jauge { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); z-index: -1; }
.tenir.appui { transform: scale(.985); }
.tenir:disabled { opacity: 1; }
.carte.secoue { animation: secouer .45s; }
@keyframes secouer { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.capsule { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-doux); color: var(--accent-texte); display: grid; place-items: center; margin: 4px auto 0; animation: pulse 2.4s ease-in-out infinite; }
.capsule-ic { width: 40px; height: 40px; animation: retourner 4s ease-in-out infinite; }
@keyframes retourner { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.capsule-compteur { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.carte.apparition { animation: apparaitre .5s cubic-bezier(.2,.8,.2,1); }
@keyframes apparaitre { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.secret-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 44px; }
.secret-corps { position: relative; border-radius: var(--rayon); }
.secret-pied { display: flex; flex-direction: column; gap: 12px; }
.secret-pied p { display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; }

.fiche { border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.ligne { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; }
.ligne + .ligne, .fiche-note { border-top: 1px solid var(--ligne); }
.ligne-lib { font-size: 13px; color: var(--doux); font-weight: 550; }
.ligne-valeur { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.ligne-valeur.masque { letter-spacing: .1em; color: var(--doux); user-select: none; }
.ligne-actions { display: flex; }
.fiche-note { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 480px) {
  .ligne { grid-template-columns: 1fr auto; }
  .ligne-lib { grid-column: 1 / -1; margin-bottom: -6px; }
}
.message-bloc { background: var(--surface); border-radius: var(--rayon); padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.piece { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 14px; }
.piece-ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--accent-doux); color: var(--accent-texte); }
.piece-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.piece-infos strong { overflow-wrap: anywhere; }
.photo-ephemere { width: 100%; border-radius: var(--rayon); display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }

.agent-entete { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--alerte); margin-bottom: 10px; }
.agent-texte { font-family: var(--mono); font-size: 17px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 3em; }
.curseur::after { content: "▍"; color: var(--accent); animation: clignoter .9s steps(1) infinite; margin-left: 1px; }
@keyframes clignoter { 50% { opacity: 0; } }

/* Maintenir pour voir */
.flou { cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.flou > :not(.voile) { filter: blur(14px); transition: filter .18s; }
.flou.voir > :not(.voile) { filter: none; }
.voile { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--texte); font-weight: 600; font-size: 15px; transition: opacity .15s; pointer-events: none; }
.voile .ic { width: 26px; height: 26px; }
.flou.voir .voile { opacity: 0; }

/* Anneau de compte à rebours */
.anneau { position: relative; width: 44px; height: 44px; flex: none; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau-fond { fill: none; stroke: var(--surface-2); stroke-width: 3.5; }
.anneau-arc { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.anneau-n { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.anneau.urgent .anneau-arc { stroke: var(--alerte); }
.anneau.urgent .anneau-n { color: var(--alerte); animation: tic 1s infinite; }
@keyframes tic { 0% { transform: scale(1.25); } 30% { transform: scale(1); } }

/* Désintégration */
.mot { display: inline-block; white-space: nowrap; }
.grain { display: inline-block; white-space: pre; transition: transform 1.2s cubic-bezier(.2,.6,.3,1), opacity 1.1s ease-in, filter 1.2s; transition-delay: var(--d, 0s); }
.poussiere .grain { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.3); opacity: 0; filter: blur(3px); color: var(--accent); }
.fondu { transition: opacity .9s ease, filter .9s ease, transform .9s ease; }
.poussiere .fondu { opacity: 0; filter: blur(6px); transform: scale(1.03); }
.poussiere .fiche, .poussiere .piece, .poussiere .message-bloc { transition: border-color .8s, background .8s; border-color: transparent; background: transparent; }
.evanescence { transition: opacity .9s, filter .9s, transform .9s; opacity: 0; filter: blur(12px); transform: scale(.97) translateY(-10px); }

/* Fumée */
.fumee { position: relative; width: 120px; height: 90px; margin: 0 auto; }
.bouffee { position: absolute; left: 50%; bottom: 0; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--surface-2); opacity: 0; animation: bouffee 2.6s ease-out calc(var(--i) * .18s) both; }
@keyframes bouffee { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(var(--x), -70px) scale(1.8); opacity: 0; } }

.teleport-ic { width: 46px; height: 46px; color: var(--accent); margin: 0 auto; animation: decoller 1.2s ease-in-out infinite alternate; }
@keyframes decoller { to { transform: translate(4px, -6px); } }
.grand-chiffre { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Pierre tombale */
.tombe { display: flex; flex-direction: column; align-items: center; margin: 6px auto 0; animation: surgir .7s cubic-bezier(.3,1.4,.5,1) both; }
.tombe-pierre { width: 120px; height: 132px; border-radius: 60px 60px 10px 10px; background: var(--surface-2); border: 1px solid var(--ligne-forte); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding-top: 10px; }
.tombe-rip { font-weight: 800; letter-spacing: .12em; font-size: 18px; color: var(--doux); }
.tombe-l1 { font-size: 12px; color: var(--doux); }
.tombe-l2 { font-size: 11.5px; color: var(--tres-doux); font-variant-numeric: tabular-nums; }
.tombe-sol { width: 170px; height: 10px; border-radius: 50%; background: var(--surface); margin-top: -5px; }
@keyframes surgir { from { transform: translateY(24px); opacity: 0; } }

/* ---------- Suivi ---------- */

.suivi-tete { display: flex; align-items: center; gap: 12px; }
.suivi-tete > div { flex: 1; min-width: 0; }
.suivi-tete h1 { overflow-wrap: anywhere; }
.suivi-etat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.suivi-etat h2 { font-size: 22px; margin-top: 6px; }
.chronologie { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 0; }
.chronologie li { display: flex; align-items: center; gap: 12px; position: relative; padding: 7px 0; font-size: 14.5px; color: var(--doux); }
.chronologie li + li::before { content: ""; position: absolute; left: 4px; top: -7px; height: 14px; width: 1px; background: var(--ligne-forte); }
.chronologie .point { width: 9px; height: 9px; border-radius: 50%; background: var(--ligne-forte); flex: none; }
.chronologie li.fort { color: var(--texte); font-weight: 550; }
.chronologie li.fort .point { background: var(--accent); }
.chronologie li.alerte { color: var(--alerte); }
.chronologie li.alerte .point { background: var(--alerte); }

/* ---------- Boîtes et reçus ---------- */

.trousseau-mini { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--doux); background: var(--surface); border-radius: 11px; padding: 9px 12px; margin-bottom: 18px; }
.trousseau-mini > span:not(.ic) { flex: 1; }
.trousseau-mini strong { color: var(--texte); font-family: var(--mono); font-weight: 600; }
.boite { display: flex; flex-direction: column; gap: 14px; }
.boite-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.boite-tete h2 { overflow-wrap: anywhere; }
.boite-pied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--ligne); padding-top: 12px; }
.depots { display: flex; flex-direction: column; border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.depots .vide { padding: 14px; font-size: 14px; }
.depot + .depot { border-top: 1px solid var(--ligne); }
.depot-ligne { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.depot-ligne:hover { background: var(--surface); }
.depot.nouveau .liste-ic { background: var(--accent-doux); color: var(--accent-texte); }
.depot-chevron { color: var(--tres-doux); transition: transform .2s; }
.depot.deplie .depot-chevron { transform: rotate(90deg); }
.depot-contenu { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.depot-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.empreinte { font-family: var(--mono); }
.empreinte-grande { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .06em; }
.cadenas-note { font-size: 13px; color: var(--doux); text-align: center; }

/* ---------- Comment ça marche ---------- */

.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.etape { display: flex; gap: 14px; align-items: flex-start; }
.etape-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-doux); color: var(--accent-texte); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.etape p { font-size: 14.5px; margin-top: 2px; }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.points .liste-ic { width: 30px; height: 30px; padding: 7px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 1.1.0 : comptes, administration, versions ---------- */



.avatar-rond { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-doux); color: var(--accent-texte); display: inline-grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; }
.avatar-rond.petit { width: 32px; height: 32px; font-size: 14px; }

.onglets { display: flex; gap: 2px; background: var(--surface); border-radius: 12px; padding: 3px; }
.onglets a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; color: var(--doux); font-weight: 550; font-size: 14.5px; }
.onglets a:hover { color: var(--texte); text-decoration: none; }
.onglets a.actif { background: var(--fond); color: var(--texte); box-shadow: 0 0 0 1px var(--ligne-forte); }

.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .tuiles { grid-template-columns: repeat(2, 1fr); } }
.tuile { background: var(--surface); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.tuile strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tuile > span:nth-child(2) { font-size: 14px; font-weight: 550; }

.infos { list-style: none; margin: 0; padding: 0; }
.infos li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.infos li + li { border-top: 1px solid var(--ligne); }

.code-secours {
  font-family: var(--mono); font-size: 19px; font-weight: 600; letter-spacing: .04em; line-height: 1.7;
  text-align: center; background: var(--surface); border-radius: 14px; padding: 16px 12px; word-spacing: 2px;
  overflow-wrap: anywhere; user-select: all; display: flex; flex-direction: column;
}
.code-input { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.case-ligne { display: flex; align-items: center; gap: 10px; font-weight: 550; cursor: pointer; }
.case-ligne input { width: 18px; height: 18px; accent-color: var(--accent); }

.cle-ligne, .compte-ligne { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.compte-ligne { flex-wrap: wrap; }
.compte-ligne .liste-texte { min-width: 160px; }
.compte-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.danger-actif { color: var(--alerte); background: var(--alerte-doux); }
.lien-carte { display: flex; align-items: center; gap: 12px; color: var(--texte); padding: 16px 18px; }
.lien-carte:hover { text-decoration: none; background: var(--surface); }
.ligne-champ { display: flex; gap: 8px; }
.gauche-actions { justify-content: flex-start; align-items: center; }

/* Versions */
.version { padding: 0; overflow: hidden; }
.version summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 18px; }
.version summary::-webkit-details-marker { display: none; }
.version summary:hover { background: var(--surface); }
.version-num { font-family: var(--mono); font-weight: 700; font-size: 14px; background: var(--accent-doux); color: var(--accent-texte); padding: 3px 9px; border-radius: 8px; }
.version-titre { font-weight: 650; flex: 1; min-width: 140px; }
.version-date { font-size: 13px; }
.version-lignes { margin: 0; padding: 0 18px 16px 36px; display: flex; flex-direction: column; gap: 9px; }
.version-lignes li { font-size: 15px; line-height: 1.5; }
.version-lignes li.trouve .version-texte { background: var(--accent-doux); border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pastille-lien {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px; white-space: nowrap;
  border: 1px solid var(--ligne-forte); border-radius: 999px; padding: 1px 8px 1px 10px;
  font-size: 12.5px; font-weight: 600; color: var(--texte);
}
.pastille-lien .ic { width: 12px; height: 12px; }
.pastille-lien:hover { background: var(--accent-doux); border-color: var(--accent); color: var(--accent-texte); text-decoration: none; }

/* Endroit visé par une pastille */
.eclair { animation: eclair 1.6s ease-out; }
@keyframes eclair { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---------- 1.2.0 : mot de passe ---------- */
.pile-s { display: flex; flex-direction: column; gap: 8px; }
.jauge { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--doux); }
.jauge-barres { display: flex; gap: 4px; }
.jauge-barres i { width: 28px; height: 4px; border-radius: 4px; background: var(--surface-2); transition: background .2s; }
.jauge[data-niveau="alerte"] .pleine { background: var(--alerte); }
.jauge[data-niveau="neutre"] .pleine { background: #d9a23b; }
.jauge[data-niveau="ok"] .pleine { background: var(--ok); }
.jauge[data-niveau="alerte"] .jauge-texte { color: var(--alerte); }
.jauge[data-niveau="ok"] .jauge-texte { color: var(--ok); }

/* ---------- 1.3.0 : accueil, en-tête, onglets ---------- */

/* En-tête : logo, navigation (ordinateur), compte */
.tete { flex-wrap: nowrap; padding: 4px 0 20px; }
.nav { display: none; }
.compte-zone { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lien-connexion { display: none; color: var(--doux); font-weight: 550; font-size: 15px; padding: 7px 10px; border-radius: 9px; white-space: nowrap; }
.lien-connexion:hover, .lien-connexion.actif { color: var(--texte); background: var(--surface); text-decoration: none; }
.avatar-lien { display: inline-flex; align-items: center; gap: 8px; color: var(--texte); font-weight: 600; font-size: 15px; padding: 3px 10px 3px 3px; border-radius: 999px; }
.avatar-lien:hover { background: var(--surface); text-decoration: none; }
.avatar-lien.actif .avatar-rond { box-shadow: 0 0 0 2px var(--fond), 0 0 0 4px var(--accent); }
.avatar-nom { display: none; }
@media (min-width: 700px) {
  .nav { display: flex; margin-left: 28px; background: none; padding: 0; gap: 4px; }
  .nav a { color: var(--doux); font-size: 15px; font-weight: 550; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
  .nav a:hover { color: var(--texte); background: var(--surface); }
  .nav a.actif { color: var(--texte); background: var(--surface); box-shadow: none; }
  .nav .pastille { top: 6px; right: 3px; box-shadow: 0 0 0 2px var(--fond); }
  .lien-connexion, .avatar-nom { display: inline; }
}

/* Onglets du bas (téléphone) */
.onglets-bas { display: none; }
@media (max-width: 699px) {
  .onglets-bas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr);
    background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--ligne); padding: 6px 8px max(8px, env(safe-area-inset-bottom));
  }
  .onglets-bas a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px; color: var(--tres-doux); font-size: 11.5px; font-weight: 600; border-radius: 10px; }
  .onglets-bas a:hover { text-decoration: none; }
  .onglets-bas a .ic { width: 23px; height: 23px; }
  .onglets-bas a.actif { color: var(--texte); }
  .onglets-bas a.actif .ic { color: var(--accent); }
  .onglets-bas .pastille { top: 4px; right: calc(50% - 18px); box-shadow: 0 0 0 2px var(--fond); }
  .page { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.avatar-rond.mini { width: 24px; height: 24px; font-size: 12px; }
.vue-client .onglets-bas, .vue-client .compte-zone, .vue-client .nav { display: none; }
.vue-client .page { padding-bottom: max(24px, env(safe-area-inset-bottom)); }

/* Héros de l'accueil */
.heros { display: flex; flex-direction: column; gap: 16px; padding: 18px 0 10px; }
.heros h1 { font-size: clamp(38px, 8.6vw, 60px); line-height: 1.02; letter-spacing: -0.045em; max-width: 13ch; }
.heros-texte { font-size: 18px; color: var(--doux); max-width: 34em; }
.heros-court h1 { font-size: clamp(32px, 6vw, 42px); max-width: none; }
.demo {
  align-self: flex-start; display: flex; flex-direction: column; gap: 6px; margin-top: 6px;
  padding: 12px 16px 13px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--fond); min-width: min(100%, 340px);
}
.demo-lien { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tres-doux); }
.demo-lien .ic { width: 14px; height: 14px; }
.demo-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 28px; }
.demo-mdp { font-family: var(--mono); font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.demo-etat { font-size: 13.5px; font-weight: 600; color: var(--doux); white-space: nowrap; transition: color .3s; }
.demo.ouvert .demo-etat { color: var(--accent-texte); }
.demo.detruit .demo-etat { color: var(--texte); }
.demo.detruit .demo-etat::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 1px; }

/* Raccourcis (connecté) */
.raccourcis { display: flex; flex-wrap: wrap; gap: 8px; }
.raccourci { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--surface); color: var(--texte); font-weight: 600; font-size: 15px; }
.raccourci:hover { background: var(--surface-2); text-decoration: none; }
.raccourci .ic { color: var(--doux); }

/* Formulaire d'envoi */
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carte-tete h2 { font-size: 22px; }
.sans-compte { font-size: 13px; font-weight: 600; color: var(--ok); background: var(--ok-doux); padding: 3px 10px; border-radius: 999px; }
.reglage-ligne { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; border-radius: 12px; background: var(--surface); font-size: 15px; }
.reglage-ligne > .ic { color: var(--doux); }
.reglage-resume { flex: 1; min-width: 0; }
.reglage-resume strong { font-weight: 600; }
.reglages-panneau { display: flex; flex-direction: column; gap: 18px; padding: 4px 0 6px; animation: deplier .25s ease-out; }
@keyframes deplier { from { opacity: 0; transform: translateY(-4px); } }
.mention { font-size: 13.5px; color: var(--tres-doux); text-align: center; margin-top: -8px; }

/* Présentation (déconnecté) */
.pile-xl { display: flex; flex-direction: column; gap: 44px; padding-top: 28px; }
.possibles { display: grid; gap: 14px; }
@media (min-width: 700px) { .possibles { grid-template-columns: 1fr 1fr; } }
.possible { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--surface); }
.possible-compte { background: var(--accent-doux); }
.possible h2 { font-size: 22px; }
.possible .points { margin-top: 6px; gap: 12px; }
.possible .points li { font-size: 15px; line-height: 1.45; }
.point-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--doux); }
.possible-compte .point-ic { color: var(--accent-texte); }
.possible .actions { margin-top: 8px; }
.etapes-accueil { display: flex; flex-direction: column; gap: 18px; }
.etapes-ligne { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 700px) { .etapes-ligne { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.etapes-ligne li { counter-increment: etape; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--ligne-forte); }
.etapes-ligne li::before { content: counter(etape); font-family: var(--titre); font-size: 30px; font-weight: 600; line-height: 1; color: var(--accent); margin-bottom: 6px; }
.etapes-ligne strong { font-size: 16.5px; }
.etapes-ligne .doux { font-size: 15px; }
.lien-suite { font-weight: 600; align-self: flex-start; }

/* Invitations à créer un compte */
.cta-compte { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--accent-doux); }
.cta-compte p { font-size: 14.5px; margin-top: 2px; }
.carte-connexion { background: var(--surface); border: 0; }
.bas-de-carte { text-align: center; color: var(--doux); font-size: 15px; }
.bas-de-carte a { font-weight: 600; }

/* Page Demander */
.intro-actions { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.intro-actions > div { display: flex; flex-direction: column; gap: 10px; }
.titre-section { font-size: 19px; padding-top: 8px; }

.demo-vide { font-family: var(--police); font-size: 16px; font-weight: 500; color: var(--tres-doux); letter-spacing: 0; animation: apparaitre-page .6s ease-out; }
.compte-zone { flex: none; }

/* ---------- 1.4.0 : réception, menu flottant, pastilles, Comment ça marche ---------- */

/* En-tête flottant (ordinateur) */
@media (min-width: 700px) {
  .tete {
    position: sticky; top: 12px; z-index: 30; margin: 0 -12px 22px; padding: 8px 10px 8px 16px;
    background: color-mix(in srgb, var(--fond) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
    border: 1px solid var(--ligne); border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 10px 30px -14px rgba(0,0,0,.16);
  }
}
.vue-client .tete { position: static; background: none; border: 0; box-shadow: none; margin: 0; padding: 4px 0 10px; justify-content: center; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Barre d'onglets flottante (téléphone) */
@media (max-width: 699px) {
  .onglets-bas {
    left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto;
    gap: 4px; padding: 6px; border: 1px solid var(--ligne); border-radius: 24px;
    background: color-mix(in srgb, var(--fond) 80%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 14px 34px -10px rgba(0,0,0,.22);
  }
  .onglets-bas a { padding: 8px 0 6px; border-radius: 18px; color: var(--doux); transition: background .2s, color .2s; }
  .onglets-bas a.actif { background: var(--accent-doux); color: var(--accent-texte); }
  .onglets-bas a.actif .ic { color: var(--accent-texte); }
  .onglets-bas a:active { transform: scale(.96); }
  .onglets-bas .pastille { box-shadow: 0 0 0 2px var(--fond); }
  .page { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Types : des pastilles sur une seule ligne, qui défilent au doigt */
.carte-envoi { --marge: 22px; }
@media (max-width: 480px) { .carte-envoi { --marge: 18px; } }
.types-cadre { position: relative; margin: 0 calc(-1 * var(--marge)); }
.types-cadre::before, .types-cadre::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.types-cadre::before { left: 0; background: linear-gradient(90deg, var(--fond), transparent); }
.types-cadre::after { right: 0; background: linear-gradient(270deg, var(--fond), transparent); }
.types-cadre.debut::before, .types-cadre.fin::after { opacity: 1; }
.types {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 2px var(--marge); scroll-padding: 0 var(--marge); -webkit-overflow-scrolling: touch;
}
.types::-webkit-scrollbar { display: none; }
.type {
  flex: none; flex-direction: row; gap: 7px; padding: 9px 15px 9px 12px; border-radius: 999px;
  border: 1px solid var(--ligne-forte); color: var(--texte); font-size: 14.5px; font-weight: 600;
  white-space: nowrap; scroll-snap-align: center; -webkit-tap-highlight-color: transparent;
}
.type .ic { width: 18px; height: 18px; color: var(--doux); }
.type:hover { border-color: var(--texte); }
.type.actif { background: var(--texte); border-color: var(--texte); color: var(--fond); }
.type.actif .ic { transform: none; color: var(--fond); }
.type:active { transform: scale(.97); }

.champs-duo { display: grid; gap: 12px; }
@media (min-width: 560px) { .champs-duo { grid-template-columns: 1fr 1fr; } }
.facultatif { color: var(--tres-doux); font-weight: 500; font-size: 13px; }
.point-sep { color: var(--doux); font-weight: 700; }
.reglage-ligne { padding: 8px 8px 8px 12px; }
.resultat-recap { font-size: 14px; font-weight: 600; margin-top: 8px; }
.resultat-actions .btn-premier { flex: 1 1 100%; }

/* Démo de l'accueil : un exemple, en trois temps */
.heros-texte-bloc { display: flex; flex-direction: column; gap: 16px; }
.demo {
  align-self: stretch; max-width: 440px; min-width: 0; margin: 8px 0 0; gap: 12px;
  padding: 14px; border: 1px solid var(--ligne); border-radius: 20px; background: var(--surface);
}
.demo-tete { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--doux); font-weight: 550; }
.demo-badge { font-size: 12px; font-weight: 700; color: var(--accent-texte); background: var(--accent-doux); padding: 2px 9px; border-radius: 999px; }
.demo-carte {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px;
  background: var(--fond); border: 1px solid var(--ligne); transition: border-color .3s, box-shadow .3s;
}
.demo-carte.ouvert { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.demo-carte.detruit { border-style: dashed; border-color: var(--ligne-forte); box-shadow: none; }
.demo-ligne { align-items: center; min-height: 30px; }
.demo-lib { font-size: 13px; color: var(--doux); white-space: nowrap; }
.demo-mdp { font-size: 18px; overflow-wrap: anywhere; text-align: right; }
.demo-mdp.masque { letter-spacing: .1em; color: var(--doux); }
.demo-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo-etapes li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.25; font-weight: 600; color: var(--tres-doux); transition: color .3s; }
.demo-n { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--doux); transition: background .3s, color .3s; }
.demo-etapes li.actif { color: var(--texte); }
.demo-etapes li.actif .demo-n { background: var(--accent); color: #fff; }
.demo-etapes li.passe .demo-n { background: var(--accent-doux); color: var(--accent-texte); }

/* Listes en messages */
.liste-ic.rond { border-radius: 50%; }
.mes-envois .liste-ic, .depot.nouveau .liste-ic { background: var(--accent-doux); color: var(--accent-texte); }
.message-bloc { border-radius: 18px 18px 18px 6px; padding: 14px 16px 8px; gap: 6px; }
.message-de { font-size: 12.5px; font-weight: 650; color: var(--accent-texte); }
.message-bloc .btn { margin-left: -8px; }
.bloc-depot { padding-top: 6px; border-top: 1px solid var(--ligne); }

/* ---------- Réception d'un secret : une scène centrée ---------- */

.vue-lire .pied { display: none; }
.vue-lire .contenu { padding-bottom: 8px; }
.lecture { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: calc(100svh - 110px); }
.scene { margin: auto 0; width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 16px 0; position: relative; }
.scene-titre { font-size: clamp(27px, 6.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.scene-texte { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scene-surtitre { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-texte); font-weight: 600; font-size: 14.5px; }
.scene-surtitre .ic { width: 17px; height: 17px; }
.scene-visuel { position: relative; width: 230px; height: 176px; display: grid; place-items: center; }
.scene-visuel .enveloppe { width: 200px; margin: 0; position: relative; z-index: 1; animation: flotter 4s ease-in-out infinite; }
@keyframes flotter { 50% { transform: translateY(-7px); } }
.scene-halo {
  position: absolute; inset: -40px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  opacity: calc(.4 + var(--p, 0) * .6); transform: scale(calc(.75 + var(--p, 0) * .55)); transition: opacity .12s, transform .12s;
}
.scene.tension .scene-visuel .enveloppe { animation: trembler .09s linear infinite; }
@keyframes trembler {
  25% { transform: translate(calc(var(--p, 0) * 2.5px), calc(var(--p, 0) * -2px)) rotate(calc(var(--p, 0) * 2deg)); }
  75% { transform: translate(calc(var(--p, 0) * -2.5px), calc(var(--p, 0) * 1.5px)) rotate(calc(var(--p, 0) * -2deg)); }
}
.scene.ouverture .scene-visuel .enveloppe { animation: none; transform: scale(1.06); transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.scene.ouverture .scene-halo { animation: flash .9s ease-out forwards; }
@keyframes flash { 30% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.9); } }
.scene.ouverture > :not(.scene-visuel) { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.scene.secoue { animation: secouer .45s; }

.puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.puce { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--doux); font-size: 13.5px; font-weight: 550; }
.puce .ic { width: 15px; height: 15px; }
.puce-valeur { font-variant-numeric: tabular-nums; color: var(--texte); font-weight: 600; }
.puce.presse { background: var(--alerte-doux); color: var(--alerte); }
.puce.presse .puce-valeur { color: inherit; }
.puce-forte { background: var(--accent-doux); color: var(--accent-texte); }
.scene-mdp { text-align: left; }
.scene-action { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.scene .tenir { border-radius: 16px; padding: 17px 18px; font-size: 16.5px; box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.scene-aide { font-size: 13.5px; color: var(--doux); text-align: center; text-wrap: balance; }

/* La révélation */
.scene.revele { animation: reveler .75s cubic-bezier(.2,.8,.2,1) both; }
@keyframes reveler { from { opacity: 0; transform: translateY(18px) scale(.95); filter: blur(10px); } }
.papier-cadre { position: relative; width: 100%; }
.papier {
  position: relative; width: 100%; display: flex; flex-direction: column; gap: 18px; text-align: center;
  background: var(--fond); border: 1px solid var(--ligne); border-radius: 22px; padding: 28px 22px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 28px 60px -28px color-mix(in srgb, var(--accent) 45%, rgba(0,0,0,.3));
}
.papier-coin { position: absolute; top: -16px; right: -8px; z-index: 2; }
.papier-coin .anneau { background: var(--fond); border-radius: 50%; box-shadow: 0 4px 14px -4px rgba(0,0,0,.2); }
.papier-lib { font-size: 12.5px; font-weight: 650; color: var(--tres-doux); }
.papier-mdp { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mdp-grand { font-family: var(--mono); font-size: clamp(22px, 6.4vw, 30px); font-weight: 600; letter-spacing: .02em; line-height: 1.3; min-height: 1.3em; overflow-wrap: anywhere; user-select: all; }
.mdp-grand.masque { letter-spacing: .14em; color: var(--doux); user-select: none; }
.papier-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.papier-lignes { border-top: 1px solid var(--ligne); text-align: left; }
.papier-lignes .ligne { padding: 10px 0; }
.papier-note { border-top: 1px solid var(--ligne); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.papier-lignes > .papier-note:first-child { border-top: 0; }
.message-grand { overflow-wrap: anywhere; text-wrap: pretty; }
.message-grand.court { font-family: var(--titre); font-size: clamp(26px, 7vw, 36px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.message-grand.moyen { font-size: 20px; line-height: 1.5; }
.message-grand.long { font-size: 17px; line-height: 1.6; text-align: left; }
.brouille { color: var(--accent); opacity: .7; }
.pose { animation: poser .35s ease-out; }
@keyframes poser { from { color: var(--accent); } }
.papier-fichier { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.papier-fichier .piece-ic { width: 54px; height: 54px; padding: 13px; border-radius: 16px; margin-bottom: 4px; }
.papier-fichier strong { overflow-wrap: anywhere; }
.papier-fichier .btn { margin-top: 8px; }
.papier-photo { padding: 10px; }
.papier-agent { text-align: left; }
.poussiere.papier { border-color: transparent; background: transparent; box-shadow: none; transition: border-color .8s, background .8s, box-shadow .8s; }
.scene-pied { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.eclat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; pointer-events: none; }
.etincelle { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: 0; animation: etinceler .95s cubic-bezier(.15,.7,.3,1) var(--d, 0s) forwards; }
.etincelle.ronde { border-radius: 50%; background: #f5b83d; }
@keyframes etinceler { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3) rotate(140deg); } }

.invitation-bas { margin-top: 28px; padding-bottom: 4px; font-size: 14px; color: var(--tres-doux); text-align: center; }
.invitation-bas a { color: var(--doux); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ligne-forte); }
.invitation-bas a:hover { color: var(--texte); }
.invitation-carte { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 20px; border-radius: 18px; background: var(--surface); text-align: center; }
.invitation-carte strong { font-family: var(--titre); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.invitation-carte .btn, .invitation-carte .actions { margin-top: 8px; }

/* ---------- Comment ça marche ---------- */

.intro-large { gap: 14px; padding-top: 18px; }
.intro-large .scene-surtitre { align-self: flex-start; }
.intro-large h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.04; letter-spacing: -0.04em; max-width: 17ch; text-wrap: balance; }
.bloc-page { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; }
.bloc-page h2 { font-size: 23px; }
.texte-page { font-size: 16px; max-width: 38em; }

.schema { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--surface); }
.schema-petit { padding: 16px; }
.schema-ligne { display: flex; align-items: stretch; }
.schema-noeud { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 10px 14px; text-align: center; background: var(--fond); border: 1px solid var(--ligne); border-radius: 16px; }
.schema-noeud strong { font-size: 15px; }
.schema-noeud .doux { font-size: 13px; line-height: 1.35; }
.schema-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-doux); color: var(--accent-texte); margin-bottom: 6px; }
.schema-ic .ic { width: 20px; height: 20px; }
.schema-serveur .schema-ic { background: var(--surface-2); color: var(--doux); }
.schema-fleche { flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 0 6px; }
.schema-trait { position: relative; width: 100%; height: 2px; border-radius: 2px; background: var(--ligne-forte); }
.schema-trait i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: voyager 2.6s ease-in-out infinite; }
@keyframes voyager { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.schema-etiquette { font-size: 11.5px; line-height: 1.2; font-weight: 600; color: var(--tres-doux); text-align: center; }
.schema-cle { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: var(--fond); font-size: 14.5px; text-align: left; }
.schema-cle > .ic { color: var(--accent-texte); margin-top: 2px; }
@media (max-width: 599px) {
  .schema { padding: 14px; }
  .schema-ligne { flex-direction: column; }
  .schema-noeud { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 0; justify-items: start; text-align: left; padding: 12px 14px; }
  .schema-ic { grid-row: span 2; margin: 0; }
  .schema-fleche { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 6px 0 6px 34px; }
  .schema-trait { width: 2px; height: 28px; }
  .schema-trait i { left: -3px; top: 0; animation-name: voyager-v; }
  @keyframes voyager-v { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
}

@media (min-width: 700px) { .etapes-ligne.etapes-4 { grid-template-columns: repeat(2, 1fr); } }
.deux-colonnes { display: grid; gap: 12px; }
@media (min-width: 600px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.colonne { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: var(--ok-doux); }
.colonne h3 { font-size: 16px; }
.colonne .point-ic { color: var(--ok); }
.colonne-jamais { background: var(--surface); }
.colonne-jamais .point-ic { color: var(--alerte); }
.encarts { display: flex; flex-direction: column; gap: 8px; }
.questions { border-top: 1px solid var(--ligne); }
.question { border-bottom: 1px solid var(--ligne); }
.question summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; cursor: pointer; font-weight: 600; font-size: 16px; }
.question summary::-webkit-details-marker { display: none; }
.question summary:hover { color: var(--accent-texte); }
.question-ic { color: var(--doux); transition: transform .25s; }
.question[open] .question-ic { transform: rotate(45deg); }
.question-texte { display: flex; flex-direction: column; gap: 8px; padding: 0 2px 18px; color: var(--doux); font-size: 15.5px; max-width: 40em; animation: deplier .25s ease-out; }
.invitation-large { margin-top: 18px; padding: 30px 20px; }
@media (min-width: 700px) {
  .page { max-width: 760px; }
  .tete { min-width: 0; }
  .nav { margin-left: 14px; gap: 2px; min-width: 0; }
  .nav a { padding: 6px 10px; font-size: 14.5px; }
  .lien-connexion { padding: 6px 9px; font-size: 14.5px; }
  .compte-zone { gap: 4px; }
  .type { padding: 8px 13px 8px 11px; font-size: 14px; gap: 6px; }
}

/* En-tête : Envoyer, Demander, et deux icônes (aide, compte) */
.icone-tete { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--doux); }
.icone-tete .ic { width: 21px; height: 21px; }
.icone-tete:hover, .icone-tete.actif { background: var(--surface); color: var(--texte); text-decoration: none; }
.avatar-lien { padding: 3px; }
.avatar-nom, .bouton-inscription, .lien-connexion { display: none !important; }
/* Sur téléphone, le compte est déjà dans la barre du bas */
@media (max-width: 699px) { .icone-compte { display: none; } }
.cta-discret { font-size: 14px; color: var(--doux); text-align: center; text-wrap: balance; }
.cta-discret strong { color: var(--texte); font-weight: 600; }
.cta-discret a { font-weight: 600; white-space: nowrap; }
.input-code .input { font-family: var(--mono); letter-spacing: .08em; }

/* Accueil centré, et l'exemple en mini écran de navigateur */
.heros:not(.heros-court) { align-items: center; text-align: center; }
.heros:not(.heros-court) .heros-texte-bloc { align-items: center; }
.heros:not(.heros-court) h1 { max-width: 14ch; text-wrap: balance; }
.heros:not(.heros-court) .heros-texte { max-width: 32em; text-wrap: balance; }
.demo { align-self: center; width: 100%; max-width: 420px; margin: 10px auto 0; }
.demo-tete { justify-content: center; }
.demo-ecran { border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; background: var(--fond); box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); }
.demo-barre { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--ligne); }
.demo-barre i { width: 8px; height: 8px; border-radius: 50%; background: var(--ligne-forte); flex: none; }
.demo-url { flex: 1; min-width: 0; margin-left: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--fond); font-size: 12px; color: var(--tres-doux); white-space: nowrap; overflow: hidden; }
.demo-url .ic { width: 12px; height: 12px; }
.demo-carte, .demo-carte.ouvert, .demo-carte.detruit { border: 0; box-shadow: none; border-radius: 0; background: none; }
.demo-carte { align-items: center; gap: 8px; padding: 20px 14px 22px; text-align: center; }
.demo-titre { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-texte); }
.demo-titre .ic { width: 15px; height: 15px; }
.demo-mdp { font-size: 22px; min-height: 32px; text-align: center; }
.demo-carte.detruit .demo-titre { color: var(--tres-doux); }
.demo-etapes li { justify-content: center; }

/* ---------- 1.4.1 : lien de partage recopiable, installation sur iPhone ---------- */

.lien-apercu { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 14px; border-radius: 12px; background: var(--surface); color: var(--doux); font-size: 14.5px; min-width: 0; }
.lien-adresse { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lien-apercu .ic { width: 15px; height: 15px; }
.lien-cle { color: var(--tres-doux); letter-spacing: .06em; flex: none; }
.bloc-lien { display: flex; flex-direction: column; gap: 10px; }
.bloc-lien-titre { font-size: 17px; }
.bloc-lien-actions .bouton-copie { flex: 1 1 100%; }
.compteur-copie { font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.2); margin-left: 2px; }
.bloc-lien-aide { font-size: 13.5px; color: var(--doux); text-align: center; text-wrap: balance; }
.lien-efface { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); text-align: left; }
.lien-efface > .ic { color: var(--doux); margin-top: 2px; }
.lien-efface p { font-size: 14px; margin-top: 2px; }
.suivi-lien { padding-top: 16px; border-top: 1px solid var(--ligne); }
.pastille-copie { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent-texte); background: var(--accent-doux); white-space: nowrap; }
.pastille-copie .ic { width: 12px; height: 12px; }

.install-tete { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.install-logo .logo-marque { width: 52px; height: 52px; border-radius: 14px; display: block; }
.install-logo .logo-marque::before { top: 12px; width: 15px; height: 15px; margin-left: -7.5px; }
.install-logo .logo-marque::after { top: 22px; width: 11px; height: 17px; margin-left: -5.5px; }
.install-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.install-etapes li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.install-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--accent-doux); color: var(--accent-texte); margin-top: 1px; }
.install-ic { display: inline-flex; vertical-align: -3px; color: var(--info); }
.install-ic .ic { width: 17px; height: 17px; }
.install-fait { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--ok-doux); color: var(--ok); font-weight: 600; font-size: 15px; }
.install-notif { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.install-notif .btn { margin-top: 4px; }
.install-note { font-size: 13.5px; color: var(--doux); text-align: left; }
.install-resultat { font-size: 14px; font-weight: 550; }
.install-resultat.ok { color: var(--ok); }
.install-resultat.alerte { color: var(--alerte); }
.modale { max-height: calc(100svh - 32px); overflow-y: auto; }

/* Contenu pré-rendu par le serveur pour les robots qui n'exécutent pas JavaScript (référencement).
   L'app le remplace dès qu'elle démarre ; il n'apparaît (en fondu) que si elle tarde ou est bloquée. */
.prerendu { animation: prerendu-apparait .3s ease 1.2s both; }
.prerendu .points li { display: list-item; list-style: disc inside; }
@keyframes prerendu-apparait { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 1.6.0 : compteur et phrase qui tourne sur l'accueil ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic-bas { transform: rotate(90deg); }
.ic-haut { transform: rotate(-90deg); }

.relance {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: 26px 20px 24px; border-radius: 20px; background: var(--surface); margin-top: 12px;
}
.relance[hidden] { display: none; }

/* Le compteur : une pastille, un point qui respire, le nombre qui défile */
.compteur {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  margin: 0; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--fond); border: 1px solid var(--ligne);
  font-size: 14px; color: var(--doux); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s;
}
.compteur.pret { opacity: 1; transform: none; }
.compteur[hidden] { display: none; }
.compteur-point { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; position: relative; }
.compteur-point::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--ok); opacity: .35; animation: respirer 2.4s ease-out infinite; }
@keyframes respirer { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.compteur-texte { color: var(--texte); font-weight: 550; }
.compteur-n { font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; }
.compteur-n.tic { animation: tic .5s cubic-bezier(.3,1.6,.5,1); }
.compteur-chut { color: var(--tres-doux); }

/* La phrase : deux lignes fixes, les mots en surbrillance tournent comme une machine à sous */
.relance-phrase {
  margin: 0; position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--titre); font-weight: 650; font-size: clamp(22px, 6.4vw, 42px); line-height: 1.2; letter-spacing: -0.035em; color: var(--texte);
}
.relance-ligne { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; white-space: nowrap; max-width: 100%; }
.fente {
  box-sizing: content-box; display: inline-block; position: relative; overflow: hidden; vertical-align: bottom;
  height: 1.2em; padding: 0 .2em; margin: 0 .04em; border-radius: .26em;
  background: var(--accent-doux); color: var(--accent-texte);
  transition: width .42s cubic-bezier(.3,1.25,.5,1);
}
.fente-qui { background: transparent; color: var(--texte); box-shadow: inset 0 -.09em 0 var(--accent); border-radius: 0; padding: 0 .04em; }
.fente-mot { position: absolute; left: 0; right: 0; top: 0; text-align: center; white-space: nowrap; }
.fente-mot.entre { animation: fente-entre .46s cubic-bezier(.3,1.35,.5,1) both; }
.fente-mot.sort { animation: fente-sort .34s cubic-bezier(.5,0,.8,.4) both; }
@keyframes fente-entre { from { transform: translateY(105%); filter: blur(3px); opacity: .3; } to { transform: none; filter: none; opacity: 1; } }
@keyframes fente-sort { to { transform: translateY(-105%); filter: blur(3px); opacity: 0; } }
.fente-mesure { position: absolute; visibility: hidden; white-space: nowrap; left: 0; top: 0; pointer-events: none; }

.relance-actions { display: flex; align-items: center; gap: 8px; }
.btn.relance-go { position: relative; overflow: hidden; padding-left: 22px; padding-right: 20px; border-radius: 999px; }
.relance-go::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  animation: reflet 4.5s ease-in-out 1.2s infinite;
}
@keyframes reflet { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.relance-go .ic { transition: transform .2s; }
.relance-go:hover .ic-haut { transform: rotate(-90deg) translateX(3px); }
.relance-de { width: 48px; height: 48px; border-radius: 50%; background: var(--fond); border: 1px solid var(--ligne); }
.relance-de:hover { background: var(--fond); border-color: var(--ligne-forte); }

.resultat-numero { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 550; color: var(--accent-texte); }
.resultat-numero .ic { width: 16px; height: 16px; }

.tuile-large { grid-column: 1 / -1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; background: var(--accent-doux); }
.tuile-large strong { color: var(--accent-texte); }

@media (max-width: 480px) {
  .relance { padding: 22px 14px 20px; gap: 16px; }
  .compteur { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .relance-go::after, .compteur-point::after { display: none; }
}

/* ---------- 1.7.0 : Conseils ---------- */

.conseil { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--tres-doux); }
.fil a { color: var(--doux); }
.fil a:hover { color: var(--texte); }
.conseil-tete { display: flex; flex-direction: column; gap: 14px; }
.conseil-tete h1 { font-size: clamp(30px, 6.4vw, 44px); line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; max-width: 20ch; }
.conseil-tete .chapo { font-size: 18px; line-height: 1.55; max-width: 36em; }
.conseil-meta { font-size: 13.5px; color: var(--tres-doux); }
.conseil-meta a { color: var(--doux); }

.conseil-corps { display: flex; flex-direction: column; gap: 14px; max-width: 40em; font-size: 16.5px; line-height: 1.68; color: var(--texte); }
.conseil-corps h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; margin-top: 20px; }
.conseil-corps h3 { font-size: 18px; line-height: 1.3; margin-top: 10px; }
.conseil-corps p { margin: 0; }
.conseil-corps a { color: var(--accent-texte); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.conseil-corps a:hover { text-decoration-color: var(--accent); }
.conseil-corps ul, .conseil-corps ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.conseil-corps strong { font-weight: 650; }

.conseil-etapes { list-style: none; padding: 0 !important; counter-reset: etape; gap: 12px !important; }
.conseil-etapes li { counter-increment: etape; position: relative; padding-left: 40px; }
.conseil-etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: .1em; width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent-doux); color: var(--accent-texte); font-weight: 700; font-size: 14px; display: grid; place-items: center; line-height: 1;
}

.conseil-note { background: var(--surface); border-radius: 14px; padding: 16px 18px; font-size: 15.5px; line-height: 1.6; }
.conseil-retenir { background: var(--accent-doux); border-radius: 18px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 40em; }
.conseil-retenir h2 { font-size: 19px; margin: 0; }
.conseil-retenir ul, .conseil-retenir ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; line-height: 1.55; }
.conseil-regles { padding-left: 0 !important; list-style: none; counter-reset: regle; gap: 12px !important; }
.conseil-regles li { counter-increment: regle; position: relative; padding-left: 36px; }
.conseil-regles li::before { content: counter(regle); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--fond); color: var(--accent-texte); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.conseil-regles .doux { display: block; }

.conseil-modele { margin: 0; padding: 18px 20px; border: 1px dashed var(--ligne-forte); border-radius: 14px; background: var(--fond); display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; color: var(--texte); }
.conseil-reglage { font-size: 13.5px; color: var(--doux); margin-top: -6px !important; }
.conseil-reglage a { font-weight: 600; }

.conseil-essai {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 22px; border: 1px solid var(--ligne); border-radius: 18px; background: var(--fond);
}
.conseil-essai > div { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; }
.conseil-essai strong { font-size: 17px; }
.conseil-essai .doux { font-size: 14.5px; }

.conseil-suite { display: flex; flex-direction: column; gap: 10px; }
.conseil-suite h2, .conseil-sources h2 { font-size: 19px; }
.conseil-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.conseil-liste li { border-bottom: 1px solid var(--ligne); }
.conseil-lien { display: flex; align-items: center; gap: 16px; padding: 16px 4px; color: var(--texte); }
.conseil-lien:hover { text-decoration: none; }
.conseil-lien > span:first-child { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.conseil-lien strong { font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.conseil-lien:hover strong { color: var(--accent-texte); }
.conseil-lien .doux { font-size: 14.5px; line-height: 1.5; }
.conseil-duree { font-size: 12.5px; color: var(--tres-doux); }
.conseil-fleche { color: var(--tres-doux); font-size: 18px; transition: transform .2s, color .2s; }
.conseil-lien:hover .conseil-fleche { transform: translateX(3px); color: var(--accent-texte); }

.conseil-sources { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--doux); }
.conseil-sources ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.conseil-sources a { color: var(--doux); text-decoration: underline; text-underline-offset: 3px; }

/* Accueil et Comment ça marche : trois liens, pas plus */
.conseils-accueil { display: flex; flex-direction: column; gap: 12px; }
.conseils-accueil-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.conseils-accueil-tete .lien-suite { align-self: auto; font-size: 14.5px; }
.conseils-accueil-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.conseils-accueil-liste li { border-bottom: 1px solid var(--ligne); }
.conseils-accueil-liste a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; color: var(--texte); font-weight: 550; font-size: 15.5px; }
.conseils-accueil-liste a:hover { text-decoration: none; color: var(--accent-texte); }
.conseils-accueil-liste .ic { color: var(--tres-doux); flex: none; width: 17px; height: 17px; transition: transform .2s; }
.conseils-accueil-liste a:hover .ic { transform: translateX(3px); color: var(--accent-texte); }

@media (max-width: 480px) {
  .conseil { gap: 24px; }
  .conseil-corps { font-size: 16px; }
  .conseil-essai { padding: 18px; }
  .conseil-essai .btn { width: 100%; justify-content: center; }
}

/* 1.7.1 : quand on remonte au formulaire, il ne passe pas sous l'en-tête flottant */
.carte-envoi { scroll-margin-top: 16px; }
@media (min-width: 700px) { .carte-envoi { scroll-margin-top: 96px; } }

/* ---------- 1.7.2 : pied de page en petit menu ---------- */

.pied-menu {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 999px;
}
.pied-lien {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  color: var(--doux) !important; font-size: 14px; font-weight: 550; white-space: nowrap;
  border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s;
}
.pied-lien .ic { width: 16px; height: 16px; color: var(--tres-doux); transition: color .18s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.pied-lien:hover { text-decoration: none; background: var(--fond); color: var(--texte) !important; border-color: var(--ligne); }
.pied-lien:hover .ic { color: var(--accent-texte); transform: translateY(-1px) rotate(-6deg); }
.pied-lien.actif { background: var(--fond); color: var(--texte) !important; border-color: var(--ligne); }
.pied-lien.actif .ic { color: var(--accent-texte); }

.pied-version { font-variant-numeric: tabular-nums; font-size: 13px; }
.pied-point { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; position: relative; }
.pied-version.nouveau .pied-point { background: var(--accent); }
.pied-version.nouveau .pied-point::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--accent); opacity: .35; animation: respirer 2.4s ease-out infinite; }

.pied-texte { margin: 0; max-width: 30em; text-wrap: balance; }
.pied-texte .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.pied-signature { margin: 0; font-size: 12.5px; }
.pied-signature a { font-weight: 600; }

/* Mobile et tablette : grille, le lien App iPhone sur toute la largeur, la version en dessous */
@media (max-width: 820px) {
  .pied-menu { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; width: 100%; max-width: 400px; }
  .pied-lien { justify-content: center; border-radius: 14px; padding: 10px 10px; }
  .pied-app, .pied-version { grid-column: 1 / -1; }
  .pied-app span:last-child { white-space: normal; }
  .pied-version { padding: 6px 10px; }
}
