/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  /* Orange accessible : ratio ≥ 4.5:1 sur fond blanc ET texte blanc dessus */
  --primary: #c44008; /* ratio 5.1:1 sur blanc, 5.1:1 pour texte blanc */
  --primary-bright: #e8500a; /* orange vif réservé aux éléments décoratifs uniquement */
  --primary-dark: #a33a07; /* hover boutons */
  --primary-light: rgba(196, 64, 8, 0.08);

  /* Thème clair */
  --bg: #f7f5f2;
  --bg-2: #ffffff;
  --bg-3: #eeecea;

  /* Sections sombres (hero, footer, cta) */
  --dark-bg: #111111;
  --dark-bg-2: #1a1a1a;
  --dark-bg-3: #242424;

  --text: #1a1a1a;
  --text-2: #444444;
  --gray: #5e5e5e; /* ratio 6.1:1 sur blanc ✓ (était #777 = 4.5:1 ❌) */
  --gray-light: #737373; /* ratio 4.7:1 sur blanc ✓ (était #999 = 2.8:1 ❌) */
  --border: rgba(0, 0, 0, 0.09);
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Gardés pour compatibilité blocs sombres */
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #242424;
  --light: #f5f5f5;
  --white: #ffffff;

  --font-main: "Montserrat", sans-serif;
  --transition: 0.3s ease;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* bloque le scroll horizontal sur iOS/Android */
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(247, 245, 242, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 4px;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}
.nav-cta::after {
  display: none !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =============================================
   HERO (sombre)
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 5, 1, 0.52) 0%,
      rgba(8, 4, 1, 0.62) 100%
    ),
    url("../images/hero-bg.jpg") center 40% / cover no-repeat;
  overflow: hidden;
  padding: 120px 5% 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(232, 80, 10, 0.2) 0%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 80, 10, 0.15);
  border: 1px solid rgba(232, 80, 10, 0.4);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 720;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: #cccccc;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Boutons */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  border: 2px solid var(--primary);
  cursor: pointer;
  font-family: var(--font-main);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 80, 10, 0.3);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-family: var(--font-main);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Stats hero */
