@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --fond: #fbf5ea;
  --surface: #fffdf8;
  --encre: #2a2438;
  --doux: #675f72;
  --trait: #e7dcc9;
  --accent: #4a2c82;
  --sur-accent: #ffffff;
  --accent-pale: #ece5f8;
  --mdp: #9a6200;
  --mdp-pale: #fde9bf;
  --photos: #bf3f1c;
  --photos-pale: #fddcd0;
  --banque: #0b6b5c;
  --banque-pale: #cdeee6;
  --danger: #b3261e;
  --danger-pale: #fbe4e1;
  --attention: #8a5a00;
  --attention-pale: #fdf0d2;
  --astuce: #1f6b45;
  --astuce-pale: #e0f2e6;
  --ombre: 0 1px 2px rgba(58, 42, 20, .06), 0 8px 24px rgba(58, 42, 20, .08);
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #1d1a26;
    --surface: #292533;
    --encre: #f5f0e6;
    --doux: #bdb6c8;
    --trait: #423c50;
    --accent: #c9b8ff;
    --sur-accent: #1d1a26;
    --accent-pale: #362e4f;
    --mdp: #f6c35f;
    --mdp-pale: #43361a;
    --photos: #ff9a7d;
    --photos-pale: #4a2a22;
    --banque: #6fd9c3;
    --banque-pale: #1b403a;
    --danger: #ff9c94;
    --danger-pale: #4a2422;
    --attention: #f0c060;
    --attention-pale: #41341a;
    --astuce: #8ad6a8;
    --astuce-pale: #203a2b;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 19px/1.5 var(--texte);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--titre); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.noscript { padding: 32px 0; }

.evitement { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 16px; z-index: 20; border-radius: 8px; }
.evitement:focus { left: 8px; }

/* Barre du haut */
.barre {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
  padding-top: env(safe-area-inset-top);
}
.barre-dedans {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  text-decoration: none;
  font: 650 1.15rem/1.1 var(--titre);
  flex: none;
}
.marque img { border-radius: 11px; display: block; }
.recherche { position: relative; flex: 1; min-width: 0; }
.recherche svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--doux);
  stroke-width: 2.4;
  stroke-linecap: round;
  pointer-events: none;
}
#recherche {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 46px;
  font: inherit;
  font-size: 18px;
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--trait);
  border-radius: 25px;
  -webkit-appearance: none;
  appearance: none;
}
#recherche::placeholder { color: var(--doux); opacity: 1; }
#recherche:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-pale); }
@media (max-width: 620px) {
  .marque span { display: none; }
  .barre-dedans { gap: 10px; }
}

/* Accueil */
.heros { padding: 32px 0 24px; }
.heros h1 { font-size: clamp(2.1rem, 6.5vw, 3.2rem); max-width: 16ch; }
.heros p { color: var(--doux); margin: 10px 0 0; font-size: 1.1rem; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pastille {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-pale);
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  text-decoration: none;
}
.pastille:hover { filter: brightness(.96); }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .themes { grid-template-columns: 1fr; } }
.tuile {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 20px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--encre);
  box-shadow: var(--ombre);
  overflow: hidden;
  transition: transform .18s ease;
}
.tuile:hover { transform: translateY(-3px); }
.tuile svg { width: 120px; height: 120px; margin-bottom: auto; align-self: flex-end; }
.tuile h2 { font-size: 1.5rem; margin-top: 10px; }
.tuile p { margin: 4px 0 0; color: var(--doux); font-size: 1rem; }
@media (max-width: 760px) {
  .tuile { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
  .tuile svg { width: 76px; height: 76px; margin: 0; flex: none; order: -1; }
  .tuile h2 { margin: 0; font-size: 1.3rem; }
}
.theme-mdp { background: var(--mdp-pale); }
.theme-photos { background: var(--photos-pale); }
.theme-banque { background: var(--banque-pale); }

.urgence {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--danger-pale);
  color: var(--encre);
  border-radius: 18px;
  text-decoration: none;
}
.urgence svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--danger); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.urgence strong { display: block; font: 650 1.15rem/1.2 var(--titre); }
.urgence span { color: var(--doux); font-size: 1rem; }

