/* ==========================================================================
   Quaryka — feuille de style unique
   Palette dérivée de l'identité d'origine :
   bleu marine PMS 295, cuivre Crown 930 (marquage à chaud), blanc Avalanche.
   ========================================================================== */

:root {
  /* Couleurs */
  --navy:        #0c2a45;
  --navy-deep:   #061a2c;
  --navy-line:   rgba(12, 42, 69, 0.14);
  --copper:      #a9713b;
  --copper-lite: #c89460;
  --green:       #0f5f3d;
  --cream:       #faf7f2;
  --cream-deep:  #f2ece2;
  --paper:       #ffffff;
  --ink:         #16202b;
  --muted:       #566675;

  /* Typographie */
  --display: "Marcellus", "Optima", "Palatino", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mesures */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(12, 42, 69, .05), 0 8px 28px rgba(12, 42, 69, .07);
}

/* --------------------------------------------------------------- Base --- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy); text-decoration-color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--copper); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.25rem + 2.1vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--copper); color: #fff; }

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

/* ------------------------------------------------------------ Layout --- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

.section-label {
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

/* Filet décoratif */
.rule {
  width: 44px; height: 2px;
  background: var(--copper);
  border: 0; margin: 0 0 1.75rem;
}

/* ------------------------------------------------------------ Boutons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--copper); color: #fff; }

.btn-ghost { border-color: var(--navy-line); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.32); }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ------------------------------------------------------------- Entête --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--navy-line);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand img {
  width: 168px;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: .9rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--copper); border-bottom-color: var(--copper); }

.lang {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  padding-left: 1.5rem;
  border-left: 1px solid var(--navy-line);
}
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--copper); }
.lang [aria-current="true"] { color: var(--navy); }

@media (max-width: 860px) {
  .nav > a { display: none; }
  .nav > a.nav-keep { display: inline-block; }
  .lang { padding-left: 1rem; }
  .brand img { width: 136px; }
}

/* --------------------------------------------------------------- Héros --- */

.hero { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero-sub {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-figure { position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.5rem;
  padding: .38rem .85rem .38rem .55rem;
  background: var(--paper);
  border: 1px solid var(--navy-line);
  border-radius: 100px;
  font-size: .78rem;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 460px; margin-inline: auto; }
}

/* ----------------------------------------------------- Bandeau chiffres --- */

.stats {
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
}
.stat .num {
  font-family: var(--display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat .num small { font-size: .5em; color: var(--copper); }
.stat p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------- Sections --- */

.section-head { max-width: 68ch; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }

.bg-paper { background: var(--paper); }
.bg-deep  { background: var(--navy); color: rgba(255,255,255,.82); }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep .section-label { color: var(--copper-lite); }
.bg-deep .lede { color: rgba(255,255,255,.72); }
.bg-deep a { color: #fff; text-decoration-color: var(--copper-lite); }
.bg-deep a:hover { color: var(--copper-lite); }

/* Étapes « comment ça marche » */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--copper);
  letter-spacing: .1em;
  margin-bottom: .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--navy-line);
}
.step h3 { margin-bottom: .4em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Cartes bienfaits */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--cream);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bg-paper .card { background: var(--cream); }
.card:hover {
  border-color: rgba(169, 113, 59, .45);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card .icon { color: var(--copper); margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- Étude --- */

.study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .study { grid-template-columns: 1fr; } }

.findings { list-style: none; margin: 0; padding: 0; }
.findings li {
  position: relative;
  padding: 1.15rem 0 1.15rem 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .97rem;
}
.findings li:first-child { padding-top: 0; }
.findings li:last-child { border-bottom: 0; padding-bottom: 0; }
.findings li::before {
  content: "";
  position: absolute; left: 0; top: 1.55rem;
  width: 11px; height: 11px;
  border: 1.5px solid var(--copper-lite);
  border-radius: 50%;
}
.findings li:first-child::before { top: .4rem; }
.findings strong { color: #fff; font-weight: 600; }

.citation {
  margin-top: 2.25rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,.055);
  border-left: 2px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}
.citation cite { font-style: normal; color: rgba(255,255,255,.92); }

/* --------------------------------------------------------- Témoignages --- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.quote {
  background: var(--paper);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.6rem;
  display: flex; flex-direction: column;
}
.quote blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--navy);
}
.quote blockquote::before {
  content: "“";
  display: block;
  font-size: 2.6rem;
  line-height: .6;
  color: var(--copper);
  margin-bottom: .35rem;
}
.quote footer {
  margin-top: auto;
  font-size: .82rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--navy-line);
}
.quote footer b { display: block; color: var(--navy); font-weight: 600; font-size: .88rem; }

/* ------------------------------------------------------------------ FAQ --- */

.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--navy-line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--display);
  font-size: 1.13rem;
  color: var(--navy);
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--copper); }
.faq summary::after {
  content: "";
  position: absolute; right: .35rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--copper);
  border-bottom: 1.5px solid var(--copper);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer {
  padding: 0 2.5rem 1.5rem 0;
  font-size: .96rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- Contact --- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.contact-list li {
  display: flex; gap: .9rem; align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .95rem;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k {
  flex: 0 0 108px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper-lite);
}

/* --------------------------------------------------------------- Pied --- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.55);
  padding: 3.5rem 0 2.5rem;
  font-size: .85rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-mark {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: .4rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ------------------------------------------------------ Roue décorative --- */

.wheel {
  color: var(--copper);
  opacity: .5;
}

/* ------------------------------------------------------ Apparition douce --- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* --------------------------------------------------------------- Divers --- */

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* Décalage d'ancrage sous l'entête collante */
section[id] { scroll-margin-top: 88px; }

/* ---------------------------------------------------- Fiche technique --- */

.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-line); }
.specs li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: .93rem;
}
.specs .k { color: var(--muted); }
.specs .v { color: var(--navy); font-weight: 500; text-align: right; }

.detail-figure img {
  /* Fond blanc de l.image identique au fond blanc de la section. */
  border-radius: var(--radius);
}

/* --------------------------------------------------- Ajustements mobiles --- */

.nav a { white-space: nowrap; }

@media (max-width: 480px) {
  .brand img { width: 116px; }
  .site-header .wrap { gap: .85rem; min-height: 64px; }
  .nav { gap: .9rem; }
  .nav a { font-size: .82rem; }
  .lang { padding-left: .85rem; font-size: .72rem; }
  .specs li { flex-direction: column; gap: .15rem; }
  .specs .v { text-align: left; }
}

/* ------------------------------------------------- Formulaire de contact --- */

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: .4rem; }

.field label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper-lite);
}

.field input,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  font-family: var(--body);
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }

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

.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, .32); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(255, 255, 255, .1);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e08a7a; }

.field .error {
  font-size: .82rem;
  color: #f0a495;
  min-height: 1em;
}

/* Piège à robots — masqué aux humains, pas aux scripts */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .35rem;
}

.form button[type="submit"][disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-ok { color: #a8d8bd; }
.form-status.is-error { color: #f0a495; }

.form-note {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  margin: 0;
}
