/* @property pour animation bordure tournante (créneaux bordure) — doit être en tête */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ============================================================================
   CANICOMPLICE - STYLES PRINCIPAUX
   ============================================================================
   
   Architecture:
   - Variables CSS (couleurs, espacements, transitions)
   - Structure générale (body, conteneurs)
   - Composants (header, CTA, cards, tooltips, vidéos)
   - Responsive (mobile-first avec breakpoints progressifs)
   
   Palette de couleurs:
   - Bleu: primaire (professionnel, visible par les chiens)
   - Jaune: accent (énergie, visibilité)
   - Gris: nuances (textes, fonds, éléments secondaires)
   - Gris foncé: éléments discrets (bouton clients existants, tooltips)
   ============================================================================ */

/* ----------------------------------------------------------------------------
   VARIABLES CSS - Système de design
   ---------------------------------------------------------------------------- */
:root {
  /* Couleurs primaires - Bleu (visible par les chiens) */
  --bleu: #1e4a7a;
  --bleu-fonce: #0f2d4f;

  /* Couleurs accent - Jaune (énergie, visibilité) */
  --jaune: #facc15;
  --jaune-clair: #fde047;

  /* Couleur d'action négative - Rouge (annulation, fermeture) */
  --rouge: #e74c3c;
  --rouge-fonce: #c0392b;
  --rouge-clair: #fee;
  --rouge-coeur: #b01c14;

  /* Nuances de gris - Hiérarchie visuelle */
  --blanc: #ffffff;
  --gris-tres-clair: #faf9f6;
  --gris-clair: #e8e6e1;
  --gris-moyen: #5a5a52;
  --gris-fonce: #2c2c28;
  --noir: #1a1a18;

  /* Alias pour compatibilité */
  --gris: var(--gris-tres-clair);

  /* Espacements - Système cohérent */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Transitions - Cohérence des animations */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s ease;

  /* Ombres - Profondeur subtile */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* Couleurs réservation */
  --booking-primary: #27ae60;
  --booking-primary-hover: #229954;
  --booking-primary-active: #1e8449;
  --booking-warning: #f39c12;
  --booking-error: #e74c3c;
  --booking-error-bg: #fee;
  --booking-error-text: #c0392b;

  /* Hauteurs adaptatives réservation */
  --booking-slots-height-mobile: 240px;
  --booking-slots-height-tablet: 110px;
  --booking-slots-height-desktop: auto;

  /* Taille de base du texte (1rem) – légèrement augmentée pour la lisibilité */
  --base-font-size: 17px;
}

/* ----------------------------------------------------------------------------
   STRUCTURE GÉNÉRALE
   ---------------------------------------------------------------------------- */
html {
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  font-size: var(--base-font-size);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 9rem; /* Espace pour le header fixed */
  background: var(--gris-tres-clair);
  color: var(--bleu);
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/background_001.webp") repeat;
  background-size: 15%;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   ACCESSIBILITÉ - Skip links
   ---------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--bleu);
  color: var(--blanc);
  padding: var(--spacing-md);
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Bandeau CTA (sticky topbar)
   ---------------------------------------------------------------------------- */
#cta-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-fonce) 100%);
  color: var(--blanc);
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid rgba(250, 204, 21, 0.25);
}

.cta-content {
  max-width: 660px;
  margin: 0 auto;
  padding: 0.7rem var(--spacing-lg);
}

/* Lien "Retour à l'accueil" (page réservation) */
.cta-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blanc);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  transition: all var(--transition-base);
  border-radius: 8px;
}

.cta-back-home:hover,
.cta-back-home:focus {
  color: var(--jaune);
  outline: 2px solid rgba(250, 204, 21, 0.6);
  outline-offset: 2px;
}

.cta-back-home-icon {
  font-size: 1.1rem;
  opacity: 0.9;
  transition: transform var(--transition-fast);
}

.cta-back-home:hover .cta-back-home-icon,
.cta-back-home:focus .cta-back-home-icon {
  transform: translateX(-3px);
}

/* ----------------------------------------------------------------------------
   Sélecteur de langue FR/EN
   ---------------------------------------------------------------------------- */
.lang-switcher {
  position: fixed;
  top: 0.6rem;
  right: var(--spacing-lg);
  z-index: 1000;
  display: flex;
  gap: 0.25rem;
}

.lang-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.lang-switcher-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--blanc);
}

.lang-switcher-link.lang-switcher-active {
  background: rgba(250, 204, 21, 0.3);
  color: var(--jaune);
}

.lang-flag {
  width: 24px;
  height: auto;
  max-height: 18px;
  object-fit: contain;
  display: block;
}

/* Largeur min pour éviter déformation entre "Réserver…" (2 lignes) et "Retour à l'accueil" (1 ligne) */
.cta-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 280px;
}

/* Contenu du bouton avec texte et tarif */
.cta-button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}

