/* ══════════════════════════════════════════════════════════════
   Loumya — public/assets/tunnel.css (v01 · 24/09/2026)
   Habillage du PARCOURS CLIENT (séances, mariage, cartes cadeaux).
   Mobile d'abord. Les couleurs d'accent sont celles du PHOTOGRAPHE,
   injectées par gabarits/tunnel.php (variables --accent-*, --fond),
   déjà corrigées pour le contraste (src/Tunnel.php). Les neutres
   ci-dessous sont fixes et calculés : texte ≥ 4,5:1 sur tous les fonds.
   Titres : Cormorant Garamond · texte : Nunito Sans.
   « Réduire les animations » raccourcit et adoucit, sans supprimer.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Repli si le gabarit n'a rien injecté */
  --accent: #a08a78;
  --accent-texte: #6b5a4a;
  --accent-bouton: #6b5a4a;
  --accent-survol: #5e4f41;
  --accent-pale: #f1ede9;
  --accent-voile: #e0d7cf;
  --fond: #f9f7f5;

  --encre: #2b2622;          /* 14:1 sur blanc */
  --encre-2: #5c534c;        /* 7:1 sur blanc, ≥ 6:1 sur --fond */
  --encre-3: #6f665f;        /* 5,6:1 sur blanc — notes */
  --blanc: #ffffff;
  --ligne: rgba(58, 44, 34, 0.13);
  --ligne-forte: rgba(58, 44, 34, 0.26);
  --ombre-1: 0 1px 2px rgba(43, 32, 24, 0.05), 0 2px 8px -2px rgba(43, 32, 24, 0.06);
  --ombre-2: 0 2px 4px rgba(43, 32, 24, 0.04), 0 14px 32px -14px rgba(43, 32, 24, 0.22);
  --ambre-fond: #fdf5e4;
  --ambre-bord: #c9a227;
  --ambre-texte: #5f4600;    /* 8:1 sur --ambre-fond */
  --erreur-fond: #fdf0ef;
  --erreur-texte: #9b2219;   /* 7:1 sur --erreur-fond */
  --succes-fond: #e6f1e8;
  --succes-texte: #2c6236;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rayon: 18px;
  --rayon-petit: 12px;
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duree: 0.42s;
  --hauteur-haut: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  background-image:
    radial-gradient(120% 60% at 50% -10%, var(--blanc) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 50% at 100% 100%, var(--accent-pale) 0%, rgba(255, 255, 255, 0) 70%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: var(--accent-texte); }

:focus-visible { outline: 3px solid var(--accent-texte); outline-offset: 3px; border-radius: 6px; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent-bouton); color: var(--blanc);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700;
}
.lien-evitement:focus { top: 12px; }

/* ══════ STRUCTURE ════════════════════════════════════════════ */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.haut {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  min-height: var(--hauteur-haut);
  padding: 8px 16px;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--ligne);
}
.sur-accueil .haut { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sur-accueil .haut-nom { visibility: hidden; }
.haut-nom {
  grid-column: 2; margin: 0; text-align: center;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--encre-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.haut-etape { grid-column: 3; font-size: 0.8rem; font-weight: 700; color: var(--encre-2); white-space: nowrap; min-width: 44px; text-align: right; }
.btn-rond {
  grid-column: 1; grid-row: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--ligne); background: var(--blanc); color: var(--encre);
  box-shadow: var(--ombre-1);
  transition: transform 0.2s var(--courbe), border-color 0.2s;
}
.btn-rond:hover { border-color: var(--ligne-forte); transform: translateX(-2px); }
.btn-rond[hidden] { display: none; }
.progression {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent;
}
.progression[hidden] { display: none; }
.progression span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-texte));
  border-radius: 0 3px 3px 0;
  transition: width 0.6s var(--courbe);
}

.cadre {
  flex: 1;
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: 24px 16px 0;
}
.colonne { min-width: 0; }
.scene { outline: none; }

