/* Info 993 — l'actualité lisible de 9 à 93 ans.
   Lisibilité d'abord : Atkinson Hyperlegible (conçue pour les lecteurs malvoyants), grands corps, contrastes forts.
   Une couleur par grande rubrique pour se repérer d'un coup d'œil. */
@font-face { font-family: "Rubik"; src: url("rubik-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --fond: #FBFAF7;
  --encre: #1D1D2B;
  --encre-douce: #555565;
  --trait: #E2E0DA;
  --actu: #D7263D;
  --societe: #1B998B;
  --economie: #2E5EAA;
  --culture: #8E44AD;
  --opinion: #E07A00;
  --papier: #FBFAF7;
  --soleil: #D7263D;

  --titres: "Rubik", "Trebuchet MS", system-ui, sans-serif;
  --texte: "Atkinson", "Verdana", system-ui, sans-serif;
  --mesure: 41rem;
  --large: 76rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
  --rub: var(--actu);
}
[data-rubrique="l-actu"] { --rub: var(--actu); }
[data-rubrique="societe"] { --rub: var(--societe); }
[data-rubrique="economie"] { --rub: var(--economie); }
[data-rubrique="culture"] { --rub: var(--culture); }
[data-rubrique="opinion"] { --rub: var(--opinion); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.1875rem/1.65 var(--texte); }
img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--economie); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 4px solid var(--opinion); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: 0.7rem 1rem; z-index: 10; }
.evitement:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- En-tête : « 993 » en gros chiffres, une pastille par tranche d'âge ---------- */
.entete { padding: clamp(1rem, 3vw, 1.75rem) var(--marge) 0; background: #fff; border-bottom: 1px solid var(--trait); }
.entete-haut { max-width: var(--large); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marque { display: flex; align-items: center; gap: 0.9rem; color: var(--encre); text-decoration: none; }
.marque-nom { font-family: var(--titres); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.entete .marque-nom { background: linear-gradient(90deg, var(--actu) 0 33%, var(--societe) 33% 66%, var(--economie) 66%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marque-baseline { font-size: 1rem; color: var(--encre-douce); max-width: 12em; line-height: 1.3; }
.rubriques { max-width: var(--large); margin: 1rem auto 0; }
.rubriques ul, .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.rubriques ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; padding-bottom: 0.9rem; }
.rubriques a { display: inline-block; font-family: var(--titres); font-weight: 600; font-size: 1.02rem; color: var(--encre); text-decoration: none; padding: 0.4rem 0.9rem; border-radius: 999px; }
.rubriques a:hover { background: var(--fond); }
.rubriques a[aria-current] { background: var(--encre); color: #fff; }
.rubriques-plus a { color: var(--economie); }
.menu-mobile { display: none; }
@media (max-width: 760px) {
  .rubriques { display: none; }
  .entete { padding-bottom: 1rem; }
  .marque-baseline { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { font-family: var(--titres); font-weight: 700; cursor: pointer; list-style: none; padding: 0.6rem 1.1rem; background: var(--encre); color: #fff; border-radius: 999px; font-size: 1.05rem; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile ul { position: absolute; right: 0; top: calc(100% + 0.5rem); background: #fff; border: 2px solid var(--encre); border-radius: 12px; padding: 0.4rem 1rem; min-width: 15rem; z-index: 5; }
  .menu-mobile li + li { border-top: 1px solid var(--trait); }
  .menu-mobile a { display: block; padding: 0.7rem 0; font-family: var(--titres); font-weight: 600; color: var(--encre); text-decoration: none; }
}

main { max-width: var(--large); margin: 0 auto; padding: clamp(1.75rem, 4vw, 3rem) var(--marge) 4.5rem; }

/* ---------- Cartes ---------- */
.carte { display: flex; flex-direction: column; gap: 0.9rem; background: #fff; border-radius: 14px; padding: 1.2rem 1.3rem 1.3rem; border-top: 6px solid var(--rub); }
.carte-image { order: -1; max-width: none; width: calc(100% + 2.6rem); margin: -1.2rem -1.3rem 0; aspect-ratio: 16 / 10; object-fit: cover; background: var(--trait); border-radius: 8px 8px 0 0; }
.carte-rubrique { display: inline-block; align-self: flex-start; font-family: var(--titres); font-weight: 600; font-size: 0.88rem; color: #fff; background: var(--rub); padding: 0.15rem 0.6rem; border-radius: 999px; text-decoration: none; margin-bottom: 0.5rem; }
.carte-titre { font-size: 1.32rem; }
.carte-titre a { color: var(--encre); text-decoration: none; }
.carte-titre a:hover { text-decoration: underline; text-decoration-color: var(--rub); }
.carte-resume { margin: 0.5rem 0 0; color: var(--encre-douce); font-size: 1rem; line-height: 1.55; }
.carte-date { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--encre-douce); }
.liste { display: grid; gap: 1.5rem; }
@media (min-width: 680px) { .liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .liste { grid-template-columns: repeat(3, 1fr); } }
.liste-compacte { grid-template-columns: 1fr !important; gap: 0.75rem; }
.carte-compact { padding: 0.9rem 1rem; border-top-width: 0; border-left: 6px solid var(--rub); }
.carte-compact .carte-titre { font-size: 1.12rem; }

/* ---------- Accueil ---------- */
.accueil-une { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 980px) { .accueil-une { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 2.5rem; } }
.carte-une { padding: 1.6rem 1.8rem 1.8rem; border-top-width: 10px; align-self: start; }
.carte-une .carte-image { width: calc(100% + 3.6rem); margin: -1.6rem -1.8rem 0; aspect-ratio: 16 / 9; }
.carte-une .carte-titre { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.08; }
.carte-une .carte-resume { font-size: 1.15rem; color: var(--encre); }
.accueil-suivants h2, .a-lire h2 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.accueil-rubrique { padding-top: 2.5rem; }
.accueil-rubrique h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.accueil-rubrique h2::before { content: ""; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--rub); flex: none; }
.accueil-rubrique h2 a { color: var(--encre); text-decoration: none; }
.accueil-rubrique h2 a:hover { color: var(--rub); }
.a-lire-tout { margin: 1rem 0 0; font-family: var(--titres); font-weight: 600; }

/* ---------- Listes ---------- */
.liste-entete { padding-bottom: 2rem; }
.liste-entete h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; color: var(--rub); }
.liste-entete:not([data-rubrique]) h1 { color: var(--encre); }
.liste-intro { margin: 0.4rem 0 0; color: var(--encre-douce); }
.sous-rubriques { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sous-rubriques a { display: inline-block; font-family: var(--titres); font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--encre); background: #fff; border: 2px solid var(--rub); border-radius: 999px; padding: 0.35rem 1rem; }
.sous-rubriques a:hover { background: var(--rub); color: #fff; }
.pagination ul { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; gap: 1.2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.pagination a { font-family: var(--titres); font-weight: 700; color: #fff; background: var(--encre); padding: 0.7rem 1.4rem; border-radius: 999px; text-decoration: none; }
.pagination a:hover { background: var(--economie); }
.pagination-etat { color: var(--encre-douce); }

/* ---------- Fil d'Ariane ---------- */
.ariane ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.95rem; color: var(--encre-douce); }
.ariane li + li::before { content: "›"; margin-right: 0.5rem; }
.ariane a { color: var(--encre-douce); }

/* ---------- Article ---------- */
.article { max-width: var(--mesure); margin: 0 auto; }
.article-entete h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.article[data-rubrique] .article-entete h1 { box-shadow: inset 0 -0.3em 0 color-mix(in srgb, var(--rub) 18%, transparent); display: inline; }
.article-meta { font-size: 1rem; color: var(--encre-douce); margin: 1.2rem 0 0; }
.article-maj { display: block; }
.article-image { margin: 2rem 0 0; }
.article-image img { width: 100%; max-height: 30rem; object-fit: cover; border-radius: 14px; }
.article-corps { margin-top: 2rem; overflow-wrap: break-word; }
.article-corps > * { margin: 0 0 1.15em; }
.article-corps h2 { font-size: 1.8rem; margin: 1.8em 0 0.5em; }
.article-corps h3 { font-size: 1.4rem; margin: 1.5em 0 0.4em; }
.article-corps h4 { font-size: 1.2rem; margin: 1.3em 0 0.4em; }
.article-corps ul, .article-corps ol { padding-left: 1.4em; }
.article-corps li { margin-bottom: 0.5em; }
.article-corps li::marker { color: var(--rub); font-weight: 700; }
.article-corps blockquote { margin: 2em 0; padding: 1rem 1.3rem; background: #fff; border-left: 6px solid var(--rub); border-radius: 0 10px 10px 0; }
.article-corps figure { margin: 2em 0; }
.article-corps figcaption { font-size: 0.95rem; color: var(--encre-douce); margin-top: 0.5rem; }
.article-corps table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.article-corps th, .article-corps td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.article-corps th { font-family: var(--titres); border-bottom: 3px solid var(--encre); }
.article-corps hr { border: 0; border-top: 2px solid var(--trait); margin: 2.5em 0; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--encre); border-radius: 10px; }
.a-lire { max-width: var(--mesure); margin: 4rem auto 0; }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: #fff; padding: 3rem var(--marge); }
.pied-interieur { max-width: var(--large); margin: 0 auto; display: grid; gap: 1.3rem; }
.pied a { color: #fff; }
.pied-marque { margin: 0; max-width: 32em; }
.pied-marque .marque-nom { font-size: 2rem; display: block; margin-bottom: 0.3rem; }
.pied-liens { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-family: var(--titres); font-weight: 600; }
.pied-contact { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .entete nav, .menu-mobile, .a-lire, .pied { display: none; } body { background: #fff; } }
