/*
 * lead-resources.css — DA des pages ressources (lead magnets) de Niry Consulting.
 * Autonome : ne dépend pas du site principal, mais suit sa charte (assets/css/tokens.css).
 * Écarts assumés : couleurs réelles du logo (#43B6C2 / #285C78) et Poppins pour les titres,
 * comme les visuels LinkedIn. À harmoniser avec tokens.css lors de la refonte.
 */

/* ---------- 0. Polices hébergées ici (licence SIL OFL, sous-ensemble latin) : aucun appel à Google ---------- */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-variable-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/poppins-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/poppins-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Jetons (source de vérité de ces pages) ---------- */
:root {
  color-scheme: light;

  --c-bg:          #ffffff;
  --c-bg-alt:      #f3f7fa;
  --c-surface:     #ffffff;
  --c-ink:         #2b3550;   /* titres, bordures fortes */
  --c-text:        #3a4357;   /* texte courant */
  --c-muted:       #5d6678;   /* texte secondaire */
  --c-line:        #dde4ec;   /* filets */

  --c-accent:      #43B6C2;   /* turquoise du logo : boutons, filets, repères. Jamais en texte sur fond clair. */
  --c-accent-ink:  #285C78;   /* bleu du logo : titres de section, liens */
  --c-accent-soft: #e7f5f7;   /* fond teinté turquoise */
  --c-on-accent:   #0f1d2b;   /* texte posé sur le turquoise */

  --c-warn-bg:     #fbefed;   /* erreurs à éviter */
  --c-warn-line:   #c65a4f;
  --c-tip-bg:      #fdf5e3;   /* conseil */
  --c-tip-line:    #c99526;

  --f-sans:    "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Poppins", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --t-h1:    clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem);
  --t-h2:    clamp(1.5rem, 1.25rem + 1.2vw, 2.05rem);
  --t-h3:    clamp(1.12rem, 1.05rem + 0.3vw, 1.28rem);
  --t-lead:  clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  --t-body:  1.125rem;
  --t-small: 0.95rem;
  --t-tiny:  0.8rem;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: clamp(3rem, 2.2rem + 3.5vw, 5rem);

  --wrap:   46rem;   /* colonne de lecture */
  --wrap-l: 62rem;   /* blocs larges (hero, pied de page) */
  --gutter: 1rem;
  --r:      10px;
  --r-card: 18px;
  --border: 2px;
  --offset: 7px;     /* ombre décalée « dure », signature des cartes */
  --rule:   4px;     /* filet d'accent des encadrés */
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--f-sans); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 600; color: var(--c-ink); }
p { margin: 0 0 var(--s-4); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.wrap   { max-width: calc(var(--wrap) + 2 * var(--gutter));   margin: 0 auto; padding: 0 var(--gutter); }
.wrap-l { max-width: calc(var(--wrap-l) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 3. En-tête (hero) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-line); padding: var(--s-6) 0 var(--s-7);
}
.hero::before {          /* filet vertical turquoise → bleu, repris des visuels LinkedIn */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 8px;
  background: linear-gradient(var(--c-accent), var(--c-accent-ink));
}
.hero::after {           /* cercle pointillé, discret */
  content: ""; position: absolute; right: -9rem; bottom: -11rem; width: 26rem; height: 26rem;
  border: 2px dashed var(--c-accent); border-radius: 50%; opacity: .45; pointer-events: none;
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-7); }
.topbar .logo { display: inline-block; background: var(--c-surface); border-radius: var(--r); padding: .45rem .8rem; box-shadow: 0 1px 2px rgb(43 53 80 / .06); }
.topbar img { height: 30px; width: auto; }
.topbar a { font-size: var(--t-small); color: var(--c-muted); text-decoration: none; }
.topbar a:hover { color: var(--c-accent-ink); }
.kicker {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-tiny);
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-ink);
  display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-4);
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); flex: none; }
.hero h1 {
  font-family: var(--f-sans); font-weight: 300; font-size: var(--t-h1); line-height: 1.08;
  letter-spacing: -.01em; color: var(--c-ink); margin: 0 0 var(--s-5);
}
.hero h1 .br { display: none; }
@media (min-width: 40rem) { .hero h1 .br { display: inline; } }
.hero h1 b { font-family: var(--f-display); font-weight: 800; color: var(--c-accent-ink); letter-spacing: -.02em; }
.hero .sub { font-size: var(--t-lead); color: var(--c-muted); max-width: 38rem; margin-bottom: var(--s-6); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.pills li {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-small); color: var(--c-ink);
  background: var(--c-surface); border: var(--border) solid var(--c-ink); border-radius: 999px; padding: .35rem 1rem;
}
.pills li span { color: var(--c-accent); font-weight: 800; margin-right: .3rem; }

