/* =========================================================
   L'ARGILIÈRE — FEUILLE DE STYLES PRINCIPALE

   Organisation :
   01. PAGE-ALL — tokens, base, typographie, responsive
   02. COMPONENTS — boutons, cartes, blobs, galeries, tableaux, footer
   03. PAGE-COURSE
   04. SHARED PAGES — workshop / profile / contact
   05. PAGE-HOME
   06. PAGE-ALL — internal page hero / reusable banner
   07. PAGE-STAGE
   08. PAGE-WORKSHOP
   09. PAGE-PROFILE
   10. PAGE-CONTACT
   11. PAGE-PROGRESS
   12. PAGE-ERROR-404

   Note :
   Cette version privilégie la lisibilité et la stabilité visuelle
   des pages validées. Les commentaires de migration devenus obsolètes
   ont été retirés.
========================================================= */

/* =========================================
   PAGE-ALL — TOKENS, FONTS & BASE
========================================= */

@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Light"), url("../fonts/Avenir/Avenir-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Light Oblique"), url("../fonts/Avenir/Avenir-LightOblique.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Book"), url("../fonts/Avenir/Avenir-Book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Book Oblique"), url("../fonts/Avenir/Avenir-BookOblique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Medium"), url("../fonts/Avenir/Avenir-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Medium Oblique"), url("../fonts/Avenir/Avenir-MediumOblique.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Black"), url("../fonts/Avenir/Avenir-Black.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Black Oblique"), url("../fonts/Avenir/Avenir-BlackOblique.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Heavy"), url("../fonts/Avenir/Avenir-Heavy.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir Argiliere"; src: local("Avenir Heavy Oblique"), url("../fonts/Avenir/Avenir-HeavyOblique.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --bg: #FBF7F2;
  --ink: #2D231D;
  --muted: #6D5950;
  --paper: #FFFDF9;
  --white: #FFFFFF;
  --transparent: transparent;

  /* PALETTE ORIGINE */
  --argile: #D28F66;
  --argile-strong: #D28F66;
  --ficelle: #CFB69A;
  --sand: #EFC265;
  --lin: #F5E9D9;
  --teint: #BF9474;
  --terracotta: #9F765F;
  --khol: #8A6052;
  --gris: #DEDFE0;

  /* ALIAS HISTORIQUES */
  --terra: var(--terracotta);
  --terra-2: var(--khol);

  /* ÉCHELLES D’ALPHA HARMONISÉES — par paliers lisibles */
  --bg-80: #FBF7F2CC;

  --paper-60: #FFFDF999;
  --paper-80: #FFFDF9CC;
  --paper-90: #FFFDF9E6;
  --paper-95: #FFFDF9F2;

  --white-20: #FFFFFF33;
  --white-40: #FFFFFF66;
  --white-80: #FFFFFFCC;

  --ink-10: #2D231D1A;
  --ink-20: #2D231D33;
  --ink-40: #2D231D66;
  --ink-70: #2D231DB3;
  --ink-80: #2D231DCC;
  --ink-90: #2D231DE6;

  --ink-deep: #1F1B16;
  --ink-deep-10: #1F1B161A;
  --ink-deep-20: #1F1B1633;
  --ink-deep-70: #1F1B16B3;
  --ink-deep-80: #1F1B16CC;

  --argile-10: #D28F661A;
  --argile-20: #D28F6633;
  --argile-80: #D28F66CC;

  --ficelle-20: #CFB69A33;

  --sand-20: #EFC26533;

  --lin-60: #F5E9D999;
  --lin-80: #F5E9D9CC;
  --lin-90: #F5E9D9E6;

  --terracotta-10: #9F765F1A;
  --terracotta-20: #9F765F33;
  --terracotta-40: #9F765F66;

  /* TOKENS SÉMANTIQUES UI */
  --sand-light: var(--sand-20);
  --lin-light: var(--lin-80);

  --shadow: 0 16px 38px var(--ink-10);
  --shadow-soft: 0 12px 28px var(--ink-deep-10);
  --radius: 22px;
  --font-ui: "Avenir Argiliere", "Avenir", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --course-line: var(--ink-10);
  --course-shell: var(--paper-80);
  --course-shell-strong: var(--paper-95);
  --course-accent-soft: var(--argile-10);
  --course-muted-bg: var(--lin-80);
  --gallery-hover-overlay: var(--argile-80);

  --text-primary: var(--ink-90);
  --text-secondary: var(--ink-80);
  --text-muted: var(--ink-70);
  --text-on-dark: var(--white);

  --border-soft: var(--ink-10);
  --border-medium: var(--ink-20);
  --border-accent-soft: var(--terracotta-20);

  --surface-glass: var(--paper-80);
  --surface-glass-strong: var(--paper-90);
  --surface-glass-stronger: var(--paper-95);

  --btn-ghost-bg: var(--paper-95);
  --btn-ghost-bg-hover: var(--white);
  --btn-ghost-text: var(--khol);
  --btn-ghost-border: var(--terracotta-20);
  --btn-ghost-border-hover: var(--terracotta-40);
  --btn-ghost-shadow: 0 8px 18px var(--ink-10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  margin: 0;
  background: radial-gradient(1200px 600px at 18% 0%, var(--argile-10), var(--transparent) 60%), radial-gradient(1000px 500px at 85% 18%, var(--ficelle-20), var(--transparent) 55%), var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
  overflow-x: hidden; 
}

body, button, input, textarea, select { font-family: var(--font-ui); }

strong, b {
  font-weight: 900;
}

.spacer-small {
  display: block;
  height: 8px;
}

a { color: inherit; }
a:hover { text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 12px; background: var(--paper); padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { left: 12px; z-index: 50; }

.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: var(--bg-80); border-bottom: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; width: clamp(150px, 22vw, 220px); height: auto; }
.site-status { margin: 0; max-width: 32ch; text-align: right; font-size: 15px; font-weight: 400; color: var(--ink-80); }

.hero { position: relative; padding: clamp(36px, 6vw, 36px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr); gap: 38px; align-items: start; }
.hero-copy { padding-top: 8px; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: var(--argile-10); border: 1px solid var(--terracotta-20); color: var(--ink-90); font-family: var(--font-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.02em; line-height: 2; margin: 0 0 14px 0; }

/* =========================================
   PAGE-ALL — TYPOGRAPHIE, LIENS & BOUTONS
========================================= */

h1, h2, h3, h4, h5, h6, .blob__title, .panel-title, .tech-card h4, .featured-note, .tech-card--visual { font-family: var(--font-ui); }

/* Titres H2 standardisés, sans clamp, taille fixe, tout en majuscules */
h2, .display-caps { 
  font-size: 30px; 
  text-transform: uppercase; 
  letter-spacing: .05em; 
  line-height: 1.15;
  color: var(--argile-strong); 
  margin: 0 0 20px 0; 
  font-weight: 400; 
}

.display-caps .accent { color: var(--khol); }

h3 { margin: 0; }
.accent { color: var(--ink-80); }

.blob__text, .featured-text, .lead, .lead-small, .info-soft { font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.4; }
.lead, .lead-small { font-family: var(--font-ui); font-size: 17px; color: var(--ink-80); margin: 0; max-width: 62ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 10px; }

.btn, .reveal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-family: var(--font-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.4; border: 1px solid var(--transparent); transition: transform .08s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; cursor: pointer; }
.btn:active, .reveal-btn:active { transform: translateY(1px); }

.btn-primary { background: var(--terracotta); color: var(--white); border-color: var(--ink-20); }
.btn-primary:hover { background: var(--khol); color: var(--white); border-color: var(--btn-ghost-border-hover); box-shadow: var(--btn-ghost-shadow); }

.btn-ghost { background: var(--btn-ghost-bg); color: var(--btn-ghost-text); border-color: var(--ink-20); }
.btn-ghost:hover { background: var(--btn-ghost-bg-hover); color: var(--btn-ghost-text); border-color: var(--btn-ghost-border-hover); box-shadow: var(--btn-ghost-shadow); }

/* =========================================
   PAGE-CONTACT — LAYOUT / GRID
========================================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.contact-form-card,
.contact-side {
  height: 100%;
}

.contact-form-card {
  display: grid;
}

.contact-form {
  display: grid;
  grid-template-rows: 1fr auto auto;
  height: 100%;
}

.contact-side {
  display: grid;
}

.contact-map-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100%;
}

.contact-map-card__media {
  display: block;
}

.contact-map-card__media img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
}

.contact-map-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
}

.contact-map-card__body > .btn {
  width: 100%;
  margin-top: auto;
}

/* Deux encarts du bas alignés sur la même ligne */
.contact-secondary-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.contact-secondary-grid .contact-social-band,
.contact-secondary-grid .contact-direct-band {
  margin: 0;
  width: 100%;
  height: 100%;
}

/* Boutons pleine largeur */
.contact-form__actions .btn-icon:not(.reveal-btn),
.contact-map-card__body .btn-icon:not(.reveal-btn),
.contact-social-band .btn-icon:not(.reveal-btn) {
  width: 100%;
  box-shadow: none;
}

/* Téléphone : même emprise avant/après clic */
.contact-direct-band .contact-form__actions {
  padding: 0;
}

.contact-direct-band .contact-form__actions .reveal-btn,
.contact-direct-band .contact-form__actions .reveal-link {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 24px;
  line-height: 1.4;
  box-sizing: border-box;
}

.contact-direct-band .contact-form__actions .reveal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   PAGE-CONTACT — PANELS & ALIGNEMENTS
========================================= */

/* Grille principale */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

/* Colonne droite */
.contact-side {
  display: grid;
  gap: 18px;
}

/* Cartes formulaire et plan : même logique de hauteur */
.contact-form-card,
.contact-map-card,
.contact-social-band,
.contact-direct-band {
  box-shadow: var(--shadow-soft);
}

/* Le formulaire pousse naturellement son bouton en bas */
.contact-form {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.contact-form__actions {
  margin-top: auto;
  padding: 16px 18px 18px;
  display: grid;
  gap: 10px;
  align-items: center;
}

/* Boutons finaux : largeur et centrage cohérents */
.contact-form__actions .btn,
.contact-map-card__body > .btn,
.contact-social-band .contact-form__actions .btn,
.contact-direct-band .contact-form__actions .reveal-btn,
.contact-direct-band .contact-form__actions .reveal-link {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  box-shadow: 0 8px 18px var(--ink-deep-10);
}

/* Icônes SVG */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /*color: var(--argile);*/
}

.btn-icon__svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  color: currentColor;
}

/* Carte plan : format carré, coins arrondis */
.contact-map-card {
  overflow: hidden;
}

.contact-map-card__media {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--terracotta-20);
  background: var(--paper-90);
}

