/* ============================================================
   LUMIÈRE DE L'ÂME — Feuille de styles principale
   Projet : site de voyance — dark mode mystique et luxueux
   Auteur : équipe pluridisciplinaire (cf. cahier des charges)
   Stratégie : vanilla CSS, sans framework, sans build.
   Ordre du fichier (strict) :
     1. Variables (:root)
     2. Reset / normalisation
     3. Typographie de base
     4. Layout (grid, flex utilitaires)
     5. Composants (navbar, footer, cartes, boutons, formulaires,
                    accordéon, carrousel, sidebar, badges)
     6. Utilitaires (animations, helpers)
     7. Media queries (mobile → tablette → desktop)
   ============================================================ */


/* ============================================================
   1. VARIABLES — Design System
   ============================================================ */
:root {
  /* Couleurs de fond */
  --bg-main: #0D0D1A;
  --bg-card: #1A1A2E;
  --bg-footer: #080812;

  /* Couleurs de marque */
  --color-primary: #C9A84C;   /* doré */
  --color-secondary: #7B2FBE; /* violet profond */
  --color-accent: #E8D5A3;    /* doré clair */

  /* Texte */
  --text-main: #F5F0E8;
  --text-muted: #A89BC2;

  /* États */
  --status-success: #4CAF50;
  --status-error: #E57373;

  /* Ombres / lueurs */
  --glow-gold: 0 0 20px rgba(201, 168, 76, 0.4);
  --glow-violet: 0 0 20px rgba(123, 47, 190, 0.4);

  /* Bordures */
  --border-gold: 1px solid var(--color-primary);

  /* Rayons */
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-pill: 999px;

  /* Typographies (avec fallback système) */
  --font-titre: 'Tenor Sans', 'Manrope', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-soustitre: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-corps: 'Manrope', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Espacements de référence */
  --espace-xxs: 4px;
  --espace-xs: 8px;
  --espace-sm: 12px;
  --espace-md: 20px;
  --espace-lg: 32px;
  --espace-xl: 56px;
  --espace-xxl: 96px;

  /* Largeur de contenu */
  --largeur-conteneur: 1200px;

  /* Transitions courantes */
  --transition-base: 0.3s ease;
  --transition-lente: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Breakpoints (référence — CSS ne gère pas les variables en @media) */
  /* mobile     : 0    – 599px  */
  /* tablette   : 600  – 991px  */
  /* desktop    : 992px et plus */
}


/* ============================================================
   2. RESET / NORMALISATION
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-corps);
  font-size: 16px;
  line-height: 1.68;
  min-height: 100dvh;
  overflow-x: hidden;
  /* Réserve un fond statique même si le canvas étoilé ne se lance pas */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(123, 47, 190, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(201, 168, 76, 0.10) 0%, transparent 45%);
  background-attachment: fixed;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Lien d'évitement — visible uniquement au focus clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--color-primary);
  color: var(--bg-main);
  padding: var(--espace-sm) var(--espace-md);
  border-radius: 0 0 var(--radius-btn) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Focus visible cohérent avec la charte (halo doré) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Canvas étoilé — fixed derrière tout le contenu */
.canvas-etoiles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.canvas-etoiles-webgl {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  pointer-events: none;
}


/* ============================================================
   3. TYPOGRAPHIE DE BASE
   ============================================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text-main);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: var(--espace-md);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: var(--espace-sm);
}

h4 {
  font-size: 1.1rem;
  margin-bottom: var(--espace-xs);
}

p {
  margin-bottom: var(--espace-sm);
  color: var(--text-main);
  overflow-wrap: break-word;
}

.citation,
.soustitre-italique {
  font-family: var(--font-soustitre);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.texte-mute {
  color: var(--text-muted);
}

.texte-or {
  color: var(--color-primary);
}


/* ============================================================
   4. LAYOUT — Conteneurs & utilitaires de grille
   ============================================================ */
.conteneur {
  width: 100%;
  max-width: var(--largeur-conteneur);
  margin: 0 auto;
  padding: 0 var(--espace-md);
}

.section {
  padding: var(--espace-xxl) 0;
  position: relative;
}

.section-petite {
  padding: var(--espace-xl) 0;
}

.grille {
  display: grid;
  gap: var(--espace-lg);
}

