/* RenaissanceIA — feuille de style principale
   Palette : noir, outremer (le pigment le plus précieux de la Renaissance), feuille d'or. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif.woff2") format("woff2-variations"), url("../fonts/source-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-italic.woff2") format("woff2-variations"), url("../fonts/source-serif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --noir: #000000;
  --graphite: #15161b;
  --ardoise: #2a2c35;
  --cendre: #9a9ba6;
  --ivoire: #f4f2ec;
  --outremer: #3b4cff;
  --outremer-clair: #7d89ff;
  --or: #c9a44c;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --texte: "Source Serif", Georgia, "Times New Roman", serif;

  --page: 1320px;
  --gouttiere: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--ivoire);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--outremer-clair);
  outline-offset: 3px;
}
::selection { background: var(--outremer); color: #fff; }

.conteneur { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gouttiere); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; background: var(--outremer); color: #fff; padding: 10px 16px; z-index: 100; }
.evitement:focus { top: 12px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ardoise);
}
.entete .conteneur { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 118%; font-size: 19px; letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.logo b { font-weight: 800; color: var(--outremer-clair); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--cendre);
  border-radius: 999px; transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ivoire); background: var(--graphite); }
.nav a[aria-current="page"] { color: var(--ivoire); background: var(--graphite); }
.bouton-icone {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--ardoise); border-radius: 50%;
  color: var(--ivoire); cursor: pointer;
}
.bouton-icone:hover { border-color: var(--cendre); }
.bouton-icone svg { width: 18px; height: 18px; }
.menu-mobile { display: none; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--outremer); color: #fff;
  font-family: var(--display); font-weight: 650; font-size: 16px;
  border: 0; cursor: pointer; transition: background-color .15s;
}
.bouton:hover { background: #2a3bf0; }
.bouton.secondaire { background: transparent; color: var(--ivoire); box-shadow: inset 0 0 0 1px var(--ardoise); }
.bouton.secondaire:hover { box-shadow: inset 0 0 0 1px var(--ivoire); }

/* ---------- Une (hero) ---------- */
.une { position: relative; overflow: hidden; border-bottom: 1px solid var(--ardoise); }
.une .conteneur {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  min-height: min(78vh, 760px); padding-top: 56px; padding-bottom: 64px;
}
.une-categorie { color: var(--outremer-clair); font-weight: 600; font-size: 15px; margin: 0 0 22px; }
.une h1 {
  font-size: clamp(40px, 6.4vw, 92px); line-height: .96; letter-spacing: -.035em;
  font-weight: 800; font-stretch: 112%; margin: 0 0 28px; text-wrap: balance;
}
.une p.chapo {
  font-family: var(--texte); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55;
  color: #cfcdc6; max-width: 34em; margin: 0 0 36px;
}
.une .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.une .date { color: var(--cendre); font-size: 14px; margin-left: 8px; }

