/* Les Artisans de l'IA — charte du dossier fondateur : couverture noire avec le logo, nom en capitales ivoire,
   mentions dorées, intertitres en capitales brunes, texte gris sur blanc, encarts sable. */
:root {
  --noir: #211D1A;
  --noir-2: #2B2622;
  --texte: #444444;
  --doux: #6E655B;
  --brun: #5C4326;
  --or: #D9AE66;
  --or-fonce: #8A6A2E;
  --ivoire: #EDE3D0;
  --sable: #F1EBE0;
  --sable-2: #F8F4EC;
  --beige: #B4A483;
  --trait: #E4D9C6;
  --rouge: #A6423B;
  --ok: #3F6B3A;
  --blanc: #FFFFFF;
  --police: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --rayon: 10px;
  --duree: .7s;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--blanc); color: var(--texte); font: 18px/1.6 var(--police); }
img { max-width: 100%; height: auto; }
a { color: var(--brun); text-decoration-color: var(--or); text-underline-offset: 3px; }
a:hover { color: var(--noir); }
h1, h2, h3 { color: var(--noir-2); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font: .86em ui-monospace, Consolas, monospace; background: var(--sable); padding: .1em .35em; border-radius: 4px; }
blockquote { margin: 0 0 1em; padding: .7em 1.1em; border-left: 3px solid var(--or); background: var(--sable); border-radius: 0 6px 6px 0; font-style: italic; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.cadre { width: min(1140px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(780px, 100% - 32px); }
.muet { color: var(--doux); }
.petit { font-size: .88rem; }
.cache { position: absolute; left: -9999px; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 16px; top: 8px; background: var(--blanc); padding: 8px 12px; z-index: 30; }
[hidden] { display: none !important; }

/* Repères de la charte */
.titre-section { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brun); }
.sur { font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brun); margin-bottom: .8em; }
.sur.or { color: var(--or); }
.sur a { color: inherit; text-decoration: none; }
.pave { display: inline-block; width: .6em; height: .6em; border-radius: 2px; background: var(--or); margin-right: .5em; vertical-align: .05em; }
.pave.rouge { background: var(--rouge); border-radius: 50%; }
ul.tirets { list-style: none; padding: 0; margin: 0 0 1em; }
ul.tirets li { position: relative; padding-left: 1.3em; margin-bottom: .5em; }
ul.tirets li::before { content: "–"; position: absolute; left: 0; color: var(--or-fonce); font-weight: 700; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 700 1rem/1 var(--police); padding: .85em 1.35em; border-radius: 999px;
  background: var(--noir-2); color: var(--ivoire); border: 1.5px solid var(--noir-2); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.bouton:hover { background: var(--brun); border-color: var(--brun); color: var(--blanc); }
.bouton:active { transform: scale(.97); }
.bouton.or { background: var(--or); border-color: var(--or); color: var(--noir); }
.bouton.or:hover { background: var(--ivoire); border-color: var(--ivoire); color: var(--noir); }
.bouton.contour { background: transparent; color: var(--noir-2); }
.bouton.contour:hover { color: var(--brun); border-color: var(--brun); }
.bouton.contour.clair { color: var(--ivoire); border-color: var(--ivoire); }
.bouton.contour.clair:hover { background: var(--ivoire); color: var(--noir); }
.bouton.petit { padding: .55em 1em; font-size: .9rem; }
.bouton.large { width: 100%; }
.bouton.danger { background: transparent; color: var(--rouge); border-color: var(--rouge); }
.bouton.danger:hover { background: var(--rouge); color: #fff; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--brun); text-decoration: underline; text-decoration-color: var(--or); cursor: pointer; }
.lien.clair { color: var(--ivoire); }
.rond { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--trait); background: var(--blanc); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--noir-2); }
.rond:hover { border-color: var(--or); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 1.2em; }
.actions.centre { justify-content: center; }
.en-ligne { display: inline; }
.suite { font-weight: 700; color: var(--brun); text-decoration: none; }