.grille-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grille-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grille-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-centre {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-entre {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--espace-sm);
}

.gap-md {
  gap: var(--espace-md);
}

.gap-lg {
  gap: var(--espace-lg);
}

.texte-centre {
  text-align: center;
}

.mt-md {
  margin-top: var(--espace-md);
}

.mt-lg {
  margin-top: var(--espace-lg);
}

.mt-xl {
  margin-top: var(--espace-xl);
}

.mb-md {
  margin-bottom: var(--espace-md);
}

.mb-lg {
  margin-bottom: var(--espace-lg);
}

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


/* ============================================================
   5. COMPOSANTS
   ============================================================ */

/* ---------- 5.1 Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--espace-xs);
  padding: var(--espace-sm) var(--espace-lg);
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background-color var(--transition-base), opacity var(--transition-base);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 44px; /* cible tactile AA */
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-principal {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--bg-main);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.25);
}

.btn-principal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.btn-secondaire {
  background: transparent;
  color: var(--color-primary);
  border: var(--border-gold);
}

.btn-secondaire:hover:not(:disabled) {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: var(--glow-gold);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--color-primary);
  box-shadow: var(--glow-gold);
}

.btn-grand {
  padding: var(--espace-md) var(--espace-xl);
  font-size: 1.1rem;
}

.btn-bloc {
  width: 100%;
  display: flex;
}

/* Spinner CSS pour boutons en cours de traitement */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 13, 26, 0.25);
  border-top-color: var(--bg-main);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 5.2 Badges ---------- */
.badge {
  display: inline-block;
  padding: var(--espace-xxs) var(--espace-sm);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--bg-card);
  color: var(--color-accent);
  border: 1px solid var(--color-primary);
}

.badge-populaire {
  background: linear-gradient(
    100deg,
    var(--color-primary) 20%,
    var(--color-accent) 40%,
    var(--color-primary) 60%,
    var(--color-accent) 80%
  );
  background-size: 200% auto;
  color: var(--bg-main);
  border: none;
  animation: shimmer 3s linear infinite;
}

.badge-intense {
  background: linear-gradient(
    100deg,
    var(--color-secondary) 20%,
    var(--color-accent) 50%,
    var(--color-secondary) 80%
  );
  background-size: 200% auto;
  color: var(--text-main);
  border: none;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* ---------- 5.3 Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--espace-md) 0;
  background: transparent;
  transition: background-color var(--transition-base),
    backdrop-filter var(--transition-base), padding var(--transition-base);
}

.navbar.scroll-actif {
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--espace-sm) 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.navbar-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-md);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--espace-sm);
  color: var(--color-primary);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.navbar-logo:hover {
  color: var(--color-accent);
}

.navbar-liens {
  display: flex;
  align-items: center;
  gap: var(--espace-lg);
  list-style: none;
}

.navbar-liens a {
  position: relative;
  color: var(--text-main);
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 0.95rem;
  padding: var(--espace-xxs) 0;
  transition: color var(--transition-base);
}

.navbar-liens a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.navbar-liens a:hover,
.navbar-liens a:focus-visible,
.navbar-liens a[aria-current="page"] {
  color: var(--color-primary);
}

.navbar-liens a[aria-current="page"]::after,
.navbar-liens a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--espace-md);
}

/* Menu hamburger — solution hybride CSS + JS */
.menu-toggle {
  display: none; /* affiché en mobile via media query */
}

/* Case à cocher CSS pure (repli sans JS) */
#menu-toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bouton-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-btn);
}

.bouton-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* État "croix" — via JS (classe .ouvert) ou via CSS pur si JS désactivé */
.bouton-hamburger.ouvert span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bouton-hamburger.ouvert span:nth-child(2) {
  opacity: 0;
}

.bouton-hamburger.ouvert span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Panneau mobile (caché par défaut sur desktop) */
.panneau-mobile {
  display: none;
}

