/* ==========================================================================
   BOHOMA — feuille de style
   Palette, typographie et composants. Modifiez les variables ci-dessous
   pour changer l'identité visuelle de tout le site.
   ========================================================================== */

:root {
  /* couleurs */
  --sand: #f5ede3;
  --sand-2: #efe4d6;
  --sand-3: #e7d9c7;
  --white: #ffffff;
  --clay: #b8643c;
  --clay-dark: #9c5030;
  --clay-soft: #d9a184;
  --walnut: #4a3426;
  --walnut-2: #2e2118;
  --walnut-soft: #6f5a4a;
  --olive: #6b7a4b;
  --brass: #c9a46a;
  --line: rgba(74, 52, 38, 0.14);
  --line-strong: rgba(74, 52, 38, 0.26);
  --wa: #25d366;

  /* typographie */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ar-serif: 'Cairo', 'Tajawal', sans-serif;
  --ar-sans: 'Tajawal', 'Cairo', sans-serif;

  /* formes */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(74, 52, 38, 0.06);
  --shadow-md: 0 14px 40px rgba(74, 52, 38, 0.1);
  --shadow-lg: 0 30px 70px rgba(74, 52, 38, 0.16);

  /* rythme */
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 112px);
  --maxw: 1200px;
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--walnut);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir='rtl'] body { font-family: var(--ar-sans); line-height: 1.9; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; }
html[dir='rtl'] h1, html[dir='rtl'] h2, html[dir='rtl'] h3 { font-family: var(--ar-serif); line-height: 1.3; }
p { margin: 0 0 1em; }
figure { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--clay); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--sand { background: var(--sand-2); }
.section--sand-3 { background: var(--sand-3); }
.section--white { background: var(--white); }
.section--dark { background: var(--walnut-2); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--clay { background: var(--clay); color: #fff; }
.section--clay h2 { color: #fff; }

.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ------------------------------------------------------------------ texte */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--clay);
}
html[dir='rtl'] .eyebrow { letter-spacing: 0; font-size: 0.85rem; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }

.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0.35em 0 0.4em; }
.section-head p { color: var(--walnut-soft); font-size: 1.06rem; margin: 0; }
.section--dark .section-head p { color: rgba(245, 237, 227, 0.78); }

.lead { font-size: 1.15rem; color: var(--walnut-soft); }

/* séparateur berbère */
.divider { display: flex; align-items: center; gap: 16px; margin: 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.divider__mark {
  width: 42px; height: 10px;
  background-repeat: repeat-x; background-position: center; background-size: 14px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M7 0 14 5 7 10 0 5Z' fill='none' stroke='%23C9A46A' stroke-width='1'/%3E%3C/svg%3E");
}
.section--dark .divider::before, .section--dark .divider::after { background: rgba(245, 237, 227, 0.22); }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-dark); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line-strong); color: var(--walnut); }
.btn--ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn--light { background: var(--white); color: var(--walnut); }
.btn--wa { background: var(--wa); color: #04310f; }
.btn--wa:hover { background: #1fbe5b; }
.btn--sm { padding: 11px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--clay); }
.link-arrow::after { content: '→'; transition: transform 0.25s ease; }
html[dir='rtl'] .link-arrow::after { content: '←'; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ images */
.media { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--sand-3); }
.media img { width: 100%; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.media--zoom:hover img { transform: scale(1.04); }
.media--arch { border-radius: 50% 50% var(--r-md) var(--r-md) / 32% 32% var(--r-md) var(--r-md); }
.media--arch-tall { aspect-ratio: 3 / 4; }
.media--arch-tall img { height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 10; }
.media--wide img { height: 100%; object-fit: cover; }
.media--square { aspect-ratio: 1 / 1; }
.media--square img { height: 100%; object-fit: cover; }

.media__label {
  position: absolute; inset-inline-start: 12px; inset-block-end: 12px;
  background: rgba(46, 33, 24, 0.78); color: var(--sand);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
html[dir='rtl'] .media__label { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }

.seal {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--clay); color: #fff;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: var(--shadow-md);
}
.seal::before {
  content: ''; width: 14px; height: 14px; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1 13 7 7 13 1 7Z' fill='none' stroke='white' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ en-tête */
.header { position: sticky; top: 0; z-index: 60; background: rgba(245, 237, 227, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__utility { display: none; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--walnut-soft); }
.header__utility .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 8px; }
.header__utility a:hover { color: var(--clay); }
.header__utility-list { display: flex; gap: 18px; }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.header__nav { display: none; gap: 26px; font-size: 0.92rem; font-weight: 500; }
.header__nav a { position: relative; padding-block: 4px; }
.header__nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
html[dir='rtl'] .header__nav a::after { transform-origin: right; }
.header__nav a:hover::after, .header__nav a[aria-current='page']::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone { display: none; font-size: 0.9rem; font-weight: 600; color: var(--walnut-soft); }
.header__phone:hover { color: var(--clay); }

/* logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.logo__word { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.34em; text-indent: 0.34em; color: var(--walnut); }
.logo__rule { display: flex; align-items: center; gap: 6px; width: 100%; }
.logo__rule::before, .logo__rule::after { content: ''; flex: 1; height: 1px; background: var(--brass); }
.logo__diamond { width: 7px; height: 7px; background: var(--clay); transform: rotate(45deg); }
.logo__tag { font-family: var(--sans); font-size: 0.5rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--walnut-soft); text-indent: 0.26em; }
.logo--light .logo__word { color: var(--white); }
.logo--light .logo__tag { color: rgba(245, 237, 227, 0.7); }

/* menu mobile */
.burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; }
.burger span { width: 22px; height: 1.6px; background: var(--walnut); transition: transform 0.3s ease, opacity 0.3s ease; }
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--sand);
  transform: translateY(-100%); transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
  padding: 22px var(--gutter) 40px; overflow-y: auto;
}
.drawer[data-open='true'] { transform: translateY(0); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.drawer__close { background: none; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 8px 16px; font-size: 0.85rem; }
.drawer__nav { display: grid; gap: 4px; font-family: var(--serif); font-size: 1.6rem; }
.drawer__nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer__sub { margin-top: 26px; display: grid; gap: 10px; font-size: 0.95rem; color: var(--walnut-soft); }

/* ------------------------------------------------------------------ héros */
.hero { padding-block: clamp(36px, 6vw, 76px) var(--section-y); }
.hero__grid { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.3rem); margin: 0.3em 0 0.4em; }
.hero p { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--walnut-soft); max-width: 46ch; }
.hero__media { position: relative; }
.hero__seal { position: absolute; inset-block-end: -18px; inset-inline-start: 18px; }
.hero__thumbs { display: none; }

