/*
Theme Name: Loutrine
Template: generatepress
Description: Thème enfant de GeneratePress aux couleurs de l'application Loutrine (révisions du CP au CM2).
Version: 3.2
Text Domain: loutrine
*/

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-Regular.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/Baloo2-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/* Couleurs de l'application (lib/core/theme/colors.dart). */
:root {
  --paper: #FDF8F0;
  --surface: #FFFFFF;
  --sand: #FFF1D6;
  --line: #E7D3AA;
  --ink: #0B2545;
  --sole: #081C33;
  --text: #15263D;
  --muted: #4A586C;
  --dusk: #0D2847;
  --river: #17AEEA;
  --river-ink: #0A6591;
  /* Bleu de l'app assombri pour le web : le blanc dessus passe à 5,2:1 en
     haut et 7,4:1 en bas (le ciel #4FC3F7 de l'app ne tenait que 2:1). */
  --sky-top: #0B74A8;
  --sky-bottom: #0A5A86;
  --sky-glow: #2BA3DD;
  --sun: #FFC933;
  --sun-deep: #E0A800;
  --reed: #159A4C;
  --error: #D63031;
  --subject: #0E7FB0;
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; border-radius: 6px; }
a { color: var(--river-ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 2.2em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--ink); }
.lt-ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* GeneratePress : conteneurs */
.site-content .content-area { width: 100%; }
.separate-containers .inside-article,
.one-container .site-content { background: transparent; padding: 0; }
.site-main { margin: 0 !important; }
.inside-article { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px !important; }
.lt-type-hub .inside-article,
.lt-type-level .inside-article,
.lt-type-subject .inside-article,
.lt-type-app .inside-article,
.lt-type-guides .inside-article,
.home .inside-article { max-width: 1080px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 68ch; }
.entry-content ul, .entry-content ol { margin-left: 1.3em; }
.entry-content li + li { margin-top: .3em; }

/* ---------- En-tête du site ---------- */

.site-header { background: var(--dusk); border-bottom: 0; box-shadow: 0 4px 14px rgba(11, 37, 69, .18); }
.inside-header { padding: 10px 20px; max-width: 1160px; }
.lt-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.01em; }
.lt-brand img { width: 36px; height: auto; }
.main-title { margin: 0; line-height: 1; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { color: rgba(255, 255, 255, .88); font-weight: 700; font-size: 1rem; line-height: 52px; padding: 0 14px; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--sun); background: transparent; }
.main-navigation .main-nav ul ul { background: var(--dusk); border-radius: 0 0 12px 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.main-navigation .main-nav ul ul li a { line-height: 1.3; padding: 10px 16px; }
.main-navigation .menu-toggle, .main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { color: #fff; background: transparent; }
.main-navigation .menu-toggle .gp-icon svg { width: 1.4em; height: 1.4em; }
.main-navigation.toggled .main-nav > ul { background: var(--dusk); }

/* ---------- En-tête de page ---------- */

.lt-hero { margin: 0 0 28px; }
.lt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.lt-crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.lt-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.lt-crumbs span[aria-hidden] { color: var(--line); font-weight: 800; }
.lt-crumbs [aria-current] { color: var(--text); }
.lt-title { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); margin: 0 0 14px; }
.lt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: .92rem; text-decoration: none;
}
a.lt-chip:hover { border-color: var(--ink); color: var(--ink); }
.lt-chip--level { background: var(--ink); border-color: var(--ink); color: #fff; }
a.lt-chip--level:hover { color: var(--sun); }
.lt-chip--subject { border-color: var(--subject); color: color-mix(in srgb, var(--subject) 70%, #000); }
.lt-chip--subject .lt-ico { width: 1em; height: 1em; }

/* ---------- Encadrés de leçon ---------- */

.lt-retenir, .entry-content .lt-retenir {
  background: var(--sand);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--sole);
  padding: 18px 22px;
  margin: 1.8em 0;
}
.lt-retenir > :first-child { margin-top: 0; }
.lt-retenir h2, .lt-retenir h3 { font-size: 1.2rem; margin: 0 0 .4em; display: flex; align-items: center; gap: 8px; }
.lt-retenir h2::before, .lt-retenir h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2.5px solid var(--ink); }

.lt-exemple {
  border-left: 0;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.lt-exemple p { margin: 0; }
.lt-big { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 1rem; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--sand); color: var(--ink); font-weight: 800; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content td { font-variant-numeric: tabular-nums; }

.lt-pdf {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 2.4em 0 0; padding: 20px 22px;
  background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--sole);
}
.lt-pdf h2 { margin: 0 0 .2em; font-size: 1.25rem; }
.lt-pdf p { margin: 0; }
.lt-pdf__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sun); border: 2.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); flex: none; }
.lt-pdf__ico .lt-ico { width: 26px; height: 26px; }
.lt-pdf__soon { color: var(--muted); font-size: .95rem; margin-top: .4em !important; }

/* ---------- Boutons ---------- */

