/* La Cédille — feuille de style du site
   Couleurs et polices : charte graphique « La Cédille — Identité graphique ». */

@font-face { font-family: "Lora"; src: url("../fonts/lora-variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --papier: #FBF6EC;
  --surface: #FFFDF8;
  --creme: #F6EEDF;
  --encre: #2A2724;
  --gris: #5C5650;
  --gris-doux: #6B6560;
  --filet: #E3DACB;
  --or: #D4A23A;
  --or-ombre: #BF8C2A;
  --or-texte: #8C6516;
  --cp: #597754;  --cp-clair: #E8ECE7;
  --ce: #4D748D;  --ce-clair: #E6ECEF;
  --cm: #A85A39;  --cm-clair: #F3E8E3;
  --c65: #7A61AE; --c65-clair: #ECE9F4;
  --c43: #A0567A; --c43-clair: #F2E7EC;
  --large: 70rem;
  --texte: 41rem;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--sans);
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; height: auto; }
a { color: var(--or-texte); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
strong, b { font-weight: 500; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 3.25rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 0; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--or-ombre); }

.wrap { width: 100%; max-width: var(--large); margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
.etroit { max-width: var(--texte); }

.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: .6rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; }

/* Bandeau « projet » */
.projet { background: var(--encre); color: #EFE7D8; font-size: .875rem; line-height: 1.45; }
.projet .wrap { padding-block: .55rem; display: flex; gap: .6rem; align-items: baseline; }
.projet .pastille { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--or); transform: translateY(-.05rem); }

/* En-tête */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.marque { display: block; width: 10.5rem; line-height: 0; }
.marque img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.nav a { color: var(--encre); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--or-texte); text-decoration: underline; text-decoration-thickness: 2px; }
.jesuis { position: relative; }
.jesuis summary { list-style: none; cursor: pointer; padding: .4rem .9rem; border: 1px solid var(--encre); border-radius: 999px; font-weight: 500; }
.jesuis summary::-webkit-details-marker { display: none; }
.jesuis summary::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2rem) rotate(45deg); }
.jesuis[open] summary::after { transform: translateY(.05rem) rotate(-135deg); }
.jesuis ul { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 5; list-style: none; margin: 0; padding: .5rem; min-width: 17rem; background: var(--surface); border: 1px solid var(--filet); border-radius: .75rem; box-shadow: 0 .75rem 2rem rgba(42, 39, 36, .12); }
.jesuis li a { display: block; padding: .55rem .75rem; border-radius: .5rem; text-decoration: none; color: var(--encre); }
.jesuis li a:hover { background: var(--creme); }
.menu-mobile { display: none; }
.menu-mobile.sep { height: 1px; background: var(--filet); margin: .4rem .5rem; }
@media (max-width: 52rem) {
  .nav .lien { display: none; }
  .menu-mobile { display: block; }
}

/* Accueil : le mot épelé */
.une { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.epele { font-family: var(--serif); font-weight: 600; font-size: clamp(3.2rem, 1rem + 10vw, 8.5rem); line-height: 1; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; margin: 0 0 clamp(1.5rem, 4vw, 2.75rem); color: var(--encre); }
.epele .pt { color: var(--or); padding: 0 .12em; transform: translateY(-.05em); }
.une h1 { max-width: 20ch; }
.une .chapo { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--gris); max-width: 38rem; margin-top: 1.25rem; }

.qui { margin-top: 2.25rem; }
.qui p { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: .8rem; }
.qui ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.qui a { display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--filet); color: var(--encre); text-decoration: none; font-weight: 500; }
.qui a:hover { border-color: var(--encre); background: var(--creme); }

