/* ==========================================================
   Tala Niang — réservation en ligne (page Réserver)
   Mêmes couleurs, polices et verre que le reste du site (style.css) :
   fond noir, texte crème, Cormorant pour les titres, Inter Tight pour le reste,
   panneaux en verre flouté comme le menu des séries. Pensé d'abord pour le téléphone.
   ========================================================== */

.resa {
  --verre: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015) 46%), rgba(255, 255, 255, .045);
  --verre-bord: rgba(255, 255, 255, .14);
  --verre-reflet: inset 0 1px 0 rgba(255, 255, 255, .16);
  --verre-flou: blur(24px) saturate(160%);
  --rayon: 24px;
  --barre-resa: 0px;
  position: relative;
  padding-bottom: calc(var(--barre-resa) + 24px);
  color: var(--texte);
  font-family: var(--police);
}
.resa:not([data-etape="0"]) { --barre-resa: 112px; }
.resa[hidden], .resa [hidden] { display: none !important; }
.resa h1, .resa h2, .resa h3 { font-weight: 400; }
.resa button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.resa svg { width: 20px; height: 20px; flex: none; }
.resa :focus-visible { outline: 1px solid var(--texte); outline-offset: 3px; }
.resa [tabindex="-1"]:focus { outline: none; }   /* le titre reçoit le focus à chaque étape, pour les lecteurs d'écran */

/* ---------- Le haut de page : photo, sur-titre, grand titre ---------- */

