/* kodpéi store — même langage que le site kodpéi « Plein jour » (v22) :
   fond blanc, encre noire, jaune soleil pour ce qu'on touche, rouge pour l'horizon.
   Titres Adventor, texte DM Sans, écriture du logo (Cookie) seulement pour les petites notes, prix en ticket de caisse. */
@font-face { font-family: "Adventor"; src: url("fonts/kp-adventor-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cookie"; src: url("fonts/cookie.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ticket"; src: url("fonts/kp-ticket.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ticket"; src: url("fonts/kp-ticket-gras.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blanc: #FFFFFF; --encre: #0B0E0C; --braise: #E0312B; --braise-texte: #C0261F; --soleil: #FED905;
  --bg: #FFFFFF; --fg: #0B0E0C; --muted: #57524C; --line: #DEDCD7; --card: #FFFFFF; --brume: #F2F2EF; --accent: #C0261F;
  --titre: "Adventor", "Century Gothic", "Avant Garde", "Futura", system-ui, sans-serif;
  --corps: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --main: "Cookie", "Brush Script MT", cursive;
  --ticket: "Ticket", "Courier New", Courier, monospace;
  --zoom: 1;
  color-scheme: light;
}
:root[data-theme="sombre"] { --bg: #0B0E0C; --fg: #F3EFE8; --muted: #BDB6AE; --line: #262B28; --card: #151A17; --brume: #151A17; --accent: #FED905; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--corps); font-size: calc(17px * var(--zoom)); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--braise); outline-offset: 3px; }
[hidden] { display: none !important; }
.ecran-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cadre et en-tête ---------- */
.appli { max-width: 600px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.tete { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: env(safe-area-inset-top) 20px 0; box-shadow: 0 1.5px 0 var(--line); }
.tete-ligne { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; color: var(--fg); }
.marque img { width: 112px; height: auto; display: block; }
:root[data-theme="sombre"] .marque img { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.marque span { display: inline-flex; align-items: center; padding: 4px 8px 3px; border-radius: 4px; background: var(--soleil); color: var(--encre); font: 700 10.5px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; }
.etat { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.etat i { width: 8px; height: 8px; border-radius: 4px; background: #1B7F52; }
.etat.horsligne i { background: var(--braise); }
.test { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 8px; background: var(--soleil); color: var(--encre); border: 2px solid var(--encre); }
.horizon { display: none; }

main { flex: 1; padding: 22px 20px 130px; }
.ecran { display: flex; flex-direction: column; gap: 18px; animation: monte .5s cubic-bezier(.2,.75,.2,1) both; }

/* ---------- Textes ---------- */
.surtitre { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(36px, 10.4vw, 48px); letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: 24px; letter-spacing: -0.03em; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.main { display: inline; }
.note { font-family: var(--main); font-weight: 400; font-size: 29px; line-height: 1; color: var(--braise-texte); }
p { margin: 0; }
.doux { color: var(--muted); font-size: 17px; line-height: 1.45; }
.petit { font-size: 14.5px; color: var(--muted); }

/* ---------- Boutons et champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 2.5px solid var(--fg); border-radius: 14px;
  background: var(--fg); color: var(--bg); font-family: var(--corps); font-weight: 700; font-size: 16.5px; line-height: 1.15; text-align: center; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn.soleil { background: var(--soleil); color: var(--encre); border-color: var(--encre); }
:root[data-theme="sombre"] .btn.soleil { border-color: var(--soleil); }
.btn.clair { background: var(--card); color: var(--fg); }
.btn.large { width: 100%; min-height: 62px; font-size: 18px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.lien { border: 0; background: none; padding: 8px 0; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.champ input, .champ select { min-height: 56px; padding: 0 16px; border: 2.5px solid var(--fg); border-radius: 14px; background: var(--card); font-size: 17px; font-weight: 500; }
.besoin { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 0 12px 0 18px; border-radius: 18px; border: 3px solid var(--encre); background: var(--soleil); color: var(--encre); }
.besoin:focus-within { box-shadow: 0 0 0 4px var(--soleil), 0 0 0 6px var(--encre); }
.besoin input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--encre); font-family: var(--titre); font-size: clamp(22px, 6vw, 28px); font-weight: 700; letter-spacing: -0.025em; -webkit-appearance: none; appearance: none; }
.besoin input::placeholder { color: rgba(11,14,12,.42); opacity: 1; }
.besoin input::-webkit-search-cancel-button { display: none; }
.rond { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 2px solid var(--encre); background: #fff; color: var(--encre); display: inline-flex; align-items: center; justify-content: center; }
.message { padding: 14px 16px; border-radius: 14px; border: 2.5px solid var(--fg); background: var(--brume); font-size: 15px; }
.message.erreur { border-color: var(--braise); box-shadow: inset 6px 0 0 var(--braise); padding-left: 20px; }

/* ---------- Pastilles (comme les activités du site) ---------- */
.defile { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 3px 20px 5px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 34px), transparent); }
.defile::-webkit-scrollbar { display: none; }
.pastille { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--fg); background: var(--card); color: var(--fg); font-weight: 600; font-size: 15px; transition: background-color .15s, color .15s; }
.pastille[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.pastille.idee { border-style: dashed; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 0; }
.badge.soleil { background: var(--soleil); color: var(--encre); }
.badge.bientot { background: transparent; color: var(--muted); border: 1.5px dashed var(--muted); }

/* ---------- Cartes ---------- */
.carte { border: 2.5px solid var(--fg); border-radius: 18px; background: var(--card); padding: 18px; }
.carte.ombre { box-shadow: 7px 7px 0 var(--soleil); transition: transform .15s ease, box-shadow .15s ease; }
button.carte { width: 100%; text-align: left; color: var(--fg); font: inherit; }
button.carte.ombre:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--soleil); }
.carte.noire { background: var(--encre); color: #fff; border-color: var(--encre); }
:root[data-theme="sombre"] .carte.noire { border-color: var(--line); }
.carte.pointillee { border-style: dashed; background: var(--brume); }
.appli-carte { display: flex; flex-direction: column; gap: 8px; }
.appli-carte .haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.appli-carte h3 { font-size: 28px; letter-spacing: -0.035em; }
.signature { display: flex; gap: 4px; overflow: hidden; height: 5px; }
.signature span { flex: none; height: 5px; border-radius: 2.5px; }

/* ---------- Soleil de la journée ---------- */
.soleil-jour { position: relative; height: 156px; border: 2.5px solid var(--fg); border-radius: 18px; overflow: hidden; background: var(--brume); }
.soleil-jour .ciel { position: absolute; left: 24px; bottom: 36px; width: 140px; height: 70px; overflow: hidden; }
.soleil-jour .astre { transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.soleil-jour .ligne { position: absolute; left: 0; right: 0; bottom: 34px; height: 3px; background: var(--braise); }
.soleil-jour .reflets { position: absolute; left: 34px; bottom: 14px; display: flex; gap: 6px; }
.soleil-jour .reflets span { height: 5px; border-radius: 2.5px; }
.soleil-jour .compte { position: absolute; right: 22px; top: 20px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.soleil-jour .compte b { font-family: var(--titre); font-size: 54px; line-height: 1; letter-spacing: -0.05em; }
.soleil-jour .compte b small { color: var(--muted); font-size: 30px; }
.soleil-jour .compte em { font-family: var(--main); font-style: normal; font-size: 29px; line-height: 1; color: var(--braise-texte); }

/* ---------- Rappels ---------- */
.rappel { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border: 2.5px solid var(--fg); border-radius: 18px; background: var(--card); transition: opacity .3s ease; }
.rappel.fait { opacity: .55; }
.rappel.fait .titre { text-decoration: line-through; text-decoration-thickness: 2px; }
.rappel .texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rappel .appli-nom { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.rappel .titre { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.coche { flex: none; width: 50px; height: 50px; border-radius: 14px; border: 2.5px solid var(--fg); background: var(--card); color: var(--line); display: flex; align-items: center; justify-content: center; }
.rappel.fait .coche { background: var(--soleil); color: var(--encre); border-color: var(--encre); }
.rappel.fait .coche svg { animation: pop .35s ease both; }
.vide { border: 2.5px dashed var(--fg); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Cyclone ---------- */
.cyclone { border: 2.5px solid var(--encre); border-radius: 18px; overflow: hidden; background: var(--encre); color: #fff; }
.cyclone .bandeau { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--braise); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cyclone .bandeau i { flex: none; width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(180deg, #fff 0 55%, var(--soleil) 55%); }
.cyclone .corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.cyclone .corps p { font-family: var(--titre); font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.cyclone ul { list-style: none; margin: 0; padding: 0; }
.cyclone li button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 0; border: none; border-top: 1.5px solid #2E332F; background: transparent; color: #fff; text-align: left; }
.cyclone .case { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--soleil); display: flex; align-items: center; justify-content: center; }
.cyclone .on .case { background: var(--soleil); }
.cyclone .on .lib { text-decoration: line-through; opacity: .6; }
.cyclone small { color: var(--soleil); font-size: 13px; }

/* ---------- Votes ---------- */
.vote { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 2.5px solid var(--fg); background: var(--card); color: var(--fg); font-weight: 600; text-align: left; width: 100%; }
.vote .barre { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brume); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.vote.moi { color: var(--encre); font-weight: 700; }
.vote.moi .barre { background: var(--soleil); }
.vote span { position: relative; }
.vote .lib { flex: 1; }
.vote .pct { font-family: var(--titre); }

/* ---------- Mes applis ---------- */
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tuile { min-height: 146px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px; }
.tuile h3 { font-size: 21px; line-height: 1.05; letter-spacing: -0.03em; }

/* ---------- Réglages ---------- */
.reglage { display: flex; align-items: center; gap: 12px; min-height: 68px; border-top: 1.5px solid var(--line); }
.reglage div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.interrupteur { flex: none; width: 58px; height: 34px; border-radius: 999px; border: 2.5px solid var(--fg); padding: 2px; background: var(--card); display: flex; align-items: center; transition: background .2s ease; }
.interrupteur span { width: 25px; height: 25px; border-radius: 13px; background: var(--fg); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.interrupteur[aria-checked="true"] { background: var(--soleil); }
.interrupteur[aria-checked="true"] span { transform: translateX(23px); background: var(--encre); }
.ligne-lien { min-height: 56px; display: flex; align-items: center; justify-content: space-between; border: none; border-top: 1.5px solid var(--line); background: transparent; color: var(--fg); font-weight: 700; font-size: 16px; padding: 0; text-decoration: none; width: 100%; text-align: left; }
.ligne-lien.danger { color: var(--accent); }

/* ---------- Abonnement en ticket de caisse (comme les prix du site) ---------- */
.formules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; border: 2.5px solid var(--fg); }
.formules button { min-height: 46px; border-radius: 11px; border: none; background: transparent; font-weight: 700; }
.formules button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.ticket { --dent: 9px; position: relative; background: #fff; color: var(--encre); font-family: var(--ticket); font-size: 15px; line-height: 1.45; padding: 24px 22px 22px; transform: rotate(-1deg);
  box-shadow: 7px 7px 0 var(--soleil), inset 0 0 0 2px var(--encre); border-radius: 4px; }
.ticket-tete { text-align: center; padding-bottom: 14px; border-bottom: 2px dashed var(--encre); }
.ticket-tete h3 { margin: 6px 0 4px; font-family: var(--ticket); font-weight: 700; font-size: 28px; letter-spacing: .14em; text-transform: uppercase; }
.ticket-lignes { margin: 14px 0; padding: 0; list-style: none; }
.ticket-lignes li { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.ticket-lignes li span { display: flex; align-items: baseline; flex: 1; min-width: 0; }
.ticket-lignes li span::after { content: ""; flex: 1; min-width: 4px; margin: 0 2px 0 6px; border-bottom: 2px dotted #9C978F; transform: translateY(-4px); }
.ticket-lignes li b { white-space: nowrap; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 2px dashed var(--encre); border-bottom: 2px dashed var(--encre); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; }
.ticket-total b { font-size: 30px; letter-spacing: 0; }
.ticket-annee { margin: 10px 0 0; text-align: center; font-size: 14px; }
.ticket-merci { margin-top: 14px; text-align: center; font-family: var(--main); font-size: 30px; line-height: 1; color: var(--braise-texte); }
.prix { font-family: var(--titre); font-size: 84px; line-height: .9; letter-spacing: -0.06em; }
.coche-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.coche-liste li { display: flex; gap: 12px; align-items: flex-start; }
.coche-liste svg { flex: none; margin-top: 2px; color: var(--braise); }
.case-accord { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.case-accord input { width: 24px; height: 24px; flex: none; accent-color: var(--encre); margin-top: 1px; }

/* ---------- Barre du bas ---------- */
.barre-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg); border-top: 2.5px solid var(--fg); padding: 8px 10px max(10px, calc(env(safe-area-inset-bottom) - 10px)); }
.barre-bas nav { max-width: 600px; margin: 0 auto; display: flex; gap: 6px; }
.barre-bas button { flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; border: 2.5px solid transparent; background: transparent; color: var(--fg); font-size: 12px; font-weight: 600; transition: background-color .15s; }
.barre-bas button[aria-current="page"] { background: var(--soleil); color: var(--encre); border-color: var(--encre); font-weight: 700; }

/* ---------- Feuilles, ouverture, cadre d'appli ---------- */
.voile { position: fixed; inset: 0; z-index: 20; background: rgba(11,14,12,.55); display: flex; flex-direction: column; justify-content: flex-end; animation: fondu .25s ease both; }
.feuille { max-width: 600px; width: 100%; margin: 0 auto; background: var(--bg); color: var(--fg); border-radius: 22px 22px 0 0; border-top: 3px solid var(--fg); padding: 20px 22px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; max-height: 92vh; overflow-y: auto; animation: feuille .4s cubic-bezier(.2,.8,.2,1) both; }
.feuille .haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feuille h2 { font-size: 40px; letter-spacing: -0.045em; }
.feuille .slogan { font-family: var(--main); font-size: 29px; line-height: 1; color: var(--braise-texte); }
.fermer { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 2.5px solid var(--fg); background: var(--card); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.ouverture { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow: hidden; }
.ouverture .ciel { position: absolute; left: 50%; top: 32%; width: 220px; height: 110px; margin-left: -110px; overflow: hidden; }
.ouverture .ciel svg { animation: lever 1s cubic-bezier(.2,.8,.2,1) .35s both; }
.ouverture .ligne { position: absolute; left: 0; right: 0; top: calc(32% + 108px); height: 3px; background: var(--braise); transform-origin: left; animation: ligne .7s cubic-bezier(.6,0,.2,1) both; }
.ouverture .nom { position: absolute; left: 0; right: 0; text-align: center; animation: monte .6s ease .7s both; }
.ouverture .nom b { display: block; font-family: var(--titre); font-size: 44px; letter-spacing: -0.045em; }
.ouverture .nom em { font-family: var(--main); font-style: normal; font-size: 29px; color: var(--braise-texte); }
.cadre-appli { position: fixed; inset: 0; z-index: 25; background: var(--bg); display: flex; flex-direction: column; animation: fondu .25s ease both; }
.cadre-appli .barre { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; border-bottom: 2.5px solid var(--fg); }
.cadre-appli .barre button, .cadre-appli .barre a { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--fg); background: var(--card); color: var(--fg); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cadre-appli iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- Accueil sans compte ---------- */
.bienvenue { display: flex; flex-direction: column; gap: 18px; }
.grand-soleil { position: relative; height: 176px; margin: 0 -20px; }
.grand-soleil .ciel { position: absolute; left: 50%; bottom: 52px; width: 220px; height: 110px; margin-left: -110px; overflow: hidden; }
.grand-soleil .ciel svg { animation: lever 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }
.grand-soleil .ligne { position: absolute; left: 0; right: 0; bottom: 50px; height: 3px; background: var(--braise); }
.grand-soleil .reflets { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.grand-soleil .reflets div { display: flex; gap: 6px; }
.grand-soleil .reflets span { height: 5px; border-radius: 2.5px; }

.chargement { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.chargement span { width: 60px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--soleil) 0 40%, var(--braise) 40% 100%); animation: clignote 1s ease-in-out infinite; }

@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes feuille { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { 0% { transform: scale(.5); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ligne { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lever { from { transform: translateY(110px); } to { transform: translateY(0); } }
@keyframes clignote { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- 1.9 : logos, tuiles vivantes, guide d'installation ---------- */
.logo { position: relative; flex: none; display: inline-block; width: var(--t); height: var(--t); border-radius: calc(var(--t) * .26); overflow: hidden; background: var(--fond);
  box-shadow: 0 0 0 2px var(--fg), 3px 4px 0 2px var(--fg); isolation: isolate; }
.logo svg, .logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.logo img { opacity: 0; transition: opacity .35s ease; }
.logo.vraie img, .telephone .store img { opacity: 1; }
.logo .reflet { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%); }
.logo.brille .reflet, .vivante .logo .reflet { animation: reflet 3.6s ease-in-out calc(1.1s + var(--i, 0) * .25s) infinite; }
.carte.noire .logo, .ouverture .logo, .fiche-tete .logo { box-shadow: 0 0 0 2px #0B0E0C, 3px 4px 0 2px #FED905; }
.pile { display: inline-flex; flex: none; }
.pile > span { margin-left: -12px; animation: pile .5s cubic-bezier(.3,1.5,.5,1) calc(.2s + var(--i) * .08s) both; }
.pile > span:first-child { margin-left: 0; }
.pile > span:nth-child(2n) .logo { transform: rotate(-6deg); } .pile > span:nth-child(2n+1) .logo { transform: rotate(5deg); }

.appli-carte .haut { align-items: flex-start; }
.appli-carte .titres { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.appli-carte .titres .doux { font-size: 15.5px; }
.appli-carte h3 { font-size: 26px; }

.reprendre { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; color: #fff; padding: 16px 18px; position: relative; overflow: hidden; }
.reprendre::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(254,217,5,.35), transparent 65%); animation: halo 4s ease-in-out infinite; }
.reprendre .titres { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.reprendre h3 { font-size: 30px; color: #fff; }
.go { flex: none; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--soleil); color: var(--encre); border: 2px solid var(--encre); position: relative; z-index: 1; transition: transform .2s ease; }

.grille { gap: 16px; }
.tuile { min-height: 186px; gap: 12px; padding: 16px; position: relative; overflow: hidden; }
.tuile .titres { display: flex; flex-direction: column; gap: 4px; }
.tuile .titres .petit { font-size: 13.5px; line-height: 1.35; }
.tuile-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tuile .go { width: 36px; height: 36px; border-radius: 11px; background: var(--card); color: var(--fg); border-color: var(--fg); }
.vivante { box-shadow: 6px 6px 0 var(--c1); animation: tuile .6s cubic-bezier(.2,1.3,.4,1) calc(var(--i) * 70ms) both; transition: transform .18s ease, box-shadow .18s ease; }
.vivante::before { content: ""; position: absolute; right: -36px; bottom: -36px; width: 110px; height: 110px; border-radius: 50%; background: var(--c1); opacity: .12; transition: transform .4s ease; }
.vivante:active { transform: translate(4px, 4px) rotate(-.6deg); box-shadow: 2px 2px 0 var(--c1); }
.vivante:active .logo { transform: scale(.92) rotate(-4deg); }
.vivante .logo { transition: transform .2s ease; }
@media (hover: hover) { .vivante:hover { transform: translate(-2px, -3px); box-shadow: 9px 10px 0 var(--c1); } .vivante:hover .go { background: var(--soleil); color: var(--encre); transform: translateX(3px); } .vivante:hover::before { transform: scale(1.4); } .vivante:hover .logo { transform: rotate(-5deg) scale(1.06); } }
.tuile.large { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 12px; align-items: center; }
.tuile.large .tuile-haut { display: contents; }
.tuile.large .tuile-haut .logo { grid-row: 1; grid-column: 1; }
.tuile.large .tuile-haut .go { position: absolute; right: 16px; top: 16px; }
.tuile.large .titres { grid-row: 1; grid-column: 2; padding-right: 44px; }
.tuile.large h3 { font-size: 26px; }
.tuile.large .signature { grid-column: 1 / -1; }
.tuile.bientot { min-height: 150px; border-style: dashed; box-shadow: none; }
.tuile.bientot .logo { filter: grayscale(.85); opacity: .7; }

.installe-carte { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; color: var(--fg); background: var(--brume); border-style: dashed; }
.installe-corps { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-left: 4px; }
.installe-corps > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.installe-mini { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: var(--fg); padding: 14px 16px; }
.installe-mini > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }

/* téléphone de démonstration */
.telephone { position: relative; align-self: center; width: 240px; height: 300px; border: 3px solid var(--fg); border-bottom: 0; border-radius: 38px 38px 0 0; padding: 40px 18px 0; overflow: hidden;
  background: linear-gradient(180deg, #FED905 0 34%, #E0312B 34% 35.4%, var(--brume) 35.4%); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.telephone .encoche { position: absolute; top: 12px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 10px; background: var(--fg); }
.telephone .accueil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; justify-items: center; }
.telephone .app { display: flex; flex-direction: column; align-items: center; gap: 5px; animation: tombe .7s cubic-bezier(.3,1.5,.5,1) calc(.5s + (var(--i) + 1) * .14s) both; }
.telephone .app small { font-size: 10.5px; font-weight: 700; color: var(--encre); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telephone .app.store .logo { background: #fff; }
.installer-maintenant { animation: respire 2.2s ease-in-out 1.4s infinite; }
.etapes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.etapes li { display: grid; grid-template-columns: 30px 46px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1.5px solid var(--line); animation: monte .45s ease calc(var(--i) * .1s) both; }
.etapes li:first-child { border-top: 0; }
.etapes .num { width: 30px; height: 30px; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--titre); }
.etapes .ico { width: 46px; height: 46px; border-radius: 14px; border: 2.5px solid var(--encre); background: var(--soleil); color: var(--encre); display: flex; align-items: center; justify-content: center; }
.etapes li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.etapes .petit { font-size: 14px; }
.guide { display: flex; flex-direction: column; box-shadow: 7px 7px 0 var(--soleil); }
.liste-installe { display: flex; flex-direction: column; }
.ligne-appli { display: flex; align-items: center; gap: 14px; min-height: 66px; border-top: 1.5px solid var(--line); text-decoration: none; color: var(--fg); }
.ligne-appli > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ligne-appli .petit { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faq { border-top: 1.5px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 700 24px/1 var(--titre); transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > p { padding: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.installe-seule { border: 2.5px solid var(--fg); border-radius: 14px; padding: 0 14px 4px; }
.installe-seule summary { font-size: 15.5px; }

/* fiche */
.fiche-tete { display: flex; align-items: center; gap: 18px; }
.fiche-tete .logo { animation: pop .55s ease .1s both; }

/* ouverture */
.ouverture .logo-leve { position: absolute; left: 50%; top: calc(32% - 118px); width: 96px; margin-left: -48px; z-index: 2; animation: jaillit .8s cubic-bezier(.2,1.4,.4,1) .55s both; }
.cadre-nom { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titre); font-size: 17px; letter-spacing: -0.02em; min-width: 0; overflow: hidden; white-space: nowrap; }
.cadre-nom .logo { box-shadow: 0 0 0 1.5px var(--fg); }
.cadre-nom b { overflow: hidden; text-overflow: ellipsis; }
.cadre-appli .barre button, .cadre-appli .barre a { white-space: nowrap; flex: none; }
@media (max-width: 430px) { .cadre-nom b { display: none; } }

@keyframes reflet { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes tuile { from { opacity: 0; transform: translateY(22px) scale(.92) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes pile { from { opacity: 0; transform: translateY(10px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tombe { from { opacity: 0; transform: translateY(-40px) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes jaillit { from { opacity: 0; transform: translateY(70px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes respire { 0%, 100% { box-shadow: 0 0 0 0 rgba(254,217,5,.0); } 50% { box-shadow: 0 0 0 8px rgba(254,217,5,.45); } }
@media (max-width: 360px) { .tuile .logo { --t: 50px !important; } .tuile h3 { font-size: 19px; } }

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

/* l'univers « Journée péi » : le vrai ciel de La Réunion et l'île faite des tirets du logo */
.kpj-carte{position:relative;height:120px;border:2px solid var(--fg,#0B0E0C);border-radius:20px;overflow:hidden;background:linear-gradient(180deg,var(--kpj-ciel-haut),var(--kpj-ciel-bas));box-shadow:5px 5px 0 var(--fg,#0B0E0C)}
.kpj-carte.kpj-grande{height:200px;margin:4px 0}
.kpj-carte canvas{position:absolute;inset:8px 0 0 0;width:100%;height:calc(100% - 8px)}
@media(max-width:360px){.etat>span{display:none}.tete-ligne{min-width:0}.marque img{width:96px;height:auto}}

/* ---------- 1.10 : l'accueil « Journée des applis » (comme le nouveau site) ---------- */
.bv { gap: 16px; }
.bv-titre { font-size: clamp(38px, 11vw, 54px); line-height: 1; }
.bv-surligne { background: linear-gradient(transparent 60%, var(--soleil) 60%, var(--soleil) 92%, transparent 92%); }
[data-theme="sombre"] .bv-surligne { background: none; color: var(--soleil); }
.bv-scene { position: relative; height: clamp(230px, 64vw, 300px); margin: 0 -18px; }
.bv-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bv-defile { position: relative; display: grid; min-height: 116px; padding: 16px 16px 26px; border: 2.5px solid var(--fg); border-radius: 22px; background: var(--card); box-shadow: 5px 5px 0 var(--fg); overflow: hidden; }
.bv-app { grid-area: 1 / 1; display: flex; gap: 14px; align-items: center; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.25,1); pointer-events: none; }
.bv-app.on { opacity: 1; transform: none; pointer-events: auto; }
.bv-app .logo, .bv-app img { flex: none; }
.bv-app-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bv-app-txt b { font: 700 22px/1.1 var(--titre); letter-spacing: -.02em; }
.bv-app-txt small { font: 700 11.5px/1.2 var(--corps); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.bv-app-txt span { font-size: 15.5px; line-height: 1.35; margin-top: 3px; }
.bv-points { position: absolute; left: 16px; right: 16px; bottom: 10px; display: flex; gap: 6px; }
.bv-points i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.bv-points i::after { content: ""; position: absolute; inset: 0 100% 0 0; background: var(--soleil); }
.bv-points i.on::after { animation: bv-jauge 4.2s linear forwards; }
@keyframes bv-jauge { to { right: 0; } }
.bv-preuves { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bv-preuves li { display: flex; align-items: baseline; gap: 6px; border: 2px solid var(--fg); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14.5px; background: var(--card); }
.bv-preuves b { font: 700 18px/1 var(--ticket); }
.bv-vie { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--brume); }
.bv-vie-l { display: flex; gap: 12px; align-items: flex-start; }
.bv-vie-l > span { display: flex; flex-direction: column; gap: 1px; }
.bv-vie-l b { font-size: 16px; }
.bv-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; border: 2px solid var(--fg); background: var(--card); position: relative; overflow: hidden; }
.bv-ic::before { content: ""; position: absolute; }
.bv-ic-maj::before { left: 5px; right: 5px; top: 13px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--braise), var(--soleil)); transform-origin: left; animation: bv-maj 2.4s ease-in-out infinite; }
@keyframes bv-maj { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.bv-ic-avis::before { left: 6px; top: 7px; width: 18px; height: 13px; border-radius: 6px 6px 6px 2px; background: #DCF8C6; border: 1.5px solid var(--encre); animation: bv-bulle 2.4s ease-in-out infinite; }
@keyframes bv-bulle { 0%, 20% { transform: scale(0); } 40%, 100% { transform: scale(1); } }
.bv-ic-vote::before { left: 6px; bottom: 6px; width: 5px; height: 16px; border-radius: 2px; background: var(--soleil); box-shadow: 7px 6px 0 -0px var(--braise), 14px 3px 0 var(--fg); transform-origin: bottom; animation: bv-vote 2.4s ease-in-out infinite; }
@keyframes bv-vote { 0% { transform: scaleY(.2); } 60%, 100% { transform: scaleY(1); } }
.bv-ic-coffre::before { left: 9px; top: 13px; width: 12px; height: 10px; border-radius: 3px; background: var(--soleil); border: 1.5px solid var(--encre); }
.bv-ic-coffre::after { content: ""; position: absolute; left: 11px; top: 6px; width: 7px; height: 8px; border: 2px solid var(--fg); border-bottom: 0; border-radius: 6px 6px 0 0; animation: bv-anse 2.4s ease-in-out infinite; }
@keyframes bv-anse { 0%, 30% { transform: translateY(-3px); } 50%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bv-app { transition: none; } .bv-points i.on::after { animation: none; right: 0; }
  .bv-ic::before, .bv-ic::after { animation: none; }
}

/* 1.10.1 : l'ouverture d'une appli, tout centré et empilé (plus de nom coupé par les tirets) */
.ouverture { display: grid; place-items: center; }
.ouverture .ouv-pile { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ouverture .ouv-pile .logo-leve { position: relative; left: auto; top: auto; margin: 0 0 14px; }
.ouverture .ouv-pile .ciel { position: relative; left: auto; top: auto; margin: 0; }
.ouverture .ouv-pile .ligne { position: relative; top: auto; width: 100%; flex: none; }
.ouverture .ouv-tirets { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 20px; line-height: 0; font-size: 0; }
.ouverture .ouv-rang { text-align: center; line-height: 0; font-size: 0; white-space: nowrap; }
.ouverture .ouv-pile .nom { position: relative; left: auto; right: auto; top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 20px; }
.ouverture .ouv-pile .nom b { line-height: 1.05; text-align: center; overflow-wrap: anywhere; }