/* Sections */
.bloc { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.bloc + .bloc { border-top: 1px solid var(--filet); }
.bloc.creme { background: var(--creme); border-top: 0; }
.bloc.creme + .bloc { border-top: 0; }
.bloc > .wrap > h2 + p, .titre-bloc p { color: var(--gris); max-width: 40rem; margin-top: .75rem; }
.titre-bloc { margin-bottom: 2rem; }

/* Accueil : le parcours d'une classe */
.parcours { --qc: 11.5rem; --g: 3rem; }
.phase { position: relative; }
.phase::before { content: ""; position: absolute; top: 1.2rem; bottom: 0; left: calc(var(--qc) + var(--g) / 2 - 1px); border-left: 2px solid var(--or); }
.phase.ville::before { border-left-style: dashed; border-color: var(--or-ombre); bottom: 1.5rem; }
.phase-tete, .pas { display: grid; grid-template-columns: var(--qc) minmax(0, 1fr); column-gap: var(--g); }
.phase-tete > div { grid-column: 2; }
.phase-tete { position: relative; padding-bottom: 1.75rem; }
.phase-tete .num { position: absolute; left: calc(var(--qc) + var(--g) / 2 - 1.2rem); top: 0; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--or); color: var(--encre); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; box-shadow: 0 0 0 .4rem var(--creme); }
.phase.ville .num { background: var(--creme); border: 2px dashed var(--or-ombre); color: var(--or-texte); }
.phase-tete h3 { font-size: 1.55rem; padding-top: .15rem; }
.phase-tete p { color: var(--gris); margin-top: .2rem; }
.pas-liste { list-style: none; margin: 0; padding: 0; }
.pas { padding-bottom: 2.25rem; }
.phase:last-child .pas:last-child { padding-bottom: 0; }
.pas .quand { text-align: right; padding-top: .1rem; }
.pas .date { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--or-texte); }
.duree { display: inline-block; margin-top: .45rem; padding: .1rem .65rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--filet); font-size: .8rem; color: var(--gris); white-space: nowrap; }
.pas .corps { position: relative; }
.pas .corps::before { content: ""; position: absolute; left: calc(var(--g) / -2 - .45rem); top: .5rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--or); }
.phase.ville .corps::before { border-style: dashed; border-color: var(--or-ombre); }
.pas h4 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 0 0 .35rem; text-wrap: balance; }
.pas .corps > p { max-width: 40rem; }
@media (min-width: 64rem) {
  .pas .corps { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; column-gap: 2rem; align-items: start; }
  .pas .corps > h4 { grid-column: 1; grid-row: 1; }
  .pas .corps > p { grid-column: 1; grid-row: 2; }
  .pas .corps > .exemple { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; }
}
.exemple { margin-top: .9rem; max-width: 40rem; background: var(--surface); border: 1px solid var(--filet); border-left: 4px solid var(--ce); border-radius: .75rem; padding: .85rem 1.1rem 1rem; font-size: .95rem; line-height: 1.6; display: grid; gap: .5rem; }
.exemple .lab { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ce); }
.exemple em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.phase.ville .exemple { background: transparent; border-style: dashed; border-left-style: solid; border-left-color: var(--or-ombre); }
.phase.ville .exemple .lab { color: var(--or-texte); }

.minutes { display: flex; gap: 2px; border-radius: .5rem; overflow: hidden; font-size: .72rem; line-height: 1.25; }
.minutes span { min-width: 0; padding: .4rem .45rem; background: var(--ce-clair); color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minutes span:nth-child(even) { background: #D3DFE6; }
.minutes b { display: block; font-weight: 500; color: var(--ce); }
.deroule { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .45rem; }
.deroule li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .75rem; }
.deroule .t { font-weight: 500; color: var(--ce); white-space: nowrap; }

.feuille { list-style: none; margin: 0; padding: 0; border: 1px solid var(--filet); border-radius: .5rem; max-width: 22rem; font-size: .9rem; }
.feuille li { display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem 6rem; gap: .5rem; padding: .35rem .75rem; }
.feuille li + li { border-top: 1px solid var(--filet); }
.feuille .sc { text-align: right; font-variant-numeric: tabular-nums; }
.feuille .st { color: var(--gris); }
.feuille .st.q { color: var(--ce); font-weight: 500; }

.dit { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; }
.dit .locuteur { font-weight: 500; color: var(--gris); font-size: .85rem; padding-top: .1rem; }
.nw { white-space: nowrap; }
.parcours-fin { margin-top: 2.5rem; color: var(--gris); max-width: 46rem; }

@media (max-width: 46rem) {
  .parcours { --qc: 0rem; --g: 0rem; }
  .phase::before { left: .85rem; }
  .phase-tete, .pas { display: block; padding-left: 2.75rem; }
  .phase-tete .num { left: -.35rem; }
  .pas .quand { text-align: left; margin-bottom: .35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
  .pas .date { display: inline; }
  .duree { margin-top: 0; }
  .pas { position: relative; }
  .pas .corps::before { display: none; }
  .pas::before { content: ""; position: absolute; left: .45rem; top: .45rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--or); }
  .phase.ville .pas::before { border-style: dashed; border-color: var(--or-ombre); }
  .minutes span { font-size: 0; padding: 0; height: .6rem; }
  .dit { grid-template-columns: 1fr; gap: 0; }
}
@media print { .phase::before, .pas .corps::before { display: none; } .exemple { break-inside: avoid; } }

/* Les trois étapes : une suite */
.etapes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: etape; }
.etapes li { position: relative; padding: 1.5rem 1.4rem 1.6rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--filet); counter-increment: etape; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--or); color: var(--encre); font-family: var(--serif); font-weight: 600; margin-bottom: 1rem; }
.etapes li.ville { background: transparent; border: 2px dashed var(--or-ombre); }
.etapes .quand { font-size: .9rem; color: var(--or-texte); font-weight: 500; margin-bottom: .35rem; }
.etapes li.ville::before { background: transparent; border: 2px dashed var(--or-ombre); color: var(--or-texte); }
.etapes h3 { margin-bottom: .5rem; }
@media (max-width: 48rem) { .etapes { grid-template-columns: 1fr; } }

