/* ============================================================
   en-Stage.com — gabarit d'article / guide
   (charge styles.css avant : variables, header, footer, boutons)
   ============================================================ */

:root {
  --read-w: 720px;
  --prose: 19px;
}

/* ---------- fil d'Ariane ---------- */
.breadcrumb {
  padding: 22px 0 0;
  font-size: 13.5px;
  color: var(--gris);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}
.breadcrumb a { color: var(--gris); font-weight: 500; }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb li[aria-current] { color: var(--encre); font-weight: 600; }
.breadcrumb .sep { color: var(--gris-line); }

/* ---------- coque article + sommaire ---------- */
.article-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 0 40px;
}
@media (min-width: 1080px) {
  .article-shell {
    grid-template-columns: 232px minmax(0, var(--read-w)) 1fr;
    column-gap: 56px;
    justify-content: center;
  }
  .toc { grid-column: 1; }
  .article-col { grid-column: 2; }
}

.article-col { width: 100%; max-width: var(--read-w); margin: 0 auto; }

/* ---------- sommaire sticky ---------- */
.toc {
  display: none;
}
@media (min-width: 1080px) {
  .toc {
    display: block;
    position: sticky;
    top: 104px;
    align-self: start;
    padding-top: 8px;
  }
}
.toc-title {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 14px;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--encre-2);
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--gris-line);
  transition: color .15s ease, border-color .15s ease;
}
.toc a:hover { color: var(--encre); }
.toc a.active { color: var(--rouge); border-color: var(--rouge); font-weight: 600; }

/* ---------- en-tête d'article ---------- */
.article-head { padding-top: 30px; }
.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: 7px 14px;
  border-radius: 999px;
}
.article-h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.article-standfirst {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--encre-2);
  margin-bottom: 26px;
  max-width: 40ch;
}

/* ligne auteur */
.author-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-top: 1px solid var(--gris-line);
  border-bottom: 1px solid var(--gris-line);
  flex-wrap: wrap;
}
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--blanc);
  box-shadow: 0 0 0 1px var(--gris-line);
}
.author-meta { font-size: 14px; color: var(--gris); line-height: 1.45; }
.author-meta b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--encre); }
.author-dot { margin: 0 7px; color: var(--gris-line); }
.author-share {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--creme-2);
  color: var(--encre-2);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.share-btn:hover { background: var(--encre); color: #fff; transform: translateY(-2px); }

/* image d'illustration */
.article-hero {
  position: relative;
  margin: 26px 0 8px;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-soft);
}
.article-hero image-slot { width: 100%; height: 100%; }
.article-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-hero .credit {
  position: absolute;
  right: 10px; bottom: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: 10.5px;
  color: #fff;
  background: rgba(21,22,29,.55);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ============================================================
   PROSE
   ============================================================ */
.prose { padding-top: 12px; }
.prose > * { max-width: 100%; }
.prose p {
  font-size: var(--prose);
  line-height: 1.72;
  color: #23242e;
  margin: 0 0 24px;
}
.prose p:first-of-type::first-letter {
  /* lettrine discrète sur le 1er paragraphe */
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 3.1em;
  line-height: 0.78;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--rouge);
}
.prose h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 46px 0 16px;
  scroll-margin-top: 100px;
}
.prose h2 .h2-index {
  color: var(--orange-2);
  margin-right: 10px;
}
.prose h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.3vw, 23px);
  margin: 32px 0 12px;
  scroll-margin-top: 100px;
}
.prose a:not(.btn) {
  color: var(--encre);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--orange-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.prose a:not(.btn):hover { color: var(--rouge); text-decoration-color: var(--rouge); }
/* les liens structurels (cartes, encadrés) ne portent pas le soulignement inline */
.prose a.crosslink,
.prose a.near-job,
.prose a.read-also-item,
.prose a.ac-link,
.prose a.btn { text-decoration: none; }
.prose a.crosslink:hover,
.prose a.near-job:hover,
.prose a.read-also-item:hover,
.prose a.ac-link:hover { text-decoration: none; }
.prose strong { font-weight: 700; color: var(--encre); }
.prose ul, .prose ol {
  font-size: var(--prose);
  line-height: 1.6;
  color: #23242e;
  margin: 0 0 24px;
  padding-left: 4px;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad-arrow);
}
.prose ol { counter-reset: li; }
.prose ol li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--encre);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 12px;
  display: grid; place-items: center;
}

