/* ==========================================================================
   Pause Récup — feuille de style unique
   Ordre : tokens → reset → base → composants → pages → utilitaires
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:          #171717;
  --bg-elev:     #1E1E1E;
  --text:        #FFFFFF;
  --text-muted:  rgba(255, 255, 255, .64);
  --cta:         #DCE0E3;
  --cta-ink:     #161616;
  --line:        rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .26);
  --alert:       #E8B94A;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 1.25rem;
  --wrap:   68rem;
  --header-h: 60px;

  --step-1: clamp(.8125rem, .78rem + .2vw, .875rem);
  --step-0: 1.0625rem;
  --step-1up: clamp(1.125rem, 1.05rem + .5vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.6vw, 2.125rem);
  --step-3: clamp(2rem, 1.5rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.6rem + 8vw, 6rem);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain : bruit SVG fractal en data-URI, superposé au fond anthracite.
   Statique, sans JS ni fichier externe. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { text-wrap: pretty; }

a { color: inherit; }

strong, b { font-weight: 800; }

::selection { background: var(--cta); color: var(--cta-ink); }

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

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.section--flush { border-top: 0; }

.section__head { margin-bottom: 2rem; }

.eyebrow {
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede {
  font-size: var(--step-1up);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 44ch;
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2.5rem; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 800;
  text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: .75rem; }

/* --------------------------------------------------------------------------
   5. Boutons et liens
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .875rem 1.75rem;
  border: 0;
  border-radius: 2px;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease);
}

.btn:hover { background: #FFFFFF; }
.btn:active { transform: translateY(1px); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: .625rem 1.125rem; font-size: .875rem; }

/* Lien secondaire : jamais un bouton fantôme, un vrai lien souligné. */
.link {
  /* Volontairement inline (et pas inline-block) : une boite atomique renverrait
     la ponctuation qui suit le lien a la ligne suivante. */
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: 1px;
  transition: color .15s var(--ease);
}
.link:hover { color: var(--text); }