/* ---------- 5.4 Footer ---------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--color-primary);
  padding: var(--espace-xl) 0 var(--espace-md);
  margin-top: var(--espace-xxl);
}

.footer-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espace-lg);
}

.footer-colonne h4 {
  color: var(--color-primary);
  font-family: var(--font-titre);
  font-size: 1.1rem;
  margin-bottom: var(--espace-md);
  letter-spacing: 1px;
}

.footer-colonne p,
.footer-colonne li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--espace-xs);
}

.footer-colonne ul {
  list-style: none;
}

.footer-colonne a {
  color: var(--text-muted);
}

.footer-colonne a:hover {
  color: var(--color-primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--espace-sm);
  color: var(--color-primary);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--espace-sm);
}

.footer-etoiles {
  display: flex;
  gap: 2px;
  color: var(--color-primary);
  margin-top: var(--espace-sm);
}

.footer-etoiles svg {
  width: 18px;
  height: 18px;
}

.footer-reseaux {
  display: flex;
  gap: var(--espace-sm);
  margin-top: var(--espace-sm);
}

.footer-reseaux a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.3);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.footer-reseaux a:hover {
  background: rgba(201, 168, 76, 0.15);
  box-shadow: var(--glow-gold);
}

.footer-reseaux svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  margin-top: var(--espace-lg);
  padding-top: var(--espace-md);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- 5.5 Cartes ---------- */
.carte {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--espace-lg);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.carte:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--glow-gold);
}

.carte-cliquable {
  cursor: pointer;
  display: block;
  color: inherit;
}

.carte-cliquable:hover {
  color: inherit;
}

.carte-icone {
  width: 56px;
  height: 56px;
  margin-bottom: var(--espace-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.2), transparent);
  color: var(--color-primary);
  font-size: 1.5rem;
}

.carte-icone svg {
  width: 28px;
  height: 28px;
}

.carte-prix {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}

.carte-description {
  color: var(--text-muted);
  margin: var(--espace-sm) 0;
  font-size: 0.95rem;
}

.carte-duree {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--espace-xs);
  margin-bottom: var(--espace-md);
}

.carte-boutons {
  display: flex;
  gap: var(--espace-sm);
  flex-wrap: wrap;
}

/* ---------- 5.6 Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--espace-md) var(--espace-xl);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(123, 47, 190, 0.25) 0%,
    transparent 60%
  );
  z-index: 0;
}

.hero-contenu {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-titre {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  margin-bottom: var(--espace-md);
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  min-height: 1.2em; /* réserve pour effet machine à écrire */
}

.hero-soustitre {
  font-family: var(--font-soustitre);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  color: var(--text-muted);
  margin-bottom: var(--espace-lg);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-boutons {
  display: flex;
  gap: var(--espace-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Curseur clignotant pour machine à écrire */
.curseur-typewriter {
  display: inline-block;
  width: 3px;
  background: var(--color-primary);
  margin-left: 4px;
  animation: clignotement 1s step-end infinite;
}

@keyframes clignotement {
  50% {
    opacity: 0;
  }
}

/* ---------- 5.7 Séparateurs ondulés ---------- */
.separateur-ondule {
  display: block;
  width: 100%;
  height: 60px;
  margin: -1px 0;
  color: var(--bg-card);
}

.separateur-ondule svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- 5.8 Section "3 Piliers" ---------- */
.piliers-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espace-lg);
}

.pilier {
  text-align: center;
  padding: var(--espace-lg);
}

.pilier-icone {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--espace-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(123, 47, 190, 0.3), transparent);
  color: var(--color-accent);
}

.pilier-icone svg {
  width: 36px;
  height: 36px;
}

/* ---------- 5.9 Témoignages / Carrousel ---------- */
.carrousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 280px; /* réserve anti layout-shift */
}

.carrousel-piste {
  position: relative;
  min-height: 280px;
}

.temoignage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-lente);
  pointer-events: none;
  text-align: center;
  padding: var(--espace-lg);
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.temoignage.actif {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.temoignage-etoiles {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: var(--espace-sm);
  letter-spacing: 2px;
}

.temoignage-texte {
  font-family: var(--font-soustitre);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: var(--espace-md);
  line-height: 1.5;
}

.temoignage-auteur {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-titre);
  font-size: 0.95rem;
}

.carrousel-controles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--espace-md);
  margin-top: var(--espace-md);
}

.carrousel-bouton {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.carrousel-bouton:hover {
  background: rgba(201, 168, 76, 0.15);
  box-shadow: var(--glow-gold);
}

.carrousel-points {
  display: flex;
  gap: var(--espace-xs);
}

.carrousel-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.3);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
  border: none;
  padding: 0;
}