.cta-button-pricing {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

/* Hauteur fixe (pas min) pour que les 2 états du bouton 1 aient la même taille, pas de déformation */
.cta-button {
  color: var(--blanc);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  height: 3.5rem;
  min-height: 3.5rem;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-size: 1.05rem;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* Bouton principal - Nouveaux clients (CTA réservation, rouge palette) */
.cta-button-primary {
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}

/* Bouton clients existants - Gris foncé (cohérent avec la palette) */
.cta-button-existing {
  background: linear-gradient(
    135deg,
    var(--gris-fonce) 0%,
    var(--gris-moyen) 100%
  );
  border: 2px solid var(--gris-fonce);
  box-shadow: var(--shadow-sm);
}

/* Badge "gratuit" dans le bouton */
.cta-badge {
  display: inline-block;
  background: var(--jaune);
  color: var(--bleu-fonce);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.06rem 0.3rem;
  border-radius: 5px;
  margin-left: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* États hover/focus - Harmonisés */
.cta-button-primary:hover,
.cta-button-primary:focus {
  background: linear-gradient(135deg, var(--rouge-fonce) 0%, #a33226 100%);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.45);
  transform: translateY(-2px);
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.cta-button-existing:hover,
.cta-button-existing:focus {
  background: linear-gradient(
    135deg,
    var(--gris-moyen) 0%,
    var(--gris-fonce) 100%
  );
  border-color: var(--gris-fonce);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

/* États actifs - Harmonisés */
.cta-button:active {
  transform: translateY(0);
}

.cta-button-primary:active {
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.35);
}

.cta-button-existing:active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Icône et texte - Harmonisés */
.cta-button-icon {
  font-size: 1.1rem;
  display: inline-block;
  transition: transform var(--transition-base);
  position: relative;
  z-index: 1;
}

.cta-button:hover .cta-button-icon,
.cta-button:focus .cta-button-icon {
  transform: scale(1.15) rotate(5deg);
}

.cta-button-text {
  font-size: 1.05rem;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Conteneur principal
   ---------------------------------------------------------------------------- */
.page-container {
  width: 660px;
  max-width: 100%;
  margin: 16px auto 32px;
  background: var(--blanc);
  box-shadow: var(--shadow-lg);
  border-radius: 22px;
  padding: 1rem 0 10px;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Logo → photo de profil (coin flip 3D au survol / focus)
   Deux faces type pièce : rotation 180° sur l’axe Y, uniquement HTML + CSS.
   ---------------------------------------------------------------------------- */
.logo-reveal {
  --logo-coin-size: 220px;
  margin: 0 auto 1.25rem;
  width: var(--logo-coin-size);
  height: var(--logo-coin-size);
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  perspective-origin: center center;
  border-radius: 999px;
  overflow: visible;
  position: relative;
}

.logo-reveal-link {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
  overflow: visible;
}

/* Effet bloom au clic — anneau jaune (élément HTML réel, fiable) */
.logo-bloom-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 130px;
  margin-left: -65px;
  margin-top: -65px;
  border: 6px solid var(--jaune);
  border-radius: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transform-origin: center center;
}

/* Déclenchement au clic — anneau qui s'agrandit jusqu'à ~286px (> logo 220px) */
.logo-reveal.logo-reveal-bloom .logo-bloom-ring {
  animation: logo-bloom-scale 0.7s ease forwards;
}

@keyframes logo-bloom-scale {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

/* Cœur qui bat — face logo (position de base) */
.logo-heart {
  position: absolute;
  left: 50%;
  top: calc(50% - 16px);
  width: 22px;
  height: auto;
  aspect-ratio: 497 / 470;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  display: block;
  animation: logo-heart-beat 1.5s ease-in-out 0s infinite;
}

/* Cœur sur la face photo : 30px plus haut, 10px plus à droite, rouge foncé, bordure floutée blanche */
.logo-heart-face-back {
  left: calc(50% + 10px);
  top: calc(50% - 46px); /* -16px - 30px */
  filter: drop-shadow(0 0 1px var(--blanc));
}

.logo-heart-face-back path {
  stroke: var(--rouge-fonce);
}

.logo-heart path {
  stroke: var(--rouge);
  stroke-linejoin: round;
  stroke-linecap: round;
}

@keyframes logo-heart-beat {
  0%,
  50%,
  100% {
    transform: translate(-50%, -50%) scale(1, 1);
  }
  30%,
  80% {
    transform: translate(-50%, -50%) scale(0.7, 0.7);
  }
}

/* Élément intérieur qui tourne (la « pièce ») — pas d'overflow ici (casse backface sur certains moteurs) */
.logo-reveal-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 1.35s cubic-bezier(0.34, 1.35, 0.5, 1);
  border-radius: 999px;
  will-change: transform;
}

/* Rotation uniquement au clic (pas au survol) pour que le 2e clic affiche bien le logo */
.logo-reveal.logo-reveal-flipped .logo-reveal-inner {
  transform: rotateY(180deg);
}

/* Faces : backface sur le conteneur ET sur l'img pour éviter le logo miroir */
.logo-reveal-face {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-reveal-face,
.logo-reveal-face img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Face avant = logo */
.logo-reveal-front {
  transform: rotateY(0deg) translateZ(0.5px);
}

/* Face arrière = photo */
.logo-reveal-back {
  transform: rotateY(180deg) translateZ(0.5px);
}

.logo-reveal-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Header (logo, slogan, pricing, CTA)
   ---------------------------------------------------------------------------- */
header {
  text-align: center;
  padding: 38px 18px 22px;
}

/* Lien stylisé vers l'accueil (sous-pages uniquement) */
.header-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bleu);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  padding: 0.55rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(30, 74, 122, 0.06) 0%,
    rgba(15, 45, 79, 0.04) 100%
  );
  border: 1.5px solid rgba(30, 74, 122, 0.18);
  box-shadow: 0 2px 12px rgba(30, 74, 122, 0.06);
  transition: all var(--transition-base);
}

.header-home-link:hover,
.header-home-link:focus {
  color: var(--bleu-fonce);
  background: linear-gradient(
    135deg,
    rgba(250, 204, 21, 0.2) 0%,
    rgba(253, 224, 71, 0.12) 100%
  );
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.header-home-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 8px rgba(30, 74, 122, 0.1);
}

.header-home-link-icon {
  font-size: 1.15rem;
  opacity: 0.9;
  transition: transform var(--transition-base);
}

.header-home-link:hover .header-home-link-icon,
.header-home-link:focus .header-home-link-icon {
  transform: translateX(-3px);
}

.logo-round {
  background: linear-gradient(135deg, var(--jaune) 0%, var(--jaune-clair) 100%);
  border-radius: 50%;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 22px rgba(30, 74, 122, 0.12);
  overflow: hidden;
}

.logo-round a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.logo-round img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slogan {
  font-size: 1.1rem;
  color: var(--bleu);
  background: linear-gradient(135deg, var(--jaune) 0%, var(--jaune-clair) 100%);
  border-radius: 10px;
  padding: 8px 22px;
  font-weight: 500;
  margin: 8px auto 0;
  display: inline-block;
  max-width: 98%;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.25);
}

/* Version PC : cadre à la largeur du texte, pas de retour à la ligne */
@media (min-width: 768px) {
  .slogan {
    width: fit-content;
    max-width: none;
    white-space: nowrap;
  }
}

.header-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}

.header-pricing {
  font-size: 0.9rem;
  color: var(--gris-moyen);
  font-weight: 500;
  line-height: 1.4;
}

.header-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  width: 100%;
}

/* Wrapper pour le bouton clients existants seul dans le header */
.header-info > .header-cta-existing-wrapper {
  width: 100%;
  max-width: 100%;
}

.header-cta-button {
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  color: var(--blanc);
  text-decoration: none;
  padding: 0.7rem var(--spacing-lg);
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

/* Bouton clients existants - Style gris foncé (cohérent avec la palette) */
.header-cta-existing-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.header-cta-button-existing {
  background: linear-gradient(
    135deg,
    var(--gris-fonce) 0%,
    var(--gris-moyen) 100%
  );
  color: var(--blanc);
  border: 2px solid var(--gris-fonce);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
}

.header-cta-button-existing:hover,
.header-cta-button-existing:focus {
  background: linear-gradient(
    135deg,
    var(--gris-moyen) 0%,
    var(--gris-fonce) 100%
  );
  border-color: var(--gris-fonce);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.header-cta-existing-note {
  font-size: 0.7rem;
  color: var(--gris-moyen);
  font-style: italic;
  text-align: center;
  line-height: 1.2;
}

.header-cta-badge {
  display: inline-block;
  background: var(--jaune);
  color: var(--bleu-fonce);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  margin-left: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-cta-button:hover,
.header-cta-button:focus {
  background: linear-gradient(135deg, var(--rouge-fonce) 0%, #a33226 100%);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.45);
  transform: translateY(-2px);
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.header-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.35);
}

.header-cta-icon {
  font-size: 1.1rem;
  display: inline-block;
  transition: transform var(--transition-base);
  position: relative;
  z-index: 1;
}

.header-cta-button:hover .header-cta-icon,
.header-cta-button:focus .header-cta-icon {
  transform: scale(1.15) rotate(5deg);
}

.header-cta-text {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Carte de contact
   ---------------------------------------------------------------------------- */
.contact-card {
  background: linear-gradient(135deg, var(--jaune) 0%, var(--jaune-clair) 100%);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(250, 204, 21, 0.2);
  padding: 1.25rem;
  margin: 32px auto 0;
  width: 100%;
  max-width: 340px;
  text-align: center;
  color: var(--bleu);
  font-size: 1.1rem;
  font-weight: 500;
  box-sizing: border-box;
}

.contact-card .name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-card .contact-phone-wrap {
  margin: 0;
}

.contact-card .contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-card .contact-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: #fff;
  color: #25d366;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: box-shadow var(--transition-fast);
}

.contact-card .contact-phone-link:hover .contact-phone-icon,
.contact-card .contact-phone-link:focus .contact-phone-icon {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.contact-card a {
  color: var(--bleu);
  text-decoration: none;
  word-break: break-word;
  transition: all var(--transition-fast);
}

.contact-card a:hover,
.contact-card a:focus {
  text-decoration: underline;
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-card .contact-email-wrap {
  margin: 0;
  position: relative;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .contact-email-copy {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--bleu);
  text-decoration: none;
  cursor: pointer;
  word-break: break-word;
  transition: all var(--transition-fast);
}

.contact-card .contact-email-copy:hover,
.contact-card .contact-email-copy:focus {
  text-decoration: underline;
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-card .contact-email-copied {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  font-weight: 600;
  color: #16a34a;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.contact-card .contact-email-copied.is-visible {
  opacity: 1;
}

.contact-card .contact-email-wrap.is-copied .contact-email-copy {
  opacity: 0;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Section services
   ---------------------------------------------------------------------------- */
.services-section {
  text-align: center;
  margin: 30px auto 40px;
  padding: 0 24px;
  width: 92%;
  max-width: 720px;
  box-sizing: border-box;
}

.services-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bleu);
  margin-bottom: 8px;
}

.services-intro {
  font-size: 0.98rem;
  color: var(--gris-moyen);
  margin: 0 auto 18px;
  max-width: 87%;
  line-height: 1.5;
}

.services-content p {
  font-size: 0.95rem;
  color: var(--gris-fonce);
  line-height: 1.6;
  margin: 0 auto 16px;
  max-width: 87%;
}

.autres-services-list {
  list-style: none;
  padding-left: 0;
  max-width: 87%;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  color: var(--gris-fonce);
  line-height: 1.6;
}

.autres-services-list li {
  margin-bottom: 0.5rem;
}

/* Badge "À venir – En construction" */
.autres-services-construction .badge-construction {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bleu);
  background: color-mix(in srgb, var(--bleu) 15%, transparent);
  border: 2px solid var(--bleu);
  border-radius: 8px;
  letter-spacing: 0.02em;
}

/* Aperçu des services à venir */
.autres-services-intro {
  font-size: 0.98rem;
  color: var(--gris-moyen);
  margin: 0 auto 24px;
  max-width: 87%;
  line-height: 1.5;
}

.autres-services-preview-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bleu);
  margin: 0 auto 16px;
}

.autres-services-preview-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  max-width: 87%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 600px) {
  .autres-services-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.autres-services-preview-card {
  text-align: left;
  padding: 20px;
  background: color-mix(in srgb, var(--bleu) 6%, var(--blanc));
  border: 1px solid color-mix(in srgb, var(--bleu) 25%, transparent);
  border-radius: 10px;
}

.autres-services-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu);
  margin: 0 0 10px;
}

.autres-services-card-teaser {
  font-size: 0.92rem;
  color: var(--gris-fonce);
  line-height: 1.55;
  margin: 0 0 12px;
}

.autres-services-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bleu);
  margin: 0;
}