.bloc-titre { font-size: 1.5rem; margin: 36px 0 14px; }
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .cartes { grid-template-columns: 1fr; } }
.carte {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: 16px;
  text-decoration: none;
  color: var(--encre);
}
.carte:hover { border-color: var(--accent); }
.carte-icone { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.carte-icone svg { width: 26px; height: 26px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carte-icone.theme-mdp svg { stroke: var(--mdp); }
.carte-icone.theme-photos svg { stroke: var(--photos); }
.carte-icone.theme-banque svg { stroke: var(--banque); }
.carte strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.carte small { display: block; font-size: .95rem; line-height: 1.35; color: var(--doux); margin-top: 2px; }
.carte-fleche { margin-left: auto; flex: none; color: var(--doux); font-size: 1.4rem; line-height: 1; }

/* Pages thème et recherche */
.retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.entete-page { padding: 8px 0 20px; }
.entete-page h1 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); }
.entete-page p { margin: 8px 0 0; color: var(--doux); }
.vide { padding: 24px; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; }
.vide p { margin: 0 0 12px; }

/* Fiche */
.onglets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--accent-pale);
  border-radius: 16px;
  max-width: 100%;
}
.onglet {
  min-height: 44px;
  padding: 6px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--encre);
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.onglet[aria-selected="true"] { background: var(--surface); font-weight: 700; color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--ombre);
}
.guide-texte { min-width: 0; }
.compteur { font-weight: 700; color: var(--accent); font-size: 1rem; }
.points { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.point { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--accent-pale); color: var(--accent); font: 700 .9rem/34px var(--texte); cursor: pointer; }
.point[aria-current="step"] { background: var(--accent); color: var(--sur-accent); }
.consigne { font-size: 1.3rem; line-height: 1.4; margin: 0; }
.ui {
  font-weight: 700;
  background: var(--accent-pale);
  color: var(--encre);
  border-radius: 6px;
  padding: 0 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.actions { display: flex; gap: 10px; margin-top: 24px; }
.bouton {
  flex: 1;
  min-height: 54px;
  padding: 8px 18px;
  font: 700 1.05rem/1.2 var(--texte);
  border-radius: 16px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--sur-accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bouton.secondaire { background: none; color: var(--accent); }
.bouton[disabled] { opacity: .35; cursor: default; }
.bas-fiche { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 20px; font-size: 1rem; }
.lien-bouton { font: inherit; color: var(--accent); background: none; border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; cursor: pointer; }

.note { margin: 16px 0; padding: 12px 16px; border-radius: 14px; font-size: 1.02rem; }
.note strong { display: block; margin-bottom: 2px; }
.note.danger { background: var(--danger-pale); }
.note.danger strong { color: var(--danger); }
.note.attention { background: var(--attention-pale); }
.note.attention strong { color: var(--attention); }
.note.astuce { background: var(--astuce-pale); }
.note.astuce strong { color: var(--astuce); }

.illu-zone { position: relative; animation: arrivee .28s ease; }
@keyframes arrivee { from { opacity: 0; transform: translateY(8px); } }
.illu-media { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 16px; }

@media (max-width: 820px) {
  .guide { grid-template-columns: 1fr; gap: 16px; padding: 16px; border-radius: 18px; }
  .actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--trait);
  }
  body.en-fiche { padding-bottom: 86px; }
  .consigne { font-size: 1.2rem; }
}