.pied { padding: 28px 16px calc(120px + env(safe-area-inset-bottom)); text-align: center; }
.sur-accueil .pied { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.pied-marque {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 0.78rem; font-weight: 600; color: var(--encre-3); text-decoration: none;
}
.pied-marque:hover { color: var(--encre); }
.pied-marque img { opacity: 0.7; }

/* ══════ ÉCRAN ═════════════════════════════════════════════════ */
.ecran { padding-bottom: 8px; }
.anim-avant { animation: glisse-avant var(--duree) var(--courbe) both; }
.anim-arriere { animation: glisse-arriere var(--duree) var(--courbe) both; }
@keyframes glisse-avant { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glisse-arriere { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

.etiquette {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-texte); margin-bottom: 10px;
}
.titre {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 7.2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.01em;
  color: var(--encre); outline: none;
  text-wrap: balance;
}
.titre em { font-style: italic; color: var(--accent-texte); font-weight: 500; }
.sous-titre { margin-top: 12px; color: var(--encre-2); font-size: 1.02rem; max-width: 52ch; text-wrap: pretty; }
.ecran-corps { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.texte { color: var(--encre-2); }
.texte strong { color: var(--encre); }
.texte--discret { font-size: 0.9rem; color: var(--encre-3); }
.petit-titre {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--encre-2); margin-bottom: 12px; text-align: left;
}

/* ══════ ACCUEIL ══════════════════════════════════════════════ */
.ecran--accueil { text-align: center; padding-top: 8px; }
.ecran--accueil .sous-titre { margin-left: auto; margin-right: auto; }
.ecran--accueil .ecran-corps { align-items: stretch; max-width: 440px; margin-left: auto; margin-right: auto; }
.identite { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.medaillon {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blanc), var(--accent-pale));
  border: 1px solid var(--ligne);
  box-shadow: 0 0 0 6px var(--blanc), 0 0 0 7px var(--accent-voile), var(--ombre-2);
  font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--accent-texte);
  object-fit: cover;
}
.identite-nom {
  margin-top: 22px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre);
}
.identite-metier { margin-top: 4px; font-size: 0.9rem; color: var(--encre-2); }
.identite-accroche { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent-texte); }
.identite-trait { display: block; width: 48px; height: 1px; margin-top: 22px; background: var(--accent); }
.ecran--accueil .titre { font-size: clamp(2.3rem, 9vw, 3.3rem); }

