/* ==========================================================================
   Les Prépas de Mathilde · Écoles
   Design system : DESIGN.md (direction « mix premium éditorial »)
   Tokens repris tels quels depuis le frontmatter YAML de DESIGN.md.
   ========================================================================== */

:root {
  /* Couleurs : surfaces */
  --surface-page: #FFFDF7;
  --surface-section: #FAFAF8;
  --surface-card: #F5F3F0;

  /* Couleurs : encres */
  --ink-strong: #1A1816;
  --ink: #2E2A27;
  --text-muted: #6B645E;
  --text-faint: #8A827A;

  /* Filets & bordures */
  --hairline: #2E2A2726;
  --border-soft: #EDE8E1;
  --border-card: #E7E2DB;
  --border-control: #DDD6CE;
  --border-strong: #8F877F;

  /* Rose Mathilde */
  --rose-cta: #F4A5B8;
  --rose-cta-hover: #E8899F;
  --rose-editorial: #E85A7C;
  --rose-deep: #B23A57;
  --rose-pale: #FBE3E9;
  --rose-pale-border: #F3C9D4;

  /* Vert Manolo */
  --manolo-green: #2E7D32;
  --manolo-surface: #E8F5E9;
  --manolo-border: #A5D6A7;
  --manolo-track: #C8E6C9;
  --manolo-fill-end: #43A047;

  /* Typographie */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Caveat', cursive;
  --font-tab: 'Quicksand', sans-serif;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 22px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;
  --gutter: 38px;
  --margin-mobile: 24px;
  --margin-desktop: 60px;
  --container-max: 1120px;

  /* Barres fixées mobile */
  --sticky-cta-height: 64px;
  --sticky-gift-height: 32px;
}

/* ==========================================================================
   Reset & fondations
   ========================================================================== */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

ul, ol { list-style: none; }

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

input { font: inherit; color: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}

@media (min-width: 900px) {
  .container { padding: 0 var(--margin-desktop); }
}

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

.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 20px;
  background: var(--ink-strong);
  color: var(--surface-page);
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

/* Focus visible partout : outline 2px rose-deep, jamais supprimé sans remplacement */
:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
}

section { padding: var(--space-8) 0; }
@media (max-width: 899px) {
  section { padding: 40px 0; }
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink-strong); }

.section-heading {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: var(--space-2);
}

.section-lede {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   Masthead
   ========================================================================== */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: 20px var(--margin-mobile) 14px;
  border-bottom: 1px solid var(--ink-strong);
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .masthead { padding: 20px var(--margin-desktop) 14px; }
}
.masthead .brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}
.masthead .brand em {
  font-style: normal;
  color: var(--rose-editorial);
}
.masthead .ref {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--manolo-green);
  font-weight: 600;
}