.impression { display: none; }
.pied-page { color: var(--doux); font-size: .9rem; border-top: 1px solid var(--trait); padding: 16px; text-align: center; }
.pied-page p { max-width: 720px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Écrans schématiques : ils restent clairs dans les deux thèmes, comme une image. */
.illu {
  --z: 1;
  position: relative;
  height: calc(var(--h) * var(--z) * 1px);
}
.illu-iphone { --w: 270; --h: 540; }
.illu-mac { --w: 480; --h: 340; --z: .875; }
@media (max-width: 820px) {
  .illu-iphone { --z: .76; }
  .illu-mac { --z: .72; }
}
@media (max-width: 374px) {
  .illu-iphone { --z: .68; }
  .illu-mac { --z: .56; }
}
.appareil {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  margin-left: calc(var(--w) * -.5px);
  transform: scale(var(--z));
  transform-origin: top center;
  font: 400 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1c1c1e;
  letter-spacing: 0;
  --ec-fond: #f2f2f7;
  --ec-blanc: #ffffff;
  --ec-doux: #6c6c72;
  --ec-trait: #d9d9de;
  --ec-bleu: #0a66d6;
  --ec-cible: #ff3d1f;
  --ec-vert: #2fb457;
}
.appareil-iphone {
  background: #1b1b20;
  border-radius: 40px;
  padding: 9px;
  box-shadow: 0 14px 34px rgba(30, 20, 50, .3);
}
.ec-ecran {
  position: relative;
  height: 100%;
  background: var(--ec-fond);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ec-statut { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 8px 22px 0; font-weight: 600; font-size: 12px; flex: none; }
.ec-ilot { position: absolute; top: 9px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: #1b1b20; border-radius: 12px; }
.ec-signal { display: inline-block; width: 22px; height: 10px; border: 1.5px solid #1c1c1e; border-radius: 3px; position: relative; }
.ec-signal::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #1c1c1e; border-radius: 1px; }
.ec-nav { display: flex; align-items: center; min-height: 24px; padding: 2px 12px; color: var(--ec-bleu); font-size: 14px; flex: none; }
.ec-nav .ec-action { margin-left: auto; }
.ec-titre { font-size: 25px; font-weight: 700; padding: 0 16px 8px; line-height: 1.15; flex: none; }
.ec-corps { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 2px 0 8px; }
.ec-barre-home { position: absolute; bottom: 6px; left: 50%; width: 92px; height: 4px; margin-left: -46px; border-radius: 2px; background: #1c1c1e; }

.ec-liste { margin: 0 12px; }
.ec-liste-titre { font-size: 11px; color: var(--ec-doux); text-transform: uppercase; padding: 0 12px 3px; }
.ec-lignes { background: var(--ec-blanc); border-radius: 12px; }
.ec-ligne { position: relative; display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 5px 11px; border-bottom: 1px solid var(--ec-trait); border-radius: 12px; }
.ec-ligne:last-child { border-bottom: 0; }
.ec-ligne-texte { min-width: 0; flex: 1; line-height: 1.2; }
.ec-ligne-texte small { display: block; color: var(--ec-doux); font-size: 11px; }
.ec-ligne-valeur { color: var(--ec-doux); font-size: 13px; white-space: nowrap; }
.ec-chevron { color: #b5b5ba; font-size: 16px; line-height: 1; }
.ec-ico { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.ec-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ec-ico.rond { border-radius: 50%; }
.c-jaune { background: #f0a70a; } .c-rouge { background: #ea4335; } .c-bleu { background: #1e7ae6; }
.c-gris { background: #7d7d85; } .c-vert { background: #2fb457; } .c-sarcelle { background: #0e7c6b; }
.c-violet { background: #7a55d6; } .c-rose { background: #e8527a; } .c-orange { background: #f07a1a; }

.ec-bascule { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: #c9c9ce; }
.ec-bascule::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ec-bascule.on, .ec-bascule.anime { background: var(--ec-vert); }
.ec-bascule.on::after, .ec-bascule.anime::after { left: 18px; }
.ec-bascule.anime { animation: bascule-fond 3s infinite; }
.ec-bascule.anime::after { animation: bascule-rond 3s infinite; }
@keyframes bascule-fond { 0%, 35% { background: #c9c9ce; } 50%, 100% { background: var(--ec-vert); } }
@keyframes bascule-rond { 0%, 35% { left: 2px; } 50%, 100% { left: 18px; } }

.ec-recherche { margin: 0 12px; height: 32px; border-radius: 10px; background: #e3e3e8; color: var(--ec-doux); display: flex; align-items: center; padding: 0 10px; position: relative; flex: none; }
.ec-bouton { position: relative; margin: 0 12px; min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 10px; border-radius: 11px; background: var(--ec-bleu); color: #fff; font-weight: 600; flex: none; }
.ec-bouton.lien { background: var(--ec-blanc); color: var(--ec-bleu); }
.ec-bouton.danger { background: var(--ec-blanc); color: #d4281c; }
.ec-bouton.rouge { background: #e5352a; color: #fff; }
.ec-texte { margin: 0; padding: 0 16px; color: #3a3a3f; }
.ec-texte.petit { font-size: 12px; color: var(--ec-doux); }
.ec-texte.centre { text-align: center; }
.ec-champ { position: relative; margin: 0 12px; padding: 5px 11px; background: var(--ec-blanc); border-radius: 11px; min-height: 42px; flex: none; }
.ec-champ small { display: block; font-size: 11px; color: var(--ec-doux); }

.ec-accueil { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; padding: 12px; }
.ec-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #fff; text-align: center; line-height: 1.1; border-radius: 12px; }
.ec-app .ec-ico { width: 46px; height: 46px; border-radius: 12px; }
.ec-app .ec-ico svg { width: 28px; height: 28px; }
.ec-ecran.papier-peint { background: linear-gradient(165deg, #4b3f8f 0%, #b05a86 60%, #ee9b6a 100%); color: #fff; }
.papier-peint .ec-signal { border-color: #fff; }
.papier-peint .ec-signal::after { background: #fff; }
.papier-peint .ec-barre-home { background: #fff; }
.ec-ecran.sombre { background: #111114; color: #fff; }
.sombre .ec-signal { border-color: #fff; }
.sombre .ec-signal::after { background: #fff; }
.sombre .ec-barre-home { background: #fff; }
.sombre .ec-texte { color: #e8e8ec; }
.sombre .ec-nav { color: #7ab7ff; }

.ec-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 12px; }
.ec-tuile { position: relative; background: var(--ec-blanc); border-radius: 12px; padding: 8px 10px; font-weight: 600; font-size: 13px; }
.ec-tuile .ec-ico { margin-bottom: 4px; }
.ec-tuile b { float: right; font-size: 17px; }

.ec-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.ec-photo { position: relative; aspect-ratio: 1; overflow: visible; }
.ec-grille .ec-photo:nth-child(5n+1) { background: linear-gradient(135deg, #f6c35f, #e4572e); }
.ec-grille .ec-photo:nth-child(5n+2) { background: linear-gradient(135deg, #76c7c0, #2f6f8f); }
.ec-grille .ec-photo:nth-child(5n+3) { background: linear-gradient(135deg, #a5d67a, #3f8f5a); }
.ec-grille .ec-photo:nth-child(5n+4) { background: linear-gradient(135deg, #c5a7e8, #6a4bb0); }
.ec-grille .ec-photo:nth-child(5n+5) { background: linear-gradient(135deg, #f7b3b8, #c9506f); }

.ec-jauge { margin: 0 12px; background: var(--ec-blanc); border-radius: 12px; padding: 10px 11px; }
.ec-jauge-barre { display: flex; height: 13px; border-radius: 7px; overflow: hidden; background: #e3e3e8; margin: 6px 0; }
.ec-jauge small { color: var(--ec-doux); font-size: 11px; }

.ec-viseur { position: relative; margin: 0 14px; height: 300px; flex: none; border-radius: 14px; background: linear-gradient(170deg, #5b5a60, #2c2b30); overflow: hidden; display: grid; place-items: center; }
.ec-feuille-papier { width: 180px; background: #fff; border-radius: 4px; padding: 10px; color: #333; font-size: 9px; box-shadow: 0 6px 14px rgba(0,0,0,.4); transform: rotate(-2deg); }
.ec-feuille-papier .ec-qr { margin: 6px auto 4px; }
.ec-ligne-papier { height: 4px; border-radius: 2px; background: #ccc; margin: 4px 0; }
.ec-coins { position: absolute; left: 50%; top: 50%; width: 136px; height: 136px; margin: -60px 0 0 -68px; border-radius: 12px; border: 3px solid var(--ec-cible); animation: pulsation 1.6s ease-in-out infinite; }
.ec-balayage { position: absolute; left: 50%; top: 50%; width: 124px; height: 3px; margin-left: -62px; background: var(--ec-cible); box-shadow: 0 0 10px var(--ec-cible); animation: balayage 2.2s ease-in-out infinite; }
@keyframes balayage { 0%, 100% { transform: translateY(-50px); } 50% { transform: translateY(68px); } }

.ec-qr { display: block; width: 92px; height: 92px; background: #fff; }
.ec-qr-bloc { display: grid; justify-items: center; gap: 6px; }
.ec-recap { margin: 0 12px; background: var(--ec-blanc); border-radius: 12px; padding: 4px 11px; }
.ec-recap div { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ec-trait); font-size: 13px; border-radius: 8px; }
.ec-recap div:last-child { border-bottom: 0; }
.ec-recap span { color: var(--ec-doux); }
.ec-recap b { text-align: right; }

.ec-faceid { display: grid; justify-items: center; gap: 10px; padding-top: 44px; }
.ec-faceid svg { width: 76px; height: 76px; fill: none; stroke: var(--ec-bleu); stroke-width: 2; stroke-linecap: round; animation: pulsation 1.6s ease-in-out infinite; }
.ec-nip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 12px; margin: 2px 30px 0; }
.ec-nip span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--ec-blanc); font-size: 19px; }
.ec-points-nip { display: flex; gap: 10px; justify-content: center; padding: 6px 0; }
.ec-points-nip i { width: 11px; height: 11px; border-radius: 50%; background: #1c1c1e; }
.ec-points-nip i.vide-nip { background: none; box-shadow: inset 0 0 0 1.5px #1c1c1e; }

.ec-appel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 30px; text-align: center; }
.ec-appel strong { font-size: 24px; font-weight: 500; }
.ec-appel small { color: #c7c7cc; font-size: 13px; }
.ec-appel-boutons { display: flex; justify-content: space-around; padding: 0 22px; margin-top: auto; margin-bottom: 40px; }
.ec-rond { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ec-rond svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ec-bulle { margin: 0 12px; padding: 9px 12px; background: #e6e6eb; border-radius: 16px; font-size: 13px; max-width: 86%; }
.ec-bulle a { color: var(--ec-bleu); text-decoration: underline; word-break: break-all; }
.ec-feuille { position: absolute; left: 8px; right: 8px; bottom: 16px; background: #fbfbfd; border-radius: 18px; box-shadow: 0 -6px 26px rgba(0,0,0,.28); padding: 12px 0 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.ec-feuille h4 { margin: 0; padding: 0 14px; font-size: 14px; text-align: center; }
.ec-feuille .ec-texte { font-size: 12px; text-align: center; }
.ec-partage { display: flex; gap: 10px; padding: 4px 12px; }
.ec-partage .ec-app { color: #1c1c1e; flex: 1; }
.ec-partage .ec-ico { width: 44px; height: 44px; }
.ec-document { margin: 0 14px; flex: 1; background: var(--ec-blanc); border-radius: 8px; padding: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.2); display: grid; align-content: start; gap: 4px; }
.ec-document .ec-qr { margin: 10px auto; }

/* Doigt et halo qui montrent où toucher */
.cible { position: relative; z-index: 1; }
.cible::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2.5px solid var(--ec-cible);
  border-radius: 13px;
  animation: pulsation 1.6s ease-in-out infinite;
  pointer-events: none;
}
.ec-app.cible::after, .ec-rond.cible::after { inset: -5px; }
.ec-rond.cible::after { border-radius: 50%; }
.ec-doigt {
  position: absolute;
  right: 12%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: rgba(255, 61, 31, .42);
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.35);
  animation: toucher 1.6s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.ec-curseur {
  position: absolute;
  right: 12%;
  top: 55%;
  width: 22px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
  animation: curseur 1.6s ease-in-out infinite;
}
.ec-curseur path { fill: #1c1c1e; stroke: #fff; stroke-width: 1.5; }
@keyframes pulsation { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes toucher { 0%, 100% { transform: scale(1); } 45% { transform: scale(.68); } }
@keyframes curseur { 0%, 100% { transform: translate(7px, 7px); } 45% { transform: translate(0, 0); } }

/* Fenêtre d'ordinateur */
.appareil-mac { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(30, 20, 50, .28), 0 0 0 1px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.mac-haut { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: #ececf0; border-bottom: 1px solid var(--ec-trait); }
.mac-haut i { width: 11px; height: 11px; border-radius: 50%; background: #c6c6cc; }
.mac-adresse { position: relative; margin-left: 12px; flex: 1; height: 26px; border-radius: 7px; background: #fff; display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: #3a3a3f; border: 1px solid var(--ec-trait); }
.mac-titre { margin-left: 8px; font-weight: 600; font-size: 13px; }
.mac-dedans { flex: 1; min-height: 0; display: flex; background: var(--ec-fond); }
.mac-cote { flex: none; width: 136px; padding: 10px 8px; background: #e7e7ec; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.mac-cote span { position: relative; padding: 5px 8px; border-radius: 7px; }
.mac-cote .actif { background: var(--ec-bleu); color: #fff; }
.mac-corps { flex: 1; min-width: 0; padding: 12px 0; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.mac-corps .ec-titre { font-size: 19px; padding-bottom: 2px; }
.mac-corps .ec-viseur { height: 170px; }
.mac-menus { position: relative; display: flex; gap: 4px; padding: 0 12px; flex: none; }
.mac-menus span { position: relative; padding: 4px 9px; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; }

@media print {
  :root {
    --fond: #fff; --surface: #fff; --encre: #000; --doux: #333; --trait: #bbb;
    --accent: #000; --accent-pale: #eee; --danger: #000; --danger-pale: #fff; --attention: #000;
    --attention-pale: #fff; --astuce: #000; --astuce-pale: #fff;
  }
  body { font-size: 12pt; }
  .barre, .pied-page, .retour, .onglets, .guide, .bas-fiche, .actions, .note-ecran { display: none !important; }
  body.en-fiche { padding: 0; }
  .note { border: 1px solid #888; break-inside: avoid; }
  .impression { display: block; }
  .impression h2 { font-size: 15pt; margin: 14pt 0 6pt; }
  .impression-etape { display: grid; grid-template-columns: 1fr 150px; gap: 14pt; align-items: start; padding: 8pt 0; border-top: 1px solid #bbb; break-inside: avoid; }
  .impression-etape p { margin: 0; }
  .impression .illu-iphone { --z: .5; }
  .impression .illu-mac { --z: .31; }
  .impression .appareil { box-shadow: none; }
  *, *::before, *::after { animation: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
