/* ===== Hero scrollable : expansion + scrub vidéo + révélation alpha =====
 *
 * Direction artistique v2 (palette pastel du client + typo moderne) :
 *   turquoise #7bc6c9 · aqua #a5e1df · corail #ffb199 · pêche #ffcdb2 ·
 *   coquille #fff5f0. Texte : Geist ; titres display : Pixelify Sans
 *   (équivalent Google Fonts de Geist Pixel — swap possible si fichiers
 *   Geist Pixel fournis). Boutons « verre » arrondis, transparents, floutés.
 *
 * Déroulé piloté par hero.js :
 *   phase 0 — autour de la fenêtre : boucle vidéo du coucher de soleil ;
 *   phase 1 — la fenêtre s'étend en plein écran et DÉCOUVRE physiquement les
 *             trois boutons (langues · récupérer mes vidéos · contact) ;
 *   phase 2 — lecture de la vidéo au scroll ; sa fin en alpha se dissout et
 *             révèle la page d'accueil (deux univers cliquables) derrière.
 */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Pixelify+Sans:wght@400;500;600;700&display=swap');

/* la fonte pixel transforme la ligature "fi" en glyphe illisible */
.hero-title, .reveal-title, .services-title, .svc-card h3, .cal-month, .brand {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --shell:  #fff5f0;             /* fond coquille rosée */
  --teal:   #7bc6c9;
  --aqua:   #a5e1df;
  --coral:  #ffb199;
  --coral-deep: #ef8f6e;         /* corail soutenu (hover / texte sur clair) */
  --peach:  #ffcdb2;
  --teal-ink: #2e7377;           /* turquoise foncé lisible (textes) */
  --ink:    #26393c;             /* encre bleu-vert profonde */
  --muted:  #5d7275;
  --line:   rgba(38, 57, 60, 0.16);
  --sans:    "Geist", -apple-system, "Helvetica Neue", sans-serif;
  --display: "Pixelify Sans", "Geist", monospace;
}

.hero-track { position: relative; }

/* ===== SCROLL : aucune cale, aucun scroll-snap. =====
 * Il y a eu ici une « cale » (.hero-snap + scroll-snap-stop: always) qui
 * arrêtait le scroll sur l'écran de choix. Elle a été RETIRÉE le 22/07/2026 :
 * dans le navigateur intégré d'Instagram, dont la barre d'outils coulisse et
 * redimensionne le viewport en continu, son point d'ancrage se déplaçait en
 * cours de geste et le navigateur ré-alignait la page de force — l'écran de
 * choix se révélait puis reculait, en boucle, et le site était inutilisable.
 * Le parcours est maintenant : scrub alpha à travers la vidéo, PUIS scroll
 * parfaitement normal jusqu'au bas du site. Ne pas réintroduire de snap ici. */

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  height: var(--hero-vh, 100dvh);   /* hauteur visible réelle (cf. hero.js) */
  overflow: hidden;
  background: var(--shell);
}

/* --- phase 0 : boucle vidéo autour de la fenêtre --- */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;          /* poster en attendant la vidéo */
  background-position: center;
  z-index: 1;
}
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {                  /* voile doux pour la lisibilité du titre */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(38, 57, 60, 0.32), rgba(38, 57, 60, 0.12) 55%, rgba(38, 57, 60, 0.3));
}

/* --- page d'accueil révélée par la transparence de fin de vidéo --- */
.hero-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--sans);
  pointer-events: none;              /* activé par JS une fois révélé */
  background:
    radial-gradient(58% 46% at 18% 8%, rgba(165, 225, 223, 0.5), transparent 70%),
    radial-gradient(52% 44% at 84% 92%, rgba(255, 205, 178, 0.55), transparent 72%),
    var(--shell);
  opacity: calc(var(--r, 0));
}
.hero-reveal-inner {
  width: min(1060px, 88vw);
  text-align: center;
  opacity: calc(var(--r, 0));
  transform: translateY(calc((1 - var(--r, 0)) * 28px));
}
.reveal-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 1.4rem;
}
.reveal-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 3rem;
}
.reveal-title em {
  font-style: normal;
  color: var(--coral-deep);
}

