/* ==========================================================================
   Plug'n'Dose — feuille de style
   Site vitrine statique. Aucune dépendance, aucun build.
   Palette de marque (logo) :
     bleu nuit  #2A4A63  — encre, titres, structure
     teal       #3E9B8E  — accents, courbe, traits
     jaune doré #F6B400  — appel à l'action (usage parcimonieux)
   ========================================================================== */

/* --- 1. Jetons de design (variables CSS) ------------------------------------ */
:root {
  /* Couleurs */
  --navy:        #2A4A63;
  --navy-700:    #213b50;
  --teal:        #3E9B8E;   /* accent vif : courbe, traits, icônes (non-texte) */
  --teal-ink:    #237368;   /* teal foncé : liens texte (contraste AA) */
  --gold:        #F6B400;
  --bg:          #F4F7F7;   /* blanc cassé frais */
  --surface:     #FFFFFF;
  --surface-2:   #EEF4F3;   /* tuiles teintées */
  --ink:         #233340;   /* texte courant */
  --ink-soft:    #50616d;   /* texte secondaire */
  --line:        #e0e8e8;   /* filets */
  --line-soft:   #eaf0f0;
  --band:        rgba(62,155,142,.12);  /* fenêtre thérapeutique */

  /* Typographie */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(33,59,80,.05), 0 14px 40px -22px rgba(33,59,80,.28);
  --shadow-soft: 0 1px 2px rgba(33,59,80,.04), 0 10px 30px -20px rgba(33,59,80,.22);
}

/* --- 2. Réinitialisation et base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

/* Cible de défilement sous l'en-tête collant */
:where(section, footer)[id] { scroll-margin-top: 84px; }

/* Lien d'évitement (accessibilité clavier) */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Focus visible homogène */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* --- 3. Typographie --------------------------------------------------------- */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 500; line-height: 1.12; margin: 0; }
.h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); letter-spacing: -.012em; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.55rem); letter-spacing: -.01em; }
h3  { font-family: var(--sans); color: var(--navy); font-weight: 600; font-size: 1.075rem; letter-spacing: -.005em; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); line-height: 1.65; }
.measure { max-width: 64ch; }

/* Étiquette de section (eyebrow) : encode l'identité de la section */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }

/* --- 4. Mise en page -------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.75rem, 2.5rem + 6vw, 6.5rem); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line-soft); }

/* --- 5. En-tête / navigation ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,247,247,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -22px rgba(33,59,80,.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 1.12rem; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .5rem .7rem; border-radius: 8px;
  font-size: .94rem; font-weight: 500; color: var(--navy); text-decoration: none;
  position: relative; transition: color .2s, background .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .34rem; height: 2px;
  background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--teal-ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal-ink); }

.nav-cta { margin-left: .4rem; }

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- 6. Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .8rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px -12px rgba(246,180,0,.8); }
.btn-primary:hover { background: #ffc21f; color: var(--navy); box-shadow: 0 12px 26px -12px rgba(246,180,0,.95); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-ink); background: var(--surface); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- 7. Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before { /* halo teal très discret en fond */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 78% 18%, rgba(62,155,142,.10), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: 1.9rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.tagline-strip {
  margin-top: 2.3rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 1.08rem;
}

/* Figure produit (carte) du hero */
.hero-figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.1rem .85rem;
}
.hero-figure .pk { width: 100%; height: auto; }
.figure-cap {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--ink-soft);
}
.legend { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 22px; height: 9px; border-radius: 3px; display: inline-block; }
.legend .median { height: 0; border-top: 2.5px solid var(--teal); width: 22px; }
.legend .ci { background: rgba(62,155,142,.32); }
.legend .target { background: var(--band); border: 1px solid rgba(62,155,142,.35); }

