/* =========================================================
   Site public — bleu marine & orange
   ========================================================= */
:root {
  --navy: #14284b;
  --navy-deep: #0c1a33;
  --navy-soft: #23406f;
  --orange: #f26a1b;
  --orange-ink: #b84a0a;      /* orange lisible sur blanc (petits textes) */
  --orange-pale: #fff1e8;
  --paper: #ffffff;
  --mist: #f2f4f8;
  --ink: #17202e;
  --muted: #5a6476;
  --line: #dde2ea;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--navy-deep); color: #c7d0e0; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar a { color: #c7d0e0; }
.topbar a:hover { color: #fff; }
.topbar nav { display: flex; gap: 18px; }
.topbar .date::first-letter { text-transform: uppercase; }

/* ---------- Titre du journal ---------- */
.masthead { background: var(--navy); color: #fff; border-bottom: 5px solid var(--orange); }
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 26px; padding-bottom: 22px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; color: #fff; min-width: 0; }
.brand-text { display: block; min-width: 0; }
.brand-logo { display: block; flex: none; max-height: 76px; max-width: min(360px, 70vw); width: auto; height: auto; object-fit: contain; }
.brand--logo .brand-tagline { margin-top: 0; }
.brand:hover { color: #fff; }
.brand-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  display: block;
}
.brand-tagline { display: block; margin-top: 8px; color: #b9c5da; font-size: .95rem; }
.masthead-search { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 4px 4px 16px; min-width: 260px; }
.masthead-search input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; font-size: .92rem; outline: none; min-width: 0; }
.masthead-search input::placeholder { color: #aab6cb; }
.masthead-search button { border: 0; background: var(--orange); color: #fff; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; }

/* ---------- Navigation rubriques ---------- */
.mainnav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.mainnav .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a {
  white-space: nowrap; padding: 14px 12px 12px; font-weight: 600; font-size: .95rem; color: var(--navy);
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--orange-ink); }
.mainnav a.active { border-bottom-color: var(--orange); color: var(--navy); }
.mainnav .home-link { padding-left: 0; }

/* ---------- Flash info ---------- */
.flash { background: var(--orange); color: #fff; }
.flash .wrap { display: flex; align-items: stretch; min-height: 44px; overflow: hidden; }
.flash-label {
  flex: none; display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff;
  font-weight: 700; padding: 0 16px; margin-left: -20px; padding-left: 20px; position: relative; z-index: 2;
}
.flash-label::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px; background: var(--navy); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.flash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.flash-track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.flash-items { display: flex; gap: 48px; padding-left: 32px; white-space: nowrap; animation: ticker 40s linear infinite; }
.flash:hover .flash-items { animation-play-state: paused; }
.flash-items a { color: #fff; font-weight: 600; }
.flash-items a:hover { text-decoration: underline; color: #fff; }
.flash-items a::before { content: "•"; margin-right: 12px; opacity: .7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Éléments communs ---------- */
.kicker { display: inline-block; color: var(--orange-ink); font-weight: 700; font-size: .82rem; margin-bottom: 6px; }
.kicker:hover { color: var(--navy); }
.meta { color: var(--muted); font-size: .84rem; }
.meta a { color: var(--navy); font-weight: 600; }
.title-serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

.cover {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 9; background: var(--navy);
}
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.cover:hover img { transform: scale(1.03); }
.cover-fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background:
    linear-gradient(135deg, transparent 62%, var(--orange) 62%, var(--orange) 64%, transparent 64%),
    var(--navy);
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}
.cover-fallback.lg { font-size: 1.6rem; padding: 24px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--navy); padding-top: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 1.45rem; color: var(--navy); }
.section-head h2 a:hover { color: var(--orange-ink); }
.section-head .more { color: var(--orange-ink); font-weight: 600; font-size: .9rem; }

/* ---------- Accueil : la une ---------- */
.front { padding: 28px 0 8px; }
.front-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px; }
.lead .cover { aspect-ratio: 16 / 9.5; }
.lead h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 14px 0 12px; letter-spacing: -.02em; }
.lead p.chapo { font-size: 1.12rem; color: #364154; margin: 0 0 12px; max-width: 62ch; }

.side-list { display: flex; flex-direction: column; }
.side-item { display: grid; grid-template-columns: 1fr 112px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-item:first-child { padding-top: 0; }
.side-item:last-child { border-bottom: 0; }
.side-item h3 { font-family: var(--serif); font-size: 1.06rem; line-height: 1.3; margin: 0 0 6px; }
.side-item .cover { aspect-ratio: 1; }
.side-item .cover-fallback { font-size: .8rem; padding: 8px; }

/* ---------- Grilles d'articles ---------- */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 32px 0 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.card h3 { font-family: var(--serif); font-size: 1.13rem; line-height: 1.3; margin: 12px 0 6px; }
.card p { margin: 0 0 8px; color: #445064; font-size: .93rem; }
.block { margin-bottom: 44px; }

.section-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.section-split .card h3 { font-size: 1.35rem; }
.compact-list { display: flex; flex-direction: column; gap: 0; }
.compact-list a.row { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.compact-list a.row:first-child { padding-top: 0; }
.compact-list a.row:last-child { border-bottom: 0; }
.compact-list h4 { font-family: var(--serif); font-size: 1.02rem; line-height: 1.32; margin: 0 0 4px; font-weight: 600; }

/* ---------- Colonne latérale ---------- */
.aside { display: flex; flex-direction: column; gap: 28px; }
.aside-sticky { position: sticky; top: 72px; }
.panel { background: var(--mist); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 14px; color: var(--navy); }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.ranked li:first-child { border-top: 0; padding-top: 0; }
.ranked li::before { content: counter(rank); font-family: var(--serif); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--orange); }
.ranked a { font-family: var(--serif); font-weight: 600; line-height: 1.32; font-size: .98rem; }
.panel-cta { background: var(--navy); color: #fff; }
.panel-cta h2 { color: #fff; }
.panel-cta p { color: #c7d0e0; margin: 0 0 14px; font-size: .93rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; border: 0; cursor: pointer; font-family: inherit; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange); filter: brightness(.92); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- En-tête de rubrique ---------- */
.rubric-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.rubric-head h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0; color: var(--navy); letter-spacing: -.02em; }
.rubric-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.rubric-head .bar { width: 56px; height: 5px; background: var(--orange); margin-bottom: 14px; border-radius: 3px; }

.list-item { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.list-item:first-child { padding-top: 0; }
.list-item h2 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 0 0 8px; }
.list-item p { margin: 0 0 10px; color: #445064; }

/* ---------- Page article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--orange); z-index: 60; transition: width .1s linear; }
.preview-banner { background: #fff6cc; color: #5b4500; text-align: center; padding: 10px; font-weight: 600; font-size: .92rem; }
.preview-banner a { color: var(--navy); text-decoration: underline; }
.article-head { max-width: 780px; margin: 0 auto; padding: 36px 20px 8px; }
.article-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.1; letter-spacing: -.022em; margin: 6px 0 16px; color: var(--ink); }
.article-head .chapo { font-family: var(--serif); font-size: 1.28rem; line-height: 1.5; color: #3a4558; margin: 0 0 22px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.byline .who { flex: 1; min-width: 180px; }
.byline .who strong { display: block; color: var(--navy); }
.share { display: flex; gap: 6px; }
.share a, .share button {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; padding: 0;
}
.share a:hover, .share button:hover { border-color: var(--orange); color: var(--orange-ink); }
.share svg { width: 17px; height: 17px; }

.article-cover { max-width: 1040px; margin: 26px auto 0; padding: 0 20px; }
.article-cover .cover { aspect-ratio: 16 / 8.5; }
.article-cover figcaption { color: var(--muted); font-size: .84rem; margin-top: 8px; }

.prose { max-width: 700px; margin: 0 auto; padding: 30px 20px 10px; font-family: var(--serif); font-size: 1.16rem; line-height: 1.78; color: #1f2836; }
.prose > * { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.55rem; line-height: 1.25; margin: 1.6em 0 .6em; color: var(--navy); }
.prose h3 { font-size: 1.28rem; margin: 1.4em 0 .5em; color: var(--navy); }
.prose a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--orange); font-size: 1.28rem; font-style: italic; color: var(--navy); }
.prose img { border-radius: var(--radius); margin: 1.5em auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose ol li[data-list="bullet"] { list-style-type: disc; }
.prose ol li[data-list="ordered"] { list-style-type: decimal; }
.prose li .ql-ui { display: none; }
.prose iframe, .prose .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.5em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.article-foot { max-width: 700px; margin: 0 auto; padding: 12px 20px 40px; }
.share-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); }
.share-wide span { font-weight: 700; color: var(--navy); margin-right: auto; }
.btn-wa { background: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #18773f; color: #fff; }

.related { background: var(--mist); padding: 40px 0 50px; }

/* ---------- Recherche / pagination / vide ---------- */
.search-big { display: flex; gap: 10px; margin-top: 18px; max-width: 640px; }
.search-big input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 1rem; background: #fff; }
.search-big input:focus { border-color: var(--navy); outline: none; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 8px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.pager a:hover { border-color: var(--navy); }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .disabled { opacity: .4; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-deep); color: #b6c1d4; padding: 44px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-name { font-size: 1.9rem; }
.footer-name { font-family: var(--serif); font-weight: 800; color: #fff; display: block; }
.footer-logo { max-height: 60px; max-width: 240px; width: auto; display: block; }
.footer-about { margin-top: 12px; max-width: 42ch; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact a { color: #fff; }
.footer h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-accent { height: 5px; background: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .front-grid, .page-body { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .masthead .wrap { flex-direction: column; align-items: flex-start; padding-top: 20px; padding-bottom: 18px; }
  .masthead-search { width: 100%; min-width: 0; }
  .brand-logo { max-height: 56px; }
  .brand--both { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar .hide-sm { display: none; }
  .grid-3, .grid-2, .section-split { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.08rem; }
  .side-item { grid-template-columns: 1fr 92px; }
  .wrap { padding: 0 16px; }
  .flash-label { margin-left: -16px; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flash-items { flex-wrap: nowrap; overflow-x: auto; }
}