.autres-services-card-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blanc);
  background: var(--bleu);
  border-radius: 8px;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.autres-services-card-cta:hover {
  background: var(--bleu-fonce);
  color: var(--blanc);
}

.autres-services-card-cta--coming-soon {
  cursor: default;
  pointer-events: none;
  background: var(--gris-moyen);
  color: var(--blanc);
  opacity: 0.9;
}

.autres-services-card-cta--coming-soon:hover {
  background: var(--gris-moyen);
  color: var(--blanc);
}

.services-line {
  font-size: 0.95rem;
  color: var(--gris-fonce);
  line-height: 1.6;
  text-wrap: balance;
}

.services-line p {
  margin: 0;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Tooltips (utilise gris foncé pour cohérence)
   ---------------------------------------------------------------------------- */
.tooltip {
  position: relative;
  border-bottom: 2px solid var(--jaune);
  cursor: help;
  transition: all var(--transition-fast);
  outline: none;
  color: var(--bleu);
  font-weight: 500;
}

.tooltip:hover {
  border-bottom-color: var(--bleu);
  color: var(--bleu);
}

.tooltip:focus {
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
  border-radius: 4px;
  border-bottom-color: transparent;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  /* Utilise gris foncé pour cohérence avec le bouton clients existants */
  background: linear-gradient(
    135deg,
    var(--gris-fonce) 0%,
    var(--gris-moyen) 100%
  );
  color: var(--blanc);
  border-radius: 12px;
  padding: 12px 14px;
  position: absolute;
  z-index: 1000;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  width: 280px;
  max-width: calc(100vw - 40px);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  transition:
    opacity var(--transition-base) 0.1s,
    transform var(--transition-base) 0.1s,
    visibility 0s 0.4s;
  pointer-events: none;
  word-wrap: break-word;
  font-weight: 400;
}

/* Flèche du tooltip */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--gris-fonce);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text,
.tooltip[aria-expanded="true"] .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity var(--transition-base) 0.1s,
    transform var(--transition-base) 0.1s,
    visibility 0s 0s;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Galerie vidéos
   ---------------------------------------------------------------------------- */
.video-gallery {
  text-align: center;
  margin: 50px 0;
  padding: 0 10px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  justify-items: center;
}

.video-wrap {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--gris-clair);
  transition: all var(--transition-base);
}

.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap figcaption {
  font-size: 0.95rem;
  color: var(--gris-fonce);
  padding: 10px 14px 14px;
  text-align: left;
  background: var(--blanc);
  border-top: 1px solid var(--gris-clair);
  line-height: 1.4;
}

/* Mode plein écran vidéo */
.video-grid.playing .video-wrap:not(.active) {
  opacity: 0.3;
  transition: opacity var(--transition-base);
}

.video-wrap.active {
  display: block;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.video-wrap.active video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* En mode plein écran : le titre ne doit pas bloquer la barre de progression */
.video-wrap.active figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.video-grid.playing::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 900;
  animation: fadeIn 0.3s ease-out forwards;
}