.contact-map-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-map-card__body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-map-card__body > .btn {
  margin-top: 8px;
}

/* Deux encarts du bas symétriques */
.contact-secondary-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-secondary-grid > .contact-social-band,
.contact-secondary-grid > .contact-direct-band {
  margin: 0;
  min-height: 146px;
  align-content: start;
}

/* Même espacement au-dessus des boutons des deux derniers blocs */
.contact-social-band .contact-form__actions,
.contact-direct-band .contact-form__actions {
  padding: 16px 18px 18px;
  margin-top: auto;
}

.contact-direct-band .contact-form__actions {
  display: grid;
}

.contact-direct-band .contact-form__actions .reveal-btn,
.contact-direct-band .contact-form__actions .reveal-link {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 24px;
  line-height: 1.4;
  box-sizing: border-box;
}

.contact-direct-band .contact-form__actions .reveal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paper-90);
  border: 1px solid var(--ink-deep-20);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .contact-layout,
  .contact-secondary-grid {
    grid-template-columns: 1fr;
  }

  .contact-secondary-grid {
    grid-column: auto;
  }

  .contact-map-card__media {
    width: min(100%, 520px);
  }
}

@media (max-width: 560px) {
  .contact-map-card__media {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
  }

  .contact-secondary-grid > .contact-social-band,
  .contact-secondary-grid > .contact-direct-band {
    min-height: 0;
  }
}

/* =========================================
   PAGE-CONTACT — CTA / SHADOWS
========================================= */

/* Ombre portée visible à l’état de repos */
.contact-form__actions .btn,
.contact-map-card__body > .btn,
.contact-social-band .contact-form__actions .btn,
.contact-direct-band .contact-form__actions .reveal-btn,
.contact-direct-band .contact-form__actions .reveal-link,
.about-download {
  box-shadow: 0 8px 18px var(--ink-deep-10) !important;
}

/* Largeur et centrage cohérents */
.contact-form__actions .btn,
.contact-map-card__body > .btn,
.contact-social-band .contact-form__actions .btn,
.contact-direct-band .contact-form__actions .reveal-btn,
.contact-direct-band .contact-form__actions .reveal-link {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

/* =========================================
   COMPONENTS — FEATURE PANELS / INFO LIST
========================================= */

.section { padding: 12px 0 24px; }
.feature-section { padding-top: 12px; }
.featured-shell { position: relative; background: var(--paper-60); border: 1px solid var(--ink-deep-10); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-soft); overflow: hidden; }
.featured-top { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(350px, .98fr); gap: 34px; align-items: start; position: relative; z-index: 1; }
.featured-badge { display: inline-block; margin-bottom: 18px; padding: 10px 22px; background: var(--ficelle); color: var(--ink); border-radius: 39% 61% 47% 53% / 53% 45% 55% 47%; font-weight: 400; font-size: 15px; border: 1px solid var(--terracotta-20); }
.featured-text { font-size: 18px; line-height: 1.6; color: var(--ink-deep-80); }
.featured-main { background: var(--paper-60); padding: 32px; margin-top: 40px; border-radius: var(--radius); border: 1px solid var(--ink-deep-10); }
.featured-main--flow { display: grid; gap: 24px; }
.panel-kicker { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: var(--argile-10); border: 1px solid var(--terracotta-20); font-size: 13px; font-weight: 900; text-transform: uppercase; color: var(--ink); }

/*.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } */ 

.tech-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

@media (max-width:900px){
    .tech-grid{
        grid-template-columns:1fr;
    }
}

.featured-top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(350px, .98fr);
}

.stages-page #stages-ete .featured-top > .tech-grid {
  grid-column: 1 / -1;
  width: 100%;
}

.stages-page #stages-ete .featured-top > .tech-grid .tech-card {
  height: 100%;
}

.tech-card { background: var(--lin-light); border: 1px solid var(--terracotta-10); border-radius: 18px; padding: 16px 22px 22px; }
.tech-card h4 { font-family: var(--font-ui); font-size: 22px; font-style: normal; font-weight: 300; margin-top: 0; margin-bottom: 12px; color: var(--terra); }
.tech-card ul { list-style: none; padding: 0; display: grid; gap: 1fr; margin: 0; }
.tech-card li { position: relative; padding-left: 18px; color: var(--ink-deep-80); font-size: 15px;}
.tech-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }

.featured-aside { background: var(--lin-80); padding: 32px; border-radius: var(--radius); border: 1px solid var(--terracotta-20); margin-top: 10px; }
.panel-title { font-size: 14px; text-transform: uppercase; font-weight: 400; letter-spacing: .08em; color: var(--terra); border-bottom: none; padding-bottom: 12px; margin-bottom: 24px; }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 28px; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.info-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--terra); background: var(--argile-10); }
.info-strong { font-weight: 400; margin: 0; font-size: 15px;}
.info-soft { font-size: 15px; color: var(--ink-deep-70); margin: 0; }

/* =========================================
   COMPONENTS — CONTACT CTA / FOOTER
========================================= */

