/* ===========================================================
   RESET N LIBERTY — Landing page
   Palette (extraite du logo officiel) :
     Fond       #FAF8F5 (crème) · Cartes #FFFFFF
     Encre      #2E2A26 (charbon chaud) · #5C554C (texte secondaire)
     Accent     #BB6740 (terracotta) · #8F4D30 (terracotta profond)
     Ligne      #E3DACE (sable)
   Typo : Poppins (titres) · Inter (texte)
   Boutons : coins arrondis 12px
   =========================================================== */

:root{
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --surface-alt: #F1EAE0;
  --ink: #2E2A26;
  --ink-soft: #5C554C;
  --muted: #948C7F;
  --line: #E3DACE;
  --terracotta: #BB6740;
  --terracotta-deep: #8F4D30;
  --charcoal: #383837;

  /* aliases kept for compatibility with existing rules below */
  --bg: var(--cream);
  --blue: var(--terracotta);
  --blue-deep: var(--charcoal);
  --green: var(--terracotta);

  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max: 1120px;
  --radius: 12px;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }

.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;
}
:focus-visible{ outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

h1, h2, h3{
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p{ margin: 0; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{ background: var(--blue); color: var(--white); }
.btn-primary:hover{ background: var(--blue-deep); }

.btn-ghost{ background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover{ background: var(--blue); color: var(--white); }

.btn-text{ padding: 14px 4px; color: var(--ink); font-weight: 600; }
.btn-text:hover{ color: var(--blue); }

/* ---------- Nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,248,245,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  margin-right: auto;
  color: var(--ink);
}
.logo-mark{ height: 30px; width: auto; display: block; }
.logo span{ color: var(--terracotta); }

.nav-links{ display: flex; gap: 28px; }
.nav-links a{ font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover{ color: var(--ink); }

.nav-toggle{ display: none; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 32px 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-title{
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.12;
}
.accent{ color: var(--blue); }
.hero-sub{
  margin-top: 24px;
  font-size: 18px;
  max-width: 48ch;
}
.hero-actions{
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-visual{ position: relative; }
.stones-svg{ width: 100%; height: auto; overflow: visible; }
.stones-guide{
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.stone ellipse{
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  animation: settle .5s ease forwards;
}
.stone-1 ellipse{ fill: var(--blue-deep); stroke: var(--blue-deep); animation-delay: .1s; }
.stone-2 ellipse{ animation-delay: .5s; }
.stone-3 ellipse{ animation-delay: .9s; }
.stone-4 ellipse{ animation-delay: 1.3s; }
.stone-5 ellipse{ animation-delay: 1.7s; }
.stone-6 ellipse{ fill: var(--green); stroke: var(--green); animation-delay: 2.1s; }

@keyframes settle{
  from{ opacity: 0; transform: translateY(-14px) scale(.7); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Section shared ---------- */
section{ padding: 96px 32px; }
.section-head{ max-width: var(--max); margin: 0 auto 56px; }
.section-head h2{ font-size: clamp(26px, 3.2vw, 36px); max-width: 22ch; }

/* ---------- Problème ---------- */
.problem{ background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.problem-item{
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
}
.problem-item p{ font-size: 16px; color: var(--ink); }

/* ---------- Philosophie ---------- */
.philosophy{ background: var(--blue-deep); }
.philosophy-inner{ max-width: 760px; margin: 0 auto; text-align: center; }
.philosophy .eyebrow{ color: var(--green); text-align: center; }
.philosophy h2{ color: var(--white); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 26px; }
.philosophy-text{ color: #D9CFC2; font-size: 17px; line-height: 1.75; }
.philosophy-signature{
  margin-top: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
}

/* ---------- Méthode ---------- */
.pillars{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar{
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar-index{
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 16px;
}
.pillar h3{ font-size: 19px; margin-bottom: 8px; }
.pillar p{ font-size: 14px; }

/* ---------- Bénéfices ---------- */
.benefit-grid{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.benefit{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.benefit-icon{ width: 36px; height: 36px; color: var(--blue); margin-bottom: 18px; }
.benefit h3{ font-size: 19px; margin-bottom: 10px; }
.benefit p{ font-size: 15px; }

/* ---------- Témoignage ---------- */
.quote{ background: var(--ink); text-align: center; }
.quote blockquote{ max-width: 760px; margin: 0 auto; }
.quote p{
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 27px);
  color: var(--white);
  line-height: 1.5;
}
.quote footer{ margin-top: 26px; font-size: 14px; color: #A99F91; }

/* ---------- FAQ ---------- */
.faq-list{
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 24px;
}
.faq-item summary{
  padding: 18px 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-size: 22px;
  color: var(--blue);
  margin-left: 16px;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ padding-bottom: 20px; font-size: 15px; }

/* ---------- CTA ---------- */
.cta{ text-align: center; background: var(--white); border-top: 1px solid var(--line); }
.cta h2{ font-size: clamp(28px, 4vw, 40px); max-width: 22ch; margin: 0 auto; }
.cta > p{ margin-top: 14px; font-size: 15px; }
.cta-form{ margin: 34px auto 0; display: flex; gap: 12px; max-width: 440px; }
.cta-form input{
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
}
.cta-form input:focus{ border-color: var(--blue); outline: none; }
.cta-status{ margin-top: 16px; font-size: 13.5px; color: var(--blue); min-height: 18px; }

/* ---------- Legal pages ---------- */
.legal-page{ padding: 90px 32px 110px; }
.legal-inner{ max-width: 720px; margin: 0 auto; }
.legal-inner h1{ font-size: clamp(30px, 4vw, 42px); margin-top: 4px; }
.legal-updated{ margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.legal-notice{
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-notice p{ font-size: 14.5px; color: var(--ink-soft); }
.legal-inner h2{
  font-size: 20px;
  margin-top: 44px;
  margin-bottom: 12px;
}
.legal-inner p{ font-size: 15.5px; }
.legal-inner a{ color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-back{ margin-top: 56px; }
.legal-back a{ font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.footer{ border-top: 1px solid var(--line); }
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner p{ font-size: 13.5px; color: var(--muted); margin-right: auto; }
.footer-links{ display: flex; gap: 22px; }
.footer-links a{ font-size: 13.5px; color: var(--muted); }
.footer-links a:hover{ color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero{ grid-template-columns: 1fr; padding-top: 90px; }
  .hero-visual{ order: -1; max-width: 320px; margin: 0 auto; }
  .problem-grid{ grid-template-columns: 1fr; }
  .pillars{ grid-template-columns: repeat(2, 1fr); }
  .benefit-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .nav-links{ display: none; }
  .nav-cta{ display: none; }
  .nav-toggle{
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span{ width: 20px; height: 2px; background: var(--ink); }
  section{ padding: 64px 24px; }
  .hero{ padding: 80px 24px 60px; }
  .pillars{ grid-template-columns: 1fr; }
  .cta-form{ flex-direction: column; }
  .footer-inner{ flex-direction: column; text-align: center; }
  .footer-inner p{ margin-right: 0; order: 1; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .stone ellipse{ animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn{ transition: none; }
}