.resa-heros {
  position: relative; overflow: hidden;
  min-height: min(76vh, 640px);
  display: flex; align-items: flex-end;
  padding: calc(var(--entete) + 24px) var(--pad) 40px;
}
.resa-fond { position: absolute; inset: 0; z-index: 0; }
.resa-fond img, .resa-fond-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 22%; }
.resa-fond::after {                                   /* la photo se fond dans le noir du site */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 52%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .1) 55%, var(--fond) 100%);
}
.resa-heros-texte { position: relative; z-index: 1; max-width: 34em; }
.resa-vitrine .resa-fond img { object-position: 46% 38%; }   /* la photo d'en-tête (Mode, robe blanche dans la fumée bleue) : le visage reste dans le cadre */
.resa-sur {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--texte-doux);
}
.resa-sur::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .7; }
.resa-titre { margin: 0; font: 500 clamp(44px, 12.6vw, 92px)/.98 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.resa-intro { margin-top: 16px; max-width: 26em; font-size: 16.5px; line-height: 1.5; color: var(--texte-doux); }

/* ---------- Le verre ---------- */

.resa-panneau, .resa-carte-lien, .resa-encart, .resa-barre-verre {
  background: var(--verre);
  border: 1px solid var(--verre-bord);
  box-shadow: var(--verre-reflet), 0 24px 60px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .resa-panneau, .resa-carte-lien, .resa-encart, .resa-barre-verre { background: #0d0d0d; }
}

/* bouton rond (retour, − / +, mois) : le même verre que les boutons ronds du portfolio */
.resa-rond {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  cursor: pointer; transition: background-color .25s var(--ease), transform .2s var(--ease), opacity .25s;
}
.resa-rond:hover { background: rgba(255, 255, 255, .12); }
.resa-rond:active { transform: scale(.92); background: rgba(255, 255, 255, .18); }
.resa-rond:disabled { opacity: .3; cursor: default; transform: none; }
.resa-rond.refus { animation: resa-refus .32s var(--ease); }
@keyframes resa-refus { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ---------- 0 · Les prestations ---------- */

/* des cartes plus compactes : elles ne prennent plus toute la largeur, et respirent davantage */
.resa { --marge-cartes: max(28px, 7.5vw); }
.resa-cartes {
  list-style: none; position: relative; z-index: 1; display: grid; gap: 18px;
  width: min(440px, calc(100% - 2 * var(--marge-cartes))); margin: -8px auto 0; padding: 0;
}
.resa-carte { animation: resa-monte .7s var(--ease) both; animation-delay: calc(.12s + var(--i) * .08s); }
.resa-carte-lien {
  position: relative; display: grid; grid-template-columns: 31% 1fr; gap: 14px; align-items: center;
  width: 100%; padding: 10px; border-radius: var(--rayon); text-align: left; cursor: pointer; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), background-color .45s;
}
.resa-carte-lien::before {                            /* reflet qui glisse au passage */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 48%, transparent 66%);
  transform: translateX(-60%); transition: transform .9s var(--ease);
}
.resa-carte-lien:hover::before, .resa-carte-lien:focus-visible::before { transform: translateX(60%); }
.resa-carte-lien:hover { border-color: rgba(255, 255, 255, .26); }
.resa-carte-lien:active { transform: scale(.985); }
.resa-carte-photo { display: block; min-width: 0; width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--panneau); }
.resa-carte-photo img { width: 100%; max-width: none; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
/* Film de cérémonie (2.36.0) : gros plan très vertical, le visage est au milieu de la photo et non en haut */
.resa-carte-lien[data-prestation="film-de-ceremonie"] .resa-carte-photo img { object-position: 50% 55%; }
.resa-heros-presta[data-prestation="film-de-ceremonie"] .resa-fond img { object-position: 50% 55%; }
/* Portrait parent & enfant (2.39.0) : photos horizontales dans la vignette verticale, cadrées sur les deux visages */
.resa-perso:has(.resa-heros-presta[data-prestation="portrait-parent-enfant"]) .resa-module[data-option="photos"] .resa-vignette img { object-position: 39% 50%; }
.resa-perso:has(.resa-heros-presta[data-prestation="portrait-parent-enfant"]) .resa-module[data-option="heures"] .resa-vignette img { object-position: 70% 50%; }
/* Couple session (2.40.0) : « Nombre de tenues », le visage de l'homme est à droite de la photo */
.resa-perso:has(.resa-heros-presta[data-prestation="couple-session"]) .resa-module[data-option="tenues"] .resa-vignette img { object-position: 78% 40%; }
/* Couverture photographique (2.41.0) : « Formule », vignette carrée ; les visages sont en haut de la photo */
.resa-perso:has(.resa-heros-presta[data-prestation="couverture-photographique"]) .resa-module[data-option="formule"] .resa-vignette img { object-position: 45% 22%; }
.resa-carte-lien:hover .resa-carte-photo img { transform: scale(1.05); }
.resa-carte-texte { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 4px 6px 4px 0; min-width: 0; }
.resa-carte-nom { font: 500 clamp(24px, 6.6vw, 30px)/1.05 var(--serif); }
.resa-carte-desc { font-size: 13.5px; line-height: 1.45; color: var(--texte-doux); }
.resa-etiquettes { list-style: none; margin: 6px 0 0; padding: 0 44px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.resa-etiquettes li { display: inline-flex; align-items: center; gap: 6px; }
.resa-etiquettes { flex-direction: column; }
@media (min-width: 420px) {
  .resa-etiquettes { flex-direction: row; }
  .resa-etiquettes li + li { padding-left: 14px; border-left: 1px solid var(--ligne); }
}
.resa-etiquettes svg { width: 16px; height: 16px; opacity: .85; }
.resa-fleche {
  position: absolute; right: 12px; bottom: 12px;        /* en bas à droite : le texte garde toute la largeur */
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); transition: background-color .35s var(--ease), color .35s var(--ease);
}
.resa-carte-lien:hover .resa-fleche { background: var(--texte); color: var(--fond); }
.resa-carte-lien:hover .resa-fleche svg { animation: resa-fleche .5s var(--ease); }
@keyframes resa-fleche { 50% { transform: translateX(3px); } }
.resa-carte.ouvre .resa-fleche { animation: resa-pulse 1s var(--ease) infinite; }
@keyframes resa-pulse { 50% { opacity: .35; } }

/* « Un projet spécifique ? » */
.resa-encart {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  width: min(440px, calc(100% - 2 * var(--marge-cartes))); margin: 32px auto 0; padding: 20px; border-radius: var(--rayon);
  animation: resa-monte .7s var(--ease) .5s both;
}
.resa-encart::before {
  content: ""; grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  background: center / 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e6dd' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
}
.resa-encart h2 { font: 500 24px/1.15 var(--serif); }
.resa-encart p { grid-column: 2; font-size: 14px; color: var(--texte-doux); }
.resa-encart .wp-block-buttons { grid-column: 1 / -1; margin-top: 12px; }
.resa-encart .wp-block-button { width: 100%; }
.resa-encart .wp-block-button__link { /* même bouton clair que « Continuer » */
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 999px;
  background: var(--texte); color: var(--fond); font-size: 15px; letter-spacing: .02em; text-decoration: none;
  transition: transform .2s var(--ease), background-color .3s;
}
.resa-encart .wp-block-button__link::after { content: "→"; }
.resa-encart .wp-block-button__link:active { transform: scale(.97); }

/* ---------- 1 · Personnalisation ---------- */

.resa-heros-presta { min-height: min(54vh, 500px); }
.resa-heros .resa-retour { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--entete) + 4px); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.resa-heros-presta .resa-heros-texte { padding-top: 60px; }