/* Petit écran / smartphone : cadre vidéo toujours dans l'écran, pas de débordement */
@media (max-width: 599px) {
  .video-wrap.active {
    max-width: 100vw !important;
    max-height: 100dvh !important;
  }

  .videos-section-inner {
    overflow-x: hidden;
  }

  .video-card.is-playing {
    max-width: 100%;
    min-height: 200px;
    max-height: 60dvh;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ----------------------------------------------------------------------------
   Section Vidéos 🎥 — grille dynamique + prefetch (WebM Fast-Start)
   ---------------------------------------------------------------------------- */
.videos-section {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.videos-section-inner {
  background-color: var(--gris-tres-clair);
  border: 1px solid color-mix(in srgb, var(--bleu) 28%, transparent);
  border-radius: 12px;
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.videos-section-title {
  color: var(--bleu);
  font-family: inherit;
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-sm);
  width: 100%;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--noir);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--gris-moyen);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.video-card:hover {
  border-color: color-mix(in srgb, var(--bleu) 45%, var(--gris-moyen));
  box-shadow: 0 0 10px rgba(30, 74, 122, 0.2);
}

.video-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Overlay Play : zone cliquable dédiée pour lancer la lecture (pas de conflit avec la timeline) */
.video-card-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}
.video-card-play-overlay:hover {
  background: rgba(0, 0, 0, 0.4);
}
.video-card-play-overlay:focus {
  outline: 1px solid color-mix(in srgb, var(--bleu, #1e4a7a) 55%, transparent);
  outline-offset: 2px;
}
.video-card-play-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  clip-path: polygon(36% 18%, 36% 82%, 85% 50%);
  transform: scale(0.9);
}
.video-card-play-overlay:hover .video-card-play-icon {
  background: #fff;
}

/* En lecture : overlay masqué pour que la timeline et les contrôles natifs soient cliquables */
.video-card.is-playing .video-card-play-overlay {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s;
}

/* Carte en lecture : pleine largeur du cadre, vidéo en grand */
.video-card.is-playing {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  max-height: 70vh;
}

.video-card.is-playing .video-card-video {
  pointer-events: auto;
  object-fit: contain;
}

.video-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--blanc);
  font-size: var(--font-size-base, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* En lecture : masquer le titre et ne pas bloquer la barre de progression / contrôles */
.video-card.is-playing .video-card-label {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.videos-empty {
  color: var(--gris-moyen);
  padding: var(--spacing-md);
  text-align: center;
}

body.video-focus {
  overflow: hidden;
}

/* ----------------------------------------------------------------------------
   COMPOSANT: Footer
   ---------------------------------------------------------------------------- */
footer.site-footer {
  text-align: center;
  color: var(--gris-moyen);
  padding: 25px 0 16px;
  font-size: 1rem;
}

.footer-copyright {
  margin: 0 0 8px 0;
}

.footer-rgpd-toggle-wrap {
  margin: 0 0 12px 0;
}

.footer-rgpd-toggle {
  display: inline-block;
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--gris-moyen);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.footer-rgpd-toggle:hover,
.footer-rgpd-toggle:focus {
  color: var(--bleu);
}

.footer-rgpd-toggle:focus {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-rgpd-content {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gris-moyen);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-rgpd-content[hidden] {
  display: none;
}

.footer-rgpd-text {
  margin: 0 0 6px 0;
}

.footer-rgpd-text:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------------------
   ACCESSIBILITÉ - Respect de prefers-reduced-motion
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Exception : le flip du logo garde une transition courte pour rester lisible */
  .logo-reveal-inner {
    transition-duration: 0.85s !important;
  }
  /* Exception : bloom au clic (feedback visuel intentionnel) */
  .logo-bloom-ring {
    animation-duration: 0.5s !important;
  }
  /* Cœur : battement très lent, boucle infinie conservée */
  .logo-heart {
    animation-duration: 3s !important;
    animation-iteration-count: infinite !important;
  }
  /* Exception : bordure tournante des créneaux bordure (indication frais déplacement) */
  .slot-btn-edge.slot-btn-available {
    animation-duration: 2s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - Mobile-first avec breakpoints progressifs
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Très petits écrans (mobile portrait < 400px)
   ---------------------------------------------------------------------------- */
@media (max-width: 399px) {
  .cta-content {
    max-width: 100%;
    padding: 0.6rem var(--spacing-md);
  }

  .cta-button {
    padding: 0.5rem 0.9rem;
    height: 3.25rem;
    min-height: 3.25rem;
    font-size: 0.95rem;
  }

  .cta-button-pricing {
    font-size: 0.75rem;
  }

  .cta-button-icon {
    font-size: 1rem;
  }

  .cta-button-text {
    font-size: 0.95rem;
  }

  .cta-badge {
    font-size: 0.6rem;
    padding: 0.06rem 0.3rem;
  }

  .page-container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    padding: 0;
  }

  header {
    padding: 24px var(--spacing-md) 18px;
  }

  .logo-round {
    width: 176px;
    height: 176px;
    margin-bottom: 14px;
  }

  .slogan {
    font-size: 0.95rem;
    padding: 6px 16px;
  }

  .header-info {
    margin-top: 20px;
    gap: 12px;
  }

  .header-pricing {
    font-size: 0.85rem;
  }

  .header-cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .header-cta-button-existing {
    padding: 0.5rem var(--spacing-md);
    font-size: 0.8rem;
  }

  .header-cta-existing-note {
    font-size: 0.65rem;
  }

  .contact-card {
    padding: var(--spacing-md);
    margin: 24px var(--spacing-md) 0;
    font-size: 1rem;
    width: calc(100% - calc(var(--spacing-md) * 2));
    max-width: none;
    box-sizing: border-box;
  }

  .contact-card .name {
    font-size: 1.1rem;
  }

  .services-section {
    padding: 0 var(--spacing-md);
    margin: 24px auto 32px;
    max-width: none;
  }

  .services-section h2 {
    font-size: 1.15rem;
  }

  .services-intro {
    font-size: 0.9rem;
  }

  .services-line {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .tooltip-text {
    width: 220px;
    font-size: 0.8rem;
    padding: 6px 8px;
  }

  .video-gallery {
    margin: 32px 0;
    padding: 0 var(--spacing-md);
  }

  .video-wrap {
    max-width: 100%;
    width: 100%;
  }

  footer {
    padding: 25px var(--spacing-md) 10px;
  }
}

/* ----------------------------------------------------------------------------
   Mobile (400px - 599px)
   ---------------------------------------------------------------------------- */
@media (max-width: 599px) {
  .cta-content {
    max-width: 100%;
    padding: 0.65rem 1rem;
  }

  .cta-button {
    padding: 0.5rem 0.95rem;
    height: 3.5rem;
    min-height: 3.5rem;
    font-size: 0.98rem;
  }

  .cta-button-pricing {
    font-size: 0.76rem;
  }

  .cta-button-icon {
    font-size: 1.05rem;
  }

  .cta-button-text {
    font-size: 0.98rem;
  }

  .page-container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    padding: 0;
  }

  header {
    padding: 28px 1rem 20px;
  }

  .logo-round {
    width: 198px;
    height: 198px;
  }

  .slogan {
    font-size: 1rem;
    padding: 7px 18px;
  }

  .header-info {
    margin-top: 22px;
    gap: 13px;
  }

  .header-pricing {
    font-size: 0.88rem;
  }

  .header-cta-button {
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
  }

  .header-cta-button-existing {
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
  }

  .header-cta-existing-note {
    font-size: 0.68rem;
  }

  .contact-card {
    margin: 28px 1rem 0;
    padding: 1.1rem;
    width: calc(100% - 2rem);
    max-width: none;
    box-sizing: border-box;
  }

  .services-section {
    padding: 0 1rem;
    margin: 30px auto 40px;
    max-width: none;
  }

  .services-line {
    font-size: 0.9rem;
  }

  .tooltip-text {
    width: 240px;
    max-width: calc(100vw - 32px);
  }

  .video-gallery {
    padding: 0 1rem;
    margin: 50px 0;
  }

  .video-wrap {
    width: 100%;
    max-width: 100%;
  }

  footer {
    padding: 25px 1rem 10px;
  }
}

/* ----------------------------------------------------------------------------
   Tablette (600px - 899px)
   ---------------------------------------------------------------------------- */
@media (min-width: 600px) and (max-width: 899px) {
  .cta-content {
    max-width: 660px;
  }

  .page-container {
    width: 90%;
    max-width: 660px;
    margin: 24px auto;
    padding: 0 20px 20px;
  }

  .logo-round {
    width: 209px;
    height: 209px;
  }

  .services-section {
    width: 92%;
    max-width: 720px;
  }

  .video-grid {
    gap: 32px;
  }

  .video-wrap {
    max-width: 520px;
  }
}

/* ----------------------------------------------------------------------------
   Desktop (900px - 1199px)
   ---------------------------------------------------------------------------- */
@media (min-width: 900px) {
  body {
    padding-top: 5.5rem; /* Header plus compact en row */
  }

  .cta-content {
    max-width: 770px;
    padding: 0.75rem var(--spacing-xl);
  }

  .cta-buttons-group {
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: stretch;
  }

  .cta-button {
    padding: 0.6rem 2rem;
    height: 3.5rem;
    min-height: 3.5rem;
    font-size: 1rem;
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .cta-button-existing {
    flex: 1;
    min-width: 0;
  }

  .cta-button-pricing {
    font-size: 0.8rem;
  }

  .cta-button-icon {
    font-size: 1.1rem;
  }

  .cta-button-text {
    font-size: 1rem;
  }

  .page-container {
    width: 770px;
    max-width: 770px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
  }

  .video-wrap {
    max-width: 480px;
  }

  .services-section {
    width: 92%;
    max-width: 720px;
  }
}

/* ----------------------------------------------------------------------------
   Grand écran desktop (≥ 1200px)
   ---------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .cta-content {
    max-width: 825px;
    padding: 0.8rem 2rem;
  }

  .cta-button {
    padding: 0.65rem 2.2rem;
    height: 3.5rem;
    min-height: 3.5rem;
    font-size: 1.05rem;
  }

  .cta-button-existing {
    flex: 1;
    min-width: 0;
  }

  .cta-button-pricing {
    font-size: 0.82rem;
  }

  .cta-button-icon {
    font-size: 1.1rem;
  }

  .cta-button-text {
    font-size: 1.05rem;
  }

  .page-container {
    width: 825px;
    max-width: 825px;
  }

  .video-grid {
    max-width: 1100px;
  }

  .services-section {
    width: 92%;
    max-width: 760px;
  }
}

/* ----------------------------------------------------------------------------
   Mode paysage mobile (orientation landscape)
   ---------------------------------------------------------------------------- */
@media (max-width: 899px) and (orientation: landscape) {
  .cta-content {
    max-width: 100%;
    padding: 0.6rem 1rem;
  }

  header {
    padding: 20px 1rem 16px;
  }

  .logo-round {
    width: 154px;
    height: 154px;
    margin-bottom: 12px;
  }

  .slogan {
    font-size: 0.95rem;
    padding: 6px 16px;
  }

  .header-info {
    margin-top: 18px;
    gap: 11px;
  }

  .header-pricing {
    font-size: 0.83rem;
  }

  .header-cta-button {
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
  }

  .header-cta-button-existing {
    padding: 0.5rem var(--spacing-md);
    font-size: 0.78rem;
  }

  .header-cta-existing-note {
    font-size: 0.65rem;
  }

  .contact-card {
    margin: 20px 1rem 0;
    padding: var(--spacing-md);
    width: calc(100% - 2rem);
    max-width: none;
    box-sizing: border-box;
  }

  .services-section {
    padding: 0 1rem;
    margin: 24px auto 32px;
    max-width: none;
  }

  .video-gallery {
    margin: 32px 0;
    padding: 0 1rem;
  }

  .video-wrap {
    width: 100%;
    max-width: 100%;
  }

  footer {
    padding: 25px 1rem 10px;
  }
}

/* ============================================================================
   COMPOSANT: Réservation - Calendrier de disponibilités
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Structure principale - Mobile-first
   ---------------------------------------------------------------------------- */
.booking-section {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.booking-container {
  width: 100%;
  box-sizing: border-box;
}

.booking-section h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bleu);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.booking-error {
  background: var(--booking-error-bg);
  border-left: 4px solid var(--booking-error);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: 4px;
  color: var(--booking-error-text);
}

/* ----------------------------------------------------------------------------
   Vue calendrier
   ---------------------------------------------------------------------------- */
.calendar-view {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.week-section {
  background: var(--blanc);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.week-section:hover {
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------------------------
   En-tête de semaine (accordéon)
   ---------------------------------------------------------------------------- */
.week-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.week-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bleu);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  flex-wrap: wrap;
}

.week-content {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.week-content[hidden] {
  display: none;
}

/* ----------------------------------------------------------------------------
   Badge et messages
   ---------------------------------------------------------------------------- */
.week-badge {
  background: var(--booking-warning);
  color: var(--blanc);
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.week-badge-short-notice {
  white-space: normal;
}

.week-badge a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.week-badge a:hover {
  text-decoration-thickness: 2px;
}

.week-unavailable {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--gris-moyen);
  font-style: italic;
}

/* ----------------------------------------------------------------------------
   Grille des jours
   ---------------------------------------------------------------------------- */
.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--spacing-sm);
}

.day-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-sm) 0.3125rem;
  border-radius: 6px;
  background: var(--gris-tres-clair);
  min-height: 110px;
  transition: background var(--transition-fast);
}

.day-card.day-past {
  opacity: 0.5;
  background: var(--gris-clair);
}

.day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.375rem;
}

.day-name {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--gris-moyen);
  text-transform: uppercase;
  margin-bottom: 0.125rem;
}

.day-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bleu);
}