.contact{ background: var(--paper-60); border: 1px solid var(--ink-deep-10); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 36px); box-shadow: 0 14px 30px var(--ink-deep-10); }
.contact-head{ display: grid; gap: 10px; max-width: 70ch; }
.contact-link{ display: inline-block; }
.address-location-icon{ width: 20px; height: auto; }
.reveal-group{ width: 100%; margin: 0 auto; }
.reveal-btn{ appearance: none; width: 80%; cursor: pointer; background: var(--paper-95); color: var(--btn-ghost-text); border-color: var(--btn-ghost-border); box-shadow: var(--btn-ghost-shadow); }
.reveal-btn:hover{ background: var(--btn-ghost-bg-hover); border-color: var(--btn-ghost-border-hover); }
.reveal-link{ display: inline-flex; align-items: center; justify-content: center; width: 80%; padding: 6px 9px; border-radius: 999px; background: var(--paper-95); color: var(--btn-ghost-text); border: 1px solid var(--btn-ghost-border); box-shadow: var(--btn-ghost-shadow); font-family: var(--font-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.03em; line-height: 2; text-decoration: none; }
.reveal-link:hover {  text-decoration: none;  }
.reveal-value a, .contact-link, .reveal-link{ text-decoration: none;  }
.muted{ color: var(--ink-deep-70); }
.site-footer{ border-top: 1px solid var(--ink-deep-10); padding: 22px 0 28px; }
.footer-inner{ display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer p{ margin: 0; }

/* =========================================
   COMPONENTS — BLOBS / MEDIA SHAPES
========================================= */

.blob {
  isolation: isolate;
  background: var(--transparent) !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.blob::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: drop-shadow(0 16px 30px var(--ink-10));
  z-index: 0;
  transform: scale(var(--blob-scale, 1.35)) !important; 
}

.blob--image-argile::before { background-image: url("../img/blob/PATATE-ARGILE.png"); }
.blob--image-ficelle::before { background-image: url("../img/blob/FICELLE.png"); }
.blob--image-khol::before { background-image: url("../img/blob/KHOL.png"); }
.blob--image-lin::before { background-image: url("../img/blob/LIN.png"); }
.blob--image-sand::before { background-image: url("../img/blob/SAND-light.png"); }
.blob--image-teint::before { background-image: url("../img/blob/TEINT.png"); }
.blob--image-terracotta::before { background-image: url("../img/blob/TERRACOTA.png"); }

/* Blob hero 1 : liste centrée dans le blob */
.blob--hero-1 .blob__inner {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3.2rem 2.2rem;
}

.blob--hero-1 .blob__list,
.blob--hero-2 .blob__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(95%, 23rem);
  display: grid;
  gap: 1rem;
}

.blob--hero-1 .blob__list li,
.blob--hero-2 .blob__list li {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
  color: var(--white);
}

.blob--hero-1 .blob__list strong {
  font-weight: 500;
  color: inherit;
}

.hero-blobs--infos .blob--hero-1 {
  min-height: 18rem;
}

/* =========================================
   PAGE-PROGRESS — sécurisation des blobs larges
   Réduit proportionnellement les blobs qui débordent
========================================= */

.page-progress .hero-blobs--infos .blob--hero-2,
.page-progress .hero-blobs--stage .blob--stage-1,
.page-progress .hero-blobs--stage .blob--stage-3 {
  width: min(var(--blob-max-width, 100%), var(--blob-base-width, 100%));
}

/* Valeurs desktop conservatrices */
.page-progress .hero-blobs--infos .blob--hero-2 {
  --blob-base-width: 60%;
  --blob-max-width: calc(100vw - 32px);
}

.page-progress .hero-blobs--stage .blob--stage-1 {
  --blob-base-width: 32%;
  --blob-max-width: calc(100vw - 32px);
}

.page-progress .hero-blobs--stage .blob--stage-3 {
  --blob-base-width: 40%;
  --blob-max-width: calc(100vw - 32px);
}

@media (max-width: 980px) {

  .page-progress .hero-blobs--infos .blob--hero-1 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-progress .hero-blobs--infos .blob--hero-2 {
    --blob-base-width: 28%;
    --blob-scale: 1.16;
  }

  .page-progress .hero-blobs--infos .blob--hero-3 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-progress .hero-blobs--stage .blob--stage-1 {
    --blob-base-width: 28%;
    --blob-scale: 1.06;
  }

  .page-progress .hero-blobs--stage .blob--stage-2 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-progress .hero-blobs--stage .blob--stage-3 {
    --blob-base-width: 30%;
    --blob-scale: 1.26;
  }

  .hero-blobs--infos .blob--hero-1 { order: 3; }
  .hero-blobs--infos .blob--hero-2 { order: 2; }
  .hero-blobs--infos .blob--hero-3 { order: 1; }

  .hero-blobs--infos {
    gap: 24px !important;
    padding: 20px 0 30px;
  }

  .blob--hero-1 .blob__inner {
    padding: 2.4rem 1.8rem;
  }

  .blob--hero-1 .blob__list {
    width: min(95%, 21rem);
    gap: 0.85rem;
  }

  .blob--hero-1 .blob__list li {
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    line-height: 1.3;
  }

  .hero-blobs--infos .blob--hero-3 {
    margin-top: -50px;
    margin-bottom: -5px;
  }

  .hero-blobs--infos .blob--hero-2 {
    margin-top: -50px;
    margin-bottom: 5px;
  }

  .hero-blobs--infos .blob--hero-1 {
    margin-top: -16px;
    margin-bottom: 30px;
  }
}

/* Très petits écrans : on réduit encore un peu */
@media (max-width: 680px) {
  /* page-progress */

  .page-progress .hero-blobs--infos .blob--hero-1 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-progress .hero-blobs--infos .blob--hero-2 {
    --blob-base-width: 28%;
    --blob-scale: 1.16;
  }

  .page-progress .hero-blobs--infos .blob--hero-3 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-progress .hero-blobs--stage .blob--stage-1 {
    --blob-base-width: 28%;
    --blob-scale: 1.06;
  }

  .page-progress .hero-blobs--stage .blob--stage-2 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-progress .hero-blobs--stage .blob--stage-3 {
    --blob-base-width: 30%;
    --blob-scale: 1.26;
  }

  /* page-home */

  .page-home .hero-blobs--infos .blob--hero-1 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-home .hero-blobs--infos .blob--hero-2 {
    --blob-base-width: 28%;
    --blob-scale: 1.16;
  }

  .page-home .hero-blobs--infos .blob--hero-3 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  /* page-course */
  .page-course .course-signup-blobs .blob--signup-1,
  .page-course .course-signup-blobs .blob--signup-2,
  .page-course .course-signup-blobs .blob--signup-3 {
    width: min(100%, 340px);
  }

  .page-course .course-signup-blobs .blob--signup-1 {
    --blob-scale: 1.26;
  }

  .page-course .course-signup-blobs .blob--signup-2 {
    --blob-scale: 1.26;
  }

  .page-course .course-signup-blobs .blob--signup-3 {
    --blob-scale: 1.02;
  }

  /* page-stage */
  .page-stage .hero-blobs--stage .blob--stage-1,
  .page-stage .hero-blobs--stage .blob--stage-2,
  .page-stage .hero-blobs--stage .blob--stage-3 {
    width: min(100%, 340px);
  }

  .page-stage .hero-blobs--stage .blob--stage-1 {
    --blob-base-width: 28%;
    --blob-scale: 1.06;
  }

  .page-stage .hero-blobs--stage .blob--stage-2 {
    --blob-base-width: 28%;
    --blob-scale: 1.26;
  }

  .page-stage .hero-blobs--stage .blob--stage-3 {
    --blob-base-width: 28%;
    --blob-scale: 1.40;
  }

  .page-stage .course-signup-blobs .blob--signup-4,
  .page-stage .course-signup-blobs .blob--signup-5,
  .page-stage .course-signup-blobs .blob--signup-6 {
    width: min(100%, 340px);
  }

  .page-stage .course-signup-blobs .blob--signup-4 {
    --blob-scale: 1.26;
  }

  .page-stage .course-signup-blobs .blob--signup-5 {
    --blob-scale: 1.26;
  }

  .page-stage .course-signup-blobs .blob--signup-6 {
    --blob-scale: 1.02;
  }

}

/* Structure interne commune des blobs */

.blob__inner {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px !important;
  z-index: 1;
}

.blob__inner > * {
  margin-left: auto;
  margin-right: auto;
}

.blob__title {
  max-width: 85%;
  font-size: 1.34rem;
  line-height: 1.16;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 12px;
  align-items: center;
  text-align: center;
}

.blob__text {
  max-width: 95%;
  font-size: 1rem;
  line-height: 1.2rem;
  margin: 0;
  align-items: center;
  text-align: center;
}

/* =========================================
   COMPONENTS — BLOBS / LAYOUT
========================================= */

.hero-blobs--infos, .hero-blobs--stage { position: relative; }
.hero-blobs--infos { min-height: 560px; }
.hero-blobs--stage { min-height: 320px; }
.hero-blobs--infos .blob, .hero-blobs--stage .blob { position: absolute; height: auto; }

.hero-blobs--infos .blob--hero-1 { width: 45%; aspect-ratio: 1.1; left: -5%; top: 35%; z-index: 3; --blob-scale: 1.55; }
.hero-blobs--infos .blob--hero-2 { width: 60%; aspect-ratio: 1.25; right: -5%; top: 32%; z-index: 1; --blob-scale: 1.45; } 
.hero-blobs--infos .blob--hero-3 { width: 55%; aspect-ratio: 1.1; left: 5%; top: -5%; z-index: 2; --blob-scale: 1.4; }

.hero-blobs--stage .blob--stage-1 { width: 32%; aspect-ratio: 1; left: 0%; top: 42%; z-index: 2; --blob-scale: 1.45; }
.hero-blobs--stage .blob--stage-2 { width: 40%; aspect-ratio: 1.15; left: 44%; transform: translateX(-50%); top: 0; z-index: 1; --blob-scale: 1.60; }
.hero-blobs--stage .blob--stage-3 { width: 40%; aspect-ratio: 1.1; right: 0%; top: 45%; z-index: 3; --blob-scale: 1.8; }

/* SECTION CONTACT */
.contact-blobs { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; /* C'est cette ligne qui centre parfaitement le tout ! */
  align-items: center; /* Centre verticalement pour plus d'harmonie */
  gap: 30px; 
  margin-top: 40px; 
}
.contact-blobs .blob { 
  position: relative; 
}

/* On remplace les "grid-column: span X" par des pourcentages de largeur (width) */
.blob--contact-1 { width: 44%; min-height: 380px; --blob-scale: 1.35; }
.blob--contact-1 .blob__inner > * { max-width: 70%; } 

.blob--contact-2 { width: 36%; min-height: 380px; --blob-scale: 1.25; }

.blob--contact-3 { width: 40%; min-height: 280px; --blob-scale: 1.55; --blob-rotate: -45deg;}
.blob--contact-4 { width: 40%; min-height: 240px; --blob-scale: 1.55; }

.contact-blobs .blob__inner > div:first-child { display: grid; gap: 8px; justify-items: center; width: 100%; }

/* =========================================
   COMPONENTS — BLOBS / CONTRAST THEMES
========================================= */

/* Sombres => Texte Blanc */
.blob--image-argile .blob__title, .blob--image-argile .blob__text,
.blob--image-terracotta .blob__title, .blob--image-terracotta .blob__text,
.blob--image-khol .blob__title, .blob--image-khol .blob__text,
.blob--image-teint .blob__title, .blob--image-teint .blob__text {
  color: var(--white) !important;
}
.blob--image-argile .muted, .blob--image-terracotta .muted,
.blob--image-khol .muted, .blob--image-teint .muted {
  color: var(--white-80) !important;
}

/* Boutons dans sombres */
.blob--image-terracotta .reveal-btn, .blob--image-argile .reveal-btn,
.blob--image-teint .reveal-btn, .blob--image-khol .reveal-btn,
.blob--image-terracotta .reveal-link, .blob--image-argile .reveal-link,
.blob--image-teint .reveal-link, .blob--image-khol .reveal-link {
  background: var(--white-20) !important;
  border-color: var(--white-20) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}
.blob--image-terracotta .reveal-btn:hover, .blob--image-argile .reveal-btn:hover { background: var(--white-20) !important; }

/* Claires => Texte Khol */
.blob--image-ficelle .blob__title, .blob--image-ficelle .blob__text,
.blob--image-lin .blob__title, .blob--image-lin .blob__text,
.blob--image-sand .blob__title, .blob--image-sand .blob__text {
  color: var(--khol) !important;
}
.blob--contact-1 .reveal-btn, .blob--contact-1 .reveal-link,
.blob--contact-3 .reveal-btn, .blob--contact-3 .reveal-link,
.blob--contact-4 .reveal-btn, .blob--contact-4 .reveal-link{
  background: var(--paper-90); color: var(--ink-90);
}

/* =========================================
   COMPONENTS — VISUAL NOTES / HIGHLIGHTS
========================================= */

.tech-card--visual, .featured-note {
  grid-column: 1 / -1; 
  text-align: center;
  background: var(--argile-strong) !important;
  color: var(--white) !important;
  border: none !important;
  border-left: 4px solid var(--white-40) !important;
  border-radius: 14px;
  padding: 24px 32px !important;
  font-family: var(--font-ui);
  box-shadow: var(--shadow-soft);
  margin-top: 10px;
}

.tech-card--visual .tech-visual-text, .featured-note {
  color: var(--white) !important;
  font-size: clamp(17px, 2vw, 19px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
}

/* =========================================
   PAGE-ALL — RESPONSIVE
========================================= */

@media (max-width: 980px) {
  .header-inner, .hero-grid, .featured-top { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; }
  .site-status { max-width: none; text-align: left; }
  .tech-grid { grid-template-columns: 1fr; }
  
  .hero-blobs--infos, .hero-blobs--stage, .contact-blobs {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
    min-height: auto !important;
    padding: 30px 0;
  }
  
  .hero-blobs--infos .blob, .hero-blobs--stage .blob, .contact-blobs .blob {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important; 
    min-height: 340px !important;
    inset: auto !important;
    transform: none !important;
    aspect-ratio: auto !important;
  }
}

@media (max-width: 680px) {
  h2, .display-caps { font-size: 26px; } /* Légère adaptation auto sur très petit écran */
  .container { width: min(1120px, calc(100% - 24px)); }
  .hero-actions, .featured-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .info-list { grid-template-columns: 1fr; }
  .hero-blobs--infos .blob, .hero-blobs--stage .blob, .contact-blobs .blob { min-height: 280px !important; }
}

/* =========================================
   PAGE-COURSE — CORE
========================================= */

.cours-page {
  position: relative;
}

.cours-page::before,
.cours-page::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.45;
}

.cours-page::before {
  top: 8rem;
  left: -14vw;
  background: radial-gradient(circle, var(--argile-20), var(--transparent) 68%);
}

.cours-page::after {
  right: -16vw;
  top: 26rem;
  background: radial-gradient(circle, var(--ficelle-20), var(--transparent) 70%);
}

.course-header {
  border-bottom: 1px solid var(--ink-10);
}

.course-header .header-inner {
  gap: 24px;
}

.course-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.course-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: .05em;
  line-height: 1.25;
  color: var(--argile);
  border: 1px solid var(--transparent);
  text-transform: uppercase; 
  background: var(--paper-80);
  border-color: var(--gris);
}

.course-nav a:hover,
.course-nav a:focus-visible {
  background: var(--paper-80);
  border-color: var(--ink-20);
  box-shadow: var(--btn-ghost-shadow);
}

.course-nav .course-nav__cta {
  background: var(--argile);
  color: var(--white);
  border-color: var(--ink-10);
}

.course-nav .course-nav__cta:hover,
.course-nav .course-nav__cta:focus-visible {
  background: var(--argile);
  border-color: var(--transparent);
  box-shadow: var(--btn-ghost-shadow);
}

.course-nav a:active,
.course-nav .course-nav__cta:active {
  box-shadow: var(--btn-ghost-shadow);
}

.cours-hero {
  padding: clamp(42px, 7vw, 76px) 0 26px;
}

.cours-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 34px;
  align-items: start;
}

.cours-hero__copy {
  padding-top: 12px;
}

.cours-page h2.display-caps {
  margin-bottom: 18px;
}

