/* ══════════════════════════════════════════════════════════════════════════
   fonctionorganique.ch — Feuille de style partagée
   Ligne produit Alain Mounir · Fonction 3D®
   Référence principale : VERT CANARD #114C50 (Pantone Stockade).
   Accents activés depuis la palette 2022 encore inutilisés ailleurs :
   bleu marine #183444, bleu #465B87, vert d'eau #A3BFBC, kaki #A3AAA2,
   beige #E5E2DD ; bordeaux #3A1A1A en signal rare.
   ══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Palette 2022 complète */
  --canard: #114c50;          /* référence principale */
  --canard-l: #1a6b71;
  --canard-d: #0c393c;
  --canard-pale: #e4eeed;
  --marine: #183444;          /* accent — bandeaux profonds */
  --bleu: #465b87;            /* accent — liens / touches */
  --bleu-clair: #bec8dd;
  --vert: #4d8474;
  --vert-eau: #a3bfbc;        /* accent — filets, puces */
  --kaki: #a3aaa2;            /* texte secondaire */
  --bordeaux: #3a1a1a;        /* signal rare */
  --beige: #e5e2dd;           /* accent — fonds doux */
  --or: #b9975b;              /* accent chaud — CTA entreprise */
  --or-pale: #f7f2e7;

  /* Rôles */
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-soft: #f7f5f1;
  --text: #183444;
  --text-soft: #4a5551;
  --line: #ddd8d1;
  --line-soft: #eceae6;

  --radius: 12px;
  --radius-sm: 7px;
  --maxw: 1080px;
  --maxw-txt: 760px;
  --shadow: 0 3px 18px rgba(17,76,80,.07);
  --shadow-lg: 0 10px 40px rgba(17,76,80,.13);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wrap-txt { max-width: var(--maxw-txt); }

/* ── BARRE DE NAVIGATION ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(9px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 1rem; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; margin-right: auto; }
.nav-brand img { height: 50px; width: auto; }
.nav-brand b { font-size: 15px; font-weight: 700; color: var(--canard); letter-spacing: .01em; line-height: 1.05; }
.nav-brand small { display: block; font-size: 9.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--kaki); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 11px;
  border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { background: var(--canard-pale); text-decoration: none; color: var(--canard); }
.nav-links a.on { color: var(--canard); font-weight: 700; }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--canard); color: #fff !important;
  font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 20px; margin-left: .3rem; }
.nav-cta:hover { background: var(--canard-l); text-decoration: none; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; font-size: 18px; color: var(--canard); }

@media (max-width: 940px) {
  .nav-burger { display: block; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem .75rem 1rem; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-cta { margin: .5rem 0 0; justify-content: center; }
}

/* ── SECTIONS & TITRES ──────────────────────────────────────────────────── */
section { padding: 3.4rem 0; }
.sec-soft { background: var(--surface-soft); }
.sec-canard { background: var(--canard); color: #fff; }
.sec-marine { background: var(--marine); color: #fff; }

.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--vert); margin-bottom: .7rem; }
.sec-canard .eyebrow, .sec-marine .eyebrow { color: var(--or); }

h1, h2, h3 { color: var(--canard); font-weight: 700; letter-spacing: -.01em; line-height: 1.18; }
.sec-canard h1, .sec-canard h2, .sec-canard h3,
.sec-marine h1, .sec-marine h2, .sec-marine h3 { color: #fff; }
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(23px, 3.4vw, 31px); }
h3 { font-size: 18px; }
.sec-lead { font-size: clamp(15px, 2vw, 18px); color: var(--text-soft); max-width: 640px; margin-top: .5rem; }
.sec-canard .sec-lead, .sec-marine .sec-lead { color: rgba(255,255,255,.85); }
.center { text-align: center; }
.center .sec-lead { margin-left: auto; margin-right: auto; }