.reveal-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 900px;
  margin: 0 auto;
}
.reveal-card {
  display: block;
  padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: inherit;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 18px 44px rgba(123, 198, 201, 0.18);
  transition: border-color 0.35s ease, background 0.35s ease,
              transform 0.35s ease, box-shadow 0.35s ease;
}
.reveal-card:hover,
.reveal-card:focus-visible {
  border-color: var(--coral);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(239, 143, 110, 0.22);
  outline: none;
}
.reveal-card h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.reveal-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.reveal-card .card-cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.reveal-card .card-cta::after {
  content: "→";
  margin-left: 0.6em;
  letter-spacing: 0;
  transition: margin-left 0.35s ease;
}
.reveal-card:hover .card-cta::after { margin-left: 1.1em; }

/* --- média : canvas plein écran (alpha), révélé par clip-path --- */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 3;
  will-change: clip-path;
  box-shadow: 0 30px 80px rgba(38, 57, 60, 0.35);
  pointer-events: none;              /* seuls les boutons enfants sont cliquables */
}
.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-sticky.is-revealed .hero-media { box-shadow: none; }

/* --- boutons « verre » découverts par l'agrandissement de la fenêtre ---
 * Ils vivent DANS la fenêtre clipée : invisibles carte fermée, découverts
 * physiquement quand elle s'étend, et le clip limite la zone cliquable.
 * Après la révélation finale, ils passent en tons encre sur clair. */
.glass-btn {
  position: absolute;
  top: clamp(16px, 3vh, 28px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  pointer-events: auto;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.glass-btn:hover { background: rgba(255, 255, 255, 0.34); }
.hero-sticky.is-revealed .glass-btn {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.hero-sticky.is-revealed .glass-btn:hover {
  color: var(--coral-deep);
  border-color: var(--coral);
  background: rgba(255, 255, 255, 0.85);
}

.hero-cta {                                                 /* centré en haut */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 177, 153, 0.42);
  border-color: rgba(255, 177, 153, 0.9);
  /* agrandi 1,5× par rapport au gabarit .glass-btn (0.68rem / 12px 22px / gap 6px) */
  font-size: 1.02rem;
  padding: 18px 33px;
  gap: 9px;
}
.hero-cta:hover { background: rgba(255, 177, 153, 0.62); }
.hero-sticky.is-revealed .hero-cta {
  color: #fff;
  background: rgba(239, 143, 110, 0.75);
  border-color: rgba(239, 143, 110, 0.9);
}
.hero-sticky.is-revealed .hero-cta:hover {
  color: #fff;
  background: rgba(239, 143, 110, 0.95);
  border-color: var(--coral-deep);
}
.hero-contact { right: clamp(16px, 3vw, 32px); }            /* angle droit */

/* sélecteur de langues (repris de l'ancien site, sans traduction pour l'instant) */
.hero-lang {
  left: clamp(16px, 3vw, 32px);                              /* angle gauche */
  padding: 8px 12px;
  gap: 2px;
  letter-spacing: 0;
}
.hero-lang .lang-btn {
  border: none;
  background: none;
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 5px;
  cursor: pointer;
  border-radius: 999px;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-lang .lang-btn:hover { opacity: 1; transform: translateY(-1px); }
.hero-lang .lang-btn.is-active { opacity: 1; }

/* --- textes superposés pendant l'expansion --- */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
  text-align: center;
}
.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 1.02;
  margin: 0;
  text-shadow: 0 2px 28px rgba(38, 57, 60, 0.4);
}
.hero-title .t-left,
.hero-title .t-right {
  display: block;
  will-change: transform;
}
.hero-title .t-right { color: var(--peach); }
.hero-date {
  font-family: var(--sans);
  margin: 1.4rem 0 0;
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(38, 57, 60, 0.45);
}
.hero-hint {
  position: absolute;
  bottom: 6vh;
  left: 0;
  right: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.hero-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(#fff, transparent);
  animation: hero-hint-drop 1.6s ease-in-out infinite;
}
@keyframes hero-hint-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1) translateY(8px); opacity: 0; }
}

