/* Capisens — styles du blog (copiés dans site/blog/blog.css par outils/blog.py) */
body { background: var(--cream); }

.blog-hero {
  background: radial-gradient(ellipse at 85% 10%, rgba(201,162,39,0.10) 0%, transparent 50%),
              linear-gradient(180deg, var(--moss-deep) 0%, var(--moss-dark) 100%);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.2rem, 4vw, 3.2rem);
}
.blog-hero .wrap { max-width: 1120px; }
.blog-hero h1 {
  font-family: var(--f-serif); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; color: var(--cream);
  margin-top: 0.9rem; max-width: 26ch;
}
.blog-hero .lede { color: var(--muted-dark); margin-top: 1rem; max-width: 62ch; }
.fil { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted-dark); }
.fil a { color: var(--muted-dark); text-decoration: none; border-bottom: 1px solid transparent; }
.fil a:hover { color: var(--gold-glow); border-color: currentColor; }
.fil span[aria-hidden] { margin: 0 0.45rem; opacity: 0.6; }
.badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.badge {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: 999px; background: rgba(236,229,211,0.1); color: var(--cream);
  border: 1px solid var(--line-dark);
}
.badge.or { background: var(--gold-2); color: var(--moss-deep); border-color: transparent; }
.meta-auteur { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted-dark); }
.meta-auteur strong { color: var(--cream); font-weight: 600; }

/* Mise en page article + colonne */
.article-zone { padding: clamp(2.2rem, 5vw, 4rem) 0; }
.article-grille {
  max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
@media (max-width: 960px) { .article-grille { grid-template-columns: 1fr; } .colonne { order: -1; } }

.colonne { position: sticky; top: 96px; display: grid; gap: 1.1rem; }
@media (max-width: 960px) { .colonne { position: static; } .sommaire { display: none; } }
.carte {
  background: var(--bone); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.4rem 1.5rem;
}
.carte h2, .carte .titre-carte {
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 0.8rem;
}
.sommaire ol { list-style: none; display: grid; gap: 0.55rem; counter-reset: s; }
.sommaire li { counter-increment: s; display: flex; gap: 0.6rem; font-size: 0.9rem; line-height: 1.35; }
.sommaire li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.72rem; color: var(--gold); padding-top: 0.15rem; }
.sommaire a { color: var(--ink); text-decoration: none; }
.sommaire a:hover { color: var(--moss); text-decoration: underline; }
.carte-sim { background: var(--moss-dark); border-color: var(--moss-dark); color: var(--cream); }
.carte-sim .titre-carte { color: var(--gold-glow); }
.carte-sim p { font-size: 0.93rem; line-height: 1.55; color: var(--muted-dark); margin-bottom: 1.1rem; }
.carte-sim p strong { color: var(--cream); }
.carte-sim .btn { width: 100%; justify-content: center; }
.btn-or { background: var(--gold-2); color: var(--moss-deep); }
.btn-or:hover { background: var(--gold-glow); transform: translateY(-1px); }

/* Contenu */
.prose { font-size: 1.07rem; line-height: 1.75; color: var(--ink); max-width: 72ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose .chapo { font-size: 1.2rem; line-height: 1.65; color: var(--ink); font-weight: 500; }
.prose h2 {
  font-family: var(--f-serif); font-weight: 800; letter-spacing: -0.015em; color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; margin-top: 2.6rem; scroll-margin-top: 96px;
}
.prose h3 { font-family: var(--f-serif); font-weight: 700; font-size: 1.22rem; line-height: 1.3; margin-top: 1.9rem; color: var(--moss-dark); }
.prose a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--moss-deep); text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; color: var(--moss-deep); }
.prose code { font-family: var(--f-mono); font-size: 0.92em; background: var(--cream-2); padding: 0.08em 0.35em; border-radius: 5px; }
.prose ul.points { list-style: none; display: grid; gap: 0.6rem; }
.prose ul.points li { position: relative; padding-left: 1.6rem; }
.prose ul.points li::before { content: ""; position: absolute; left: 0.25rem; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold-2); transform: rotate(45deg); }
.prose ol.etapes { list-style: none; counter-reset: e; display: grid; gap: 0.85rem; }
.prose ol.etapes li { counter-increment: e; position: relative; padding-left: 2.8rem; min-height: 2rem; }
.prose ol.etapes li::before {
  content: counter(e); position: absolute; left: 0; top: 0.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--moss); color: var(--cream); font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