.course-intro {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.course-intro p,
.course-section__lead,
.course-editorial p,
.course-note,
.table-footnote,
.course-info-card p,
.course-formula__stack p,
.course-mini-note,
.course-cta p {
  color: var(--ink-80);
}

.course-intro p,
.course-editorial p,
.course-formula__stack p,
.course-cta p {
  margin: 0;
}

.hero-blobs--cours {
  position: relative;
  min-height: 560px;
}

.hero-blobs--cours .blob {
  position: absolute;
  height: auto;
}

.hero-blobs--cours .blob--course-1 {
  width: 34%;
  aspect-ratio: 1.02;
  left: 2%;
  top: 6%;
  z-index: 3;
  --blob-scale: 1.7;
}

.hero-blobs--cours .blob--course-2 {
  width: 47%;
  aspect-ratio: 1.12;
  right: 0%;
  top: 5%;
  z-index: 1;
  --blob-scale: 1.65;
}

.hero-blobs--cours .blob--course-3 {
  width: 42%;
  aspect-ratio: 1.05;
  left: 25%;
  top: 42%;
  z-index: 4;
  --blob-scale: 1.7;
}

.hero-blobs--cours .blob--course-4 {
  width: 40%;
  aspect-ratio: 1.08;
  right: 6%;
  top: 47%;
  z-index: 2;
  --blob-scale: 1.15;
}

.course-main {
  padding: 10px 0 10px;
}

.course-stack {
  display: grid;
  gap: 26px;
}

.course-section {
  background: var(--course-shell);
  border: 1px solid var(--course-line);
  border-radius: 28px;
  padding: clamp(24px, 3.6vw, 38px);
  box-shadow: var(--shadow-soft);
}

.course-feature-header {
  margin-bottom: 12px;
}

.course-section__lead {
  margin: 0 0 22px;
  /*max-width: 65ch;*/
}

.course-two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.course-editorial {
  display: grid;
  gap: 16px;
}

.course-aside {
  background: var(--course-muted-bg);
  border: 1px solid var(--terracotta-20);
  border-radius: 22px;
  padding: 22px;
}

.course-aside h3,
.course-info-card h3,
.course-formulas__group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.course-aside ul,
.course-formula__list {
  margin: 0;
  padding-left: 1.1rem;
}

.course-aside li,
.course-formula__list li {
  margin-bottom: 0.45rem;
  color: var(--ink-80);
}

.course-visual-banner {
  margin-top: 24px;
}

.course-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--paper-95);
  border: 1px solid var(--terracotta-20);
  font-style: italic;
}

.course-info-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 0;
}

.course-info-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--sand-light);
  /*border: 1px solid var(--terracotta-20);*/
  color: var(--ink-90);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.table-shell {
  overflow-x: auto;
  border-radius: 20px;
  background: var(--course-shell-strong);
  border: 1px solid var(--course-line);
}

.course-table,
.pricing-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.course-table th,
.course-table td,
.pricing-table th,
.pricing-table td {
  border: 1px solid var(--ink-20);
  padding: 14px 14px;
  text-align: center;
  vertical-align: middle;
}

.course-table thead th,
.pricing-table thead th,
.pricing-table .pricing-table__title {
  background: var(--lin-light);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
  font-family: var(--font-ui);
}

.course-table tbody th,
.pricing-table tbody th {
  background: var(--lin-light);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
  white-space: nowrap;
  font-family: var(--font-ui);
}

.course-table td:empty {
  background: var(--lin-light);
}

.course-table .course-table__note td {
  font-size: 0.95rem;
  font-weight: 400;
  background: var(--paper-90);
}

.course-table strong,
.pricing-table strong {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-family: var(--font-ui);
}

.table-footnote {
  margin: 14px 0 0;
  font-size: 0.96rem;
  font-family: var(--font-ui);
}

.course-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-info-card {
  background: var(--course-muted-bg);
  border: 1px solid var(--terracotta-20);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 12px;
}

.course-info-card p {
  margin: 0;
}

.pricing-table tbody tr:nth-child(3) td,
.pricing-table tbody tr:nth-child(3) th {
  background: var(--lin-light);
}

.pricing-table .pricing-table__muted {
  color: var(--ink-70);
  font-size: 0.95rem;
}

.pricing-table .pricing-table__note td {
  font-size: 0.95rem;
  font-weight: 400;
  background: var(--paper-90);
}

.pricing-info-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 0;
}

.pricing-info-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--sand-light);
  /*border: 1px solid var(--terracotta-20);*/
  color: var(--ink-90);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.reserver-info-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 0;
}

.reserver-info-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--sand-light);
  /*border: 1px solid var(--terracotta-20);*/
  color: var(--ink-90);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.course-formulas {
  display: grid;
  gap: 20px;
}

.course-formulas__group {
  display: grid;
  gap: 18px;
}

.course-formulas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-formula {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.course-formula__media {
  overflow: hidden;
  display: block;
  background: var(--lin-80);
}

#formules .course-formula__media {
  aspect-ratio: auto;
}

#formules .course-formula__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
  object-position: center top;
}

#formules .course-formula__media--gift img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 28px;
}

.course-formula__body {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  padding: 20px;
}

.course-formula__body h4 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.16;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 400;
}

.course-formula__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 400;
  background: var(--lin-light);
  color: var(--ink-90);
}

.course-info-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 0;
}

.course-info-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--sand-light);
  color: var(--ink-90);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.course-formula__stack {
  display: grid;
  align-content: start;
  gap: 10px;
}

.course-formula__dates {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--lin-60);
}

.course-formula__dates p {
  margin: 0;
}

.course-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--argile-20), var(--lin-90));
  border: 1px solid var(--terracotta-20);
}

.course-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.course-cta__actions .btn {
  min-width: 190px;
}

.course-mini-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

.course-anchor-offset {
  scroll-margin-top: 7rem;
}