.resa-panneau { position: relative; z-index: 1; margin: 0 max(12px, calc(var(--pad) - 8px)); padding: 22px 16px 18px; border-radius: 28px; }
.resa-perso .resa-panneau { margin: -18px max(20px, 5.4vw) 0; padding: 20px 14px 16px; border-radius: 26px; }   /* personnalisation : un cadre un peu plus fin */
.resa-panneau > h2, .resa-recap-bloc h2 { font: 500 28px/1.1 var(--serif); }
.resa-aide { margin-top: 4px; font-size: 14px; color: var(--texte-doux); }
.resa-modules { display: grid; gap: 12px; margin-top: 18px; }
.resa-perso .resa-panneau > h2 { font-size: 26px; }
.resa-perso .resa-modules { gap: 10px; margin-top: 16px; }

.resa-module {
  --vig: 70px;
  display: grid; grid-template-columns: var(--vig) 1fr; gap: 11px; align-items: start;
  padding: 9px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
}
.resa-module:not(:has(.resa-vignette)) { grid-template-columns: 1fr; }
.resa-vignette { min-width: 0; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--panneau); }
.resa-vignette img { width: 100%; height: 100%; object-fit: cover; }
.resa-module-corps { min-width: 0; padding: 2px 2px 0 0; }
.resa-module h3 { font-size: 15.5px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
/* l'icône (i) : le détail du tarif de l'option */
.resa-info {
  position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; padding: 0; border-radius: 50%;
  border: 1px solid rgba(232, 230, 221, .5); background: none; cursor: pointer; font: italic 500 11px/1 var(--serif); color: var(--texte);
}
.resa-info::before { content: ""; position: absolute; inset: -13px; }        /* zone de doigt de 44 px */
.resa-info[aria-expanded="true"] { background: var(--texte); color: var(--fond); }
.resa-info-texte { margin-top: 6px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: var(--texte); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.resa-info-texte[hidden] { display: none; }
.resa-module-corps > p { font-size: 13px; color: var(--texte-doux); margin-top: 2px; }
.resa-module-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }

.resa-compteur { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1); }
.resa-compteur .resa-rond { width: 44px; height: 44px; }
.resa-compteur output { min-width: 88px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.resa-compteur output.haut { animation: resa-chiffre-haut .34s var(--ease); }
.resa-compteur output.bas { animation: resa-chiffre-bas .34s var(--ease); }
@keyframes resa-chiffre-haut { from { opacity: .2; transform: translateY(8px); } }
@keyframes resa-chiffre-bas { from { opacity: .2; transform: translateY(-8px); } }

.resa-pastille {
  padding: 7px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: var(--texte-doux); border: 1px solid rgba(255, 255, 255, .14); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.resa-pastille.active { background: var(--texte); color: var(--fond); border-color: var(--texte); }

.resa-choix { display: grid; gap: 8px; width: 100%; }
.resa-module-liste { display: block; }
.resa-module-tete { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.resa-module-tete:not(:has(.resa-vignette)) { grid-template-columns: 1fr; }
.resa-module-tete .resa-vignette { aspect-ratio: 1; border-radius: 12px; }
.resa-puce {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px;
  padding: 10px 14px 10px 40px; position: relative; text-align: left; cursor: pointer;
  border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.resa-puce::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; transition: background-color .25s, box-shadow .25s, border-color .25s;
}
.resa-module-cases .resa-puce::before { border-radius: 5px; }
.resa-puce span { font-size: 14px; line-height: 1.3; }
.resa-puce em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--texte-doux); }   /* durée et livrables de la formule */

/* ce qui est inclus dans la prestation */
.resa-inclus { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .1); }
.resa-inclus h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--texte-doux); font-weight: 400; }
.resa-inclus ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.resa-inclus li { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; border: 1px solid rgba(255, 255, 255, .16); }
.resa-inclus p { margin-top: 10px; font-size: 13px; color: var(--texte-doux); }
.resa-livraison { margin-top: 6px; font-size: 13px; color: var(--texte-doux); }
.resa-recap-bloc .resa-livraison { margin-top: 10px; }
.resa-puce small { font-size: 12.5px; color: var(--texte-doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.resa-puce.actif { border-color: rgba(232, 230, 221, .55); background: rgba(232, 230, 221, .08); }
.resa-puce.actif::before { background: var(--texte); border-color: var(--texte); box-shadow: inset 0 0 0 3px var(--fond); }
.resa-puce:active { transform: scale(.99); }

.resa-somme { margin-top: 14px; padding: 14px; border-radius: 20px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1); }
.resa-somme-base { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "picto nom prix" "picto inclus inclus"; gap: 0 12px; align-items: center; }
.resa-somme-base .resa-picto { grid-area: picto; }
.resa-somme-base > span:nth-child(2) { display: contents; }
.resa-somme-base strong { grid-area: nom; }
.resa-somme-base small { grid-area: inclus; }
.resa-somme-base > span:last-child { grid-area: prix; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 419px) {                            /* petit écran : la ligne garde son libellé sur une ligne */
  .resa-somme-base { grid-template-columns: 1fr auto; grid-template-areas: "nom prix" "inclus inclus"; }
  .resa-somme-base .resa-picto { display: none; }
  .resa .resa-somme-extras li { padding-left: 0; }
}
.resa-picto { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.resa-somme-base strong { display: block; font-weight: 400; }
.resa-somme-base small { display: block; font-size: 13px; color: var(--texte-doux); }
.resa-somme-extras { list-style: none; margin: 0; padding: 0; }
.resa-somme-extras li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0 52px; font-size: 14px; font-variant-numeric: tabular-nums; animation: resa-monte .35s var(--ease) both; }
.resa-somme-extras small { display: block; color: var(--texte-doux); font-size: 12.5px; }
.resa-somme-extras li span:last-child { white-space: nowrap; }
.resa-somme-recap { margin-top: 12px; font-size: 13px; color: var(--texte-doux); }
.resa-somme-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.resa-somme-total strong { font: 500 clamp(27px, 7.6vw, 34px)/1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.resa-prix.bouge, .resa-somme-total strong.bouge { animation: resa-prix .45s var(--ease); }
@keyframes resa-prix { 40% { opacity: .55; transform: translateY(-2px); } }

/* ---------- En-tête des étapes 2 à 4 ---------- */

.resa-tete { position: relative; padding: calc(var(--entete) + 72px) var(--pad) 28px; }
.resa-tete .resa-retour { position: absolute; left: var(--pad); top: calc(var(--entete) + 4px); }
.resa-tete .resa-titre { font-size: clamp(40px, 11vw, 72px); }

/* ---------- 2 · Date et heure ---------- */

.resa-petit-titre { display: flex; align-items: center; gap: 10px; font-size: 16px !important; font-family: var(--police) !important; font-weight: 400; margin: 0 0 14px; }
.resa-petit-titre ~ .resa-petit-titre { margin-top: 26px; }
.resa-mois { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.resa-mois p { font: 500 24px/1 var(--serif); text-transform: capitalize; }
.resa-mois .resa-rond { width: 42px; height: 42px; }
.resa-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .25s; min-height: 236px; }
.resa-grille.charge { opacity: .35; }
.resa-jsem { text-align: center; font-size: 11px; letter-spacing: .12em; color: var(--texte-doux); padding: 4px 0 6px; }
.resa-jour {
  aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; border-radius: 50%; padding: 0;
  background: none; border: 1px solid transparent; cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s;
}
.resa-jour:not(:disabled) { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.resa-jour:not(:disabled):hover { border-color: rgba(255, 255, 255, .4); }
.resa-jour:disabled { color: rgba(232, 230, 221, .24); cursor: default; }
.resa-jour.actif, .resa-jour.actif:not(:disabled) { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.resa-heures, .resa-rdv-zone { scroll-margin-bottom: calc(var(--barre-resa) + var(--barre, 0px) + 16px); }

/* le calendrier : un cadre un peu plus fin, comme la personnalisation */
.resa-date .resa-panneau { margin: 0 max(20px, 5.4vw); padding: 20px 14px 16px; border-radius: 26px; }
.resa-date .resa-grille { gap: 3px; min-height: 220px; }
.resa-date .resa-jour { min-height: 38px; font-size: 14.5px; }
.resa-date .resa-mois p { font-size: 22px; }
.resa-date .resa-mois .resa-rond { width: 40px; height: 40px; }

/* « Votre rendez-vous » : le créneau choisi, avec son heure de fin */
.resa-rdv {
  margin-top: 16px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)), rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: resa-monte .4s var(--ease) both;
}
.resa-rdv-titre { margin-bottom: 8px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--texte-doux); }
.resa-rdv dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.resa-rdv dl > div:first-child { grid-column: 1 / -1; }
.resa-rdv dt { font-size: 12px; color: var(--texte-doux); }
.resa-rdv dd { margin: 2px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.resa-rdv dl > div:first-child dd::first-letter { text-transform: uppercase; }
.resa-rdv-fin dd { font: 500 24px/1.1 var(--serif); }
.resa-heures .resa-aide { margin: 0 0 12px; }
.resa-heures .resa-aide::first-letter { text-transform: uppercase; }
.resa-creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.resa-creneau {
  height: 48px; border-radius: 999px; cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .25s var(--ease), color .25s, transform .2s var(--ease);
}
.resa-creneau:active { transform: scale(.95); }
.resa-creneau:disabled { cursor: default; color: rgba(232, 230, 221, .28); border-style: dashed; border-color: rgba(255, 255, 255, .1); text-decoration: line-through; }
.resa-creneau.actif { background: var(--texte); color: var(--fond); border-color: var(--texte); }

/* ---------- 3 · Coordonnées ---------- */

.resa-formulaire { display: grid; gap: 14px; }
.resa-champ { display: grid; gap: 6px; }
.resa-champ > span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); }
.resa-champ input, .resa-champ textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--texte);   /* 16 px : pas de zoom sur iPhone */
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); outline: none;
  transition: border-color .25s var(--ease), background-color .25s;
}
.resa-champ textarea { resize: vertical; min-height: 110px; }
.resa-champ input::placeholder, .resa-champ textarea::placeholder { color: rgba(232, 230, 221, .32); }
.resa-champ input:focus, .resa-champ textarea:focus { border-color: rgba(232, 230, 221, .6); background: rgba(0, 0, 0, .45); }
.resa-champ [aria-invalid="true"] { border-color: #d98b7a; }
.resa-champ-erreur { font-style: normal; font-size: 13px; color: #e3a595; }
.resa-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 4 · Récapitulatif, 5 · Confirmation ---------- */

.resa-recap-bloc { position: relative; padding: 4px 0 18px; border-bottom: 1px solid var(--ligne); margin-bottom: 18px; }
.resa-recap-bloc h2 { font-size: 22px !important; margin-bottom: 8px; }
.resa-modifier { position: absolute; right: 0; top: 4px; padding: 6px 0; background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--texte-doux); text-decoration: underline; text-underline-offset: 3px; }
.resa-liste { list-style: none; margin: 0; padding: 0; }
.resa-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.resa-liste li span:first-child { color: var(--texte-doux); }
.resa-liste li span:last-child { text-align: right; }
.resa-liste small { display: block; color: var(--texte); font-size: 13px; }
.resa-liste-simple li span:last-child { overflow-wrap: anywhere; }
.resa-recap-date { font-size: 16px; }
.resa-recap-date::first-letter { text-transform: uppercase; }
.resa-total li { padding: 6px 0; }
.resa-total .resa-final { align-items: baseline; padding-bottom: 10px; }
.resa-total .resa-final span:first-child { color: var(--texte); }
.resa-total .resa-final span:last-child { font: 500 34px/1 var(--serif); }
.resa-note { margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--texte-doux); }
.resa-erreur { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: #f0c4b8; background: rgba(217, 139, 122, .12); border: 1px solid rgba(217, 139, 122, .35); }

.resa-fin { padding-top: calc(var(--entete) + 24px); }
.resa-merci { text-align: center; padding: 34px 20px 24px; }
.resa-merci .resa-sur { justify-content: center; }
.resa-merci .resa-sur::before { display: none; }
.resa-merci .resa-titre { font-size: clamp(40px, 11vw, 64px); }
.resa-merci .resa-intro { margin: 14px auto 18px; }
.resa-merci .resa-liste { max-width: 340px; margin: 0 auto; text-align: left; }
.resa-coche { width: 76px; height: 76px; margin: 0 auto 18px; }
.resa-coche svg { width: 100%; height: 100%; }
.resa-coche-rond { stroke: rgba(232, 230, 221, .5); stroke-width: 1.2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: resa-trace .9s var(--ease) .1s forwards; }
.resa-coche-trait { stroke: var(--texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: resa-trace .5s var(--ease) .75s forwards; }
@keyframes resa-trace { to { stroke-dashoffset: 0; } }
.resa-bouton-clair { margin-top: 22px; }

/* ---------- La barre du bas : sélection, total, Continuer ---------- */

.resa-barre {
  position: fixed; z-index: 60; left: 0; right: 0;
  bottom: calc(var(--barre, 0px) + 10px);
  padding: 0 max(10px, env(safe-area-inset-left)) 0 max(10px, env(safe-area-inset-right));
  pointer-events: none; animation: resa-barre .5s var(--ease) both;
}
@media (min-width: 901px) { .resa-barre { bottom: max(18px, env(safe-area-inset-bottom)); } }
@keyframes resa-barre { from { opacity: 0; transform: translateY(24px); } }
.resa-barre-verre {
  pointer-events: auto; max-width: 720px; margin: 0 auto; padding: 12px 12px 12px 18px; border-radius: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 50%), rgba(12, 12, 12, .94);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 50px rgba(0, 0, 0, .55);
}
.resa-barre-texte { display: grid; gap: 2px; min-width: 0; }
.resa-barre-texte p { display: flex; flex-direction: column; }
.resa-barre-texte span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--texte-doux); }
.resa-barre-sel strong { font-weight: 300; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resa-barre-total { margin-top: 4px !important; }
.resa-prix { font: 500 25px/1.05 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }

.resa-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 52px; padding: 0 20px 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--texte); color: var(--fond) !important; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 20px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), opacity .3s, background-color .3s;
}
.resa-bouton:hover { background: #f4f2ea; }
.resa-bouton:active { transform: scale(.96); }
.resa-bouton:disabled { opacity: .4; cursor: default; transform: none; }
.resa-bouton.envoi span { animation: resa-pulse 1s var(--ease) infinite; }
.resa-bouton svg { transition: transform .3s var(--ease); }
.resa-bouton:not(:disabled):hover svg { transform: translateX(3px); }

/* ---------- Passages d'une étape à l'autre ---------- */

@keyframes resa-monte { from { opacity: 0; transform: translateY(18px); } }
.resa-entre .resa-heros-texte, .resa-entre .resa-tete { animation: resa-monte .6s var(--ease) both; }
.resa-entre .resa-panneau { animation: resa-panneau .7s var(--ease) .08s both; }
.resa-entre .resa-fond img { animation: resa-fond 1.2s var(--ease) both; }
@keyframes resa-panneau { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@keyframes resa-fond { from { opacity: 0; transform: scale(1.06); } }
.resa-entre .resa-module { animation: resa-monte .55s var(--ease) both; }
.resa-entre .resa-module:nth-child(2) { animation-delay: .06s; }
.resa-entre .resa-module:nth-child(3) { animation-delay: .12s; }
.resa-entre .resa-module:nth-child(4) { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .resa *, .resa *::before { animation: none !important; transition: none !important; }
  .resa-coche-rond, .resa-coche-trait { stroke-dashoffset: 0; }
}

/* ---------- Ordinateur et tablette ---------- */

@media (min-width: 720px) {
  .resa-cartes, .resa-encart { width: min(940px, calc(100% - 2 * var(--pad))); }
  .resa-cartes { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .resa-module { --vig: 110px; padding: 12px; }
  .resa-panneau { padding: 30px 28px 24px; }
  .resa-perso .resa-panneau, .resa-date .resa-panneau { padding: 26px 24px 22px; }
  .resa-encart { grid-template-columns: auto 1fr auto; padding: 22px 26px; }
  .resa-encart .wp-block-buttons { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .resa-encart .wp-block-button__link { padding: 0 26px; }
  .resa-encart p { grid-column: 2; }
}
@media (min-width: 1000px) {
  .resa-heros { min-height: 78vh; padding-bottom: 72px; }
  .resa-fond img, .resa-fond-img { object-position: 50% 22%; }
  .resa-vitrine .resa-fond { left: 38%; }
  .resa-vitrine .resa-fond img { object-position: 50% 34%; }
  .resa-vitrine .resa-fond::after { background: linear-gradient(90deg, var(--fond) 0%, rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, var(--fond) 100%); }
  .resa-encart { margin-top: 40px; }
  .resa-carte-lien { padding: 12px; }
  .resa-perso, .resa-date, .resa-infos, .resa-recap, .resa-fin { max-width: 1240px; margin: 0 auto; }
  .resa-perso { display: grid; grid-template-columns: 1fr minmax(0, 580px); align-items: start; }
  .resa-perso .resa-heros { position: sticky; top: 0; min-height: 100vh; }
  .resa-perso .resa-panneau { margin: calc(var(--entete) + 24px) var(--pad) 0 0; }
  .resa-date .resa-panneau, .resa-infos .resa-panneau, .resa-recap .resa-panneau, .resa-fin .resa-panneau { max-width: 720px; margin: 0 auto; }
  .resa-date .resa-panneau { max-width: 660px; }
  .resa-tete { max-width: 720px; margin: 0 auto; padding-left: 0; padding-right: 0; }
  .resa-tete .resa-retour { left: -72px; top: calc(var(--entete) + 72px); }
}

/* Cloudflare Turnstile (Réglages → Sécurité) */
.resa-turnstile { margin-top: 18px; min-height: 65px; }