.encadre { border-radius: 16px; padding: 1.2rem 1.4rem 1.3rem; border: 1px solid var(--line); background: var(--bone); }
.encadre .encadre-titre { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.45rem; }
.encadre p { font-size: 1rem; line-height: 1.65; }
.encadre.astuce { border-left: 5px solid var(--moss); }
.encadre.astuce .encadre-titre { color: var(--moss); }
.encadre.attention { border-left: 5px solid var(--rust); background: #F8EFE6; }
.encadre.attention .encadre-titre { color: var(--rust); }
.encadre.examen { border-left: 5px solid var(--gold-2); background: #F7F0DA; }
.encadre.examen .encadre-titre { color: var(--gold); }

.formule {
  background: var(--moss-deep); color: var(--cream); border-radius: 16px; padding: 1.2rem 1.4rem;
  display: grid; gap: 0.35rem;
}
.formule .nom { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-glow); }
.formule .expr { font-family: var(--f-mono); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; }
.formule .lecture { font-size: 0.95rem; color: var(--muted-dark); line-height: 1.55; }

.tableau { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bone); }
.tableau table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.tableau th { text-align: left; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); background: var(--cream-2); }
.tableau th, .tableau td { padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau caption { caption-side: bottom; text-align: left; padding: 0.6rem 0.95rem; font-size: 0.82rem; color: var(--muted); }

.citation { border-left: 4px solid var(--gold-2); padding: 0.3rem 0 0.3rem 1.3rem; font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.45; color: var(--moss-dark); }
.citation cite { display: block; margin-top: 0.5rem; font-family: var(--f-sans); font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* Question du simulateur */
.quiz { background: var(--bone); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem 1.5rem; }
.quiz-tete { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.8rem; }
.quiz-tete .etiquette { font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 999px; background: rgba(27,94,71,0.1); color: var(--moss-dark); }
.quiz-enonce { font-weight: 600; line-height: 1.6; }
.quiz-options { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.quiz-options li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 0.98rem; line-height: 1.5; }
.quiz-options .lettre { flex-shrink: 0; width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--cream-2); font-family: var(--f-mono); font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.quiz details { margin-top: 1rem; }
.quiz summary { cursor: pointer; font-weight: 600; color: var(--moss); list-style: none; display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.55rem 1rem; border: 1.5px solid var(--moss); border-radius: 999px; font-size: 0.92rem; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary:hover { background: var(--moss); color: var(--cream); }
.quiz .reponse { margin-top: 0.9rem; padding: 1rem 1.1rem; border-radius: 12px; background: rgba(27,94,71,0.08); font-size: 0.98rem; line-height: 1.6; }
.quiz .reponse strong { color: var(--moss-deep); }
.quiz .source-q { margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); }

/* Vidéo (chargée au clic : aucun cookie YouTube avant) */
.video { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--moss-deep); }
.video button { all: unset; cursor: pointer; display: block; position: relative; width: 100%; aspect-ratio: 16/9; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.video .lecture-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video .lecture-btn span { width: 74px; height: 52px; border-radius: 14px; background: #FF0000; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.video .lecture-btn svg { width: 26px; height: 26px; fill: #fff; }
.video iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video .legende { padding: 0.8rem 1.1rem; font-size: 0.88rem; color: var(--muted-dark); background: var(--moss-deep); }

.cta-inline { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--moss-dark); color: var(--cream); border-radius: 18px; padding: 1.3rem 1.5rem; }
.cta-inline p { color: var(--muted-dark); font-size: 0.98rem; max-width: 46ch; }
.cta-inline p strong { color: var(--cream); }

/* FAQ, sources, auteur */
.faq { margin-top: 3rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--f-serif); font-weight: 700; font-size: 1.08rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--moss); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.sources { margin-top: 2.4rem; font-size: 0.88rem; color: var(--muted); }
.sources h2 { font-family: var(--f-mono) !important; font-size: 0.72rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss) !important; margin-top: 0 !important; }
.sources ul { list-style: none; display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.sources a { color: var(--muted); }
.auteur { margin-top: 2.6rem; display: flex; gap: 1.1rem; align-items: center; background: var(--bone); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem; }
.auteur img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--cream-2); }
.auteur p { font-size: 0.93rem; line-height: 1.55; color: var(--muted); }
.auteur p strong { color: var(--ink); }