.carrousel-point.actif {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ---------- 5.10 Accordéon FAQ natif ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-btn);
  margin-bottom: var(--espace-sm);
  border: 1px solid rgba(201, 168, 76, 0.15);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--glow-gold);
}

.faq-item summary {
  padding: var(--espace-md);
  cursor: pointer;
  font-family: var(--font-titre);
  font-weight: 700;
  color: var(--text-main);
  list-style: none; /* masque le marqueur par défaut */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--espace-md);
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-corps);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-reponse {
  padding: 0 var(--espace-md) var(--espace-md);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- 5.11 Formulaires ---------- */
.formulaire {
  max-width: 600px;
  margin: 0 auto;
}

.champ {
  margin-bottom: var(--espace-md);
}

.champ-label {
  display: block;
  margin-bottom: var(--espace-xs);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.champ-label .requis {
  color: var(--status-error);
}

.champ-input,
.champ-textarea,
.champ-select {
  width: 100%;
  padding: var(--espace-sm) var(--espace-md);
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-btn);
  color: var(--text-main);
  font-family: var(--font-corps);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 44px;
}

.champ-textarea {
  min-height: 120px;
  resize: vertical;
}

.champ-input:focus,
.champ-textarea:focus,
.champ-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--glow-gold);
}

.champ-input.invalide,
.champ-textarea.invalide,
.champ-select.invalide {
  border-color: var(--status-error);
  box-shadow: 0 0 0 3px rgba(229, 115, 115, 0.2);
}

.champ-erreur {
  display: block;
  color: var(--status-error);
  font-size: 0.85rem;
  margin-top: var(--espace-xxs);
  min-height: 1.2em;
}

.champ-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--espace-sm);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.champ-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- 5.12 Cartes d'options (radio stylisés) ---------- */
.options-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espace-sm);
  margin-bottom: var(--espace-md);
}

.option-carte {
  position: relative;
  display: block;
  padding: var(--espace-md);
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base),
    background var(--transition-base);
  text-align: center;
}

.option-carte:hover {
  border-color: var(--color-primary);
}

.option-carte input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.option-carte.selectionnee {
  border-color: var(--color-primary);
  background: rgba(201, 168, 76, 0.1);
  box-shadow: var(--glow-gold);
}

.option-carte-label {
  display: block;
  font-family: var(--font-titre);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--espace-xxs);
}

.option-carte-prix {
  display: block;
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
}

.option-carte-duree {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- 5.13 Sidebar sticky + barre mobile ---------- */
.sidebar-service {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--espace-lg);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.sidebar-prix {
  font-family: var(--font-titre);
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--espace-sm);
}

.barre-reservation-mobile {
  display: none; /* affichée uniquement sur mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(8, 8, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-primary);
  padding: var(--espace-sm) var(--espace-md);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.barre-reservation-mobile .btn {
  width: 100%;
}

/* ---------- 5.14 Layout 2 colonnes ---------- */
.layout-2-colonnes {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--espace-xl);
  align-items: start;
}

.cadre-photo {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold), var(--glow-violet);
  animation: pulse-dore 4s ease-in-out infinite;
}

.cadre-photo::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-main);
}

.cadre-photo svg {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  color: var(--color-primary);
  opacity: 0.85;
}

@keyframes pulse-dore {
  0%, 100% {
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.4), 0 0 40px rgba(123, 47, 190, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(201, 168, 76, 0.6), 0 0 60px rgba(123, 47, 190, 0.5);
  }
}

/* ---------- 5.15 Compteur animé ---------- */
.compteur {
  font-family: var(--font-titre);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  min-height: 1em; /* anti layout-shift */
}

.compteur-suffixe {
  font-size: 0.6em;
}

.compteur-label {
  font-family: var(--font-soustitre);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: var(--espace-xs);
}

/* ---------- 5.16 Timeline ---------- */
.timeline {
  position: relative;
  padding-left: var(--espace-xl);
  margin-top: var(--espace-lg);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-secondary)
  );
}

.timeline-etape {
  position: relative;
  margin-bottom: var(--espace-lg);
  padding-left: var(--espace-lg);
}

.timeline-etape::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-numero {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 18px;
  font-family: var(--font-titre);
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 700;
  text-align: center;
}

.timeline-titre {
  font-family: var(--font-titre);
  color: var(--color-accent);
  margin-bottom: var(--espace-xxs);
  font-size: 1.05rem;
}