p + p { margin-top: .9rem; }
.muted { color: var(--kaki); }
strong { color: var(--canard); font-weight: 700; }
.sec-canard strong, .sec-marine strong, .hero strong { color: #fff; }

/* ── BOUTONS ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 9px; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; padding: 13px 26px;
  border-radius: 24px; text-decoration: none; transition: background .18s, filter .18s, transform .12s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--canard); color: #fff; }
.btn-primary:hover { background: var(--canard-l); }
.btn-or { background: var(--or); color: var(--marine); font-weight: 700; }
.btn-or:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--canard); border: 1.5px solid var(--canard); }
.btn-ghost:hover { background: var(--canard-pale); }
.sec-canard .btn-ghost, .sec-marine .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.sec-canard .btn-ghost:hover, .sec-marine .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { font-size: 16px; padding: 15px 30px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }

/* ── GRILLES & CARTES ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.2rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr; } .g2 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .g4 { grid-template-columns: 1fr; } }

/* Réassurance sous CTA */
.reassure { font-size: 12.5px; color: var(--kaki); margin-top: .9rem; }
.reassure::before { content: '✓ '; color: var(--vert); font-weight: 700; }
.hero .reassure, .sec-canard .reassure, .sec-marine .reassure { color: rgba(255,255,255,.66); }
.hero .reassure::before, .sec-canard .reassure::before, .sec-marine .reassure::before { color: var(--or); }

/* Portes d'entrée (segmentation) */
.door { display: block; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .1s; }
.door:hover { border-color: var(--vert-eau); box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.door .k { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--vert); display: block; margin-bottom: .15rem; }
.door h3 { margin: .35rem 0 .4rem; }
.door p { font-size: 14px; color: var(--text-soft); }
.door .go { color: var(--vert); font-weight: 700; margin-top: .7rem; display: inline-block; }

/* Étape numérotée (comment ça se passe) */
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--canard); color: #fff;
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: .7rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }

/* Cartes symptômes (accroche gains) */
.symp { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--vert-eau);
  border-radius: var(--radius-sm); padding: 1.05rem 1.2rem; }
.symp .q { font-size: 15px; font-weight: 600; color: var(--marine); font-style: italic; }
.symp .a { font-size: 13.5px; color: var(--text-soft); margin-top: .5rem; padding-top: .5rem;
  border-top: 1px dashed var(--line); }
.symp .a b { color: var(--vert); font-weight: 700; }

/* Listes à puces tiret */
.tick { list-style: none; }
.tick li { position: relative; padding: 4px 0 4px 22px; font-size: 14.5px; color: var(--text-soft); }
.tick li::before { content: '→'; position: absolute; left: 0; color: var(--vert-eau); font-weight: 700; }
.tick.on-dark li { color: rgba(255,255,255,.85); }
.tick.on-dark li::before { color: var(--or); }
.tick b { color: var(--canard); }
.tick.on-dark b { color: #fff; }

/* Étapes / parcours (fil) */
.chain { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.2rem; }
.chain .step { background: #fff; border: 1px solid var(--vert-eau); border-radius: 22px;
  padding: 6px 15px; font-size: 13px; font-weight: 600; color: var(--canard); }
.chain .arw { color: var(--vert-eau); font-weight: 700; }
.sec-canard .chain .step, .sec-marine .chain .step { background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3); color: #fff; }
.sec-canard .chain .arw, .sec-marine .chain .arw { color: var(--or); }

/* Badge d'état */
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 3px 10px; border-radius: 20px; }
.badge-dispo { background: rgba(77,132,116,.16); color: #3d6b5c; }
.badge-soon { background: #e8e5e0; color: #6b6b66; }

/* ── MODULE (fiche riche : contexte / gains / livrable) ─────────────────── */
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.6rem; }
.mod-top { display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--line-soft); background: var(--canard-pale); }
.mod-n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--canard);
  color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mod-h { flex: 1; min-width: 0; }
.mod-h h3 { font-size: 21px; }
.mod-h .st { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--vert); margin-top: 2px; }
.mod-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 720px) { .mod-body { grid-template-columns: 1fr; } }
.mod-col { padding: 1.3rem 1.6rem; }
.mod-col + .mod-col { border-left: 1px solid var(--line-soft); }
@media (max-width: 720px) { .mod-col + .mod-col { border-left: none; border-top: 1px solid var(--line-soft); } }
.mod-lab { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--kaki); margin-bottom: .55rem; }
.mod-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding: 1.1rem 1.6rem; border-top: 1px solid var(--line-soft); background: var(--surface-soft); }
.mod-price { font-size: 19px; font-weight: 700; color: var(--canard); }
.mod-price small { display: block; font-size: 11.5px; font-weight: 400; color: var(--kaki); }