/* ==========================================================================
   HERO (section 1)
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, var(--surface-page) 0%, var(--surface-section) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 0;
}
.hero::after {
  content: '';
  position: absolute;
  right: -160px; top: -100px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,165,184,.14), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.3fr 0.7fr; }
}

.col-main {
  padding: 40px 0 34px;
}
@media (min-width: 900px) {
  .col-main {
    padding: var(--space-8) var(--gutter) var(--space-8) 0;
    border-right: 1px solid var(--hairline);
  }
}

.col-side {
  padding: 30px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 900px) {
  .col-side { padding: var(--space-8) 0 var(--space-8) var(--gutter); }
}

.badge-manolo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--manolo-surface);
  color: var(--manolo-green);
  border: 1px solid var(--manolo-border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
}
.badge-manolo::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--manolo-green);
}

.hero h1 {
  font-weight: 300;
  font-size: clamp(31px, 4.2vw, 47px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 24px 0 20px;
}
.hero h1 b { font-weight: 800; }
.hero h1 .u {
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--rose-editorial);
}
.hero .sub {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-cta);
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  border-radius: var(--radius-full);
  padding: 16px 30px;
  min-height: 44px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(244,165,184,.45), 0 2px 6px rgba(46,42,39,.08);
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary::after {
  content: '→';
  margin-left: 11px;
  color: var(--rose-editorial);
}
.btn-primary:hover { background: var(--rose-cta-hover); transform: translateY(-2px); }
.btn-primary[aria-disabled="true"] {
  background: var(--border-control);
  color: var(--text-muted);
  box-shadow: none;
  cursor: default;
  transform: none;
}
.btn-primary[aria-disabled="true"]::after { color: var(--text-muted); }
.btn-primary[aria-disabled="true"]:hover { background: var(--border-control); transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 15px 26px;
  min-height: 44px;
  background: var(--surface-page);
  transition: border-color .15s ease;
}
.btn-secondary:hover { border-color: var(--rose-cta); }

.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.cta-note b { color: var(--ink); }

/* Carte Mathilde */
.mathilde-card {
  background: var(--surface-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-2xl);
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(46,42,39,.09);
}
.blob {
  width: 92px; height: 92px;
  margin: 0 auto 12px;
  border-radius: 46% 54% 55% 45% / 48% 44% 56% 52%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-cta), #EFC3CF);
}
.blob img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mathilde-card .sig {
  font-family: var(--font-script);
  font-size: 25px;
  font-weight: 600;
  color: var(--rose-editorial);
}
.mathilde-card .role { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* Encarts conformité */
.conform-card {
  background: var(--surface-section);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 15px 18px;
}
.conform-card .k {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.conform-card p { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.conform-card p b { color: var(--ink); }
.conform-card.manolo { background: var(--manolo-surface); border-color: var(--manolo-border); }
.conform-card.manolo .k { color: var(--manolo-green); }
.conform-card.admin .k { color: var(--rose-deep); }

/* Barre de confiance (section 2) */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink-strong);
}
@media (min-width: 900px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}
.trust > div {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--hairline);
}
.trust > div:last-child { border-bottom: none; }
@media (min-width: 900px) {
  .trust > div { border-bottom: none; border-right: 1px solid var(--hairline); padding: 20px var(--space-4) 24px; }
  .trust > div:last-child { border-right: none; }
}
.trust .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  color: var(--rose-editorial);
  letter-spacing: -0.01em;
}
.trust .lbl {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   LE CONSTAT (section 2bis)
   ========================================================================== */

.pain-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-5);
}
@media (min-width: 900px) {
  .pain-layout { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); }
}
.pain-visual {
  display: flex;
  justify-content: center;
  margin: 0;
}
.pain-blob {
  width: min(340px, 78vw);
  aspect-ratio: 5 / 6;
  border-radius: 46% 54% 55% 45% / 48% 44% 56% 52%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-pale), var(--rose-cta));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pain-blob img {
  width: 88%;
  height: 94%;
  object-fit: cover;
  object-position: top center;
}

.pain-list {
  display: flex;
  flex-direction: column;
}
.pain-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
}
.pain-item:first-child { border-top: 1px solid var(--ink-strong); }
.pain-num {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--rose-editorial);
}
.pain-item h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
}
.pain-item p {
  font-size: 14.5px;
  color: var(--text-muted);
}
.pain-solution {
  margin-top: var(--space-2);
}
.pain-solution strong {
  color: var(--rose-deep);
  font-weight: 700;
}

.network-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.network-badges-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.network-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--rose-pale);
  border: 1px solid var(--rose-pale-border);
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pain-pivot {
  margin: var(--space-7) auto 0;
  max-width: 58ch;
  text-align: center;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

/* ==========================================================================
   PRODUITS (section 2ter)
   ========================================================================== */

.discover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-2);
}
@media (min-width: 900px) {
  .discover-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
}

.discover-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 10px 28px rgba(46,42,39,.08);
}
.discover-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.discover-img--product {
  object-fit: contain;
  height: 260px;
  padding: var(--space-2) 0;
}
.discover-card .section-eyebrow { margin-bottom: 6px; }
.discover-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.discover-card p.discover-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-strong);
  margin-bottom: var(--space-3);
}
.discover-card > p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: var(--space-3);
}
.discover-benefits {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: var(--space-4);
}
.discover-benefits li {
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}
.discover-benefits li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose-cta);
}
.discover-link {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--rose-deep);
  text-decoration: underline;
}
.discover-link:hover { color: var(--rose-editorial); }

.gift-showcase {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  background: var(--manolo-surface);
  border: 1px solid var(--manolo-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .gift-showcase { grid-template-columns: 0.7fr 1.3fr; gap: var(--gutter); padding: var(--space-6); }
}
.gift-showcase-img { margin: 0; }
.gift-showcase-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}
.gift-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--manolo-green);
  margin-bottom: var(--space-2);
}
.gift-showcase-body h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.gift-showcase-body > p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.gift-showcase-body .discover-benefits li { background: transparent; }
.gift-value { margin-top: var(--space-3); }
.gift-value strong { color: var(--manolo-green); font-weight: 700; }