/* Liste d'articles */
.liste-zone { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.liste-zone .wrap { max-width: 1120px; }
.liste-titre { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); margin-bottom: 1.2rem; }
.grille-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; }
.carte-article {
  display: flex; flex-direction: column; gap: 0.7rem; background: var(--bone); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.4rem 1.5rem; text-decoration: none; color: inherit; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.carte-article:hover { transform: translateY(-3px); border-color: var(--moss); box-shadow: var(--shadow-md); }
.carte-article .haut { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.carte-article .etiquette { font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.26rem 0.58rem; border-radius: 999px; background: rgba(27,94,71,0.1); color: var(--moss-dark); }
.carte-article .etiquette.or { background: rgba(201,162,39,0.18); color: var(--gold); }
.carte-article h3 { font-family: var(--f-serif); font-weight: 800; font-size: 1.22rem; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
.carte-article p { font-size: 0.94rem; line-height: 1.55; color: var(--muted); }
.carte-article .bas { margin-top: auto; padding-top: 0.6rem; font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.8rem; }
.carte-article .lire { color: var(--moss); font-weight: 600; }
.vide { color: var(--muted); }

.bandeau-cta { background: var(--moss-deep); color: var(--cream); padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.bandeau-cta .wrap { max-width: 1120px; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bandeau-cta h2 { font-family: var(--f-serif); font-weight: 800; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.2; max-width: 30ch; }
.bandeau-cta p { color: var(--muted-dark); margin-top: 0.5rem; max-width: 56ch; }
.bandeau-cta .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn-clair { background: transparent; color: var(--cream); border: 1.5px solid rgba(236,229,211,0.4); }
.btn-clair:hover { border-color: var(--cream); }

/* ── Pages simulateurs (outils/pages.py) ── */
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; max-width: 860px; }
@media (max-width: 700px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
.chiffre { border: 1px solid var(--line-dark); border-radius: 16px; padding: 1rem 1.1rem; background: rgba(236,229,211,0.05); }
.chiffre .n { font-family: var(--f-serif); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-glow); line-height: 1.05; }
.chiffre .l { font-size: 0.85rem; color: var(--muted-dark); margin-top: 0.3rem; line-height: 1.35; }
.zone { padding: clamp(2.6rem, 5vw, 4.2rem) 0; }
.zone .wrap { max-width: 1120px; }
.zone.alt { background: var(--bone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.zone h2 { font-family: var(--f-serif); font-weight: 800; letter-spacing: -0.015em; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; color: var(--ink); max-width: 30ch; }
.zone .intro { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 64ch; margin-top: 0.8rem; }
.atouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.8rem; }
.atout { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.3rem 1.4rem; }
.zone.alt .atout { background: var(--cream); }
.atout .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--moss); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 600; font-size: 0.95rem; }
.atout h3 { font-family: var(--f-serif); font-weight: 800; font-size: 1.12rem; line-height: 1.25; margin-top: 0.9rem; color: var(--ink); }
.atout p { font-size: 0.95rem; line-height: 1.6; color: var(--muted); margin-top: 0.45rem; }
.zone .tableau, .zone .quiz { margin-top: 1.6rem; }
.zone .quiz + .quiz { margin-top: 1.1rem; }
.colonne-texte { max-width: 820px; }
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
@media (max-width: 860px) { .tarifs { grid-template-columns: 1fr; } }
.tarif { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.tarif.mis-en-avant { border: 2px solid var(--moss); box-shadow: var(--shadow-md); }
.tarif .duree { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--moss); }
.tarif .prix { font-family: var(--f-serif); font-weight: 800; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.tarif .prix small { font-family: var(--f-sans); font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.tarif ul { list-style: none; display: grid; gap: 0.45rem; margin: 0.4rem 0 0.8rem; }
.tarif li { font-size: 0.93rem; color: var(--ink); padding-left: 1.4rem; position: relative; line-height: 1.45; }
.tarif li::before { content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 700; }
.tarif .btn { margin-top: auto; justify-content: center; }
.note-tarifs { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }
.zone .faq { margin-top: 1.2rem; max-width: 820px; }
.liens-croises { margin-top: 1.4rem; font-size: 0.95rem; color: var(--muted); }
.liens-croises a { color: var(--moss); }

/* ── Page « Laisser un avis » (outils/pages.py) ── */
.form-avis { max-width: 680px; display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.form-avis label, .form-avis legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); display: block; margin-bottom: 0.4rem; }
.form-avis .aide { font-weight: 400; font-size: 0.84rem; color: var(--muted); }
.form-avis input[type=text], .form-avis input[type=email], .form-avis select, .form-avis textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); }
.form-avis textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.form-avis input:focus, .form-avis select:focus, .form-avis textarea:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; border-color: var(--moss); }
.form-avis .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-avis .duo { grid-template-columns: 1fr; } }
.form-avis fieldset { border: 0; padding: 0; margin: 0; }
.notes { display: inline-flex; flex-direction: row-reverse; gap: 0.15rem; }
.notes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.notes label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; margin: 0; padding: 0 0.1rem; }
.notes input:checked ~ label, .notes label:hover, .notes label:hover ~ label { color: var(--gold-2); }
.notes input:focus-visible + label { outline: 2px solid var(--moss); border-radius: 6px; }
.form-avis .consentement { font-weight: 400; margin: 0; display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.5; color: var(--ink); }
.consentement input { margin-top: 0.25rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--moss); }
.form-avis button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.cache-robot { position: absolute; left: -9999px; }
