@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("polices/poppins-400.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("polices/poppins-600.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url("polices/poppins-800.woff2") format("woff2"); }

:root {
  --bleu: #0b2a7b;
  --bleu-nuit: #071c55;
  --bleu-vif: #2553c7;
  --bleu-clair: #e9eefb;
  --or: #c59b3f;
  --or-clair: #e9cf8c;
  --or-fonce: #94701f;
  --sable: #f3ead8;
  --encre: #0b1533;
  --gris: #5b6379;
  --fond: #f7f8fc;
  --carte: #ffffff;
  --trait: #e2e6f0;
  --ok: #0f7b4a;
  --ok-fond: #e3f4ec;
  --attente: #8a5a00;
  --attente-fond: #fdf1d6;
  --alerte: #b42318;
  --alerte-fond: #fde8e6;
  --rayon: 8px;
  --rayon-carte: 12px;
  --rayon-grand: 16px;
  --ombre: 0 18px 40px rgba(11, 42, 123, .09);
  --sortie: cubic-bezier(.23, 1, .32, 1);
  --tiroir: cubic-bezier(.32, .72, 0, 1);
  --rebond: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--fond); }
body {
  background: var(--fond);
  color: var(--encre);
  font: 400 16px/1.5 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
svg, img { display: block; }

.app { position: relative; height: 100dvh; overflow: hidden; container: app / inline-size; }
.ecran { height: 100%; overflow: hidden auto; padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.ecran > * { flex-shrink: 0; }
.ecran.centre { align-items: center; text-align: center; justify-content: center; }
.ecran.milieu > :nth-child(2) { margin-top: auto; }
.ecran.milieu > :last-child { margin-bottom: auto; }
.ecran.nuit {
  color: #fff;
  background: radial-gradient(120% 55% at 50% 0%, #1b46b3 0%, var(--bleu) 46%, var(--bleu-nuit) 100%);
}

.entete { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--bleu); }
.logo svg { width: 38px; height: 38px; }
.logo b { display: block; font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.logo small {
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
  font-size: 9px; font-weight: 600; letter-spacing: .42em; color: var(--or-fonce);
}
.logo small::before, .logo small::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.rond {
  width: 44px; height: 44px; border-radius: 50%; background: var(--carte);
  border: 1.5px solid var(--trait); display: grid; place-items: center; color: var(--bleu);
}
.nuit .rond { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
.icone { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.accroche {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 7px;
  border-radius: 99px; background: var(--sable); color: #5c4716; font-size: 13px; font-weight: 600;
}
.accroche .icone { width: 18px; height: 18px; color: var(--or-fonce); }
.titre { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--bleu); text-wrap: balance; }
.titre em { font-style: normal; color: var(--or-fonce); }
.titre .rang { display: block; overflow: hidden; padding-bottom: .08em; }
.titre .rang > span { display: block; }
.nuit .titre { color: #fff; }
.nuit .titre em { color: var(--or-clair); }
.sous { color: var(--gris); }
.nuit .sous { color: rgba(255, 255, 255, .8); }
.note { font-size: 14px; color: var(--gris); text-align: center; }
.nuit .note { color: rgba(255, 255, 255, .7); }

.scene {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon-grand); overflow: hidden;
  background: radial-gradient(110% 80% at 50% 100%, #fff 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, #e3eafb, #f3f6fd);
}
.nuit .scene { background: none; overflow: visible; width: 100%; }
.scene .sol {
  position: absolute; left: 10%; right: 10%; bottom: 7%; height: 12%;
  background: radial-gradient(closest-side, rgba(7, 28, 85, .3), rgba(7, 28, 85, 0));
}
.nuit .scene .sol { background: radial-gradient(closest-side, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.scene .griffe { position: absolute; left: 6%; top: 12%; width: 46%; color: var(--or); opacity: .55; }
.scene .auto { position: absolute; inset: 16% 9% 11%; width: 82%; height: 73%; object-fit: contain; object-position: center bottom; }
.cartel {
  position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92);
  font-size: 13px; font-weight: 600; color: var(--bleu); display: flex; align-items: center; gap: 4px;
}
.cartel .icone { width: 16px; height: 16px; color: var(--ok); }

.parler { display: grid; justify-items: center; gap: 6px; }
.parler.bas { margin-top: auto; }
.parler b { font-size: 18px; font-weight: 600; color: var(--bleu); }
.nuit .parler b { color: #fff; }
.exemple { color: var(--gris); font-size: 14px; text-align: center; }
.orbe { position: relative; display: grid; place-items: center; }
.halo {
  position: absolute; width: 124px; height: 124px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 207, 140, .8) 0%, rgba(233, 207, 140, .3) 58%, rgba(233, 207, 140, 0) 100%);
  will-change: transform;
}
.micro {
  position: relative; width: 96px; height: 96px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 24%, var(--bleu-vif), var(--bleu) 58%, var(--bleu-nuit));
  border: 5px solid #fff; box-shadow: 0 0 0 2px var(--or), 0 14px 30px rgba(11, 42, 123, .34);
}
.micro .icone { width: 38px; height: 38px; }
.micro::before, .micro::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--or); opacity: 0;
  animation: onde 2.8s var(--sortie) infinite;
}
.micro::after { animation-delay: 1.4s; }
.nuit .micro {
  color: var(--bleu-nuit); border-color: rgba(255, 255, 255, .2);
  background: radial-gradient(circle at 30% 24%, #f6e3b0, var(--or-clair) 45%, var(--or));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.nuit .micro::before, .nuit .micro::after { border-color: var(--or-clair); animation-duration: 1.6s; }
.nuit .micro::after { animation-delay: .8s; }
.paroles { min-height: 5.2em; font-size: 26px; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.paroles:empty::before { content: "…"; opacity: .45; }
.paroles span { display: inline-block; white-space: pre; }

.champ label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.champ div { display: flex; gap: 8px; }
.champ :is(input, textarea) {
  flex: 1; min-width: 0; width: 100%; height: 54px; padding: 0 16px; border-radius: var(--rayon);
  border: 1.5px solid var(--trait); background: var(--carte);
}
.champ textarea { display: block; height: auto; padding: 14px 16px; resize: none; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--bleu); }
.champ :is(input, textarea):focus-visible { outline-color: var(--bleu); outline-offset: 0; }
.retenu { display: grid; gap: 8px; }
.retenu small { font-size: 14px; font-weight: 600; }
.retenu .rien { color: var(--gris); font-size: 14px; }
.retenu [hidden] { display: none; }
.champ input[aria-invalid="true"] { border-color: var(--alerte); }
.champ .erreur { color: var(--alerte); font-size: 14px; margin-top: 6px; }
.champ .aide { color: var(--gris); font-size: 14px; margin-top: 6px; }
.champ .telephone { position: relative; gap: 0; height: 54px; border: 1.5px solid var(--trait); border-radius: var(--rayon); background: var(--carte); overflow: hidden; }
.telephone:focus-within { outline: 3px solid var(--bleu); }
.telephone:has([aria-invalid="true"]) { border-color: var(--alerte); }
.telephone .indicatif { position: relative; flex: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0 12px 0 16px; background: var(--bleu-clair); color: var(--bleu); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.indicatif .icone { width: 16px; height: 16px; opacity: .7; }
.indicatif select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.telephone input { height: auto; border: 0; border-radius: 0; background: none; outline: none; font-size: 18px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.telephone input::placeholder { font-weight: 400; color: #a3abc0; }
.telephone .bon { flex: none; align-self: center; margin-right: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-fond); color: var(--ok); opacity: 0; transform: scale(.72); transition: opacity 180ms ease-out, transform 220ms var(--rebond); }
.telephone .bon .icone { width: 14px; height: 14px; stroke-width: 3; }
.telephone.complet .bon { opacity: 1; transform: none; }
.carre { width: 54px; height: 54px; border-radius: var(--rayon); background: var(--bleu); color: #fff; display: grid; place-items: center; flex: none; }

.onglets { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 12px; background: var(--bleu-clair); }
.onglets::before {
  content: ""; position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: var(--rayon);
  background: var(--carte); box-shadow: 0 4px 12px rgba(11, 42, 123, .12); transition: transform 340ms var(--sortie);
}
.onglets[data-nombre="3"]::before { width: calc((100% - 8px) / 3); }
.onglets[data-rang="1"]::before { transform: translateX(100%); }
.onglets[data-rang="2"]::before { transform: translateX(200%); }
.onglet {
  position: relative; min-height: 46px; border-radius: var(--rayon); display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--gris); transition: color 200ms ease-out;
}
.onglet[aria-selected="true"] { color: var(--bleu); }
.onglet .icone { width: 18px; height: 18px; }
.panneaux { display: grid; }
.panneau { grid-area: 1 / 1; display: grid; gap: 14px; }
.panneau:not([data-onglet="choisir"]) { align-content: center; }
.panneau[hidden] { visibility: hidden; }
.accueil .vitrine { min-height: 132px; }
/* Le micro à gauche de son texte : sur un écran court, ses ondes ne débordent pas sur les onglets. */
.accueil .parler { justify-items: start; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
.accueil .parler .orbe { grid-row: span 2; }
.accueil .parler b { align-self: end; }
.accueil .exemple { align-self: start; text-align: left; }
.accueil .tuile .cadre { aspect-ratio: 16 / 11; }
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tuile {
  background: var(--carte); border: 1.5px solid var(--trait); border-radius: var(--rayon-carte); padding: 8px 6px 12px;
  display: grid; justify-items: center; gap: 0;
}
.tuile .cadre { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 4px; }
.tuile b { font-size: 15px; font-weight: 600; color: var(--bleu); }
.tuile span { font-size: 12px; color: var(--gris); }
.cadre { position: relative; }
.cadre .auto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.pied { margin-top: auto; padding-top: 6px; text-align: center; font-size: 13px; color: var(--gris); }
.pied strong { color: var(--bleu); font-weight: 600; }

.dit { background: var(--carte); border-radius: var(--rayon-carte); padding: 12px 16px; border: 1.5px solid var(--trait); }
.dit small { color: var(--gris); font-weight: 600; }
.dit p { font-size: 17px; font-weight: 600; color: var(--bleu); }

.parcours { position: relative; display: flex; align-items: flex-start; }
/* Ses roues se posent sur le trait ; le script la déplace d'une étape à l'autre. */
.bolide { position: absolute; z-index: 2; top: 5px; left: -15px; width: 30px; opacity: 0; pointer-events: none; }
.bolide svg { display: block; width: 100%; }
.jalon { position: relative; flex: 1; min-width: 0; display: grid; justify-items: center; gap: 6px; font-size: 12px; line-height: 1.2; font-weight: 600; text-align: center; text-wrap: balance; color: var(--bleu); }
.jalon + .jalon::before { content: ""; position: absolute; z-index: 0; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--trait); }
.jalon:is(.acquis, .actuel) + .jalon:is(.acquis, .actuel)::before { background: var(--or); }
.disque { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bleu); color: #fff; }
.disque .icone { width: 18px; height: 18px; }
.jalon.futur { color: var(--gris); font-weight: 500; }
.jalon.futur .disque { background: var(--fond); color: #a3abc0; box-shadow: inset 0 0 0 1.5px var(--trait); }
.jalon.actuel .disque { background: var(--carte); color: var(--or-fonce); box-shadow: inset 0 0 0 2px var(--or), 0 0 0 4px rgba(197, 155, 63, .18); }
.demande { background: var(--carte); border: 1.5px solid var(--trait); border-radius: var(--rayon-carte); padding: 10px 6px 12px; display: grid; gap: 10px; }
.demande p { display: flex; align-items: baseline; justify-content: space-between; padding-inline: 8px; }
.demande b { font-size: 14px; font-weight: 600; color: var(--bleu); }
.demande small { font-size: 12px; color: var(--gris); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  min-height: 40px; padding: 0 14px; border-radius: var(--rayon); background: var(--bleu-clair); color: var(--bleu);
  display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600;
}

/* Marges automatiques plutôt qu'un centrage du conteneur : si le contenu dépasse l'écran, rien n'est coupé en haut. */
.question { margin-block: auto; display: grid; gap: 18px; padding-bottom: 8vh; }
.question .titre { text-align: center; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix.duo { grid-template-columns: 1fr; }
.choix > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.choix .btn { min-height: 88px; flex-direction: column; gap: 2px; }
.choix.duo .btn { min-height: 100px; }
.choix .btn small { font-size: 13px; font-weight: 400; color: var(--gris); }
.choisi, .choix .btn.choisi { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.choisi small, .choisi b, .choisi span { color: rgba(255, 255, 255, .85); }
.fait > :not(.choisi) { opacity: .35; }

.voiture .scene { border-radius: var(--rayon); }
.voiture { background: var(--carte); border-radius: var(--rayon-grand); border: 1.5px solid var(--trait); box-shadow: var(--ombre); padding: 8px; }
.fiche { padding: 12px 10px 10px; display: grid; gap: 6px; }
.fiche h3 { font-size: 23px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--bleu); }
.details { display: flex; flex-wrap: wrap; gap: 6px; }
.details span { padding: 3px 10px; border-radius: 99px; background: var(--fond); color: var(--gris); font-size: 13px; font-weight: 600; }
.prix { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--bleu); white-space: nowrap; }
.fiche .prix { font-size: 27px; line-height: 1.2; margin-top: 2px; }
.prix small { font-size: 14px; font-weight: 600; color: var(--gris); }
.total { display: flex; justify-content: space-between; align-items: baseline; }

.btn {
  width: 100%; min-height: 58px; padding: 0 18px; border-radius: var(--rayon); background: var(--bleu); color: #fff; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex: none;
}
.btn > .icone { color: var(--or-clair); }
.btn.second { background: var(--carte); color: var(--bleu); border: 1.5px solid var(--trait); }
.btn.clair { background: #fff; color: var(--bleu); }
.btn.discret { background: none; color: var(--gris); min-height: 44px; font-size: 16px; font-weight: 400; }
.nuit .btn.discret { color: rgba(255, 255, 255, .78); }

.autres h4 { font-size: 15px; font-weight: 600; color: var(--gris); margin-bottom: 8px; }
.ligne {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 14px 8px 8px; margin-bottom: 8px;
  background: var(--carte); border: 1.5px solid var(--trait); border-radius: var(--rayon-carte); text-align: left;
}
.ligne .cadre { width: 96px; height: 58px; flex: none; }
.ligne div:not(.cadre) { flex: 1; min-width: 0; }
.ligne b { display: block; font-weight: 600; color: var(--bleu); line-height: 1.25; }
.ligne span { font-size: 13px; color: var(--gris); }

.voile { position: absolute; inset: 0; background: rgba(7, 28, 85, .55); }
.feuille {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--carte); border-radius: var(--rayon-grand) var(--rayon-grand) 0 0;
  padding: 10px 20px 22px; display: grid; gap: 14px; box-shadow: 0 -18px 40px rgba(7, 28, 85, .18);
}
.feuille::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--trait); justify-self: center; }
.feuille h3 { font-size: 23px; line-height: 1.2; font-weight: 800; color: var(--bleu); }

.calendrier { gap: 10px; }
.mois { display: flex; align-items: center; justify-content: space-between; }
.mois h3 { font-size: 20px; text-transform: capitalize; }
.rond:disabled { opacity: .35; cursor: default; }
.semaine, .jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.semaine span { font-size: 12px; font-weight: 600; color: var(--gris); }
.jour { aspect-ratio: 1; border-radius: 50%; font-weight: 600; color: var(--bleu); font-variant-numeric: tabular-nums; }
.jour:disabled { color: #b9c0d1; font-weight: 400; cursor: default; }
.jour.aujourdhui { box-shadow: inset 0 0 0 2px var(--or); }
.jour.choisi, .jour.depart { background: var(--bleu); color: #fff; box-shadow: none; }
.jour.dans { background: var(--bleu-clair); }
.calendrier .depuis { text-align: center; text-wrap: balance; font-size: 14px; color: var(--gris); }
.calendrier .depuis b { color: var(--bleu); font-weight: 600; }

.resume { display: flex; align-items: center; gap: 12px; background: var(--carte); border: 1.5px solid var(--trait); border-radius: var(--rayon-carte); padding: 12px 14px; }
.resume > div:first-child { flex: 1; min-width: 0; }
.resume small { display: block; color: var(--gris); font-size: 13px; }
.resume .cadre { width: 104px; height: 62px; flex: none; }
.moyens { display: grid; grid-template-columns: repeat(2, minmax(0, 176px)); justify-content: center; gap: 12px; }
.moyen {
  position: relative; aspect-ratio: 1; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--carte); border: 1.5px solid var(--trait); border-radius: var(--rayon-carte); font-size: 15px; color: var(--bleu);
}
.moyen[aria-pressed="true"] { border-color: var(--bleu); box-shadow: inset 0 0 0 1.5px var(--bleu), var(--ombre); }
.moyen b { font-weight: 600; }
.operateur { width: 50%; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; }
.operateur.mtn { background: #ffcb05; color: #000; }
.operateur.orange { background: #000; color: #fff; }
.operateur.mtn svg { width: 76%; }
.operateur.orange svg { width: 62%; }
.moyen .coche { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bleu); color: #fff; opacity: 0; transform: scale(.72); }
.moyen .coche .icone { width: 14px; height: 14px; stroke-width: 3; }
.moyen[aria-pressed="true"] .coche { opacity: 1; transform: none; }

.pastille { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-fond); color: var(--ok); }
.pastille.attente { background: var(--attente-fond); color: var(--attente); }
.pastille.refus { background: var(--alerte-fond); color: var(--alerte); }
.pastille.or { background: radial-gradient(circle at 30% 24%, #f6e3b0, var(--or-clair) 45%, var(--or)); color: var(--bleu-nuit); }
.pastille.or::before, .pastille.or::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--or-clair); opacity: 0; }
.pastille .icone { width: 48px; height: 48px; stroke-width: 2.6; }
.tourne { width: 96px; height: 96px; border-radius: 50%; border: 7px solid var(--trait); border-top-color: var(--or); animation: tour .8s linear infinite; }
.recap { width: 100%; background: var(--carte); color: var(--encre); border: 1.5px solid var(--trait); border-radius: var(--rayon-carte); padding: 4px 16px; text-align: left; }
.recap div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.recap div:last-child { border: 0; }
.recap dt { color: var(--gris); }
.recap dd { font-weight: 600; text-align: right; }
.avis { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--rayon-carte); background: var(--attente-fond); color: var(--attente); font-weight: 600; text-align: left; }
.avis .icone { margin-top: 1px; }
.gabarit { border-radius: var(--rayon-carte); background: #e6eaf3; animation: pouls 1s ease-in-out infinite alternate; }
.gabarit.haut { height: 300px; border-radius: var(--rayon-grand); }
.gabarit.bas { height: 58px; }

/* Sur un téléphone assez haut, les trois types passent en lignes et les panneaux prennent la hauteur restante. */
@media (min-height: 820px) {
  @container app (max-width: 799.98px) {
    .accueil .panneaux { flex: 1 0 252px; }
    .accueil .parler { justify-items: center; grid-template-columns: none; }
    .accueil .parler .orbe { grid-row: auto; }
    .accueil .exemple { text-align: center; }
    .accueil .tuiles { grid-template-columns: none; grid-auto-rows: minmax(72px, 1fr); }
    .accueil .tuile { grid-template-columns: 36% 1fr auto; grid-template-rows: 1fr 1fr; justify-items: start; column-gap: 16px; padding: 8px 20px 8px 10px; text-align: left; }
    .accueil .tuile .cadre { grid-row: 1 / -1; height: 100%; aspect-ratio: auto; margin: 0; }
    .accueil .tuile b { align-self: end; font-size: 19px; }
    .accueil .tuile span { align-self: start; font-size: 14px; }
    .accueil .tuile::after {
      content: ""; grid-area: 1 / 3 / -1; align-self: center; width: 9px; height: 9px;
      border: solid var(--or); border-width: 2px 2px 0 0; transform: rotate(45deg);
    }
  }
}

@container app (min-width: 800px) {
  .ecran { padding: 28px 64px 40px; }
  .ecran:not(.accueil) { padding-inline: calc((100% - 520px) / 2); }
  .feuille { inset: 0; margin: auto; width: 440px; height: fit-content; border-radius: var(--rayon-grand); padding-top: 22px; }
  .feuille::before { display: none; }
  .accueil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 64px; align-content: safe center; padding-inline: max(64px, calc((100% - 1180px) / 2)); }
  .accueil .entete, .accueil .pied, .accueil .avis { grid-column: 1 / -1; }
  .accueil .gauche, .accueil .droite { display: grid; gap: 16px; align-content: center; }
  .accueil .accroche { justify-self: start; }
  .accueil .vitrine { aspect-ratio: 2 / 1; }
  .accueil .tuile .cadre { aspect-ratio: 16 / 9; }
  .accueil .titre { font-size: 54px; }
  .accueil .sous { font-size: 19px; }
  .accueil .tuiles { gap: 14px; }
  .accueil .tuile b { font-size: 17px; }
}
.gauche, .droite { display: contents; }

.bienvenue {
  position: fixed; inset: 0; z-index: 10; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 16px;
  padding: 24px; text-align: center; color: #fff; cursor: pointer;
  background: radial-gradient(120% 55% at 50% 0%, #1b46b3 0%, var(--bleu) 46%, var(--bleu-nuit) 100%);
}
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--or-clair); }
.bienvenue .logo { color: #fff; gap: 12px; }
.bienvenue .logo svg { width: 64px; height: 64px; }
.bienvenue .logo b { font-size: 38px; }
.bienvenue .logo small { font-size: 13px; margin-top: 6px; color: var(--or-clair); }
.bienvenue .titre { margin-top: 10px; font-size: 34px; color: #fff; }
.bienvenue .titre em { color: var(--or-clair); }
.bienvenue .scene { width: min(86vw, 560px); background: none; overflow: visible; }
.bienvenue .scene .sol { background: radial-gradient(closest-side, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }

/* Page équipe */
.equipe { max-width: 720px; margin: 0 auto; padding: 20px 20px 64px; display: grid; gap: 16px; }
.equipe > header, .titre-equipe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.titre-equipe { margin-top: 8px; }
.equipe h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--bleu); }
.equipe .btn { width: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
.pile { display: grid; gap: 14px; }
.vide { padding: 40px 20px; border: 1.5px dashed var(--trait); border-radius: var(--rayon-carte); text-align: center; color: var(--gris); }
.reservation { background: var(--carte); border: 1.5px solid var(--trait); border-radius: var(--rayon-grand); box-shadow: var(--ombre); padding: 16px; display: grid; gap: 16px; }
.reservation .tete { display: flex; align-items: center; gap: 14px; }
.reservation .tete > div:last-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.reservation .cadre { width: 34%; max-width: 190px; aspect-ratio: 16 / 10; flex: none; border-radius: var(--rayon); background: linear-gradient(180deg, #e3eafb, #f3f6fd); }
.reservation .recu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; font-size: 13px; color: var(--gris); font-variant-numeric: tabular-nums; }
.reservation .recu b { display: flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border-radius: 99px; background: var(--ok-fond); color: var(--ok); font-weight: 600; }
.reservation .recu .icone { width: 14px; height: 14px; stroke-width: 3; }
.reservation.demande .recu b { background: var(--attente-fond); color: var(--attente); }
.reservation.confirmee .recu b { background: var(--bleu-clair); color: var(--bleu); }
.reservation.refusee .recu b { background: var(--alerte-fond); color: var(--alerte); }
.reservation.expiree .recu b { background: #eceff5; color: var(--gris); }
.reservation.demande { border-color: var(--or); }
.reservation:is(.refusee, .expiree) > :not(.envoi) { opacity: .55; }
.envoi { display: grid; gap: 6px; }
.envoi small { font-size: 13px; color: var(--ok); font-weight: 600; }
.envoi:is(.simule, .echec) small { color: var(--attente); }
.bulle { justify-self: start; max-width: min(100%, 460px); padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--bleu-clair); color: var(--encre); font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.btn.danger { background: var(--alerte); color: #fff; }
.reservation h2 { font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--bleu); }
.reservation .somme { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--gris); }
.reservation .somme b { margin-right: 4px; font-size: 18px; font-weight: 800; color: var(--bleu); font-variant-numeric: tabular-nums; }
.reservation .operateur { width: 22px; border-radius: 6px; }
.reservation .client { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 14px; border-top: 1px solid var(--trait); }
.reservation .client b { font-weight: 600; color: var(--encre); text-transform: capitalize; }
.reservation a { color: var(--bleu); font-weight: 600; font-variant-numeric: tabular-nums; }
.reservation .consigne { color: var(--gris); font-size: 15px; }
.reservation .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reservation .actions .btn { flex: 1 1 auto; white-space: nowrap; text-decoration: none; }
.reservation .actions [aria-pressed="true"] { border-color: var(--bleu); box-shadow: inset 0 0 0 1.5px var(--bleu); background: var(--bleu-clair); }
.reservation .attribue { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reservation .attribue p { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.reservation .attribue .icone { width: 18px; height: 18px; stroke-width: 3; }

/* Mouvement : uniquement transform et opacity, pour rester fluide sur un téléphone modeste. */
.btn, .tuile, .micro, .ligne, .moyen, .rond, .carre, .jour, button.jalon { transition: transform 150ms var(--sortie), opacity 180ms ease-out; }
.jour:enabled:active, .rond:enabled:active { transform: scale(.9); }
.btn:active, .tuile:active, .micro:active, .ligne:active, .moyen:active, .rond:active, .carre:active, button.jalon:active { transform: scale(.96); }
.choisi { transform: scale(1.02); }

@keyframes onde { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes tour { to { transform: rotate(360deg); } }
@keyframes pouls { from { opacity: 1; } to { opacity: .45; } }
@keyframes fondu { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  [data-sens="avant"] :is(.ecran, .gauche, .droite) > * { animation: venir-de-droite 520ms var(--sortie) backwards; }
  [data-sens="arriere"] :is(.ecran, .gauche, .droite) > * { animation: venir-de-gauche 520ms var(--sortie) backwards; }
  .premiere :is(.gauche, .droite) > *, .premiere .pied { animation: monter 800ms var(--sortie) 200ms backwards; }
  .premiere .droite > :nth-child(n+3) { animation-delay: 380ms; }
  .panneau.entre > * { animation: monter 440ms var(--sortie) backwards; }
  .panneau.entre > :nth-child(2) { animation-delay: 70ms; }
  [data-sens] .ecran > :nth-child(2) { animation-delay: 50ms; }
  [data-sens] .ecran > :nth-child(3) { animation-delay: 100ms; }
  [data-sens] .ecran > :nth-child(4) { animation-delay: 150ms; }
  [data-sens] .ecran > :nth-child(5) { animation-delay: 200ms; }
  [data-sens] .ecran > :nth-child(n+6) { animation-delay: 250ms; }

  :is([data-sens="avant"], [data-sens="arriere"]) .cascade > * { animation: monter 520ms var(--sortie) backwards; animation-delay: 180ms; }
  :is([data-sens="avant"], [data-sens="arriere"]) .cascade > :nth-child(2) { animation-delay: 240ms; }
  :is([data-sens="avant"], [data-sens="arriere"]) .cascade > :nth-child(3) { animation-delay: 300ms; }
  :is([data-sens="avant"], [data-sens="arriere"]) .cascade > :nth-child(n+4) { animation-delay: 360ms; }

  .bienvenue .surtitre { animation: monter 700ms var(--sortie) 150ms backwards; }
  .bienvenue .logo > :first-child { animation: eclore 820ms var(--rebond) 280ms backwards; }
  .bienvenue .logo > :last-child { animation: venir-de-droite 760ms var(--sortie) 420ms backwards; }
  .bienvenue .titre .rang > span { animation: lever 900ms var(--sortie) 950ms backwards; }
  .bienvenue .scene .auto.roule { animation: rouler 1200ms var(--sortie) 1150ms backwards; }
  .bienvenue .scene .auto.roule + .sol { animation: fondu 700ms ease-out 1700ms backwards; }
  .premiere .titre .rang > span { animation: lever 900ms var(--sortie) backwards; }
  .premiere .titre .rang:nth-child(2) > span { animation-delay: 110ms; }
  .premiere .micro { animation: eclore 800ms var(--rebond) 260ms backwards; }
  .premiere .griffe path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1100ms var(--sortie) 420ms forwards; }
  .scene .auto.roule { animation: rouler 900ms var(--sortie) backwards; }
  .scene .auto.roule + .sol, .scene .sol.pose { animation: fondu 700ms ease-out 260ms backwards; }
  .vitrine .auto { will-change: transform, opacity; }
  /* Le fil reste en place d'une question à l'autre : seuls le trait et le disque qui viennent de changer bougent. */
  [data-sens] .ecran > .parcours { animation: none; }
  .jalon.acquis + .jalon.actuel::before { transform-origin: left; animation: remplir 520ms var(--sortie) 160ms backwards; }
  .jalon.neuf .disque { animation: eclore 420ms var(--rebond) 140ms backwards; }
  [data-sens="arriere"] .jalon.actuel + .jalon::before { animation: vider 520ms ease-out 160ms backwards; }
  .mot { display: inline-block; animation: mot 320ms var(--sortie) backwards; }
  .voile.ouvre { animation: fondu 220ms ease-out; }
  .feuille.ouvre { animation: tiroir 420ms var(--tiroir); }
  .jours.vers-avant { animation: venir-de-droite 320ms var(--sortie); }
  .jours.vers-arriere { animation: venir-de-gauche 320ms var(--sortie); }
  .pastille { animation: eclore 620ms var(--rebond) backwards; }
  .moyen[aria-pressed="true"] .coche { animation: eclore 420ms var(--rebond) backwards; }
  .pastille.refus { animation: secousse 420ms var(--sortie); }
  .pastille.or::before { animation: eclat 1100ms var(--sortie) 240ms; }
  .pastille.or::after { animation: eclat 1100ms var(--sortie) 460ms; }
  .trait-coche { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tracer-coche 460ms var(--sortie) 320ms forwards; }
  .reservation.nouvelle { animation: monter 420ms var(--sortie) backwards; }

  @keyframes venir-de-droite { from { opacity: 0; transform: translateX(44px); } }
  @keyframes venir-de-gauche { from { opacity: 0; transform: translateX(-44px); } }
  @keyframes monter { from { opacity: 0; transform: translateY(18px); } }
  @keyframes lever { from { transform: translateY(105%); } }
  @keyframes eclore { from { opacity: 0; transform: scale(.72); } }
  @keyframes rouler { from { opacity: 0; transform: translateX(58%); } 55% { opacity: 1; } }
  @keyframes remplir { from { transform: scaleX(0); } }
  @keyframes vider { from { background: var(--or); } }
  @keyframes mot { from { opacity: 0; transform: translateY(10px); } }
  @keyframes tiroir { from { transform: translateY(100%); } }
  @keyframes secousse { 25% { transform: translateX(-7px); } 60% { transform: translateX(6px); } 85% { transform: translateX(-2px); } }
  @keyframes eclat { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.3); } }
  @keyframes tracer { to { stroke-dashoffset: 0; } }
  @keyframes tracer-coche { to { stroke-dashoffset: 0; } }
}

@media (hover: hover) and (pointer: fine) {
  .tuile:hover, .ligne:hover, .choix .btn:hover { border-color: var(--bleu); }
  .jour:enabled:not(.choisi, .depart):hover { background: var(--bleu-clair); }
  .btn:not(.second, .discret, .clair):hover { background: var(--bleu-nuit); }
}

@media (prefers-reduced-motion: reduce) {
  .micro::before, .micro::after, .gabarit { animation: none; }
  .trait-coche { stroke-dashoffset: 0; }
}