/* ==========================================================================
   CONFIGURATEUR (section 3)
   ========================================================================== */

.config-section { padding-top: var(--space-6); }

.tabs {
  display: flex;
  gap: 6px;
  padding: 0 4px;
  flex-wrap: wrap;
}
.tab {
  font-family: var(--font-tab);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 22px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px 14px 0 0;
  background: var(--border-control);
  color: var(--text-muted);
  border: 1px solid #D0C8BF;
  border-bottom: none;
  text-decoration: none;
}
.tab.t-rose { background: var(--rose-pale); color: var(--rose-deep); border-color: var(--rose-pale-border); }
.tab.t-active { background: var(--surface-section); color: var(--ink-strong); border-color: var(--border-card); }

.config-card {
  background:
    repeating-linear-gradient(180deg,
      transparent 0, transparent 33px,
      rgba(244,165,184,.16) 33px, rgba(244,165,184,.16) 34px),
    var(--surface-section);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 22px;
  box-shadow: 0 14px 40px rgba(46,42,39,.12);
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .config-card { padding: 44px 56px; }
}

.config-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink-strong);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.config-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.config-head .idx {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--rose-deep);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.config-lede {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 62ch;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
  align-items: start;
}
@media (min-width: 900px) {
  .config-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--gutter); }
}

/* Ligne produit + stepper */
.product-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 19px 22px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.product-line .name { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.product-line .benefit { font-size: 13px; color: var(--text-muted); margin-top: 3px; max-width: 40ch; }
.product-line .price { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.stepper {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-page);
  flex-shrink: 0;
}
.stepper button {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--rose-deep);
  font-weight: 800;
  font-size: 17px;
}
.stepper button:disabled { color: var(--border-control); cursor: default; }
.stepper button:not(:disabled):hover { background: var(--rose-pale); }
.stepper .qty {
  width: 52px; height: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  background: var(--surface-card);
  color: var(--ink-strong);
  border: none;
  border-left: 1.5px solid var(--border-strong);
  border-right: 1.5px solid var(--border-strong);
  -moz-appearance: textfield;
}
.stepper .qty::-webkit-outer-spin-button,
.stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Cartes paliers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
@media (max-width: 559px) {
  .tiers { grid-template-columns: 1fr; }
}
.tier {
  background: var(--surface-page);
  border: 1px solid var(--border-card);
  border-radius: 14px 14px 12px 12px;
  padding: 0 0 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
}
.tier .tab-top {
  display: block;
  font-family: var(--font-tab);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 4px;
  background: var(--surface-card);
  color: var(--text-muted);
  margin-bottom: 9px;
}
.tier b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 2px;
}
.tier.is-active { border-color: var(--rose-cta); box-shadow: 0 4px 14px rgba(244,165,184,.28); }
.tier.is-active .tab-top { background: var(--rose-pale); color: var(--rose-deep); }
.tier.is-active b { color: var(--rose-editorial); }
.tier .gift-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--manolo-green);
  background: var(--manolo-surface);
  border: 1px solid var(--manolo-border);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}

/* Barre de cadeau (inline, région aria-live) */
.gift-bar {
  margin-top: 22px;
  background: var(--manolo-surface);
  border: 1px solid var(--manolo-border);
  border-radius: var(--radius-lg);
  padding: 18px 21px;
}
.gift-bar.is-hidden { display: none; }
.gift-bar .gift-text { font-size: 13.5px; font-weight: 600; color: var(--manolo-green); }
.gift-bar .progress-track {
  margin-top: 11px;
  height: 10px;
  background: var(--manolo-track);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.gift-bar .progress-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--manolo-green), var(--manolo-fill-end));
  width: 0%;
  transition: width .3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .gift-bar .progress-fill { transition: none; }
}
.gift-bar .steps {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Copie décorative desktop, épinglée en haut du viewport une fois la barre
   inline (aria-live) sortie de l'écran au scroll. Décorative : aria-hidden,
   toujours synchronisée par script.js sur la barre inline. */
.gift-bar--sticky-desktop {
  display: none;
}
@media (min-width: 900px) {
  .gift-bar--sticky-desktop.is-visible {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    margin: 0;
    border-radius: 0;
    padding: 14px max(24px, calc((100% - var(--container-max)) / 2 + 24px));
    box-shadow: 0 6px 16px rgba(46,42,39,.14);
  }
  .gift-bar--sticky-desktop.is-visible .steps { display: none; }
}

/* Compacte mobile fixée en bas (copie décorative, aria-hidden) */
.gift-bar--compact-mobile {
  display: none;
}
@media (max-width: 899px) {
  .gift-bar--compact-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0; right: 0;
    bottom: var(--sticky-cta-height);
    height: var(--sticky-gift-height);
    padding: 0 16px;
    background: rgba(232,245,233,.95);
    border-top: 1px solid var(--manolo-border);
    z-index: 40;
    transition: transform .2s ease;
  }
  .gift-bar--compact-mobile.is-hidden { transform: translateY(200%); }
  .gift-bar--compact-mobile .gift-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--manolo-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gift-bar--compact-mobile .progress-track {
    flex: 1;
    height: 6px;
    background: var(--manolo-track);
    border-radius: var(--radius-full);
    overflow: hidden;
  }
  .gift-bar--compact-mobile .progress-fill {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--manolo-green), var(--manolo-fill-end));
    width: 0%;
    border-radius: var(--radius-full);
  }
}