@media (max-width: 1080px) {
  .cours-hero__grid,
  .course-two-cols,
  .course-cta {
    grid-template-columns: 1fr;
  }

  .course-info-grid,
  .course-formulas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .hero-blobs--cours {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 36px !important;
    min-height: auto !important;
    padding: 18px 0 0;
  }

  .hero-blobs--cours .blob {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    min-height: 280px !important;
    inset: auto !important;
    transform: none !important;
    aspect-ratio: auto !important;
  }

  .hero-blobs--cours {
    position: relative;
    min-height: 560px;
  }

  .hero-blobs--cours .blob {
    position: absolute;
    height: auto;
  }

  .hero-blobs--cours .blob--course-1 {
    width: 34%;
    aspect-ratio: 1.02;
    left: 2%;
    top: 6%;
    z-index: 3;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-2 {
    width: 47%;
    aspect-ratio: 1.12;
    right: 0%;
    top: 5%;
    z-index: 1;
    --blob-scale: 1.2;
  }

  .hero-blobs--cours .blob--course-3 {
    width: 42%;
    aspect-ratio: 1.05;
    left: 25%;
    top: 42%;
    z-index: 4;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-4 {
    width: 40%;
    aspect-ratio: 1.08;
    right: 6%;
    top: 47%;
    z-index: 2;
    --blob-scale: 1;
  }
}

@media (max-width: 860px) {
  .course-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-nav {
    justify-content: flex-start;
  }

  .course-info-grid,
  .course-formulas__grid {
    grid-template-columns: 1fr;
  }

    .hero-blobs--cours .blob--course-1 {
    width: 34%;
    aspect-ratio: 1.02;
    left: 2%;
    top: 6%;
    z-index: 3;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-2 {
    width: 47%;
    aspect-ratio: 1.12;
    right: 0%;
    top: 5%;
    z-index: 1;
    --blob-scale: 1.2;
  }

  .hero-blobs--cours .blob--course-3 {
    width: 42%;
    aspect-ratio: 1.05;
    left: 25%;
    top: 42%;
    z-index: 4;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-4 {
    width: 40%;
    aspect-ratio: 1.08;
    right: 6%;
    top: 47%;
    z-index: 2;
    --blob-scale: 1;
  }
}

@media (max-width: 680px) {
  .course-nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .course-section,
  .course-info-card,
  .course-cta,
  .course-formula {
    border-radius: 22px;
  }

  .course-table,
  .pricing-table {
    min-width: 660px;
  }

  .course-cta__actions .btn {
    width: 100%;
  }

    .hero-blobs--cours .blob--course-1 {
    width: 34%;
    aspect-ratio: 1.02;
    left: 2%;
    top: 6%;
    z-index: 3;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-2 {
    width: 47%;
    aspect-ratio: 1.12;
    right: 0%;
    top: 5%;
    z-index: 1;
    --blob-scale: 1.2;
  }

  .hero-blobs--cours .blob--course-3 {
    width: 42%;
    aspect-ratio: 1.05;
    left: 25%;
    top: 42%;
    z-index: 4;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-4 {
    width: 40%;
    aspect-ratio: 1.08;
    right: 6%;
    top: 47%;
    z-index: 2;
    --blob-scale: 1;
  }
}

/* =========================================
   PAGE-COURSE — MOBILE NAV / STACK
========================================= */

.course-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-20);
  background: var(--paper-90);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
}

.course-menu-toggle__icon,
.course-menu-toggle__icon::before,
.course-menu-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.course-menu-toggle__icon {
  position: relative;
}

.course-menu-toggle__icon::before,
.course-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.course-menu-toggle__icon::before { top: -6px; }
.course-menu-toggle__icon::after { top: 6px; }

.course-menu-toggle[aria-expanded="true"] .course-menu-toggle__icon {
  background: var(--transparent);
}

.course-menu-toggle[aria-expanded="true"] .course-menu-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.course-menu-toggle[aria-expanded="true"] .course-menu-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 820px) {
  .site-header.course-header {
    position: sticky;
    top: 0;
  }

  .course-header .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
    min-height: 108px;
    padding: 10px 0;
  }

  .course-header .brand {
    justify-content: flex-start;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .course-header .brand__logo {
    width: 128px;
  }

  .course-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .course-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--ink-10);
    background: var(--paper-95);
    box-shadow: var(--shadow-soft);
  }

  .course-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .course-nav a,
  .course-nav .course-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
  }

  .course-main {
    padding: 8px 0 44px;
  }

  .cours-page #presentation {
    padding-bottom: 18px;
  }

  .hero-blobs--cours {
    margin-bottom: 10px;
  }

    .hero-blobs--cours .blob--course-1 {
    width: 34%;
    aspect-ratio: 1.02;
    left: 2%;
    top: 6%;
    z-index: 3;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-2 {
    width: 47%;
    aspect-ratio: 1.12;
    right: 0%;
    top: 5%;
    z-index: 1;
    --blob-scale: 1.2;
  }

  .hero-blobs--cours .blob--course-3 {
    width: 42%;
    aspect-ratio: 1.05;
    left: 25%;
    top: 42%;
    z-index: 4;
    --blob-scale: 1;
  }

  .hero-blobs--cours .blob--course-4 {
    width: 40%;
    aspect-ratio: 1.08;
    right: 6%;
    top: 47%;
    z-index: 2;
    --blob-scale: 1;
  }

  .course-stack {
    gap: 18px;
  }

  .course-section {
    padding: 18px;
    border-radius: 22px;
  }

  .course-formulas,
  .course-formulas__group {
    gap: 14px;
  }

  .course-formulas__grid,
  .course-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-formula {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    border-radius: 18px;
  }

  .course-formula__media {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 100%;
  }

  .course-formula__body {
    gap: 10px;
    padding: 16px;
  }

  .course-formula__body h4 {
    font-size: 1rem;
  }

  .course-chip {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .course-formula__stack,
  .course-formula__dates {
    gap: 8px;
  }

  .course-formula__stack p,
  .course-formula__list li,
  .course-formula__dates p,
  .course-info-grid .tech-card p,
  .course-cta p,
  .table-footnote {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .course-formula__dates {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .course-info-grid .tech-card {
    padding: 14px 16px 16px;
  }

  .course-info-grid .tech-card h4 {
    font-size: 1.02rem;
    margin-bottom: 8px;
  }

  .course-cta {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
    border-radius: 20px;
  }

  .course-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .course-cta__actions .btn {
    min-width: 0;
    width: 100%;
  }

  .table-shell {
    border-radius: 16px;
    margin-inline: -2px;
  }

  .course-table,
  .pricing-table {
    min-width: 620px;
  }

  .course-table th,
  .course-table td,
  .pricing-table th,
  .pricing-table td {
    padding: 10px 9px;
    font-size: 0.83rem;
    font-weight: 400;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1120px, calc(100% - 18px));
  }

  .course-header .brand__logo {
    width: 112px;
  }

  .course-menu-toggle {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.88rem;
  }

  .course-main {
    padding: 6px 0 32px;
  }

  .cours-page #presentation {
    padding-bottom: 20px;
  }

  .hero-blobs--cours {
    margin-bottom: 12px;
  }

  .course-stack {
    gap: 14px;
  }

  .course-section {
    padding: 14px;
    border-radius: 18px;
  }

  .course-section__lead {
    margin-bottom: 14px;
    font-size: 0.92rem;
  }

  .course-formulas,
  .course-formulas__group,
  .course-formulas__grid,
  .course-info-grid {
    gap: 12px;
  }

  .course-formula {
    border-radius: 16px;
  }

  .course-formula__media {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 100%;
  }

  .course-formula__body {
    padding: 13px;
    gap: 8px;
  }

  .course-formula__body h4 {
    font-size: 0.95rem;
  }

  .course-chip {
    font-size: 0.76rem;
    padding: 5px 9px;
  }

  .course-formula__stack,
  .course-formula__dates {
    gap: 6px;
  }

  .course-formula__stack p,
  .course-formula__list li,
  .course-formula__dates p,
  .course-info-grid .tech-card p,
  .course-cta p,
  .table-footnote {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .course-formula__dates {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .course-info-grid .tech-card {
    padding: 13px 14px 14px;
  }

  .course-info-grid .tech-card h4 {
    font-size: 0.98rem;
    margin-bottom: 7px;
  }

  .course-cta {
    padding: 14px;
    gap: 12px;
    border-radius: 18px;
  }

  .course-table,
  .pricing-table {
    min-width: 560px;
  }
}

/* =========================================
   COMPONENTS — PRICING TABLES
========================================= */

.table-shell--mobile,
.table-mobile-stack {
  display: none;
}

.course-table,
.pricing-table {
  table-layout: fixed;
}

.course-table th,
.course-table td,
.pricing-table th,
.pricing-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .table-shell--desktop {
    display: none;
  }

  .table-shell--mobile {
    display: block;
  }

  .table-mobile-stack {
    display: grid;
    gap: 12px;
  }

  .course-table--mobile,
  .pricing-table--mobile {
    width: 100%;
    min-width: 0;
  }

  .course-table--mobile th,
  .course-table--mobile td,
  .pricing-table--mobile th,
  .pricing-table--mobile td {
    padding: 10px 8px;
    font-size: 0.82rem;
    text-align: center;
    vertical-align: middle;
    font-weight: 400;
  }

  .course-table--mobile thead th:first-child,
  .course-table--mobile tbody th {
    background: var(--lin);
    color: var(--ink);
    font-weight: 900;
  }

  .course-table--mobile thead th:not(:first-child) {
    background: var(--ficelle);
  }

  .pricing-table--mobile .pricing-table__title {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .table-footnote--pricing-mobile {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .table-mobile-stack {
    gap: 10px;
  }

  .course-table--mobile th,
  .course-table--mobile td,
  .pricing-table--mobile th,
  .pricing-table--mobile td {
    padding: 9px 7px;
    font-size: 0.76rem;
  }

  .pricing-table--mobile .pricing-table__title {
    font-size: 0.72rem;
  }
}

/* =========================================
   COMPONENTS — EDITORIAL HERO / FEATURE
========================================= */

.editorial-feature {
  padding: clamp(34px, 5vw, 56px) 0 18px;
}

.editorial-feature__shell {
  display: grid;
  gap: 24px;
}

.editorial-feature__media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-soft);
  background: var(--paper-90);
}

.editorial-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -120px;
  margin-bottom: -190px;
}

.editorial-feature__panel {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 38px);
  text-align: center;
  background: var(--course-shell-strong);
  border: 1px solid var(--course-line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.editorial-feature__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(140px, 28%);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--argile), var(--ficelle));
  transform: translate(-50%, -50%);
}

.editorial-feature__title {
  margin-bottom: 14px;
}

.editorial-feature__intro {
  display: grid;
  gap: 10px;
  max-width: 58ch;
  margin: 0 auto;
}

.editorial-feature__intro p {
  margin: 0;
  color: var(--ink-80);
}

.editorial-feature__intro p:first-child {
  font-size: clamp(22px, 2.6vw, 34px);
  text-transform: uppercase; 
  line-height: 1.2;
  color: var(--khol);
  font-weight: 500;
}

.editorial-feature__note {
  margin: 18px auto 0;
  max-width: 40ch;
  padding-top: 18px;
  border-top: 1px solid var(--ink-20);
  color: var(--ink-70);
  font-style: italic;
}

.editorial-feature--overlap .editorial-feature__shell {
  gap: 0;
}

.editorial-feature--overlap .editorial-feature__panel {
  margin-top: clamp(-74px, -7vw, -48px);
}

.editorial-feature--stacked .editorial-feature__shell {
  gap: 24px;
}

.editorial-feature--banded .editorial-feature__shell {
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-soft);
  background: var(--course-shell-strong);
}

.editorial-feature--banded .editorial-feature__media {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.editorial-feature--banded .editorial-feature__panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 3.4vw, 38px) clamp(22px, 4vw, 42px);
  border: 0;
  border-top: 1px solid var(--course-line);
  border-radius: 0;
  box-shadow: none;
  background: var(--paper-90);
}

.editorial-feature--banded .editorial-feature__panel::before {
  display: none;
}

.editorial-feature--banded .editorial-feature__intro,
.editorial-feature--banded .editorial-feature__note {
  max-width: 72ch;
}

.editorial-feature--banded .editorial-feature__note {
  margin-top: 20px;
}

@media (max-width: 820px) {
  .editorial-feature__panel {
    width: min(100%, calc(100% - 20px));
    padding: clamp(20px, 6vw, 28px);
  }

  .editorial-feature--overlap .editorial-feature__panel {
    margin-top: -18px;
  }

  .editorial-feature__intro p:first-child {
    font-size: clamp(20px, 6vw, 28px);
  }

  .editorial-feature--banded .editorial-feature__panel {
    padding: 22px 18px 24px;
  }
}

/* =========================================
   PAGE-COURSE — SIGNUP / MEMBERSHIP
========================================= */

.course-signup-section {
  overflow: hidden;
}

.course-signup-blobs {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  width: 100%;
}

.course-signup-blobs .blob {
  position: relative;
  flex: 0 0 auto;
}

/* COURS */
.blob--signup-1 {
  width: 31%;
  left: 3%;
  min-height: 360px;
  z-index: 2;
  --blob-scale: 1.50;
}

.blob--signup-2 {
  width: 32%;
  left: -1%;
  min-height: 410px;
  z-index: 3;
  --blob-scale: 1.70;
}

.blob--signup-3 {
  width: 29%;
  left: -4%;
  min-height: 345px;
  z-index: 1;
  --blob-scale: 1.26;
}

/* STAGES */
.blob--signup-4 {
  width: 31%;
  left: 3%;
  min-height: 360px;
  z-index: 3;
  --blob-scale: 1.50;
}

.blob--signup-5 {
  width: 32%;
  left: -1%;
  min-height: 410px;
  z-index: 2;
  --blob-scale: 1.70;
}

.blob--signup-6 {
  width: 29%;
  left: -4%;
  min-height: 345px;
  z-index: 1;
  --blob-scale: 1.26;
}

.course-signup-blobs .blob__inner {
  padding: 30px 34px !important;
}

.course-signup-blob__content {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  width: 100%;
  max-width: 92%;
  min-height: 100%;
}