/* ---------- 4. Corps ---------- */
main { padding: var(--s-7) 0 var(--s-8); }
.lead { font-size: var(--t-lead); color: var(--c-ink); }
.section { margin-top: var(--s-8); }
.section-kicker {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-tiny); letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-accent-ink); margin: 0 0 var(--s-2);
}
h2 {
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-h2); line-height: 1.18;
  letter-spacing: -.015em; color: var(--c-accent-ink); margin: 0 0 var(--s-5);
}
h3 {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.3;
  color: var(--c-ink); margin: 0 0 var(--s-3);
}
ul.arrows { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
ul.arrows li { position: relative; padding-left: 1.9rem; margin-bottom: var(--s-3); }
ul.arrows li::before {
  content: "→"; position: absolute; left: 0; top: 0; font-family: var(--f-display); font-weight: 800; color: var(--c-accent);
}

/* ---------- 5. Carte auteur ---------- */
.author {
  margin: var(--s-7) 0; background: var(--c-surface);
  border: var(--border) solid var(--c-ink); border-radius: var(--r-card);
  box-shadow: var(--offset) var(--offset) 0 var(--c-accent-ink);
  padding: var(--s-6) var(--s-6) var(--s-5);
}
.author-head { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); }
.author-head img {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--c-accent); padding: 2px; background: var(--c-surface);
}
.author-name { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: var(--c-ink); line-height: 1.15; margin: 0; }
.author-tag { color: var(--c-accent-ink); margin: var(--s-1) 0 0; line-height: 1.35; }
.author ul.arrows li { margin-bottom: var(--s-2); }
.author .demo { margin: var(--s-4) 0 0; font-size: var(--t-small); }

/* ---------- 6. Encadrés ---------- */
.box { border-radius: var(--r); padding: var(--s-5) var(--s-5) var(--s-4); margin: var(--s-6) 0; border-left: var(--rule) solid; }
.box > :last-child { margin-bottom: 0; }
.box-title { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--c-ink); margin: 0 0 var(--s-3); }
.box-promise { background: var(--c-accent-soft); border-color: var(--c-accent); }
.box-promise .box-title { font-size: var(--t-h3); color: var(--c-accent-ink); }
.box-warn    { background: var(--c-warn-bg); border-color: var(--c-warn-line); }
.box-tip     { background: var(--c-tip-bg); border-color: var(--c-tip-line); }
.box-note    { background: var(--c-bg-alt); border-color: var(--c-ink); }
.box ol { margin: 0; padding-left: 1.3rem; }
.box ol li { margin-bottom: var(--s-3); padding-left: .2rem; }
blockquote.lived {
  margin: var(--s-6) 0; padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 2px solid var(--c-ink); font-style: italic; color: var(--c-ink);
}
blockquote.lived strong { font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: var(--t-small); letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent-ink); display: block; margin-bottom: var(--s-1); }

/* ---------- 7. Visuel ---------- */
.figure { margin: var(--s-6) auto; max-width: 30rem; }
.figure img { border-radius: var(--r); border: 1px solid var(--c-line); }

