/* dysmoitout.org : feuille propre au site, 14 octobre 2026.
   Lecture d abord : Andika pour le texte (dessinee pour l apprentissage de la
   lecture), Lexend pour les titres, colonne etroite, interligne large, jamais
   de texte justifie. Le motif : la page de cahier, papier creme et marge rouge. */

:root {
  --papier: #fbf8f1;
  --papier-2: #f3eee2;
  --encre: #26313b;
  --encre-douce: #56616b;
  --bleu: #2c5a87;
  --bleu-fonce: #1f4266;
  --marge: #d6604b;
  --filet: #e3dccb;
  --carreau: rgba(44, 90, 135, .07);
  --blanc: #fffdf8;

  --sauge: #dcebdc;   --sauge-f: #2f6b45;
  --abricot: #fbe2cb; --abricot-f: #a5521c;
  --lavande: #e5e0f4; --lavande-f: #54469a;
  --ciel: #dbeaf6;    --ciel-f: #245f93;
  --beurre: #f6ecc2;  --beurre-f: #7a5c0c;
  --rose: #f6dce3;    --rose-f: #9a3c56;

  --titre: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --texte: 'Andika', 'Verdana', system-ui, sans-serif;
  --corps: 1.125rem;
  --interligne: 1.75;
  --col: 44rem;
  --large: 72rem;
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 var(--corps)/var(--interligne) var(--texte);
  text-align: left;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--bleu-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marge); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.25; color: var(--encre); letter-spacing: -.01em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* le reglage « confort de lecture » : plus grand, plus espace */
html.confort { --corps: 1.3rem; --interligne: 1.95; }
html.confort .corps, html.confort .fiche__d, html.confort .ligne p { letter-spacing: .04em; word-spacing: .14em; }

.largeur { width: min(100% - 2rem, var(--large)); margin-inline: auto; }
.etroit { max-width: var(--col); }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--blanc); padding: .5rem 1rem; }

/* ---------------------------------------------------------------- en-tete */
.marge-haut { background: var(--bleu-fonce); color: #e9eef4; font-size: .9rem; }
.marge-haut__z { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.5rem; }
.confort-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .85rem/1 var(--titre); color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: .35rem .8rem; cursor: pointer;
}
.confort-btn svg { width: 1.4em; }
.confort-btn[aria-pressed="true"] { background: #fff; color: var(--bleu-fonce); }

.bandeau { background: var(--blanc); border-bottom: 1px solid var(--filet); }
.bandeau__z { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0 .75rem; }
.marque { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--encre); }
.marque img { border-radius: 10px; }
.marque__nom { font: 700 1.6rem/1 var(--titre); letter-spacing: -.02em; margin: 0; }
.marque__nom b { color: var(--marge); font-weight: 700; }
.chercher { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--encre); background: var(--papier-2); }
.chercher:hover { background: var(--filet); color: var(--encre); }

/* les rubriques en onglets de classeur, poses sur le haut de la page */
.onglets { overflow-x: auto; scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets__z { display: flex; gap: .35rem; align-items: flex-end; }
.onglet {
  flex: none; padding: .55rem 1rem .45rem; border-radius: 10px 10px 0 0;
  font: 600 .95rem/1.2 var(--titre); text-decoration: none; color: var(--encre);
  background: var(--fond); border: 1px solid var(--filet); border-bottom: 0;
  transform: translateY(1px); transition: padding .15s;
}
.onglet:hover { color: var(--encre); padding-bottom: .65rem; }
.onglet.est-ici { padding-bottom: .7rem; box-shadow: inset 0 3px 0 var(--fort); }

.t-sauge { --fond: var(--sauge); --fort: var(--sauge-f); }
.t-abricot { --fond: var(--abricot); --fort: var(--abricot-f); }
.t-lavande { --fond: var(--lavande); --fort: var(--lavande-f); }
.t-ciel { --fond: var(--ciel); --fort: var(--ciel-f); }
.t-beurre { --fond: var(--beurre); --fort: var(--beurre-f); }
.t-rose { --fond: var(--rose); --fort: var(--rose-f); }
.t-papier { --fond: var(--papier-2); --fort: var(--bleu); }

.pastille {
  display: inline-block; font: 600 .8rem/1 var(--titre); letter-spacing: .02em;
  padding: .4rem .65rem; border-radius: 999px; background: var(--fond); color: var(--fort);
  text-decoration: none;
}
a.pastille:hover { color: var(--fort); box-shadow: inset 0 0 0 1.5px var(--fort); }

.ariane { font-size: .88rem; color: var(--encre-douce); padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ariane a { color: var(--encre-douce); }
.ariane span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.ariane__sep { color: var(--marge); }

.titre-section { font: 700 1.35rem/1.3 var(--titre); margin: 0 0 1.25rem; display: flex; align-items: center; gap: .75rem; }
.titre-section::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--filet) 0 8px, transparent 8px 14px); }