.entrees { display: flex; flex-direction: column; gap: 12px; }
.entree {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 56px; padding: 14px 20px; text-align: left;
  border-radius: 999px; border: 1px solid var(--ligne); background: var(--blanc);
  font-weight: 700; color: var(--encre);
  box-shadow: var(--ombre-1);
  transition: transform 0.25s var(--courbe), box-shadow 0.25s var(--courbe), border-color 0.2s, background 0.2s;
}
.entree:hover { transform: translateY(-2px); box-shadow: var(--ombre-2); border-color: var(--ligne-forte); }
.entree-textes { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.entree-libelle { font-size: 1rem; }
.entree-sous { font-size: 0.85rem; font-weight: 600; color: var(--encre-2); }
.entree-icone { display: grid; place-items: center; color: var(--accent-texte); flex-shrink: 0; }
.entree--principal {
  justify-content: center; text-align: center;
  min-height: 60px; background: var(--accent-bouton); color: var(--blanc); border-color: transparent;
  font-size: 1.02rem; letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -12px var(--accent-bouton);
}
.entree--principal .entree-textes { flex: 0 1 auto; }
.entree--principal:hover { background: var(--accent-survol); }
.entree--contour {
  border-radius: var(--rayon); padding: 16px 18px; margin-top: 8px;
  background: linear-gradient(135deg, var(--blanc), var(--accent-pale));
}
.entree--contour .entree-icone {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blanc); border: 1px solid var(--ligne);
}
.entree--contour .entree-libelle { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.entree-fleche { color: var(--encre-2); display: grid; place-items: center; }
.entree--lien {
  justify-content: center; background: transparent; border: none; box-shadow: none;
  color: var(--accent-texte); text-decoration: underline; text-underline-offset: 4px;
}
.entree--lien:hover { transform: none; box-shadow: none; }
.entree--lien .entree-textes { flex: 0 1 auto; }
.lien-discret {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 28px;
  font-size: 0.88rem; font-weight: 700; color: var(--encre-2); text-decoration: none;
}
.lien-discret:hover { color: var(--encre); }

/* ══════ CARTES À TOUCHER ═════════════════════════════════════ */
.bloc-choix { display: flex; flex-direction: column; gap: 14px; }
.choix { display: grid; gap: 12px; grid-template-columns: 1fr; }
.choix--compact { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) {
  .choix--c2, .choix--seances { grid-template-columns: repeat(2, 1fr); }
  .choix--c3 { grid-template-columns: repeat(3, 1fr); }
}
.carte-choix {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; min-height: 64px; padding: 18px;
  text-align: left; color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  box-shadow: var(--ombre-1);
  transition: transform 0.28s var(--courbe), box-shadow 0.28s var(--courbe), border-color 0.2s, background-color 0.2s;
}
.choix--c3 .carte-choix { flex-direction: column; align-items: flex-start; }
@media (max-width: 559px) { .choix--c3 .carte-choix { flex-direction: row; align-items: center; } }
.carte-choix--ligne { align-items: center; }
.carte-choix--centre { justify-content: center; text-align: center; align-items: center; }
.carte-choix:hover { transform: translateY(-2px); box-shadow: var(--ombre-2); border-color: var(--ligne-forte); }
.carte-choix:active { transform: translateY(0) scale(0.99); }
.carte-choix.est-choisi {
  background: var(--accent-pale);
  border-color: var(--accent-texte);
  box-shadow: inset 0 0 0 1px var(--accent-texte), var(--ombre-1);
}
.carte-choix-icone {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-pale); color: var(--accent-texte);
  transition: background-color 0.2s, color 0.2s;
}
.carte-choix.est-choisi .carte-choix-icone { background: var(--accent-bouton); color: var(--blanc); }
.carte-choix-textes { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; padding-right: 18px; }
.carte-choix--centre .carte-choix-textes { padding-right: 0; align-items: center; }
.carte-choix-titre { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.carte-choix-titre--grand { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.carte-choix-titre em { font-style: italic; color: var(--accent-texte); }
.carte-choix-sous { font-size: 0.9rem; color: var(--encre-2); line-height: 1.45; }
.carte-choix-meta { margin-top: 6px; font-size: 0.82rem; font-weight: 700; color: var(--accent-texte); letter-spacing: 0.02em; }
.carte-choix-surtitre { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-texte); }
.carte-choix-coche {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-bouton); color: var(--blanc);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.2s, transform 0.3s var(--courbe);
}
.carte-choix.est-choisi .carte-choix-coche { opacity: 1; transform: none; }
.carte-choix--seance .carte-choix-titre { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.carte-choix--vedette {
  background: linear-gradient(135deg, var(--accent-pale), var(--blanc) 70%);
  border-color: var(--accent-voile);
}
.carte-choix svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.zone-revele:empty { display: none; }
.zone-revele { animation: fondu 0.3s ease both; }

/* ══════ ENCADRÉS, LISTES, CARTES D'INFO ══════════════════════ */
.encadre {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--rayon);
  font-size: 0.95rem; color: var(--encre-2);
}
.encadre strong { color: var(--encre); }
.encadre--doux { background: var(--accent-pale); }
.encadre--neutre, .encadre--info { background: var(--blanc); border: 1px solid var(--ligne); }
.encadre--ambre { background: var(--ambre-fond); border-left: 3px solid var(--ambre-bord); color: var(--ambre-texte); }
.encadre--ambre strong, .encadre--ambre .encadre-titre { color: var(--ambre-texte); }
.encadre-icone {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blanc); color: var(--accent-texte);
}
.encadre--neutre .encadre-icone { background: var(--accent-pale); }
.encadre--ambre .encadre-icone { color: var(--ambre-texte); }
.encadre-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.encadre-titre { font-weight: 800; color: var(--encre); }