/* En-tête : bande noire, comme la couverture du dossier */
.entete { background: var(--noir); color: var(--ivoire); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #3a332c; }
.entete-l { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivoire); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .98rem; }
.marque:hover { color: var(--or); }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: .96rem; }
.nav a:not(.bouton) { color: var(--ivoire); text-decoration: none; padding: 6px 0; }
.nav a:not(.bouton):hover { color: var(--or); }
.nav a[aria-current="page"]:not(.bouton) { box-shadow: inset 0 -2px var(--or); }
.nav .discret { color: var(--beige) !important; }
.menu-case, .menu-bouton { display: none; }
@media (max-width: 1020px) {
  .menu-bouton { display: block; cursor: pointer; font-weight: 700; padding: 8px 14px; border: 1.5px solid var(--ivoire); border-radius: 999px; font-size: .9rem; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 16px; }
  .menu-case:checked ~ .nav { display: flex; }
  .entete-l { min-height: 62px; }
}

/* Couverture de l'accueil et bandeaux noirs des pages */
.hero { background: var(--noir); color: var(--ivoire); text-align: center; padding: clamp(48px, 9vw, 110px) 0 clamp(44px, 7vw, 80px); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(217,174,102,.13), transparent); pointer-events: none; }
.hero-l { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(150px, 22vw, 230px); margin-bottom: 22px; }
.hero h1 { color: var(--ivoire); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2.1rem, 6vw, 3.6rem); margin-bottom: .25em; }
.devise { font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--ivoire); min-height: 1.6em; }
.devise.ecrit::after { content: "▍"; color: var(--or); animation: clignote 1s steps(1) infinite; margin-left: 2px; }
@keyframes clignote { 50% { opacity: 0; } }
.hero-liens { margin-top: 26px; font-size: .86rem; color: var(--beige); }
.hero-liens a { color: var(--beige); text-decoration: none; }
.hero-liens a:hover { color: var(--or); }
.bandeau-noir { background: var(--noir); color: var(--ivoire); padding: clamp(40px, 7vw, 76px) 0 clamp(32px, 5vw, 56px); }
.bandeau-noir h1 { color: var(--ivoire); max-width: 24ch; }
.bandeau-noir .chapo { color: var(--ivoire); opacity: .9; max-width: 62ch; }
.bandeau-noir .auteur { color: var(--beige); }
.chapo { font-size: clamp(1.08rem, 2vw, 1.25rem); }

.section { padding: clamp(44px, 7vw, 84px) 0; }
.section.fond { background: var(--sable); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .deux { grid-template-columns: 1fr; } }
.ligne-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.note { color: var(--doux); margin-top: 1.6em; max-width: 72ch; }
.vide { text-align: center; color: var(--doux); }

/* Chiffres clés (compteurs animés) */
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.chiffres p { margin: 0; color: var(--doux); font-size: .98rem; }
.chiffre { font-size: 3.2rem !important; line-height: 1 !important; font-weight: 700; color: var(--brun) !important; margin-bottom: 6px !important; font-variant-numeric: tabular-nums; }