.timeline-texte {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- 5.17 Liste inclusions ---------- */
.inclusions-liste {
  list-style: none;
  display: grid;
  gap: var(--espace-sm);
}

.inclusions-liste li {
  display: flex;
  align-items: flex-start;
  gap: var(--espace-sm);
  color: var(--text-main);
  padding: var(--espace-sm);
  background: var(--bg-card);
  border-radius: var(--radius-btn);
  border-left: 3px solid var(--color-primary);
}

.inclusions-liste li::before {
  content: "✔";
  color: var(--status-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- 5.18 Section PAS / AIDA ---------- */
.pas-grille,
.aida-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espace-md);
  margin-top: var(--espace-md);
}

.pas-carte,
.aida-carte {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--espace-md);
  border-top: 3px solid var(--color-primary);
  height: 100%;
}

.pas-carte h4,
.aida-carte h4 {
  color: var(--color-primary);
  font-family: var(--font-titre);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--espace-xs);
}

.pas-carte p,
.aida-carte p {
  font-family: var(--font-soustitre);
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
}

.aida-grille {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 5.19 Fil d'Ariane ---------- */
.fil-ariane {
  padding: 100px 0 var(--espace-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fil-ariane ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--espace-xs);
  list-style: none;
}

.fil-ariane li {
  display: flex;
  align-items: center;
  gap: var(--espace-xs);
}

.fil-ariane li::after {
  content: "›";
  color: var(--color-primary);
  margin-left: var(--espace-xs);
}

.fil-ariane li:last-child::after {
  content: "";
}

.fil-ariane a {
  color: var(--text-muted);
}

.fil-ariane a:hover {
  color: var(--color-primary);
}

.fil-ariane span[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- 5.20 Boutons flottants (WhatsApp + retour haut) ---------- */
.bouton-flottant {
  position: fixed;
  right: var(--espace-md);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base),
    box-shadow var(--transition-base);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.bouton-flottant.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bouton-flottant svg {
  width: 28px;
  height: 28px;
}

.bouton-whatsapp {
  bottom: var(--espace-lg);
  background: #25D366;
  color: #fff;
}

.bouton-whatsapp:hover {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.bouton-retour-haut {
  bottom: calc(var(--espace-lg) + 70px);
  background: var(--bg-card);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.bouton-retour-haut:hover {
  background: rgba(201, 168, 76, 0.15);
  box-shadow: var(--glow-gold);
}

/* ---------- 5.21 Messages d'alerte ---------- */
.alerte {
  padding: var(--espace-md);
  border-radius: var(--radius-btn);
  margin-bottom: var(--espace-md);
  display: flex;
  align-items: flex-start;
  gap: var(--espace-sm);
  border-left: 4px solid;
}

.alerte-succes {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--status-success);
  color: var(--text-main);
}

.alerte-erreur {
  background: rgba(229, 115, 115, 0.1);
  border-color: var(--status-error);
  color: var(--text-main);
}

.alerte-info {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--color-primary);
  color: var(--text-main);
}

/* ---------- 5.22 Récapitulatif commande ---------- */
.recap-commande {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--espace-lg);
  border: 1px solid var(--color-primary);
  box-shadow: var(--glow-gold);
}

.recap-ligne {
  display: flex;
  justify-content: space-between;
  padding: var(--espace-sm) 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  font-size: 1rem;
}

.recap-ligne:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: var(--espace-xs);
}

.recap-ligne span:first-child {
  color: var(--text-muted);
}

/* ---------- 5.23 Étoile animée (succès) ---------- */
.etoile-confirm {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--espace-md);
  color: var(--color-primary);
  animation: scintillement 2s ease-in-out infinite;
}

@keyframes scintillement {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.6));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 25px rgba(201, 168, 76, 0.9));
  }
}


/* ============================================================
   6. UTILITAIRES — Animations au scroll
   ============================================================ */