.course-signup-blobs .blob__title {
  margin-bottom: 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.course-signup-blobs .blob__text {
  max-width: 95%;
  line-height: 1.45;
}

.course-signup-blobs .btn {
  margin-top: 4px;
  width: min(100%, 270px);
}

@media (max-width: 1080px) {
  .course-signup-blobs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .blob--signup-1,
  .blob--signup-2,
  .blob--signup-3 {
    width: min(100%, 420px);
  }

  .blob--signup-2 {
    min-height: 380px;
  }

  .blob--signup-4,
  .blob--signup-5,
  .blob--signup-6 {
    width: min(100%, 420px);
  }

  .blob--signup-5 {
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  .course-signup-blobs {
    gap: 14px;
    margin-top: 12px;
  }

  .blob--signup-1,
  .blob--signup-2,
  .blob--signup-3 {
    min-height: 300px;
  }

  .blob--signup-4,
  .blob--signup-5,
  .blob--signup-6 {
    min-height: 300px;
  }

  .course-signup-blobs .blob__inner {
    padding: 26px 24px !important;
  }

  .course-signup-blob__content {
    max-width: 100%;
    gap: 12px;
  }

  .course-signup-blobs .blob__title {
    font-size: 1.02rem;
  }

  .course-signup-blobs .blob__text {
    font-size: 0.92rem;
    line-height: 1.4;
  }
}

/* =========================================================
   HEADER / MENU 2 NIVEAUX — VERSION SIMPLIFIÉE
   Remplace les anciens blocs de correction du header ajoutés en bas du fichier.
========================================================= */

/* Header partagé — pages internes */
.course-header {
  border-bottom: 1px solid var(--ink-10);
}

.course-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 24px;
  padding: 14px 0;
}

.course-header .brand {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.course-header .course-nav-group {
  grid-column: 2;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  width: 100%;
  align-self: center;
}

.course-header .course-nav {
  width: 100%;
}

.course-header .course-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--ink-20);
  background: var(--white);
  color: var(--argile);
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.course-header .course-nav a:hover,
.course-header .course-nav a:focus-visible {
  border-color: var(--ink-20);
  background: var(--white);
}

.course-header .course-nav .course-nav__cta,
.course-header .course-nav .is-current {
  background: var(--argile);
  color: var(--white);
  border-color: var(--ink-10);
  box-shadow: none;
}

.course-header .course-nav .course-nav__cta:hover,
.course-header .course-nav .course-nav__cta:focus-visible,
.course-header .course-nav .is-current:hover,
.course-header .course-nav .is-current:focus-visible {
  background: var(--argile);
  border-color: var(--transparent);
}

/* Header interne — version desktop */
@media (min-width: 821px) {
  .course-header .header-inner {
    min-height: 132px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .course-header .brand {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .course-header .course-nav-group {
    grid-column: 2;
    grid-row: 1 / span 2; /* le menu prend toute la hauteur du header */
    min-width: 0;
    display: flex;
    align-items: center;   /* centrage vertical réel */
    width: 100%;
    height: 100%;
    padding-top: 14px;
    align-self: center;
  }

  .course-header .course-nav {
    width: 100%;
    margin: 0;
  }

  .course-header .course-nav--primary,
  .course-header .course-nav--secondary {
    display: grid;
    grid-template-columns: repeat(var(--nav-cols, 5), minmax(0, 1fr));
    align-items: center;
    width: 100%;
  }

  .course-header .course-nav--primary {
    gap: 12px;
  }

  .course-header .course-nav--secondary {
    gap: 10px;
  }

  .course-header .course-nav--primary a {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
  }

  .course-header .course-nav--secondary a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }
}

/* Header interne — version mobile */
@media (max-width: 820px) {
  .course-header .header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 0;
  }

  .course-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .course-header .brand__logo {
    width: 128px;
  }

  .course-header .course-menu-toggle {
    display: inline-flex;
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }

  .course-header .course-nav-group {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--ink-10);
    background: var(--paper-95);
    box-shadow: var(--shadow-soft);
    gap: 12px;
  }

  .course-header .course-nav-group.is-open {
    display: grid;
  }

  .course-header .course-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .course-header .course-nav + .course-nav {
    padding-top: 12px;
    border-top: 1px solid var(--ink-10);
  }

  .course-header .course-nav a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }
}

/* =========================================
   SHARED PAGES — WORKSHOP / PROFILE / CONTACT
========================================= */

.about-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about-download__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
}

.about-page .about-feature__media {
  aspect-ratio: 16 / 7;
}

.about-page .about-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.about-page .about-feature__media--portrait {
  aspect-ratio: 16 / 8.6;
}

.about-page .about-feature__media--portrait img {
  object-position: center 32%;
}

.about-page .about-feature__media--atelier img {
  object-position: center 46%;
}

.about-page .about-feature__media--contact img {
  object-position: center 38%;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--argile-10);
  border: 1px solid var(--terracotta-20);
  color: var(--ink-80);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-two-cols {
  display: grid;
  /*grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.88fr);*/
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.atelier-two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.88fr);
  /*grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);*/
  gap: 24px;
  align-items: start;
}

.about-rich-text {
  display: grid;
  gap: 14px;
}

.about-rich-text p {
  margin: 0;
  /* color: var(--terra); */
  color: var(--ink-80);
}

.about-rich-text h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  box-shadow: var(--shadow-soft);
}

.about-card h3,
.about-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.about-card p,
.about-card li {
  color: var(--ink-80);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.about-card li + li {
  margin-top: 0.45rem;
}

.about-mission-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-mission-list li {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 54px;
  border-radius: 20px;
  background: var(--paper-90);
  border: 1px solid var(--terracotta-20);
  box-shadow: var(--shadow-soft);
  color: var(--ink-80);
}

.about-mission-list li::before {
  content: counter(about-missions);
  counter-increment: about-missions;
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--argile);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

.about-missions {
  counter-reset: about-missions;
}

.about-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--lin-80);
  border: 1px solid var(--terracotta-20);
  text-decoration: none;
}

.about-download strong {
  letter-spacing: 0.03em;
}

.about-info-stack {
  display: grid;
  gap: 18px;
}

.about-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.about-stat {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 22px;
  background: var(--course-muted-bg);
  border: 1px solid var(--terracotta-20);
}

.about-stat__value {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1;
  color: var(--terracotta);
  font-weight: 500;
}

.about-stat__label {
  color: var(--ink-80);
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.about-gallery-card {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  box-shadow: var(--shadow-soft);
}

.about-gallery-card--wide {
  grid-column: span 6;
}

.about-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  /*aspect-ratio: 1 / 1;*/
  object-fit: cover;
}

.about-gallery-card--wide img {
  aspect-ratio: 1 / 1;
}

.about-gallery-card figcaption {
  padding: 12px 14px 14px;
  color: var(--ink-80);
  font-size: 0.92rem;
}

.about-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-profil-page #parcours .about-split {
  margin-top: 24px;
}

.about-highlight {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--argile-20), var(--lin-90));
  border: 1px solid var(--terracotta-20);
}

.about-highlight h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terra);
  font-weight: 900;
}

.about-highlight p,
.about-highlight li {
  margin: 0;
  color: var(--ink-80);
}

.about-highlight ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-section-intro {
  margin: 0 0 18px;
}

.contact-section-intro p {
  margin: 0;
  color: var(--ink-80);
}

.contact-form-card,
.contact-map-card,
.contact-address-card {
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-form-card {
  padding: 24px;
}

.contact-form-intro {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.contact-form-intro p {
  margin: 0;
}

.contact-form-card h3,
.contact-map-card h3,
.contact-address-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
}

.contact-direct-band {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--paper-95);
  border: 1px solid var(--terracotta-20);
}

.contact-direct-band__title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
}

.contact-direct-band__text {
  margin: 0;
  color: var(--ink-80);
}

.contact-direct-band .reveal-group,
.contact-direct-band .reveal-btn,
.contact-direct-band .reveal-link {
  width: auto;
  min-width: 180px;
}

.contact-social-band {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--paper-95);
  border: 1px solid var(--terracotta-20);
}

.contact-social-band__title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
}

.contact-social-band__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--lin-light);
  border: 1px solid var(--ink-10);
  color: var(--khol);
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
  background: var(--paper-95);
  border-color: var(--ink-20);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form__row--phone-subject {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field label {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--terracotta-20);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--paper-95);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.contact-field textarea {
  min-height: 215px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: none;
  border-color: var(--terracotta-40);
  box-shadow: 0 0 0 4px var(--argile-10);
}

.contact-form__actions {
  padding: 16px 18px 18px;
  display: grid;
  gap: 10px;
  align-items: center;
}

.contact-form__actions .reveal-group,
.contact-form__actions .reveal-btn,
.contact-form__actions .reveal-link {
  width: auto;
}

.contact-form__note,
.contact-submit-feedback {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.92rem;
}

.contact-submit-feedback[hidden] {
  display: none;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-map-card {
  overflow: hidden;
}

.contact-map-card__intro {
  padding: 22px 22px 0;
  margin-bottom: 16px;
}

.contact-map-card img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-map-card__body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 10px;
}

.contact-map-card__body p {
  margin: 0;
}

.contact-map-card__meta {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.92rem;
}

.contact-address-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.contact-address-card p {
  margin: 0;
}

.contact-address-card .reveal-group,
.contact-address-card .reveal-link,
.contact-address-card .reveal-btn {
  width: 100%;
}

.contact-address-card .reveal-btn,
.contact-address-card .reveal-link {
  justify-content: center;
}

.about-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-inline-links .btn,
.about-inline-links .reveal-group {
  width: auto;
}

.about-note-band {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: var(--lin-60);
  border: 1px solid var(--terracotta-20);
}

.about-note-band p {
  margin: 0;
}

@media (max-width: 1080px) {
  .about-two-cols,
  .contact-layout,
  .about-card-grid,
  .about-split {
    grid-template-columns: 1fr;
  }

  .about-gallery-card,
  .about-gallery-card--wide {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  .about-page .about-feature__media,
  .about-page .about-feature__media--portrait {
    aspect-ratio: 16 / 10;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .about-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-gallery-card,
  .about-gallery-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .about-card,
  .contact-form-card,
  .contact-address-card,
  .about-highlight,
  .about-note-band {
    padding: 18px;
    border-radius: 18px;
  }

  .contact-direct-band {
    grid-template-columns: 1fr;
  }

  .contact-direct-band .reveal-group,
  .contact-direct-band .reveal-btn,
  .contact-direct-band .reveal-link {
    width: 100%;
  }

  .about-gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-gallery-card img,
  .about-gallery-card--wide img {
    aspect-ratio: 1 / 1;
  }

  .contact-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__actions .btn {
    margin: 0;
    width: 100%;
  }
}

/* =========================================
   PAGE-CONTACT — ASSOCIATION / VALUES
========================================= */

.about-association-section {
  overflow: hidden;
}

.about-association-stack {
  display: grid;
  gap: 26px;
}

.about-missions-panel {
  display: grid;
  gap: 18px;
}

.about-missions-panel__header {
  display: grid;
  gap: 8px;
}

.about-missions-panel__header p {
  margin: 0;
  color: var(--ink-80);
}

.about-mission-list--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.about-download--full {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}

.about-values-panel {
  display: grid;
  gap: 16px;
}

.about-values-panel > h2 {
  margin-bottom: 0;
}

.about-values-blobs {
  margin-top: 0;
}

.about-values-blobs .blob__title {
  max-width: 90%;
}

.about-values-blobs .blob__text {
  max-width: 92%;
}

@media (max-width: 900px) {
  .about-mission-list--split {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PAGE-HOME — CORE
========================================= */

.home-main {
  padding: 10px 0 10px;
}

.home-stack {
  display: grid;
  gap: 26px;
}

.home-section {
  background: var(--course-shell);
  border: 1px solid var(--course-line);
  border-radius: 28px;
  padding: clamp(24px, 3.6vw, 38px);
  box-shadow: var(--shadow-soft);
}

.home-feature-header {
  margin-bottom: 12px;
}

.home-section__lead {
  margin: 0 0 22px;
  /*max-width: 65ch;*/
}

.home-two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.home-editorial {
  display: grid;
  gap: 16px;
}

.home-aside {
  background: var(--course-muted-bg);
  border: 1px solid var(--terracotta-20);
  border-radius: 22px;
  padding: 22px;
}

.home-aside h3,
.home-info-card h3,
.home-formulas__group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.home-aside ul,
.home-formula__list {
  margin: 0;
  padding-left: 1.1rem;
}

.home-aside li,
.home-formula__list li {
  margin-bottom: 0.45rem;
  color: var(--ink-80);
}

.home-visual-banner {
  margin-top: 24px;
}

.home-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--paper-95);
  border: 1px solid var(--terracotta-20);
  font-style: italic;
}

.home-info-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 0;
}

.home-info-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--sand-light);
  /*border: 1px solid var(--terracotta-20);*/
  color: var(--ink-90);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.home-formulas {
  display: grid;
  gap: 20px;
}