/* ----------------------------------------------------------------------------
   Créneaux horaires
   ---------------------------------------------------------------------------- */
.day-slots {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
  width: 100%;
  flex: 1;
  /* Pas de scroll par défaut - tous les créneaux visibles */
  overflow-y: visible;
}

.day-slots::-webkit-scrollbar {
  width: 4px;
}

.day-slots::-webkit-scrollbar-track {
  background: transparent;
}

.day-slots::-webkit-scrollbar-thumb {
  background: var(--gris-clair);
  border-radius: 2px;
}

.day-slots::-webkit-scrollbar-thumb:hover {
  background: var(--gris-moyen);
}

.slot-btn {
  background: var(--booking-primary);
  color: var(--blanc);
  border: none;
  padding: 0.3125rem 0.5rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  white-space: nowrap;
  font-family: inherit;
}

.slot-btn:hover {
  background: var(--booking-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.slot-btn:active {
  transform: translateY(0);
  background: var(--booking-primary-active);
}

.slot-btn:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
}

/* Créneaux disponibles - Vert (cliquable) */
.slot-btn-available {
  background: var(--booking-primary);
  color: var(--blanc);
  cursor: pointer;
}

.slot-btn-available:hover {
  background: var(--booking-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.slot-btn-available:active {
  transform: translateY(0);
  background: var(--booking-primary-active);
}

.slot-btn-available:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
}

/* Créneaux non disponibles - Blanc/Gris neutre (tous les créneaux impossibles à sélectionner) */
.slot-btn-booked,
.slot-btn-unavailable,
.slot-btn-not-in-schedule {
  background: var(--blanc);
  color: var(--gris-moyen);
  cursor: not-allowed;
  border: 1px solid var(--gris-clair);
  opacity: 0.6;
}

.slot-btn-booked:hover,
.slot-btn-booked:focus,
.slot-btn-unavailable:hover,
.slot-btn-unavailable:focus,
.slot-btn-not-in-schedule:hover,
.slot-btn-not-in-schedule:focus {
  background: var(--blanc);
  color: var(--gris-moyen);
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.slot-btn-booked:active,
.slot-btn-unavailable:active,
.slot-btn-not-in-schedule:active {
  transform: none;
  background: var(--blanc);
  color: var(--gris-moyen);
}

.slot-btn-booked:focus-visible,
.slot-btn-unavailable:focus-visible,
.slot-btn-not-in-schedule:focus-visible {
  outline: 2px solid var(--gris-clair);
  outline-offset: 2px;
}

/* Créneaux bloqués manuellement par l'admin — orange foncé, clic pour débloquer */
.slot-btn-blocked {
  background: #c2410c;
  color: #fff;
  cursor: pointer;
  border: 1px solid #9a3412;
}
.slot-btn-blocked:hover {
  background: #ea580c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.slot-btn-blocked:focus-visible {
  outline: 2px solid #9a3412;
  outline-offset: 2px;
}

/* Admin : créneau réservé par un client — clic pour annuler (orange/ambre) */
.slot-btn-booked-admin {
  background: #fef3c7;
  color: #92400e;
  cursor: pointer;
  border: 1px solid #f59e0b;
  opacity: 1;
}
.slot-btn-booked-admin:hover {
  background: #fde68a;
  color: #78350f;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.slot-btn-booked-admin:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Modal admin annulation : champ raison */
.admin-cancel-reason-label {
  display: block;
  margin: 1rem 0 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bleu, #1e4a7a);
}
.admin-cancel-reason-input {
  width: 100%;
  max-width: 100%;
  min-height: 4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid var(--gris-clair, #e8e6e1);
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
}
.admin-cancel-reason-input:focus {
  outline: 2px solid var(--bleu, #1e4a7a);
  outline-offset: 2px;
}
.admin-cancel-reason-counter {
  margin: 0.25rem 0 0 0;
  font-size: 0.8125rem;
  color: var(--gris-moyen, #5a5a52);
}

/* Créneaux bordure : bordure bleue qui tourne (box B — copie fidèle) */
.slot-btn-edge.slot-btn-available {
  --border-angle: 0deg;
  border: 2px solid transparent;
  border-radius: 5px;
  animation: border-angle-rotate 2s infinite linear;
  transition: none;
  background:
    linear-gradient(var(--booking-primary), var(--booking-primary)) padding-box,
    conic-gradient(from var(--border-angle), var(--bleu) 0% 50%, white 50% 100%)
      border-box;
  color: var(--blanc);
}
.slot-btn-edge.slot-btn-available:hover {
  background:
    linear-gradient(var(--booking-primary-hover), var(--booking-primary-hover))
      padding-box,
    conic-gradient(from var(--border-angle), var(--bleu) 0% 50%, white 50% 100%)
      border-box;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}
@keyframes border-angle-rotate {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}

/* Bloc tarif + légende créneaux favoris */
.booking-slot-legend-block {
  max-width: 520px;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.booking-slot-legend-block.booking-slot-legend-top {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.booking-slot-tariff-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  margin: 0 0 8px 0;
  padding: 0.5rem 0.75rem;
  background: rgba(30, 74, 122, 0.06);
  border-radius: 6px;
  border-left: 3px solid #27ae60;
}

.booking-slot-tariff-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bleu);
}

.booking-slot-tariff-note {
  font-size: 0.8rem;
  color: var(--gris-fonce);
}

.booking-slot-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--gris-tres-clair);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--gris-fonce);
}

.booking-slot-legend-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--bleu);
  background: var(--booking-primary);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(30, 74, 122, 0.3);
}

.day-empty {
  color: var(--gris-clair);
  font-size: 0.75rem;
  margin-top: auto;
}

/* ============================================================================
   AFFICHAGE EN GRILLE - Heures en lignes, jours en colonnes
   ============================================================================ */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem 0.5rem;
  padding: var(--spacing-md);
  overflow-x: auto;
}