/* Carte total */
.total-card {
  background: var(--surface-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 27px 24px;
  box-shadow: 0 10px 28px rgba(46,42,39,.08);
}
.total-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 15px; }
.total-line {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.total-line.discount { color: var(--manolo-green); font-weight: 600; }
.total-line.is-hidden { display: none; }
.total-line.grand {
  border-bottom: none;
  border-top: 2px solid var(--surface-card);
  margin-top: 8px; padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px;
  color: var(--ink-strong);
}
.total-line.grand .amount { box-shadow: inset 0 -3px 0 var(--rose-editorial); }
.total-card .btn-primary { display: flex; width: 100%; margin-top: 19px; font-size: 14.5px; padding: 14px 20px; }
.total-card .hint { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.total-card .legal {
  margin-top: 15px; font-size: 11.5px; color: var(--text-muted);
  border-top: 1px dashed var(--border-soft); padding-top: 12px; line-height: 1.6;
}

/* Formulaire devis (révélé inline sous la carte total) */
.quote-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--border-soft);
}
.quote-form h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.quote-form .form-lede { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-weight: 600; font-size: 13.5px;
  color: var(--ink); margin-bottom: 6px;
}
.form-field input {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-page);
  padding: 10px 14px;
  font-size: 15px;
}
.form-field input[aria-invalid="true"] { border-color: var(--rose-deep); }
.form-field .field-error {
  color: var(--rose-deep);
  font-size: 13px;
  margin-top: 6px;
}
.quote-form .btn-primary { width: 100%; display: flex; }
.quote-form .btn-primary[data-loading="true"] { opacity: .7; cursor: progress; }

.form-alert {
  margin-top: 16px;
  border: 1px solid var(--rose-pale-border);
  background: var(--rose-pale);
  color: var(--rose-deep);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.form-alert a { color: var(--rose-deep); font-weight: 600; }

.quote-confirmation {
  margin-top: 16px;
  border: 1px solid var(--manolo-border);
  background: var(--manolo-surface);
  border-radius: var(--radius-md);
  padding: 20px 20px;
}
.quote-confirmation h3 { font-family: var(--font-display); font-size: 17px; color: var(--manolo-green); margin-bottom: 8px; }
.quote-confirmation p { font-size: 13.5px; color: var(--ink); margin-bottom: 12px; }
.quote-confirmation .btn-primary { background: var(--manolo-green); color: #fff; box-shadow: none; }
.quote-confirmation .btn-primary:hover { background: #256b28; }
.quote-confirmation .btn-primary::after { content: '↓'; color: #fff; }

/* Tableau tarifaire (statique, visible sans JS) */
.pricing-table-wrap { margin-top: var(--space-7); overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pricing-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-strong);
  margin-bottom: var(--space-4);
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.pricing-table thead th {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--ink-strong);
}
.pricing-table td.price { color: var(--ink); font-weight: 600; }
.pricing-table td.discount { color: var(--manolo-green); font-weight: 700; }
.pricing-table td.gift { color: var(--manolo-green); font-size: 13px; }
.pricing-table-note { margin-top: var(--space-3); font-size: 12.5px; color: var(--text-muted); }

/* ==========================================================================
   COMMENT ÇA MARCHE (section 4)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid li:not(:last-child) { border-right: 1px solid var(--hairline); padding-right: var(--space-5); }
}
.steps-grid li { display: flex; flex-direction: column; gap: 10px; }
.steps-grid .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  color: var(--rose-editorial);
}
.steps-grid .step-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rose-pale);
  border-radius: var(--radius-md);
  color: var(--rose-deep);
}
.steps-grid .step-icon svg { width: 22px; height: 22px; }
.steps-grid h3 { font-family: var(--font-body); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.steps-grid p { font-size: 13.5px; color: var(--text-muted); }

/* ==========================================================================
   MANOLO (section 5) / MATHILDE (section 6)
   ========================================================================== */

.manolo-section { background: var(--surface-section); }

.manolo-content { max-width: 68ch; }
.manolo-content p { font-size: 16px; color: var(--ink); margin-bottom: var(--space-4); }
.manolo-content .manolo-rappel { margin: var(--space-5) 0; max-width: 56ch; }
.manolo-content .manolo-rappel p { font-size: 13.5px; margin-bottom: 0; }
.manolo-content p.legal-note { font-size: 13.5px; color: var(--text-muted); }
.manolo-content a.link-manolo {
  color: var(--rose-deep);
  font-weight: 600;
  text-decoration: underline;
}

.mathilde-section .mathilde-pro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .mathilde-section .mathilde-pro { grid-template-columns: 0.4fr 0.6fr; }
}
.mathilde-pro .figure-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.mathilde-pro .famille-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(46,42,39,.12);
  margin-bottom: 10px;
}
.mathilde-pro .sig {
  font-family: var(--font-script);
  font-size: 25px;
  font-weight: 600;
  color: var(--rose-editorial);
}
.mathilde-pro .role { font-size: 12.5px; color: var(--text-faint); }
.mathilde-pro p { color: var(--ink); font-size: 16px; margin-bottom: var(--space-2); max-width: 58ch; }

.employer-note {
  margin-top: var(--space-5);
  background: var(--surface-section);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--rose-cta);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.employer-note h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: var(--space-2);
}
.employer-note p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 0; }