/* Encadré prérequis */
.note-req { display: flex; gap: 9px; font-size: 13px; padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--or-pale); border-left: 3px solid var(--or); color: #7a6234; margin-top: 1rem; }
.note-req.free { background: rgba(77,132,116,.1); border-left-color: var(--vert); color: #3d6b5c; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(160deg, var(--canard) 0%, var(--canard-d) 100%); color: #fff;
  padding: 3.6rem 0 3.8rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.hero h1 { color: #fff; margin-bottom: .9rem; }
.hero .sub { font-size: clamp(16px, 2.4vw, 20px); color: rgba(255,255,255,.9); line-height: 1.55; }
.hero .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--or); margin-bottom: 1rem; }
.hero-card { background: #f8f6f1; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-lg); }
.hero-card img { width: 100%; height: auto; }
@media (max-width: 820px) { .hero-card { max-width: 340px; margin: 0 auto; } }
.swiss { display: inline-flex; align-items: center; gap: 7px; margin-top: 1.4rem; font-size: 11px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@media (max-width: 820px) { .center-mob { justify-content: center; } .hero .btn-row { justify-content: center; } }

/* ── BANDE DE STATISTIQUES / REPÈRES ───────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { text-align: center; padding: .5rem; }
.fact .n { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--canard); line-height: 1; }
.sec-canard .fact .n, .sec-marine .fact .n { color: #fff; }
.fact .l { font-size: 12.5px; color: var(--text-soft); margin-top: .4rem; }
.sec-canard .fact .l, .sec-marine .fact .l { color: rgba(255,255,255,.8); }

/* ── CITATION / BASELINE ────────────────────────────────────────────────── */
.quote { border-left: 4px solid var(--or); padding: .5rem 0 .5rem 1.4rem; font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500; color: var(--canard); line-height: 1.4; font-style: italic; }
.sec-canard .quote, .sec-marine .quote { color: #fff; }

/* ── SOURCES / OUVRAGES ─────────────────────────────────────────────────── */
.book { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; }
.book .spine { flex-shrink: 0; width: 42px; height: 58px; border-radius: 3px 5px 5px 3px;
  background: linear-gradient(135deg, var(--vert) 0%, var(--canard) 100%);
  box-shadow: inset 3px 0 0 rgba(0,0,0,.18), var(--shadow); }
.book:nth-child(2) .spine { background: linear-gradient(135deg, var(--bleu) 0%, var(--marine) 100%); }
.book:nth-child(3) .spine { background: linear-gradient(135deg, var(--vert-eau) 0%, var(--vert) 100%); }
.book:nth-child(4) .spine { background: linear-gradient(135deg, var(--kaki) 0%, var(--canard) 100%); }
.book b { color: var(--canard); font-size: 15px; }
.book p { font-size: 13px; color: var(--text-soft); margin-top: .25rem; }

/* ── ESPACE CLIENT (portail de liens) ──────────────────────────────────── */
.access { display: flex; align-items: center; gap: 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s; }
.access:hover { border-color: var(--vert-eau); box-shadow: var(--shadow-lg); text-decoration: none; }
.access .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--canard-pale);
  color: var(--canard); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.access .tx { flex: 1; min-width: 0; }
.access .tx b { color: var(--canard); font-size: 16px; }
.access .tx p { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.access .go { flex-shrink: 0; color: var(--vert); font-size: 20px; }

/* ── FORMULAIRE ─────────────────────────────────────────────────────────── */
.form { display: grid; gap: .9rem; }
.form label { font-size: 13px; font-weight: 600; color: var(--text); }
.form label .req { color: var(--bordeaux); }
.form input, .form textarea, .form select { width: 100%; margin-top: .3rem; padding: .65rem .8rem;
  font: inherit; font-size: 14.5px; color: var(--text); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--canard); border-color: var(--canard); }
.form textarea { resize: vertical; min-height: 90px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form .hp { position: absolute !important; left: -9999px; }
.msg { font-size: 13.5px; padding: .7rem .9rem; border-radius: var(--radius-sm); }
.msg.ok { background: rgba(77,132,116,.16); color: #2f5b4d; }
.msg.err { background: rgba(58,26,26,.1); color: var(--bordeaux); }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.foot { margin-top: auto; background: var(--marine); color: rgba(255,255,255,.72); padding: 2.6rem 0 1.6rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.foot h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--or);
  margin-bottom: .8rem; font-weight: 700; }
.foot a { color: rgba(255,255,255,.8); font-size: 13.5px; display: block; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot .brand b { color: #fff; font-size: 16px; }
.foot .brand p { font-size: 13px; margin-top: .4rem; max-width: 320px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.8rem; padding-top: 1.2rem;
  font-size: 11.5px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; }

/* Utilitaires */
.mt0 { margin-top: 0; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; }
.hr { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }

/* ── IMPRESSION / EXPORT PDF ─────────────────────────────────────────────── */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  @page { margin: 12mm; }
  html { scroll-behavior: auto; }
  .nav { position: static; backdrop-filter: none; }
  .nav-burger { display: none !important; }
  .nav-links { display: flex !important; position: static; flex-direction: row; box-shadow: none; border: 0; padding: 0; }
  section { padding: 2rem 0; }
  .hero { padding: 2rem 0; }
  .card, .mod, .symp, .book, .access, .rec, .fact, blockquote.quote { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  a[target="_blank"]::after { content: ""; }  /* pas d'URL en exposant */
  .btn { border: 1px solid rgba(0,0,0,.15); }
}
