/* toc toc toc — app.css
   Reprend le dessin du prototype (couleurs, portes, feuilles, navigation
   flottante) et l'étend aux écrans de la v1 : connexion, invitation,
   premiers pas, gestion de la rue, profil. */

:root {
  --fond: #F6F3EC;
  --fond-ext: #E9E4D8;
  --surface: #FFFFFF;
  --encre: #191512;
  --doux: #8B8072;
  --pale: #AC9C82;
  --vert: #256D3B;
  --vert-vif: #2E8A4A;
  --vert-fonce: #1E5C32;
  --vert-tint: #E4F0E5;
  --orange: #E2711D;
  --orange-fonce: #B15A10;
  --orange-tint: #FCEFDF;
  --rouge: #B3412E;
  --trait: #ECE6D9;
  --ombre: 0 1px 2px rgba(25,21,18,0.04), 0 14px 34px -14px rgba(25,21,18,0.16);
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond-ext);
  font-family: 'Outfit', 'Trebuchet MS', system-ui, sans-serif;
  color: var(--encre); -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
[hidden] { display: none !important; }

#app {
  max-width: 430px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  background:
    radial-gradient(420px 260px at 85% -60px, rgba(226,113,29,0.10), transparent 70%),
    radial-gradient(420px 300px at -10% -40px, rgba(37,109,59,0.10), transparent 70%),
    var(--fond);
  position: relative;
}

/* ── Vues principales ───────────────────────────────── */
.vue { display: none; }
.vue.actif { display: block; animation: entree 0.32s cubic-bezier(0.2, 0.8, 0.3, 1); }
#v-app { padding-bottom: calc(118px + var(--bas)); }

/* ── En-tête ────────────────────────────────────────── */
.entete {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + var(--haut)) 22px 12px 22px;
  background: rgba(246,243,236,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.entete-simple { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.marque { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 23px; letter-spacing: -0.01em; line-height: 1.1; }
.marque .point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-left: 4px; }
.marque-par { font-size: 11px; font-weight: 600; font-style: italic; color: var(--doux); margin-top: -2px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--vert-vif), var(--vert));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px -6px rgba(37,109,59,0.5);
}