/* --- 8. Graphe pharmacocinétique (SVG) -------------------------------------- */
.pk-target { fill: var(--band); }
.pk-target-line { stroke: var(--teal); stroke-width: 1.1; stroke-dasharray: 5 4; opacity: .5; }
.pk-axis line { stroke: #c9d6d6; stroke-width: 1; }
.pk-band-out { fill: rgba(62,155,142,.14); }
.pk-band-in  { fill: rgba(62,155,142,.24); }
.pk-median { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pk-dose { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.pk-pt { fill: #e4572e; stroke: #fff; stroke-width: 2; }
.pk-lab { font-family: var(--sans); font-size: 12px; fill: var(--ink-soft); }

/* Animation d'apparition du graphe (un seul moment orchestré) */
.pk .pk-band-out, .pk .pk-band-in { opacity: 0; transition: opacity .8s ease .15s; }
.pk .pk-median { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pk .pk-dose, .pk .pk-pt, .pk .pk-lab { opacity: 0; transition: opacity .5s ease; }
.pk.play .pk-band-out, .pk.play .pk-band-in { opacity: 1; }
.pk.play .pk-median { animation: draw 1.6s cubic-bezier(.45,.05,.2,1) .25s forwards; }
.pk.play .pk-dose { opacity: 1; transition-delay: .2s; }
.pk.play .pk-lab { opacity: 1; transition-delay: .3s; }
.pk.play .pk-pt { opacity: 1; transition-delay: 1.65s; animation: pop .4s ease 1.65s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* --- 9. Section Plug'n'Dose : services -------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.note-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-soft);
}
.note-card p:last-child { margin-bottom: 0; }
.note-card .src { font-size: .82rem; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .25s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0dd; }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--surface-2);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--teal-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* --- 10. Section Tucuxi ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chip {
  font-size: .82rem; font-weight: 500; color: var(--navy);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .32rem .8rem;
}
.figure {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.figure img { width: 100%; background: #fff; padding: .9rem .9rem .4rem; }
.figure figcaption { padding: .9rem 1.2rem 1.1rem; border-top: 1px solid var(--line-soft); font-size: .86rem; color: var(--ink-soft); }

.benefits { display: grid; gap: .85rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.benefits li { position: relative; padding-left: 2rem; color: var(--ink); }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: .12rem; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2);
  /* coche teal */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23237368' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
}
.benefits li b { color: var(--navy); font-weight: 600; }

.resources { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.resource {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .9rem; font-size: .92rem; font-weight: 500; color: var(--navy);
  transition: border-color .2s, color .2s, transform .15s;
}
.resource:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-2px); }
.resource svg { width: 17px; height: 17px; stroke: var(--teal-ink); fill: none; stroke-width: 1.8; }

/* --- 11. Section Le STP ----------------------------------------------------- */
.window-figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.2rem 1rem;
}
.win-zone-tox  { fill: rgba(246,180,0,.10); }
.win-zone-sub  { fill: rgba(42,74,99,.06); }
.win-band      { fill: var(--band); }
.win-band-line { stroke: rgba(62,155,142,.45); stroke-width: 1; stroke-dasharray: 4 4; }
.win-curve { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.win-axis  { stroke: #c9d6d6; stroke-width: 1; }
.win-lab   { font-family: var(--sans); font-size: 12.5px; }
.win-lab-tox { fill: #b88600; }
.win-lab-win { fill: var(--teal-ink); font-weight: 600; }
.win-lab-sub { fill: var(--ink-soft); }
.win-axis-lab { font-family: var(--sans); font-size: 12px; fill: var(--ink-soft); }
.win-note { fill: var(--ink-soft); font-family: var(--sans); font-size: 11.5px; }

.molecules { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.molecules li {
  font-size: .9rem; color: var(--navy); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: .4rem .85rem;
}

/* --- 12. Section Contact ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(62,155,142,.18); }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; }

.contact-direct a { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
.contact-direct a:hover { color: var(--teal-ink); }
.contact-meta { margin-top: 1.6rem; font-size: .9rem; color: var(--ink-soft); }
.contact-meta .row { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .35rem; }
.contact-meta .row span:first-child { color: var(--navy); font-weight: 600; min-width: 96px; }

/* --- 13. Pied de page ------------------------------------------------------- */
.site-footer { background: var(--navy); color: #cdd9e2; padding-block: 3.25rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand b { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer-brand .mark { width: 26px; height: 26px; }
.footer-brand p { margin-top: .8rem; font-size: .92rem; color: #b6c4cf; max-width: 32ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa6b4; margin: 0 0 .9rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: #d3dee6; text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center;
  font-size: .84rem; color: #9fb1bd;
}
.footer-bottom a { color: #9fb1bd; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; color: #cdd9e2; text-decoration: none; }
.to-top:hover { color: #fff; }

/* --- 14. Révélation au défilement ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* --- 15. Page Mentions légales --------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; }
.legal h1 { margin-bottom: .4rem; }
.legal address { font-style: normal; color: var(--ink-soft); }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 500; text-decoration: none; }
.legal .back svg { width: 16px; height: 16px; }

/* --- 16. Responsive --------------------------------------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 560px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 1.1rem; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .22s, opacity .22s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .7rem .4rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .figure-cap { font-size: .76rem; }
}

/* Respect de la réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pk .pk-band-out, .pk .pk-band-in, .pk .pk-dose, .pk .pk-pt, .pk .pk-lab { opacity: 1 !important; transition: none !important; }
  .pk .pk-median { stroke-dashoffset: 0 !important; animation: none !important; }
  .pk.play .pk-pt { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