/* ---------- 8. Cartes d'options (grille 2 colonnes) ---------- */
.cards { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin: var(--s-6) 0; }
@media (min-width: 44rem) { .cards { grid-template-columns: 1fr 1fr; } .cards.one { grid-template-columns: 1fr; } }
.card-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-2); }
.card-head .card-num { margin-bottom: 0; }
.card-head h3 { margin: 0; }
.card .quote { font-style: italic; color: var(--c-ink); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: var(--s-5); }
.card-num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--c-accent); color: var(--c-on-accent); font-family: var(--f-display); font-weight: 800; font-size: .95rem;
  margin-bottom: var(--s-3);
}
.card dl { margin: 0; font-size: var(--t-small); }
.card dt { font-weight: 600; color: var(--c-ink); margin-top: var(--s-3); }
.card dd { margin: var(--s-1) 0 0; }
.tag { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: var(--t-tiny); padding: .15rem .65rem; border-radius: 999px; vertical-align: middle; margin-left: var(--s-2); }
.tag-no  { background: var(--c-bg-alt); color: var(--c-ink); border: 1px solid var(--c-line); }
.tag-yes { background: var(--c-accent); color: var(--c-on-accent); }

/* ---------- 9. Questions numérotées ---------- */
ol.questions { list-style: none; counter-reset: q; padding: 0; margin: var(--s-6) 0; }
ol.questions > li { counter-increment: q; position: relative; padding: 0 0 var(--s-5) 3.6rem; margin-bottom: var(--s-5); border-bottom: 1px solid var(--c-line); }
ol.questions > li:last-child { border-bottom: 0; }
ol.questions > li::before {
  content: counter(q); position: absolute; left: 0; top: -.35rem;
  font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--c-accent);
}
ol.questions h3 { margin-bottom: var(--s-2); }
ol.questions p { margin: 0; }

/* ---------- 10. Calculateur ---------- */
.calc { background: var(--c-bg-alt); border: var(--border) solid var(--c-ink); border-radius: var(--r-card); padding: var(--s-6); margin: var(--s-6) 0; }
.calc-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-grid > div { display: flex; flex-direction: column; }  /* le libellé prend la place libre : les champs d'une ligne restent alignés */
.calc label { flex: 1 1 auto; display: block; font-size: var(--t-small); font-weight: 600; color: var(--c-ink); margin-bottom: var(--s-2); line-height: 1.3; }
.calc .field { display: flex; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); }
.calc .field:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.calc input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--c-ink); padding: .65rem .8rem; }
.calc input:focus { outline: none; }
.calc .unit { padding: 0 .8rem; color: var(--c-muted); font-weight: 600; }
.calc-out { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
@media (min-width: 40rem) { .calc-out { grid-template-columns: 1fr 1fr; } }
.calc-out div { background: var(--c-surface); border-radius: var(--r); padding: var(--s-4); border-left: var(--rule) solid var(--c-accent); }
.calc-out span { display: block; font-size: var(--t-small); color: var(--c-muted); }
.calc-out output { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--c-accent-ink); }
.calc .hint { font-size: var(--t-small); color: var(--c-muted); margin: var(--s-4) 0 0; }

/* ---------- 11. Liste à cocher ---------- */
ul.checks { list-style: none; padding: 0; margin: var(--s-5) 0; }
ul.checks li { margin-bottom: var(--s-3); }
ul.checks label { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; }
ul.checks input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--c-accent-ink); flex: none; }