.bandeau {
  margin: 0 22px 8px 22px; padding: 10px 14px; border-radius: 14px;
  background: var(--orange-tint); color: var(--orange-fonce); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.bandeau .btn-lien { margin: 0; padding: 4px 0; color: var(--orange-fonce); text-decoration: underline; }
.bandeau-demo { background: #EDE7F3; color: #6A4B86; flex-wrap: wrap; }
.bandeau-liens { display: flex; gap: 14px; }
.bandeau-liens .btn-lien { width: auto; }
.bandeau-demo .btn-lien { color: #6A4B86; }

/* ── Écrans internes ────────────────────────────────── */
.ecran { display: none; padding: 8px 22px 24px 22px; }
.ecran.actif { display: block; animation: entree 0.32s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.titre { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; margin: 6px 0 2px 0; line-height: 1.15; }
.titre-2 { font-size: 26px; margin: 26px 0 14px 0; }
.soustitre { color: var(--doux); font-weight: 500; font-size: 15px; margin: 0 0 16px 0; line-height: 1.45; }
.etiquette {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--doux); margin: 22px 0 10px 0;
}
.centre { text-align: center; }
.gauche { text-align: left; }
.espace { height: 12px; }
.note { font-size: 13px; font-weight: 500; color: var(--pale); line-height: 1.5; margin: 12px 0; }
.statut { min-height: 20px; font-size: 13.5px; font-weight: 600; color: var(--rouge); margin-top: 10px; text-align: center; }
.statut.ok { color: var(--vert); }
.ok-ligne { color: var(--vert); font-weight: 700; font-size: 14.5px; margin-top: 6px; }
.grand-emoji { font-size: 64px; text-align: center; margin: 20px 0 6px 0; }

/* ── Cartes ─────────────────────────────────────────── */
.carte {
  background: var(--surface); border-radius: 22px; padding: 18px;
  margin-bottom: 12px; box-shadow: var(--ombre);
}
.carte p { margin: 4px 0 14px 0; font-size: 14.5px; line-height: 1.5; color: #4A4238; }
.carte-titre { font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.carte.orange { background: linear-gradient(180deg, #FDF3E6, var(--orange-tint)); }
.carte-vert {
  background: radial-gradient(220px 160px at 90% -20%, rgba(255,255,255,0.16), transparent 70%), linear-gradient(135deg, var(--vert-vif), var(--vert-fonce));
  color: #fff; margin-top: 24px;
}
.carte-vert p { color: rgba(255,255,255,0.82); }
.carte-vide { text-align: center; color: var(--doux); font-weight: 500; padding: 24px; line-height: 1.5; }

/* ── Puces ──────────────────────────────────────────── */
.puces { display: flex; flex-wrap: wrap; }
.puces-defile { flex-wrap: nowrap; overflow-x: auto; margin: 0 -26px; padding: 0 26px 4px 26px; scrollbar-width: none; }
.puces-defile::-webkit-scrollbar { display: none; }
.puces-defile .puce { flex-shrink: 0; }
.puce {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 9px 18px; margin: 0 8px 8px 0;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--trait);
  font-weight: 600; font-size: 14.5px; cursor: pointer; user-select: none; color: var(--encre);
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.puce:active { transform: scale(0.95); }
.puce.sel {
  background: var(--vert); border-color: var(--vert); color: #fff; font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(37,109,59,0.55);
}
.puce .x { font-weight: 800; opacity: 0.5; margin-left: 2px; }
.puce-mini {
  display: inline-flex; align-items: center; min-height: 34px; padding: 5px 13px; margin: 8px 6px 0 0;
  border-radius: 999px; background: #F1EDE2; border: 1px solid transparent;
  font-weight: 600; font-size: 12.5px; color: var(--doux); cursor: pointer; user-select: none;
}
.puce-mini:active { background: var(--vert-tint); color: var(--vert); }

/* ── Boutons ────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  min-height: 56px; border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16.5px;
  transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn + .btn { margin-top: 10px; }
.btn-plein { background: linear-gradient(135deg, var(--vert-vif), var(--vert)); color: #fff; box-shadow: 0 14px 28px -10px rgba(37,109,59,0.55); }
.btn-contour { background: var(--surface); border: 1.5px solid var(--vert); color: var(--vert); }
.btn-discret { background: rgba(25,21,18,0.05); color: var(--doux); }
.btn-blanc { background: #fff; color: var(--vert); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35); }
.btn-orange { background: linear-gradient(135deg, #F08A33, #D9660F); color: #fff; min-height: 50px; font-size: 15.5px; box-shadow: 0 12px 24px -10px rgba(217,102,15,0.55); }
.btn-orange-contour { background: #fff; border: 2px solid #D9822B; color: var(--orange-fonce); min-height: 48px; font-size: 15px; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-lien {
  display: block; width: 100%; margin: 14px 0 0 0; padding: 8px; border: none; background: none; cursor: pointer;
  color: var(--doux); font-weight: 600; font-size: 14.5px; text-align: center; text-decoration: none;
}
.btn-danger { color: var(--rouge); }
.btn-rond {
  width: 46px; height: 46px; flex-shrink: 0; border: none; border-radius: 50%;
  background: var(--vert); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(37,109,59,0.55);
  transition: transform 0.12s ease;
}
.btn-rond:active { transform: scale(0.92); }

/* ── Champs ─────────────────────────────────────────── */
.champ {
  display: block; width: 100%; min-height: 52px; border: 1px solid var(--trait); border-radius: 16px;
  padding: 12px 16px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px;
  background: var(--surface); color: var(--encre); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.champ:focus { border-color: var(--vert); box-shadow: 0 0 0 4px rgba(37,109,59,0.12); }
.champ::placeholder { color: #C4B9A6; font-weight: 500; }
.champ-court { max-width: 120px; }
.champ-code { font-size: 28px; letter-spacing: 0.4em; text-align: center; font-weight: 700; }
.champ-age { width: 96px; flex-shrink: 0; padding-right: 8px; text-align: center; }
.ligne-ajout { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ligne-ajout .champ { flex: 1; min-width: 0; }
.ligne-ajout .champ-age { flex: 0 0 96px; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth .champ, .auth .btn { margin-top: 12px; }

/* ── Connexion ──────────────────────────────────────── */
.auth { padding: calc(40px + var(--haut)) 26px 40px 26px; }
.auth-marque { text-align: center; margin-bottom: 30px; }
.auth-marque .marque { font-size: 34px; }
.auth-porte { margin: 0 auto 16px auto; width: 70px; height: 104px; }

/* ── Premiers pas ───────────────────────────────────── */
.onb { display: none; padding: 4px 22px 40px 22px; }
.onb.actif { display: block; animation: entree 0.32s cubic-bezier(0.2, 0.8, 0.3, 1); }
.onb .btn-plein.onb-suite, #onb-fin { margin-top: 24px; }
.onb-points { display: flex; gap: 6px; }
.onb-points i { width: 8px; height: 8px; border-radius: 50%; background: var(--trait); transition: background 0.2s, width 0.2s; }
.onb-points i.fait { background: var(--vert); }
.onb-points i.ici { background: var(--orange); width: 22px; border-radius: 4px; }
.onb-apercu { display: flex; justify-content: center; padding: 18px 0 4px 0; }
.couleurs { display: flex; gap: 10px; flex-wrap: wrap; }
.couleur {
  width: 40px; height: 40px; border-radius: 12px; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(25,21,18,0.12), 0 6px 14px -8px rgba(25,21,18,0.4);
}
.couleur.sel { box-shadow: 0 0 0 3px var(--encre); }
.liste-enfants .enfant {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface); border-radius: 16px; margin-bottom: 8px; box-shadow: var(--ombre);
  font-weight: 700;
}
.carte .liste-enfants .enfant { box-shadow: none; background: #F7F4ED; }
.enfant .age { color: var(--doux); font-weight: 500; margin-left: 6px; }
.enfant .suppr { border: none; background: none; color: var(--pale); font-size: 20px; cursor: pointer; padding: 0 4px; }
.guide { margin: 8px 0 0 0; padding-left: 20px; line-height: 1.7; font-size: 14.5px; }
.ico-partage {
  display: inline-block; width: 14px; height: 17px; vertical-align: -3px; margin: 0 2px;
  border: 2px solid var(--encre); border-top: none; border-radius: 0 0 3px 3px; position: relative;
}
.ico-partage::before { content: ''; position: absolute; left: 4px; top: -7px; width: 2px; height: 12px; background: var(--encre); }

/* ── Sortie en cours ────────────────────────────────── */
.badge-direct {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--orange-fonce);
  background: rgba(255,255,255,0.65); padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.badge-direct::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.5s infinite; }
.badge-direct.prevu { color: var(--doux); }
.badge-direct.prevu::before { background: var(--pale); animation: none; }
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.8); } }
.sortie-titre { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; margin-top: 10px; }
.sortie-quand { color: var(--doux); font-weight: 500; font-size: 14px; margin-top: 2px; }
.sortie-venus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.venu {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 700;
}
.venu i { width: 14px; height: 18px; border-radius: 3px; background: var(--c, #CE6A44); display: inline-block; }
.fil { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(226,113,29,0.18); }
.fil-vide { color: var(--doux); font-weight: 500; font-size: 14px; }
.bulle {
  max-width: 84%; padding: 9px 14px; border-radius: 18px; background: #FFFFFF;
  font-size: 14px; font-weight: 500; align-self: flex-start; line-height: 1.4;
  box-shadow: 0 2px 8px -4px rgba(25,21,18,0.18); white-space: pre-line;
}
.bulle .qui { font-size: 11px; font-weight: 700; color: var(--doux); display: block; margin-bottom: 1px; }
.bulle.moi { align-self: flex-end; background: var(--vert); color: #fff; }
.bulle.moi .qui { color: rgba(255,255,255,0.7); }
.bulle.systeme { align-self: center; background: transparent; box-shadow: none; color: var(--doux); font-size: 13px; text-align: center; }
.bulle.jeu {
  align-self: stretch; max-width: 100%;
  background: #FFF6E8; border: 1.5px dashed rgba(226,113,29,0.5); color: #7A4A12; box-shadow: none;
}
.bulle.jeu .qui { color: var(--orange-fonce); }
.bulle.jeu .jeu-nom { font-weight: 800; font-size: 15.5px; display: block; margin-bottom: 4px; color: #5E3A0E; }
.ligne-ecrire { display: flex; gap: 8px; margin-top: 10px; }
.ligne-ecrire .champ { flex: 1; min-height: 46px; border-radius: 999px; }
.sortie-actions { margin-top: 12px; }
.sortie-actions .btn { margin-top: 10px; }

/* Toc reçu, en attente de réponse */
.recu-ligne {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: linear-gradient(135deg, #F08A33, #D9660F); color: #fff;
  border-radius: 22px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: 0 14px 30px -12px rgba(217,102,15,0.6); animation: frappe 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.recu-ligne .rl-titre { font-weight: 800; font-size: 16.5px; }
.recu-ligne .rl-sous { font-size: 13.5px; opacity: 0.88; font-weight: 500; }
.recu-ligne .rl-fleche { margin-left: auto; font-size: 22px; font-weight: 700; }
.mini-porte { width: 34px; height: 50px; flex-shrink: 0; }

/* ── La rue des portes ──────────────────────────────── */
.zone-rue { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-bottom: 10px; }
.porte-bloc { position: relative; text-align: center; cursor: pointer; user-select: none; padding-top: 14px; }
.porte {
  position: relative; width: 118px; height: 178px; margin: 0 auto;
  background: var(--c, #CE6A44);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c, #CE6A44) 78%, #FFFFFF), var(--c, #CE6A44) 64%);
  border: 6px solid #FFFFFF; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(25,21,18,0.10), inset 0 0 0 1px rgba(0,0,0,0.10), 0 18px 30px -16px rgba(25,21,18,0.5);
  transition: transform 0.15s ease;
}
.porte .imposte { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 62px; height: 34px; }
.porte .pan {
  position: absolute; border-radius: 4px; background: rgba(0,0,0,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), inset 0 2px 4px rgba(0,0,0,0.18), inset 0 -1px 1px rgba(255,255,255,0.25);
}
.porte .pan.p1 { left: 15px; top: 50px; width: 33px; height: 40px; }
.porte .pan.p2 { right: 15px; top: 50px; width: 33px; height: 40px; }
.porte .pan.p3 { left: 15px; top: 100px; width: 33px; height: 52px; }
.porte .pan.p4 { right: 15px; top: 100px; width: 33px; height: 52px; }
.porte .rosace { position: absolute; right: 5px; top: 86px; width: 6px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, #ECECEA, #9FA0A2); }
.porte .bequille { position: absolute; right: 7px; top: 91px; width: 22px; height: 5px; border-radius: 3px; background: linear-gradient(180deg, #F0F0EE, #A8A9AB); box-shadow: 0 2px 3px rgba(0,0,0,0.25); }
.porte .plaque {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c, #CE6A44); color: #FFFFFF; font-weight: 700; font-size: 10.5px;
  padding: 2px 9px; border-radius: 999px; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 3px 8px -3px rgba(25,21,18,0.4); z-index: 2;
}
/* Porte réduite : même dessin, mis à l'échelle */
.porte-reduite { width: 118px; height: 178px; transform-origin: top left; }
.porte-echelle { position: relative; overflow: visible; }
.paillasson { width: 72px; height: 7px; margin: 7px auto 0 auto; border-radius: 4px; background: rgba(25,21,18,0.14); }
.porte-bloc:active .porte { transform: scale(0.96); }
.porte.toc { animation: toquer 0.8s ease; }
.poing {
  position: absolute; right: 6px; top: 78px; font-size: 42px; z-index: 3;
  animation: cogner 0.22s ease-in 3; pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(25,21,18,0.35));
}
@keyframes cogner {
  0% { transform: translate(22px, 14px) rotate(-14deg); }
  55% { transform: translate(-2px, 0) rotate(0deg) scale(0.95); }
  100% { transform: translate(22px, 14px) rotate(-14deg); }
}
.mot-toc {
  position: absolute; right: -10px; font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: 18px; color: var(--orange); z-index: 4; pointer-events: none;
  animation: toc-pop 0.6s ease forwards;
}
@keyframes toc-pop {
  0% { opacity: 0; transform: scale(0.4) rotate(8deg); }
  30% { opacity: 1; transform: scale(1.2) rotate(-4deg); }
  100% { opacity: 0; transform: scale(1) translateY(-16px); }
}
@keyframes toquer {
  12%, 36%, 60% { transform: translateX(-3px) rotate(-0.8deg); }
  24%, 48%, 72% { transform: translateX(3px) rotate(0.8deg); }
}
.porte-nom { font-weight: 700; font-size: 14px; margin-top: 10px; line-height: 1.3; }
.porte-fam { font-size: 12.5px; font-weight: 500; color: var(--doux); }
.porte-badge {
  display: inline-block; margin-top: 6px; background: var(--vert-tint); color: var(--vert);
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
}
.porte-badge.attente { background: var(--orange-tint); color: var(--orange-fonce); }
.porte-badge.toque { background: #F1EDE2; color: var(--doux); }
.porte-dispo { font-size: 11px; font-weight: 600; color: #B09B7C; margin-top: 3px; font-style: italic; }
.endormie .porte { filter: grayscale(0.85) opacity(0.72); }
.endormie .porte-nom { color: var(--doux); }
.porte-bloc.ajout .porte { background: transparent; border: 3px dashed #D4CBB8; box-shadow: none; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #C4B9A6; }
.zone-rue-mini { grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.zone-rue-mini .porte-bloc { cursor: default; }
.zone-rue-mini .porte-echelle { height: 118px; }
.zone-rue-mini .porte-nom { font-size: 12.5px; margin-top: 6px; }
.zone-rue-mini .porte-fam { font-size: 11px; }

/* Gestion de la rue, en liste */
.liste-portes { margin-bottom: 14px; }
.ligne-porte {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface);
  border-radius: 18px; margin-bottom: 8px; box-shadow: var(--ombre); cursor: pointer;
}
.ligne-porte .lp-txt { flex: 1; min-width: 0; }
.ligne-porte .lp-nom { font-weight: 800; font-size: 15.5px; }
.ligne-porte .lp-enf { font-size: 13px; color: var(--doux); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-porte .lp-etat { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--vert-tint); color: var(--vert); white-space: nowrap; }
.ligne-porte .lp-etat.dort { background: #F1EDE2; color: var(--doux); }
.arrivee { display: flex; align-items: center; gap: 12px; }
.arrivee .lp-txt { flex: 1; }
.arrivee .btn { min-height: 42px; width: auto; padding: 0 16px; font-size: 14px; margin: 0; }
.arrivee .btn + .btn { margin: 0 0 0 6px; }
.pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-left: -2px; }

/* ── Page d'invitation ──────────────────────────────── */
.invit { padding: 0 24px 40px 24px; text-align: center; }
.invit-porte { display: flex; justify-content: center; margin: 10px 0 6px 0; }
.invit-sortie { text-align: left; margin: 14px 0; }
.toc-titre { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 38px; margin: 6px 0 0 0; letter-spacing: -0.01em; }
.toc-msg { font-weight: 600; font-size: 18px; line-height: 1.4; margin: 6px 0 4px 0; color: #4A4238; }
.choix-enfants { display: flex; flex-wrap: wrap; justify-content: center; margin: 4px 0 8px 0; }
.chargement { padding: 80px 0; text-align: center; }
.rond {
  display: inline-block; width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--trait); border-top-color: var(--vert); animation: tourne 0.8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

/* ── Feuilles ───────────────────────────────────────── */
#voile {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(25,21,18,0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.feuille {
  display: none; position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 430px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--fond); border-radius: 30px 30px 0 0;
  padding: 12px 26px calc(32px + var(--bas)) 26px; z-index: 50; text-align: center;
  box-shadow: 0 -20px 60px rgba(25,21,18,0.25);
}
.poignee { width: 42px; height: 5px; border-radius: 3px; background: #D9D2C2; margin: 0 auto 20px auto; }
.cloche {
  width: 84px; height: 84px; border-radius: 28px;
  background: linear-gradient(135deg, #F08A33, #D9660F);
  margin: 0 auto 14px auto; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -10px rgba(217,102,15,0.55);
  animation: frappe 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes frappe { 0% { transform: scale(0.6) rotate(-8deg); } 100% { transform: none; } }
.feuille h2 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 32px; margin: 0; letter-spacing: -0.01em; }
.feuille .msg { font-weight: 600; font-size: 17px; line-height: 1.4; margin: 6px 0 16px 0; color: #4A4238; }
.feuille .etiquette:first-child { margin-top: 4px; }
.recu-porte { display: flex; justify-content: center; margin-bottom: 8px; animation: frappe 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.fr-quand { font-weight: 700; color: var(--orange-fonce); margin-bottom: 14px; }
.apercu-message {
  text-align: left; background: #fff; border-radius: 18px; padding: 14px 16px; margin: 10px 0 16px 0;
  font-size: 14.5px; line-height: 1.5; box-shadow: var(--ombre); white-space: pre-line;
}

/* ── Toast ──────────────────────────────────────────── */
#toast {
  display: none; position: fixed; left: 50%; bottom: calc(116px + var(--bas)); transform: translateX(-50%);
  background: rgba(25,21,18,0.88); color: #FFF8EC; font-weight: 600; font-size: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 13px 22px; border-radius: 22px; z-index: 60; width: max-content; max-width: 88%; text-align: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
}

/* ── Navigation basse ───────────────────────────────── */
#nav {
  position: fixed; left: 50%; bottom: calc(14px + var(--bas)); transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 382px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(236,230,217,0.9);
  display: flex; padding: 8px; z-index: 30; border-radius: 999px;
  box-shadow: 0 18px 40px -14px rgba(25,21,18,0.28);
}
#nav .onglet {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--doux); cursor: pointer;
  padding: 12px 0; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
#nav .onglet.actif { color: #fff; background: linear-gradient(135deg, var(--vert-vif), var(--vert)); font-weight: 700; }

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