.bloc-liste { padding: 20px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.puces, .etapes-num { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.puces li, .etapes-num li { display: flex; gap: 12px; align-items: flex-start; color: var(--encre-2); }
.puce {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; background: var(--accent-pale); color: var(--accent-texte);
}
.etapes-num-pastille {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-bouton); color: var(--blanc); font-weight: 800; font-size: 0.85rem;
}
.tableau-prix { width: 100%; border-collapse: collapse; }
.tableau-prix caption { text-align: left; }
.tableau-prix th, .tableau-prix td { padding: 10px 4px; border-bottom: 1px solid var(--ligne); }
.tableau-prix th { text-align: left; font-weight: 600; color: var(--encre-2); }
.tableau-prix td { text-align: right; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.tableau-prix tr.est-surligne th, .tableau-prix tr.est-surligne td { color: var(--accent-texte); border-bottom: none; }
.tableau-prix tr.est-surligne { background: var(--accent-pale); }

.cartes-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.carte-info {
  padding: 16px; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.carte-info--large { grid-column: 1 / -1; }
.carte-info-icone { color: var(--accent-texte); margin-bottom: 6px; }
.carte-info-libelle { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-2); }
.carte-info-valeur { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.carte-info-note { font-size: 0.85rem; color: var(--encre-3); }

/* ══════ CHAMPS ═══════════════════════════════════════════════ */
.groupe { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.libelle { font-size: 0.86rem; font-weight: 800; color: var(--encre); }
.aide { font-size: 0.86rem; color: var(--encre-3); }
.saisie {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font-size: 16px; /* 16 px : pas de zoom automatique sur iPhone */
  background: var(--blanc); color: var(--encre);
  border: 1px solid var(--ligne-forte); border-radius: var(--rayon-petit);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
textarea.saisie { min-height: 110px; resize: vertical; line-height: 1.5; }
.saisie::placeholder { color: #857b73; opacity: 1; }
.saisie:hover { border-color: var(--encre-3); }
.saisie:focus { outline: none; border-color: var(--accent-texte); box-shadow: 0 0 0 4px var(--accent-voile); }
.saisie[aria-invalid="true"] { border-color: var(--erreur-texte); }
.saisie--ambre { border-color: var(--ambre-bord); }
.erreur-champ { font-size: 0.86rem; font-weight: 600; color: var(--erreur-texte); }
.erreur-champ:empty { display: none; }
.deux-colonnes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.coordonnees, .verification { display: flex; flex-direction: column; gap: 18px; }
.message-tel:empty { display: none; }
.message-tel { font-size: 0.88rem; line-height: 1.5; padding: 10px 12px; border-radius: 10px; }
.message-tel--ambre { background: var(--ambre-fond); color: var(--ambre-texte); border-left: 3px solid var(--ambre-bord); }
.message-tel--erreur { background: var(--erreur-fond); color: var(--erreur-texte); font-weight: 600; }
.suggestion {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 10px 14px; border-radius: 10px; background: var(--accent-pale); font-size: 0.92rem;
}
.suggestion[hidden] { display: none; }
.btn-lien {
  min-height: 44px; padding: 0 4px; background: none; border: none;
  font-weight: 800; color: var(--accent-texte); text-decoration: underline; text-underline-offset: 3px;
}

/* Cases à cocher (24 px, étiquette cliquable, cible ≥ 44 px) */
.case-ligne { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; }
.case-ligne label { display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding-top: 1px; }
.case-texte { font-weight: 600; color: var(--encre); }
.case {
  flex-shrink: 0; width: 24px; height: 24px; margin: 0; margin-top: 1px;
  -webkit-appearance: none; appearance: none;
  border: 2px solid var(--encre-2); border-radius: 7px; background: var(--blanc);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.case::after {
  content: ''; width: 12px; height: 7px; margin-top: -3px;
  border-left: 2.5px solid var(--blanc); border-bottom: 2.5px solid var(--blanc);
  transform: rotate(-45deg) scale(0); transition: transform 0.2s var(--courbe);
}
.case:checked { background: var(--accent-bouton); border-color: var(--accent-bouton); }
.case:checked::after { transform: rotate(-45deg) scale(1); }
.consentement { padding: 16px 18px; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne); }

.relecture {
  padding: 18px; border-radius: var(--rayon); background: var(--accent-pale);
  display: flex; flex-direction: column; gap: 12px;
  animation: fondu 0.3s ease both;
}
.relecture[hidden] { display: none; }
.relecture-titre { font-weight: 700; color: var(--encre); }
.relecture-lignes { display: flex; flex-direction: column; gap: 8px; }
.relecture-lignes div { display: flex; align-items: center; gap: 10px; }
.relecture-lignes dt { color: var(--accent-texte); display: grid; place-items: center; }
.relecture-lignes dd { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }

/* Compteurs */
.compteur-bloc { display: flex; flex-direction: column; gap: 12px; }
.compteur {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 20px; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne);
}
.compteur-libelle { font-weight: 800; }
.compteur-commandes { display: flex; align-items: center; gap: 6px; }
.compteur-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ligne-forte); background: var(--blanc); color: var(--encre);
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.compteur-btn:hover:not(:disabled) { border-color: var(--accent-texte); background: var(--accent-pale); }
.compteur-btn:active:not(:disabled) { transform: scale(0.94); }
.compteur-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.compteur-valeur { min-width: 2.2ch; text-align: center; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.ages { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ages:empty { display: none; }

/* ══════ CALENDRIER MAISON ════════════════════════════════════ */
.bloc-calendrier { display: flex; flex-direction: column; gap: 16px; }
.calendrier {
  padding: 16px; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne);
  box-shadow: var(--ombre-1);
}
.cal-haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-mois { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; text-transform: capitalize; }
.cal-nav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--ligne); color: var(--encre);
}
.cal-nav:hover:not(:disabled) { background: var(--accent-pale); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-jours, .cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-jours span { text-align: center; font-size: 0.74rem; font-weight: 800; color: var(--encre-3); padding: 4px 0; }
.cal-jour {
  position: relative;
  min-height: 44px; aspect-ratio: 1 / 1; max-height: 54px; width: 100%;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid transparent;
  background: var(--accent-pale); color: var(--encre);
  font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums;
  transition: background-color 0.15s, transform 0.15s, color 0.15s;
}
.cal-jour:hover:not(:disabled) { background: var(--accent-voile); }
.cal-jour.est-aujourdhui::after {
  content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.cal-jour.est-indisponible {
  background: transparent; color: #8b827b; font-weight: 600; cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: rgba(58, 44, 34, 0.35);
}
.cal-jour.est-choisi, .cal-jour.est-choisi:hover:not(:disabled) { background: var(--accent-bouton); color: var(--blanc); box-shadow: 0 6px 16px -8px var(--accent-bouton); }
.cal-legende { display: flex; gap: 18px; justify-content: center; font-size: 0.82rem; color: var(--encre-2); }
.legende { display: inline-flex; align-items: center; gap: 6px; }
.legende::before { content: ''; width: 12px; height: 12px; border-radius: 4px; }
.legende--libre::before { background: var(--accent-pale); border: 1px solid var(--accent-voile); }
.legende--pris::before { background: transparent; border: 1px dashed var(--ligne-forte); }
.heures { display: flex; flex-direction: column; gap: 10px; }
.heures:empty { display: none; }
.heures-titre { color: var(--encre-2); }
.heures-titre strong { color: var(--encre); text-transform: capitalize; }
.heures-groupe { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-3); margin-top: 4px; }
.heures-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.heure {
  min-height: 44px; border-radius: 999px; border: 1px solid var(--ligne-forte); background: var(--blanc);
  font-weight: 800; font-size: 0.92rem; font-variant-numeric: tabular-nums;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.heure:hover:not(:disabled) { border-color: var(--accent-texte); background: var(--accent-pale); }
.heure.est-choisi, .heure.est-choisi:hover:not(:disabled) { background: var(--accent-bouton); border-color: var(--accent-bouton); color: var(--blanc); }
.heure:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.date-choisie { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent-texte); }
.date-choisie:empty { display: none; }
.date-choisie span::first-letter { text-transform: uppercase; }
.lien-action {
  align-self: center; min-height: 44px; padding: 8px 12px;
  background: none; border: none; font-weight: 700; color: var(--accent-texte);
  text-decoration: underline; text-underline-offset: 4px; text-align: center;
}
.chargement { padding: 40px 0; text-align: center; color: var(--encre-2); animation: pulsation 1.4s ease-in-out infinite; }
@keyframes pulsation { 50% { opacity: 0.5; } }

/* Créneaux proposés (mariage) */
.creneaux { display: flex; flex-direction: column; gap: 14px; }
.creneaux-liste { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.creneau {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px;
  border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); animation: fondu 0.3s ease both;
}
.creneau-num {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-bouton); color: var(--blanc); font-weight: 800; font-size: 0.82rem;
}
.creneau-texte { flex: 1; font-weight: 700; min-width: 0; }
.creneau-texte::first-letter { text-transform: uppercase; }
.creneau-retirer {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: none; color: var(--encre-2);
}
.creneau-retirer:hover { background: var(--erreur-fond); color: var(--erreur-texte); }
.creneaux-aide { font-weight: 700; color: var(--accent-texte); }
.creneaux-ajout { display: flex; flex-direction: column; gap: 12px; }
.creneaux-ajout[hidden] { display: none; }

/* ══════ RÉCAPITULATIF ═══════════════════════════════════════ */
.recap {
  padding: 20px; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne);
  box-shadow: var(--ombre-1);
}
.recap-titre { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.recap-lignes { display: flex; flex-direction: column; }
.recap-ligne {
  display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--ligne);
  font-size: 0.93rem;
}
.recap-ligne dt { color: var(--encre-2); }
.recap-ligne dd { font-weight: 700; overflow-wrap: anywhere; }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.recap-total span { font-weight: 800; }
.recap-total strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--accent-texte); }
.recap-note { margin-top: 6px; font-size: 0.82rem; color: var(--encre-3); }