.citation { margin: 0; padding: 32px; background: var(--noir); color: var(--ivoire); border-radius: var(--rayon); }
.citation blockquote { font-size: 1.45rem; line-height: 1.4; border: 0; background: none; padding: 0; margin-bottom: 14px; color: var(--ivoire); }
.citation figcaption { color: var(--or); font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* Bandeau défilant des thèmes */
.bandeau-defilant { background: var(--noir); color: var(--ivoire); overflow: hidden; padding: 16px 0; border-block: 1px solid #3a332c; }
.defile-piste { display: flex; width: max-content; animation: defile 60s linear infinite; }
.bandeau-defilant:hover .defile-piste { animation-play-state: paused; }
.defile-groupe { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-size: 1.05rem; }
.defile-groupe .pave { margin: 0; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Cartes */
.cartes { display: grid; gap: 20px; margin-top: 8px; }
.trois-col { grid-template-columns: repeat(3, 1fr); }
.quatre-col { grid-template-columns: repeat(4, 1fr); }
.deux-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .trois-col, .quatre-col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .trois-col, .quatre-col, .deux-col { grid-template-columns: 1fr; } }
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.section.fond .carte { border-color: #e2d6bf; }
.carte > :last-child { margin-bottom: 0; }
.liens .carte, a.carte { text-decoration: none; color: var(--texte); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.liens .carte:hover, a.carte:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(33,29,26,.45); border-color: var(--or); color: var(--texte); }
.liens .suite { margin-top: auto; padding-top: 8px; }
.etape .num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--or-fonce); margin-bottom: 10px; }
.chapitre h2 { font-size: 1.8rem; }
.chapitre.vide { border-style: dashed; background: transparent; text-align: left; }

/* Articles : à la une, étagère, grille */
.une { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; text-decoration: none; color: var(--texte); margin-bottom: 48px; }
.une h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.une:hover h2 { color: var(--brun); }
.une .vignette { aspect-ratio: 16/10; border-radius: var(--rayon); }
@media (max-width: 820px) { .une { grid-template-columns: 1fr; } }
.vignette { position: relative; overflow: hidden; background: var(--sable); aspect-ratio: 16/9; border-radius: var(--rayon) var(--rayon) 0 0; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s, opacity .4s; }
a:hover .vignette img { transform: scale(1.04); }
.vignette.motif { display: grid; place-items: center; background: var(--noir) radial-gradient(circle at 30% 20%, rgba(217,174,102,.25), transparent 60%); }
.vignette.motif span { font-size: 3.4rem; font-weight: 700; color: var(--or); }
.article { padding: 0; overflow: hidden; }
.article-texte { padding: 18px 20px 20px; }
.article h3 { font-size: 1.15rem; margin-bottom: .4em; color: var(--noir-2); }
.article p { font-size: .96rem; margin: 0; color: var(--doux); }
.meta-article { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--or-fonce) !important; font-weight: 700; margin-bottom: .5em !important; }
.etagere-l { margin-top: 8px; }
.etagere-boutons { display: flex; gap: 8px; }
.etagere { display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 80%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.etagere > * { scroll-snap-align: start; }
.grille-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.puces-filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.puces-filtres a { text-decoration: none; padding: .45em 1em; border: 1.5px solid var(--trait); border-radius: 999px; font-size: .92rem; color: var(--noir-2); transition: background .2s; }
.puces-filtres a:hover { border-color: var(--or); }
.puces-filtres a[aria-current="page"] { background: var(--noir-2); border-color: var(--noir-2); color: var(--ivoire); }

/* Écran squelette : reflet tant que l'image n'est pas chargée */
.squelette { background: linear-gradient(100deg, var(--sable) 30%, var(--sable-2) 50%, var(--sable) 70%); background-size: 300% 100%; animation: reflet 1.4s ease-in-out infinite; }
.squelette img { opacity: 0; }
.squelette.charge { animation: none; background: var(--sable); }
.squelette.charge img { opacity: 1; }
@keyframes reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Article */
.article-tete h1 { max-width: none; }
.texte-article { font-size: 1.1rem; }
.texte-article h2, .texte-article h3 { color: var(--brun); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; margin-top: 1.8em; }
.texte-article figure { margin: 1.6em 0; }
.texte-article figure img { border-radius: var(--rayon); display: block; margin-inline: auto; }
.texte-article figcaption { text-align: center; color: var(--doux); font-size: .9rem; margin-top: 8px; }
.progression-lecture { position: sticky; top: 70px; height: 3px; background: var(--or); transform-origin: 0 50%; transform: scaleX(0); z-index: 15; }
.reaction { border-left: 3px solid var(--or); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.ok-note { color: var(--ok); font-weight: 700; }

.abonnement { background: var(--noir); color: var(--ivoire); }
.abonnement .titre-section { color: var(--or); }
.abonnement p { color: var(--ivoire); }
.abonnement-l { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.abonnement-form { display: flex; gap: 10px; flex-wrap: wrap; }
.abonnement-form input { font: inherit; padding: .7em 1em; border-radius: 999px; border: 1.5px solid var(--beige); background: transparent; color: var(--ivoire); min-width: 260px; }
.abonnement-form input::placeholder { color: var(--beige); }

/* La charte : cartes qui se retournent */
.principes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .principes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principes { grid-template-columns: 1fr; } }
.retourne { position: relative; display: block; width: 100%; min-height: 250px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; font: inherit; text-align: left; }
.recto, .verso { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px; border-radius: var(--rayon); backface-visibility: hidden; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.recto { background: var(--noir); color: var(--ivoire); }
.verso { background: var(--sable); color: var(--texte); transform: rotateY(180deg); border: 1px solid var(--trait); font-size: 1.02rem; }
.retourne[aria-pressed="true"] .recto { transform: rotateY(-180deg); }
.retourne[aria-pressed="true"] .verso { transform: rotateY(0); }
@media (hover: hover) { .retourne:hover .recto { transform: rotateY(-180deg); } .retourne:hover .verso { transform: rotateY(0); } }
.recto .num, .verso .num { font-size: 2.6rem; font-weight: 700; color: var(--or); line-height: 1; margin-bottom: 14px; }
.verso .num { font-size: 1.3rem; color: var(--or-fonce); }
.recto .titre { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.recto .indice { margin-top: auto; color: var(--or); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Les soirées : récit au défilement */
.recit { display: grid; grid-template-columns: 340px 1fr; gap: 56px; }
.recit-visuel { position: sticky; top: 110px; align-self: start; }
.horloge { position: relative; width: 100%; max-width: 300px; margin-inline: auto; text-align: center; }
.horloge svg { width: 100%; transform: rotate(-90deg); }
.horloge-fond { fill: none; stroke: var(--sable); stroke-width: 9; }
.horloge-arc { fill: none; stroke: var(--or); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 135; stroke-dashoffset: 135; transition: stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1); }
.horloge-heure { position: absolute; inset: 38% 0 auto; margin: 0; font-size: 2.6rem; font-weight: 700; color: var(--noir-2); font-variant-numeric: tabular-nums; }
.horloge-duree { position: absolute; inset: 60% 0 auto; margin: 0; color: var(--doux); font-size: .95rem; }
.recit-etapes { list-style: none; padding: 0; margin: 0; }
.recit-etape { min-height: 52vh; padding: 28px 0 28px 26px; border-left: 3px solid var(--trait); opacity: .38; transition: opacity .5s, border-color .5s; }
.recit-etape.active { opacity: 1; border-color: var(--or); }
.recit-etape .sur { color: var(--or-fonce); }
@media (max-width: 820px) {
  .recit { grid-template-columns: 1fr; gap: 0; }
  .recit-visuel { top: 66px; z-index: 5; background: var(--blanc); padding: 8px 0; border-bottom: 1px solid var(--trait); }
  .horloge { max-width: 150px; } .horloge-heure { font-size: 1.4rem; } .horloge-duree { font-size: .75rem; }
  .recit-etape { min-height: 42vh; }
}

/* Frise de l'année */
.frise { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; text-align: center; font-size: .78rem; color: var(--doux); }
.frise li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.frise .pave { width: 100%; height: 28px; margin: 0; border-radius: 4px; transform-origin: bottom; }
.frise .pave.rouge { border-radius: 4px; }
@media (max-width: 560px) { .frise { grid-template-columns: repeat(5, 1fr); row-gap: 14px; } }

/* Les thèmes */
.terrains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.terrains li { border-top: 3px solid var(--noir-2); padding-top: 16px; }
.terrains .num { font-size: 1.6rem; font-weight: 700; color: var(--or-fonce); }
.terrains h2 { font-size: 1.15rem; margin: 8px 0; text-transform: uppercase; letter-spacing: .03em; color: var(--brun); }
.terrains p { font-size: .96rem; margin: 0; }
@media (max-width: 960px) { .terrains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .terrains { grid-template-columns: 1fr; } }
details.accordeon { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 10px; overflow: hidden; }
details.accordeon summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; color: var(--noir-2); }
details.accordeon summary::-webkit-details-marker { display: none; }
details.accordeon summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--or-fonce); transition: transform .3s; }
details.accordeon[open] summary::after { transform: rotate(45deg); }
details.accordeon .compte { font-size: .8rem; color: var(--doux); font-weight: 400; }
details.accordeon > :not(summary) { padding: 0 20px 16px; }
.accordeon-corps { overflow: hidden; transition: height .35s ease; }

/* Appel */
.appel { background: var(--sable); padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--trait); }
.appel-l { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.appel h2 { color: var(--noir-2); margin-bottom: .2em; }
.appel p { margin: 0; }

/* Formulaires */
.formulaire label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 16px; color: var(--noir-2); }
.formulaire input:not([type=radio]):not([type=checkbox]):not([type=file]), .formulaire textarea, .formulaire select, .filtres input, .filtres select, .en-ligne select, .filtre-direct {
  display: block; width: 100%; margin-top: 6px; font: 400 1rem/1.45 var(--police); color: var(--texte); background: var(--blanc);
  border: 1.5px solid var(--trait); border-radius: 8px; padding: .65em .8em; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus, .filtre-direct:focus { border-color: var(--or); outline: none; }
.formulaire textarea { resize: vertical; }
.formulaire label.case, label.case { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.choix { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.choix legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; color: var(--noir-2); }
.choix label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; padding: .5em .9em; border: 1.5px solid var(--trait); border-radius: 999px; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--noir-2); background: var(--sable); }
.choix input, input[type=checkbox] { accent-color: var(--brun); margin: 0; }
.aide { font-weight: 400; color: var(--doux); font-size: .88rem; }
.aide.bloc { display: block; margin-bottom: 16px; }
.aide-forme { margin: -6px 0 16px; font-size: .88rem; color: var(--doux); }
.aide-forme summary { cursor: pointer; }
.rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-l { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 820px) { .formulaire-l { grid-template-columns: 1fr; } }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.flash.ok { border-color: var(--ok); color: var(--ok); background: #f1f6ef; }
.flash.ko { border-color: var(--rouge); color: var(--rouge); background: #fbf0ee; }
.connexion { max-width: 520px; margin-inline: auto; }
.ou { display: flex; align-items: center; gap: 12px; color: var(--doux); margin: 18px 0; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.demo { border-top: 1px dashed var(--trait); margin-top: 24px; padding-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* Notification éphémère */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 40; background: var(--noir-2); color: var(--ivoire); padding: 14px 22px; border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); max-width: min(560px, 92vw); transition: transform .45s cubic-bezier(.2,.8,.2,1); border-left: 4px solid var(--or); }
.toast.ko { border-left-color: var(--rouge); }
.toast.visible { transform: translate(-50%, 0); }

/* Pied */
.pied { background: var(--noir); color: var(--beige); padding: 40px 0; font-size: .92rem; }
.pied-l { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pied-marque { display: flex; gap: 14px; align-items: flex-start; }
.pied b { color: var(--ivoire); letter-spacing: .08em; text-transform: uppercase; }
.pied p { margin: 0; }
.pied a { color: var(--beige); text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied.mince { padding: 20px 0; margin-top: 56px; }

/* ---------- Espace connecté ---------- */
.espace .entete { position: static; }
.qui { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.sous-entete { background: var(--noir-2); }
.onglets { display: flex; gap: 2px 22px; flex-wrap: wrap; font-size: .95rem; }
.onglets a { text-decoration: none; padding: 11px 0; color: var(--beige); }
.onglets a:hover { color: var(--ivoire); }
.onglets a[aria-current="page"] { color: var(--ivoire); box-shadow: inset 0 -3px var(--or); font-weight: 700; }
.contenu-espace { padding-top: 34px; }
.contenu-espace h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.carte h2 { font-size: 1.25rem; }
.etiquette { display: inline-block; font: 700 .7rem/1 var(--police); letter-spacing: .07em; text-transform: uppercase; padding: .45em .7em; border-radius: 999px;
  border: 1px solid var(--trait); color: var(--doux); background: var(--blanc); text-decoration: none; vertical-align: middle; }
.etiquette.or { border-color: var(--or); color: var(--or-fonce); }
.etiquette.rouge { border-color: var(--rouge); color: var(--rouge); }
.etiquette.clair { background: transparent; border-color: #5a5047; color: var(--ivoire); }
.type-fiche { border-color: var(--noir-2); color: var(--noir-2); }
.type-question { border-color: var(--rouge); color: var(--rouge); }
.type-compte_rendu { border-color: var(--brun); color: var(--blanc); background: var(--brun); }
.type-annonce, .type-ressource { border-color: var(--or); color: var(--or-fonce); }
.grille-accueil { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; margin-top: 12px; }
.bloc h2 a { color: var(--noir-2); text-decoration: none; }
.liste-courte { list-style: none; padding: 0; margin: 0 0 1em; }
.liste-courte li { padding: 8px 0; border-top: 1px solid var(--trait); }
.prochaine .pave { margin-right: .35em; }
.prochaine.encart { background: var(--sable); border-radius: var(--rayon); padding: 12px 16px; }
.sous-onglets { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 22px; }
.sous-onglets a { text-decoration: none; padding: .5em 1em; border: 1.5px solid var(--trait); border-radius: 999px; font-size: .92rem; color: var(--noir-2); }
.sous-onglets a[aria-current="page"] { border-color: var(--noir-2); background: var(--noir-2); color: var(--ivoire); }
.sous-onglets .gerer { margin-left: auto; border-style: dashed; }
.barre-outils { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtres select, .filtres input { width: auto; margin: 0; padding: .5em .7em; font-size: .92rem; }
.filtres input { min-width: 220px; }
.filtre-direct { max-width: 460px; margin-bottom: 18px; }
.fil { display: grid; gap: 14px; }
.publication h2 { font-size: 1.25rem; margin: .3em 0; }
.publication h2 a { text-decoration: none; color: var(--noir-2); }
.publication.epinglee { border-color: var(--or); background: var(--sable-2); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--doux); font-size: .88rem; margin-bottom: .4em; }
.publication-entiere { max-width: 840px; }
.section-fiche { border-top: 1px solid var(--trait); padding-top: 16px; margin-top: 16px; }
.section-fiche h2 { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brun); }
.section-fiche figure { margin: 1em 0; }
.pieces { padding-left: 1.1em; }
.commentaires { max-width: 840px; margin-top: 30px; }
.commentaire { border-left: 3px solid var(--trait); padding: 4px 0 4px 16px; margin-bottom: 16px; }
.fil-ariane { margin-bottom: 12px; font-size: .92rem; }
.fil-ariane a { text-decoration: none; }
.formulaire.large { max-width: 860px; }
.deux-col-espace { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.frise-seances { list-style: none; padding: 0 0 0 18px; margin: 0 0 1em; border-left: 2px solid var(--or); }
.frise-seances li { position: relative; padding: 8px 0 12px; }
.frise-seances li::before { content: ""; position: absolute; left: -25px; top: 14px; width: 12px; height: 12px; border-radius: 3px; background: var(--or); }
.frise-seances.passees { border-color: var(--trait); opacity: .7; }
.frise-seances.passees li::before { background: var(--beige); }
.membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 24px; }
.membre h2 { font-size: 1.15rem; }
.membre dl { margin: 0; font-size: .92rem; }
.membre dt { font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brun); margin-top: 10px; }
.membre dd { margin: 2px 0 0; }
.membre dd p { margin: 0; }
.membre form { display: block; margin-top: 14px; }
.membre select, .tableau select { display: inline-block; width: auto; margin: 0 6px 0 0; padding: .3em .5em; font-size: .88rem; }
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; }
.veille-cat h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 1.4em; }
.veille-cat h2::before { content: ""; width: .55em; height: .55em; border-radius: 2px; background: currentColor; }
.epingle { position: sticky; top: 0; background: var(--blanc); padding: 10px 0; z-index: 3; }
.nouvelle { padding: 0; border-left: 4px solid currentColor; }
.nouvelle summary { gap: 14px; align-items: baseline; }
.nouvelle .date { font: .82rem ui-monospace, Consolas, monospace; color: var(--doux); min-width: 60px; font-weight: 400; }
.nouvelle .titre { color: var(--noir-2); }
.nouvelle > div, .nouvelle > form { padding: 0 20px 16px 94px; color: var(--texte); }
.nouvelle .source a { font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .nouvelle > div, .nouvelle > form { padding-left: 20px; } }
.cat-modeles { color: #5C4326; } .cat-outils { color: #7A5A2B; } .cat-usages { color: #8A6A2E; } .cat-reglement { color: #6B5B3A; }
.cat-securite { color: #A6423B; } .cat-sciences { color: #4F5D3A; } .cat-regards { color: #6B2E3A; }
.intro { margin-bottom: 18px; background: var(--sable); }
.message.non-lu { border-color: var(--or); }
.defile { overflow-x: auto; margin-bottom: 20px; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--blanc); border: 1px solid var(--trait); }
.tableau th, .tableau td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brun); background: var(--sable); }
.tableau tr.inactif { opacity: .5; }
.tableau .roles { display: flex; flex-direction: column; gap: 4px; }
.tableau .roles label { margin: 0; }
.erreur { max-width: 560px; margin: 24px auto; }

/* ---------- Apparition au défilement (activée par anim.js seulement) ---------- */
.anime .apparait { opacity: 0; transform: translateY(26px); transition: opacity var(--duree) ease, transform var(--duree) cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.anime .apparait.vu { opacity: 1; transform: none; }
.anime .frise .pave { transform: scaleY(0); transition: transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.anime .frise.vu .pave { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anime .apparait, .anime .frise .pave { opacity: 1; transform: none; transition: none; }
  .defile-piste { animation: none; flex-wrap: wrap; width: auto; }
  .recto, .verso, .horloge-arc, .toast { transition: none; }
  .squelette { animation: none; }
}