/* Le dessin « vitruvien » : le seul moment animé de la page */
.epure { width: 100%; aspect-ratio: 1; color: var(--outremer); }
.epure .trace { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.epure .trace.or { stroke: var(--or); }
.epure .trace.fin { stroke-width: .6; opacity: .55; }
.epure .noeud { fill: var(--ivoire); }
@media (prefers-reduced-motion: no-preference) {
  .une .epure .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 2.4s cubic-bezier(.6, 0, .2, 1) forwards; }
  .une .epure .trace:nth-child(2) { animation-delay: .25s; }
  .une .epure .trace:nth-child(3) { animation-delay: .5s; }
  .une .epure .trace:nth-child(4) { animation-delay: .75s; }
  .une .epure .trace:nth-child(n+5) { animation-delay: 1s; }
  .une .epure .noeud { opacity: 0; animation: apparaitre .6s 2.2s forwards; }
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--ardoise); }
.section-tete { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-tete h2 {
  margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; font-stretch: 110%;
  letter-spacing: -.03em; line-height: 1;
}
.section-tete p { margin: 10px 0 0; color: var(--cendre); font-family: var(--texte); font-size: 18px; max-width: 36em; }
.tout-voir { color: var(--outremer-clair); font-weight: 600; white-space: nowrap; border-bottom: 1px solid transparent; }
.tout-voir:hover { border-bottom-color: currentColor; }

/* Grille d'articles : séparée par des filets, pas des cartes */
.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vignette { display: flex; flex-direction: column; gap: 16px; }
.vignette .couverture { border-radius: 6px; overflow: hidden; background: var(--graphite); aspect-ratio: 16 / 10; }
.vignette .couverture svg { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.vignette:hover .couverture svg { transform: scale(1.04); }
.vignette .meta { display: flex; gap: 14px; font-size: 14px; color: var(--cendre); }
.vignette .meta .cat { color: var(--outremer-clair); font-weight: 600; }
.vignette h2, .vignette h3 {
  margin: 0; font-size: 23px; line-height: 1.15; letter-spacing: -.015em; font-weight: 700; font-stretch: 104%;
  text-wrap: balance;
}
.vignette:hover h2, .vignette:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.vignette p { margin: 0; font-family: var(--texte); color: #bcbab3; font-size: 17px; line-height: 1.55; }

/* Liste compacte (À suivre) */
.fil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ardoise); }
.fil a { padding: 28px 28px 32px 0; border-right: 1px solid var(--ardoise); display: block; }
.fil a + a { padding-left: 28px; }
.fil a:last-child { border-right: 0; }
.fil .cat { color: var(--outremer-clair); font-size: 14px; font-weight: 600; }
.fil h3 { margin: 10px 0 0; font-size: 20px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
.fil a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Bandeau rubriques */
.rubriques { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ardoise); border: 1px solid var(--ardoise); border-radius: 8px; overflow: hidden; }
.rubrique { background: var(--noir); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; transition: background-color .2s; }
.rubrique:hover { background: var(--graphite); }
.rubrique svg { width: 44px; height: 44px; color: var(--outremer); }
.rubrique h3 { margin: auto 0 0; font-size: 26px; font-weight: 750; font-stretch: 108%; letter-spacing: -.02em; }
.rubrique p { margin: 0; color: var(--cendre); font-family: var(--texte); font-size: 16px; }

/* Encart RSS */
.encart {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 12px;
  background: radial-gradient(120% 140% at 100% 0%, #1b2496 0%, #0a0f45 38%, #000 80%);
  border: 1px solid #1d2470;
}
.encart h2 { margin: 0 0 14px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; font-stretch: 110%; letter-spacing: -.03em; line-height: 1.02; }
.encart p { margin: 0; font-family: var(--texte); color: #cfd2ef; font-size: 18px; }
.encart .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- En-tête de rubrique ---------- */
.titre-page { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--ardoise); }
.titre-page h1 { margin: 0; font-size: clamp(48px, 8vw, 120px); line-height: .92; letter-spacing: -.045em; font-weight: 800; font-stretch: 116%; }
.titre-page p { margin: 22px 0 0; font-family: var(--texte); font-size: clamp(18px, 1.6vw, 22px); color: #cfcdc6; max-width: 34em; }

/* ---------- Article ---------- */
.article-tete { padding: clamp(48px, 7vw, 96px) 0 40px; }
.article-tete .fil-ariane { font-size: 14px; color: var(--cendre); margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.article-tete .fil-ariane a { color: var(--outremer-clair); font-weight: 600; }
.article-tete h1 {
  margin: 0; max-width: 16em; font-size: clamp(36px, 5.4vw, 76px); line-height: 1; letter-spacing: -.035em;
  font-weight: 800; font-stretch: 110%; text-wrap: balance;
}
.article-tete .chapo { margin: 28px 0 0; max-width: 36em; font-family: var(--texte); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: #d6d4cd; }
.article-tete .infos { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--cendre); }
.article-couverture { border-radius: 8px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--graphite); margin-bottom: clamp(40px, 5vw, 72px); }
.article-couverture svg { width: 100%; height: 100%; }

.corps { max-width: 700px; margin: 0 auto; font-family: var(--texte); font-size: 20px; line-height: 1.7; color: #e4e2db; }
.corps > :first-child { margin-top: 0; }
.corps p { margin: 0 0 1.15em; }
.corps h2 { font-family: var(--display); font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 750; font-stretch: 106%; color: var(--ivoire); margin: 1.9em 0 .6em; }
.corps h3 { font-family: var(--display); font-size: 23px; line-height: 1.2; font-weight: 700; color: var(--ivoire); margin: 1.6em 0 .5em; }
.corps a { color: var(--outremer-clair); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.corps ul, .corps ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.corps li { margin-bottom: .45em; }
.corps li::marker { color: var(--outremer-clair); }
.corps blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--or); font-style: italic; color: var(--ivoire); font-size: 22px; }
.corps strong { color: var(--ivoire); font-weight: 650; }
.corps code { font-size: .85em; background: var(--graphite); padding: 2px 6px; border-radius: 4px; }

.source {
  max-width: 700px; margin: 48px auto 0; padding: 22px 26px; border: 1px solid var(--ardoise); border-radius: 8px;
  font-size: 15px; color: var(--cendre); display: flex; gap: 14px; align-items: flex-start;
}
.source strong { color: var(--ivoire); font-weight: 600; }
.source a { color: var(--outremer-clair); word-break: break-word; }
.etiquettes { max-width: 700px; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--graphite); color: #cfcdc6; }
.partage { max-width: 700px; margin: 36px auto 0; display: flex; gap: 10px; align-items: center; color: var(--cendre); font-size: 15px; flex-wrap: wrap; }
.partage a, .partage button { font: inherit; color: var(--ivoire); background: transparent; border: 1px solid var(--ardoise); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.partage a:hover, .partage button:hover { border-color: var(--ivoire); }

/* ---------- Recherche ---------- */
.recherche[hidden] { display: none; }
.recherche { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12vh var(--gouttiere) 40px; overflow-y: auto; }
.recherche-boite { max-width: 760px; margin: 0 auto; }
.recherche input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--outremer);
  color: var(--ivoire); font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; padding: 10px 0; outline: none;
}
.recherche input::placeholder { color: #55576a; }
.recherche ul { list-style: none; padding: 0; margin: 28px 0 0; }
.recherche li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--ardoise); }
.recherche li a:hover strong { color: var(--outremer-clair); }
.recherche li strong { display: block; font-size: 19px; font-weight: 650; }
.recherche li span { color: var(--cendre); font-size: 14px; }
.recherche .fermer { position: absolute; top: 24px; right: var(--gouttiere); }
.recherche .vide { color: var(--cendre); font-family: var(--texte); font-size: 18px; margin-top: 24px; }

/* ---------- Pages simples ---------- */
.page-texte { padding: 0 0 96px; }

/* ---------- Pied de page ---------- */
.pied { padding: 64px 0 40px; color: var(--cendre); font-size: 15px; }
.pied .colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ardoise); }
.pied h2 { font-size: 15px; color: var(--ivoire); font-weight: 650; margin: 0 0 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a:hover { color: var(--ivoire); }
.pied .devise { font-family: var(--texte); font-size: 18px; color: #cfcdc6; max-width: 24em; margin: 16px 0 0; }
.pied .bas { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied .colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-mobile { display: inline-grid; margin-left: auto; }
  .entete.ouvert .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #000; border-bottom: 1px solid var(--ardoise); padding: 12px var(--gouttiere) 20px; gap: 2px;
  }
  .entete.ouvert .nav a { font-size: 18px; padding: 12px 0; border-radius: 0; background: none; }
  .une .conteneur { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .une .epure { max-width: 420px; order: -1; margin: 0 auto; width: 70%; }
  .fil { grid-template-columns: 1fr; }
  .fil a, .fil a + a { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--ardoise); }
  .encart { grid-template-columns: 1fr; }
  .encart .actions { justify-content: flex-start; }
  .article-couverture { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grille, .grille.deux, .rubriques { grid-template-columns: 1fr; }
  .section-tete { flex-direction: column; align-items: start; }
  .corps { font-size: 18.5px; }
  .pied .colonnes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Le fil « À suivre » colle à la une */
.section.section-fil { padding: 0; }
.section-fil .fil { border-top: 0; }
@media (max-width: 860px) { .section-fil .fil a:last-child { border-bottom: 0; } }
.pied .logo { color: var(--ivoire); }