.week-grid-header {
  display: contents;
}

.week-grid-hour-label {
  font-weight: 600;
  color: var(--bleu);
  padding: 0.25rem 0.5rem; /* Réduire padding vertical */
  text-align: center;
  font-size: 0.875rem;
  position: sticky;
  left: 0;
  background: var(--blanc);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-grid-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.4rem; /* Réduire padding */
  background: var(--gris-tres-clair);
  border-radius: 4px;
  font-weight: 600;
  color: var(--bleu);
  min-height: 50px; /* Réduire hauteur */
}

.week-grid-day-header .day-name {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.week-grid-day-header .day-number {
  font-size: 1.125rem;
}

.week-grid-row {
  display: contents;
}

.week-grid-cell {
  padding: 0.125rem 0.25rem; /* Réduire padding vertical */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px; /* Réduire la hauteur minimale */
}

.week-grid-cell-empty {
  background: transparent;
}

.week-grid-cell .slot-btn {
  width: 100%;
  min-width: 60px;
  padding: 0.375rem 0.5rem; /* Réduire padding pour compacité */
  font-size: 0.7rem; /* Légèrement plus petit */
  line-height: 1.2; /* Réduire l'interligne */
}

/* ============================================================================
   RESPONSIVE - Réservation
   ============================================================================ */

/* ============================================================================
   MOBILE HORIZONTAL SCHEDULER (solution clé en main)
   - scroll horizontal mobile réel
   - snap par colonne
   - drag souris desktop
   - évite le bug overflow:hidden sur parents
   ============================================================================ */

/* CRITIQUE : neutralise parents bloquants (overflow-x) */
@media (max-width: 899px) {
  .booking-section,
  .booking-container {
    overflow-x: visible !important;
  }
}

.schedule-scroll {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--blanc);
}

.schedule-inner {
  padding: 12px 16px;
}

/* =========================================================
   MOBILE : carousel des semaines ("Semaine du...")
   On scroll les CARTES, pas les jours à l'intérieur
   ========================================================= */