/* Accueil : genèse et objectifs */
.genese { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.genese .prose { max-width: 40rem; }
.genese .source { font-size: .85rem; color: var(--gris-doux); }
.citation { margin: 0; padding: 1.6rem 1.75rem 1.5rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--filet); border-left: 4px solid var(--or); }
.citation p { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.45; font-style: italic; }
.citation footer { margin-top: 1rem; font-size: .9rem; color: var(--gris); }
@media (max-width: 52rem) { .genese { grid-template-columns: 1fr; gap: 2.25rem; } }
.objectifs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; counter-reset: obj; }
.objectifs li { grid-column: span 2; }
.objectifs li:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 60rem) { .objectifs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .objectifs li, .objectifs li:nth-child(n+4) { grid-column: span 1; } .objectifs li:last-child { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .objectifs { grid-template-columns: 1fr; } }
.objectifs li { counter-increment: obj; background: var(--surface); border: 1px solid var(--filet); border-radius: 1rem; padding: 1.3rem 1.35rem 1.4rem; }
.objectifs li::before { content: counter(obj); display: block; font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--or); margin-bottom: .6rem; }
.objectifs h3 { margin-bottom: .45rem; }
.objectifs p { color: var(--gris); }

/* Catégories */
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cats li { display: grid; grid-template-columns: auto 1fr auto; gap: .25rem 1.25rem; align-items: center; padding: 1rem 1.25rem; border-radius: .9rem; background: var(--surface); border: 1px solid var(--filet); border-left: .6rem solid var(--c); }
.cats .nom { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; min-width: 7.5rem; }
.cats .info { color: var(--gris); font-size: .95rem; }
.cats a { font-weight: 500; white-space: nowrap; }
@media (max-width: 40rem) { .cats li { grid-template-columns: 1fr; } }

/* Calendrier : une suite datée */
.calendrier { list-style: none; margin: 0; padding: 0; position: relative; }
.calendrier li { display: grid; grid-template-columns: 13rem 1fr; gap: .25rem 2rem; padding: 1rem 0; border-top: 1px solid var(--filet); }
.calendrier li:last-child { border-bottom: 1px solid var(--filet); }
.calendrier .date { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--or-texte); }
.calendrier .fort .date { color: var(--encre); }
@media (max-width: 40rem) { .calendrier li { grid-template-columns: 1fr; } }

/* Principes */
.principes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin: 0; padding: 0; list-style: none; }
.principes li { border-top: 3px solid var(--or); padding-top: 1rem; }
.principes h3 { margin-bottom: .45rem; }
.principes p { color: var(--gris); }
@media (max-width: 44rem) { .principes { grid-template-columns: 1fr; } }

/* En-tête de page intérieure */
.tete { padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.75rem, 4vw, 2.75rem); border-bottom: 1px solid var(--filet); }
.tete .pour { font-size: .95rem; color: var(--or-texte); font-weight: 500; margin-bottom: .6rem; }
.tete .chapo { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--gris); max-width: 40rem; margin-top: 1rem; }
.sommaire { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .95rem; padding: 0; list-style: none; }