/* ------------------------------------------------------------------ bandeau de confiance */
.trust { background: var(--walnut-2); color: var(--sand); }
.trust__grid { display: grid; gap: 22px; padding-block: 26px; }
.trust__item strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.trust__item span { font-size: 0.86rem; color: rgba(245, 237, 227, 0.72); }

/* ------------------------------------------------------------------ grilles */
.grid { display: grid; gap: clamp(18px, 2.6vw, 30px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }

/* ------------------------------------------------------------------ cartes */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5em; }
.card p { color: var(--walnut-soft); margin: 0; }
.card__icon { width: 44px; height: 44px; color: var(--clay); margin-bottom: 18px; }
.card__icon svg { width: 100%; height: 100%; }
.card__list { margin-top: 1em; display: grid; gap: 8px; font-size: 0.95rem; color: var(--walnut-soft); }
.card__list li { display: flex; gap: 10px; }
.card__list li::before { content: '◆'; color: var(--brass); font-size: 0.6rem; line-height: 2; }
.card--flat { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card--flat:hover { transform: none; box-shadow: none; }

/* tuiles espaces / styles */
.tile { position: relative; border-radius: var(--r-md); overflow: hidden; display: block; min-height: 260px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover img { transform: scale(1.05); }
.tile__body {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff; background: linear-gradient(to top, rgba(30, 20, 14, 0.82) 0%, rgba(30, 20, 14, 0.35) 45%, rgba(30, 20, 14, 0.06) 100%);
}
.tile__body h3 { font-size: 1.45rem; color: #fff; }
.tile__body p { font-size: 0.92rem; margin: 6px 0 0; color: rgba(255, 255, 255, 0.82); }
.tile__label { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; }

/* palettes */
.palette-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 20px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.palette-rail > * { scroll-snap-align: start; }
.palette { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.palette__media { aspect-ratio: 4 / 3; overflow: hidden; }
.palette__media img { width: 100%; height: 100%; object-fit: cover; }
.palette__body { padding: 20px; }
.palette__body h3 { font-size: 1.25rem; }
.palette__body p { font-size: 0.9rem; color: var(--walnut-soft); margin: 4px 0 14px; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(74, 52, 38, 0.12); }

/* étapes */
.steps { counter-reset: step; display: grid; gap: 26px; }
.step { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--serif); font-size: 1.6rem; color: var(--clay); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--walnut-soft); margin: 0; font-size: 0.98rem; }

/* formules */
.package { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.package--popular { border-color: var(--clay); box-shadow: var(--shadow-md); position: relative; }
.package__badge { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--clay); color: #fff; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); }
.package h3 { font-size: 1.35rem; }
.package__price { font-family: var(--serif); font-size: 2rem; color: var(--clay); line-height: 1; }
.package__price small { font-family: var(--sans); font-size: 0.75rem; color: var(--walnut-soft); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: 6px; }
.package p { font-size: 0.95rem; color: var(--walnut-soft); margin: 0; }
.package__note { font-size: 0.82rem; color: var(--olive); }

/* avant / après */
.ba { position: relative; border-radius: var(--r-md); overflow: hidden; user-select: none; box-shadow: var(--shadow-md); }
.ba img { width: 100%; display: block; }
.ba__after { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.ba__after img { height: 100%; object-fit: cover; }
html[dir='rtl'] .ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle { position: absolute; inset-block: 0; inset-inline-start: 50%; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); }
.ba__handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--walnut); display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow-md); }
.ba__tag { position: absolute; top: 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(46, 33, 24, 0.8); color: #fff; padding: 6px 12px; border-radius: var(--r-pill); }
.ba__tag--before { inset-inline-start: 14px; }
.ba__tag--after { inset-inline-end: 14px; }

/* valeurs / promesses */
.value { display: grid; gap: 10px; }
.value__icon { width: 38px; height: 38px; color: var(--clay); }
.value h3 { font-size: 1.2rem; }
.value p { font-size: 0.94rem; color: var(--walnut-soft); margin: 0; }

/* professionnels */
.pro-block { display: grid; gap: clamp(22px, 3vw, 40px); align-items: start; padding-block: clamp(30px, 5vw, 56px); border-top: 1px solid var(--line); }
.pro-block:first-of-type { border-top: 0; }
.pro-block__claim { font-family: var(--serif); font-size: 1.5rem; color: var(--clay); }

/* témoignages */
.placeholder-note { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: clamp(24px, 4vw, 40px); background: rgba(255, 255, 255, 0.6); }
.placeholder-note p { color: var(--walnut-soft); margin: 0; }
.stars { color: var(--brass); letter-spacing: 0.15em; font-size: 1.1rem; }

/* instagram */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ig-grid a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-sm); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.ig-grid a:hover img { transform: scale(1.06); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: 1.3rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--clay); font-family: var(--sans); font-size: 1.4rem; line-height: 1; transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding-bottom: 24px; color: var(--walnut-soft); max-width: 78ch; }
.faq__body p:last-child { margin-bottom: 0; }