/* ---------------------------------------------------------------- accueil */
.ouverture { padding: 3rem 0 2rem; max-width: 46rem; margin-left: max(1rem, (100% - var(--large)) / 2); }
.ouverture h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); margin: 0 0 1rem; }
.ouverture h1::after { content: ""; display: block; width: 4.5rem; height: 5px; border-radius: 3px; background: var(--marge); margin-top: 1rem; }
.ouverture p { font-size: 1.2rem; color: var(--encre-douce); margin: 0; }

.depart { margin-block: 1.5rem 3.5rem; }
.depart__grille { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.porte {
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
  padding: 1.3rem 1.4rem; border-radius: var(--rayon); background: var(--fond);
  color: var(--encre); text-decoration: none; border: 1px solid transparent;
  transition: transform .15s, border-color .15s;
}
.porte:hover { color: var(--encre); transform: translateY(-2px); border-color: var(--fort); }
.porte__nom { font: 700 1.3rem/1.2 var(--titre); color: var(--fort); }
.porte__d { font-size: 1rem; line-height: 1.55; flex: 1; }
.porte__n { display: inline-flex; align-items: center; gap: .35rem; font: 600 .9rem/1 var(--titre); color: var(--fort); }

.nouveau { margin-bottom: 3.5rem; }

/* la liste de tous les guides, comme une page de cahier : marge rouge, date dans la marge */
.cahier { margin-bottom: 4rem; }
.cahier__liste {
  list-style: none; margin: 0; padding: 0; border-radius: var(--rayon);
  background:
    linear-gradient(90deg, transparent calc(7.5rem - 1px), var(--marge) calc(7.5rem - 1px), var(--marge) calc(7.5rem + 1px), transparent calc(7.5rem + 1px)),
    var(--blanc);
  border: 1px solid var(--filet);
}
.ligne { display: grid; grid-template-columns: 7.5rem 1fr; border-bottom: 1px solid var(--carreau); }
.ligne:last-child { border-bottom: 0; }
.ligne__date { padding: 1.2rem .9rem 0 1rem; font: 600 .85rem/1.3 var(--titre); color: var(--encre-douce); }
.ligne__c { padding: 1.1rem 1.4rem 1.2rem; }
.ligne__t { display: block; margin: .5rem 0 .3rem; font: 600 1.15rem/1.35 var(--titre); color: var(--encre); text-decoration: none; }
.ligne__t:hover { color: var(--bleu); text-decoration: underline; }
.ligne p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--encre-douce); }

