:root {
  --primary: #9e4325;
  --primary-hover: #7f3219;
  --accent: #dcae82;
  --bg-main: #fcfaf7;
  --bg-card: #ffffff;
  --text-dark: #221f1e;
  --text-muted: #6b6460;
  --border-color: #eae3db;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-subtle: 0 10px 30px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 40px rgba(158, 67, 37, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  background-color: var(--bg-main);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.7;
}

/* En-tête fixe du site public. Le sélecteur est volontairement limité à
   `.site-header` : la règle portait auparavant sur toutes les balises
   `<header>` (y compris celle des pages légales et celles des cartes de
   l'administration), qui se retrouvaient collées en haut de l'écran. */
header.site-header {
  position: fixed; top: 0; width: 100%;
  background: rgba(252, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2rem;
}

.logo { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 2.2rem; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; }

/* HERO / EN-TÊTE */
.hero-wrapper {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(252, 250, 247, 0.6) 0%, rgba(252, 250, 247, 0.85) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem 5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle { text-transform: uppercase; letter-spacing: 3px; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 1rem; }
.hero h1 { font-family: var(--font-serif); font-size: 3.8rem; line-height: 1.15; margin-bottom: 1.5rem; }

/* LE CONTENU RECOUVRE L'ENTÊTE AVEC TRANSLUCIDITÉ CONFIGURABLE */
.main-content {
  position: relative;
  z-index: 10;
  background-color: rgba(252, 250, 247, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 -15px 30px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease;
}

section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.8rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* Tarifs */
.pricing-card { background: rgba(243, 236, 228, 0.9); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--accent); margin-bottom: 3rem; text-align: center; }
.pricing-table { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.pricing-item { background: white; padding: 0.8rem 1.4rem; border-radius: var(--radius-md); box-shadow: var(--shadow-subtle); }

/* Carte Stage */
.card-stage {
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-subtle);
  display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s ease;
}
.card-stage:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.stage-img-container { height: 180px; width: 100%; overflow: hidden; background: #eee; }
.stage-img-container img { width: 100%; height: 100%; object-fit: cover; }
.stage-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.8rem; }
.badge-available { background: #e8f5e9; color: #2e7d32; }
.badge-full { background: #ffebee; color: #c62828; }
.badge-special { background: #fff3e0; color: #ef6c00; }

.stage-title { font-family: var(--font-serif); font-size: 1.7rem; margin-bottom: 0.4rem; }
.stage-date { color: var(--primary); font-weight: 600; margin-bottom: 0.8rem; font-size: 0.95rem; }
.stage-description { color: var(--text-muted); font-size: 0.95rem; }
.stage-footer { margin-top: 1.5rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.stage-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 0.8rem; }
.grid-message { color: var(--text-muted); grid-column: 1 / -1; text-align: center; }

/* Boutons */
.btn {
  display: inline-block; background: var(--primary); color: white; padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md); text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: all 0.25s ease; width: 100%; text-align: center;
}
.btn:hover { background: var(--primary-hover); }
.btn-secondary { background: #eae3db; color: var(--text-dark); }

/* Modales & Lightbox */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(20, 15, 12, 0.7); backdrop-filter: blur(6px); z-index: 2000;
  justify-content: center; align-items: center;
}
.modal-card { background: white; border-radius: var(--radius-lg); padding: 2.5rem; width: 90%; max-width: 550px; max-height: 90vh; overflow-y: auto; }

/* Lightbox Galerie */
.lightbox-card { background: transparent; max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox-card img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.lightbox-caption { color: white; font-family: var(--font-serif); font-size: 1.5rem; margin-top: 1rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: inherit; font-size: 0.95rem; }

/* ===== Écran d'administration : personnalisation du site =====
   (n'affecte pas le site public : ces classes ne sont utilisées que dans
   admin.html) */
.cms-group {
  background: #faf7f4;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.cms-group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.cms-group > summary::-webkit-details-marker { display: none; }
.cms-group > summary::after {
  content: '▾';
  color: var(--primary);
  transition: transform 0.2s ease;
}
.cms-group[open] > summary::after { transform: rotate(180deg); }
.cms-group > summary small { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }
.cms-group > summary:hover { background: #f4efe9; }
.cms-group-body { padding: 0.2rem 1.2rem 1.4rem; border-top: 1px solid var(--border-color); background: #fffdfb; }
.cms-group-help { font-size: 0.85rem; color: var(--text-muted); margin: 0.9rem 0 0; }
.cms-fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.4rem 1.4rem; }
.cms-field { margin-top: 0.9rem; }
.cms-field-wide { grid-column: 1 / -1; }
.cms-field-help { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.35rem; }
.cms-field-help code { background: #f1ece5; padding: 0 0.25rem; border-radius: 4px; }

.cms-order-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: #fffdfb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.cms-order-index {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #5a3a20;
  font-size: 0.8rem;
  font-weight: 600;
}
.cms-order-label { flex: 1; min-width: 160px; }
.cms-order-label-hidden { color: var(--text-muted); text-decoration: line-through; }
.cms-order-toggle { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.cms-order-toggle input { width: auto; }

/* Éditeur des réductions (une ligne par palier) */
.cms-tier-row { flex-wrap: wrap; gap: 0.5rem; }
.cms-tier-text { font-size: 0.9rem; color: var(--text-muted); }
.cms-tier-input { width: 5.5rem; flex: 0 0 auto; padding: 0.45rem 0.6rem; }
.cms-tier-remove { width: auto; padding: 0.25rem 0.7rem; font-size: 0.9rem; }

/* Étiquette indiquant si un stage est réellement affiché sur le site */
.stage-visibility { font-size: 0.78rem; font-weight: 600; }
.stage-visible { color: #2e7d32; }
.stage-hidden { color: #b3261e; }

/* Statut d'une inscription archivée : lecture seule (historique figé) */
.status-readonly strong { font-size: 0.92rem; }
tr.reg-archivee { background: #fbf9f6; }

/* Ligne d'un stage dans l'administration : informations à gauche, boutons à
   droite. Les boutons ont tous la même largeur et restent côte à côte. */
.workshop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
.workshop-info { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 260px; min-width: 240px; }
.stage-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 0.5rem;
  flex: 1 1 220px;
  max-width: 420px;
  align-items: center;
}
.stage-actions .btn { width: 100%; padding: 0.45rem 0.6rem; font-size: 0.85rem; }
.cms-order-actions { display: flex; gap: 0.4rem; }
.cms-order-actions .btn { width: auto; padding: 0.25rem 0.7rem; font-size: 0.9rem; }
.cms-order-actions .btn[disabled] { opacity: 0.35; cursor: default; }

/* Fenêtre ouverte : on empêche le défilement de la page en arrière-plan. */
body.modal-open { overflow: hidden; }

/* Bouton de fermeture de l'agrandissement d'image. */
.lightbox-close { position: absolute; top: 0.5rem; right: 0.65rem; background: rgba(0, 0, 0, 0.45); color: white; border: none; border-radius: 50%; width: 2.2rem; height: 2.2rem; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(0, 0, 0, 0.7); }
.lightbox-card { position: relative; }

/* Vignettes de galerie activables au clavier. */
.gallery-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Champ piège anti-robot : hors écran (donc invisible) mais présent dans le
   formulaire. Il ne doit jamais être affiché, même au focus. */
.form-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Galerie Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 260px; cursor: pointer; box-shadow: var(--shadow-subtle); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 0.8rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; font-family: var(--font-serif); font-size: 1.1rem; }

/* Notifications Toast */
#toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 4000; display: flex; flex-direction: column; gap: 0.8rem; max-width: 350px; }
.toast {
  background: white; color: var(--text-dark, #2b2320); padding: 1rem 1.2rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-left: 4px solid var(--primary); font-size: 0.9rem; animation: toast-in 0.25s ease;
}
.toast-success { border-left-color: #2e7d32; }
.toast-error { border-left-color: #c62828; }
.toast-info { border-left-color: #0288d1; }
.toast-close { background: none; border: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }


/* ===== Section « L'activité » (blocs descriptifs paramétrables) ===== */
.activity-section { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
#activity-blocks { display: flex; flex-direction: column; gap: 2.5rem; }
.activity-block {
  display: grid; grid-template-columns: 320px 1fr; gap: 2rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-subtle);
}
.activity-block-reverse { direction: rtl; }
.activity-block-reverse > * { direction: ltr; }
.activity-image { overflow: hidden; border-radius: var(--radius-md); }
.activity-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.activity-body h3 { font-family: var(--font-serif); font-size: 1.7rem; color: var(--primary); margin-bottom: 0.8rem; }
.activity-body p { color: var(--text-muted); font-size: 1rem; }

@media (max-width: 860px) {
  .activity-block, .activity-block-reverse { grid-template-columns: 1fr; direction: ltr; }
  .activity-image img { height: 180px; }
}

/* ===== Section Avis clients (défilement automatique droite -> gauche) ===== */
.reviews-section { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

/* Fenêtre visible : le contenu est masqué au-delà, le mouvement est assuré
   par la piste (.reviews-track) décalée en continu en JavaScript. */
.reviews-strip {
  position: relative;
  overflow: hidden;
  padding: 0.8rem 0.4rem 1.6rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  /* Le bandeau peut être déplacé à la souris : on indique la prise. */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
/* Pendant un glissement manuel. */
.reviews-strip-glissement { cursor: grabbing; }
/* Sans animation (préférence « animations réduites ») : le bandeau défile
   horizontalement à la main, pour que tous les avis restent consultables. */
.reviews-strip-defilable { overflow-x: auto; cursor: grab; }

.reviews-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Chaque jeu de cartes inclut son espacement de fin : la boucle du
   défilement retombe donc exactement sur le jeu suivant (aucun saut). */
.reviews-set { display: flex; gap: 1.5rem; padding-right: 1.5rem; flex: none; }

.review-card {
  flex: 0 0 340px; max-width: 85vw;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: var(--shadow-subtle);
}
.review-stars { color: #e2a30b; font-size: 1.25rem; letter-spacing: 2px; }
.review-text { color: var(--text-dark); font-size: 0.98rem; font-style: italic; flex-grow: 1; }
.review-author { font-weight: 700; color: var(--primary); font-family: var(--font-serif); font-size: 1.1rem; }
.review-workshop { color: var(--text-muted); font-size: 0.85rem; }

/* Si le visiteur refuse les animations, on revient à un défilement manuel. */
@media (prefers-reduced-motion: reduce) {
  .reviews-strip {
    display: flex; gap: 1.5rem; overflow-x: auto;
    -webkit-mask-image: none; mask-image: none;
  }
  .reviews-track { display: contents; }
}

/* ===== Signature écrite au pinceau (bas de page) =====
   La section est une « piste » de défilement : la main reste épinglée au
   centre de l'écran (position: sticky) pendant que l'on descend, et le tracé
   se révèle au fil du défilement.

   ► POUR RENDRE L'ÉCRITURE PLUS LENTE : augmentez min-height ci-dessous
     (ex. 300vh = plus lent, 150vh = plus rapide).
   ► POUR LA DÉMARRER PLUS TÔT/PLUS TARD : ajustez le « top » de
     .signature-sticky (ex. 40vh = plus tard, 15vh = plus tôt).           */
.signature-section {
  position: relative;
  min-height: 220vh;   /* longueur de la piste de défilement (vitesse) */
  padding: 0 2rem;
  text-align: center;
}

.signature-sticky {
  position: sticky;
  top: 24vh;           /* la main se place à ~1/4 de la hauteur de l'écran */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 2rem;
}

.signature-svg {
  width: min(720px, 94%);
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

/* Le trait de la signature : révélé par stroke-dashoffset, donc écrit au trait.
   L'épaisseur n'est PAS fixée ici : elle est portée par le groupe, afin que
   tous les traits héritent de la même valeur (réglable depuis l'admin). */
.signature-ink {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Épaisseur par défaut + ombre portée, sur les groupes de traits
   (site public et aperçu de l'administration). */
#signature-ink-group, #sig-preview-ink-group { stroke-width: 7; }
#signature-ink-group { filter: drop-shadow(0 2px 3px rgba(158, 67, 37, 0.22)); }

/* Main + pinceau (illustration : public/img/hand-pinceau.svg) */
.signature-hand { transition: opacity 0.3s ease; }
.signature-hand-image { pointer-events: none; }
.signature-hand .brush-bristles { fill: #3f2a1b; }
.signature-hand .brush-bristles-tip { fill: #9e4325; }
.signature-hand .brush-ferrule { fill: url(#brush-metal); }
.signature-hand .brush-handle { fill: url(#brush-wood); }

.signature-caption {
  margin-top: 0.4rem;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Mention de copyright, tout en bas de la page (très discret). */
.site-footer {
  padding: 0 2rem 1.6rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.5rem; }
.footer-links a, .form-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover, .form-note a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  .signature-section { min-height: auto; padding: 2rem; }
  .signature-sticky { position: static; }
  .signature-hand { display: none; }
}

/* ===== Bouton menu (mobile) : caché sur grand écran ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 8px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Les trois lignes se transforment en croix à l'ouverture */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Adaptations mobiles & tablettes ===== */
@media (max-width: 1080px) {
  .nav-links { gap: 1.3rem; }
  .logo { font-size: 1.55rem; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 6rem; }

  /* Le titre reste à gauche, le bouton menu à droite : comme sur grand écran. */
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    position: relative;
  }
  .logo { font-size: 1.35rem; line-height: 1.2; white-space: nowrap; }
  .nav-toggle { display: flex; }

  /* Menu ouvert : la page en arrière-plan ne défile plus. */
  body.nav-open { overflow: hidden; }

  /* Les liens se replient dans un menu déroulant sous l'en-tête.
     Le menu ne dépasse jamais la hauteur de l'écran : sur un téléphone en mode
     paysage (écran peu haut), il devient défilable, et la grille à deux
     colonnes ci-dessous permet le plus souvent de tout afficher d'un coup. */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0.4rem 0;
    background: rgba(252, 250, 247, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 3.6rem);
    max-height: calc(100dvh - 3.6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 1.4rem;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  .nav-links li:last-child a { border-bottom: none; }

  .hero { padding: 5.5rem 1.2rem 3rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.75rem; letter-spacing: 2px; }

  section { padding: 3rem 1.2rem; }
  .section-header { margin-bottom: 2.2rem; }
  .section-header h2 { font-size: 2rem; }
  #apropos h2 { font-size: 2.1rem !important; }

  .activity-block, .activity-block-reverse { padding: 1.2rem; gap: 1.2rem; }
  .review-card { flex: 0 0 280px; padding: 1.3rem; }
  .signature-section { min-height: 195vh; padding: 0 1rem; }
  .signature-sticky { top: 22vh; }
}

/* ===== Téléphone en mode paysage : écran large mais peu haut =====
   Le menu passe sur deux colonnes pour que TOUS les liens restent visibles,
   et la page garde des marges adaptées à la faible hauteur. */
@media (max-width: 960px) and (max-height: 520px) {
  html { scroll-padding-top: 4.4rem; }

  nav { padding: 0.5rem 1rem; }
  .logo { font-size: 1.2rem; }
  .nav-toggle { width: 42px; height: 34px; }

  .nav-links { max-height: calc(100vh - 3.2rem); max-height: calc(100dvh - 3.2rem); }
  .nav-links.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0.3rem 0.6rem;
  }
  .nav-links li { width: auto; }
  .nav-links a {
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
    border-bottom: none;
  }
  /* Le lien vers l'administration occupe toute la largeur, en retrait. */
  .nav-links li.nav-admin { grid-column: 1 / -1; border-top: 1px solid rgba(0, 0, 0, 0.06); }
  .nav-links li.nav-admin a { text-align: center; }

  .hero { padding: 4.2rem 1.2rem 2rem; min-height: 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.95rem; }
  .hero-subtitle { margin-bottom: 0.4rem; }

  section { padding: 2.2rem 1.2rem; }
  .section-header { margin-bottom: 1.6rem; }
  .section-header h2 { font-size: 1.7rem; }
  #apropos h2 { font-size: 1.8rem !important; }

  .signature-section { min-height: 150vh; }
  .signature-sticky { top: 12vh; }
  .signature-caption { font-size: 0.72rem; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 6rem; }

  .logo { font-size: 1.15rem; }
  .nav-links a { font-size: 0.94rem; padding: 0.75rem 1.2rem; }
  .nav-toggle { width: 40px; height: 36px; }

  .hero { padding: 5rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.95rem; }
  .section-header h2 { font-size: 1.7rem; }
  #apropos h2 { font-size: 1.8rem !important; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }

  .pricing-card { padding: 1.2rem; }
  .pricing-item { padding: 0.6rem 0.9rem; font-size: 0.9rem; }
  .review-card { flex: 0 0 240px; max-width: 82vw; }
  .reviews-strip { padding: 0.4rem 0.2rem 1rem; }
  .modal-card { padding: 1.5rem; }
  .signature-section { min-height: 205vh; }
  .signature-sticky { top: 18vh; }
  .signature-caption { font-size: 0.72rem; letter-spacing: 0.12em; }
}

/* ===== Éléments auparavant stylés « en ligne » (le balisage reste lisible, et
   la mise en forme se règle ici) ===== */
.hero-button { max-width: 250px; margin: 1.5rem auto 0; }
.pricing-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.6rem; }
.nav-links li.nav-admin a { opacity: 0.6; }
.nav-links li.nav-admin a:hover, .nav-links li.nav-admin a:focus-visible { opacity: 1; }
.contact-form { max-width: 600px; margin: 0 auto; background: white; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1.2rem; line-height: 1.5; }
.form-hint { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.btn-spaced { margin-bottom: 0.8rem; }
.modal-overlay.open { display: flex; }
.modal-title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 0.5rem; }
.modal-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-card:focus, .lightbox-card:focus { outline: none; }
.modal-workshops-list { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.workshop-choice { display: flex; align-items: center; gap: 0.8rem; background: #fdfbf7; padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border-color); cursor: pointer; }
.workshop-choice:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.workshop-choice .waitlist-tag { color: #c62828; font-size: 0.8rem; }
.price-summary { background: #fdf8f4; padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; border: 1px solid var(--accent); }
.price-line { font-weight: 600; }
.price-initial { color: var(--text-muted); text-decoration: line-through; margin-left: 0.35rem; }
.price-total { color: var(--primary); font-size: 1.3rem; margin-left: 0.35rem; }
.price-discount { font-size: 0.85rem; color: #2e7d32; margin-top: 0.35rem; }
.price-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.5rem; }
}

/* ===== Pages légales (mentions légales, confidentialité) ===== */
/* L'en-tête de ces pages n'est PAS l'en-tête fixe du site : sans ces remises à
   zéro, il héritait de la règle globale `header` (position fixe, fond opaque,
   z-index 1000) et recouvrait le titre « Mentions légales » /
   « Politique de confidentialité » — seul « Les Ateliers de Manu » restait
   visible. */
.legal-header {
  position: static;
  top: auto;
  width: auto;
  background: none;
  backdrop-filter: none;
  border-bottom: 0;
  z-index: auto;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.4rem 2rem 0;
}
.legal-page { max-width: 860px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }
.legal-page h1 { font-family: var(--font-serif); font-size: 2.6rem; color: var(--primary); margin-bottom: 1.2rem; }
.legal-page h2 { font-family: var(--font-serif); font-size: 1.7rem; margin: 2rem 0 0.6rem; }
.legal-page h3 { font-size: 1.05rem; margin: 1.2rem 0 0.3rem; }
.legal-page p { margin-bottom: 0.8rem; color: var(--text-dark); }
.legal-page a { color: var(--primary); }
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; margin-bottom: 1rem; }
.legal-list dt { font-weight: 600; }
.legal-list dd { margin: 0; }
.legal-back { margin-top: 2rem; }
@media (max-width: 560px) {
  .legal-header, .legal-page { padding-left: 1.2rem; padding-right: 1.2rem; }
  .legal-page h1 { font-size: 2rem; }
  .legal-list { grid-template-columns: 1fr; gap: 0.1rem; }
  .legal-list dd { margin-bottom: 0.6rem; }
}

.reviews-toggle { display: block; margin: 0.4rem auto 0; background: none; border: 1px solid var(--border-color); border-radius: 50px; padding: 0.35rem 1rem; font: inherit; font-size: 0.82rem; color: var(--text-muted); cursor: pointer; }
.reviews-toggle:hover { color: var(--primary); border-color: var(--primary); }
.register-result { text-align: center; padding: 1rem 0 0.5rem; }
.register-result:focus { outline: none; }
.register-result p { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