.recap-lateral[hidden] { display: none; }
@media (max-width: 1023px) { .recap-lateral { display: none; } }   /* sur téléphone : la barre collante suffit */

/* ══════ BARRE D'ACTION (collée en bas) ═══════════════════════ */
.barre-action {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--blanc) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--ligne);
  animation: fondu 0.3s ease both;
}
.barre-action[hidden] { display: none; }
.barre-recap { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.barre-recap-montant { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; color: var(--encre); white-space: nowrap; }
.barre-recap-note { font-size: 0.78rem; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-action--sans-bouton .barre-recap { align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.2s, transform 0.2s var(--courbe), box-shadow 0.2s, opacity 0.2s;
}
.btn[hidden] { display: none; }
.btn-principal {
  background: var(--accent-bouton); color: var(--blanc);
  box-shadow: 0 10px 22px -12px var(--accent-bouton);
  flex-shrink: 0;
}
.btn-principal:hover:not(:disabled) { background: var(--accent-survol); transform: translateY(-1px); }
.btn-principal:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }
.btn-principal[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.btn-secondaire { background: var(--blanc); border-color: var(--ligne-forte); color: var(--encre); }
.btn-secondaire:hover:not(:disabled) { border-color: var(--accent-texte); background: var(--accent-pale); }
.btn-secondaire:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-large { width: 100%; margin-top: 28px; }

.alerte {
  padding: 14px 16px; border-radius: 12px; background: var(--erreur-fond); color: var(--erreur-texte);
  border-left: 3px solid var(--erreur-texte); font-weight: 600;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.alerte[hidden] { display: none; }

/* ══════ MERCI ════════════════════════════════════════════════ */
.ecran--merci { text-align: center; }
.ecran--merci .sous-titre { margin-left: auto; margin-right: auto; }
.ecran--merci .ecran-corps { text-align: left; }
.ecran--merci .texte { text-align: center; }
.merci-rond {
  width: 76px; height: 76px; margin: 8px auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--succes-fond); color: var(--succes-texte);
  animation: apparition-rond 0.6s var(--courbe) both;
}
.merci-rond svg path { stroke-width: 2.2; }
.merci-rond--neutre { background: var(--accent-pale); color: var(--accent-texte); }
@keyframes apparition-rond { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
[data-ecran="epuisees"] { text-align: center; }
[data-ecran="epuisees"] .sous-titre { margin-left: auto; margin-right: auto; }

/* ══════ CARTE CADEAU (aperçu) ════════════════════════════════ */
.bloc-apercu { display: flex; justify-content: center; }
.carte-cadeau {
  width: 100%; max-width: 440px; aspect-ratio: 1.58 / 1;
  padding: 12px; border-radius: 20px;
  background:
    radial-gradient(90% 120% at 100% 0%, var(--accent-voile) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, var(--blanc) 0%, var(--accent-pale) 100%);
  box-shadow: var(--ombre-2), inset 0 0 0 1px var(--ligne);
}
.cc-cadre {
  height: 100%; border: 1px solid var(--accent-voile); border-radius: 12px;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; text-align: center; justify-content: center;
  overflow: hidden;
}
.cc-marque { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre-2); }
.cc-bon { font-family: var(--serif); font-size: clamp(1.4rem, 6vw, 1.9rem); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-texte); line-height: 1.1; }
.cc-theme { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.cc-mot { font-size: 0.82rem; color: var(--encre-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.cc-noms { display: flex; justify-content: center; gap: 18px; margin-top: 6px; font-size: 0.8rem; }
.cc-noms div { min-width: 0; }
.cc-noms dt { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-3); }
.cc-noms dd { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16ch; }
.cc-numero { font-size: 0.7rem; font-weight: 700; color: var(--encre-3); letter-spacing: 0.08em; }
.cc-numero:empty { display: none; }

/* ══════ BUREAU : colonne + récapitulatif latéral collant ═════ */
@media (min-width: 1024px) {
  .cadre {
    max-width: 1080px; padding: 48px 32px 0;
    display: grid; grid-template-columns: minmax(0, 640px) 320px; gap: 56px; justify-content: center;
  }
  .sur-accueil .cadre { grid-template-columns: minmax(0, 640px); }
  .recap-lateral { position: sticky; top: calc(var(--hauteur-haut) + 32px); align-self: start; }
  .recap-lateral .recap { box-shadow: var(--ombre-2); }
  .barre-action {
    position: sticky; bottom: 20px; margin-top: 32px;
    border: 1px solid var(--ligne); border-radius: 999px; padding: 10px 10px 10px 24px;
    box-shadow: var(--ombre-2);
  }
  .barre-action--sans-bouton { display: none; }
  .pied { padding-bottom: 40px; }
  .haut { padding: 10px 32px; }
  .choix--compact { grid-template-columns: repeat(3, 1fr); }
}

/* ══════ ANIMATIONS RÉDUITES : plus courtes et sans déplacement ═ */
@media (prefers-reduced-motion: reduce) {
  :root { --duree: 0.2s; }
  .anim-avant, .anim-arriere { animation-name: fondu; }
  .carte-choix, .entree, .btn, .btn-rond, .cal-jour, .heure { transition-duration: 0.12s; }
  .carte-choix:hover, .entree:hover, .btn-principal:hover:not(:disabled), .btn-rond:hover { transform: none; }
  .merci-rond { animation: fondu 0.25s ease both; }
  .progression span { transition-duration: 0.2s; }
  .chargement { animation-duration: 2.8s; }
}

/* ══════ Aperçu du builder (tableau de bord) ══════ */
.bandeau-apercu {
  position: sticky; top: 0; z-index: 30; margin: 0; padding: 6px 12px;
  background: var(--accent-bouton); color: #fff; text-align: center;
  font: 700 .78rem/1.4 'Nunito Sans', system-ui, sans-serif; letter-spacing: .02em;
}