.home-formulas__group {
  display: grid;
  gap: 18px;
}

.home-formulas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-formula__media {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  box-shadow: var(--shadow-soft);
}

.home-formula__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-formula__media--gift img {
  object-fit: contain;
  padding: 28px;
}

.home-gallery-card {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  box-shadow: var(--shadow-soft);
}

.home-formula__body {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  padding: 20px;
}

.home-formula__body h4 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.16;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 400;
}

.home-formula__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 400;
  background: var(--lin-light);
  color: var(--ink-90);
}

.home-info-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 18px 0 0;
}

.home-info-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--sand-light);
  color: var(--ink-90);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.home-formula__stack {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-formula__dates {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--lin-60);
}

.home-formula__dates p {
  margin: 0;
}

.home-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--argile-20), var(--lin-90));
  border: 1px solid var(--terracotta-20);
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.home-cta__actions .btn {
  min-width: 190px;
}

.home-mini-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

.home-anchor-offset {
  scroll-margin-top: 7rem;
}

/* --- */

.accueil-galerie-intro {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.accueil-galerie-intro p {
  margin: 0;
}

.accueil-galerie-title {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.accueil-news-intro {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.accueil-news-intro p {
  margin: 0;
}

.accueil-news-title {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.accueil-page .about-gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.accueil-page .about-gallery-card figcaption {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 132px;
}

.accueil-page .about-gallery-card figcaption strong {
  display: block;
  color: var(--terra);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.accueil-page .about-gallery-card figcaption p {
  margin: 0;
}

@media (max-width: 900px) {
  .accueil-page .about-gallery-card figcaption {
    min-height: 0;
  }
}

/* =========================================
   PAGE-HOME — NEWS
   Modifie uniquement la rubrique "Actualités"
========================================= */

.home-news-section .display-caps {
  margin-bottom: 18px;
}

.home-news-list {
  display: grid;
  gap: 18px;
}

.home-news-item {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 300px);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.home-news-item__content {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 22px 24px;
}

.home-news-item__title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

.home-news-item__text {
  margin: 0;
  color: var(--ink-80);
}

.home-news-item__text a {
  color: var(--terra);
  font-weight: 500;
  text-decoration: none;
}

.home-news-item__text a:hover,
.home-news-item__text a:focus-visible {
  text-decoration: underline;
}

.home-news-item__media {
  margin: 0;
  height: 100%;
}

.home-news-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .home-news-item {
    grid-template-columns: 1fr;
  }

  .home-news-item__content {
    padding: 18px 18px 16px;
  }

  .home-news-item__media {
    height: auto;
  }

  .home-news-item__media img {
    width: 100%;
    height: auto;
    min-height: 0;
    /*aspect-ratio: 1 / 1;*/
  }
}

/* =========================================
   COMPONENTS — GALLERY / HOVER
   Ajustement minimal pour les galeries de l’accueil.
========================================= */

.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover)::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gallery-hover-overlay);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity .18s ease;
  backface-visibility: hidden;
}

.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover)::before {
  content: attr(data-gallery-alt);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .18s ease;
  text-wrap: balance;
  border-radius: inherit;
  backface-visibility: hidden;
}

.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover):hover::after,
.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover):hover::before,
.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover):focus-within::after,
.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover):focus-within::before {
  opacity: 1;
}

/* =========================================
   COMPONENTS — GALLERY / CAROUSEL NAV
========================================= */

.gallery-carousel-shell {
  position: relative;
  padding-inline: 0;
  --gallery-side-space: clamp(24px, 3.6vw, 38px);
  --gallery-nav-size: min(30px, var(--gallery-side-space));
  --gallery-gap: 18px;
}

.gallery-carousel-shell .about-gallery-grid {
  margin: 0;
}

.gallery-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--gallery-nav-size);
  height: var(--gallery-nav-size);
  border: 1px solid var(--transparent);
  border-color: var(--ink-20);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: var(--argile);
  background: var(--paper-90);
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
  z-index: 3;
}

.gallery-carousel-nav:hover,
.gallery-carousel-nav:focus-visible {
  background: var(--white);
  box-shadow: 0 14px 30px var(--terracotta-20);
  border-color: var(--ink-20);
}

.gallery-carousel-nav:active {
  transform: translateY(-50%) scale(0.97);
}

.gallery-carousel-nav svg {
  width: 16px;
  height: 16px;
  display: block;
}

.gallery-carousel-nav--prev {
  left: calc((-1 * var(--gallery-side-space)) + ((var(--gallery-side-space) - var(--gallery-nav-size)) / 2));
}

.gallery-carousel-nav--next {
  right: calc((-1 * var(--gallery-side-space)) + ((var(--gallery-side-space) - var(--gallery-nav-size)) / 2));
}

/* Cas particulier : Céline Lecou -> carte fixe à gauche, navigation sur les 2 images de droite */
.gallery-carousel-shell--fixed-first .gallery-carousel-nav--prev {
  left: calc(33.333% + (var(--gallery-gap) / 3) - (var(--gallery-nav-size) / 2));
}

.gallery-carousel-shell--fixed-first .gallery-carousel-nav--next {
  right: calc((-1 * var(--gallery-side-space)) + ((var(--gallery-side-space) - var(--gallery-nav-size)) / 2));
}

@media (max-width: 820px) {
  .gallery-carousel-nav {
    display: none;
  }
}

/* =========================================
   COMPONENTS — GALLERY / FIXED FIRST CARD
========================================= */

.gallery-carousel-shell--fixed-first {
  --gallery-gap: 18px;
}

.gallery-carousel-shell--fixed-first .gallery-carousel-nav--prev {
  left: calc(33.333% + (var(--gallery-gap) / 3) - (var(--gallery-nav-size) / 2));
}

.gallery-carousel-shell--fixed-first .gallery-carousel-nav--next {
  right: calc((-1 * var(--gallery-side-space)) + ((var(--gallery-side-space) - var(--gallery-nav-size)) / 2));
}

@media (max-width: 820px) {
  .gallery-carousel-shell {
    padding-inline: 0;
  }

  .gallery-carousel-nav {
    display: none;
  }
}

/* =========================================
   COMPONENTS — GALLERY / SQUARE MEDIA
   Objectif :
   - galeries et actualités en vrai carré
   - masque arrondi conservé
   - exception carte de visite à coins carrés
   - aucune modification du contenu HTML
========================================= */

/* Cartes de galeries : carré réel, plus aérées sans créer de bordure */
.about-gallery-grid .about-gallery-card {
  display: block;
  position: relative;
  width: 96%;
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-self: start;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
  padding: 0;
  transform: translateZ(0);
}

.about-gallery-grid .about-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.about-gallery-grid .about-gallery-card figcaption {
  display: none;
}

/* Actualités : image carrée alignée sur le gabarit des galeries, sans faux liseré */
.home-news-item {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 352px);
  gap: 18px;
}

.home-news-item__media {
  position: relative;
  width: min(96%, 352px);
  max-width: 352px;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  align-self: center;
  justify-self: end;
  overflow: hidden;
  border-radius: 24px;
  padding: 0;
}

.home-news-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Profil — image du parcours alignée sur le gabarit des galeries, sans bordure interne */
.about-profil-page #parcours .about-info-stack .about-gallery-card {
  display: block;
  width: min(96%, 352px);
  aspect-ratio: 1 / 1;
  justify-self: end;
  overflow: hidden;
  border-radius: 24px;
  padding: 0;
}

.about-profil-page #parcours .about-info-stack .about-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Carte de visite Céline Lecou : coins carrés, sans masque arrondi */
.about-gallery-grid .gallery-card--no-hover,
.about-gallery-grid .gallery-card--no-hover img,
.about-gallery-grid .gallery-card--no-hover::before,
.about-gallery-grid .gallery-card--no-hover::after {
  border-radius: 0 !important;
}

.about-gallery-grid .gallery-card--no-hover {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .home-news-item {
    grid-template-columns: 1fr;
  }

  .home-news-item__media {
    width: min(96%, 352px);
    max-width: 352px;
    aspect-ratio: 1 / 1;
    justify-self: start;
  }

  .home-news-item__media img {
    width: 100%;
    height: 100%;
  }

  .about-profil-page #parcours .about-info-stack .about-gallery-card {
    width: min(96%, 352px);
  }
}

/* =========================================
   COMPONENTS — GALLERY / CELINE NAV ADJUST
   Modifie uniquement la galerie Céline Lecou céramique :
   - espace entre images réduit de moitié
   - bouton précédent décalé pour ne plus empiéter sur la 1re image de la zone mobile
========================================= */

.gallery-carousel-shell--fixed-first {
  --gallery-gap: 9px;
}

.gallery-carousel-shell--fixed-first .about-gallery-grid {
  gap: 9px;
}

.gallery-carousel-shell--fixed-first .gallery-carousel-nav--prev {
  left: calc(33.333% + (var(--gallery-gap) / 3) - var(--gallery-nav-size));
}

/* =========================================
   COMPONENTS — GALLERY / FIREFOX FIX
   Objectif :
   - supprimer l’artefact du coin carré au rollover
   - conserver le texte en uppercase
   - laisser le carousel et .gallery-card--no-hover intacts
========================================= */

.gallery-hover-grid .about-gallery-card:not(.gallery-card--no-hover) {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
  clip-path: none;
  contain: layout paint;
}

.gallery-hover-grid .about-gallery-card:not(.gallery-card--no-hover) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover)::before,
.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover)::after {
  inset: 0;
  border-radius: inherit !important;
  clip-path: inset(0 round 24px);
  transform: translateZ(0);
  will-change: opacity;
}