/* ---------- 12. Tableau ---------- */
.table-wrap { overflow-x: auto; margin: var(--s-6) 0 var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 34rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { font-family: var(--f-display); font-weight: 600; color: var(--c-ink); background: var(--c-bg-alt); }
tr:last-child td { border-bottom: 0; }
.note { font-size: var(--t-small); color: var(--c-muted); font-style: italic; }

/* ---------- 13. Et maintenant (pied de page) ---------- */
.next { background: var(--c-bg-alt); border-top: 1px solid var(--c-line); padding: var(--s-8) 0; }
.next h2 { text-align: left; }
.next-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 52rem) { .next-grid { grid-template-columns: 1fr 1fr; } }
.next-card {
  background: var(--c-surface); border: var(--border) solid var(--c-ink); border-radius: var(--r-card);
  box-shadow: var(--offset) var(--offset) 0 var(--c-accent-ink); padding: var(--s-6);
  display: flex; flex-direction: column;
}
.next-card h3 { font-size: 1.3rem; color: var(--c-ink); }
.next-card .push { margin-top: auto; }
.btn {
  display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--c-accent-ink); color: var(--c-surface); border: var(--border) solid var(--c-ink);
  border-radius: var(--r); padding: .8rem 1.3rem; box-shadow: 3px 3px 0 var(--c-ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--c-ink); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--c-ink); }
.small { font-size: var(--t-small); color: var(--c-muted); margin: 0; }

.foot { padding: var(--s-6) 0 var(--s-7); font-size: var(--t-small); color: var(--c-muted); }
.foot .wrap-l { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; }
.foot img { height: 28px; width: auto; }
.foot a { color: var(--c-muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- 14. Petits écrans ---------- */
@media (max-width: 30rem) {
  .author, .next-card, .calc { padding: var(--s-5); }
  .author-head { gap: var(--s-4); }
  .author-head img { width: 68px; height: 68px; }
  .author-name { font-size: 1.3rem; }
}

/* ---------- 15. Formulaire d'inscription Brevo (styles sortis du code d'intégration) ---------- */
.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; }
.sib-form { margin-top: var(--s-4); }
.sib-form-block { margin-bottom: var(--s-4); }
.sib-form .entry__label { display: block; font-size: var(--t-small); font-weight: 600; color: var(--c-ink); margin-bottom: var(--s-2); }
.sib-form .entry__field { display: flex; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); }
.sib-form .entry__field:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.sib-form .entry__field .input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--c-ink); padding: .7rem .85rem; }
.sib-form .entry__field .input:focus { outline: none; }
.sib-form .entry__field .input::placeholder { color: var(--c-muted); opacity: .7; }
.sib-form .entry__error { display: none; font-size: var(--t-small); color: var(--c-warn-line); margin-top: var(--s-2); }
.sib-form .entry_errored .entry__field { border-color: var(--c-warn-line); }
.sib-form .entry__choice label { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-small); line-height: 1.45; cursor: pointer; }
.sib-form .entry__choice .input_replaced { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--c-accent-ink); }
.sib-form .entry__choice .checkbox { display: none; }          /* case native, pas de case dessinée */
.sib-form .sib-text-form-block p { font-size: var(--t-tiny); color: var(--c-muted); line-height: 1.45; margin: 0; }
.sib-form .sib-text-form-block a { color: var(--c-muted); }
.sib-form .sib-form-block__button { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.sib-form .sib-form-block__button-disabled { opacity: .55; pointer-events: none; }
.sib-form .progress-indicator__icon { width: 1em; height: 1em; fill: currentColor; animation: lr-spin 1s linear infinite; }
.sib-hide-loader-icon { display: none; }
.input--hidden { display: none !important; }                    /* piège à robots : doit rester invisible */
.sib-form-message-panel { display: none; border: 1px solid; border-radius: var(--r); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); font-size: var(--t-small); }
.sib-form-message-panel--active { display: block; }
.sib-form-message-panel__text { display: flex; gap: var(--s-3); align-items: center; }
.sib-form-message-panel .sib-notification__icon { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }
#success-message { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent-ink); }
#error-message   { background: var(--c-warn-bg); border-color: var(--c-warn-line); color: var(--c-warn-line); }
.grecaptcha-badge { visibility: hidden; }                       /* masquage autorisé : la mention reCAPTCHA figure dans le formulaire */
@keyframes lr-spin { to { transform: rotate(360deg); } }
