/* Rom Game, refonte : maquette calquée sur la structure de sgbc.tw */

/* Version claire (par défaut) : calée sur les planches de ressources/ */
:root {
  color-scheme: light;

  --fond: #F7F5EF;
  --encre: #0A0A0A;
  --gris: #5E5C55;
  --doux: #33322E;
  --lecture: #1E1E1C;
  --filet: #C9C6BB;
  --filet-fort: #0A0A0A;
  --carte: #F7F5EF;
  --carte-filet: #C9C6BB;
  --fantome: #ECE9E0;

  --accent: #0A0A0A;
  --sur-accent: #F7F5EF;
  --accent-texte: #0A0A0A;
  --accent-schema: dark;

  --entete-fond: #F7F5EFf0;
  --scene-fond: #EFECE3;
  --visuel-fond: none;
  --banniere-fond: #FFFFFF;
  --ombre: none;
  --ombre-forte: none;
  --briques: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='226' height='224' fill='%230A0A0A'%3E%3Cpath d='M165 0h57v28h-57zM80 28h57v28h-57zM221 56h57v28h-57zM-5 56h57v28h-57zM136 84h57v28h-57zM51 112h57v28h-57zM192 140h57v28h-57zM-34 140h57v28h-57zM107 168h57v28h-57zM22 196h57v28h-57z'/%3E%3C/svg%3E");

  --titre: 'JetBrains Mono', 'Courier New', monospace;
  --titre2: 'JetBrains Mono', 'Courier New', monospace;
  --texte: 'JetBrains Mono', 'Courier New', monospace;
  --signature: 'JetBrains Mono', 'Courier New', monospace;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --marge: max(clamp(18px, 2vw, 28px), calc(50vw - 860px));
}

/* Version sombre : mêmes règles, seules les couleurs changent */
html[data-theme="dark"] {
  color-scheme: dark;

  --fond: #171717;
  --encre: #F5F0E5;
  --gris: #A7A29A;
  --doux: #C9C4B8;
  --lecture: #E6E0D2;
  --filet: #3A3936;
  --filet-fort: #F5F0E5;
  --carte: #171717;
  --carte-filet: #3A3936;
  --fantome: #232220;

  --accent: #F5F0E5;
  --sur-accent: #171717;
  --accent-texte: #F5F0E5;
  --accent-schema: light;

  --entete-fond: #171717f0;
  --scene-fond: #232220;
  --banniere-fond: #E6E0D2;
  --briques: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='226' height='224' fill='%23F5F0E5'%3E%3Cpath d='M165 0h57v28h-57zM80 28h57v28h-57zM221 56h57v28h-57zM-5 56h57v28h-57zM136 84h57v28h-57zM51 112h57v28h-57zM192 140h57v28h-57zM-34 140h57v28h-57zM107 168h57v28h-57zM22 196h57v28h-57z'/%3E%3C/svg%3E");
}

/* Pour comparer avec l'orange du modèle : <html lang="fr" data-accent="orange"> */
html[data-accent="orange"] {
  --accent: #FF602E;
  --sur-accent: #171717;
  --accent-texte: #FF602E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
img { display: block; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--sur-accent); }
:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; }
.mono { font: 12px/1.5 var(--mono); letter-spacing: .035em; }
.pad { padding-left: var(--marge); padding-right: var(--marge); }

/* Logo : la couronne remplace le O */
.logo { display: block; min-width: 0; }
.logo img { width: 100%; max-width: 180px; height: auto; }
.logo-sombre { display: none; }
html[data-theme="dark"] .logo-clair { display: none; }
html[data-theme="dark"] .logo-sombre { display: block; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 66px; border-bottom: 1px solid var(--filet); background: var(--entete-fond); backdrop-filter: blur(16px); }
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a { padding: 15px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--accent-texte); }
.entete-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icone { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--filet); }
.icone:hover { border-color: var(--accent-texte); color: var(--accent-texte); }
.icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.burger { display: none; }

/* Boutons et liens */
.bouton { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; min-height: 49px; padding: 14px 20px; background: var(--accent); color: var(--sur-accent); font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.bouton:hover { filter: brightness(1.15); }
.bouton span { font-size: 18px; line-height: 1; }
.bouton-petit { gap: 16px; min-height: 44px; padding: 10px 14px; font-size: 13px; }
.lien-texte { display: inline-flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--filet-fort); font-size: 14px; }
.lien-texte:hover { color: var(--accent-texte); }

