/* ───────────────────────────────────────────────
   Nadia Chaabane — Onco Coach · feuille de style
   Palette héritée d'« Au Cœur des Droits » (terracotta + brun) pour la continuité
   ─────────────────────────────────────────────── */
:root {
  --bg: #fff8f2;
  --cream: #fffcf8;
  --sand: #f7ebe1;
  --peach: #f3d7ca;
  --terracotta: #d46f5a;
  --terracotta-dark: #ae4a35;
  --rose: #e8b09e;
  --sage: #a9b99a;
  --sage-deep: #5f7352;
  --brown: #5a3a22;
  --brown-deep: #3e2616;
  --text: #43352e;
  --muted: #6d5f57;
  --line: rgba(201, 87, 58, .28);
  --shadow: 0 22px 60px rgba(91, 58, 43, .14);
  --radius: 26px;
  --maxw: 1160px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Parisienne", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(238, 190, 166, .30), transparent 36%),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 100%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--brown-deep); color: #fff; padding: 10px 18px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--brown-deep); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta-dark); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--terracotta); }
.script { font-family: var(--script); color: var(--terracotta); font-size: 1.7rem; line-height: 1.2; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 242, .93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 87, 58, .14);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brown-deep); flex-shrink: 0; }
.brand img { height: 44px; width: auto; mix-blend-mode: multiply; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: var(--brown); }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--terracotta); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--text); font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap;
}
.nav a:hover { background: var(--sand); color: var(--brown-deep); }
.nav a[aria-current="page"] { color: var(--terracotta-dark); font-weight: 700; background: var(--sand); }
.nav .nav-cta { background: var(--terracotta); color: #fff; font-weight: 700; margin-left: 8px; padding: 9px 18px; }
.nav .nav-cta:hover { background: var(--terracotta-dark); color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--terracotta-dark); color: #fff; }

.menu-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px;
  width: 46px; height: 46px; cursor: pointer; color: var(--brown); align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (min-width: 981px) and (max-width: 1240px) {
  .header-inner { gap: 12px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; font-size: .86rem; }
  .nav .nav-cta { margin-left: 4px; padding: 8px 12px; }
  .nav .lang-switch { margin-left: 4px; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); padding: 14px 20px 22px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(91,58,43,.12); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 14px; border: 2px solid transparent; cursor: pointer;
  font: 700 .95rem/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  background: linear-gradient(180deg, var(--terracotta), var(--terracotta-dark)); color: #fff;
  box-shadow: 0 10px 24px rgba(201, 87, 58, .26); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(201, 87, 58, .32); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--brown); box-shadow: none; }
.btn-ghost:hover { background: var(--brown); color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: var(--brown-deep); box-shadow: none; }
.btn-light:hover { background: var(--peach); color: var(--brown-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Sections ── */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.bg-sand { background: var(--sand); }
.bg-brown { background: var(--brown-deep); color: #f5e6dc; }
.bg-brown h2, .bg-brown h3 { color: #fff; }
.bg-brown .eyebrow { color: var(--peach); }
.bg-brown .eyebrow::before { background: var(--peach); }
.bg-brown a { color: var(--peach); }

/* ── Hero ── */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-photo { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: 999px 999px 28px 28px; box-shadow: var(--shadow);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 2px solid var(--terracotta); border-radius: 999px 999px 28px 28px; opacity: .45;
}
.hero-tag {
  position: absolute; left: -18px; bottom: 34px; background: #fff; border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; color: var(--brown); max-width: 230px; line-height: 1.35;
}
.hero-tag strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--terracotta-dark); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(78%, 340px); }
  .hero-tag { left: 0; }
}

.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { max-width: 880px; }

/* ── Cartes ── */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream); border: 1px solid rgba(201, 87, 58, .16); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: 0 10px 30px rgba(91, 58, 43, .06);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 1.2rem; }
.card-feature { background: #fff; border: 2px solid var(--terracotta); box-shadow: var(--shadow); position: relative; }
.icon-dot {
  width: 54px; height: 54px; border-radius: 50%; background: var(--peach); color: var(--terracotta-dark);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.icon-dot svg { width: 26px; height: 26px; }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--peach); color: var(--brown); margin-bottom: 1rem; align-self: flex-start;
}
.pill.live { background: #dfe8d6; color: #3f5434; }
.pill.soon { background: var(--sand); color: var(--muted); border: 1px dashed var(--line); }
.price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--terracotta-dark); }