/* fondus (pilotés par JS : --e expansion 0→1, --r révélation 0→1) */
.hero-sticky { --e: 0; --r: 0; }
.hero-bg    { opacity: calc(1 - var(--e)); }
.hero-date,
.hero-hint  { opacity: calc(0.9 * (1 - var(--e) * 3)); }

/* --- fallback vidéo (JS indisponible / échec de chargement) --- */
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* ===== MODE SIMPLE (html.hero-simple) =====
 * Servi aux navigateurs intégrés (Instagram, Facebook, TikTok…) et en repli si
 * le JS échoue. La page redevient un document ORDINAIRE, qui défile d'un trait :
 *
 *      vidéo plein écran  →  Professionnels / Particuliers  →  Contact
 *
 * Zéro zone épinglée, zéro cale de snap, zéro hauteur calculée en JS : rien qui
 * puisse piéger le doigt quand la barre d'outils de l'application coulisse.
 * Les hauteurs sont en `svh` (hauteur écran barres DÉPLOYÉES) : contrairement à
 * `vh`/`dvh`, elle ne laisse jamais de trou ni de débordement quand ces barres
 * apparaissent ou disparaissent. */
html.hero-simple .hero-track  { height: auto !important; }
html.hero-simple .hero-sticky {
  position: relative;      /* ancre .hero-text sur le premier écran */
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  /* --r : révélation à fond (.hero-reveal et .hero-reveal-inner le lisent).
     --e : expansion à zéro, pour garder « Vos idées en vidéos » et « Défiler »
     visibles sur la vidéo — ici la fenêtre ne s'agrandit jamais. */
  --r: 1;
  --e: 0;
}
/* dans le DOM l'écran de choix précède la vidéo (il est révélé PAR-DESSOUS) :
   en mode simple on rétablit l'ordre de lecture naturel */
html.hero-simple .hero-media  { order: 1; }
html.hero-simple .hero-reveal { order: 2; }

html.hero-simple .hero-bg,
html.hero-simple .hero-media canvas { display: none; }

/* titre « Lino Sanchez » superposé au premier écran seulement */
html.hero-simple .hero-text {
  top: 0;
  bottom: auto;
  height: 100svh;
  min-height: 420px;
}
html.hero-simple .hero-title .t-left,
html.hero-simple .hero-title .t-right { transform: none !important; }

html.hero-simple .hero-media {
  position: relative;
  inset: auto;
  height: 100svh;
  min-height: 420px;
  clip-path: none !important;        /* posé en ligne par hero.js en mode scrub */
  box-shadow: none;
}
html.hero-simple .hero-fallback { display: block; }

html.hero-simple .hero-reveal {
  position: relative;
  inset: auto;
  min-height: 100svh;
  padding: 12vh 0;
  pointer-events: auto;
}
html.hero-simple .hero-reveal-inner { transform: none; }

/* --- accessibilité : pas d'animation demandée --- */
@media (prefers-reduced-motion: reduce) {
  .hero-track { height: auto !important; }
  .hero-sticky { position: relative; height: auto; }
  .hero-media, .hero-bg, .hero-text { display: none; }
  .hero-reveal { position: relative; pointer-events: auto; padding: 14vh 0; }
  .hero-reveal-inner { opacity: 1; transform: none; }
  .hero-hint::after { animation: none; }
}

/* --- mobile --- */
@media (max-width: 640px) {
  .reveal-choices { grid-template-columns: 1fr; }
  .reveal-title { margin-bottom: 2.2rem; }
  /* trois boutons sur une rangée étroite : plus compacts, sur deux niveaux */
  .glass-btn { font-size: 0.6rem; padding: 10px 14px; letter-spacing: 0.16em; }
  .hero-lang { padding: 7px 9px; }
  .hero-lang .lang-btn { font-size: 0.95rem; }
  .hero-cta { top: clamp(64px, 10vh, 84px); }   /* centré, sous les deux angles */
}