/* ==========================================================================
   PACK MALIN (section 7)
   ========================================================================== */

.pack-malin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .pack-malin-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--gutter); }
}

.pack-malin-badge { margin: 4px 0 var(--space-4); }

.pack-malin-body {
  font-size: 16px;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: var(--space-4);
}
.pack-malin-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink-strong);
  margin-bottom: var(--space-2);
}
.pack-malin-note {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-4);
}

.pack-malin-visual img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(46,42,39,.08);
}

.pack-malin-cta {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.pack-malin-more {
  font-weight: 600;
  font-size: 14px;
  color: var(--rose-deep);
  text-decoration: underline;
}
.pack-malin-more:hover { color: var(--rose-editorial); }

/* ==========================================================================
   FAQ (section 8)
   ========================================================================== */

.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 74ch; }
.faq-item {
  background: var(--surface-section);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item .faq-question {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}
.faq-item .faq-question .chevron { flex-shrink: 0; transition: transform .2s ease; color: var(--rose-deep); }
.faq-item .faq-question[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.faq-item .faq-answer {
  padding: 0 18px 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.faq-item .faq-answer[hidden] { display: none; }

.mathilde-repond {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface-page);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  max-width: 74ch;
  flex-wrap: wrap;
}
.mathilde-repond .portrait { width: 92px; height: auto; flex-shrink: 0; }
.mathilde-repond p { font-size: 14px; color: var(--ink); flex: 1; min-width: 26ch; }
.mathilde-repond a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   CTA FINAL (section 9)
   ========================================================================== */

.final-cta {
  background: var(--surface-section);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.final-cta .container { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.final-cta h2 { font-size: 25px; font-weight: 800; max-width: 24ch; }
.final-cta p.sub { color: var(--text-muted); max-width: 54ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-6) 0 calc(var(--space-6) + var(--sticky-cta-height));
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}
@media (min-width: 900px) {
  .site-footer { padding: var(--space-6) 0; }
}
.site-footer a { color: var(--text-muted); }

/* ==========================================================================
   Barre CTA sticky (mobile)
   ========================================================================== */

.sticky-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--sticky-cta-height);
  align-items: center;
  padding: 0 16px;
  background: rgba(250,250,248,.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--hairline);
  z-index: 50;
  transition: transform .2s ease;
}
@media (max-width: 899px) {
  .sticky-cta-bar.is-visible { display: flex; }
}
.sticky-cta-bar.is-hidden { transform: translateY(100%); }
.sticky-cta-bar .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: 14.5px;
}

/* Hors des <900px, jamais affichée */
@media (min-width: 900px) {
  .sticky-cta-bar, .gift-bar--compact-mobile { display: none !important; }
}