/* exergue */
.prose blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 26px;
  border-left: 4px solid var(--rouge);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  color: var(--encre);
}

/* note clé en ligne */
.key-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--creme);
  border: 1px solid var(--gris-line);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
}
.key-fact .kf-num {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  background: var(--grad-arrow);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

/* ============================================================
   ZONE OUTIL (calculateur embarqué)
   ============================================================ */
.tool-embed {
  margin: 36px 0;
  border: 1px solid var(--gris-line);
  border-radius: var(--r-md);
  background: var(--blanc);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: 100px;
}
.tool-embed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--encre);
  color: var(--creme);
}
.tool-embed-head img { width: 34px; height: 34px; object-fit: contain; }
.tool-embed-head .te-kicker {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.tool-embed-head .te-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.tool-embed-head .te-badge {
  margin-left: auto;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15,157,110,.22);
  color: #5fe0b0;
}
.tool-embed-body { padding: 22px 20px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.calc-field label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--encre-2);
  margin-bottom: 7px;
}
.calc-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--gris-line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--creme);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.calc-input:focus-within { border-color: var(--encre); box-shadow: 0 0 0 3px rgba(247,127,0,.16); background: #fff; }
.calc-input input, .calc-input select {
  flex: 1;
  border: none; background: none; outline: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--encre);
  padding: 12px 0;
  min-width: 0;
  width: 100%;
}
.calc-input .unit { font-size: 13px; color: var(--gris); font-weight: 600; padding-left: 8px; }
.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--creme);
  border: 1px dashed var(--orange-2);
  border-radius: 14px;
  padding: 18px 20px;
}
.calc-result .cr-label { font-size: 13.5px; color: var(--gris); }
.calc-result .cr-main {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1;
  color: var(--encre);
}
.calc-result .cr-main span { font-size: 18px; color: var(--gris); }
.calc-result .cr-sub { font-size: 13px; color: var(--gris); margin-top: 4px; }
.tool-embed-foot {
  font-size: 12px;
  color: var(--gris);
  padding: 0 20px 18px;
}

/* ============================================================
   LE CONSEIL DE CAMILLE
   ============================================================ */
.camille-tip {
  position: relative;
  margin: 34px 0;
  background: var(--creme);
  border: 2px dashed var(--orange);
  border-radius: var(--r-md);
  padding: 22px 24px 22px 26px;
}
.camille-tip-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.camille-tip-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--rouge);
  color: #fff;
  display: grid; place-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sticker);
}
.camille-tip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.camille-tip-label {
  font-family: "Caveat", cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--rouge);
  line-height: 1;
}
.camille-tip-who { font-size: 12.5px; color: var(--gris); }
.camille-tip p {
  font-size: 16.5px;
  line-height: 1.6;
  color: #23242e;
  margin: 0;
}
.camille-tip p + p { margin-top: 12px; }
/* lettrine signature (maquette) sur Camille / FAQ */
.camille-tip p:first-of-type::first-letter,
.faq-answer p:first-of-type::first-letter {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.5em;
  line-height: 0.72;
  float: left;
  margin: 4px 10px 0 0;
  color: var(--rouge);
}

/* ============================================================
   TABLEAU
   ============================================================ */
.table-wrap {
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--gris-line);
  border-radius: var(--r-md);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 460px;
}
.data-table caption {
  text-align: left;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  padding: 14px 18px 0;
}
.data-table thead th {
  background: var(--creme-2);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  color: var(--encre);
  padding: 13px 18px;
  border-bottom: 2px solid var(--gris-line);
}
.data-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gris-line);
  color: #23242e;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: rgba(253,238,222,.4); }
.data-table .num { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--encre); }
.data-table .hl { color: var(--teal); font-weight: 700; }