/* ---------------------------------------------------------------- cartes */
.grille3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); margin-bottom: 3rem; }
.fiche { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.fiche__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fiche__c { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.fiche__c .pastille { align-self: flex-start; }
.fiche__t { font-size: 1.12rem; margin: 0; flex: 1; }
.fiche__t a { color: var(--encre); text-decoration: none; }
.fiche__t a:hover { color: var(--bleu); text-decoration: underline; }
.fiche__m { margin: 0; font-size: .88rem; color: var(--encre-douce); }
.fiche__d { margin: 0; color: var(--encre-douce); }
.fiche--grande { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .fiche--grande { grid-template-columns: 1.15fr 1fr; }
  .fiche--grande .fiche__img img { height: 100%; aspect-ratio: auto; min-height: 20rem; }
  .fiche--grande .fiche__c { padding: 2rem 2.2rem; justify-content: center; }
  .fiche--grande .fiche__t { font-size: 1.6rem; flex: none; }
}

/* ---------------------------------------------------------------- article */
.lecture__tete { background: var(--fond); padding-bottom: 2.2rem; border-bottom: 3px solid var(--fort); }
.lecture__tete .ariane a, .lecture__tete .ariane { color: var(--encre); }
.lecture__tete-z { max-width: 52rem; margin-left: max(1rem, (100% - var(--large)) / 2); padding-top: 1.6rem; }
.lecture__tete .pastille { background: var(--blanc); }
.lecture__tete h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.75rem); margin: .9rem 0 .9rem; }
.lecture__infos { margin: 0; font-size: .95rem; color: var(--encre); }
.lecture__infos a { color: var(--encre); }

.lecture__grille { display: grid; gap: 3rem; padding-top: 2rem; }
@media (min-width: 1000px) { .lecture__grille { grid-template-columns: minmax(0, var(--col)) 17rem; justify-content: space-between; } }
.lecture__col { min-width: 0; }
.lecture__img { margin: 0 0 1.75rem; }
.lecture__img img { border-radius: var(--rayon); width: 100%; }

.plan { font-family: var(--titre); }
.plan ol { list-style: none; margin: 0; padding: 0; counter-reset: plan; }
.plan li { margin: 0; }
.plan li.n2 { counter-increment: plan; }
.plan a { display: block; padding: .4rem 0; color: var(--encre); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.plan li.n2 > a::before { content: counter(plan) ". "; color: var(--marge); font-weight: 700; }
.plan li.n3 a { padding-left: 1.3rem; font-size: .85rem; color: var(--encre-douce); }
.plan a:hover { color: var(--bleu); text-decoration: underline; }
.plan--mobile { border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--blanc); padding: .9rem 1.2rem; margin-bottom: 2rem; }
.plan--mobile summary { cursor: pointer; font-weight: 600; }
.plan--cote { display: none; }
@media (min-width: 1000px) {
  .plan--mobile { display: none; }
  .plan--cote { display: block; position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow: auto; padding-left: 1.2rem; border-left: 2px solid var(--marge); }
  .plan__t { font-weight: 700; margin: 0 0 .5rem; }
}

/* le texte lui-meme */
.corps { max-width: var(--col); }
.corps > * { margin-block: 0 1.1em; }
.corps h2 { font-size: 1.6rem; margin: 2.4em 0 .7em; padding-left: .9rem; border-left: 5px solid var(--marge); }
.corps h3 { font-size: 1.25rem; margin: 1.9em 0 .5em; }
.corps strong { font-weight: 700; color: #1b242c; }
.corps ul, .corps ol { padding-left: 1.4rem; }
.corps li { margin-bottom: .45em; }
.corps li::marker { color: var(--marge); }
.corps .maj { font-size: .95rem; color: var(--encre-douce); }
.corps .bref {
  background: #fdf3c7; border-radius: 4px 4px 18px 4px; padding: 1.2rem 1.4rem;
  box-shadow: 0 1px 0 #e9dca3, 4px 6px 0 rgba(0, 0, 0, .04); margin-block: 1.5em 2em;
}
.corps .bref p { margin: 0; }
.corps .note {
  font-size: .98rem; line-height: 1.65; background: var(--blanc); border: 1px dashed var(--encre-douce);
  border-radius: var(--rayon); padding: 1rem 1.2rem; color: var(--encre-douce);
}
.corps table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.5; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; display: block; overflow-x: auto; }
.corps th { font-family: var(--titre); font-weight: 600; background: var(--ciel); text-align: left; }
.corps th, .corps td { padding: .7rem .9rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
.corps tr:last-child td { border-bottom: 0; }
.corps blockquote { margin-inline: 0; padding-left: 1.2rem; border-left: 3px solid var(--bleu); color: var(--encre-douce); }
.corps .bouton { display: inline-block; background: var(--bleu); color: #fff; padding: .8rem 1.2rem; border-radius: 10px; text-decoration: none; font-family: var(--titre); font-weight: 600; }
.corps .bouton:hover { background: var(--bleu-fonce); color: #fff; }

.apres { border-top: 2px dashed var(--filet); margin-top: 2.5rem; padding-top: 1.5rem; }
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--titre); font-size: .9rem; }
.partage span { font-weight: 600; margin-right: .3rem; }
.partage a, .partage button {
  font: 600 .85rem/1 var(--titre); padding: .55rem .85rem; border-radius: 999px;
  border: 1px solid var(--filet); background: var(--blanc); color: var(--encre); text-decoration: none; cursor: pointer;
}
.partage a:hover, .partage button:hover { border-color: var(--bleu); color: var(--bleu); }
.signe { font-size: .98rem; color: var(--encre-douce); }

.voisins { margin-top: 3.5rem; }

/* ---------------------------------------------------------------- rubrique, pages */
.rayon-tete { background: var(--fond); border-bottom: 3px solid var(--fort); padding-bottom: 2.2rem; margin-bottom: 2.5rem; }
.rayon-tete h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 2.9rem); margin: 1.4rem 0 .6rem; color: var(--fort); }
.rayon-tete p { max-width: 42rem; margin: 0; font-size: 1.12rem; }
.rayon-tete__n { margin-top: .9rem !important; font: 600 .9rem/1 var(--titre); color: var(--fort); }
.autres { margin-bottom: 3rem; }
.autres ul, .introuvable ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }

.lecture--fixe h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin: 1.4rem 0 1.5rem; }
.lecture--fixe .largeur { padding-bottom: 3rem; }
.ecrire { background: var(--ciel); border-radius: var(--rayon); padding: 1rem 1.2rem; }

.recherche, .introuvable { padding-block: 2rem 4rem; }
.recherche__f label { display: block; font-family: var(--titre); font-weight: 600; margin-bottom: .4rem; }
.recherche__f div { display: flex; gap: .5rem; }
.recherche__f input { flex: 1; font: inherit; padding: .7rem 1rem; border: 2px solid var(--filet); border-radius: 10px; background: var(--blanc); }
.recherche__f input:focus { border-color: var(--bleu); outline: 0; }
.recherche__f button { font: 600 1rem/1 var(--titre); padding: 0 1.2rem; border: 0; border-radius: 10px; background: var(--bleu); color: #fff; cursor: pointer; }
.recherche__res { padding-left: 1.2rem; }
.recherche__res li { margin-bottom: 1.2rem; }
.recherche__res a { font-family: var(--titre); font-weight: 600; }
.recherche__res p { margin: .2rem 0 0; color: var(--encre-douce); font-size: 1rem; }

/* ---------------------------------------------------------------- pied */
.pied { background: var(--encre); color: #d9dee3; margin-top: 2rem; font-size: 1rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied__z { display: grid; gap: 2rem; padding: 3rem 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pied__z { grid-template-columns: 2fr 1fr 1fr; } }
.pied .marque__nom { color: #fff; margin-bottom: .8rem; }
.pied__marque p:not(.marque__nom) { margin: 0; line-height: 1.65; max-width: 30rem; }
.pied__t { font: 700 .85rem/1 var(--titre); text-transform: uppercase; letter-spacing: .08em; color: #f0a597; margin: 0 0 .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .45rem; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0 1.6rem; margin-top: 0; font-size: .88rem; color: #aeb7bf; }

@media (max-width: 640px) {
  .marge-haut__z > span { display: none; }
  .marge-haut__z { justify-content: flex-end; }
  .ligne { grid-template-columns: 1fr; }
  .cahier__liste { background: var(--blanc); border-left: 4px solid var(--marge); }
  .ligne__date { padding: 1rem 1.2rem 0; }
  .ligne__c { padding-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.cahier__suite { margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: 1rem; color: var(--encre-douce); }
body { overflow-wrap: break-word; }