/* ===================================================================== */
/* ===== Écran de choix : vidéo boomerang + carrés-boutons de verre ===== */

.hero-reveal .reveal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-reveal::after {                 /* voile léger : vidéo nette mais lisible */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 245, 240, 0.32), rgba(38, 57, 60, 0.18));
}
.hero-reveal-inner { position: relative; z-index: 1; }
.hero-reveal .reveal-eyebrow { color: #fff; text-shadow: 0 1px 12px rgba(38, 57, 60, 0.5); }
.hero-reveal .reveal-title   { color: #fff; text-shadow: 0 2px 24px rgba(38, 57, 60, 0.45); }
.hero-reveal .reveal-title em { color: var(--peach); }

/* les carrés sont des <button> : verre semi-transparent */
.reveal-card {
  font-family: var(--sans);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.reveal-card p { color: rgba(255, 255, 255, 0.82); }
.reveal-card .card-cta { color: var(--peach); }
.reveal-card:hover,
.reveal-card:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 26px 56px rgba(38, 57, 60, 0.35);
}

/* ===== Overlays de services : verre plein écran sur la vidéo ===== */

.services-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  background: rgba(38, 57, 60, 0.3);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  outline: none;
}
.services-overlay[hidden] { display: none; }
body.services-open { overflow: hidden; }

.services-frame {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 4vh, 44px) 0 8vh;
}
.services-head { text-align: center; color: #fff; margin-bottom: clamp(1.6rem, 4vh, 3rem); }
.services-back {
  position: static;
  display: inline-flex;
  margin-bottom: clamp(1.4rem, 4vh, 2.6rem);
}
.services-head .reveal-eyebrow { color: var(--peach); }
.services-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 24px rgba(38, 57, 60, 0.5);
}
.services-title em { font-style: normal; color: var(--peach); }
.services-sub {
  margin: 0.9rem 0 0;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(38, 57, 60, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.2vw, 26px);
}
.services-grid-2 { max-width: 780px; margin: 0 auto; }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 245, 240, 0.6);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 22px 54px rgba(38, 57, 60, 0.25);
  color: var(--ink);
}
.svc-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 0;
}
.svc-card > p { margin: 0; line-height: 1.65; color: #3c5154; font-size: 1rem; }
.svc-tag {
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-ink) !important;
}
/* pied de carte homogène : prix + bouton alignés en bas de chaque carré */
.svc-foot {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.svc-price { margin: 0 !important; }
.svc-price strong {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-right: 0.4rem;
}
.svc-price span { font-size: 0.85rem; color: var(--muted); }

.svc-options {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(38, 57, 60, 0.08);
  align-self: flex-start;
}
.svc-opt {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.svc-opt.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(38, 57, 60, 0.15); }

.svc-select {
  position: static;
  align-self: flex-start;
  margin-top: 0.4rem;
  color: var(--ink);
  border-color: rgba(38, 57, 60, 0.25);
  background: rgba(255, 255, 255, 0.55);
}
.svc-select:hover { background: #fff; border-color: var(--coral); color: var(--coral-deep); }
.svc-chosen {
  margin: 0.2rem 0 0 !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-ink) !important;
}
.svc-chosen::before { content: "✓ "; }

/* --- offre de l'été : liseré animé corail → orange → pêche --- */
@property --sun {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.svc-summer {
  border: none;
  background:
    linear-gradient(rgba(255, 245, 240, 0.78), rgba(255, 245, 240, 0.78)) padding-box,
    conic-gradient(from var(--sun), #ef8f6e, #ff7a3d, #ffcdb2, #ef8f6e) border-box;
  border: 2px solid transparent;
  animation: sun-spin 6s linear infinite;
  box-shadow: 0 22px 54px rgba(255, 122, 61, 0.3);
}
@keyframes sun-spin { to { --sun: 360deg; } }
.svc-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff7a3d, #ef8f6e);
  box-shadow: 0 8px 20px rgba(255, 122, 61, 0.4);
}

/* ===== Calendrier date + heure ===== */

.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(38, 57, 60, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cal-modal[hidden] { display: none; }
/* .glass-btn pose display:inline-flex, qui bat l'attribut hidden du navigateur
   (les styles auteur gagnent sur les styles UA à spécificité égale) : sans
   cette ligne, « Suivant → » était visible avant même d'avoir choisi une date */
#calSuivant[hidden] { display: none; }
.cal-panel {
  width: min(420px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 24px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 245, 240, 0.9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 80px rgba(38, 57, 60, 0.35);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head .reveal-eyebrow { margin: 0; }
.cal-close {
  border: none; background: none; cursor: pointer;
  font-size: 1rem; color: var(--ink); padding: 4px 8px;
}
.cal-close:hover { color: var(--coral-deep); }
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 10px;
}
.cal-month { font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-transform: capitalize; }
.cal-arrow {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink);
}
.cal-arrow:hover { border-color: var(--coral); color: var(--coral-deep); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  text-align: center; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--muted); padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1;
  border: none; border-radius: 12px; background: transparent;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.cal-day:hover:not(:disabled):not(.is-pad) { background: rgba(123, 198, 201, 0.25); }
.cal-day.is-picked { background: var(--teal); color: #fff; }
.cal-day:disabled { color: #c3bcb4; cursor: default; }
.cal-day.is-pad { pointer-events: none; }
.cal-label {
  margin: 14px 0 8px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal-ink);
}
.cal-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-slot {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
}
.cal-slot:hover { border-color: var(--teal); }
.cal-slot.is-picked { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-confirm {
  width: 100%; margin-top: 18px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 16px; border: none; border-radius: 999px; cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--coral-deep));
  box-shadow: 0 14px 30px rgba(239, 143, 110, 0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-confirm:hover:not(:disabled) { transform: translateY(-2px); }
.btn-confirm:disabled { opacity: 0.4; cursor: default; }

/* --- responsive services --- */
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Bouton « Suivant » du calendrier (esthétique du bouton corail) ===== */
.btn-suivant {
  position: static;
  width: 100%;
  justify-content: center;
  margin-top: 18px;
  color: #fff;
  background: rgba(239, 143, 110, 0.85);
  border-color: rgba(239, 143, 110, 0.95);
}
.btn-suivant:hover { background: var(--coral-deep); }

/* ===== Volets réservation / contact (après déverrouillage) ===== */
.flow-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(58% 46% at 14% 6%, rgba(165, 225, 223, 0.45), transparent 70%),
    radial-gradient(50% 42% at 88% 30%, rgba(255, 205, 178, 0.42), transparent 72%),
    var(--shell);
}
.flow-panel[hidden] { display: none; }
.flow-inner {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 9vh, 90px) 0;
  text-align: center;
}
.flow-title {
  font-family: var(--display);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 2rem;
}
.flow-title em { font-style: normal; color: var(--coral-deep); }

.flow-card {
  position: relative;
  text-align: left;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 22px 54px rgba(123, 198, 201, 0.18);
}
.resa-recap {
  margin: 0 0 1.4rem;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(165, 225, 223, 0.28);
  border: 1px solid rgba(123, 198, 201, 0.4);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(123, 198, 201, 0.22);
}
/* champ invalide, signalé au blur par site.js (même anneau que le focus,
   décliné corail) ; l'explication s'affiche dans le message du formulaire */
.field input.is-invalid, .field textarea.is-invalid {
  border-color: var(--coral-deep);
  box-shadow: 0 0 0 4px rgba(239, 143, 110, 0.18);
}

.flow-label {
  margin: 0.6rem 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pay-method {
  position: relative;
  font-family: var(--sans);
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.pay-method strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; }
/* petit cône « travaux » en bas à droite de la carte carte-bancaire */
.pay-cone {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 3px 5px rgba(217, 113, 63, 0.35));
}
.pay-method span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.pay-method:hover:not(.is-disabled) { border-color: var(--teal); }
.pay-method.is-active {
  border-color: var(--coral-deep);
  background: rgba(255, 205, 178, 0.35);
  box-shadow: 0 0 0 3px rgba(239, 143, 110, 0.25);
}
.pay-method.is-disabled {
  opacity: 0.75;
  cursor: default;
  background: rgba(255, 255, 255, 0.35);
  border-style: dashed;
}

/* barre du total : récap du service à gauche, montant à droite */
.pay-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 1.4rem;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 205, 178, 0.4);
  border: 1px solid rgba(239, 143, 110, 0.55);
}
.pay-total-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pay-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.pay-total-service {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.pay-total strong {
  flex-shrink: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: var(--coral-deep);
  line-height: 1;
}

/* ===== Fenêtre de confirmation ===== */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(38, 57, 60, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: confirm-fade 0.3s ease;
}
.confirm-modal[hidden] { display: none; }
@keyframes confirm-fade { from { opacity: 0; } to { opacity: 1; } }
.confirm-panel {
  width: min(440px, 100%);
  text-align: center;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 245, 240, 0.94);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 80px rgba(38, 57, 60, 0.35);
  animation: confirm-pop 0.35s cubic-bezier(.2,.8,.3,1.2);
}
@keyframes confirm-pop { from { transform: scale(0.9) translateY(10px); } to { transform: none; } }
.confirm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(120deg, var(--teal), #4fa8ab);
  box-shadow: 0 12px 26px rgba(123, 198, 201, 0.45);
}
.confirm-panel h3 {
  font-family: var(--display);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0 0 1.3rem;
  color: var(--ink);
}
/* récap sans libellés : date en tête, puis service, nom, paiement */
.confirm-recap {
  text-align: center;
  margin: 0 0 1.4rem;
  padding: 20px 18px;
  border-radius: 22px;
  background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 245, 240, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px rgba(123, 198, 201, 0.16);
}
.confirm-row {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px solid rgba(38, 57, 60, 0.08);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row-lead {
  font-family: var(--display);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--coral-deep);
  padding-top: 0;
}
.confirm-row-soft { color: var(--muted); font-weight: 500; font-size: 0.88rem; }
.confirm-note { margin: 0 0 1.4rem; font-size: 0.82rem; color: var(--muted); }
.confirm-panel .btn-valider { margin-top: 0; }

/* ===== Fond vidéo derrière un volet (contact) ===== */
.flow-panel-video { position: relative; overflow: hidden; }
.flow-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* voile clair, allégé : la vidéo est plus visible tout en gardant le texte lisible */
.flow-panel-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(255, 245, 240, 0.5), rgba(255, 245, 240, 0.62));
}
.flow-panel-video .flow-inner { position: relative; z-index: 1; }
/* la vidéo étant plus visible, on renforce la lisibilité du titre/sur-titre */
.flow-panel-video .reveal-eyebrow { text-shadow: 0 1px 10px rgba(255, 245, 240, 0.9); }
.flow-panel-video .flow-title { text-shadow: 0 2px 16px rgba(255, 245, 240, 0.85); }

.btn-valider {
  width: 100%;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 17px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, var(--coral), var(--coral-deep));
  box-shadow: 0 14px 30px rgba(239, 143, 110, 0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-valider:hover:not(:disabled) { transform: translateY(-2px); }
.btn-valider:disabled { opacity: 0.4; cursor: default; }

.flow-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.flow-note a { color: var(--coral-deep); text-decoration: none; }
.flow-note a:hover { text-decoration: underline; }
.flow-msg { min-height: 1.3em; margin: 0.8rem 0 0; text-align: center; font-size: 0.9rem; font-weight: 500; color: #c14f2e; }
.flow-msg.is-ok { color: var(--teal-ink); }
.flow-success { margin: 0; text-align: center; font-size: 1.05rem; line-height: 1.8; color: var(--ink); }

.flow-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.flow-footer a { color: var(--muted); text-decoration: none; }
.flow-footer a:hover { color: var(--coral-deep); }

@media (max-width: 620px) {
  .field-row, .pay-methods { grid-template-columns: 1fr; }
}