.hero-stats {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #ede1e1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =============================================
   SECTIONS GÉNÉRIQUES
   ============================================= */
section {
  padding: 100px 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* =============================================
   PAGE HERO (sous-pages)
   ============================================= */
.page-hero {
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 4, 1, 0.50) 0%,
      rgba(8, 4, 1, 0.40) 100%
    ),
    url("../images/hero-bg.jpg") center 30% / cover no-repeat;
  padding: 120px 5% 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(232, 80, 10, 0.12) 0%,
    transparent 70%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero h1 span {
  color: var(--primary);
}
.page-hero p {
  font-size: 1rem;
  color: #cccccc;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--primary);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb-sep {
  color: #666;
}

/* =============================================
   SECTION ABOUT — photo de fond + overlay chaud
   ============================================= */
.about-section {
  background:
    linear-gradient(
      to bottom,
      rgba(10, 5, 1, 0.50) 0%,
      rgba(8, 4, 1, 0.60) 100%
    ),
    url("../images/hero-bg.jpg") center 50% / cover no-repeat;
  position: relative;
}

.about-grid {
  display: block; /* float layout : le texte enveloppe la photo */
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden; /* clearfix */
}

.about-img-wrapper {
  position: relative;
  width: fit-content;
  float: right; /* photo ancrée en haut à droite */
  margin: 0.5rem 0 2.5rem 3.5rem; /* haut droite bas gauche */
  margin-right: 15px;
}

.about-img-wrapper .img-placeholder {
  width: 260px;
  height: 260px;
  aspect-ratio: unset; /* annule le 3/4 portrait */
  background: linear-gradient(135deg, var(--bg-3), #f0e0d0);
  border-radius: 50%; /* cercle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 4px solid rgba(232, 80, 10, 0.28);
  box-shadow:
    0 0 0 10px rgba(232, 80, 10, 0.06),
    var(--shadow-lg);
  overflow: hidden;
}

/* Photo uploadée par l'admin → aussi en cercle */
.about-img-wrapper .img-placeholder img {
  border-radius: 50% !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -75px;
  left: -20px; /* badge en bas à gauche de la photo */
  right: auto;
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 30px rgba(232, 80, 10, 0.35);
}

.about-badge .number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge .text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

.about-content {
  padding: 0.5rem 0; /* texte colle en haut, à côté de la photo */
}

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-content h2 span {
  color: var(--primary);
}

.about-content p {
  /* fond sombre → texte clair WCAG AAA ≈ 13:1 */
  color: #ddd8d2;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  /* fond sombre about → texte clair */
  color: #ddd8d2;
  font-weight: 600;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(232, 80, 10, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.certif-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.certif-tag {
  /* adapté au fond sombre */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e8e4de;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* =============================================
   SERVICES (accueil)
   ============================================= */
.services-section {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(232, 80, 10, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 10px;
}

/* =============================================
   TÉMOIGNAGES — CARROUSEL
   ============================================= */
.testimonials-section {
  background: var(--bg);
}

.testimonials-carousel {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* sécurité pour les débordements de track */
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  box-shadow: var(--shadow);
  /* La largeur est fixée en px par JS (= largeur du viewport) */
  flex-shrink: 0;
  box-sizing: border-box;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  color: rgba(232, 80, 10, 0.12);
  font-family: Georgia, serif;
  line-height: 1;
}

.stars {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), #ff7340);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info .author-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.author-info span {
  font-size: 0.75rem;
  color: var(--gray);
}

/* Contrôles carrousel */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(232, 80, 10, 0.4);
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
  border-color: var(--primary);
}

/* =============================================
   PRESTATIONS
   ============================================= */
.prestations-section {
  background: var(--bg);
}

.prestation-block {
  max-width: 1100px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.prestation-block.reverse {
  direction: rtl;
}
.prestation-block.reverse > * {
  direction: ltr;
}

.prestation-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.prestation-content .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.prestation-content p {
  color: var(--text-2);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.prestation-list {
  margin: 1.5rem 0;
}

.prestation-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.prestation-list li:last-child {
  border-bottom: none;
}
.prestation-list .check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Galerie médias */
.media-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.media-item {
  aspect-ratio: 1;
  background: var(--bg-3);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
}

.media-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-item:hover img {
  transform: scale(1.05);
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--bg-3), #ece6de);
}

.media-placeholder .icon {
  font-size: 2rem;
  opacity: 0.5;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.media-item:hover .media-overlay {
  opacity: 1;
}

.play-btn {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

/* =============================================
   TARIFS
   ============================================= */
.tarifs-section {
  background: var(--bg);
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 5rem;
}

.tarif-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.tarif-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff, #fff8f5);
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(232, 80, 10, 0.15);
}

.tarif-card:hover:not(.featured) {
  border-color: rgba(232, 80, 10, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.tarif-header {
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.tarif-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tarif-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tarif-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tarif-price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
}
.period {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.tarif-features {
  margin-bottom: 2rem;
}

.tarif-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.tarif-features li:last-child {
  border-bottom: none;
}
.tarif-features .check {
  color: var(--primary);
  font-weight: 700;
}
.tarif-features .cross {
  color: #767676; /* ratio 4.5:1 sur blanc ✓ (était #c0bdb8 = 1.8:1 ❌) */
}

.tarif-card .btn-primary,
.tarif-card .btn-outline {
  width: 100%;
  text-align: center;
  display: block;
}

/* Bouton outline sur fond clair */
.tarif-card .btn-outline {
  color: var(--text);
  border-color: var(--border);
}

.tarif-card .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Table forfaits */
.forfaits-table-section {
  background: var(--bg-2);
  border-radius: var(--radius);
  max-width: 1100px;
  margin: 0 auto 3rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.forfaits-table-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* défilement fluide iOS */
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--bg-3);
  color: var(--gray);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 1rem 1.5rem;
  text-align: left;
  white-space: nowrap;
}

thead th:last-child {
  text-align: right;
}

tbody td {
  padding: 1rem 1.5rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

tbody td:last-child {
  text-align: right;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:hover {
  background: var(--bg);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* Noms de forfaits — fond clair donc texte sombre */
.forfait-name {
  color: var(--text);
  font-weight: 700;
}

/* Cellules secondaires (durée, inclus) */
.td-muted {
  color: var(--gray);
}

.sessions-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* FAQ */
.faq-section {
  background: var(--bg);
  padding-top: 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  font-family: var(--font-main);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-item-content p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Formulaire */
.contact-form-wrapper {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 80, 10, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-light);
}
select option {
  background: var(--bg-2);
  color: var(--text);
}
textarea {
  resize: vertical;
  min-height: 140px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 2px;
}

/* Validation des champs */
.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 5px;
  min-height: 1.1em;
  line-height: 1.3;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

input.is-valid,
textarea.is-valid,
select.is-valid {
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.08);
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 16px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.form-success h4 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* =============================================
   CTA SECTION — photo de fond + overlay orange chaud
   ============================================= */
.cta-section {
  background:
    linear-gradient(
      to bottom,
      rgba(10, 5, 1, 0.50) 0%,
      rgba(8, 4, 1, 0.60) 100%
    ),
    url("../images/hero-bg.jpg") center 40% / cover no-repeat;
  text-align: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(196, 64, 8, 0.3);
  border-bottom: 1px solid rgba(196, 64, 8, 0.3);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(232, 80, 10, 0.2) 0%,
    transparent 65%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content h2 span {
  color: var(--primary);
}
.cta-content p {
  /* #ddd8d2 → ratio ≈ 13:1 sur fond sombre ✓ WCAG AAA */
  color: #ddd8d2;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* =============================================
   FOOTER — photo + overlay chaud, lisibilité malvoyants
   ============================================= */
footer {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(12, 6, 2, 0.62) 0%,
      rgba(8, 4, 1, 0.72) 100%
    ),
    url("../images/hero-bg.jpg") center 65% / cover no-repeat;
  border-top: 3px solid var(--primary);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-brand .nav-logo {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-brand .nav-logo span {
  color: var(--primary);
}

.footer-brand p {
  /* #ddd8d2 sur fond ~#120a05 → ratio ≈ 13:1 ✓ WCAG AAA — lisible malvoyants */
  color: #ddd8d2;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-col {
  text-align: center;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-col ul a,
.footer-col ul .footer-link-btn {
  font-size: 0.88rem;
  /* #cdc8c2 sur fond photo sombre → ratio ≈ 10:1 ✓ WCAG AAA */
  color: #cdc8c2;
  transition: color var(--transition);
}

.footer-col ul a:hover,
.footer-col ul .footer-link-btn:hover {
  /* override dans le bloc "orange sur fonds sombres" ci-dessous */
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  /* #c8c2bb sur fond sombre → ratio ≈ 9:1 ✓ WCAG AAA */
  color: #c8c2bb;
}
.footer-bottom p span {
  /* override dans le bloc "orange sur fonds sombres" ci-dessous */
}

/* -------------------------------------------------------
   ORANGE SUR FONDS SOMBRES
   Sur fond sombre, l'orange accessible (#c44008) est trop
   peu lumineux — on utilise l'orange vif (#e8500a) qui
   atteint ≥4.5:1 sur #0d0d0d et ≥3:1 pour les grands titres.
   ------------------------------------------------------- */

/* Grands titres hero (≥40px bold = "large text" → 3:1 requis) */
.hero h1 span,
.page-hero h1 span,
.cta-content h2 span {
  color: var(--primary-bright);
} /* 5.38:1 sur #0d0d0d ✓ */

/* Badge héro (texte petit 12px = normal text → 4.5:1 requis) */
.hero-badge {
  color: var(--primary-bright);
} /* ~4.5:1 ✓ */

/* Lien breadcrumb sur fond sombre page-hero */
.breadcrumb a {
  color: var(--primary-bright);
} /* 5.38:1 ✓ */

/* Logo footer (18px bold = large text → 3:1) */
footer .nav-logo span {
  color: var(--primary-bright);
} /* 5.38:1 ✓ */

/* Hover liens footer sur fond sombre */
.footer-col ul a:hover {
  color: var(--primary-bright);
} /* 5.38:1 ✓ */
.footer-bottom p span {
  color: var(--primary-bright);
} /* 5.38:1 ✓ */

/* Footer social links (sombres) */
footer .social-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cccccc;
}

footer .social-link:hover {
  color: #ffffff;
}

/* Couleurs de marque au survol */
.social-instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  ) !important;
  border-color: transparent !important;
}
.social-facebook:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
}
.social-youtube:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
}
.social-tiktok:hover {
  background: #010101 !important;
  border-color: #010101 !important;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  /* Forfaits table — réduction marges latérales */
  .forfaits-table-section {
    margin: 0 0 2.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* about-grid : float supprimé, image centrée */
  .about-img-wrapper {
    float: none;
    margin: 0 auto 3.5rem; /* espace pour le badge repositionné */
  }

  /* Badge réduit et décalé vers le bas-droite du cercle */
  .about-badge {
    bottom: auto;
    top: auto;
    left: auto;
    right: -14px;
    bottom: -14px;
    padding: 11px 15px;
  }
  .about-badge .number {
    font-size: 1.5rem;
  }
  .about-badge .text {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
  }
  .prestation-block,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .prestation-block.reverse {
    direction: ltr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-col {
    text-align: left;
  }
  .footer-col ul {
    align-items: flex-start;
  }
  .tarif-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(247, 245, 242, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .burger {
    display: flex;
  }
  section {
    padding: 70px 5%;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-stats {
    gap: 2rem;
  }
  .media-gallery {
    grid-template-columns: 1fr;
  }
  .media-item.wide {
    grid-column: span 1;
  }
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  /* ── Forfaits table ≤ 768px ── */
  .forfaits-table-section h3 {
    font-size: 1.15rem;
    padding: 1.2rem 1.2rem 0.8rem;
  }
  thead th {
    font-size: 0.68rem;
    padding: 0.75rem 0.9rem;
    letter-spacing: 0.5px;
  }
  tbody td {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }
  .sessions-badge {
    padding: 2px 8px;
    font-size: 0.75rem;
  }
  /* Colonne "Inclus" masquée sur tablette pour gagner de la place */
  .td-inclus,
  thead th:nth-child(4) {
    display: none;
  }
  /* Carte tarif : réduction padding intérieur */
  .tarif-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col ul {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .footer-legal-nav {
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
  .tarifs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* ── Forfaits table ≤ 480px ── */
  .forfaits-table-section h3 {
    font-size: 1rem;
    padding: 1rem 0.85rem 0.65rem;
  }
  thead th {
    font-size: 0.63rem;
    padding: 0.6rem 0.65rem;
  }
  tbody td {
    padding: 0.6rem 0.65rem;
    font-size: 0.8rem;
  }
  /* Colonne "Durée" aussi masquée sur très petit écran */
  .td-muted:not(.td-inclus),
  thead th:nth-child(3) {
    display: none;
  }
  /* Carte tarif : padding minimal */
  .tarif-card {
    padding: 1.75rem 1.2rem;
  }
  .tarif-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Badge encore plus compact sur très petits écrans */
  .about-badge {
    right: -8px;
    bottom: -8px;
    padding: 8px 11px;
  }
  .about-badge .number {
    font-size: 1.2rem;
  }
  .about-badge .text {
    font-size: 0.58rem;
    letter-spacing: 0.5px;
  }
}

/* =============================================
   PAGES LÉGALES (mentions légales, confidentialité)
   ============================================= */
.legal-section {
  background: var(--bg);
  padding: 5rem 5% 6rem;
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
}

/* Table des matières */
.legal-toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.legal-toc-title {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.legal-toc ol {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.legal-toc ol a {
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.legal-toc ol a:hover { color: var(--primary); }

/* Blocs de contenu */
.legal-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.legal-block--last {
  border-bottom: none;
  padding-bottom: 0;
}
.legal-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.legal-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}
.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}
.legal-block p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a {
  color: var(--primary);
  text-decoration: underline;
}

/* Listes */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.legal-list li {
  color: var(--text-2);
  font-size: 0.92rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  line-height: 1.6;
}
.legal-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.75rem 0;
}
.legal-checklist li {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Tableau légal */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-table thead th {
  background: var(--bg-3);
  color: var(--gray);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
}
.legal-table tbody td {
  padding: 0.75rem 1rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--primary);
}

/* Grille droits RGPD */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.right-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.right-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.right-item strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.right-item p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0 !important;
}

/* Note / avertissement */
.legal-note {
  font-size: 0.82rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-top: 0.75rem !important;
}

/* Champs à compléter */
mark.legal-todo {
  background: #fef9c3;
  color: #854d0e;
  border-radius: 3px;
  padding: 1px 4px;
  font-style: italic;
}

/* Date mise à jour */
.legal-date {
  color: var(--gray) !important;
  font-size: 0.82rem !important;
  margin-top: 1.5rem !important;
}

/* Footer légal — lien-bouton (style lien) */
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: #cdc8c2;
  font-family: var(--font-main);
  transition: color var(--transition);
  text-align: left;
}
.footer-link-btn:hover { color: var(--primary-bright); }

/* Footer legal nav (bas de page) */
.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-legal-nav a,
.footer-legal-nav .footer-link-btn {
  font-size: 0.8rem;
  color: #c8c2bb;
  transition: color var(--transition);
}
.footer-legal-nav a:hover,
.footer-legal-nav .footer-link-btn:hover { color: var(--primary-bright); }
.footer-legal-nav span { color: rgba(255,255,255,0.3); }

/* =============================================
   BANDEAU COOKIE (RGPD)
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(14, 9, 4, 0.97);
  backdrop-filter: blur(6px);
  border-top: 3px solid var(--primary);
  padding: 1.25rem 5%;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 220px;
}
.cookie-text p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #d4cec8;
  margin: 0 0 0.3rem;
}
.cookie-text p strong { color: #fff; }
.cookie-text a {
  color: var(--primary-bright);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  font-family: var(--font-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.cookie-btn--accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-btn--accept:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.cookie-btn--refuse {
  background: transparent;
  color: #ddd8d2;
  border-color: rgba(255,255,255,0.25);
}
.cookie-btn--refuse:hover {
  border-color: #fff;
  color: #fff;
}
.cookie-btn--manage {
  color: #9e9790;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0.4rem 0;
  transition: color var(--transition);
}
.cookie-btn--manage:hover { color: var(--primary-bright); }

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn--accept,
  .cookie-btn--refuse {
    flex: 1;
    justify-content: center;
  }
  .legal-table { font-size: 0.78rem; }
  .legal-table thead th,
  .legal-table tbody td { padding: 0.55rem 0.65rem; }
  .rights-grid { grid-template-columns: 1fr; }
  .legal-toc { padding: 1.2rem; }
}

/* =============================================
   CALCULATEUR IMC
   ============================================= */
.imc-section {
  background: var(--bg-3);
  padding: 6rem 2rem;
}

.imc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

/* ---- Colonne formulaire ---- */
.imc-form-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.imc-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.imc-field label,
.imc-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.imc-unit {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
  font-size: 0.8rem;
}

.imc-input-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.imc-input-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  height: 4px;
  cursor: pointer;
}

.imc-input-row input[type="number"] {
  width: 70px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-3);
  text-align: center;
  -moz-appearance: textfield;
}

.imc-input-row input[type="number"]::-webkit-inner-spin-button,
.imc-input-row input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

.imc-gender-row {
  display: flex;
  gap: 0.8rem;
}

.imc-gender-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-3);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}

.imc-gender-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.imc-gender-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.imc-calc-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
  font-size: 1rem;
  padding: 0.9rem;
}

/* ---- Colonne résultat ---- */
.imc-result-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

/* Ring SVG */
.imc-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.imc-score-ring svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.imc-ring-bg {
  fill: none;
  stroke: var(--bg-3);
  stroke-width: 10;
}

.imc-ring-fill {
  fill: none;
  stroke: #22c55e;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 157; /* 50% par défaut */
  transition:
    stroke-dashoffset 0.8s ease,
    stroke 0.5s ease;
}

.imc-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.imc-score-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.imc-score-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

/* Badge catégorie */
.imc-badge {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  background: #e7fbe9;
  color: #166534;
}

/* Jauge colorée */
.imc-gauge {
  width: 100%;
}

.imc-gauge-bar {
  position: relative;
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: visible;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.imc-gauge-zone {
  height: 100%;
}
/* Proportions des zones (IMC 15→45 = 30 pts)
   z1: 15→18.5 = 3.5  → 11.7%
   z2: 18.5→25 = 6.5  → 21.7%
   z3: 25→30  = 5     → 16.7%
   z4: 30→35  = 5     → 16.7%
   z5: 35→45  = 10    → 33.3%
*/
.imc-z1 {
  flex: 3.5;
  background: #60a5fa;
  border-radius: 7px 0 0 7px;
}
.imc-z2 {
  flex: 6.5;
  background: #22c55e;
}
.imc-z3 {
  flex: 5;
  background: #facc15;
}
.imc-z4 {
  flex: 5;
  background: #f97316;
}
.imc-z5 {
  flex: 10;
  background: #ef4444;
  border-radius: 0 7px 7px 0;
}

.imc-gauge-cursor {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.imc-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 4px;
}

/* Message personnalisé */
.imc-message {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 340px;
}

.imc-cta-btn {
  margin-top: 0.2rem;
  padding: 0.75rem 2rem;
}

/* Légende */
.imc-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  color: var(--gray);
  text-align: left;
  width: 100%;
}

.imc-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.imc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.imc-z1-dot {
  background: #60a5fa;
}
.imc-z2-dot {
  background: #22c55e;
}
.imc-z3-dot {
  background: #facc15;
}
.imc-z4-dot {
  background: #f97316;
}
.imc-z5-dot {
  background: #ef4444;
}

/* Disclaimer */
.imc-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-light);
  line-height: 1.5;
  max-width: 340px;
}

/* Responsive IMC */
@media (max-width: 768px) {
  .imc-wrapper {
    grid-template-columns: 1fr;
  }
  .imc-result-col {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .imc-section {
    padding: 4rem 1rem;
  }
  .imc-form-col {
    padding: 1.5rem 1.2rem;
  }
  .imc-legend {
    grid-template-columns: 1fr;
  }
}