.link-arrow::after { content: " \2192"; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Fond opaque volontairement : un backdrop-filter ici créerait un bloc
     conteneur et casserait le panneau de nav en position:fixed. */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 2rem var(--gutter) 3rem;
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.nav[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.nav__list { display: flex; flex-direction: column; }

.nav__list a {
  display: block;
  padding: .875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__list a[aria-current="page"] { color: var(--text-muted); }

.nav__cta { margin-top: 2rem; }

.header__cta { display: none; }

@media (min-width: 900px) {
  :root { --header-h: 72px; }

  .burger { display: none; }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin-left: auto;
    margin-right: 1.5rem;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list { flex-direction: row; gap: 1.75rem; }

  .nav__list a {
    padding: 0;
    border: 0;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-muted);
    transition: color .15s var(--ease);
  }

  .nav__list a:hover,
  .nav__list a[aria-current="page"] { color: var(--text); }

  .nav__cta { display: none; }
  .header__cta { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   7. Hero (Accueil) — le CTA doit tenir dans le premier écran mobile
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  /* minmax(0, 1fr) et pas une piste `auto` : sinon la colonne se dimensionne sur le
     max-content du texte et deborde la largeur du viewport. */
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 2rem 2.5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  /* Le visuel produit est deja tres sombre : l'assombrir davantage le ferait
     disparaitre. Le contraste du texte est assure par le voile ci-dessous. */
  opacity: .9;
}

/* Voile anthracite : garantit le contraste du texte par-dessus la photo. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(23,23,23,.30) 0%, rgba(23,23,23,.62) 42%, rgba(23,23,23,.92) 100%),
    linear-gradient(to right, rgba(23,23,23,.72) 0%, rgba(23,23,23,.30) 65%, rgba(23,23,23,.10) 100%);
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 { margin-block: .5rem .75rem; }

.hero__text {
  font-size: var(--step-1up);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 30ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero__actions .btn { width: 100%; max-width: 24rem; }

.hero__note {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .hero { padding-block: 4rem; }

  .hero__media { left: auto; width: 46%; }

  .hero__media img { opacity: .85; object-position: 50% 35%; }

  .hero__media::after {
    background: linear-gradient(to right, var(--bg) 0%, rgba(23,23,23,.55) 35%, rgba(23,23,23,.1) 100%);
  }

  /* Le conteneur reste la grille centree (.wrap) ; c'est le contenu qui est
     bride a 34rem, sinon le bloc texte se centre au lieu de rester a gauche. */
  .hero__inner > * { max-width: 34rem; }
  .hero__actions { flex-direction: row; align-items: center; }
  .hero__actions .btn { width: auto; }
}

/* --------------------------------------------------------------------------
   8. Blocs de contenu
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }

.step {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: .5rem;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text-muted);
}

.step h3 { font-size: var(--step-1up); margin-bottom: .375rem; }
.step p { color: var(--text-muted); }

.card {
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.grid-2 { display: grid; gap: 1.25rem; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Encart contre-indications */
.note {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--bg-elev);
  border-left: 3px solid var(--alert);
  border-radius: 0 3px 3px 0;
}

.note strong { color: var(--alert); }
.note p + p { margin-top: .75rem; }

/* Bandeau CTA de fin de page */
.cta-band { text-align: left; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .btn { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   9. Tarifs
   -------------------------------------------------------------------------- */
.price-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.price-list > li:first-child { border-top: 1px solid var(--line); }

.price-list dt, .price-list .price-label {
  font-size: var(--step-1up);
  font-weight: 700;
}

.price-value {
  font-size: var(--step-2);
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.price-old {
  margin-right: .5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-sub { display: block; font-size: var(--step-1); color: var(--text-muted); }

.badge {
  display: inline-block;
  padding: .25rem .5rem;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.zones > li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}

.zones .zone-price { font-weight: 800; white-space: nowrap; }

.terms > li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.terms > li:first-child { border-top: 1px solid var(--line); }
.terms h3 { font-size: var(--step-1up); margin-bottom: .375rem; }
.terms p { color: var(--text-muted); }

.media-figure {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.media-figure img { width: 100%; height: auto; }

@media (min-width: 900px) {
  .tarifs-visual {
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 3rem;
    align-items: start;
  }
  .media-figure { margin-top: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* --------------------------------------------------------------------------
   10. Bienfaits
   -------------------------------------------------------------------------- */
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1.5rem; }
.prose h3 { font-size: var(--step-2); margin-top: 2.75rem; }
.prose h3 + p { margin-top: .875rem; }
.prose p { color: var(--text-muted); }
.prose p.prose__intro { color: var(--text); font-size: var(--step-1up); }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 62ch; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: var(--step-1up);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  transition: transform .2s var(--ease);
}

.faq details[open] summary::after { content: "\2212"; }

.faq__answer { padding-bottom: 1.5rem; color: var(--text-muted); max-width: 58ch; }
.faq__answer > * + * { margin-top: .75rem; }
.faq__answer ul { margin-top: .75rem; }
.faq__answer li { padding-left: 1rem; position: relative; }
.faq__answer li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   12. Formulaire
   -------------------------------------------------------------------------- */
.form { max-width: 38rem; }
.form > * + * { margin-top: 1.5rem; }

.field label,
.fieldset__legend {
  display: block;
  margin-bottom: .5rem;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.field .hint {
  display: block;
  margin-top: .375rem;
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8125rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  transition: border-color .15s var(--ease);
}

.field textarea { min-height: 7rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .48); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--cta); }

.field [aria-invalid="true"] { border-color: var(--alert); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.error-msg {
  display: block;
  margin-top: .375rem;
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--alert);
}

.error-msg:empty { display: none; }

.req { color: var(--alert); }

/* Groupes de cases / radios */
.fieldset { border: 0; }
.fieldset--boxed {
  padding: 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.fieldset--health { border-left: 3px solid var(--alert); }

.fieldset__intro {
  margin-bottom: 1rem;
  font-size: var(--step-1);
  color: var(--text-muted);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .625rem 0;
  cursor: pointer;
  line-height: 1.45;
}

.choice + .choice { border-top: 1px solid var(--line); }

.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: .125rem 0 0;
  accent-color: var(--cta);
  cursor: pointer;
}

.choice span { font-size: 1rem; }

.radio-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.radio-row .choice {
  flex: 1 1 10rem;
  padding: .875rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.radio-row .choice + .choice { border-top: 1px solid var(--line-strong); }

.radio-row .choice:has(input:checked) { border-color: var(--cta); }

[hidden] { display: none !important; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg-elev);
}

.form__status[data-state="success"] { border-left: 3px solid var(--cta); }
.form__status[data-state="error"] { border-left: 3px solid var(--alert); }

/* Contacts directs */
.contact-direct { display: grid; gap: .75rem; }

@media (min-width: 560px) {
  .contact-direct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-block: 3rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-1);
  color: var(--text-muted);
}

.footer__top { display: grid; gap: 2rem; }

.footer h2 {
  font-size: var(--step-1);
  letter-spacing: .14em;
  font-weight: 800;
  margin-bottom: .875rem;
  color: var(--text);
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .3em; }

.footer__links li + li { margin-top: .5rem; }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

@media (min-width: 720px) {
  .footer__top { grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
}

/* --------------------------------------------------------------------------
   14. Page 404
   -------------------------------------------------------------------------- */
.page-404 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 4rem;
}

/* --------------------------------------------------------------------------
   15. Utilitaires
   -------------------------------------------------------------------------- */
.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;
}

/* --------------------------------------------------------------------------
   16. Préférences utilisateur / impression
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  body::after { display: none; }
  body { background: #fff; color: #000; }
  .header, .footer, .hero__media, .burger { display: none; }
}