/* Tableaux bruts insérés dans le contenu (markdown) — même rendu que .data-table */
.prose table:not(.data-table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 30px 0;
  border: 1px solid var(--gris-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.prose table:not(.data-table) thead th {
  background: var(--creme-2);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  color: var(--encre);
  padding: 13px 18px;
  border-bottom: 2px solid var(--gris-line);
}
.prose table:not(.data-table) td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gris-line);
  color: #23242e;
  vertical-align: top;
}
.prose table:not(.data-table) tbody tr:last-child td { border-bottom: none; }
.prose table:not(.data-table) tbody tr:nth-child(even) td { background: rgba(253, 238, 222, .4); }
.prose table:not(.data-table) strong { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--encre); }
.prose table:not(.data-table) td:first-child:not(:only-child) { font-weight: 600; color: var(--encre); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin: 30px 0; }
.faq-item {
  border-bottom: 1px solid var(--gris-line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 2px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--encre);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus {
  margin-left: auto;
  width: 26px; height: 26px;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  background: var(--creme-2);
  transition: background .18s ease, transform .25s ease;
}
.faq-item summary .faq-plus::before,
.faq-item summary .faq-plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 2.4px;
  background: var(--encre);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.faq-item summary .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .faq-plus { background: var(--rouge); }
.faq-item[open] summary .faq-plus::before,
.faq-item[open] summary .faq-plus::after { background: #fff; }
.faq-item[open] summary .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer {
  padding: 0 2px 20px 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: #3a3b45;
}
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   CTA / PARTENAIRE
   ============================================================ */
.cta-box {
  position: relative;
  margin: 36px 0;
  background: var(--encre);
  color: var(--creme);
  border-radius: var(--r-md);
  padding: 28px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  overflow: hidden;
}
.cta-box .cta-deco {
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--grad-arrow);
  opacity: .14;
}
.cta-box .cta-txt { position: relative; flex: 1; min-width: 220px; }
.cta-box h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 6px;
  color: #fff;
}
.cta-box p { font-size: 14.5px; color: #b8bac6; margin: 0; }
.cta-box .cta-txt p::first-letter {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.3em;
  line-height: 0.72;
  float: left;
  margin: 3px 9px 0 0;
  color: var(--orange-2);
}
.sponso-label {
  position: absolute;
  top: 12px; right: 14px;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9cab;
  background: rgba(255,255,255,.08);
  padding: 3px 8px;
  border-radius: 5px;
}

/* ============================================================
   À LIRE AUSSI
   ============================================================ */
.read-also {
  margin: 44px 0 10px;
  padding-top: 30px;
  border-top: 2px solid var(--encre);
}
.read-also-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 18px;
}
.read-also-list { display: flex; flex-direction: column; gap: 4px; }
.read-also-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--gris-line);
  transition: padding .15s ease;
}
.read-also-item:hover { padding-left: 14px; }
.read-also-item:last-child { border-bottom: none; }
.ra-pillar {
  font-family: "Roboto Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  flex-shrink: 0;
  width: 104px;
  text-align: center;
}
.ra-link {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--encre);
  flex: 1;
  line-height: 1.3;
}
.read-also-item:hover .ra-link { color: var(--rouge); }
.ra-arrow { color: var(--gris); flex-shrink: 0; transition: transform .15s ease, color .15s ease; }
.read-also-item:hover .ra-arrow { transform: translateX(4px); color: var(--rouge); }

/* ============================================================
   BLOC AUTEUR
   ============================================================ */
.author-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 40px 0 10px;
  background: var(--creme-2);
  border-radius: var(--r-md);
  padding: 26px;
  flex-wrap: wrap;
}
.author-card-photo {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.author-card-body { flex: 1; min-width: 220px; }
.author-card-body .ac-kicker {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 6px;
}
.author-card-body h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 21px;
  margin: 0 0 8px;
}
.author-card-body p { font-size: 15px; line-height: 1.55; color: var(--encre-2); margin: 0 0 12px; }
.author-card-body p::first-letter {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.6em;
  line-height: 0.78;
  float: left;
  margin: 4px 9px 0 0;
  color: var(--rouge);
}
.author-card-body a.ac-link {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--rouge);
  display: inline-flex; align-items: center; gap: 6px;
}

/* progress bar de lecture */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad-arrow);
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  :root { --prose: 17.5px; }
  .calc-grid { grid-template-columns: 1fr; }
  .author-share { width: 100%; margin-left: 0; }
  .ra-pillar { width: auto; }
  .read-also-item { flex-wrap: wrap; gap: 8px; }
}
