/* Azimut Nexus Conseil — styles des articles de blogue
   Charte : marine #1C304A · or #FFBF35 · beige #F0E9E0 · blanc
   Polices : Playfair Display (titres) · Open Sans (texte) */

:root {
  --marine: #1C304A;
  --or: #FFBF35;
  --beige: #F0E9E0;
  --beige-clair: #F0E9E0;
  --filet: #F0E9E0;
  --texte: #1C304A;
  --texte-doux: #1C304A;
  --blanc: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; }
a { color: var(--marine); text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--marine); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--marine); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* En-tête */
.site-header { background: var(--blanc); border-bottom: 1px solid var(--filet); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 24px; max-width: 1120px; margin: 0 auto; }
.site-header img { height: 64px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--marine); font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--or); }

/* Bandeau d’ouverture */
.hero { background: var(--beige); border-bottom: 5px solid var(--or); position: relative; overflow: hidden; }
.hero .wrap { max-width: 1120px; margin: 0 auto; padding: 44px 24px 48px; position: relative; z-index: 1; }
.hero .text { max-width: 700px; }
.fil { font-size: 14px; color: var(--texte-doux); margin: 0 0 18px; }
.fil a { color: var(--texte-doux); text-decoration-color: var(--filet); }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 42px; line-height: 1.15; color: var(--marine); margin: 0 0 18px; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--marine); margin: 0 0 16px; }
.hero .meta { font-size: 14px; color: var(--texte-doux); margin: 0; }
.hero .boussole { position: absolute; right: -30px; bottom: -20px; width: 300px; opacity: .95; z-index: 0; pointer-events: none; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; }
.article h2 { font-family: "Playfair Display", Georgia, serif; font-size: 29px; line-height: 1.25; color: var(--marine); margin: 2.2em 0 .6em; }
.article h3 { font-family: "Playfair Display", Georgia, serif; font-size: 21px; line-height: 1.3; color: var(--marine); margin: 1.6em 0 .3em; }
.article p { margin: 0 0 1.1em; }
.article ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article > p:first-child { margin-top: 0; }
.tag { display: inline-block; font-family: "Open Sans", sans-serif; font-size: 13px; font-weight: 600; background: var(--beige); color: var(--marine); padding: 1px 10px; border-radius: 12px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.montant { display: inline-block; background: var(--or); color: var(--marine); font-weight: 700; font-size: 14px; padding: 1px 10px; border-radius: 12px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }

/* Liste numérotée (le chiffre fait partie du titre de l’article) */
.erreurs { list-style: none; counter-reset: n; padding: 0; margin: 2em 0; }
.erreurs > li { counter-increment: n; padding-left: 58px; position: relative; margin-bottom: 1.6em; }
.erreurs > li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%; background: var(--marine); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.erreurs > li:nth-child(even)::before { background: var(--or); color: var(--marine); }
.erreurs h2 { font-size: 23px; margin: 0 0 .3em; }
.erreurs h3 { font-size: 23px; margin: 0 0 .3em; }
.erreurs p:last-child { margin-bottom: 0; }

/* Encadré */
.note { background: var(--beige); border-left: 5px solid var(--or); padding: 18px 22px; margin: 2em 0; border-radius: 0 8px 8px 0; }
.note h2, .note h3 { margin: 0 0 .3em; font-size: 21px; }
.note p:last-child { margin-bottom: 0; }

/* Deux volets ESSOR */
.volets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.2em 0 1.6em; }
.volet { background: var(--beige-clair); border: 1px solid var(--filet); border-radius: 8px; padding: 14px 18px; font-size: 16px; line-height: 1.5; }
.volet strong { display: block; color: var(--marine); font-size: 17px; margin-bottom: 4px; }

/* Cases à cocher */
fieldset { border: 0; padding: 0; margin: 0 0 1.4em; }
legend { font-family: "Playfair Display", Georgia, serif; font-size: 25px; font-weight: 700; color: var(--marine); padding: 0; margin: 1.6em 0 .5em; }
.case { display: flex; gap: 14px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--beige); cursor: pointer; line-height: 1.5; font-size: 17px; }
.case input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 22px; height: 22px; border: 2px solid var(--marine); border-radius: 4px; margin: 3px 0 0; background: #fff; cursor: pointer; display: grid; place-content: center; }
.case input::after { content: ""; width: 11px; height: 6px; border-left: 3px solid var(--marine); border-bottom: 3px solid var(--marine); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.case input:checked { background: var(--or); }
.case input:checked::after { opacity: 1; }
.case:hover { background: var(--beige-clair); }
.pointage { background: var(--marine); color: #fff; border-radius: 10px; padding: 20px 24px; margin: 1.6em 0 2em; }
.pointage .compte { font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 700; margin: 0 0 6px; color: var(--or); }
.pointage p { margin: 0; color: #F0E9E0; font-size: 17px; line-height: 1.55; }
.niveaux { list-style: none; padding: 0; margin: 0 0 1.4em; }
.niveaux li { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--filet); margin-bottom: 8px; font-size: 17px; line-height: 1.5; }
.niveaux li strong { flex-shrink: 0; width: 112px; color: var(--marine); }
.niveaux li.actif { background: var(--beige); border-color: var(--or); box-shadow: inset 5px 0 0 var(--or); }

/* PDF + appel à l’action */
.pdf { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; border: 1px solid var(--filet); background: var(--beige-clair); border-radius: 10px; padding: 18px 22px; margin: 2.4em 0 0; }
.pdf p { margin: 0; font-size: 16px; line-height: 1.5; flex: 1 1 280px; }
.pdf strong { color: var(--marine); }
.btn { display: inline-block; background: var(--or); color: var(--marine); font-weight: 700; font-size: 16px; text-decoration: none; padding: 12px 24px; border-radius: 8px; border: 2px solid var(--or); }
.btn:hover { background: var(--marine); color: var(--or); border-color: var(--marine); }
.btn.secondaire { background: transparent; border-color: var(--marine); }
.btn.secondaire:hover { background: var(--marine); color: #fff; }

.cta { background: var(--marine); color: #fff; margin-top: 56px; border-top: 5px solid var(--or); }
.cta .wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.cta h2 { font-family: "Playfair Display", Georgia, serif; font-size: 30px; margin: 0 0 .5em; color: #fff; }
.cta p { color: #F0E9E0; margin: 0 0 1.4em; }

/* Auteure et articles liés */
.auteure { max-width: 720px; margin: 0 auto; padding: 40px 24px 0; font-size: 16px; line-height: 1.6; color: var(--texte-doux); }
.auteure strong { color: var(--marine); }
.lies { max-width: 720px; margin: 0 auto; padding: 36px 24px 64px; }
.lies h2 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; color: var(--marine); margin: 0 0 .6em; }
.lies ul { list-style: none; padding: 0; margin: 0; }
.lies li { border-top: 1px solid var(--filet); padding: 12px 0; font-size: 16px; line-height: 1.5; }
.lies li:last-child { border-bottom: 1px solid var(--filet); }
.lies a { font-weight: 700; }
.lies span { display: block; color: var(--texte-doux); }

/* Pied de page */
.site-footer { background: var(--marine); color: #F0E9E0; border-top: 4px solid var(--or); font-size: 15px; }
.site-footer .wrap { max-width: 1120px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--or); font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-header img { height: 54px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 18px; }
  .hero .boussole { width: 170px; right: -20px; bottom: -14px; opacity: .55; }
  .article h2 { font-size: 25px; }
  .volets { grid-template-columns: 1fr; }
  .erreurs > li { padding-left: 50px; }
  .niveaux li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .cta, .hero .boussole, .pdf { display: none; } }