/* Accroche */
.ligne-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 23px; color: var(--gris); }
.accroche { display: grid; grid-template-columns: .9fr 1.2fr; align-items: center; gap: 12px; min-height: clamp(610px, calc(100svh - 111px), 860px); }
.accroche-texte { position: relative; z-index: 2; padding: 65px 0 86px; }
.grand-titre { font-family: var(--titre); font-weight: 400; font-size: clamp(42px, 4.4vw, 72px); line-height: .98; letter-spacing: -.05em; }
.grand-titre span, .titre-rubriques span { color: var(--gris); }
.intro { max-width: 540px; margin-top: 32px; color: var(--doux); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }

.scene-numero { position: absolute; right: 0; bottom: 38px; color: var(--gris); }

/* Cartouche : l'objet de la marque, son étiquette change à chaque article */
.cartouche { position: relative; display: block; width: clamp(240px, 27vw, 390px); aspect-ratio: 5 / 6; border-radius: 12px 12px 4px 4px; background: var(--lecture); transform: perspective(1500px) rotateY(-26deg) rotateX(16deg) rotateZ(5deg); box-shadow: 1px 1px 0 #C9C4B8, 2px 2px 0 #C9C4B8, 3px 3px 0 #C9C4B8, 4px 4px 0 #C9C4B8, 5px 5px 0 #C9C4B8, 6px 6px 0 #C9C4B8, 7px 7px 0 #C9C4B8, 8px 8px 0 #A7A29A, 9px 9px 0 #A7A29A, 10px 10px 0 #A7A29A, 11px 11px 0 #3A3936, 12px 12px 0 #3A3936, 13px 13px 0 #3A3936, 14px 14px 0 #232220, 15px 15px 0 #232220, 16px 16px 0 #232220, 60px 70px 80px #0009; transition: transform .4s; }
.cartouche:hover { transform: perspective(1500px) rotateY(-18deg) rotateX(12deg) rotateZ(3deg); }
.cartouche-tete { position: absolute; left: 9%; right: 9%; top: 5%; height: 9%; display: flex; align-items: center; justify-content: center; border: 3px solid var(--accent); color: var(--fond); font-family: var(--titre); font-size: clamp(13px, 1.3vw, 18px); letter-spacing: -.03em; }
.cartouche-image { position: absolute; left: 9%; right: 9%; top: 18%; bottom: 13%; padding: 8px; background: var(--fond); }
.cartouche-image img { width: 100%; height: 100%; object-fit: cover; }
.cartouche-contacts { position: absolute; left: 14%; right: 14%; bottom: 0; height: 8%; background: repeating-linear-gradient(90deg, var(--accent) 0 7px, var(--lecture) 7px 12px); }

/* Sections */
.section { padding-top: 84px; padding-bottom: 84px; border-top: 1px solid var(--filet); }

.fil-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 32px; }
.fil-titre { max-width: 680px; font-family: var(--titre2); font-weight: 700; font-size: clamp(44px, 4.8vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.fil-titre span { color: var(--accent-texte); }
.fil-texte { max-width: 540px; margin-top: 28px; color: var(--doux); font-size: 18px; line-height: 1.65; }
.pastilles { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pastilles li, .pastilles a { font: 11px/1.4 var(--mono); letter-spacing: .025em; color: var(--doux); }
.pastilles > li:not(:has(a)) { padding: 8px 10px; border: 1px solid var(--filet); }
.pastilles a { display: block; padding: 14px 12px; border: 1px solid var(--filet); }
.pastilles a:hover { border-color: var(--accent-texte); color: var(--accent-texte); }

/* Trio de cartouches translucides */
.trio { display: flex; justify-content: center; padding: 34px 24px 44px; background: radial-gradient(closest-side, #2A2238, var(--fond)); }
.mini { position: relative; flex: 1 1 0; min-width: 0; max-width: 240px; aspect-ratio: 5 / 6; border: 1px solid; border-radius: 8px 8px 3px 3px; transition: transform .3s; }
.mini + .mini { margin-left: -14px; }
.mini:hover { z-index: 3; }
.mini-1 { z-index: 1; background: #F5F0E528; border-color: #F5F0E5AA; box-shadow: 8px -6px 0 -1px #F5F0E522; transform: rotate(-7deg) translateY(10px); }
.mini-2 { z-index: 2; background: #6D00D966; border-color: var(--accent-texte); box-shadow: 8px -6px 0 -1px #6D00D944; transform: rotate(-3deg); }
.mini-3 { z-index: 1; background: #A7A29A33; border-color: var(--gris); box-shadow: 8px -6px 0 -1px #A7A29A22; transform: rotate(2deg) translateY(-8px); }
.mini-num { position: absolute; left: 12%; top: 7%; font-size: 11px; }
.mini-image { position: absolute; left: 12%; right: 12%; top: 22%; bottom: 13%; padding: 4px; background: var(--gris); }
.mini-image img { width: 100%; height: 100%; object-fit: cover; }
.mini-contacts { position: absolute; left: 12%; right: 12%; bottom: 3%; height: 6%; background: repeating-linear-gradient(90deg, var(--gris) 0 4px, transparent 4px 7px); }
.trio-legende { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 12px; color: var(--gris); }

/* Grille de cartes */
.rubriques-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin: 50px 0 22px; padding-top: 28px; border-top: 1px solid var(--filet); }
.titre-rubriques { font-family: var(--titre2); font-weight: 600; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.2; letter-spacing: -.045em; }
.carte-num { position: absolute; top: 17px; left: 20px; font-size: 11px; color: var(--gris); }
.note { max-width: 780px; margin-top: 26px; color: var(--gris); font-size: 13px; line-height: 1.65; }

/* Grand titre de section et onglets */
.onglets { display: flex; flex-wrap: wrap; }
.onglet { min-height: 48px; padding: 12px 22px; background: none; border: 1px solid var(--filet); border-bottom: 0; color: var(--doux); font-size: 14px; font-weight: 500; }
.onglet + .onglet { border-left: 0; }
.onglet:hover { color: var(--encre); }
.onglet[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }

.detail { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--filet); }
.detail-scene { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; height: clamp(360px, 35vw, 540px); padding: 24px; overflow: hidden; background: var(--scene-fond); }
.detail-scene img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--ombre); }
.detail-legende { position: absolute; left: 22px; bottom: 18px; padding: 2px 6px; background: var(--fond); }
.rond { position: absolute; right: 22px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--filet-fort); border-radius: 50%; background: var(--fond); font-size: 18px; }
.rond:hover { border-color: var(--accent-texte); color: var(--accent-texte); }
.detail-texte { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px; border-left: 1px solid var(--filet); }
.detail-numero { display: block; margin-bottom: 32px; color: var(--accent-texte); }
.detail-texte h3 { margin-bottom: 22px; font-family: var(--titre2); font-weight: 600; font-size: clamp(28px, 3vw, 44px); line-height: 1.02; letter-spacing: -.05em; }
.detail-texte h3 span { color: var(--gris); }
.detail-texte p { max-width: 410px; color: var(--doux); font-size: 16px; line-height: 1.65; }
.detail-pied { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-top: 24px; border-top: 1px solid var(--filet); color: var(--doux); font-size: 12px; }
.detail-pied span { display: flex; align-items: center; gap: 7px; }
.detail-pied i { width: 15px; height: 15px; border-radius: 50%; background: var(--gris); }
.detail-pied span:first-child i { background: var(--accent); }

/* Clôture */
.cloture { padding-top: 34px; padding-bottom: 25px; background: var(--accent); color: var(--sur-accent); }
.cloture-lien { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--titre); font-size: clamp(52px, 12vw, 200px); line-height: 1.18; letter-spacing: -.06em; }
.cloture-lien svg { flex-shrink: 0; width: 15vw; height: 15vw; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s; }
.cloture-lien:hover svg { transform: translate(5px, -5px); }
.cloture-lien-moyen { padding: 24px 0 32px; font-size: clamp(38px, 6.4vw, 104px); line-height: 1; letter-spacing: -.05em; }
.cloture-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; padding-top: 22px; border-top: 1px solid currentColor; }

/* Pied de page */
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 25px 35px; padding-top: 38px; padding-bottom: 38px; }
.pied .logo img { max-width: 234px; }
.pied p { color: var(--gris); font-size: 12px; line-height: 1.65; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.pied nav a { border-bottom: 1px solid var(--encre); }
.pied nav a:hover, .haut:hover { color: var(--accent-texte); border-color: var(--accent-texte); }
.haut { display: flex; align-items: center; gap: 14px; white-space: nowrap; }

/* Article */
.corps { min-width: 0; }
.corps h2 { margin: 36px 0 18px; font-family: var(--titre2); font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1.04; letter-spacing: -.05em; }
.corps h2:first-child { margin-top: 0; }
.corps p { max-width: 70ch; margin-bottom: 18px; color: var(--lecture); font-size: 19px; line-height: 1.65; }
.corps p:last-child { margin-bottom: 0; }
.corps a { color: var(--accent-texte); text-decoration: underline; text-underline-offset: 3px; }

/* Agenda */

/* Accueil : image de l'article à la une */
.une-image { display: block; min-width: 0; }
.une-image img { width: 100%; height: auto; box-shadow: var(--ombre); }

/* Images : filtre commun pour harmoniser les visuels, couleur d'origine au survol */
:root { --filtre-image: sepia(.4) saturate(.85) contrast(.9) brightness(1.04); }
.une-image img, .actu-image img, .lateral-liste img, .article-video img, .detail-scene img { filter: var(--filtre-image); }
.une-image img, .actu-image img, .lateral-liste img { transition: filter .3s; }
.une-image:hover img, .une-image:focus-visible img, .actu:hover img, .actu:focus-visible img, .lateral-liste a:hover img, .lateral-liste a:focus-visible img { filter: none; }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Recherche : champ dans l'en-tête sur ordinateur, plein écran sur mobile */
.entete .nav, .entete .recherche { transition: opacity .25s, visibility .25s; }
.recherche-active .nav, .recherche-active .recherche { opacity: 0; visibility: hidden; }
.recherche-champ { position: absolute; left: var(--recherche-gauche, 240px); right: var(--recherche-droite, 200px); top: 50%; z-index: 5; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 5px 0 14px; background: var(--fond); border: 1px solid var(--filet); opacity: 0; visibility: hidden; transform: translateY(-50%); transition: opacity .3s, visibility .3s; }
.recherche-active .recherche-champ { opacity: 1; visibility: visible; }
.recherche-champ:hover, .recherche-champ:focus-within { border-color: var(--accent-texte); }
.recherche-champ > svg, .recherche-plein-tete svg { flex-shrink: 0; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; }
.recherche-champ form { display: contents; }
.autocomplete { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
.recherche-champ input { flex: 1; width: 100%; padding: 0; background: transparent; border: 0; outline: 0; color: var(--encre); font: inherit; font-size: 16px; }
.recherche-champ input::placeholder, .recherche-plein input::placeholder { color: var(--gris); }
.recherche-envoyer { flex-shrink: 0; height: 32px; margin-left: 8px; padding: 0 22px; background: var(--accent); border: 0; color: var(--sur-accent); font-size: 14px; font-weight: 600; line-height: 32px; }
.recherche-envoyer:hover { filter: brightness(1.25); }
.recherche-fermer { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 26px; height: 32px; margin: 0 6px 0 4px; padding: 0; background: none; border: 0; color: var(--gris); font: 300 26px/0 Arial, sans-serif; }
.recherche-fermer::before { content: '×'; transform: translateY(1px); }
.recherche-fermer:hover { color: var(--encre); }
.autocomplete-liste { position: absolute; top: calc(100% + 11px); left: -37px; right: 0; z-index: 9999; max-height: 300px; overflow-y: auto; background: var(--fond); }
.autocomplete-liste:not(:empty) { border: 1px solid var(--filet); }
.autocomplete-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--filet); color: var(--encre); cursor: pointer; font-size: 13px; font-weight: 500; }
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover, .autocomplete-item.actif { background: var(--scene-fond); }
.autocomplete-libelle { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete-badge { flex-shrink: 0; min-width: 50px; padding: 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: .4px; line-height: 1.4; text-align: center; text-transform: uppercase; }
.autocomplete-badge-rubrique { background: var(--accent); color: var(--sur-accent); }
.autocomplete-badge-tag { background: var(--scene-fond); border: 1px solid var(--filet); color: var(--gris); }
.autocomplete-badge-article { border: 1px solid var(--filet-fort); color: var(--encre); }
.autocomplete-principal { font-weight: 700; }
.recherche-plein { position: fixed; inset: 0; z-index: 100; padding: 20px; overflow-y: auto; background: var(--fond); }
.recherche-plein[hidden] { display: none; }
.recherche-plein-tete, .recherche-plein form { max-width: 600px; margin: 0 auto; }
.recherche-plein-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--filet); font-size: 18px; font-weight: 600; text-transform: uppercase; }
.recherche-plein-tete svg { margin-right: 8px; }
.recherche-plein-tete .recherche-fermer { margin: 0; color: var(--encre); font-size: 30px; }
.recherche-plein label { display: block; margin-bottom: 8px; color: var(--gris); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.recherche-plein input { width: 100%; min-height: 44px; padding: 12px 15px; background: none; border: 1px solid var(--filet); border-radius: 0; color: var(--encre); font: inherit; font-size: 16px; }
.recherche-plein input:focus { outline: 0; border-color: var(--accent-texte); }
.recherche-plein .autocomplete-liste { top: 100%; left: 0; }
.recherche-plein .autocomplete-item { padding: 10px 15px; font-size: 14px; }
@media (max-width: 768px) {
  .recherche-champ { display: none; }
}
@media (max-width: 400px) {
  .entete-actions .bouton-petit { gap: 0; font-size: 0; }
}

/* Accueil : articles et colonne latérale */
.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 40px; }
.actus { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.actu { display: flex; flex-direction: column; min-width: 0; background: var(--carte); border: 1px solid var(--carte-filet); transition: border-color .2s; }
.actu:hover { border-color: var(--accent-texte); }
.actu-image { position: relative; display: block; flex-shrink: 0; aspect-ratio: 16 / 9; background: var(--fantome); }
.actu-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.actu-corps { display: flex; flex-direction: column; flex: 1; gap: 11px; padding: 18px 20px 20px; }
.actu-rubrique { color: var(--accent-texte); font-size: 11px; }
.actu h3 { font-family: var(--titre2); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; text-wrap: pretty; overflow-wrap: anywhere; }
.actu p { flex: 1; color: var(--doux); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.actu-date { color: var(--gris); font-size: 11px; }
.actus-une { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jour:first-child .rubriques-tete { margin-top: 0; padding-top: 0; border-top: 0; }
.actus-une h3 { font-size: clamp(22px, 2vw, 28px); }
.lateral { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.lateral-collant { position: sticky; top: 82px; max-height: calc(100vh - 98px); padding-right: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--filet) transparent; }
.bloc-titre { padding-bottom: 14px; border-bottom: 1px solid var(--filet-fort); font-family: var(--titre2); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -.04em; }
.bloc-titre span { color: var(--gris); }
.lateral-liste a { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.lateral-liste a:hover .lateral-titre { color: var(--accent-texte); }
.lateral-liste img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.lateral-cat { color: var(--gris); font-size: 11px; }
.lateral-titre { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.lateral-info { color: var(--doux); font-size: 13px; line-height: 1.5; }
.lateral-liste .lateral-info:not(:last-child) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bloc > .lien-texte { margin-top: 12px; }
.bannieres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 14px; }
.bannieres a { display: grid; place-items: center; min-height: 64px; padding: 8px; background: var(--banniere-fond); }
.bannieres img { max-width: 100%; max-height: 60px; object-fit: contain; }

/* Accueil : filtres de l'agenda, sous le bloc que faire ce week-end */
.cloture-semaine { position: relative; }
.cloture-semaine .cloture-pied { align-items: center; }
.cloture-semaine .cloture-pied a::after { content: ''; position: absolute; inset: 0; }
.cloture-semaine .cloture-pied > span { font-weight: 400; }
.cloture-semaine:hover .cloture-pied a { text-decoration: underline; text-underline-offset: 4px; }
.filtres-agenda { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--filet); }
.filtre-champ { display: flex; flex: 1 1 190px; flex-direction: column; gap: 6px; min-width: 0; color: var(--gris); }
.filtre-champ select { width: 100%; min-height: 44px; padding: 0 10px; background: var(--fond); border: 1px solid var(--filet-fort); border-radius: 0; color: var(--encre); font: inherit; font-size: 14px; }
.cloture .filtres-agenda { position: relative; z-index: 1; margin-top: 22px; padding: 22px 0 8px; border-top: 1px solid currentColor; }
.cloture .filtre-champ { color: inherit; }
.cloture .filtre-champ select { color-scheme: var(--accent-schema); background: var(--accent); border-color: currentColor; color: var(--sur-accent); }
.cloture .filtre-champ option { background: var(--accent); color: var(--sur-accent); }
.cloture .bouton { background: var(--sur-accent); color: var(--accent); }
.cloture .lien-texte { border-color: currentColor; }
.cloture :focus-visible { outline-color: currentColor; }

/* Accueil : pagination et réseaux */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 32px; font-size: 13px; }
.pagination a, .pagination span[aria-current] { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--filet); }
.pagination a:hover { border-color: var(--accent-texte); color: var(--accent-texte); }
.pagination span[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.pagination > a + span:not([aria-current]) { padding: 0 2px; color: var(--gris); }
.suivre { font-size: 16px; font-weight: 700; }
.suivre a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.suivre a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied p a { border-bottom: 1px solid currentColor; }

/* Page article */
.ligne-haut a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.article-colonne { --decalage: 34%; min-width: 0; }
.corps p { max-width: none; margin-left: var(--decalage); }
.article-colonne .pastilles, .article-sources, .article-partage { margin-left: var(--decalage); }
.article-video { position: relative; display: block; width: calc(100% - var(--decalage)); margin: 18px 0 10px var(--decalage); padding: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 0; }
.article-video img, .article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.article-video span { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: var(--accent); border-radius: 50%; color: var(--sur-accent); box-shadow: 0 4px 15px #0006; transform: translate(-50%, -50%); transition: transform .3s; }
.article-video span::before { content: ''; margin-left: 4px; border-left: 20px solid currentColor; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.article-video:hover span { transform: translate(-50%, -50%) scale(1.1); }
.article-video:hover img { filter: none; }
@media (max-width: 768px) {
  .article-video span { width: 50px; height: 49px; }
  .article-video span::before { margin-left: 3px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
}
.article-colonne .pastilles { margin-top: 32px; }
.article-sources { margin-top: 20px; color: var(--gris); font-size: 13px; line-height: 1.6; }
.article-sources a { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.article-partage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--filet); font-size: 13px; font-weight: 700; }
.article-partage a { display: inline-flex; align-items: center; min-height: 44px; }
.article-partage a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-partage .mono { color: var(--gris); font-weight: 400; }
.article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.article-nav a { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--carte); border: 1px solid var(--carte-filet); transition: border-color .2s; }
.article-nav a:last-child { text-align: right; }
.article-nav a:hover { border-color: var(--encre); }
.article-nav .mono { color: var(--gris); }
.article-nav b { font-size: 15px; line-height: 1.35; }
@media (max-width: 560px) {
  .article-nav { grid-template-columns: minmax(0, 1fr); }
  .article-colonne { --decalage: 0%; }
  .article-nav a:last-child { text-align: left; }
}

/* Page agenda */
.cloture-parcours h1 { display: block; font-weight: 800; text-wrap: balance; }
.cloture-parcours h1 span { font-weight: 400; opacity: .7; }
.cloture-parcours .cloture-pied { align-items: center; }
.cloture-parcours .cloture-pied p { flex: 1 1 480px; max-width: 760px; color: inherit; font-size: clamp(15px, 1.2vw, 18px); font-weight: 400; line-height: 1.6; }
.parcours { display: grid; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid currentColor; }
.parcours-ligne { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: start; gap: 12px; }
.parcours-ligne > .mono { padding-top: 13px; }
.parcours-liens { display: flex; flex-wrap: wrap; gap: 8px; }
.parcours-liens a, .parcours-plus { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: none; border: 1px solid currentColor; font-size: 13px; }
.parcours-liens a span { font: 11px var(--mono); opacity: .7; }
.parcours-liens a:hover, .parcours-plus:hover { background: var(--sur-accent); color: var(--accent); }
.parcours-liens [hidden] { display: none; }
.parcours-plus { border-style: dashed; }
.actu-evenement .actu-image { aspect-ratio: 4 / 3; background: var(--scene-fond); }
.actu-evenement .actu-image img { padding: 10px; object-fit: contain; }
.actu-evenement .actu-date { color: var(--encre); font-size: 12px; font-weight: 700; }
.pagination-total { margin-top: 14px; color: var(--gris); }
.bloc-texte { margin: 14px 0; color: var(--doux); font-size: 13px; line-height: 1.6; }
@media (max-width: 560px) {
  .parcours-ligne { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .parcours-ligne > .mono { padding-top: 0; }
}

/* Bascule clair / sombre */
.bascule-theme .soleil { display: none; }
html[data-theme="dark"] .bascule-theme .lune { display: none; }
html[data-theme="dark"] .bascule-theme .soleil { display: inline; }
.menu-theme { padding: 14px 0; background: none; border: 0; border-top: 1px solid var(--filet); font-weight: 600; text-align: left; }

/* Menu mobile */
.menu-mobile { display: none; flex-direction: column; border-bottom: 1px solid var(--filet); font-size: 18px; font-weight: 600; }
.menu-mobile.ouvert { display: flex; }
.menu-mobile a { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--filet); }
.menu-mobile a:first-child { border-top: 0; }

@media (max-width: 1290px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 1000px) {
  .fil-intro, .detail, .colonnes { grid-template-columns: minmax(0, 1fr); }
  .lateral-collant { position: static; max-height: none; padding-right: 0; overflow: visible; }
  .detail-texte { border-left: 0; border-top: 1px solid var(--filet); padding: 28px; }
}
@media (max-width: 760px) {
  .masque-petit { display: none; }
  .une-image { order: -1; margin: 18px 0 32px; }
  .entete { gap: 12px; min-height: 62px; }
  .accroche { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .detail-legende { display: none; }
  .cloture-pied { margin-top: 12px; }
  .accroche-texte { padding: 0 0 48px; }
  .scene-numero { display: none; }
  .section { padding-top: 50px; padding-bottom: 50px; }
  .fil-texte { font-size: 17px; }
  .rubriques-tete { margin-top: 30px; }
  .trio { padding: 24px 8px 32px; }
  .onglet { flex: 1 1 45%; padding: 11px 12px; border-left: 1px solid var(--filet); }
  .onglet + .onglet { border-left: 1px solid var(--filet); }
  .corps p { font-size: 18px; }
  .cloture-lien svg { width: 18vw; height: 18vw; }
}
@media (max-width: 560px) {
  .actus-une { grid-template-columns: minmax(0, 1fr); }
  .entete-actions .bascule-theme { display: none; }
  .actions .bouton { width: 100%; }
  .filtre-champ { flex-basis: 100%; }
}
/* Direction des planches : grille apparente, typographie monospace */
body { background-image: linear-gradient(var(--filet), var(--filet)), linear-gradient(var(--filet), var(--filet)); background-size: 1px 100%; background-position: var(--marge) 0, calc(100% - var(--marge)) 0; background-repeat: no-repeat; }

.nav { font-size: 13px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.bouton { font-size: 13px; }
.mono { letter-spacing: .04em; }

.grand-titre { font-weight: 800; font-size: clamp(32px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; }
.grand-titre span { font-weight: 400; color: var(--gris); }
.intro { font-size: 15px; line-height: 1.7; }

.accroche-une .grand-titre { font-size: clamp(30px, 3.6vw, 62px); }
.accroche-une { --decalage: 34%; }
.accroche-une .intro { position: relative; max-width: none; padding-left: var(--decalage); padding-right: 20px; }
.accroche-une .intro::before { content: ''; position: absolute; left: 0; top: calc(.85em - 1.5px); width: calc(var(--decalage) - 24px); height: 3px; background: var(--encre); }
.accroche-une .actions { margin-left: var(--decalage); }
@media (max-width: 560px) {
  .accroche-une { --decalage: 24%; }
  .accroche-une .intro::before { width: calc(var(--decalage) - 14px); }
}

.titre-rubriques, .bloc-titre, .fil-titre, .cloture-lien { font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
.titre-rubriques { font-size: clamp(20px, 2.4vw, 36px); }
.titre-rubriques span, .bloc-titre span, .fil-titre span { font-weight: 400; color: var(--gris); text-transform: none; }
.bloc-titre { padding-bottom: 12px; border-bottom: 2px solid var(--encre); font-size: 20px; }
.fil-titre { font-size: clamp(32px, 4vw, 64px); }
.cloture-lien { font-size: clamp(32px, 8vw, 132px); }
.cloture-lien-moyen { font-size: clamp(28px, 5.6vw, 92px); }
.cloture-semaine .cloture-lien { text-wrap: balance; }

.actu:hover { border-color: var(--encre); }
.actu h3 { font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.actus-une h3 { font-size: clamp(19px, 1.8vw, 26px); }
.actu p { font-size: 13px; line-height: 1.65; }
.actu-rubrique { font-weight: 500; }
.lateral-liste a:hover .lateral-titre { text-decoration: underline; text-underline-offset: 3px; }
.lateral-titre { font-size: 14px; font-weight: 700; }
.lateral-info { font-size: 12px; }
.pagination a:hover { background: var(--encre); color: var(--fond); }
.bannieres a { border: 1px solid var(--filet); }

.detail-texte h3 { font-weight: 700; letter-spacing: -.03em; }
.corps-partie { display: grid; grid-template-columns: calc(var(--decalage) - 24px) minmax(0, 1fr); gap: 0 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--filet); }
.corps-partie p { margin-left: 0; }
.corps h2 { align-self: start; margin: 0; font-size: clamp(18px, 1.6vw, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; text-transform: uppercase; }
.corps h2::before { content: ''; display: block; height: 28px; margin-bottom: 16px; background: var(--briques) 0 0 / 113px 112px round no-repeat; }
.corps h2 { text-wrap: balance; }
@media (max-width: 560px) {
  .corps-partie { grid-template-columns: minmax(0, 1fr); }
  .corps h2 { margin-bottom: 18px; font-size: 22px; }
}
.corps p { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.75; }

.cloture::before { content: ''; display: block; height: 84px; margin: -34px calc(var(--marge) * -1) 34px; background: var(--fond) var(--briques) 0 0 / 113px 112px; }

/* Motif des h2 dans les marges du site : il se dissout du bord vers le contenu, la couleur suit le thème */
:root { --cotes-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='336'%3E%3Cpath d='M82.5 0h28.5v14h-28.5zM195.5 0h28.5v14h-28.5zM40 14h28.5v14h-28.5zM-2.5 28h28.5v14h-28.5zM110.5 28h28.5v14h-28.5zM68 42h28.5v14h-28.5zM181 42h28.5v14h-28.5zM25.5 56h28.5v14h-28.5zM138.5 56h28.5v14h-28.5zM-17 70h28.5v14h-28.5zM166.5 84h28.5v14h-28.5zM11 98h28.5v14h-28.5zM124 98h28.5v14h-28.5zM82.5 112h28.5v14h-28.5zM40 126h28.5v14h-28.5zM-2.5 140h28.5v14h-28.5zM110.5 140h28.5v14h-28.5zM68 154h28.5v14h-28.5zM25.5 168h28.5v14h-28.5zM-17 182h28.5v14h-28.5zM53.5 196h28.5v14h-28.5zM11 210h28.5v14h-28.5zM40 238h28.5v14h-28.5zM-2.5 252h28.5v14h-28.5zM25.5 280h28.5v14h-28.5zM-17 294h28.5v14h-28.5zM53.5 308h28.5v14h-28.5zM11 322h28.5v14h-28.5zM124 322h28.5v14h-28.5z'/%3E%3C/svg%3E"); --cotes-opacite: .13; }
html[data-theme="dark"] { --cotes-opacite: .16; }
body::before, body::after { content: ''; position: fixed; top: 0; bottom: 0; z-index: -1; width: var(--marge); background: var(--encre); opacity: var(--cotes-opacite); pointer-events: none; -webkit-mask: var(--cotes-motif) 0 0 / 340px 336px repeat-y; mask: var(--cotes-motif) 0 0 / 340px 336px repeat-y; }
body::before { left: 0; }
body::after { right: 0; transform: scaleX(-1); }
@media (max-width: 760px), print { body::before, body::after { display: none; } }
html.cotes-animes body::before, html.cotes-animes body::after { display: none; }
.cotes-couche { position: fixed; top: 0; bottom: 0; z-index: -1; width: var(--marge); overflow: hidden; pointer-events: none; }
.cotes-couche-gauche { left: 0; }
.cotes-couche-droite { right: 0; transform: scaleX(-1); }
.cotes-couche i { position: absolute; width: 28.5px; height: 14px; background: var(--encre); opacity: 0; transform-origin: 0 50%; will-change: transform, opacity; }
@media (max-width: 760px), print { .cotes-couche { display: none; } }
/* Barre "Suivez-nous" : fixe en bas de page, apparaît en descendant */
.barre-suivre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: flex; align-items: center; gap: 14px 24px; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--fond); border-top: 1px solid var(--filet-fort); opacity: 0; visibility: hidden; transform: translateY(105%); transition: transform .45s cubic-bezier(.65, 0, .35, 1), opacity .35s, visibility .45s; }
.barre-suivre.visible { opacity: 1; visibility: visible; transform: none; }
.barre-suivre::before { content: ''; flex: 0 0 113px; height: 28px; background: var(--briques) 0 0 / 113px 112px; }
.barre-suivre-texte { flex: 1 1 auto; min-width: 0; }
.barre-suivre-texte .mono { margin: 0 0 3px; color: var(--gris); font-size: 11px; }
.barre-suivre-titre { margin: 0; font-family: var(--titre2); font-size: clamp(14px, 1.25vw, 19px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-transform: uppercase; }
.barre-suivre-liens { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.barre-lien { display: inline-flex; align-items: center; justify-content: center; min-width: 116px; min-height: 44px; padding: 0 16px; border: 1px solid var(--filet-fort); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.barre-lien svg { display: none; width: 18px; height: 18px; fill: currentColor; }
.barre-lien:hover, .barre-lien-fort { background: var(--accent); color: var(--sur-accent); }
.barre-lien-fort:hover { background: none; color: var(--encre); }
.barre-suivre-fermer { flex-shrink: 0; }
@media (max-width: 900px) { .barre-suivre::before { display: none; } }
@media (max-width: 560px) {
  .barre-suivre { gap: 8px; }
  .barre-suivre-texte .mono { display: none; }
  .barre-suivre-titre { font-size: 12px; }
  .barre-suivre-liens { gap: 4px; }
  .barre-lien { width: 44px; min-width: 44px; padding: 0; }
  .barre-lien span { display: none; }
  .barre-lien svg { display: block; }
}
@media print { .barre-suivre { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; }
}
