/* ==========================================================================
   Pierre Venard - Ostéopathe Nancy · publics.css
   Pages « Pour qui » : adultes, adolescents, enfants, nourrissons, femmes
   enceintes. Complète style.css + interieur.css. Chaque page a sa teinte
   (--tone) et ses propres blocs :
     adulte     -> consultation en 9 étapes (bande sombre), phrases entendues
     ado        -> motifs, fiche « consultation d'un mineur »
     enfant     -> motifs par âge, fiche pratique
     nourrisson -> repères par âge, encadré loi, fiche pratique
     enceinte   -> trimestres, installations
   ========================================================================== */

.pub { --tone: #3d4a5c; --tone-soft: #e9ecf1; }
.pub--ado { --tone: #5b4b8a; --tone-soft: #ece8f5; }
.pub--enfant { --tone: #3f8f7a; --tone-soft: #e3f1ec; }
.pub--bebe { --tone: #5d85ad; --tone-soft: #e7eef6; }
.pub--enceinte { --tone: #b0606b; --tone-soft: #f6e6e8; }


/* ---------- En-tête de page avec le personnage de la tuile d'accueil ---------- */
.pub-hero {
  max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1.5rem 0;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start;
}
.pub-hero__ico {
  width: clamp(116px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #fffaf4 0%, var(--tone-soft) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 25%, transparent), 0 18px 34px -24px rgba(64, 45, 28, .6);
  margin-top: .4rem;
}
.pub-hero__ico svg { width: 72%; height: 72%; overflow: visible; }
.pub-hero .eyebrow { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--tone); margin-bottom: .8rem; }
.pub-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 1rem; }
.pub-hero .answer { border-left-color: var(--tone); }
.pub-hero .updated { margin-bottom: 0; }
.pub-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.pub-meta li { font-size: .84rem; padding: .3rem .8rem; border-radius: 999px; background: var(--tone-soft); color: var(--text); }
@media (max-width: 640px) {
  .pub-hero { grid-template-columns: 1fr; }
  .pub-hero__ico { width: 108px; }
}

/* Titre de section aligné à gauche, plus « éditorial » que .section-head */
.pub-h { max-width: 60ch; margin: 0 0 1.8rem; }
.pub-h .eyebrow { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 700; color: var(--tone); margin-bottom: .6rem; }
.pub-h h2 { margin: 0 0 .5rem; }
.pub-h p { color: var(--muted); margin: 0; }

/* Liste de motifs en cartes simples (ados, enfants, grossesse) */
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.items--col { grid-template-columns: 1fr; }
.items li { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: 12px; padding: 1.1rem 1.25rem; }
.items small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--tone); margin-bottom: .3rem; }
.items h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.items p { margin: 0; font-size: .95rem; }

/* Encadré « d'abord le médecin » (commun, couleur propre à chaque page) */
.alert {
  max-width: 760px; margin: 0 auto; padding: 1.6rem 1.8rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #c0463a;
}
.alert h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .4rem; }
.alert > p { color: var(--muted); }
.alert ul { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.alert li { position: relative; padding-left: 1.6rem; }
.alert li::before { content: "!"; position: absolute; left: 0; top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #c0463a; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.1rem; text-align: center; }
.alert .alert__foot { margin: 1rem 0 0; font-size: .92rem; color: var(--text); }
.alert a { color: var(--accent-ink); }

/* Liens vers les autres publics, en bas de chaque page */
.pub-others { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.pub-others a {
  text-decoration: none; color: var(--text); font-size: .92rem; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s var(--ease-out);
}
.pub-others a:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   ADULTES - phrases entendues au cabinet
   ========================================================================== */
.heard { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.4rem; }
.heard li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.heard q { display: block; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--text); quotes: "« " " »"; margin-bottom: .6rem; }
.heard p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 700px) { .heard { grid-template-columns: 1fr; } }

/* ==========================================================================
   ADOLESCENTS - fiche mineur
   ========================================================================== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.duo__col h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.rules { padding: 1.6rem 1.7rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: 14px; box-shadow: var(--shadow-soft); }
.rules h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 1rem; }
.rules dl { margin: 0; display: grid; }
.rules dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.rules dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--tone); padding-top: .2rem; }
.rules dd { margin: 0; font-size: .98rem; }
@media (max-width: 480px) { .rules dl div { grid-template-columns: 1fr; gap: .1rem; } }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

/* ==========================================================================
   NOURRISSONS - encadré loi
   ========================================================================== */
.law { margin: 1.4rem 0 0; padding: 1rem 1.2rem; border-radius: 10px; background: var(--tone-soft); font-size: .95rem; }
.law strong { color: var(--tone); }

/* ==========================================================================
   FEMMES ENCEINTES - installations
   ========================================================================== */
.poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pose { border-left: 3px solid var(--tone); padding: .2rem 0 .2rem 1.1rem; }
.pose h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
.pose p { font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .poses { grid-template-columns: 1fr; } }

.nope { max-width: 820px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.nope div { padding: 1rem 1.1rem; border-radius: 12px; background: var(--tone-soft); }
.nope b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; margin-bottom: .2rem; }
.nope p { margin: 0; font-size: .92rem; }
@media (max-width: 760px) { .nope { grid-template-columns: 1fr; } }

/* ==========================================================================
   ADULTES - la consultation, étape par étape (bande sombre)
   Comprendre (01-03) -> Décider (04-06, entonnoir des diagnostics)
   -> Traiter (07-09, techniques, réévaluation, conseils)
   ========================================================================== */
.consult {
  --ink: #1d242e; --ink-2: #27303c; --ink-line: rgba(255, 255, 255, .1); --ink-text: #e9e4da; --ink-muted: #a9b0ba;
  position: relative; color: var(--ink-text); background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  margin-top: 2.6rem; padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.consult::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(24rem 16rem at 62% 0%, rgba(217, 116, 58, .2), transparent 100%);
}
.consult > * { position: relative; }
.consult h2, .consult h3 { color: #fff; }
.consult__head { max-width: 62ch; margin-bottom: 2.4rem; }
.consult__head .eyebrow { display: block; text-transform: uppercase; letter-spacing: .22em; font-size: .76rem; font-weight: 700; color: #f0a270; margin-bottom: .8rem; }
.consult__head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 .8rem; }
.consult__head p { color: var(--ink-muted); font-size: 1.08rem; margin: 0; }

/* Rail des trois temps */
.phases { list-style: none; margin: 0 0 3.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink-line); border-radius: 14px; overflow: hidden; }
.phases a { display: flex; align-items: baseline; gap: .8rem; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink-text); background: rgba(255, 255, 255, .02); transition: background .25s; }
.phases li + li a { border-left: 1px solid var(--ink-line); }
.phases a:hover { background: rgba(217, 116, 58, .12); }
.phases b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: #fff; }
.phases span { font-size: .8rem; letter-spacing: .08em; color: #f0a270; font-variant-numeric: tabular-nums; }

/* Un temps = colonne titre collante + contenu */
.phase { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2.6rem 0; border-top: 1px solid var(--ink-line); scroll-margin-top: 90px; }
.phase__side { position: sticky; top: 100px; align-self: start; }
.phase__roman { display: block; font-family: var(--serif); font-size: 4.2rem; line-height: .9; color: transparent; -webkit-text-stroke: 1.2px #f0a270; margin-bottom: .6rem; }
.phase__side h3 { font-size: 1.7rem; margin: 0 0 .4rem; }
.phase__side p { color: var(--ink-muted); font-size: .95rem; margin: 0; }

.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.1rem; padding: 1.3rem 1.4rem;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.step:hover { border-color: rgba(240, 162, 112, .45); transform: translateX(4px); }
.step__n { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: #f0a270; font-variant-numeric: tabular-nums; }
.step h4 { font-family: var(--serif); font-weight: 400; font-size: 1.28rem; color: #fff; margin: .1rem 0 .35rem; }
.step p { margin: 0; color: var(--ink-text); font-size: .98rem; line-height: 1.6; }
.step p + p { margin-top: .5rem; }
.step small { display: block; margin-top: .6rem; color: var(--ink-muted); font-size: .85rem; }

/* Entonnoir des trois diagnostics */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.funnel li { display: grid; gap: .7rem; }
.funnel__bar {
  justify-self: start; width: var(--w); min-width: min(100%, 17rem); display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap;
  padding: .95rem 1.3rem; border-radius: 12px 40px 40px 12px; color: #fff;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .8);
}
.funnel li:nth-child(1) { --w: 100%; --c1: #3a4655; --c2: #4b5a6b; }
.funnel li:nth-child(2) { --w: 84%; --c1: #7a4a34; --c2: #9a5a37; }
.funnel li:nth-child(3) { --w: 68%; --c1: #c2622c; --c2: #d9743a; }
.funnel__bar b { font-family: var(--serif); font-weight: 400; font-size: 1.22rem; }
.funnel__bar span { font-size: .78rem; opacity: .8; font-variant-numeric: tabular-nums; }
.funnel__bar i { margin-left: auto; font-family: var(--serif); font-size: 1rem; opacity: .92; }
.funnel p { margin: 0; max-width: 62ch; padding-left: 1.3rem; border-left: 1px solid var(--ink-line); color: var(--ink-text); font-size: .98rem; }
.funnel p a { color: #f0a270; }

/* Techniques de traitement */
.restrict { margin: 0 0 1.4rem; padding: 1.1rem 1.3rem; border-radius: 12px; background: rgba(217, 116, 58, .12); border: 1px solid rgba(240, 162, 112, .3); color: #fff; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.techs { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tech { padding: 1.3rem 1.3rem 1.2rem; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px; transition: border-color .3s, transform .3s var(--ease-out); }
.tech:hover { border-color: rgba(240, 162, 112, .45); transform: translateY(-3px); }
.tech svg { width: 54px; height: 54px; padding: 9px; border-radius: 14px; background: rgba(240, 162, 112, .1); margin-bottom: .9rem; fill: none; stroke: #f0a270; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tech h4 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: #fff; margin: 0 0 .3rem; }
.tech p { margin: 0; font-size: .94rem; color: var(--ink-text); line-height: 1.55; }

/* Boucle test -> traitement -> re-test */
.loop { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 0; }
.loop li { display: flex; align-items: center; }
.loop li + li::before { content: "→"; margin: 0 .6rem; color: #f0a270; }
.loop span { font-size: .84rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--ink-line); color: var(--ink-text); background: rgba(255, 255, 255, .03); }
.loop .is-key span { border-color: rgba(240, 162, 112, .6); color: #fff; }

@media (max-width: 900px) {
  .phase { grid-template-columns: 1fr; gap: 1.2rem; }
  .phase__side { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
  .phase__roman { font-size: 3rem; margin: 0; grid-row: span 2; }
  .techs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .phases { grid-template-columns: 1fr; }
  .phases li + li a { border-left: 0; border-top: 1px solid var(--ink-line); }
  .funnel__bar { width: 100%; border-radius: 12px; }
  .funnel__bar i { margin-left: 0; flex-basis: 100%; }
  .step { grid-template-columns: 1fr; gap: .3rem; }
}