@media (max-width: 899px) {
  .calendar-view {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--spacing-lg);

    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    scroll-padding: var(--spacing-lg);

    min-width: 0;
    padding-bottom: var(--spacing-sm);
  }

  .week-section {
    flex: 0 0 92%;
    max-width: 92%;
    scroll-snap-align: start;
    min-width: 0;
    overflow: visible;
  }

  .week-content {
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Grille flexible pour tenir dans la carte 92% */
  .schedule-scroll {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .schedule-inner {
    display: block;
    min-width: auto;
    padding: 4px 0;
  }

  /* Espacement minimal entre cellules pour maximiser la place des créneaux */
  .schedule-inner .week-grid {
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    gap: 2px 3px;
  }

  .week-grid-cell {
    padding: 1px 2px;
  }

  .schedule-inner .week-grid-day-header .day-name,
  .schedule-inner .week-grid-hour-label {
    font-size: 0.7rem;
  }

  .schedule-inner .week-grid-day-header .day-number {
    font-size: 0.9rem;
  }

  /* Cellules de créneaux plus grandes : padding + zone tactile ≥ 44px */
  .week-grid-cell .slot-btn {
    min-width: 0;
    font-size: 0.85rem;
    padding: 0.5rem 0.2rem;
    min-height: 46px;
    line-height: 1.2;
  }

  /* Slider sous le carousel des semaines */
  .weeks-hscroll {
    margin-top: var(--spacing-sm);
    padding: 0 var(--spacing-lg) var(--spacing-md);
  }

  .weeks-hscroll input[type="range"] {
    width: 100%;
    height: 28px;
    accent-color: var(--bleu);
    cursor: pointer;
  }

  .weeks-hscroll[data-hidden="1"] {
    display: none;
  }
}

/* Très petit écran : créneaux encore plus grands, espacement minimal */
@media (max-width: 480px) {
  .week-section {
    flex: 0 0 96%;
    max-width: 96%;
  }

  .schedule-inner .week-grid {
    gap: 2px 2px;
  }

  .week-grid-cell {
    padding: 1px;
  }

  .schedule-inner .week-grid-day-header .day-name,
  .schedule-inner .week-grid-hour-label {
    font-size: 0.75rem;
  }

  .schedule-inner .week-grid-day-header .day-number {
    font-size: 0.95rem;
  }

  .week-grid-cell .slot-btn {
    font-size: 0.9rem;
    padding: 0.55rem 0.25rem;
    min-height: 48px;
  }
}

/* Ancien slider par semaine : masqué (on utilise weeks-hscroll) */
.week-hscroll {
  display: none;
}

@media (min-width: 900px) {
  .week-hscroll,
  .weeks-hscroll {
    display: none;
  }
}

/* Desktop (≥ 900px) */
@media (min-width: 900px) {
  /* Desktop : désactiver scroll / drag, grille flexible */
  .schedule-scroll {
    cursor: default;
    overflow-x: visible;
    border: none;
    background: transparent;
  }

  .schedule-inner {
    display: block;
    min-width: auto;
    padding: 0;
  }

  .week-grid {
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
  }

  .booking-section {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .booking-section h1 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xl);
  }

  .calendar-view {
    gap: var(--spacing-xl);
  }

  .week-header {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .week-title {
    font-size: 1.125rem;
  }

  .week-content {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
  }

  .week-days {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-sm);
  }

  .day-card {
    padding: 0.9rem 0.5rem; /* +20% padding pour plus d'espace */
    min-height: auto;
    height: fit-content;
  }

  .day-header {
    margin-bottom: 0.5rem; /* +33% espacement */
  }

  .day-name {
    font-size: 0.75rem; /* +20% (de 0.625rem) */
  }

  .day-number {
    font-size: 1.2rem; /* +20% (de 1rem) */
  }

  /* Sur PC : hauteur auto pour éviter le scroll, s'adapte au contenu */
  .day-slots {
    max-height: none;
    overflow-y: visible;
    gap: 0.25rem; /* +33% espacement entre créneaux */
  }

  .slot-btn {
    padding: 0.5rem 0.75rem; /* +20% padding */
    font-size: 0.8125rem; /* +18% (de 0.6875rem) */
    min-height: 32px; /* Hauteur minimale augmentée */
  }

  .week-days {
    gap: 0.9rem; /* +20% espacement entre colonnes */
  }
}

/* ============================================================================
   MODAL DE RÉSERVATION
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Overlay et conteneur modal
   ---------------------------------------------------------------------------- */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  box-sizing: border-box;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn var(--transition-base);
}

.booking-modal-content {
  position: relative;
  background: var(--blanc);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp var(--transition-base);
  z-index: 1;
  box-sizing: border-box;
}

/* Pas d’outline visible quand on met le focus sur le conteneur (mobile, pour éviter le clavier) */
.booking-modal-content:focus {
  outline: none;
}

/* Modal réservation : optimisé smartphone */
@media (max-width: 599px) {
  .booking-modal {
    padding: var(--spacing-sm);
    align-items: flex-end;
  }

  .booking-modal-content {
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }

  .booking-modal-header {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .booking-modal-title {
    font-size: 1.125rem;
  }

  .booking-modal-body {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  /* Formulaire : lignes Prénom/Nom et Âge/Sexe en une colonne sur petit écran */
  .booking-form-row-2 {
    grid-template-columns: 1fr !important;
  }

  .booking-modal-footer {
    flex-direction: column;
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-sm);
  }

  .booking-modal-btn {
    min-height: 48px;
    font-size: 1rem;
  }

  .booking-tags-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------------------------
   En-tête du modal
   ---------------------------------------------------------------------------- */
.booking-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--gris-clair);
}

.booking-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bleu);
  margin: 0;
}

.booking-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--rouge);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.booking-modal-close:hover,
.booking-modal-close:focus {
  background: var(--rouge-clair);
  color: var(--rouge-fonce);
  outline: none;
}

.booking-modal-close:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
   Corps du modal
   ---------------------------------------------------------------------------- */
.booking-modal-body {
  padding: var(--spacing-lg);
}

.booking-modal-text {
  font-size: 1rem;
  color: var(--gris-fonce);
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.6;
}

.booking-modal-details {
  background: var(--gris-tres-clair);
  border-radius: 8px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--gris-clair);
}

.booking-modal-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  gap: var(--spacing-md);
}

.booking-modal-detail-item:not(:last-child) {
  border-bottom: 1px solid var(--gris-clair);
}

.booking-modal-label {
  font-weight: 600;
  color: var(--gris-fonce);
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.booking-modal-value {
  font-weight: 600;
  color: var(--bleu);
  font-size: 0.9375rem;
  text-align: right;
}

/* Détail du tarif */
.booking-price-detail-row .booking-price-detail-content {
  font-size: 0.875rem;
  color: var(--gris-moyen);
  text-align: right;
}

.booking-price-amount {
  font-weight: 700;
  color: var(--bleu);
}

/* Total mis en évidence */
.booking-total-row {
  background: rgba(30, 74, 122, 0.08);
  margin: var(--spacing-sm) calc(var(--spacing-md) * -1) 0;
  padding: var(--spacing-sm) var(--spacing-md);
  border-top: 2px solid var(--gris-clair);
}

.booking-total-row .booking-modal-label {
  color: var(--bleu-fonce);
  font-size: 1rem;
}

.booking-modal-total {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bleu);
}

/* Bloc choix durée (select compact) */
.booking-duration-price-block {
  border-bottom: none;
}

.booking-duration-select {
  padding: 0.4rem 2rem 0.4rem 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bleu);
  background: var(--blanc);
  border: 2px solid var(--gris-clair);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
  max-width: 5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e4a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.booking-duration-select:hover,
.booking-duration-select:focus {
  border-color: var(--bleu);
  outline: none;
}

/* Note : durée 2 h = estimation moyenne, prix adapté */
.booking-modal-duration-note {
  font-size: 0.875rem;
  color: var(--gris-moyen);
  margin: 0.5rem 0 0;
  line-height: 1.5;
  font-style: italic;
}

.booking-modal-info {
  font-size: 0.875rem;
  color: var(--gris-moyen);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

/* Message de succès après soumission */
.booking-success-container {
  text-align: center;
  padding: 30px 20px 40px;
}

.booking-success-content {
  text-align: left;
}

.booking-success-title {
  margin: 0 0 var(--spacing-lg) 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bleu);
  text-align: center;
}