/* ── Deux publics ── */
.audience { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }
.audience .card.pro { background: var(--brown-deep); color: #f5e6dc; border-color: var(--brown-deep); }
.audience .card.pro h3 { color: #fff; }
.audience .card.pro .pill { background: var(--terracotta); color: #fff; }
.audience .card.pro .icon-dot { background: rgba(255,255,255,.12); color: var(--peach); }
.audience .card.pro .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.audience .card.pro .btn-ghost:hover { background: #fff; color: var(--brown-deep); }

.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: .65em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--terracotta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ── Citation / bandeau ── */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto; max-width: 880px; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--brown-deep);
}
.bg-brown .quote blockquote { color: #fff; }
.quote cite { display: block; margin-top: 1.3rem; font-family: var(--sans); font-style: normal; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }

/* ── Valeurs ── */
.value { padding: 26px 0; border-top: 1px solid var(--line); }
.value h3 { font-size: 1.45rem; margin-bottom: .3em; }
.value p { color: var(--muted); margin: 0; }

/* ── Split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; width: 100%; max-width: 440px; }

/* ── Tunnel ── */
.steps { counter-reset: step; display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative; background: var(--cream); border-radius: 20px; padding: 20px 24px 20px 84px;
  border: 1px solid rgba(201, 87, 58, .16);
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--terracotta); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
}
.steps strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--brown-deep); }
.steps span { color: var(--muted); font-size: .98rem; }

/* ── Confiance ── */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 22px; font-weight: 600; color: var(--brown); font-size: .95rem; text-decoration: none;
}
.trust-chip svg { width: 20px; height: 20px; color: var(--terracotta); }
a.trust-chip:hover { background: var(--peach); color: var(--brown-deep); }

/* ── Tableau (positionnement) ── */
.compare { width: 100%; border-collapse: collapse; background: var(--cream); border-radius: 18px; overflow: hidden; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(201,87,58,.15); vertical-align: top; }
.compare thead th { background: var(--brown-deep); color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.compare td:first-child { font-weight: 700; color: var(--brown); }
.table-scroll { overflow-x: auto; border-radius: 18px; }

/* ── Formulaires ── */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid rgba(201,87,58,.14); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; color: var(--brown); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--cream); border: 1.5px solid rgba(91,58,43,.25);
  border-radius: 12px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(201,87,58,.18); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--terracotta); flex-shrink: 0; }
.privacy { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success h3 { color: var(--terracotta-dark); }
.form-error { display: none; color: #9b2c1b; font-weight: 600; margin-top: 12px; }
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; }

/* ── Mockup ebook ── */
.book { max-width: 360px; justify-self: center; transform: rotate(-3deg); border-radius: 12px; box-shadow: var(--shadow); }

.notice {
  background: var(--sand); border-left: 4px solid var(--terracotta); border-radius: 0 14px 14px 0;
  padding: 16px 22px; font-size: .95rem; color: var(--muted);
}

/* ── Footer ── */
.site-footer { background: var(--brown-deep); color: #e9d6c9; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #f3d7ca; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--peach); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .brand-name { color: #fff; font-size: 1.8rem; }
.footer-brand p { color: #d6c0b2; max-width: 360px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .84rem; color: #c9b3a5; }
.footer-bottom p { margin: 0; }
.cross { color: #e9d6c9; }

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .link-arrow::after { transition: none; }
}

/* ── Identité visuelle ONCO COACH ── */
.leaf-bg { position: relative; isolation: isolate; }
.leaf-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("feuilles.jpg") left center / cover no-repeat;
}
.leaf-bg.right::before { background-position: right center; transform: scaleX(-1); }
.tagline-band { text-align: center; padding: clamp(64px, 9vw, 120px) 0; }
.tagline-band .script { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--terracotta-dark); }
.logo-card { background: #fffbf8; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); max-width: 340px; }
.logo-card img { border-radius: 18px; width: 100%; }
.sage-note { background: #eef2e8; border-left: 4px solid var(--sage-deep); border-radius: 0 14px 14px 0; padding: 16px 22px; font-size: .95rem; color: #46563c; }
.mult { mix-blend-mode: multiply; }
.btn, .nav a, .eyebrow, .pill, .steps strong, .compare thead th, .site-footer h4, .field > span, .brand-sub, .trust-chip { font-family: var(--sans); }
.bg-brown .btn { color: #fff; }
.bg-brown .btn-light { color: var(--brown-deep); }
.bg-brown .btn-light:hover { color: var(--brown-deep); }
.leaf-bg::before { opacity: .38; }

/* Logo de la barre de navigation (logo complet : feuillage + nom) */
.site-header .brand-logo { height: 46px; width: auto; max-width: 62vw; }
@media (max-width: 560px) { .site-header .brand-logo { height: 36px; } }

/* ── Sélecteur de langue ── */
.nav .lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; }
.nav .lang-switch a { padding: 4px 10px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; border-radius: 999px; }
.nav .lang-switch a[aria-current="true"] { background: var(--terracotta); color: #fff; font-weight: 700; pointer-events: none; }
@media (max-width: 980px) {
  .nav .lang-switch { margin: 10px 0 0; align-self: flex-start; }
  .nav .lang-switch a { padding: 8px 16px; font-size: .9rem; }
}
