/* ============================================================
 * NATUROFORLIFE - Design System (refonte 2026)
 * Mobile-first, palette dynamique via CSS variables.
 * Les variables --c-* sont injectees en <style> par header.php
 * depuis includes/colors.php (source unique).
 * ============================================================ */

/* ============ Tokens ============ */
:root {
  --color-bg:           var(--c-soft, #f7f5ef);
  --color-surface:      #ffffff;
  --color-text:         #2d2a26;
  --color-text-muted:   #6b6660;
  --color-text-on-dark: #f7f5ef;
  --color-border:       rgba(0,0,0,.08);

  --color-primary:      var(--c-green, #3e8e41);
  --color-primary-hover:#34773a;
  --color-accent:       var(--c-orange, #f07a22);
  --color-accent-hover: #d96612;

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 5rem;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.12);

  --fs-base:  clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-small: clamp(.85rem, .8rem + .15vw, .95rem);
  --fs-h1:    clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  --fs-h2:    clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  --fs-h3:    clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --fs-lead:  clamp(1.05rem, .95rem + .5vw, 1.25rem);

  --container-max: 1200px;
  --section-py: clamp(3rem, 6vw, 5rem);
  --section-px: clamp(1rem, 4vw, 4rem);

  --header-h: 80px;

  --t-fast: .15s ease;
  --t: .25s ease;
}

/* ============ Reset doux ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-h);
}
img, video, iframe, svg { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-4); }
small { font-size: var(--fs-small); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.header-container {
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
}
.logo img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}
.main-menu {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.main-menu a {
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
}
.main-menu a:hover, .main-menu a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.admin-link {
  background: var(--color-accent);
  color: white !important;
  padding: var(--s-2) var(--s-3) !important;
  border-radius: var(--radius-pill);
  border-bottom: none !important;
}
.admin-link:hover { background: var(--color-accent-hover); }

.client-link {
  background: var(--color-primary);
  color: white !important;
  padding: var(--s-2) var(--s-4) !important;
  border-radius: var(--radius-pill);
  border-bottom: none !important;
  font-weight: 600;
}
.client-link:hover { background: var(--color-primary-hover); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--s-2);
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-menu {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: var(--s-5);
    gap: var(--s-3);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--t);
  }
  .main-menu.open { transform: translateY(0); }
  .main-menu a { padding: var(--s-3) 0; width: 100%; border-bottom: 1px solid var(--color-border); }
}

/* ============ Footer ============ */
.site-footer {
  margin-top: auto;
  background: #2d241f;
  color: var(--color-text-on-dark);
  padding: var(--s-7) var(--section-px);
  text-align: center;
}
.footer-container { max-width: var(--container-max); margin: 0 auto; }
.footer-copy { margin: 0 0 var(--s-2); font-size: var(--fs-small); }
.footer-sep { opacity: .4; margin: 0 .5em; }
.footer-tag { margin: 0; font-size: .85rem; opacity: .75; font-style: italic; }

/* ============ Section base ============ */
section { padding: var(--section-py) var(--section-px); }
.section-container { max-width: var(--container-max); margin: 0 auto; }

.section-light  { background: var(--c-light, #fff); }
.section-soft   { background: var(--c-soft,  #f7f5ef); }
.section-dark   { background: var(--c-dark,  #222); color: var(--color-text-on-dark); }
.section-green  { background: var(--c-green, #3e8e41); color: var(--color-text-on-dark); }
.section-green-light { background: var(--c-green-light, #7bc47f); }
.section-blue   { background: var(--c-blue,  #2f6da3); color: var(--color-text-on-dark); }
.section-blue-light { background: var(--c-blue-light, #6fa9dc); }
.section-yellow { background: var(--c-yellow, #e8b92e); }
.section-yellow-light { background: var(--c-yellow-light, #f4d979); }
.section-orange { background: var(--c-orange, #f07a22); color: var(--color-text-on-dark); }
.section-orange-light { background: var(--c-orange-light, #f9a766); }
.section-pink   { background: var(--c-pink,  #d96c9d); color: var(--color-text-on-dark); }
.section-pink-light { background: var(--c-pink-light, #f6b7cf); }
.section-red    { background: var(--c-red,   #c94b4b); color: var(--color-text-on-dark); }
.section-red-light { background: var(--c-red-light, #f29a9a); }
.section-brown  { background: var(--c-brown, #8b5e3c); color: var(--color-text-on-dark); }
.section-brown-light { background: var(--c-brown-light, #c8a27a); }
.section-gray   { background: var(--c-gray,  #7a7a7a); color: var(--color-text-on-dark); }
.section-gray-light { background: var(--c-gray-light, #d9d9d9); }

.section-dark, .section-green, .section-blue, .section-orange,
.section-pink, .section-red, .section-brown, .section-gray {
  --color-text: var(--color-text-on-dark);
  --color-text-muted: rgba(255,255,255,.75);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-green h1, .section-green h2, .section-green h3,
.section-blue h1, .section-blue h2, .section-blue h3,
.section-orange h1, .section-orange h2, .section-orange h3,
.section-pink h1, .section-pink h2, .section-pink h3,
.section-red h1, .section-red h2, .section-red h3,
.section-brown h1, .section-brown h2, .section-brown h3,
.section-gray h1, .section-gray h2, .section-gray h3 {
  color: var(--color-text-on-dark);
}

/* ============ Boutons unifies ============ */
.btn, .btn-primary, .btn-secondary,
.cta-button, .consultation-select,
.mode-btn, .slot-btn, .day-btn, .booking-back,
#consultation-form button[type="submit"],
#pay-btn, #consultation-btn-continuer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  background: var(--color-primary);
  color: #fff;
}
.btn:hover, .btn-primary:hover, .cta-button:hover,
.consultation-select:hover, #consultation-form button[type="submit"]:hover,
#pay-btn:hover, #consultation-btn-continuer:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary, .booking-back,
.mode-btn, .slot-btn, .day-btn {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover, .booking-back:hover,
.mode-btn:hover, .slot-btn:hover, .day-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.mode-btn.active, .slot-btn.active, .day-btn.active {
  background: var(--color-primary);
  color: #fff;
}
.booking-back { padding: var(--s-2) var(--s-4); font-size: var(--fs-small); }

.section-dark .btn-primary, .section-green .btn-primary,
.section-orange .btn-primary, .section-blue .btn-primary {
  background: white;
  color: var(--color-primary);
}
.section-dark .btn-secondary, .section-green .btn-secondary,
.section-orange .btn-secondary, .section-blue .btn-secondary {
  border-color: white;
  color: white;
}
.section-dark .btn-secondary:hover, .section-green .btn-secondary:hover {
  background: white;
  color: var(--color-primary);
}

/* ============ Cards ============ */
.card,
.cards-section .card,
.consultation-card,
.review-card > div,
.list-section .list-item,
.booking-card,
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cards-section .card:hover,
.consultation-card:hover,
.list-section .list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============ Media frame ============ */
.media-frame,
.hero-image img,
.image-text-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
video, iframe {
  border-radius: var(--radius-lg);
}
.video-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#heroVideo, .hero-video {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============ Inputs ============ */
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="date"], input[type="number"],
textarea, select {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: white;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
textarea { resize: vertical; min-height: 100px; }
label { display: block; font-size: var(--fs-small); margin-bottom: var(--s-2); color: var(--color-text-muted); }

/* ============ Hero ============ */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.hero-container.hero-reverse {
  grid-template-areas: "image text";
}
.hero-container.hero-reverse .hero-text { grid-area: text; }
.hero-container.hero-reverse .hero-image { grid-area: image; }
.hero-text { max-width: 600px; }
.hero-text h1 { font-size: var(--fs-h1); margin-bottom: var(--s-4); }
.hero-subtitle {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--s-4);
}
.hero-description {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin-bottom: var(--s-5);
  line-height: 1.7;
}
.hero-text .btn, .hero-text .btn-primary { margin-top: var(--s-2); }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img,
.hero-image video {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 860px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-container.hero-reverse { grid-template-areas: none; }
  .hero-text { max-width: none; margin: 0 auto; }
}

/* ============ Section titles centres ============
   Note : le <h2> est enfant de .section-container (cree par sectionStart),
   pas de la section directement. On cible donc avec descendant. */
.cards-section h2,
.faq-section h2,
.list-section h2,
.reviews-section h2,
.video-section h2,
.cta-section h2 {
  text-align: center;
  margin-bottom: var(--s-6);
}

/* ============ Cards section ============ */
.cards-section .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
  align-items: stretch;
}
.cards-section .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: var(--card-bg, var(--color-surface));
  color: var(--card-text, inherit);
}
.cards-section .card h3 { color: var(--color-primary); margin-bottom: var(--s-2); }
.cards-section .card p { color: inherit; margin-bottom: 0; }
.cards-section .card-link {
  display: inline-block;
  margin-top: var(--s-4);
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--fs-small);
  align-self: center;
}
.cards-section .card-link::after { content: " →"; transition: transform var(--t-fast); display: inline-block; }
.cards-section .card-link:hover::after { transform: translateX(4px); }

/* ============ Image+Text ============ */
.image-text-section .image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.image-text-section .image-text.image-text-reverse {
  grid-template-areas: "text image";
}
.image-text-section .image-text.image-text-reverse .image-text-img { grid-area: image; }
.image-text-section .image-text.image-text-reverse .image-text-text { grid-area: text; }
.image-text-section .image-text-img img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.image-text-section .image-text-text h2 { margin-bottom: var(--s-4); }
.image-text-section .text-content {
  font-size: var(--fs-base);
  line-height: 1.75;
  color: inherit;
}
@media (max-width: 860px) {
  .image-text-section .image-text { grid-template-columns: 1fr; }
  .image-text-section .image-text.image-text-reverse { grid-template-areas: none; }
}

/* ============ FAQ ============ */
.faq-section .faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item { padding: 0; overflow: hidden; }
.faq-question {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  font-size: var(--fs-base);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--t);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--s-5);
  transition: max-height var(--t), padding var(--t);
  color: var(--color-text-muted);
}
.faq-item.open .faq-answer { max-height: 800px; padding: 0 var(--s-5) var(--s-4); }

/* ============ List ============ */
.list-section .list { display: flex; flex-direction: column; gap: var(--s-3); max-width: 720px; margin: 0 auto; }
.list-section .list-item {
  background: var(--color-surface);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  position: relative;
  padding-left: var(--s-7);
}
.list-section .list-item::before {
  content: "🌿";
  position: absolute;
  left: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
}

/* ============ Video section ============ */
.video-section { text-align: center; }
.video-section h2 { margin-bottom: var(--s-5); }
.video-section .video-container { margin: 0 auto var(--s-5); max-width: 880px; }
.video-section .btn-primary { margin-top: var(--s-3); }

/* ============ CTA ============ */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: var(--s-3); }
.cta-section p { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-button { margin-top: var(--s-4); }

/* ============ Reviews ============ */
.reviews-section { text-align: center; }
.reviews-section h2 { margin-bottom: var(--s-3); }
.reviews-counter {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--s-5);
}
.reviews-carousel {
  overflow: hidden;
  padding: var(--s-4) 0;
}
.reviews-track {
  display: flex;
  gap: var(--s-5);
  transition: transform .6s ease;
  align-items: stretch;
}
.reviews-track .review-card {
  flex: 0 0 calc((100% - 2 * var(--s-5)) / 3);  /* 3 cards visibles */
}
@media (max-width: 900px) {
  .reviews-track .review-card { flex: 0 0 calc((100% - var(--s-5)) / 2); }  /* 2 sur tablet */
}
@media (max-width: 600px) {
  .reviews-track .review-card { flex: 0 0 100%; }  /* 1 sur mobile */
}
.review-card { display: flex; }
.review-card > div {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.review-text { font-style: italic; color: var(--color-text-muted); margin-bottom: var(--s-3); flex: 1; }
.review-author { font-weight: 600; color: var(--color-text); text-align: center; }
.review-rating { color: #f5b301; font-size: 1.05em; margin-top: var(--s-2); letter-spacing: 2px; text-align: center; }

/* ============ Consultation / Booking ============ */
.booking-progress {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.booking-step {
  padding: var(--s-2) var(--s-4);
  background: rgba(0,0,0,.04);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.booking-step.active { background: var(--color-primary); color: white; }

.booking-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-6);
  align-items: start;
}
@media (max-width: 860px) { .booking-layout { grid-template-columns: 1fr; } }

.booking-summary { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.booking-card { padding: var(--s-5); }
.booking-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: var(--s-3); color: var(--color-primary); }
.booking-row { display: flex; justify-content: space-between; padding: var(--s-2) 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-small); }
.booking-row:last-child { border-bottom: 0; }
.booking-label { color: var(--color-text-muted); }
.booking-value { font-weight: 600; }
.booking-placeholder { color: var(--color-text-muted); font-style: italic; padding: var(--s-3) 0; }

.services-carousel { position: relative; margin-bottom: var(--s-5); }
.services-viewport { overflow: hidden; }
.consultation-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.consultation-card {
  padding: var(--s-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.consultation-card h3 { margin: 0; font-size: var(--fs-h3); color: var(--color-primary); }
.consultation-card p { margin: 0; color: var(--color-text-muted); font-size: var(--fs-small); }
.consultation-card .consultation-select { margin-top: auto; }

.consultation-modes {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.booking-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.day-btn {
  padding: var(--s-3) var(--s-1);
  font-size: var(--fs-small);
  text-align: center;
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--s-2);
}

#consultation-form { display: flex; flex-direction: column; gap: var(--s-3); }
#consultation-form p { margin: 0; }

.price-estimate {
  background: var(--c-soft, #f7f5ef);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  margin-top: var(--s-3);
}
.price-estimate hr { margin: var(--s-3) 0; border: 0; border-top: 1px solid var(--color-border); }
.price-estimate p { margin: var(--s-1) 0; }

#payment-info {
  background: var(--c-soft, #f7f5ef);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
}

/* ============ Formations (public) ============ */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.formation-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--s-5);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.formation-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08)); }
.formation-card h2 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--color-primary); }
.formation-desc { color: var(--color-text-muted); flex: 1; font-size: .95rem; }
.formation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--color-border);
  font-size: .9rem;
  color: var(--color-text-muted);
}
.formation-price { font-weight: 600; color: var(--color-primary); }
.formation-detail-desc {
  background: var(--c-soft);
  border-radius: var(--radius-md);
  padding: var(--s-4);
  margin: var(--s-4) 0;
  line-height: 1.7;
}
.formation-lecons-list {
  list-style: none;
  counter-reset: lecon;
  padding: 0;
  margin: var(--s-3) 0 0;
}
.formation-lecons-list li {
  counter-increment: lecon;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, .5rem);
  margin-bottom: .5rem;
}
.formation-lecons-list li::before {
  content: counter(lecon);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.formation-lecons-list .lecon-title { flex: 1; }
.formation-lecons-list .lecon-meta { color: var(--color-text-muted); font-size: .85rem; }

/* ============ Page generique ============ */
.page-title { text-align: center; margin: var(--s-7) 0 var(--s-5); color: var(--color-primary); }

/* ============ Espace client ============ */
.client-page {
  max-width: 380px;
  margin: var(--s-6) auto;
  padding: var(--s-5);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.client-page h1 { font-size: 1.75rem; margin-bottom: var(--s-2); }
.client-page h1 { text-align: center; color: var(--color-primary); }
.client-page form { display: flex; flex-direction: column; gap: var(--s-3); }
.client-page .actions { margin-top: var(--s-4); display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.client-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: var(--s-3); border-radius: var(--radius-md); margin-bottom: var(--s-3); }
.client-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; padding: var(--s-3); border-radius: var(--radius-md); margin-bottom: var(--s-3); }

.appointments-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: var(--s-5);
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.appointments-table th, .appointments-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.appointments-table th {
  background: var(--c-soft, #f7f5ef);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.appointments-table tr:last-child td { border-bottom: 0; }
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 600;
}
.status-confirmed, .status-completed { background: #dcfce7; color: #166534; }
.status-pending_payment, .status-pending_validation { background: #fef3c7; color: #92400e; }
.status-cancelled, .status-expired { background: #f3f4f6; color: #6b7280; }
