/*
 * OCD Live : blanc, une seule couleur d'accent (l'orange du logo), beaucoup d'air.
 * Règles : 2 rayons d'angle, 1 ombre, 3 graisses de police, rien posé sur les visages.
 * L'accueil est un seul écran, comme une story. Le filigrane n'apparaît que là, dans la partie orange.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --fond: #FFFFFF;
  --teinte: #FFF6EF;
  --encre: #2A1D14;
  --gris: #6B5F55;
  --gris-clair: #B5ABA1;
  --filet: #ECE5DD;
  --filet-fort: #D9D0C6;
  --doux: #F6F1EC;
  --sable: #F3EEE8;
  --orange: #F16806;
  --orange-texte: #B84C00;
  --vert: #25D366;
  --rouge: #B3261E;
  --rayon: 18px;
  --rayon-petit: 12px;
  --ombre: 0 1px 2px rgba(42, 29, 20, .04), 0 10px 30px rgba(42, 29, 20, .06);
  --gouttiere: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* scroll-padding : un champ qui reçoit le focus ne passe pas sous la barre du haut */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-padding-bottom: 90px; background: var(--fond); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--fond);
  color: var(--encre);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  /* Des lettres plus fines et plus nettes sur Mac et iPhone */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--orange-texte); outline-offset: 2px; }
h1:focus { outline: none; }