.contenu { padding-block: 2.5rem 4.5rem; }
.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; align-items: start; }
@media (max-width: 60rem) { .colonnes { grid-template-columns: minmax(0, 1fr); } }
.aside { display: grid; gap: 1rem; }
.aside .docs { gap: .5rem; }
.aside .docs li { grid-template-columns: 1fr; gap: .5rem; padding: .8rem .9rem; }
.aside .docs .t { font-size: .95rem; }
.aside .docs .d { font-size: .82rem; }
.aside .docs .bouton { justify-self: start; padding: .35rem .85rem; font-size: .85rem; }
.encart { background: var(--creme); border-radius: .9rem; padding: 1.25rem 1.3rem; font-size: .95rem; }
.encart h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.encart ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.encart.or { background: var(--surface); border: 1px solid var(--or); }

/* Tableaux */
.tableau { overflow-x: auto; margin-top: 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--filet); }
th { font-weight: 500; background: var(--creme); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Encadrés de règle */
.regle { border-left: 4px solid var(--or); padding: .25rem 0 .25rem 1.1rem; }
.note { font-size: .95rem; color: var(--gris); }
.a-completer { background: #FBE9B7; padding: 0 .25em; border-radius: .2em; }

/* Gestes : je regarde, je cache, j'écris, je vérifie */
.gestes { list-style: none; padding: 0; margin: 1.5rem 0 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: geste; }
.gestes li { background: var(--surface); border: 1px solid var(--filet); border-radius: .9rem; padding: 1rem; text-align: center; counter-increment: geste; }
.gestes img { width: 100%; max-width: 9rem; display: block; margin: 0 auto .5rem; }
.gestes b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.gestes b::before { content: counter(geste) ". "; color: var(--or-texte); }
.gestes span { font-size: .9rem; color: var(--gris); }
@media (max-width: 44rem) { .gestes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Paliers */
.paliers { list-style: none; padding: 0; margin: 1.5rem 0 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.paliers li { text-align: center; padding: 1rem .75rem 1.25rem; border-radius: .9rem; background: var(--surface); border: 1px solid var(--filet); }
.paliers img { width: 6rem; display: block; margin: 0 auto .25rem; }
.paliers b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.paliers span { font-size: .9rem; color: var(--gris); }

/* Listes de mots */
.bandeau-cat { background: var(--c); color: #fff; }
.bandeau-cat .wrap { padding-block: clamp(2rem, 5vw, 3.25rem); }
.bandeau-cat h1 { color: #fff; }
.bandeau-cat p { color: rgba(255, 255, 255, .9); max-width: 42rem; margin-top: .75rem; }
.bandeau-cat .pour { font-weight: 500; margin-bottom: .5rem; color: #fff; }
.outils { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.75rem; }
.bouton { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--encre); color: var(--papier); text-decoration: none; font-weight: 500; border: 0; font: inherit; font-size: .95rem; cursor: pointer; }
.bouton:hover { background: #45403B; color: var(--papier); }
.bouton.clair { background: var(--surface); color: var(--encre); border: 1px solid var(--filet); }
.bouton.clair:hover { background: var(--creme); }
.bandeau-cat .bouton { background: #fff; color: var(--encre); }
.bandeau-cat .bouton.clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.recherche { display: flex; flex-direction: column; gap: .35rem; max-width: 24rem; margin-top: 2rem; }
.recherche label { font-weight: 500; font-size: .95rem; }
.recherche input { font: inherit; padding: .65rem .9rem; border-radius: .6rem; border: 1px solid #CFC8BC; background: var(--surface); color: var(--encre); }
.niveau { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin: 3rem 0 .25rem; }
.niveau h2 { white-space: nowrap; }
.niveau h2 { font-size: 1.6rem; }
.niveau .med { width: 1.4rem; height: 1.4rem; border-radius: 50%; flex: none; }
.niveau .compte { color: var(--gris); font-size: .95rem; }
.semaine { margin-top: 1.75rem; }
.semaine h3 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--gris); margin-bottom: .5rem; }
.semaine h3 span { color: var(--encre); }
.mots { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.mots li { display: grid; grid-template-columns: 2.75rem minmax(9rem, 14rem) minmax(0, 1fr); gap: .2rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.mots .n { font-variant-numeric: tabular-nums; color: var(--gris-doux); font-size: .9rem; }
.mots .m { font-weight: 500; font-size: 1.15rem; }
.mots .m small { display: block; font-weight: 400; font-size: .85rem; color: var(--gris); }
.mots .p { color: var(--gris); }
.mots .p em { display: block; font-style: normal; font-size: .9rem; color: var(--gris-doux); margin-top: .15rem; }
@media (max-width: 40rem) { .mots li { grid-template-columns: 2.5rem 1fr; } .mots .p { grid-column: 2; } }
.vignettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
.vignettes li { background: var(--surface); border: 1px solid var(--filet); border-radius: .9rem; padding: .75rem .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.vignettes img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: var(--cp-clair); border-radius: .6rem; margin-bottom: .4rem; }
.vignettes .n { font-size: .8rem; color: var(--gris-doux); font-variant-numeric: tabular-nums; }
.vignettes .m { font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.vignettes .p { font-size: .85rem; color: var(--gris); line-height: 1.4; }
.vide { margin-top: 1.5rem; color: var(--gris); }

/* Documents */
.docs { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.docs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1.5rem; align-items: center; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--filet); border-radius: .9rem; }
.docs .t { font-weight: 500; }
.docs .d { color: var(--gris); font-size: .92rem; }
.docs a.bouton { white-space: nowrap; }
@media (max-width: 40rem) { .docs li { grid-template-columns: 1fr; } }

/* Autres publics */
.autres { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--filet); }
.autres h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* Pied de page */
.pied { background: var(--encre); color: #D9D1C3; font-size: .92rem; }
.pied .wrap { padding-block: 3rem 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.pied img { width: 11rem; }
.pied h2 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--papier); margin-bottom: .6rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.pied a { color: #F1E6CC; }
.pied a:hover { color: #fff; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid #45403B; padding-top: 1.25rem; color: #B9B0A2; font-size: .85rem; }
@media (max-width: 48rem) { .pied .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

@media print {
  .projet, .entete, .pied, .outils, .recherche, .autres, .aside, .evitement { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .bandeau-cat { background: #fff !important; color: #000; border-bottom: 3pt solid var(--c); }
  .bandeau-cat h1, .bandeau-cat p, .bandeau-cat .pour { color: #000; }
  .colonnes { display: block; }
  .mots li, .vignettes li { break-inside: avoid; }
  .vignettes { grid-template-columns: repeat(4, 1fr); }
  a { color: inherit; text-decoration: none; }
}

/* Accueil : la carte du CP */
.une-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.une-grille h1 { max-width: none; }
.cartes { position: relative; margin: 0; padding-top: 31rem; }
.carte { position: absolute; width: 15.5rem; background: var(--surface); border: 1px solid var(--filet); border-radius: 1rem; padding: 1rem 1.1rem 1.25rem; box-shadow: 0 1.1rem 2.2rem rgba(42, 39, 36, .11); display: flex; flex-direction: column; gap: .6rem; }
.carte .lab { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--gris); }
.carte .pt { width: .6rem; height: .6rem; border-radius: 50%; background: var(--cp); }
.carte img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: var(--cp-clair); border-radius: .6rem; }
.carte .ph { font-size: 1.05rem; line-height: 1.5; }
.carte .trou { display: inline-block; width: 4.2rem; border-bottom: 2px solid var(--encre); transform: translateY(-.2rem); }
.carte.recto { top: 0; left: 0; transform: rotate(-4deg); }
.carte.verso { top: 17.5rem; right: 0; transform: rotate(3.5deg); }
.carte .mot { font-size: 2.6rem; font-weight: 500; line-height: 1.1; margin: .6rem 0 .2rem; }
.carte .pg { color: #C8442F; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.carte .piege, .carte .ret { font-size: .9rem; color: var(--gris); }
.carte .ret { color: var(--or-texte); }
.cartes figcaption { font-size: .85rem; color: var(--gris-doux); max-width: 24rem; }
@media (max-width: 56rem) {
  .une-grille { grid-template-columns: 1fr; }
  .cartes { padding-top: 28.5rem; max-width: 24rem; }
  .carte { width: 13.5rem; }
  .carte.verso { top: 15.5rem; }
}

.prose .calendrier, .encart .docs { padding-left: 0; }
.prose .calendrier li + li { margin-top: 0; }
.prose .sommaire { padding-left: 0; }
.prose .sommaire li + li { margin-top: 0; }
@media (min-width: 60rem) { .vignettes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

.calendrier li.si .date { color: var(--gris); }
.calendrier li.si { border-top-style: dashed; }

/* Page Adaptations */
.profil { border-top: 1px solid var(--filet); padding-top: 1.25rem; margin-top: 1.5rem; }
.profil h3 { margin-bottom: .6rem; }
.profil ul { margin-top: .3rem; }
.prose .sources li + li { margin-top: .5rem; }
.sources { font-size: .95rem; }