.anim-apparition {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.anim-apparition.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-gauche {
  transform: translateX(-30px);
}

.anim-droite {
  transform: translateX(30px);
}

/* ============================================================
   7. MEDIA QUERIES — mobile → tablette → desktop
   ============================================================ */

/* ---------- Tablette (600px – 991px) ---------- */
@media (min-width: 600px) and (max-width: 991px) {
  .anim-gauche,
  .anim-droite {
    transform: translateY(24px);
  }

  .grille-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grille-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .piliers-grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-2-colonnes {
    grid-template-columns: 1fr;
    gap: var(--espace-lg);
  }

  .pas-grille {
    grid-template-columns: 1fr;
  }

  .aida-grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .options-grille {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile (max-width: 599px) ---------- */
@media (max-width: 599px) {
  body {
    font-size: 16px;
  }

  /* Navbar : masquer les liens centraux, afficher le hamburger */
  .navbar-liens,
  .navbar-cta .btn {
    display: none;
  }

  .bouton-hamburger {
    display: flex;
  }

  /* Panneau mobile plein écran — piloté par checkbox CSS pur (repli sans JS)
     ou par classe .ouvert (JS activé) */
  .panneau-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--espace-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity var(--transition-lente), transform var(--transition-lente),
      visibility 0s linear 0.6s;
    z-index: 999;
    padding: var(--espace-xl) var(--espace-md);
    overflow-x: hidden;
  }

  /* Cas sans JS : la case à cocher ouvre le panneau via CSS pur */
  #menu-toggle-checkbox:checked ~ .panneau-mobile {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition-delay: 0s;
  }

  /* Cas avec JS : la classe .ouvert pilote le panneau */
  .panneau-mobile.ouvert {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition-delay: 0s;
  }

  .panneau-mobile .navbar-liens {
    display: flex;
    flex-direction: column;
    gap: var(--espace-lg);
    align-items: center;
  }

  .panneau-mobile .navbar-liens a {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    color: var(--color-primary);
  }

  .panneau-mobile .navbar-cta {
    display: flex;
    margin-top: var(--espace-md);
  }

  .panneau-mobile .btn {
    display: inline-flex;
  }

  .anim-gauche,
  .anim-droite {
    transform: translateY(24px);
  }

  /* Bouton de fermeture du panneau mobile (visible uniquement si JS actif,
     puisque la version CSS pur utilise le label hamburger qui se transforme
     en croix) */
  .panneau-fermer {
    position: absolute;
    top: var(--espace-md);
    right: var(--espace-md);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--color-primary);
  }

  /* Grilles → 1 colonne */
  .grille-2,
  .grille-3,
  .grille-4,
  .piliers-grille,
  .footer-grille,
  .pas-grille,
  .aida-grille,
  .options-grille {
    grid-template-columns: 1fr;
  }

  .layout-2-colonnes {
    grid-template-columns: 1fr;
  }

  /* Hero : réduire les boutons en pleine largeur */
  .hero-boutons .btn {
    width: 100%;
  }

  /* Sidebar devient barre fixe en bas sur les pages de détail */
  .sidebar-service {
    display: none;
  }

  .barre-reservation-mobile {
    display: block;
  }

  /* Ajoute un padding bas pour que la barre ne masque pas le contenu */
  body.page-service {
    padding-bottom: 80px;
  }

  /* Boutons flottants : décalage sur mobile */
  .bouton-flottant {
    width: 48px;
    height: 48px;
    right: var(--espace-sm);
  }

  .bouton-whatsapp {
    bottom: var(--espace-md);
  }

  .bouton-retour-haut {
    bottom: calc(var(--espace-md) + 60px);
  }

  .bouton-flottant svg {
    width: 24px;
    height: 24px;
  }

  .section {
    padding: var(--espace-xl) 0;
  }
}

/* ---------- Desktop (min-width: 992px) ---------- */
@media (min-width: 992px) {
  /* Tilt 3D activé sur desktop uniquement — voir JS pour la détection tactile */
  .carte.tilt-actif {
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow var(--transition-base),
      border-color var(--transition-base);
  }
}

/* ---------- Préférence : réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .canvas-etoiles {
    display: none;
  }

  .anim-apparition {
    opacity: 1;
    transform: none;
  }

  .badge-populaire,
  .badge-intense {
    animation: none;
  }

  .curseur-typewriter {
    animation: none;
    opacity: 1;
  }

  .cadre-photo {
    animation: none;
  }

  .etoile-confirm {
    animation: none;
  }
}

/* ---------- Impression ---------- */
@media print {
  .navbar,
  .footer,
  .bouton-flottant,
  .barre-reservation-mobile,
  .canvas-etoiles {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