.lt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; margin-top: 10px;
  border-radius: 14px; border: 2.5px solid var(--ink);
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 4px 0 var(--sole);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.lt-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sole); }
.lt-btn--sun { background: var(--sun); color: var(--ink); }
.lt-btn--sun:hover { background: #FFD45C; color: var(--ink); }
.lt-btn--ghost { background: var(--surface); color: var(--ink); }

.lt-play {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 18px 6px 14px;
  background: var(--ink); color: #fff; border-radius: 14px;
  text-decoration: none; font-weight: 800; font-size: 1.15rem; line-height: 1.05;
}
.lt-play small { display: block; font-size: .72rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.lt-play .lt-ico { width: 22px; height: 22px; fill: var(--sun); stroke: var(--sun); }
a.lt-play:hover { color: var(--sun); }
span.lt-play { cursor: default; }
.lt-link { font-weight: 800; }

/* ---------- Appel vers l'application ---------- */

.lt-cta {
  display: flex; gap: 18px; align-items: center;
  margin: 2.4em 0 0; padding: 20px 24px;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  border: 2.5px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 5px 0 var(--sole);
  color: #fff;
}
.lt-cta img { width: 96px; height: auto; flex: none; filter: drop-shadow(0 4px 6px rgba(8, 28, 51, .3)); }
.lt-cta__t { font-size: 1.25rem; font-weight: 800; line-height: 1.3; margin: 0 0 12px !important; color: #fff; text-shadow: 0 1px 0 rgba(8, 28, 51, .35); }
.lt-cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.lt-cta .lt-link { color: #fff; }
.lt-cta .lt-link:hover { color: var(--sun); }

/* ---------- Quiz ---------- */

.lt-quiz { margin: 2.4em 0 0; padding: 22px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 0 5px 0 var(--sole); }
.lt-quiz__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.lt-quiz__head h2 { margin: 0; font-size: 1.4rem; }
.lt-quiz__head p { margin: 0; font-weight: 800; color: var(--ink); background: var(--sand); border-radius: 999px; padding: 2px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lt-q { padding: 16px 0; border-top: 2px dashed var(--line); }
.lt-q:first-of-type { border-top: 0; }
.lt-q__text { font-weight: 700; color: var(--ink); margin: 0 0 10px !important; }
.lt-q__opts { display: grid; gap: 8px; }
@media (min-width: 640px) { .lt-q__opts { grid-template-columns: 1fr 1fr; } }
.lt-opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  min-height: 48px; padding: 8px 14px;
  background: var(--paper); color: var(--text);
  border: 2px solid var(--line); border-radius: 12px;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: border-color .12s ease-out, background .12s ease-out;
}
.lt-opt:hover:not([disabled]) { border-color: var(--ink); background: var(--surface); color: var(--text); }
.lt-opt__l { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-weight: 800; font-size: .9rem; flex: none; }
.lt-opt.is-right { background: #E3F7EA; border-color: var(--reed); color: var(--ink); }
.lt-opt.is-right .lt-opt__l { background: var(--reed); border-color: var(--reed); color: #fff; }
.lt-opt.is-wrong { background: #FDE8E8; border-color: var(--error); color: var(--ink); }
.lt-opt.is-wrong .lt-opt__l { background: var(--error); border-color: var(--error); color: #fff; }
.lt-opt[disabled] { cursor: default; }
.lt-q__expl { margin: 10px 0 0 !important; padding: 10px 14px; background: var(--sand); border-radius: 10px; font-size: 1rem; }
.lt-quiz__end { margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; }
.lt-quiz__end p { margin: 0; }

/* ---------- Continuer : maillage de fin de leçon ---------- */

.lt-next { margin: 2.6em 0 0; display: grid; gap: 12px; }
.lt-next__pair { display: grid; gap: 12px; }
@media (min-width: 640px) { .lt-next__pair { grid-template-columns: 1fr 1fr; } }
.lt-next__card, .lt-next__up {
  display: block; padding: 14px 18px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .12s ease-out, transform .12s ease-out;
}
.lt-next__card:hover, .lt-next__up:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.lt-next__card small, .lt-next__up small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.lt-next__card--next { text-align: right; }
.lt-next__card--next small { justify-content: flex-end; }
.lt-next__card b, .lt-next__up b { display: block; margin-top: 2px; line-height: 1.3; }
.lt-next__up { background: var(--sand); border-color: var(--sun-deep); }
.lt-next__hub { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 !important; color: color-mix(in srgb, var(--subject) 70%, #000); font-weight: 700; }
.lt-next__hub a { color: var(--river-ink); }

/* ---------- Hubs : groupes, cartes, tuiles ---------- */

.lt-group { margin-top: 2.2em; }
.lt-group__t { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin: 0 0 12px; }
.lt-group__t .lt-ico { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--subject); color: #fff; border: 2.5px solid var(--ink); box-shadow: 0 2px 0 var(--sole); }
.lt-group__t a { color: var(--ink); text-decoration: none; }
.lt-group__t a:hover { text-decoration: underline; }
.lt-group__t small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.lt-group[hidden] { display: none; }

.entry-content .lt-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .entry-content .lt-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .entry-content .lt-cards { grid-template-columns: repeat(3, 1fr); } }
.entry-content .lt-cards li { margin: 0; }
.lt-card {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%;
  min-height: 72px; padding: 12px 16px;
  background: var(--surface); border: 2px solid var(--line);
  box-shadow: inset 0 -5px 0 var(--subject); padding-bottom: 15px;
  border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.3;
  transition: border-color .12s ease-out, transform .12s ease-out;
}
a.lt-card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.lt-card.is-soon { color: var(--muted); background: transparent; border-style: dashed; box-shadow: none; }
.lt-card__lvl { font-size: .8rem; font-weight: 800; color: color-mix(in srgb, var(--subject) 70%, #000); }
.lt-card__soon { font-size: .8rem; font-weight: 700; color: var(--muted); }

.lt-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6em 0 0; }
.lt-filter button {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line);
  font: inherit; font-weight: 800; cursor: pointer;
}
.lt-filter button:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.lt-filter button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.entry-content .lt-tiles { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 12px; }
.entry-content .lt-tiles li { margin: 0; }
.lt-tiles--levels { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lt-tiles--subjects { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lt-tile {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--sole);
  text-decoration: none; color: var(--ink);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
a.lt-tile:hover { color: var(--ink); background: var(--sand); }
a.lt-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sole); }
.lt-tile b { font-size: 1.9rem; line-height: 1.1; }
.lt-tile span { font-weight: 600; color: var(--muted); }
.lt-tile small { margin-top: 6px; font-weight: 800; color: var(--river-ink); font-size: .9rem; }
.lt-tile--subject { flex-direction: row; align-items: center; gap: 12px; }
.lt-tile--subject b { font-size: 1.2rem; }
.lt-tile--subject i { width: 44px; height: 44px; border-radius: 12px; background: var(--subject); color: #fff; display: grid; place-items: center; border: 2.5px solid var(--ink); flex: none; }
.lt-tile--subject i .lt-ico { width: 24px; height: 24px; }

/* ---------- Accueil ---------- */

.lt-home-hero {
  display: grid; gap: 20px; align-items: center;
  margin: -32px -20px 0; padding: 40px 20px 44px;
  background:
    radial-gradient(ellipse at 85% 10%, var(--sky-glow) 0, transparent 55%),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  color: #fff;
}
@media (min-width: 860px) {
  .lt-home-hero { grid-template-columns: 1.3fr .7fr; padding: 56px max(24px, calc((100vw - 1040px) / 2)) 60px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}
.lt-home-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); margin: 0 0 12px; text-shadow: 0 2px 0 rgba(8, 28, 51, .35); }
.lt-home-hero p { font-size: 1.2rem; color: #fff; max-width: 34em; }
.lt-home-hero .lt-mascot { width: min(300px, 46vw); height: auto; justify-self: center; filter: drop-shadow(0 10px 18px rgba(8, 28, 51, .35)); }
.lt-home-hero .lt-cta__row { margin-top: 18px; }
.lt-home-hero .lt-link { color: #fff; }
.lt-lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--dusk); color: rgba(255, 255, 255, .78); }
.lt-footer { padding: 48px 20px 8px; background: var(--dusk); color: rgba(255, 255, 255, .78); }
.lt-footer__in { max-width: 1080px; margin: 0 auto; display: grid; gap: 28px; }
@media (min-width: 860px) { .lt-footer__in { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.lt-footer__name { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.lt-footer__brand p { font-size: 1rem; }
.lt-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 10px; }
.lt-footer ul { list-style: none; margin: 0; padding: 0; }
.lt-footer li { margin: 0 0 6px; font-size: 1rem; }
.lt-footer a:not(.lt-play) { color: rgba(255, 255, 255, .85); text-decoration: none; }
.lt-footer a:not(.lt-play):hover { color: var(--sun); text-decoration: underline; }
.lt-footer .lt-play { background: rgba(255, 255, 255, .1); }
.site-info { background: transparent; color: rgba(255, 255, 255, .6); font-size: .9rem; }
.site-info a { color: rgba(255, 255, 255, .8); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .lt-home-hero { padding: 28px 20px 32px; gap: 8px; }
  .lt-home-hero p { font-size: 1.1rem; line-height: 1.5; }
  .lt-tile b { font-size: 1.6rem; }
  .lt-next__pair > span { display: none; }
  .lt-cta { flex-direction: column; align-items: flex-start; }
  .lt-cta img { width: 72px; }
  .lt-pdf { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Couleur de la matière sur toute la page (hubs matière, leçons). */
.lt-subject-francais { --subject: #2F6FE0; }
.lt-subject-maths { --subject: #E8730C; }
.lt-subject-sciences { --subject: #0E8C84; }
.lt-subject-histoire-geographie { --subject: #A0522D; }
.lt-subject-anglais { --subject: #D63031; }

/* Tableaux larges : défilement horizontal dans leur cadre plutôt que la page. */
.lt-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.lt-table:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.lt-table table { min-width: 100%; }

/* ---------- Accueil (19/11/2026) : l'aide aux parents d'abord ---------- */

.lt-welcome {
  display: grid; gap: 12px 32px; align-items: center;
  margin: 0 0 8px; padding: 8px 0 12px;
}
@media (min-width: 860px) { .lt-welcome { grid-template-columns: 1fr 240px; padding: 24px 0 8px; } }
.lt-welcome h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); margin: 0 0 14px; max-width: 16em; }
.lt-welcome__lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; margin: 0 0 20px !important; }
.lt-welcome__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 !important; }
.lt-welcome__actions .lt-btn { margin-top: 0; }
.lt-welcome .lt-mascot { width: 240px; height: auto; display: block; margin: 0 auto; }
.lt-welcome > p:last-child { margin: 0 !important; }
/* Sur téléphone, la mascotte du bandeau suffit : on garde le texte en haut. */
@media (max-width: 859px) { .lt-welcome > p:last-child { display: none; } }
.lt-btn--ink { background: var(--ink); color: #fff; }
.lt-btn--ink:hover { background: var(--dusk); color: var(--sun); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#classes, #matieres { scroll-margin-top: 16px; }

.entry-content .lt-howto { list-style: none; margin: 1.2em 0 0; padding: 0; counter-reset: howto; display: grid; gap: 14px; max-width: none; }
@media (min-width: 860px) { .entry-content .lt-howto { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.lt-howto li { counter-increment: howto; margin: 0 !important; padding-top: 14px; border-top: 3px solid var(--ink); }
.lt-howto li::before { content: counter(howto); display: block; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--river-ink); margin-bottom: 6px; }
.lt-howto b { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.lt-howto span { color: var(--muted); }

.lt-appnote {
  margin: 3em 0 0; padding: 18px 22px;
  background: var(--sand); border-radius: var(--radius);
}
.lt-appnote p { margin: 0; max-width: 60ch; }
.lt-appnote a { font-weight: 800; white-space: nowrap; }

@media (min-width: 860px) { .lt-tiles--levels { grid-template-columns: repeat(5, 1fr); } }

/* Encart application discret (19/11/2026) : remplace le grand bloc bleu. */
.lt-cta {
  display: flex; gap: 14px; align-items: center;
  margin: 2.4em 0 0; padding: 14px 18px;
  background: var(--sand); color: var(--text);
  border: 0; border-radius: var(--radius); box-shadow: none;
}
.lt-cta img { width: 56px; height: auto; filter: none; flex: none; }
.lt-cta p { margin: 0 !important; font-size: 1rem; }
.lt-cta__k { display: block; font-weight: 800; color: var(--ink); font-size: .9rem; }
.lt-cta .lt-link { color: var(--river-ink); white-space: nowrap; }
.lt-cta .lt-link:hover { color: var(--ink); }
@media (max-width: 640px) { .lt-cta { flex-direction: row; align-items: flex-start; } .lt-cta img { width: 44px; } }

/* =====================================================================
   20/11/2026 : nouvel en-tête clair, leçons plus lisibles, vitrine de
   l'application sur l'accueil, plus aucun débordement horizontal.
   ===================================================================== */

/* ---------- Garde-fou : jamais de défilement latéral de la page ---------- */
html, body { overflow-x: clip; }
.entry-content { overflow-wrap: break-word; }
.entry-content img, .entry-content svg, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; }

/* ---------- En-tête clair et collant ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 240, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: none;
}
.admin-bar .site-header { top: 32px; }
.inside-header { padding: 8px 20px; max-width: 1160px; align-items: center; }
.lt-brand { color: var(--ink) !important; font-size: 1.55rem; }
.lt-brand img { width: 34px; }
.main-navigation .main-nav ul li a { color: var(--ink); font-size: 1.02rem; line-height: 56px; padding: 0 14px; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--river-ink); background: transparent; }
.main-navigation .main-nav > ul > li.current-menu-item > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--sun); }
.main-navigation .main-nav ul ul {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 32px rgba(11, 37, 69, .14); padding: 6px; width: 260px;
}
.main-navigation .main-nav ul ul li a { color: var(--ink); line-height: 1.3; padding: 10px 12px; border-radius: 10px; font-size: 1rem; }
.main-navigation .main-nav ul ul li a:hover { background: var(--sand); color: var(--ink); }
.main-navigation .dropdown-menu-toggle { padding-left: 4px; }
.main-navigation .menu-toggle, .main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { color: var(--ink); background: transparent; }
.main-navigation.toggled .main-nav > ul { background: var(--surface); border-top: 1px solid var(--line); }
.main-navigation .menu-bar-items { display: flex; align-items: center; margin-left: 8px; }

.lt-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 4px 14px 4px 6px;
  background: var(--sun); color: var(--ink) !important;
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--sole);
  font-weight: 800; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.lt-nav-cta img { width: 28px; height: 28px; border-radius: 8px; }
.lt-nav-cta:hover { background: #FFD45C; }
.lt-nav-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sole); }
@media (max-width: 768px) {
  .inside-header { padding: 6px 14px; }
  .lt-brand { font-size: 1.4rem; }
  .lt-nav-cta { min-height: 38px; font-size: .95rem; padding-right: 12px; }
  .lt-nav-cta__more { display: none; }
  .main-navigation .main-nav ul li a { line-height: 1.3; padding: 14px 20px; }
  .main-navigation .main-nav ul ul { width: auto; border: 0; box-shadow: none; padding: 0 0 6px 12px; }
}

/* ---------- Leçons et guides : texte plus grand ---------- */
.lt-type-lesson .inside-article, .lt-type-guide .inside-article { max-width: 820px; }
.lt-type-lesson .entry-content, .lt-type-guide .entry-content { font-size: 1.22rem; line-height: 1.65; color: #10203A; }
.lt-type-lesson .entry-content > p, .lt-type-lesson .entry-content > ul, .lt-type-lesson .entry-content > ol,
.lt-type-guide .entry-content > p, .lt-type-guide .entry-content > ul, .lt-type-guide .entry-content > ol { max-width: 66ch; }
.lt-type-lesson .entry-content h2, .lt-type-guide .entry-content h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); }
.lt-type-lesson .entry-content h3, .lt-type-guide .entry-content h3 { font-size: 1.4rem; }
.lt-type-lesson .entry-content table, .lt-type-guide .entry-content table { font-size: 1.1rem; }
.lt-type-lesson .lt-q__expl, .lt-type-lesson .lt-cta p, .lt-type-lesson .lt-pdf p { font-size: 1.08rem; }
.lt-type-lesson .lt-title, .lt-type-guide .lt-title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); }
.lt-crumbs { font-size: 1rem; }
@media (max-width: 640px) {
  .lt-type-lesson .entry-content, .lt-type-guide .entry-content { font-size: 1.12rem; }
  .lt-type-lesson .entry-content table, .lt-type-guide .entry-content table { font-size: 1rem; }
  .entry-content th, .entry-content td { padding: 8px 10px; }
}
/* Tableaux : sur téléphone, le texte passe à la ligne au lieu de faire défiler. */
.entry-content td, .entry-content th { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Tableaux sans défilement latéral ---------- */
.lt-table { overflow-x: visible; }
.entry-content table.lt-compact th, .entry-content table.lt-compact td { text-align: center; }
.entry-content table.lt-flipped { width: auto; min-width: 60%; }
.entry-content table.lt-flipped td, .entry-content table.lt-flipped th { text-align: center; }
@media (max-width: 640px) {
  .entry-content table.lt-compact { font-size: .95rem; }
  .entry-content table.lt-compact th, .entry-content table.lt-compact td { padding: 7px 3px; overflow-wrap: normal; hyphens: none; }
  .entry-content table.lt-flipped { width: 100%; }
  /* Tableau de texte : une carte par ligne. */
  .entry-content table.lt-stack, .entry-content table.lt-stack tbody, .entry-content table.lt-stack tr, .entry-content table.lt-stack td { display: block; width: 100%; }
  .entry-content table.lt-stack { border: 0; background: transparent; overflow: visible; }
  .entry-content table.lt-stack tr:first-child { display: none; }
  .entry-content table.lt-stack tr { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; margin: 0 0 10px; padding: 6px 0; }
  .entry-content table.lt-stack td { display: flex; gap: 12px; justify-content: space-between; text-align: right; border: 0; padding: 5px 14px; }
  .entry-content table.lt-stack td:first-child { font-weight: 800; color: var(--ink); text-align: left; justify-content: flex-start; font-size: 1.05em; }
  .entry-content table.lt-stack td:first-child::before { display: none; }
  .entry-content table.lt-stack td::before { content: attr(data-label); font-weight: 700; color: var(--muted); text-align: left; flex: none; max-width: 48%; }
  .entry-content table.lt-stack td:empty { display: none; }
}

/* ---------- Boutons et petites étiquettes ---------- */
.lt-btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; box-shadow: 0 4px 0 rgba(8, 28, 51, .45); }
.lt-btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.lt-eyebrow { display: inline-block; margin: 0 0 12px !important; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .01em; }

/* ---------- Accueil : bandeau ---------- */
.lt-hero2 {
  position: relative; display: grid; gap: 28px; align-items: center;
  margin: -32px calc(50% - 50vw) 0; padding: 40px max(20px, calc((100vw - 1080px) / 2)) 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(79, 195, 247, .55) 0, transparent 70%),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  color: #fff; overflow: hidden;
}
.lt-hero2 h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); margin: 0 0 16px; text-shadow: 0 2px 0 rgba(8, 28, 51, .3); max-width: 13em; }
.lt-hero2__lead { font-size: 1.25rem; line-height: 1.55; color: #fff; max-width: 32em; margin: 0 0 24px !important; }
.lt-hero2__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 !important; }
.lt-hero2__actions .lt-btn { margin: 0; }
.entry-content .lt-proof { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.entry-content .lt-proof li { margin: 0; color: rgba(255, 255, 255, .9); font-weight: 600; }
.lt-proof b { display: block; color: var(--sun); font-size: 1.9rem; line-height: 1; font-weight: 800; }
.lt-hero2__phones { position: relative; height: 380px; align-self: end; }
.lt-hero2__phones .lt-phone { position: absolute; bottom: -90px; width: 220px; }
.lt-hero2__phones .lt-phone--front { left: 50%; transform: translateX(-28%) rotate(3deg); z-index: 2; }
.lt-hero2__phones .lt-phone--back { left: 50%; transform: translateX(-88%) rotate(-6deg); bottom: -130px; opacity: .95; }
.lt-hero2 > p, .lt-hero2__phones > p { margin: 0; }
@media (min-width: 900px) {
  .lt-hero2 { grid-template-columns: 1.15fr .85fr; padding-top: 64px; padding-bottom: 0; min-height: 520px; }
  .lt-hero2__text { padding-bottom: 64px; }
  .lt-hero2__phones { height: 100%; min-height: 460px; }
  .lt-hero2__phones .lt-phone { width: 250px; }
}
@media (max-width: 640px) {
  .lt-hero2 { padding-top: 28px; gap: 8px; }
  .lt-hero2__lead { font-size: 1.12rem; }
  .lt-hero2__actions .lt-btn { flex: 1 1 100%; }
  .lt-hero2__phones { height: 260px; }
  .lt-hero2__phones .lt-phone { width: 170px; bottom: -110px; }
  .lt-hero2__phones .lt-phone--back { bottom: -150px; }
}

/* ---------- Téléphone ---------- */
.lt-phone {
  margin: 0; padding: 7px; background: var(--sole); border-radius: 34px;
  box-shadow: 0 24px 48px rgba(8, 28, 51, .35), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.lt-phone img { display: block; width: 100%; height: auto; border-radius: 28px; }

/* ---------- Vitrine de l'application ---------- */
.lt-app {
  margin: 72px calc(50% - 50vw) 0; padding: 72px max(20px, calc((100vw - 1080px) / 2));
  background: var(--dusk); color: rgba(255, 255, 255, .86);
  background-image: radial-gradient(ellipse 50% 40% at 15% 0%, rgba(23, 174, 234, .28), transparent 70%), radial-gradient(ellipse 40% 30% at 90% 100%, rgba(255, 201, 51, .14), transparent 70%);
}
.lt-app__head { max-width: 720px; }
.lt-app h2 { color: #fff; margin: 0 0 14px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); }
.lt-app h3 { color: #fff; margin: 0 0 10px; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.lt-app p { color: rgba(255, 255, 255, .86); }
.lt-app strong, .lt-app b { color: #fff; }
.lt-app__lead { font-size: 1.2rem; margin: 0 !important; }
.entry-content .lt-stats { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .entry-content .lt-stats { grid-template-columns: repeat(4, 1fr); } }
.entry-content .lt-stats li { margin: 0; padding: 18px 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.lt-stats b { display: block; color: var(--sun); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem); line-height: 1; font-weight: 800; }
.lt-stats span { display: block; margin-top: 6px; font-weight: 600; line-height: 1.35; }

.lt-feats { margin-top: 56px; display: grid; gap: 64px; }
.lt-feat { display: grid; gap: 24px; align-items: center; }
.lt-feat__media { display: flex; justify-content: center; }
.lt-feat .lt-phone { width: min(260px, 72vw); }
.lt-feat__text { max-width: 30em; }
.lt-feat__text p { font-size: 1.15rem; line-height: 1.6; margin: 0 !important; }
@media (min-width: 860px) {
  .lt-feat { grid-template-columns: 1fr 1fr; gap: 56px; }
  .lt-feat--rev .lt-feat__media { order: 2; }
  .lt-feat .lt-phone { width: 280px; }
}
.entry-content .lt-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-content .lt-tags li { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: .95rem; }

.lt-app__cta {
  margin-top: 64px; padding: 24px 28px; border-radius: 22px;
  background: var(--sun); color: var(--ink);
  display: grid; gap: 16px; align-items: center;
  border: 2.5px solid var(--sole); box-shadow: 0 6px 0 var(--sole);
}
@media (min-width: 860px) { .lt-app__cta { grid-template-columns: 1fr auto; } }
.lt-app__cta p { color: var(--ink); margin: 0 !important; font-size: 1.08rem; }
.lt-app__ctat { font-weight: 800; font-size: 1.4rem !important; margin-bottom: 4px !important; }
.lt-app__ctab { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lt-app__ctab .lt-link { color: var(--ink); }
.lt-type-app .lt-app__ctab .lt-link { display: none; }
.lt-type-app .lt-app { margin-top: 32px; }
.entry-content > .lt-app + h2 { margin-top: 72px; }

/* Correctifs en-tête (20/11/2026). */
.main-navigation .menu-bar-items .lt-nav-cta { padding: 4px 16px 4px 5px; gap: 9px; line-height: 1; }
.main-navigation .menu-bar-items .lt-nav-cta img { flex: none; margin: 0; }
.main-navigation .main-nav > ul > li.menu-item-type-custom > a { box-shadow: none; color: var(--ink); }
.main-navigation .main-nav > ul > li.menu-item-type-custom > a:hover { color: var(--river-ink); }

/* Texte des leçons encore plus confortable (20/11/2026). */
.lt-type-lesson .entry-content, .lt-type-guide .entry-content { font-size: 1.3rem; }
.lt-type-lesson .entry-content .lt-lead, .lt-type-guide .entry-content .lt-lead { font-size: 1.08em; }
@media (max-width: 640px) {
  .lt-type-lesson .entry-content, .lt-type-guide .entry-content { font-size: 1.19rem; line-height: 1.6; }
}
.lt-nav-cta > span { display: inline-block; line-height: 1; padding-top: 1px; }
.main-navigation .menu-bar-items a.lt-nav-cta, .main-navigation .menu-bar-item > a.lt-nav-cta { display: inline-flex; align-items: center; padding: 4px 16px 4px 5px; line-height: 1; }
.lt-type-lesson .entry-content table, .lt-type-guide .entry-content table { font-size: .92em; }
@media (max-width: 640px) { .lt-type-lesson .entry-content table, .lt-type-guide .entry-content table { font-size: .9em; } }

/* Phrase d'accroche sous le nom (20/11/2026). */
.lt-brand { align-items: center; }
.lt-brand__txt { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.lt-brand__name { line-height: 1; }
.lt-brand__tag { margin-top: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: 0; line-height: 1.25; max-width: 34em; }
.lt-brand__more { color: var(--river-ink); }
.inside-header .site-branding, .inside-header .site-logo { min-width: 0; flex: 1 1 auto; }
@media (max-width: 1180px) and (min-width: 769px) { .lt-brand__tag { max-width: 22em; } }
@media (max-width: 768px) {
  .lt-brand__more { display: none; }
  .lt-brand__tag { font-size: .74rem; margin-top: 2px; }
  .lt-brand img { width: 30px; }
}
@media (max-width: 768px) {
  .inside-header .site-branding { flex: 1 1 0; min-width: 0; }
  .inside-header { flex-wrap: wrap; column-gap: 8px; }
  .lt-brand { gap: 8px; font-size: 1.3rem; }
  .lt-brand__tag { font-size: .72rem; }
  .main-navigation .menu-bar-items a.lt-nav-cta { padding: 3px 12px 3px 4px; gap: 6px; font-size: .92rem; min-height: 36px; }
  .main-navigation .menu-bar-items a.lt-nav-cta img { width: 26px; height: 26px; }
  .mobile-menu-control-wrapper .menu-toggle { padding: 0 8px; }
}

/* Mention « gratuit » de l'accueil et tuiles matières sur téléphone (20/11/2026). */
.lt-free {
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 0 22px !important; padding: 12px 16px 12px 52px; position: relative;
  max-width: 32em; border-radius: 16px;
  background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .55);
  color: #fff; line-height: 1.35;
}
.lt-free::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.lt-hero2 .lt-free b { color: #fff; font-size: 1.12rem; }
.lt-free span { font-size: 1rem; color: rgba(255, 255, 255, .9); }
.lt-tile--subject > span, .lt-tile--subject b { min-width: 0; }
.lt-tile--subject b { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 560px) {
  .entry-content .lt-tiles--subjects { grid-template-columns: 1fr; }
  .lt-tile--subject { padding: 12px 16px; }
}

/* Phase 2 SEO (20/11/2026) : prérequis, FAQ, pages de notion. */
.lt-prereq {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 2px dashed var(--line);
  font-size: .9em; line-height: 1.5; color: var(--text);
}
.lt-prereq .lt-ico { margin-top: .25em; color: var(--river-ink); }
.lt-prereq a { font-weight: 700; }
.lt-faq { margin-top: 2.6em; }
.lt-faq h3 { font-size: 1.15em; margin: 1.3em 0 .3em; }
.lt-faq h3 + p { margin-top: 0; }
.lt-type-notion .inside-article, .lt-type-notions .inside-article { max-width: 1080px; }
.lt-type-notion .entry-content > p, .lt-type-notion .entry-content > ul, .lt-type-notion .lt-faq { max-width: 760px; }
.lt-type-notion .entry-content { font-size: 1.15rem; }
.lt-type-notion .entry-content h2 { margin-top: 1.8em; }
.lt-type-level .lt-faq, .lt-type-subject .lt-faq, .lt-type-hub .lt-faq, .lt-type-level .entry-content > ul, .lt-type-hub .entry-content > ul { max-width: 760px; }
.lt-next__hub span a { font-weight: 800; }

/* ---------- Générateurs de fiches (20/11/2026) ---------- */
.lt-type-generator .inside-article, .lt-type-generators .inside-article { max-width: 1080px; }
.lt-type-generator .entry-content > p, .lt-type-generator .entry-content > ul, .lt-type-generator .entry-content > ol, .lt-type-generator .lt-faq { max-width: 760px; }
.lt-gen { margin: 0 0 2.4em; }
.lt-gen__form { display: grid; gap: 14px; padding: 20px; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; }
.lt-gen__field { border: 0; margin: 0; padding: 0; }
.lt-gen__field legend { font-weight: 800; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.lt-gen__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-gen__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 700; font-size: .98rem; }
.lt-gen__opt:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.lt-gen__opt input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.lt-gen__preset { min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--river-ink); background: var(--surface); color: var(--river-ink); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; }
.lt-gen__preset[aria-pressed="true"], .lt-gen__preset:hover { background: var(--river-ink); color: #fff; }
.lt-gen__select { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.lt-gen__select select { min-height: 44px; padding: 4px 10px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: var(--paper); }
.lt-gen__bar { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.lt-gen__bar .lt-btn { margin: 0; cursor: pointer; font-family: inherit; }
.lt-gen__msg { color: var(--error); font-weight: 700; margin: 4px 0 !important; min-height: 1em; }
.lt-gen__hint { color: var(--muted); font-size: .95rem; margin: 0 0 12px !important; }
.lt-gen__sheets { --fit: 1; padding: 16px 0; background: #E9E2D4; border-radius: 18px; overflow: hidden; }
.lt-gen__sheets .lt-sheet { zoom: var(--fit); }

/* La feuille A4. */
.lt-sheet {
  width: 210mm; height: 297mm; box-sizing: border-box; padding: 13mm 14mm 0;
  margin: 0 auto 16px; background: #fff; color: #111; position: relative;
  display: flex; flex-direction: column; font-family: var(--font); line-height: 1.25;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.lt-sheet:last-child { margin-bottom: 0; }
.lt-sheet__who { display: flex; justify-content: space-between; font-size: 11pt; color: #333; min-height: 6mm; }
.lt-sheet__title { font-size: 21pt; margin: 4mm 0 1mm !important; color: #0B2545; text-shadow: none; }
.lt-sheet__title em { font-style: normal; color: #0A6591; }
.lt-sheet__consigne { margin: 0 0 4mm !important; font-size: 12pt; color: #333; }
.entry-content .lt-sheet__grid {
  list-style: none; margin: 0; padding: 4mm 0; flex: 1;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: 1fr; column-gap: 10mm;
  border-top: 1.5px solid #0B2545;
}
.entry-content .lt-sheet__grid li { margin: 0; display: flex; align-items: center; gap: 3mm; font-size: 15pt; font-variant-numeric: tabular-nums; }
.lt-sheet__n { font-size: 8.5pt; color: #8a8a8a; width: 6mm; text-align: right; flex: none; }
.lt-blank { display: inline-block; width: 16mm; border-bottom: 1.5px solid #333; height: 1em; vertical-align: -0.15em; }
.lt-sheet--key .lt-sheet__q b { color: #0A6591; }
.lt-sheet__score { margin: 0 0 3mm !important; font-size: 11pt; text-align: right; color: #333; }
.lt-sheet--dys .entry-content .lt-sheet__grid li, .lt-sheet--dys .lt-sheet__grid li { font-family: Verdana, Arial, sans-serif; font-size: 16pt; letter-spacing: .06em; word-spacing: .2em; }
.lt-sheet--dys .lt-blank { width: 20mm; }

/* Pied de page publicitaire : le site à gauche, l'application à droite. */
.lt-sheet__foot {
  margin-top: auto; height: 21mm; flex: none;
  display: flex; justify-content: space-between; align-items: center; gap: 8mm;
  border-top: 1px dashed #b9b9b9;
}
.lt-sheet__ad { display: flex; align-items: center; gap: 3mm; text-decoration: none !important; color: #0B2545 !important; max-width: 48%; }
.lt-sheet__ad img { flex: none; }
.lt-sheet__ad--app img { border-radius: 8px; width: 9mm; height: 9mm; }
.lt-sheet__ad span { display: flex; flex-direction: column; line-height: 1.2; }
.lt-sheet__ad b { font-size: 11pt; }
.lt-sheet__ad small { font-size: 8pt; color: #555; }
.lt-sheet__ad--app { text-align: right; }

@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; margin: 0 !important; }
  .site-header, .lt-footer, .site-footer, .lt-hero, .lt-gen__form, .lt-gen__bar, .lt-gen__hint, .lt-gen__msg { display: none !important; }
  .entry-content > *:not(.lt-gen):not(p:has(> .lt-gen)) { display: none !important; }
  .site-content, .content-area, .site-main, .inside-article, .entry-content, .lt-gen, .lt-gen__sheets { padding: 0 !important; margin: 0 !important; max-width: none !important; background: none !important; border-radius: 0 !important; overflow: visible !important; }
  .lt-gen__sheets .lt-sheet { zoom: 1 !important; box-shadow: none !important; margin: 0 !important; break-after: page; page-break-after: always; }
  .lt-gen__sheets .lt-sheet:last-child { break-after: auto; page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.lt-genlink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 2.4em 0 0; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--sole); }
.lt-genlink p { margin: 0 !important; max-width: 46ch; font-size: 1rem; }
.lt-genlink .lt-btn { margin: 0; }
.lt-sheet__foot { height: 24mm; }
.lt-sheet__ad b { font-size: 13pt; }
.lt-sheet__ad small { font-size: 9pt; }
.lt-sheet__ad img { width: 11mm; height: auto; }
.lt-sheet__ad--app img { width: 12mm; height: 12mm; border-radius: 10px; }
/* En-tête : l'accroche sur deux lignes pour laisser la place au menu. */
@media (min-width: 769px) { .lt-brand__tag { max-width: 24em; } .main-navigation .main-nav > ul > li > a { padding: 0 11px; } }

/* ---------- Générateurs : contenus des fiches (20/11/2026) ---------- */
.lt-gen__row { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.lt-gen__text { display: grid; gap: 6px; font-weight: 800; color: var(--ink); }
.lt-gen__text input, .lt-gen__text textarea { font: inherit; font-weight: 600; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); width: 100%; max-width: 520px; box-sizing: border-box; }
.lt-sheet__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lt-sheet__body > .lt-sheet__grid { flex: 1; }
/* Fractions */
.lt-f { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 1mm; font-weight: 700; }
.lt-f span:first-child { border-bottom: 1.6px solid currentColor; padding: 0 1mm; }
.lt-fq { display: inline-flex; align-items: center; gap: 2mm; font-size: 12.5pt; }
.entry-content .lt-sheet__grid--fr li { gap: 4mm; }
.lt-frac { flex: none; }
.lt-cmpbox { display: inline-grid; place-items: center; width: 10mm; height: 10mm; border: 1.5px solid #333; border-radius: 2mm; margin: 0 2mm; font-size: 14pt; }
/* Conjugaison */
.lt-conj { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6mm 10mm; align-content: start; padding-top: 4mm; border-top: 1.5px solid #0B2545; }
.lt-conj__box { border: 1.5px solid #0B2545; border-radius: 3mm; padding: 3mm 4mm; }
.lt-conj__v { margin: 0 0 2mm !important; font-size: 12pt; }
.entry-content .lt-conj table { border: 0; background: none; width: 100%; font-size: 12.5pt; }
.entry-content .lt-conj td { border: 0; padding: 1.6mm 1mm; overflow-wrap: normal; hyphens: none; }
.entry-content .lt-conj td:first-child { width: 22mm; color: #444; }
.entry-content .lt-sheet__grid small { font-size: 9pt; color: #666; }
/* Opérations posées */
.lt-ops { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 4mm; padding-top: 4mm; border-top: 1.5px solid #0B2545; }
.lt-ops--4 { grid-template-columns: repeat(4, 1fr); }
.lt-ops__cell { position: relative; border: 1px solid #c9c9c9; border-radius: 2mm; padding: 4mm 5mm 3mm 7mm;
  background-image: linear-gradient(#e6e6e6 1px, transparent 1px), linear-gradient(90deg, #e6e6e6 1px, transparent 1px); background-size: 5mm 5mm; }
.lt-ops__cell .lt-sheet__n { position: absolute; left: 1.5mm; top: 1.5mm; width: auto; }
.lt-op { font-family: Consolas, "DejaVu Sans Mono", "Courier New", monospace; font-size: 15pt; letter-spacing: .18em; text-align: right; width: max-content; margin-left: auto; }
.lt-op__l span { float: left; margin-right: 3mm; letter-spacing: 0; }
.lt-op__res { border-top: 2px solid #111; margin-top: 1mm; min-height: 9mm; padding-top: 1mm; }
.lt-op--div { margin-left: 0; letter-spacing: .12em; }
.entry-content .lt-op--div table { border: 0; background: none; border-collapse: collapse; font-size: 15pt; }
.entry-content .lt-op--div td { border: 0; padding: 1mm 2mm; vertical-align: top; overflow-wrap: normal; }
.entry-content .lt-op--div .lt-op__dv { border-left: 2px solid #111; border-bottom: 2px solid #111; }
.entry-content .lt-op--div .lt-op__q { border-left: 2px solid #111; min-width: 16mm; font-size: 13pt; }
.entry-content .lt-op--div .lt-op__work { height: 30mm; }
.lt-sheet--key .lt-op b, .lt-sheet--key .lt-op__q b { color: #0A6591; }
/* Mots de la semaine */
.entry-content table.lt-mots { width: 100%; border-collapse: collapse; border: 1.5px solid #0B2545; border-radius: 0; background: #fff; font-size: 14pt; }
.entry-content table.lt-mots th { background: #FFF1D6; font-size: 11pt; padding: 2mm; border: 1px solid #0B2545; text-align: center; }
.entry-content table.lt-mots td { border: 1px solid #0B2545; height: 11mm; padding: 0 3mm; overflow-wrap: normal; }
.lt-seyes { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2mm - 0.5px), #b9c8e8 calc(2mm - 0.5px), #b9c8e8 2mm); background-position: 0 1.5mm; }
.lt-mots__t { margin: 5mm 0 2mm !important; font-weight: 700; font-size: 12pt; }
.entry-content .lt-mots__holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm 8mm; margin: 0; padding-left: 6mm; font-size: 15pt; letter-spacing: .08em; }
.entry-content .lt-mots__holes li { margin: 0; }
.lt-hole { display: inline-block; width: 4.5mm; border-bottom: 1.5px solid #333; margin: 0 .4mm; height: 1em; vertical-align: -.15em; }
/* Coloriages magiques */
.lt-color { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4mm; padding-top: 3mm; }
.entry-content table.lt-color__grid { width: auto; border-collapse: collapse; border: 2px solid #0B2545; border-radius: 0; background: #fff; }
.entry-content .lt-color__grid td { width: 15.5mm; height: 15.5mm; border: 1px solid #555; padding: 0; text-align: center; font-size: 9.5pt; overflow-wrap: normal; hyphens: none; }
.entry-content .lt-color__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2mm 6mm; font-size: 11pt; }
.entry-content .lt-color__legend li { margin: 0; display: flex; align-items: center; gap: 1.5mm; }
.lt-color__sw { width: 5mm; height: 5mm; border: 1px solid #555; border-radius: 1mm; display: inline-block; }
.lt-color__ans { margin: 0 !important; font-size: 12pt; }

/* ---------- Exercices, évaluations et dictées (étape 1 Semrush, 20/11/2026) ---------- */
.lt-jump { margin: .4em 0 1.2em; }
.lt-jump a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--river-ink); text-decoration: underline; text-underline-offset: 3px; }
.lt-jump a::after { content: "↓"; text-decoration: none; }
.lt-exos { margin-top: 2.4em; scroll-margin-top: 90px; }
.lt-exos__list { padding-left: 1.4em; margin: 1em 0 0; }
.lt-exos__list > li { margin: 0 0 .9em; padding-left: .2em; }
.lt-exos__list > li::marker { font-weight: 800; color: var(--ink); }
.lt-exos__list p { margin: 0 0 .2em; }
.lt-exos details { display: inline-block; }
.lt-exos summary { cursor: pointer; color: var(--river-ink); font-weight: 700; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; list-style: none; }
.lt-exos summary::-webkit-details-marker { display: none; }
.lt-exos summary::before { content: "▸"; margin-right: 6px; transition: transform .15s; }
.lt-exos details[open] summary::before { transform: rotate(90deg); }
.lt-exos details > p { margin: 0 0 .4em; padding: 8px 14px; background: var(--sand); border-radius: 12px; font-weight: 600; color: var(--ink); }
.lt-eval { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 1.6em 0 0; padding: 16px 20px; border-radius: var(--radius); background: var(--sand); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--sole); }
.lt-eval h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.lt-eval p { margin: 0 !important; max-width: 46ch; font-size: 1rem; }
.lt-eval .lt-btn { margin: 0; }
.lt-dictee { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1em; }
.lt-dictee h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.lt-dictee__meta { font-size: .95rem; color: var(--muted); margin: 0 0 .6em; }
.lt-dictee__meta b { color: var(--ink); }
.entry-content .lt-dictee__text { margin: 0; padding: 0 0 0 14px; border-left: 4px solid var(--sun); font-style: normal; font-size: 1.05em; }
.lt-dictee__text p { margin: 0; }
.lt-type-dictees .entry-content > p, .lt-type-dictees .entry-content > ol, .lt-type-dictees .lt-dictee, .lt-type-dictees .lt-faq { max-width: 760px; }
@media print { .lt-exos details > p { display: block; } }

/* ---------- Blocs A, B, C : essentiel, aperçu, autres classes, dictées bilans (20/11/2026) ---------- */
.lt-bref { margin: .6em 0 1.4em; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line); }
.lt-bref p { margin: 0 0 .3em; }
.lt-bref b { color: var(--ink); }
.lt-bref .lt-jump { margin: .3em 0 0; }
.lt-eval { flex-wrap: nowrap; justify-content: flex-start; }
.lt-eval__img { flex: none; width: 110px; height: auto; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; box-shadow: 0 2px 0 var(--line); }
.lt-eval__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 520px) { .lt-eval { flex-wrap: wrap; } .lt-eval__img { width: 90px; } }
.lt-across { margin: 2em 0 0; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line); }
.lt-across h2 { font-size: 1.2rem; margin: 0 0 .5em; }
.lt-across ul { list-style: none; margin: 0; padding: 0; }
.lt-across li { margin: 0 0 .45em; display: flex; align-items: baseline; gap: 8px; }
.lt-across .lt-chip { flex: none; display: inline-block; min-width: 44px; text-align: center; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 800; }
.lt-across p { margin: .6em 0 0; }
.lt-dictee--bilan { background: var(--sand); border-color: var(--ink); }
.lt-dictee__prep { margin: .6em 0 0; font-size: .95rem; }
.lt-dictee__prep a { font-weight: 700; color: var(--river-ink); }
.lt-fin ul { margin: .3em 0 .5em; }
.lt-fin p { font-size: .95rem; color: var(--muted); margin: 0; }