.booking-success-recap {
  background: var(--gris-tres-clair);
  border: 1px solid var(--gris-clair);
  border-radius: 8px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

.booking-success-recap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: var(--spacing-md);
}

.booking-success-recap-item:not(:last-child) {
  border-bottom: 1px solid var(--gris-clair);
}

.booking-success-recap-label {
  font-weight: 600;
  color: var(--gris-fonce);
  font-size: 0.875rem;
}

.booking-success-recap-value {
  font-weight: 600;
  color: var(--bleu);
  font-size: 0.875rem;
  text-align: right;
}

.booking-success-price-detail .booking-success-recap-value {
  font-weight: 500;
  color: var(--gris-moyen);
}

.booking-success-total {
  background: rgba(30, 74, 122, 0.08);
  margin: 6px calc(var(--spacing-md) * -1) 0;
  padding: 10px var(--spacing-md);
  border-radius: 0 0 6px 6px;
  border-bottom: none;
}

.booking-success-total .booking-success-recap-label {
  color: var(--bleu-fonce);
  font-size: 0.9375rem;
}

.booking-success-total .booking-success-recap-value {
  font-size: 1.0625rem;
  font-weight: 700;
}

.booking-success-text {
  margin: 0 0 var(--spacing-lg);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gris-fonce);
}

.booking-success-text strong {
  color: var(--bleu);
}

.booking-success-signature {
  margin: 0 0 var(--spacing-lg);
  font-size: 0.9375rem;
  color: var(--gris-moyen);
}

.booking-success-signature strong {
  color: var(--bleu-fonce);
}

.booking-success-note {
  margin: 0;
  padding-top: var(--spacing-md);
  font-size: 0.8125rem;
  color: var(--rouge);
  font-style: italic;
}

.booking-success-container p,
.booking-success-message {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gris-fonce);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-line;
}

.booking-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--jaune) 0%, var(--jaune-clair) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.booking-success-icon span {
  font-size: 45px;
  color: var(--bleu);
}

.booking-modal-close-success {
  background: var(--rouge);
  color: var(--blanc);
  border: 2px solid var(--rouge);
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  transition: all 0.3s ease;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
}

.booking-modal-close-success:hover,
.booking-modal-close-success:focus {
  background: var(--rouge-fonce);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
}

.booking-modal-close-success:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(30, 74, 122, 0.3);
}

/* ----------------------------------------------------------------------------
   Formulaire du modal
   ---------------------------------------------------------------------------- */
.booking-modal-form {
  margin-top: var(--spacing-lg);
}

.booking-modal-section {
  margin-bottom: var(--spacing-xl);
}

/* Checkbox castré/stérilisé */
.booking-dog-checkbox-label .booking-tag-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.booking-modal-section:last-child {
  margin-bottom: 0;
}

.booking-modal-section-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gris-fonce);
  margin-bottom: var(--spacing-md);
}

/* Tags prédéfinis */
.booking-tags-container {
  margin-top: var(--spacing-sm);
}

.booking-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.booking-tag-label {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--gris-clair);
  border-radius: 6px;
  background: var(--blanc);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  user-select: none;
}

.booking-tag-label:hover {
  border-color: var(--bleu);
  background: var(--gris-tres-clair);
}

.booking-tag-checkbox {
  margin-right: var(--spacing-sm);
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Style de focus très visible pour les checkboxes */
.booking-tag-checkbox:focus {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
  border-radius: 2px;
}

.booking-tag-checkbox:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
}

.booking-tag-checkbox:checked + span {
  font-weight: 600;
  color: var(--bleu);
}

.booking-tag-label:has(.booking-tag-checkbox:checked) {
  border-color: var(--bleu);
  background: rgba(30, 74, 122, 0.05);
}

/* Mettre en évidence le label quand la checkbox est focus */
.booking-tag-label:has(.booking-tag-checkbox:focus) {
  border-color: var(--jaune);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.booking-tag-label span {
  flex: 1;
  color: var(--gris-fonce);
}

/* Champ de message */
.booking-message-textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--spacing-md);
  border: 2px solid var(--gris-clair);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gris-fonce);
  background: var(--blanc);
  resize: vertical;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.booking-message-textarea:focus {
  outline: none;
  border-color: var(--bleu);
  border-width: 3px;
  box-shadow:
    0 0 0 4px rgba(30, 74, 122, 0.15),
    0 0 0 6px rgba(250, 204, 21, 0.2);
}

.booking-message-textarea:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}

.booking-message-textarea::placeholder {
  color: var(--gris-moyen);
  opacity: 0.7;
}

/* Compteur de caractères */
.booking-message-counter {
  margin-top: var(--spacing-xs);
  font-size: 0.8125rem;
  color: var(--gris-moyen);
  text-align: right;
}

.booking-message-counter span {
  font-weight: 600;
  color: var(--gris-fonce);
}

.booking-message-counter span.warning {
  color: var(--orange);
}

.booking-message-counter span.danger {
  color: var(--rouge);
}

/* Messages d'erreur de validation */
.booking-field-error {
  display: block;
  color: var(--rouge);
  font-size: 0.875rem;
  margin-top: 5px;
  line-height: 1.4;
}

/* Styles de focus pour les champs input - Très visibles pour l'accessibilité */
.booking-input:focus {
  outline: none;
  border-color: var(--bleu) !important;
  border-width: 3px !important;
  box-shadow:
    0 0 0 4px rgba(30, 74, 122, 0.15),
    0 0 0 6px rgba(250, 204, 21, 0.2) !important;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.booking-input:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}

.booking-input.error {
  border-color: var(--rouge) !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.booking-input.valid {
  border-color: var(--vert) !important;
}

/* Champs obligatoires */
.booking-required::after {
  content: " *";
  color: #e74c3c;
  font-weight: 700;
}

label:has(.booking-required),
label:has(+ .booking-required) {
  color: #1e4a7a;
}

label:has(.booking-required) span[style*="color: #e74c3c"],
label span[style*="color: #e74c3c"] {
  color: #e74c3c !important;
  font-weight: 700;
  font-size: 1em;
}

/* Classe utilitaire pour screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------------------------------------------
   Pied du modal (boutons)
   ---------------------------------------------------------------------------- */
.booking-modal-footer {
  display: flex;
  flex-direction: row-reverse; /* PC : Annuler à gauche, Confirmer à droite */
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border-top: 1px solid var(--gris-clair);
}

.booking-modal-btn {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  font-family: inherit;
}

.booking-modal-btn-cancel {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
}

.booking-modal-btn-cancel:hover,
.booking-modal-btn-cancel:focus {
  background: var(--rouge-fonce);
  color: var(--blanc);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
  outline: none;
}

.booking-modal-btn-cancel:active {
  transform: translateY(0);
  background: var(--rouge-fonce);
}

.booking-modal-btn-cancel:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
}

.booking-modal-btn-confirm {
  background: var(--booking-primary);
  color: var(--blanc);
}

.booking-modal-btn-confirm:hover,
.booking-modal-btn-confirm:focus {
  background: var(--booking-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
  outline: none;
}

.booking-modal-btn-confirm:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
}

.booking-modal-btn-confirm:active {
  transform: translateY(0);
  background: var(--booking-primary-active);
}