h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h2 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
/* Pas de mot tout seul en bout de titre ou de paragraphe (navigateurs récents, sans effet ailleurs) */
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
/* Les titres des étapes : grands et serrés, comme le message de l'accueil */
.carte h1 { font-size: clamp(28px, 7.8vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.carte h2 { letter-spacing: -.025em; }
/* Heures, dates et prix : des chiffres de même largeur, alignés */
.jour, .creneau, .pack-prix, .recap-heure, .barre-etape, .journee-heures, .rapide-texte { font-variant-numeric: tabular-nums; }

.ecran {
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--gouttiere) 64px;
  animation: entree .16s ease-out both;
}

/*
 * Toutes les étapes de réservation se ressemblent : un fond sable très clair, le logo en filigrane
 * à peine visible, et une carte blanche posée dessus. L'orange est gardé pour ce qui compte :
 * le jour choisi, les prix, le bouton. Dans la carte, un seul beige pour tout ce qui se touche.
 */
.ecran-carte {
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  padding: 16px 12px 40px;
  background: var(--sable) url("images/filigrane-orange.svg") no-repeat right -130px bottom -50px / 520px auto;
}
.carte {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 28px;
  border-radius: 26px;
  background: var(--fond);
  box-shadow: 0 1px 2px rgba(42, 29, 20, .04), 0 18px 48px -18px rgba(110, 70, 30, .22);
}
.carte-large { max-width: 1040px; }

/*
 * La signature de chaque carte : l'Afrique en points, comme le mur lumineux du plateau, dans un rond
 * en relief à côté du titre. Lomé bat doucement : c'est là que se font les lives.
 */
.carte-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.carte-tete h1 { flex: 1 1 auto; min-width: 0; }
.afrique {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--fond) url("images/afrique.svg") no-repeat center / 64% auto;
  box-shadow: 0 0 0 1px var(--filet), 0 10px 22px -10px rgba(110, 70, 30, .35);
}
/* Lomé : la carte occupe 64 % du rond, Lomé est à 27,5 % de sa largeur et 43 % de sa hauteur */
.afrique::after {
  content: "";
  position: absolute;
  top: calc(45.31% - 3.5px);
  left: calc(35.57% - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: lome 2.6s ease-out infinite;
}
.fin-tete { align-items: center; margin-bottom: 18px; }
.fin-tete .fin-coche { margin: 0; }
@keyframes lome {
  0% { box-shadow: 0 0 0 0 rgba(241, 104, 6, .5); }
  70% { box-shadow: 0 0 0 12px rgba(241, 104, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 104, 6, 0); }
}
/* Sous les écrans courts, la page garde le fond sable jusqu'en bas */
.page-site, html:has(.page-site) { background: var(--sable); }

@keyframes entree {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Le rappel du choix, en pastille comme au formulaire */
.sous-titre { display: inline-flex; margin: 14px 0 22px; padding: 5px 12px; border-radius: 99px; background: var(--teinte); color: var(--orange-texte); font-size: 13.5px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
/* Le rappel du choix fait sur l'accueil */
.cal-choix { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; margin: 18px 0 20px; padding: 8px 4px 8px 8px; border-radius: var(--rayon); background: var(--doux); }
.cal-vignette { display: block; width: 56px; height: 56px; border-radius: var(--rayon-petit); background: var(--teinte); object-fit: cover; }
.cal-choix-titre { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.cal-phrase { margin: 1px 0 0; color: var(--gris); font-size: 13.5px; line-height: 1.4; }
.cal-mois { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
/* Le mois affiché, et les flèches pour passer au mois suivant */
.cal-tete-mois { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-nav { display: flex; gap: 6px; }
.cal-fleche { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--doux); color: var(--orange-texte); transition: background .12s ease, color .12s ease; }
.cal-fleche:active:not(:disabled) { background: var(--teinte); }
.cal-fleche:disabled { background: none; color: var(--gris-clair); }
.moment { margin: 16px 0 8px; color: var(--gris); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.moment:first-of-type { margin-top: 0; }

.alerte {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--rayon-petit);
  background: #FDECEA;
  color: #7E1A14;
  font-size: 15px;
}
.alerte a, .alerte button { color: inherit; font-weight: 600; text-decoration: underline; }
.alerte button { display: inline; padding: 0; border: 0; background: none; }

.fleche {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  transition: transform .14s ease;
}

.principal {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  box-shadow: 0 12px 24px -12px rgba(241, 104, 6, .7);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: background .14s ease, transform .12s ease;
}
.principal:active:not(:disabled) { transform: scale(.985); }
.principal:disabled { opacity: .75; }
.principal[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: tourne .7s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }

.musique {
  position: fixed;
  z-index: 20;
  top: calc(env(safe-area-inset-top) + 72px);
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--filet-fort);
  border-radius: 50%;
  background: var(--fond);
  box-shadow: var(--ombre);
  color: var(--orange-texte);
}
.musique[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: #fff; }

/* Barre du haut */
.barre {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: var(--sable);
  box-shadow: 0 1px 0 var(--filet-fort);
}
.barre-dedans {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  max-width: 600px;
  height: 56px;
  margin: 0 auto;
  padding: 0 max(10px, env(safe-area-inset-left)) 0 max(10px, env(safe-area-inset-right));
}
.barre-retour {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}
.barre-retour:active { background: var(--teinte); }
.barre-logo { justify-self: center; width: 68px; height: auto; }
.barre-etape { justify-self: center; color: var(--gris); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }

.barre-progres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; max-width: 600px; margin: 0 auto; padding: 0 var(--gouttiere) 10px; }
.barre-progres i { display: block; height: 3px; border-radius: 2px; background: var(--filet-fort); transition: background .3s ease; }
[data-etape="2"] i:nth-child(-n+2),
[data-etape="3"] i:nth-child(-n+3),
[data-etape="4"] i { background: var(--orange); }

/* ========== 1. Accueil : l'Afrique en vedette ==========
 * Un seul écran. En haut le message, au centre la carte d'Afrique éclairée comme le mur du plateau,
 * avec les vendeurs en ronds posés sur le continent et Lomé en grand. En bas, les 2 choix.
 * L'histoire continue : toutes les 4 secondes, une phrase change et un rond s'allume sur la carte.
 */
.accueil {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top) + 84px) var(--gouttiere) max(14px, env(safe-area-inset-bottom));
  /* Une lumière douce derrière la carte, comme le mur rétroéclairé du plateau */
  background: radial-gradient(110% 55% at 50% 56%, #F7822C 0%, var(--orange) 65%) var(--orange);
  animation: none;
}

.tete-accueil {
  position: absolute;
  z-index: 3;
  top: calc(env(safe-area-inset-top) + 18px);
  right: var(--gouttiere);
  left: var(--gouttiere);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.marque { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--rayon-petit); background: #fff; box-shadow: 0 8px 20px -12px rgba(90, 30, 0, .6); }
.marque img { display: block; width: 72px; height: auto; }
/* « OCD Live », écrit comme sur le mur du plateau */
.marque-live { font-size: 17px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.statut { margin: 0; padding: 6px 11px; border-radius: 99px; background: #fff; box-shadow: 0 8px 20px -12px rgba(90, 30, 0, .6); color: var(--encre); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
/* Le point live qui bat dans l'étiquette */
.statut::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); vertical-align: 1px; animation: point-live 1.6s ease-in-out infinite; }
@keyframes point-live { 50% { opacity: .25; } }

/* Le message : le titre ne bouge pas, la phrase du dessous raconte l'histoire */
.accueil-texte { position: relative; z-index: 2; }
.hero-titre { margin: 0; color: #fff; font-size: clamp(34px, 10.4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.045em; animation: monte .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-titre em { position: relative; display: inline-block; color: var(--encre); font-style: normal; white-space: nowrap; }
/* Le trait blanc qui se dessine sous « dehors. », comme au marqueur */
.trait { position: absolute; bottom: -.13em; left: -2%; width: 104%; height: .22em; overflow: visible; pointer-events: none; }
.trait path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.05; animation: dessine .7s .95s ease-out forwards; }
@keyframes dessine { to { stroke-dashoffset: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }
.recit { display: grid; margin-top: 10px; animation: monte .7s .25s cubic-bezier(.2, .8, .2, 1) backwards; }
/* La phrase glisse en place quand elle change */
.recit-texte { grid-area: 1 / 1; margin: 0; color: var(--encre); font-size: 16px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.recit-texte.actif { opacity: 1; transform: none; }
.recit-texte b { color: #fff; font-weight: 800; }

/* La carte prend toute la place qui reste, sans jamais pousser les boutons hors de l'écran */
.vitrine-zone { position: relative; z-index: 1; flex: 1 1 0; min-height: 0; display: grid; place-items: center; margin: 4px 0 8px; container-type: size; }
.vitrine { position: relative; width: min(100%, 340px); aspect-ratio: 70 / 74; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@supports (width: 1cqh) {
  .vitrine { width: min(100cqw - 24px, (100cqh - 24px) * 70 / 74, 470px); }
}
.accueil-afrique { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.signaux path { fill: none; stroke: #fff; stroke-width: .3; stroke-linecap: round; stroke-opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; animation: signal 1.1s calc(var(--d) + .35s) ease-out forwards; transition: stroke-opacity .4s ease, stroke-width .4s ease; }
.signaux path.actif { stroke-opacity: 1; stroke-width: .55; }
@keyframes signal { to { stroke-dashoffset: 0; } }
/* La lumière qui court sur le fil allumé, de Lomé vers le vendeur */
.cometes path { fill: none; stroke: #FFF6EA; stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: .035 .965; stroke-dashoffset: 0; opacity: 0; transition: opacity .3s ease; }
.cometes path.actif { opacity: 1; animation: comete 1.7s 1.2s linear infinite; }
@keyframes comete { to { stroke-dashoffset: -1; } }
.accueil-afrique image { animation: apparait .9s .15s ease-out backwards; }
@keyframes apparait { from { opacity: 0; } }
/* La lumière du plateau respire doucement derrière Lomé */
.vitrine::before { content: ""; position: absolute; top: 43.07%; left: 27.46%; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 238, 215, .45), rgba(255, 238, 215, 0)); transform: translate(-50%, -50%); animation: respire 5s ease-in-out infinite; pointer-events: none; }
@keyframes respire { 50% { opacity: .5; transform: translate(-50%, -50%) scale(1.1); } }

/* Les vendeurs, en ronds sur le continent. Celui de l'histoire en cours grandit, cerclé d'orange. */
.bulle {
  position: absolute;
  z-index: 1;
  top: var(--y);
  left: var(--x);
  width: 15%;
  aspect-ratio: 1;
  padding: 2.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px -8px rgba(90, 30, 0, .55);
  transform: translate(-50%, -50%) scale(.92);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
  animation: apparait .5s var(--e, .4s) ease-out backwards;
}
.bulle img { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--teinte); object-fit: cover; object-position: 50% 38%; }
.bulle.actif { z-index: 2; box-shadow: 0 0 0 3px var(--orange), 0 0 0 5.5px #fff, 0 16px 30px -8px rgba(90, 30, 0, .6); transform: translate(-50%, -50%) scale(1.14); }
/* À l'arrivée, Lomé surgit d'abord, puis les vendeurs un à un. Ensuite ils flottent, chacun à son rythme. */
.vitrine > .bulle-lome { --e: .3s; --f: 0s; }
.vitrine > .bulle:nth-of-type(1) { --e: .55s; --f: -1.6s; }
.vitrine > .bulle:nth-of-type(3) { --e: .65s; --f: -3.1s; }
.vitrine > .bulle:nth-of-type(4) { --e: .75s; --f: -4.4s; }
.vitrine > .bulle:nth-of-type(5) { --e: .85s; --f: -2.3s; }
.vitrine > .bulle:nth-of-type(6) { --e: .95s; --f: -3.8s; }
.vitrine > .bulle:nth-of-type(7) { --e: 1.05s; --f: -.9s; }
@supports (translate: 0) and (scale: 1) {
  .bulle {
    translate: -50% -50%;
    scale: .92;
    transform: none;
    transition: scale .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
    animation: surgit .6s var(--e, .4s) cubic-bezier(.2, .9, .3, 1.35) backwards, flotte 6s var(--f, 0s) ease-in-out infinite;
  }
  .bulle.actif { scale: 1.14; transform: none; }
  @keyframes surgit { from { opacity: 0; scale: .2; } }
  @keyframes flotte { 50% { transform: translateY(-5px); } }
}
/* Lomé, le plateau : en grand, avec son nom et l'onde du live */
.bulle-lome { width: 24%; }
.bulle-lome::before { content: ""; position: absolute; inset: -6px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; animation: onde-bulle 2.6s ease-out infinite; }
@keyframes onde-bulle { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.4); } }
.bulle-nom { position: absolute; bottom: -10px; left: 50%; padding: 2px 10px; border-radius: 99px; background: #fff; box-shadow: 0 4px 10px -4px rgba(90, 30, 0, .45); color: var(--orange-texte); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; transform: translateX(-50%); }

/* Le bas : la question et les 2 choix, en tuiles côte à côte */
.accueil-bas { position: relative; z-index: 2; animation: monte .7s .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-sous { margin: 0 0 10px; color: var(--encre); font-size: 15px; font-weight: 700; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  width: 100%;
  min-width: 0;
  min-height: 118px;
  padding: 13px 13px 14px 15px;
  border: 0;
  border-radius: var(--rayon);
  background: #fff;
  box-shadow: 0 16px 32px -18px rgba(110, 40, 0, .75);
  text-align: left;
  transition: transform .12s ease;
}
.mode:active { transform: scale(.985); }
.mode-icone { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teinte); color: var(--orange-texte); }
.mode .fleche { grid-column: 2; grid-row: 1; width: 38px; height: 38px; }
.mode-titre { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.mode-lieu { grid-column: 1 / -1; grid-row: 3; margin-top: 3px; color: var(--orange-texte); font-size: 13px; font-weight: 600; line-height: 1.3; }

@media (max-width: 339px) {
  .statut { display: none; }
  .mode { padding: 11px 10px 12px 12px; }
  .mode-titre { font-size: 13.5px; }
  .mode-lieu { font-size: 12px; }
}
/* Petit écran : la phrase de l'histoire laisse sa place à la carte */
@media (max-height: 640px) and (max-width: 599px) {
  .accueil { padding-top: calc(env(safe-area-inset-top) + 68px); }
  .recit { display: none; }
  .mode { min-height: 104px; }
}
/* Tablette debout */
@media (min-width: 600px) {
  .accueil { padding-top: calc(env(safe-area-inset-top) + 96px); padding-bottom: 28px; }
  .recit-texte { font-size: 19px; }
  .hero-sous { font-size: 17px; }
  .mode { min-height: 128px; padding: 16px 16px 16px 18px; }
  .mode-titre { font-size: 17px; }
  .mode-lieu { font-size: 14px; }
}
/* Ordinateur : le message et les choix à gauche, la carte en grand à droite */
@media (min-width: 860px) {
  .accueil {
    display: grid;
    grid-template-columns: minmax(380px, 44%) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 4vw;
    min-height: 560px;
    padding: 96px clamp(28px, 5vw, 80px) 40px;
    background: radial-gradient(60% 75% at 74% 52%, #F8862F 0%, var(--orange) 70%) var(--orange);
  }
  .tete-accueil { right: auto; left: clamp(28px, 5vw, 80px); width: calc(44% - clamp(28px, 5vw, 80px)); top: 28px; }
  .marque img { width: 92px; }
  .statut { font-size: 13.5px; }
  .accueil-texte { grid-column: 1; grid-row: 2; }
  .hero-titre { font-size: clamp(48px, 5vw, 78px); }
  .recit { margin-top: 18px; }
  .recit-texte { font-size: clamp(18px, 1.5vw, 21px); }
  .accueil-bas { grid-column: 1; grid-row: 3; margin-top: 30px; }
  .vitrine-zone { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  @supports (width: 1cqh) {
    .vitrine { width: min(100cqw - 48px, (100cqh - 48px) * 70 / 74, 660px); }
  }
  .mode { min-height: 136px; }
}
/* Téléphone couché : tout tient sans défiler, la carte à droite */
@media (max-height: 500px) and (min-width: 560px) {
  .accueil {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    grid-template-rows: 1fr auto 1fr auto;
    column-gap: 16px;
    min-height: 0;
    padding: 54px var(--gouttiere) 10px;
  }
  .tete-accueil { top: 8px; right: auto; width: calc(60% - 2 * var(--gouttiere)); }
  .marque { padding: 4px 8px; }
  .marque img { width: 56px; }
  .accueil-texte { grid-column: 1; grid-row: 2; }
  .hero-titre { font-size: 28px; }
  .recit { margin-top: 4px; }
  .recit-texte { font-size: 13px; }
  .accueil-bas { grid-column: 1; grid-row: 4; }
  .hero-sous { margin-bottom: 6px; font-size: 13px; }
  .vitrine-zone { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  .mode { grid-template-rows: auto auto; min-height: 0; padding: 8px 8px 8px 12px; }
  .mode-icone { display: none; }
  .mode-titre { grid-column: 1; grid-row: 1; margin-top: 0; font-size: 13px; }
  .mode-lieu { grid-column: 1; grid-row: 2; font-size: 11.5px; }
  .mode .fleche { grid-row: 1 / span 2; align-self: center; width: 34px; height: 34px; }
}

/* ========== 2. Calendrier ========== */
.rapide {
  display: grid;
  grid-template-columns: 1fr 44px;
  column-gap: 12px;
  width: 100%;
  margin: 0 0 24px;
  padding: 12px 12px 12px 16px;
  border: 0;
  border-radius: var(--rayon);
  background: var(--teinte);
  text-align: left;
}
.rapide-etiquette { grid-column: 1; color: var(--orange-texte); font-size: 13px; font-weight: 700; }
.rapide-texte { grid-column: 1; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.rapide .fleche { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.cal-entetes, .cal-jours { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-entetes { margin-bottom: 4px; color: var(--gris); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: center; }

/* Comme un agenda : des chiffres nets, un carré arrondi pour le jour choisi (comme les heures) */
.jour {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 600;
}
.jour::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(42px, calc(100% - 4px));
  aspect-ratio: 1;
  border-radius: var(--rayon-petit);
  transform: translate(-50%, -50%);
}
.jour:active:not(:disabled)::before { background: var(--teinte); }
.jour[aria-pressed="true"] { color: #fff; font-size: 19px; font-weight: 700; }
.jour[aria-pressed="true"]::before { background: var(--orange); }
.jour:disabled { color: var(--gris-clair); font-weight: 400; }
.jour-rare::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--orange);
}
.jour-rare[aria-pressed="true"]::after { background: #fff; }

.cal-legende { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--gris); font-size: 13.5px; }
.cal-legende i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.cal-creneaux { margin-top: 32px; }
.cal-creneaux h2 { font-size: 22px; }
.heures-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.poignee, .heures-fermer { display: none; }
/*
 * Téléphone et tablette : toucher un jour fait monter les heures dans un panneau, depuis le bas.
 * Tout est à portée du pouce, sans descendre sous le calendrier. La croix ou un toucher à côté le referme.
 */
@media (max-width: 859px) {
  .cal-creneaux.ouvert {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 86vh;
    max-height: 86dvh;
    margin: 0;
    padding: 8px var(--gouttiere) max(26px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 26px 26px 0 0;
    background: var(--fond);
    box-shadow: 0 -20px 50px -14px rgba(90, 50, 20, .35);
    animation: feuille-monte .34s cubic-bezier(.2, .8, .2, 1) both;
  }
  .cal-creneaux.ouvert .poignee { display: block; width: 42px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: var(--filet-fort); }
  .cal-creneaux.ouvert .heures-fermer { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--doux); color: var(--encre); font-size: 26px; line-height: 1; }
  .voile-heures { position: fixed; z-index: 39; inset: 0; background: rgba(243, 238, 232, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: apparait .25s ease both; }
  .heures-ouvertes { overflow: hidden; }
  .heures-ouvertes .resume { display: none; }
}
@keyframes feuille-monte { from { transform: translateY(100%); } }
.indice { margin: 0; color: var(--gris); }
.fuseau { margin: 2px 0 16px; color: var(--gris); font-size: 14px; }

/* La journée en un coup d'œil : ce qui est pris, ce que tu as choisi */
.journee { position: relative; overflow: hidden; height: 8px; margin-bottom: 6px; border-radius: 4px; background: var(--doux); box-shadow: inset 0 0 0 1px var(--filet); }
.journee i, .journee b { position: absolute; top: 0; bottom: 0; display: block; }
.journee i { background: var(--filet-fort); }
.journee b { background: var(--orange); }
.journee s { position: absolute; top: 0; bottom: 0; display: block; background: repeating-linear-gradient(135deg, rgba(241, 104, 6, .28) 0 3px, transparent 3px 6px); }
.journee-heures { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--gris); font-size: 12.5px; font-weight: 500; }

.etape-heure { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.debut-choisi { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 18px; padding: 4px 6px 4px 16px; border-radius: var(--rayon-petit); background: var(--teinte); font-weight: 700; font-variant-numeric: tabular-nums; }
.lien-petit { min-height: 44px; padding: 4px 10px; border: 0; background: none; color: var(--orange-texte); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.limite-heure { margin: 12px 0 0; color: var(--gris); font-size: 14px; }

/* Les heures : des pastilles douces, sans cadre. L'orange n'apparaît qu'au toucher. */
.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.creneaux-fin { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.creneau {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--rayon-petit);
  background: var(--doux);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.creneau:active:not(:disabled) { border-color: var(--orange); background: var(--teinte); }
.creneau:disabled { background: none; color: var(--gris-clair); font-weight: 500; text-decoration: line-through; }
.creneau small { color: var(--gris); font-size: 12.5px; font-weight: 500; }

/* La durée d'abord : 4 grands choix avec l'heure de fin et le prix, les autres durées sur demande */
.durees { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creneau-fin { min-height: 72px; padding: 8px 4px; line-height: 1.25; }
.creneau-fin .fin-duree { font-size: 16px; font-weight: 700; line-height: 1.2; }
.creneau-fin .fin-plage { margin-top: 1px; letter-spacing: 0; white-space: nowrap; }
.creneau-fin .fin-prix { margin-top: 2px; color: var(--orange-texte); font-size: 12.5px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.fin-principale { align-items: flex-start; justify-content: flex-start; min-height: 104px; padding: 14px 16px; border-radius: var(--rayon); text-align: left; }
.fin-principale .fin-duree { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.fin-principale .fin-plage { margin-top: 3px; font-size: 13.5px; }
.fin-principale .fin-prix { margin-top: auto; padding-top: 8px; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }

.voir-autres {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 8px 18px 8px 16px;
  border: 0;
  border-radius: var(--rayon-petit);
  background: var(--doux);
  color: var(--encre);
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
}
.voir-autres small { color: var(--gris); font-size: 13px; font-weight: 500; }
.voir-autres::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 0 0 auto; border-right: 2px solid var(--orange-texte); border-bottom: 2px solid var(--orange-texte); transform: rotate(45deg); transition: transform .15s ease; }
.voir-autres[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
#autres-durees { margin-top: 10px; }
/* Déjà demandé par quelqu'un : encore libre, la place ira au premier qui paie */
.creneau-demande { position: relative; }
.creneau-demande::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.legende-demande { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--gris); font-size: 13.5px; line-height: 1.4; }
.legende-demande::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--orange); }
.recap-lignes .recap-demande { grid-column: 1 / -1; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: var(--teinte); color: var(--orange-texte); font-size: 14px; font-weight: 600; }

/* ========== 3. Packages ========== */
.packs { display: grid; gap: 12px; }
.pack {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: baseline;
  align-content: start;
  width: 100%;
  padding: 18px 18px 18px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--rayon);
  background: var(--doux);
  text-align: left;
  transition: border-color .12s ease, transform .12s ease;
}
.pack:active:not(:disabled) { border-color: var(--orange); transform: scale(.99); }
.pack-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.pack-nom { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
/* La durée dans une petite pastille, le prix bien lisible à droite */
.pack-duree { padding: 2px 8px; border-radius: 99px; background: var(--fond); color: var(--gris); font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pack-prix { color: var(--orange-texte); font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; white-space: nowrap; }
.pack-badge { grid-column: 1 / -1; justify-self: start; margin-top: 8px; padding: 3px 9px; border-radius: 99px; background: var(--teinte); color: var(--orange-texte); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pack-texte { grid-column: 1 / -1; margin-top: 8px; color: var(--gris); font-size: 14.5px; line-height: 1.55; }
.pack-note { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--filet); font-size: 14px; font-weight: 600; }
.pack-raison { grid-column: 1 / -1; margin-top: 8px; color: var(--rouge); font-size: 14px; font-weight: 600; }


/* Le gros package : le seul plein de couleur, pour donner envie */
.pack-heros { border-color: var(--orange); background: var(--teinte); }
.pack-heros .pack-duree, .pack-heros .pack-badge { background: var(--fond); }
.pack-heros .pack-note { border-top-color: rgba(184, 76, 0, .15); }

.pack:disabled { background: none; box-shadow: none; color: var(--gris-clair); }
.pack:disabled, .pack-vedette:disabled, .pack-heros:disabled { border-color: var(--filet); }
.pack:disabled .pack-prix, .pack:disabled .pack-texte, .pack:disabled .pack-duree, .pack:disabled .pack-badge { color: var(--gris-clair); }

/* ========== 4. Formulaire : la même carte, avec le prix et le bouton en bas ========== */
.carte-form { padding-bottom: 0; }

/* Le choix fait, en pastilles. La date est la seule pleine, comme une étiquette. */
.form-recap { margin: 14px 0 22px; }
.form-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.form-puce { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border-radius: 99px; background: var(--doux); color: var(--encre); font-size: 13.5px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.form-puce-forte { background: var(--teinte); color: var(--orange-texte); font-weight: 700; }
.form-recap-note { margin: 10px 0 0; color: var(--gris); font-size: 14px; }
.form-recap-demande { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--teinte); color: var(--orange-texte); font-size: 14px; font-weight: 600; }

/* Les champs : arrondis, remplis de beige, le libellé écrit dedans */
.carte-form .champs { column-gap: 10px; }
.carte-form .champ { position: relative; margin-bottom: 10px; }
.carte-form .champ > label {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 20px;
  left: 20px;
  margin: 0;
  overflow: hidden;
  color: var(--gris);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
.carte-form .champ input, .carte-form .champ textarea { min-height: 60px; padding: 27px 19px 8px; border: 1.5px solid transparent; border-radius: 20px; background: var(--doux); box-shadow: inset 0 1px 2px rgba(42, 29, 20, .05); font-weight: 600; }
.carte-form .champ textarea { min-height: 96px; padding-top: 29px; }
.carte-form .champ input:focus, .carte-form .champ textarea:focus { background: var(--fond); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 104, 6, .12); }
.carte-form .champ [aria-invalid="true"] { border-color: var(--rouge); background: #FFF6F5; }
.carte-form .champ-erreur { margin: 6px 0 0 19px; font-size: 13.5px; }
.carte-form .bandeau { margin-top: 8px; }

/* Le bas de la carte : le prix et le bouton, comme une caisse */
.form-pied {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2px 20px;
  margin: 20px -18px 0;
  padding: 18px 18px 20px;
  border-top: 1px solid rgba(184, 76, 0, .12);
  border-radius: 0 0 26px 26px;
  background: var(--teinte);
}
.pied-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; }
.pied-prix span { font-size: 18px; font-weight: 700; }
.pied-prix strong { font-size: 27px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pied-prix small { color: var(--gris); font-size: 14px; font-weight: 600; }
.pied-note { margin: 0; font-size: 14.5px; font-weight: 500; }
.form-pied .principal { margin-top: 14px; border-radius: 99px; }
.form-pied .principal::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 12px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); vertical-align: 2px; }
.form-pied .principal[aria-busy="true"]::after { display: none; }
.form-pied .rassurance { margin: 12px 0 0; font-size: 13px; text-align: left; }

/* ========== 4 bis. Formulaire : les champs ========== */
.recap { margin: 16px 0 24px; border-radius: var(--rayon); background: var(--teinte); }
.recap-tete { padding: 16px 18px 14px; border-bottom: 1px solid rgba(184, 76, 0, .12); }
.recap-date { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.recap-heure { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; }
.recap-lignes { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding: 14px 18px 16px; font-size: 15px; }
.recap-lignes dt { color: var(--gris); }
.recap-lignes dd { margin: 0; font-weight: 600; }
.recap-lignes .recap-note { grid-column: 1 / -1; margin-top: 4px; color: var(--gris); font-size: 14px; font-weight: 400; }

.champs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.champs > .champ { grid-column: 1 / -1; }
.champ { min-width: 0; margin-bottom: 18px; }
.champ label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; }
.champ input, .champ textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon-petit);
  background: var(--fond);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.champ textarea { min-height: 76px; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241, 104, 6, .15); outline: none; }
.champ input::placeholder, .champ textarea::placeholder { color: #8A7F75; }
.champ [aria-invalid="true"] { border-color: var(--rouge); }
.champ-erreur { margin: 6px 0 0; color: var(--rouge); font-size: 14px; font-weight: 500; }

.placer { min-width: 0; margin: 8px 0 0; padding: 0; border: 0; }
.placer legend { margin-bottom: 12px; padding: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.puce span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--filet-fort);
  border-radius: 99px;
  color: var(--gris);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.puce input:checked + span { border-color: var(--orange); background: var(--teinte); color: var(--orange-texte); font-weight: 600; }
.puce input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.puce input:focus-visible + span { outline: 2px solid var(--orange-texte); outline-offset: 2px; }

/* « Personnaliser » : replié, tout est déjà coché */
.perso { margin: 0 0 20px; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--fond); }
.perso > summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 18px 8px 16px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.perso > summary::-webkit-details-marker { display: none; }
.perso > summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 0 0 auto; border-right: 2px solid var(--orange-texte); border-bottom: 2px solid var(--orange-texte); transform: rotate(45deg); transition: transform .15s ease; }
.perso[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
.perso-facultatif { padding: 2px 8px; border-radius: 99px; background: var(--doux); color: var(--gris); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.perso .placer { margin: 0; padding: 2px 16px 0; }
.perso .placer legend { margin-bottom: 10px; color: var(--gris); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.perso .champ { margin-bottom: 16px; }

.bandeau { margin: 0 0 20px; }
.bandeau figcaption { margin-bottom: 6px; font-size: 14.5px; font-weight: 600; }
.bandeau-carte {
  display: grid;
  justify-items: start;
  gap: 1px;
  padding: 14px 16px 16px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  background: var(--teinte);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.bandeau-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--encre);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
}
.bandeau-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.bandeau-carte strong { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.bandeau-numero { margin: 2px 0; color: var(--orange-texte); font-size: 18px; font-weight: 700; }
.bandeau-vide { color: #8A7F75; }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rassurance { margin: 12px 0 0; color: var(--gris); font-size: 14px; text-align: center; }

/* La recherche de pays et de villes */
.recherche { position: relative; }
.liste {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  overflow-y: auto;
  max-height: 264px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon-petit);
  background: var(--fond);
  box-shadow: var(--ombre);
  list-style: none;
  overscroll-behavior: contain;
}
.liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.liste li[aria-selected="true"], .liste li:active { background: var(--teinte); }
.liste .liste-info { color: var(--gris); font-size: 14px; white-space: nowrap; }
.liste .liste-vide { color: var(--gris); font-size: 14.5px; cursor: default; }
.liste .liste-separe { margin-top: 4px; border-top: 1px solid var(--filet); border-radius: 0 0 8px 8px; }
.liste .liste-source { justify-content: flex-end; min-height: 0; padding: 2px 10px 4px; color: var(--gris); font-size: 11.5px; cursor: default; }

/* ========== 5. Fin ========== */
.fin-coche { display: block; margin-bottom: 18px; }
.fin-trait { stroke-dasharray: 60; stroke-dashoffset: 60; animation: trace .3s .1s ease-out forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.fin-regle { margin: 12px 0 20px; color: var(--gris); }
.fin-regle b { color: var(--orange-texte); }

.whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: var(--rayon-petit);
  background: var(--vert);
  color: var(--encre);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.lien {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  background: none;
  color: var(--gris);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.affiche { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--filet); }
.affiche p { margin: 4px 0 16px; color: var(--gris); font-size: 15px; }
/* Les 2 formats d'affiche : un interrupteur doux, comme les onglets d'une app */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px; padding: 5px; border-radius: 16px; background: var(--doux); }
.format { display: grid; gap: 1px; min-height: 52px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--gris); text-align: center; transition: background .2s ease, box-shadow .2s ease; }
.format strong { color: var(--encre); font-size: 15px; font-weight: 800; }
.format small { font-size: 12px; font-weight: 600; }
.format[aria-pressed="true"] { background: var(--fond); box-shadow: 0 6px 16px -10px rgba(90, 50, 20, .55); }
.format[aria-pressed="true"] strong { color: var(--orange-texte); }
.affiche canvas[data-format="carre"] { width: min(72vw, 300px); }

/* La photo facultative : une tuile à pointillés, le rond se remplit avec la photo choisie */
.photo-perso { margin: 2px 0 18px; }
.photo-zone { position: relative; }
.photo-champ { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-ajout { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 10px 92px 10px 11px; border: 1.5px dashed var(--filet-fort); border-radius: 20px; background: var(--fond); transition: border-color .15s ease, background .15s ease; }
.photo-zone:focus-within .photo-ajout { outline: 2px solid var(--orange-texte); outline-offset: 2px; }
.photo-rond { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: var(--teinte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B84C00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h3l2-3h6l2 3h3V19H4z'/%3E%3Ccircle cx='12' cy='13' r='3.4'/%3E%3C/svg%3E") no-repeat center / 24px; }
.photo-rond img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-textes { display: grid; min-width: 0; line-height: 1.3; }
.photo-textes strong { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.photo-textes small { color: var(--gris); font-size: 13px; }
.photo-retirer { position: absolute; z-index: 2; top: 50%; right: 8px; transform: translateY(-50%); }
.avec-photo .photo-ajout { border-style: solid; border-color: var(--orange); background: var(--teinte); }
.avec-photo .photo-rond { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--orange); }
.photo-perso[aria-busy="true"] .photo-rond { animation: point-live 1s ease-in-out infinite; }
.affiche canvas {
  display: block;
  width: min(58vw, 240px);
  height: auto;
  margin: 0 auto 18px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-petit);
  box-shadow: var(--ombre);
}
.secondaire {
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border: 1.5px solid var(--orange);
  border-radius: 14px;
  background: var(--fond);
  color: var(--orange-texte);
  font-size: 16px;
  font-weight: 700;
}
.secondaire:active { background: var(--teinte); }
/* Dans les cartes, tous les boutons sont arrondis comme RÉSERVER */
.carte .whatsapp, .carte .secondaire { border-radius: 99px; }

/* ========== Le résumé en bas de l'écran (téléphone et tablette) ========== */
.resume {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px var(--gouttiere) max(10px, env(safe-area-inset-bottom));
  background: var(--fond);
  box-shadow: 0 -1px 0 var(--filet), 0 -12px 30px rgba(42, 29, 20, .07);
  animation: resume-monte .22s ease-out both;
}
@keyframes resume-monte { from { transform: translateY(100%); } to { transform: none; } }
.resume-dedans { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 700px; min-height: 42px; margin: 0 auto; }
.resume-texte { display: grid; min-width: 0; line-height: 1.35; }
.resume-texte strong, .resume-texte span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-texte strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.resume-texte span { color: var(--gris); font-size: 13px; }
.resume-prix { flex: 0 0 auto; padding: 7px 12px; border-radius: 99px; background: var(--teinte); color: var(--orange-texte); font-size: 16px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.resume-prix:empty { display: none; }
.avec-resume .ecran-carte { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
/* Pendant la saisie, le clavier prend la place */
.saisie .resume { display: none; }

/* ========== Très petits téléphones ========== */
@media (max-width: 339px) {
  :root { --gouttiere: 14px; }
  .ecran-carte { padding: 12px 8px 32px; }
  .carte { padding: 20px 14px 24px; }
  .carte-form { padding-bottom: 0; }
  .carte-form .champ input, .carte-form .champ textarea { padding-right: 15px; padding-left: 15px; }
  .carte-form .champ > label { right: 16px; left: 16px; }
  .form-pied { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
}

/* ========== Tablette ========== */
@media (min-width: 640px) {
  .barre-dedans, .barre-progres { max-width: 760px; }
  .carte h1 { font-size: 40px; }
  .champs > .champ { grid-column: auto; }
  .packs { grid-template-columns: 1fr 1fr; }
  .cal-choix { margin-bottom: 24px; }
  .jour { height: 52px; }
  .durees { grid-template-columns: repeat(4, 1fr); }
  .ecran-carte { padding: 40px 24px 64px; background-size: 760px auto; background-position: right -160px bottom -90px; }
  .carte { padding: 34px 34px 38px; border-radius: 30px; }
  .afrique { width: 76px; height: 76px; }
  .carte-form { padding-bottom: 0; }
  .form-pied { grid-template-columns: 1fr auto; margin: 24px -34px 0; padding: 22px 34px 24px; border-radius: 0 0 30px 30px; }
  .form-pied .principal { grid-column: 2; grid-row: 1 / span 2; width: auto; min-width: 230px; margin-top: 0; padding: 0 30px; }
  .form-pied .rassurance { grid-column: 1 / -1; }
}

/* ========== Grande tablette et petit ordinateur ========== */
@media (min-width: 860px) {
  .barre-dedans, .barre-progres { max-width: 1040px; }
  .carte h1 { font-size: 44px; }
  .afrique { width: 86px; height: 86px; }
  .cal-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
  .cal-creneaux { position: sticky; top: 90px; margin-top: 0; }
  .durees { grid-template-columns: 1fr 1fr; }
  /* Sur ordinateur, tout tient à l'écran : pas besoin du résumé en bas */
  .resume { display: none; }
  .avec-resume .ecran-carte { padding-bottom: 64px; }
  .cal-creneaux .indice {
    display: grid;
    place-items: center;
    min-height: 200px;
    padding: 24px;
    border-radius: var(--rayon);
    background: var(--doux);
    text-align: center;
  }
  .jour { height: 56px; font-size: 17px; }
  .jour::before { width: min(46px, calc(100% - 4px)); }
  .fin-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .affiche { margin-top: 0; padding-top: 0; border: 0; }
}

/* ========== Ordinateur ========== */
@media (min-width: 1000px) {
  .packs { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
  .pack { padding: 22px 22px 22px 24px; }
}

/* ========== Téléphone couché : tout doit tenir sans perdre de hauteur ========== */
@media (max-height: 500px) and (min-width: 560px) {
  .barre { position: static; }
  .ecran-carte { min-height: 0; padding: 10px 12px 28px; }
  .carte { max-width: none; padding: 18px 22px 22px; border-radius: 22px; }
  .carte-form { padding-bottom: 0; }
  .form-pied { margin-right: -22px; margin-left: -22px; padding-right: 22px; padding-left: 22px; border-radius: 0 0 22px 22px; }
  .barre-dedans, .barre-progres { max-width: none; }
  .cal-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
  .cal-creneaux { position: static; margin-top: 0; }
  /* Couché, les heures ont leur colonne à côté du calendrier : pas besoin de panneau */
  .cal-creneaux.ouvert { position: static; max-height: none; padding: 0; overflow: visible; border-radius: 0; box-shadow: none; animation: none; }
  .cal-creneaux.ouvert .poignee, .cal-creneaux.ouvert .heures-fermer, .voile-heures { display: none; }
  .heures-ouvertes { overflow: visible; }
  .jour { height: 44px; }
  h1, .carte h1 { font-size: 26px; }
  .afrique { width: 50px; height: 50px; }
  .durees { grid-template-columns: 1fr 1fr; }
  /* Téléphone couché : la hauteur est trop précieuse pour le résumé */
  .resume { display: none; }
  .avec-resume .ecran-carte { padding-bottom: 28px; }
  .sous-titre { margin: 2px 0 10px; }
  .fin-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .affiche { margin-top: 0; padding-top: 0; border: 0; }
  .affiche canvas { width: 170px; }
}

/* Survol : seulement à la souris. Sur téléphone, il resterait collé après l'appui. */
@media (hover: hover) {
  .mode:hover { transform: translateY(-2px); }
  .mode:hover .fleche, .rapide:hover .fleche { transform: translateX(3px); }
  .principal:hover:not(:disabled) { background: #DB5C00; }
  .barre-retour:hover { background: var(--teinte); }
  .jour:hover:not(:disabled):not([aria-pressed="true"])::before { background: var(--teinte); }
  .liste li:hover:not(.liste-vide) { background: var(--teinte); }
  .creneau:hover:not(:disabled) { border-color: var(--orange); background: var(--teinte); }
  .pack:hover:not(:disabled) { border-color: var(--orange); transform: translateY(-2px); }
  .cal-fleche:hover:not(:disabled) { background: var(--teinte); }
  .champ input:hover:not(:focus), .champ textarea:hover:not(:focus) { border-color: #C6BAAE; }
  .secondaire:hover { background: var(--teinte); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fin-trait { stroke-dashoffset: 0; }
  .signaux path { stroke-dashoffset: 0; }
  .bulle-lome::before { display: none; }
  .trait path { stroke-dashoffset: 0; }
  .cometes { display: none; }
}