/* filtres */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line-strong); background: transparent; color: var(--walnut); border-radius: var(--r-pill); padding: 9px 18px; font-size: 0.86rem; font-weight: 500; transition: all 0.25s ease; }
.chip:hover { border-color: var(--clay); color: var(--clay); }
.chip[aria-pressed='true'] { background: var(--walnut); border-color: var(--walnut); color: var(--sand); }

/* projets */
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.project__media { position: relative; }
.project__body { padding: clamp(20px, 3vw, 30px); }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--walnut-soft); margin-bottom: 10px; }
.project__pieces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: var(--sand-2); border-radius: var(--r-pill); padding: 6px 12px; font-size: 0.8rem; color: var(--walnut-soft); }

/* ------------------------------------------------------------------ quiz */
.quiz { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 46px); box-shadow: var(--shadow-md); }
.quiz__progress { height: 3px; background: var(--sand-3); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 26px; }
.quiz__progress span { display: block; height: 100%; background: var(--clay); width: 0; transition: width 0.45s ease; }
.quiz__step { display: none; }
.quiz__step[data-active='true'] { display: block; animation: rise 0.5s ease both; }
.quiz__step h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 20px; }
.quiz__options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.option { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; background: var(--white); text-align: start; padding: 0; transition: all 0.25s ease; }
.option img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.option span { display: block; padding: 12px 14px; font-size: 0.9rem; font-weight: 500; }
.option:hover { border-color: var(--clay); transform: translateY(-2px); }
.option[aria-pressed='true'] { border-color: var(--clay); box-shadow: 0 0 0 2px rgba(184, 100, 60, 0.25); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz__result { display: none; }
.quiz__result[data-active='true'] { display: block; animation: rise 0.6s ease both; }
.quiz__result h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }

/* ------------------------------------------------------------------ formulaire */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow-md); }
.form__progress { display: flex; gap: 8px; margin-bottom: 24px; }
.form__progress span { flex: 1; height: 3px; border-radius: var(--r-pill); background: var(--sand-3); }
.form__progress span[data-done='true'] { background: var(--clay); }
.form__step { display: none; }
.form__step[data-active='true'] { display: block; animation: rise 0.45s ease both; }
.form__step h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 18px; }
.form__count { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--walnut-soft); margin-bottom: 8px; }
.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--sand); color: var(--walnut); font-family: inherit; font-size: 1rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; background: #fff; }
.field__help { font-size: 0.8rem; color: var(--walnut-soft); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { border: 1px solid var(--line-strong); background: var(--white); border-radius: var(--r-pill); padding: 11px 18px; font-size: 0.92rem; transition: all 0.2s ease; }
.choice:hover { border-color: var(--clay); color: var(--clay); }
.choice[aria-pressed='true'] { background: var(--walnut); border-color: var(--walnut); color: var(--sand); }
.form__success { display: none; }
.form__success[data-active='true'] { display: block; animation: rise 0.5s ease both; }

/* ------------------------------------------------------------------ contact */
.info-list { display: grid; gap: 18px; }
.info-list dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--walnut-soft); }
.info-list dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 500; }
.info-list a:hover { color: var(--clay); }

/* ------------------------------------------------------------------ article */
.article__head { max-width: 760px; }
.article__meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--walnut-soft); margin-top: 14px; }
.article__body { max-width: 720px; font-size: 1.06rem; }
.article__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 0.6em; }
.article__body ul { display: grid; gap: 8px; margin: 0 0 1.4em; }
.article__body li { display: flex; gap: 10px; color: var(--walnut-soft); }
.article__body li::before { content: '◆'; color: var(--brass); font-size: 0.6rem; line-height: 2.1; }
.article__body a { color: var(--clay); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ bandeau final */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 0.5em; }
.final-cta p { max-width: 56ch; margin-inline: auto; }

/* ------------------------------------------------------------------ pied de page */
.footer { background: var(--walnut-2); color: rgba(245, 237, 227, 0.76); padding-block: clamp(46px, 6vw, 76px) 26px; }
.footer__grid { display: grid; gap: 34px; }
.footer h3 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.footer a:hover { color: var(--white); }
.footer__links { display: grid; gap: 9px; font-size: 0.95rem; }
.footer__brand p { font-size: 0.95rem; max-width: 34ch; }
.footer__contact { display: grid; gap: 9px; font-size: 0.95rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(245, 237, 227, 0.16); font-size: 0.82rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ------------------------------------------------------------------ boutons flottants */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #04310f; font-weight: 600; font-size: 0.92rem;
  padding: 14px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 20px; height: 20px; }

.mobile-bar { position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 68; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.mobile-bar a { background: var(--sand); text-align: center; padding: 15px 10px; font-size: 0.9rem; font-weight: 600; }
.mobile-bar a:first-child { background: var(--clay); color: #fff; }

/* cookies */
.cookie { position: fixed; inset-inline: 16px; inset-block-end: 16px; z-index: 95; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 18px 20px; display: none; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie[data-open='true'] { display: flex; }
.cookie p { margin: 0; font-size: 0.9rem; flex: 1 1 320px; color: var(--walnut-soft); }
.cookie a { color: var(--clay); text-decoration: underline; }

/* ------------------------------------------------------------------ animations */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ responsive */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .palette-rail { grid-auto-columns: minmax(280px, 42%); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: repeat(2, 1fr); }
  .split--wide-start { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-end { grid-template-columns: 0.85fr 1.15fr; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .pro-block { grid-template-columns: 0.9fr 1.1fr; }
  .palette-rail { grid-auto-columns: minmax(300px, 26%); }
  .mobile-bar { display: none; }
  .article__body h2 { margin-top: 2.4em; }
}

@media (min-width: 1040px) {
  .header__utility { display: block; }
  .header__nav { display: flex; }
  .burger { display: none; }
  .header__phone { display: inline-flex; }
  .wa-float { inset-block-end: 28px; inset-inline-end: 28px; }
}

@media (max-width: 899px) {
  body { padding-bottom: 56px; }
  .wa-float { inset-block-end: 72px; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
}

@media print {
  .header, .footer, .wa-float, .mobile-bar, .cookie { display: none; }
}
/* Fix: keep header links and buttons on one line */
.btn, .header__nav a { white-space: nowrap; }
.header__nav { gap: 20px; }
@media (min-width: 1024px) and (max-width: 1360px) { .header__nav { gap: 14px; font-size: 0.86rem; } }
@media (max-width: 480px) { .header__actions .btn { padding: 10px 16px; font-size: 0.85rem; } .header__actions { gap: 10px; } }