.gallery-hover-grid .about-gallery-card[data-gallery-alt]:not(.gallery-card--no-hover)::after {
  background: var(--gallery-hover-overlay);
}

/* =========================================
   COMPONENTS — ARTIST FEATURE / CELINE
   Objectif :
   - transformer le bloc Céline Lecou en encart éditorial
   - afficher le logo comme illustration
   - conserver une galerie carrousel de 3 visuels juste en dessous
========================================= */

.celine-feature {
  display: grid;
  gap: 18px;
}

.celine-feature__intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.celine-feature__media {
  margin: 0;
  width: 96%;
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-self: start;
  overflow: hidden;
  border-radius: 24px;
  background: var(--course-shell-strong);
  border: 1px solid var(--terracotta-20);
  box-shadow: var(--shadow-soft);
}

.celine-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.celine-feature__content {
  grid-column: span 2;
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 2px;
}

.celine-feature__content .display-caps {
  margin: 0 0 4px;
}

.celine-feature__content p {
  margin: 0;
  color: var(--ink-80);
}

.celine-feature__gallery {
  margin-top: 0;
}

@media (max-width: 900px) {
  .celine-feature__intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .celine-feature__content {
    grid-column: auto;
    padding-top: 0;
  }

  .celine-feature__media {
    width: min(96%, 352px);
    justify-self: center;
  }
}

.stages-page .featured-badge--info-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ficelle);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* =========================================
   ARCHITECTURE — CSS MAP
   website-all      : base, boutons, blobs, composants partagés
   accueil / home   : hero d’accueil, actualités, galeries
   cours / course   : navigation 2 niveaux, sections cours, tableaux
   stages / stage   : bandeau interne stages, listes de possibilités
   atelier / workshop : bandeau interne atelier
   profil / profile : bandeau interne profil
   contact / contact : bandeau interne contact, formulaire et accès
   website-progress : page index / maintenance
   error-404        : réservé pour future page dédiée
========================================= */

/* =========================================
   PAGE-ALL — INTERNAL HERO / PAGE BANNER
========================================= */

.page-hero {
  padding-bottom: 12px;
}

.page-hero .hero-grid {
  align-items: start;
}

.page-hero__copy {
  display: grid;
  gap: 16px;
  padding: 8px 0 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  max-width: none;
}

/* Bandeau avec visuel */
.page-hero--split .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.page-hero--split .page-hero__copy > * {
  max-width: 62ch;
}

/* Bandeau sans visuel : texte centré */
.page-hero--full .hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.page-hero--full .page-hero__copy {
  width: min(100%, 840px);
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.page-hero--full .page-hero__copy .display-caps,
.page-hero--full .page-hero__copy h3 {
  text-align: center;
}

/* Bandeau sans visuel */

.page-hero--full .page-hero__visual,
.page-hero--full .page-hero__aside,
.page-hero--full .hero-blobs {
  display: none;
}

.page-hero--full .page-hero__copy > * {
  max-width: none;
}

@media (max-width: 980px) {
  .page-hero--split .hero-grid,
  .page-hero--full .hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero__copy > * {
    max-width: none;
  }
}

.page-hero__copy .pill,
.page-hero__copy .display-caps,
.page-hero__copy .lead,
.page-hero__copy p {
  margin: 0;
}

.page-hero__lead {
  max-width: 58ch;
}

.page-hero__copy .hero-actions {
  margin: 6px 0 0;
}

.page-hero__copy .course-info-bubbles {
  margin-top: 0;
}

.hero-blobs--page {
  position: relative;
  min-height: 520px;
}

.hero-blobs--page .blob {
  position: absolute;
  height: auto;
}

.hero-blobs--page .blob__inner {
  padding: 28px 26px !important;
}

.hero-blobs--page .blob__title {
  max-width: 88%;
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.hero-blobs--page .blob__text {
  max-width: 84%;
  line-height: 1.34;
}

.hero-blobs--page .blob--page-1 {
  width: 38%;
  aspect-ratio: 1.04;
  left: 0;
  top: 10%;
  z-index: 2;
  --blob-scale: 1.42;
}

.hero-blobs--page .blob--page-2 {
  width: 49%;
  aspect-ratio: 1.14;
  right: 0;
  top: 0;
  z-index: 1;
  --blob-scale: 1.46;
}

.hero-blobs--page .blob--page-3 {
  width: 44%;
  aspect-ratio: 1.06;
  left: 24%;
  top: 47%;
  z-index: 3;
  --blob-scale: 1.42;
}

@media (max-width: 1080px) {
  .page-hero .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-blobs--page {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 36px !important;
    min-height: auto !important;
    padding: 12px 0 0;
  }

  .hero-blobs--page .blob {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    min-height: 300px !important;
    inset: auto !important;
    transform: none !important;
    aspect-ratio: auto !important;
  }
}

@media (max-width: 680px) {
  .page-hero__copy {
    gap: 14px;
    padding: 0;
    border-radius: 0;
  }

  .hero-blobs--page .blob {
    min-height: 270px !important;
  }
}

.stages-page h3:not(.blob__title):not(.panel-title),
.about-atelier-page h3:not(.blob__title):not(.panel-title),
.about-profil-page h3:not(.blob__title):not(.panel-title),
.about-contact-page h3:not(.blob__title):not(.panel-title) {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 900;
}

/* =========================================
   PAGE-STAGE — CORE
========================================= */

.stages-page .stages-possibilities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stages-page .stages-list-card {
  height: 100%;
}

.stages-page .stages-list-card h4 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terra);
}

.stages-page .stages-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 10px;
  color: var(--ink-80);
}

.stages-page .stages-section-note {
  margin-top: 10px;
}

.stages-page .feature-section {
  padding-top: 0;
}

@media (max-width: 1080px) {
  .stages-page .stages-possibilities__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PAGE-WORKSHOP — HERO ADJUSTMENTS
========================================= */

.page-hero--atelier .blob--page-1 {
  top: 12%;
}

/* =========================================
   PAGE-WORKSHOP — ATELIER EN PRATIQUE
   Layout proche de la rubrique stage vedette
========================================= */

.atelier-practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(350px, .98fr);
  gap: 34px;
  align-items: start;
}

.atelier-practice-blobs {
  position: relative;
  min-height: 320px;
}

.atelier-practice-blobs .blob {
  position: absolute;
  height: auto;
}

.atelier-practice-blobs .blob--atelier-practice-1 { order: 2; }
.atelier-practice-blobs .blob--atelier-practice-2 { order: 1; }
.atelier-practice-blobs .blob--atelier-practice-3 { order: 3; }

.atelier-practice-blobs .blob--atelier-practice-1 {
  width: 32%;
  aspect-ratio: 1;
  left: 4%;
  top: 42%;
  z-index: 2;
  --blob-scale: 1.45;
}

.atelier-practice-blobs .blob--atelier-practice-2 {
  width: 40%;
  aspect-ratio: 1.15;
  left: 44%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
  --blob-scale: 1.60;
}

.atelier-practice-blobs .blob--atelier-practice-3 {
  width: 40%;
  aspect-ratio: 1.1;
  right: 2%;
  top: 45%;
  z-index: 3;
  --blob-scale: 1.8;
}

@media (max-width: 980px) {
  .atelier-practice-layout {
    grid-template-columns: 1fr;
  }

  .atelier-practice-blobs {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
    min-height: auto !important;
    padding: 30px 0;
  }

  .atelier-practice-blobs .blob {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    min-height: 340px !important;
    inset: auto !important;
    transform: none !important;
    aspect-ratio: auto !important;
  }
}

@media (max-width: 680px) {
  .atelier-practice-blobs .blob {
    min-height: 280px !important;
  }

  .atelier-practice-blobs .blob--atelier-practice-1 {
    --blob-scale: 1.26;
  }

  .atelier-practice-blobs .blob--atelier-practice-2 {
    --blob-scale: 1.26;
  }

  .atelier-practice-blobs .blob--atelier-practice-3 {
    --blob-scale: 1.26;
  }
}

/* =========================================
   PAGE-PROFILE — HERO ADJUSTMENTS
========================================= */

.page-hero--profil .blob--page-2 {
  top: 2%;
}

/* =========================================
   PAGE-CONTACT — HERO ADJUSTMENTS
========================================= */

.page-hero--contact .blob--page-3 {
  top: 49%;
}

/* =========================================
   PAGE-PROGRESS
   Note : la page d’attente continue d’utiliser le hero principal existant.
========================================= */

/* =========================================
   ERROR-404
   Réservé pour une future intégration.
========================================= */

/* =========================================
   COMPONENTS — BUTTONS / BTN-BLOB
========================================= */

.btn-blob {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 80%;
  min-width: 0;
  min-height: 35px;
  padding: 8px 10px;
  border-radius: 999px;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;

  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;

  border: 1px solid var(--transparent);
  background: var(--white-80);
  color: var(--btn-ghost-text);

  transition:
    transform .08s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.btn-blob:active {
  transform: translateY(1px);
}

.btn-blob:hover,
.btn-blob:focus-visible {
  background: var(--btn-ghost-bg-hover);
  border-color: var(--btn-ghost-border-hover);
  color: var(--btn-ghost-text);
  box-shadow: var(--btn-ghost-shadow);
  text-decoration: none;
}

@media (max-width: 680px) {
  .btn-blob {
    width: 100%;
  }
}

.blob--image-terracotta .btn-blob,
.blob--image-argile .btn-blob,
.blob--image-teint .btn-blob,
.blob--image-khol .btn-blob {
  background: var(--white-20) !important;
  border-color: var(--white-20) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.blob--image-terracotta .btn-blob:hover,
.blob--image-argile .btn-blob:hover,
.blob--image-teint .btn-blob:hover,
.blob--image-khol .btn-blob:hover,
.blob--image-terracotta .btn-blob:focus-visible,
.blob--image-argile .btn-blob:focus-visible,
.blob--image-teint .btn-blob:focus-visible,
.blob--image-khol .btn-blob:focus-visible {
  background: var(--btn-ghost-bg-hover) !important;
  border-color: var(--btn-ghost-border-hover) !important;
  color: var(--btn-ghost-text) !important;
  box-shadow: var(--btn-ghost-shadow) !important;
  text-decoration: none;
}

/*
.blob--contact-1 .btn-blob,
.blob--contact-3 .btn-blob,
.blob--contact-4 .btn-blob {
  background: var(--paper-90);
  color: var(--ink-90);
}

.contact-direct-band .contact-form__actions .btn-blob,
.contact-social-band .contact-form__actions .btn-blob,
.contact-map-card__body > .btn-blob,
.contact-form__actions .btn-blob {
  width: 100%;
  min-height: 35px;
  justify-content: center;
  box-shadow: 0 8px 18px var(--ink-deep-10);
}*/

