/* Didimel Éducation — "La marge rouge" */
:root {
  --ink: #262F58;
  --ink-deep: #1B2244;
  --ink-soft: #4E5677;
  --rule: #4062AC;
  --rule-pale: #DCE3F2;
  --pen: #B4181C;
  --hl: #E85A10;
  --hl-soft: #F6A26B;
  --paper: #F7F8FA;
  --sheet: #FFFFFF;
  --line: 2rem;
  --radius: 3px;
  --gutter: clamp(20px, 4vw, 48px);
  --margin-x: clamp(56px, 7vw, 104px);
  --s-section: clamp(4.5rem, 9vw, 8.5rem);
  --shadow-1: 0 1px 2px rgba(38, 47, 88, .06), 0 4px 14px -4px rgba(38, 47, 88, .10);
  --shadow-2: 0 2px 4px rgba(38, 47, 88, .05), 0 14px 34px -10px rgba(38, 47, 88, .22);
  --shadow-3: 0 6px 12px rgba(38, 47, 88, .07), 0 34px 70px -18px rgba(38, 47, 88, .34);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.25, .64, 1);
  --f-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Nothing You Could Do", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.68;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: rgba(246, 162, 107, .55); color: var(--ink-deep); }
:focus-visible { outline: 2px solid var(--rule); outline-offset: 3px; border-radius: var(--radius); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 900; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; transition: transform .2s var(--ease); }
.skip:focus { transform: translateY(72px); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.015em; line-height: 1.06; margin: 0; color: var(--ink); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--ink-soft); max-width: 58ch; }
.hand { font-family: var(--f-hand); color: var(--pen); font-weight: 400; letter-spacing: .01em; }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 1.1rem; }
.hl { background: linear-gradient(transparent 52%, rgba(246, 162, 107, .55) 52%, rgba(246, 162, 107, .55) 90%, transparent 90%); padding-inline: .08em; }

/* ---------- Ruled paper + margin ---------- */
.ruled {
  background-color: var(--sheet);
  background-image: linear-gradient(to bottom, transparent calc(var(--line) - 1px), rgba(64, 98, 172, .15) calc(var(--line) - 1px));
  background-size: 100% var(--line);
}
.has-margin { position: relative; }
.has-margin::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--margin-x); width: 0;
  border-left: 1.5px solid rgba(180, 24, 28, .78); pointer-events: none;
}
.in-margin { padding-left: calc(var(--margin-x) + clamp(20px, 3vw, 44px)); }
@media (max-width: 767px) {
  :root { --margin-x: 22px; }
  .in-margin { padding-left: 40px; padding-right: 20px; }
  .has-margin::before { left: 24px; }
}
.margin-note { font-family: var(--f-hand); color: var(--pen); font-size: 1.25rem; line-height: 1.2; transform: rotate(-4deg); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.4rem; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  font: 600 1rem/1.1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: color .3s var(--ease), transform .25s var(--spring), box-shadow .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hl-soft);
  transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease);
}
.btn:hover { color: var(--ink-deep); box-shadow: var(--shadow-2); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:focus-visible { color: var(--ink-deep); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn i { font-size: .9em; transition: transform .3s var(--spring); }
.btn:hover i { transform: translateX(3px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(38, 47, 88, .35); box-shadow: none; }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

.link-pen { text-decoration: none; background: linear-gradient(var(--pen), var(--pen)) left bottom / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease), color .2s; }
.link-pen:hover { color: var(--pen); }
.link-pen:active { opacity: .75; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 400; background: rgba(247, 248, 250, .96); border-bottom: 1px solid rgba(38, 47, 88, .10); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(247, 248, 250, .86); backdrop-filter: blur(10px) saturate(1.2); } }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: var(--radius); }
.brand img { height: 56px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-links > li > button {
  position: relative; font: 500 .98rem/1 var(--f-body); color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: .6rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
}
.nav-links .ink-line { position: absolute; left: -4px; right: -4px; bottom: -2px; height: 9px; overflow: visible; pointer-events: none; }
.nav-links .ink-line path { fill: none; stroke: var(--pen); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .45s var(--ease); }
.nav-links a:hover .ink-line path, .nav-links a:focus-visible .ink-line path, .nav-links button:hover .ink-line path,
.nav-links [aria-current="page"] .ink-line path, .nav-item:focus-within > button .ink-line path { stroke-dashoffset: 0; }
.nav-links a:active, .nav-links button:active { opacity: .7; }
.nav-item { position: relative; }
.nav-item::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 24px; opacity: 0; visibility: hidden; pointer-events: none; }
.nav-item:hover::after, .nav-item:focus-within::after { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-item > a i { font-size: .7rem; transition: transform .3s var(--ease); }
.nav-item:hover > a i, .nav-item:focus-within > a i { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 18px); left: -24px; min-width: 320px; padding: .75rem;
  background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-3); border: 1px solid rgba(38, 47, 88, .08);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .43s;
  transition-delay: .18s;
}
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; transition-delay: 0s; }
.nav-panel a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .2rem 1rem; padding: .7rem .8rem; border-radius: var(--radius); text-decoration: none; transition: background-color .2s; }
.nav-panel a strong { font: 400 1.15rem/1.2 var(--f-display); }
.nav-panel a span { grid-column: 1 / -1; font-size: .86rem; color: var(--ink-soft); line-height: 1.35; }
.nav-panel a i { color: var(--pen); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--ease); font-size: .8rem; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: #F1F4FA; }
.nav-panel a:hover i, .nav-panel a:focus-visible i { opacity: 1; transform: none; }
.nav-panel a:active { background: #E6EBF5; }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-cta { display: none; }
@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .ham { display: none !important; }
}

/* Language switch: the active code is circled in red pen */
.lang { display: inline-flex; align-items: center; gap: .15rem; font: 600 .8rem/1 var(--f-body); letter-spacing: .12em; text-decoration: none; color: var(--ink); padding: .45rem .3rem; border-radius: var(--radius); }
.lang span { position: relative; padding: .35rem .45rem; color: var(--ink-soft); transition: color .2s; }
.lang span.on { color: var(--ink); }
.lang svg { position: absolute; inset: -4px -6px; width: calc(100% + 12px); height: calc(100% + 8px); overflow: visible; pointer-events: none; }
.lang svg path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.lang .on svg path { stroke: var(--pen); }
.lang .off svg path { stroke: var(--ink-soft); stroke-dasharray: 90; stroke-dashoffset: 90; opacity: 0; transition: stroke-dashoffset .4s var(--ease), opacity .2s; }
.lang:hover .off, .lang:focus-visible .off { color: var(--ink); }
.lang:hover .off svg path, .lang:focus-visible .off svg path { stroke-dashoffset: 0; opacity: .6; }
.lang:active { opacity: .7; }

/* Hamburger */
.ham { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius); border: 1.5px solid rgba(38, 47, 88, .25); background: var(--sheet); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.ham:hover { border-color: var(--ink); background: #F1F4FA; }
.ham:active { transform: scale(.96); }
.ham-lines { display: flex; flex-direction: column; gap: 5px; width: 20px; pointer-events: none; }
.ham-line { display: block; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .32s var(--spring), opacity .2s ease; }
.ham-line:nth-child(2) { width: 13px; }
.ham.is-open .ham-line:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.ham.is-open .ham-line:nth-child(2) { opacity: 0; }
.ham.is-open .ham-line:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Mobile menu: a notebook page turning in from its left hinge */
#drawerBackdrop { position: fixed; inset: 0; z-index: 590; background: rgba(27, 34, 68, .5); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
#drawerBackdrop.open { opacity: 1; pointer-events: auto; }
#mobileDrawer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 600; display: flex; flex-direction: column;
  min-height: 100vh; height: 100dvh; overflow-y: auto; perspective: 1600px;
  visibility: hidden; pointer-events: none; transition: visibility 0s linear .55s;
}
#mobileDrawer.open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.drawer-page {
  flex: 1; display: flex; flex-direction: column; padding: 18px 20px 28px calc(var(--margin-x) + 22px);
  transform-origin: left center; transform: rotateY(-78deg); opacity: 0;
  transition: transform .55s var(--ease), opacity .3s ease;
  box-shadow: var(--shadow-3);
}
#mobileDrawer.open .drawer-page { transform: none; opacity: 1; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer-top img { height: 44px; width: auto; }
.drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .35rem 0; font: 400 clamp(1.8rem, 8vw, 2.4rem)/var(--line) var(--f-display); line-height: 1.25; text-decoration: none; color: var(--ink); min-height: calc(var(--line) * 2); align-items: center; }
.drawer-links a small { font: 400 1.05rem/1 var(--f-hand); color: var(--pen); }
.drawer-links a:active, .drawer-links a:hover { color: var(--pen); }
.drawer-sub { list-style: none; margin: 0 0 .6rem; padding: 0 0 0 1rem; }
.drawer-sub a { font: 500 1.05rem/1.2 var(--f-body); min-height: var(--line); color: var(--ink-soft); }
.drawer-foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .9rem; }
.drawer-foot .btn { width: 100%; }
.drawer-foot .tel { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; }

/* ---------- Hero: la correction ---------- */
.hero { padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-display {
  font-family: var(--f-display); font-size: clamp(3.1rem, 8.4vw, 8rem); line-height: 1; letter-spacing: -.03em;
  padding-top: clamp(2.6rem, 4.8vw, 4.6rem); color: var(--ink);
}
.fix { position: relative; display: inline-block; }
.fix del { text-decoration: none; color: inherit; position: relative; }
.fix del::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; border-top: .06em solid var(--pen); transform: rotate(-6deg); }
.fix svg { position: absolute; left: -10%; top: 18%; width: 120%; height: 70%; overflow: visible; pointer-events: none; }
.fix svg path { fill: none; stroke: var(--pen); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fix ins {
  position: absolute; left: 50%; bottom: 88%; transform: translateX(-42%) rotate(-5deg); white-space: nowrap;
  font: 400 .36em/1 var(--f-hand); color: var(--pen); text-decoration: none; letter-spacing: 0;
}
.fix ins::after { content: ""; position: absolute; left: 30%; top: 108%; width: 14px; height: 18px; border-left: 2px solid var(--pen); border-bottom: 2px solid transparent; transform: rotate(18deg); opacity: .75; }
html.js .fix del::after { display: none; }
html:not(.js) .fix svg { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .fix svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pen-draw .55s .75s var(--ease) forwards; }
  html.js .fix ins { clip-path: inset(-20% 100% -40% 0); animation: pen-write 1.1s 1.25s steps(14, end) forwards; }
  .hero-rise { animation: rise .8s var(--ease) both; }
  .hero-rise.d2 { animation-delay: .12s; }
  .hero-rise.d3 { animation-delay: .22s; }
}
@keyframes pen-draw { to { stroke-dashoffset: 0; } }
@keyframes pen-write { to { clip-path: inset(-20% -10% -40% 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-grid { display: grid; gap: 2.2rem; margin-top: clamp(1.8rem, 3.6vw, 3rem); }
.hero-copy h1 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.14; max-width: 22ch; }
.hero-copy .lede { margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.8rem; }
.tel-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; padding: .5rem 0; border-radius: var(--radius); }
.tel-link i { color: var(--pen); }
.tel-link span { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.tel-link:hover span { background-size: 100% 1.5px; }
.tel-link:active { opacity: .7; }
.clipped { position: relative; background: var(--sheet); padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow-3); }
.clipped img { border-radius: 2px; width: 100%; object-fit: cover; }
.tape { position: absolute; width: 112px; height: 30px; background: rgba(246, 162, 107, .55); top: -13px; left: 50%; transform: translateX(-50%) rotate(-3deg); border-radius: 2px; mix-blend-mode: multiply; }
.hero-photo { transform: rotate(1.2deg); }
.hero-photo img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 5fr 7fr; align-items: start; gap: 3.5rem; }
  .hero-photo { margin-top: -1.2rem; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--s-section); position: relative; }
.section-head { max-width: 760px; }
.section-head .lede { margin-top: 1.1rem; }

/* ---------- Sommaire (table of contents) ---------- */
.toc { list-style: none; margin: clamp(2.4rem, 5vw, 3.6rem) 0 0; padding: 0; position: relative; }
.toc li + li { margin-top: .4rem; }
.toc a { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .3rem 1rem; padding: 1.1rem 0; text-decoration: none; border-radius: var(--radius); }
.toc .t-title { font: 400 clamp(1.9rem, 4.4vw, 3.5rem)/1.05 var(--f-display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.toc .t-title span { position: relative; white-space: nowrap; }
.toc .t-title::after { content: ""; flex: 1; min-width: 2rem; border-bottom: 2px dotted rgba(38, 47, 88, .35); transform: translateY(-.2em); }
.toc .t-desc { font-size: 1rem; color: var(--ink-soft); text-align: right; max-width: 32ch; line-height: 1.35; padding-bottom: .35rem; }
.toc .t-desc i { color: var(--pen); margin-left: .5rem; transition: transform .3s var(--spring); }
.toc a:hover .t-desc i, .toc a:focus-visible .t-desc i { transform: translateX(5px); }
.toc a:active { opacity: .8; }
@media (max-width: 700px) {
  .toc a { grid-template-columns: 1fr; }
  .toc .t-desc { text-align: left; max-width: none; }
  .toc .t-title::after { display: none; }
}

/* ---------- Le pupitre: shelf of subjects ---------- */
.shelf-wrap { margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; gap: 2rem; }
.shelf { display: flex; flex-direction: column; gap: 6px; }
.spine {
  --c: var(--ink); position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 58px; padding: .8rem 1.1rem; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: linear-gradient(90deg, rgba(255, 255, 255, .10), transparent 30%, rgba(0, 0, 0, .12)), var(--c);
  color: #fff; font: 400 1.5rem/1 var(--f-display);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-1);
  transition: transform .45s var(--spring), box-shadow .3s var(--ease);
}
.spine::before, .spine::after { content: ""; position: absolute; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .45); }
.spine::before { left: 12px; } .spine::after { left: 17px; }
.spine .sp-name { padding-left: 1.2rem; }
.spine .sp-lvl { font: 600 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.spine:hover { transform: translateX(6px); }
.spine[aria-expanded="true"] { transform: translateX(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-2); }
.spine:active { filter: brightness(.95); }
.spine:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.book { background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-3); position: relative; overflow: hidden; }
.book-page { display: grid; gap: 1.6rem; padding: clamp(1.6rem, 3.4vw, 2.8rem); }
.book-page h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.book-page .levels { font-family: var(--f-hand); color: var(--pen); font-size: 1.35rem; margin-top: .4rem; }
.book-page ul { list-style: none; margin: 0; padding: 0; }
.book-page li { display: flex; gap: .8rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--rule-pale); }
.book-page li:last-child { border-bottom: 0; }
.book-page li i { color: var(--c, var(--rule)); font-size: .8rem; }
.book-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--c, var(--ink)); }
html.js .book-panel:not(.is-open) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .book-panel.is-open { animation: book-open .6s var(--ease); }
}
@keyframes book-open { from { clip-path: inset(0 100% 0 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
html:not(.js) .book-panel + .book-panel { margin-top: 1.2rem; }
@media (min-width: 900px) {
  .shelf-wrap { grid-template-columns: auto 1fr; align-items: end; gap: 3rem; }
  .shelf { flex-direction: row; align-items: flex-end; gap: 7px; height: 470px; padding: 0 12px; position: relative; }
  .shelf::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -16px; height: 16px; background: var(--ink); border-radius: 2px; box-shadow: 0 18px 30px -12px rgba(38, 47, 88, .45); }
  .spine { width: 74px; flex-direction: column-reverse; justify-content: space-between; padding: 1.2rem 0; writing-mode: vertical-rl; transform-origin: bottom center; }
  .spine .sp-name, .spine .sp-lvl { transform: rotate(180deg); padding-left: 0; }
  .spine::before, .spine::after { left: 8px; right: 8px; width: auto; height: 2px; top: auto; bottom: auto; }
  .spine::before { top: 16px; } .spine::after { top: 22px; }
  .spine:nth-child(1) { height: 92%; } .spine:nth-child(2) { height: 100%; } .spine:nth-child(3) { height: 86%; }
  .spine:nth-child(4) { height: 96%; } .spine:nth-child(5) { height: 90%; } .spine:nth-child(6) { height: 98%; }
  .spine:hover { transform: translateY(-10px); }
  .spine[aria-expanded="true"] { transform: translateY(-26px); }
  .book-page { grid-template-columns: 1fr 1fr; gap: 2.6rem; min-height: 470px; align-content: start; }
  .book-page > :first-child { padding-right: 2.2rem; border-right: 1px solid var(--rule-pale); }
}

/* ---------- La dictée ---------- */
.dictee { padding-block: clamp(4rem, 9vw, 7.5rem); }
.dictee-text { font: 400 clamp(1.75rem, 3.6vw, 3.05rem)/1.32 var(--f-display); letter-spacing: -.012em; max-width: 30ch; }
.dictee-text .s { display: inline; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dictee-text .s { animation: ink-in linear both; animation-timeline: view(); animation-range: entry 10% cover 42%; }
  }
}
@keyframes ink-in { from { color: rgba(38, 47, 88, .18); } to { color: var(--ink); } }
.dictee-sign { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }

/* ---------- Formats ---------- */
.formats { display: grid; gap: 2.4rem; margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.fmt-main img { aspect-ratio: 4 / 3; }
.fmt-side { background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; align-content: start; }
.fmt-side img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; width: 100%; }
.fmt-caption { margin-top: 1.4rem; max-width: 52ch; }
@media (min-width: 900px) {
  .formats { grid-template-columns: 7fr 5fr; align-items: start; gap: 3.2rem; }
  .fmt-side { margin-top: 5rem; }
}

/* ---------- Le bulletin ---------- */
.bulletin { margin-top: clamp(2.4rem, 5vw, 3.6rem); background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-3); max-width: 1040px; transform: rotate(-.5deg); position: relative; }
.bulletin-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding: 1.3rem clamp(1.2rem, 3vw, 2.4rem); border-bottom: 2px solid var(--ink); font-size: .9rem; }
.bulletin-head strong { font: 400 1.5rem/1 var(--f-display); }
.bulletin-head span { color: var(--ink-soft); }
.bulletin table { width: 100%; border-collapse: collapse; }
.bulletin th { text-align: left; font: 600 .74rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 1rem clamp(1.2rem, 3vw, 2.4rem) .6rem; }
.bulletin td { padding: 1.1rem clamp(1.2rem, 3vw, 2.4rem); vertical-align: top; border-top: 1px solid var(--rule-pale); }
.bulletin td:first-child { width: 38%; }
.bulletin td:first-child strong { display: block; font: 400 1.45rem/1.15 var(--f-display); }
.bulletin td:first-child span { display: block; color: var(--ink-soft); font-size: .95rem; margin-top: .25rem; line-height: 1.45; }
.bulletin td.comment { font: 400 1.32rem/1.4 var(--f-hand); color: var(--pen); }
@media (max-width: 700px) {
  .bulletin { transform: none; }
  .bulletin thead { display: none; }
  .bulletin tr { display: block; border-top: 1px solid var(--rule-pale); padding: 1rem 1.2rem; }
  .bulletin td { display: block; border: 0; padding: 0; width: auto !important; }
  .bulletin td.comment { margin-top: .6rem; }
}

/* ---------- Mission quote ---------- */
.mission { padding-block: clamp(4rem, 8vw, 7rem); }
.mission blockquote { margin: 0; font: 400 clamp(2rem, 4.8vw, 4.1rem)/1.12 var(--f-display); letter-spacing: -.02em; max-width: 22ch; }
.mission figcaption { margin-top: 1.6rem; display: flex; align-items: center; gap: .9rem; color: var(--ink-soft); }
.mission figcaption img { width: 44px; height: auto; }
.mission figcaption strong { color: var(--ink); display: block; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 4rem; } .faq-grid .section-head { position: sticky; top: 110px; align-self: start; } }
.faq details { border-top: 1px solid rgba(38, 47, 88, .16); }
.faq details:last-child { border-bottom: 1px solid rgba(38, 47, 88, .16); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.3rem 0; font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.25 var(--f-display); border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(38, 47, 88, .25); display: grid; place-items: center; transition: transform .35s var(--spring), border-color .2s, background-color .2s; font-size: .8rem; }
.faq summary:hover .pm { border-color: var(--pen); color: var(--pen); }
.faq summary:active .pm { transform: scale(.92); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq .ans { padding: 0 3.4rem 1.5rem 0; color: var(--ink-soft); max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] .ans { animation: rise .45s var(--ease); } }

/* ---------- Agenda form ---------- */
.agenda-sec { padding-block: var(--s-section); }
.agenda-grid { display: grid; gap: 2.6rem; }
@media (min-width: 1000px) { .agenda-grid { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; } .agenda-aside { position: sticky; top: 110px; } }
.agenda-aside .contact-lines { margin-top: 1.8rem; display: grid; gap: .9rem; }
.agenda-aside .contact-lines a, .agenda-aside .contact-lines p { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 500; }
.agenda-aside .contact-lines i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sheet); box-shadow: var(--shadow-1); color: var(--pen); font-size: .85rem; flex-shrink: 0; }
.agenda-aside .contact-lines a:hover span { color: var(--pen); }
.agenda { border-radius: var(--radius); box-shadow: var(--shadow-3); overflow: hidden; }
.agenda-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem clamp(1.2rem, 3vw, 2rem); background: var(--ink); color: #fff; }
.agenda-top strong { font: 400 1.25rem/1.1 var(--f-display); }
.agenda-top .hand { color: #FFD9C2; font-size: 1.15rem; }
.agenda-body { padding: clamp(1.4rem, 3.2vw, 2.4rem) clamp(1.2rem, 3.2vw, 2.4rem) clamp(1.6rem, 3.2vw, 2.4rem) calc(var(--margin-x) + 12px); }
@media (max-width: 767px) { .agenda-body { padding-left: 44px; padding-right: 18px; } }
.q { border: 0; margin: 0 0 1.7rem; padding: 0; min-width: 0; }
.q legend, .field label { font: 600 .98rem/1.3 var(--f-body); color: var(--ink); margin-bottom: .7rem; padding: 0; display: block; }
.q legend .hand, .field label .hand { font-size: 1.05rem; margin-left: .35rem; }
.boxes { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.box { position: relative; display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; font-weight: 500; padding-right: .2rem; }
.box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box .sq { position: relative; width: 22px; height: 22px; border: 1.6px solid var(--ink); border-radius: 2px; background: var(--sheet); flex-shrink: 0; transition: border-color .2s, background-color .2s; }
.box .sq svg { position: absolute; left: -3px; top: -9px; width: 32px; height: 30px; overflow: visible; }
.box .sq path { fill: none; stroke: var(--pen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; transition: stroke-dashoffset .35s var(--ease); }
.box input:checked + .sq path { stroke-dashoffset: 0; }
.box:hover .sq { background: #FFF3EA; border-color: var(--pen); }
.box input:focus-visible + .sq { outline: 2px solid var(--rule); outline-offset: 3px; }
.box:active .sq { transform: scale(.94); }
.fields { display: grid; gap: 1.3rem 1.6rem; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1.05rem/1.4 var(--f-body); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(38, 47, 88, .45); border-radius: 0; padding: .55rem .1rem; min-height: 46px;
  transition: border-color .2s, background-color .2s;
}
.field select { cursor: pointer; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23262F58' stroke-width='1.6'/%3E%3C/svg%3E") right .3rem center no-repeat; padding-right: 1.8rem; }
.field textarea { min-height: calc(var(--line) * 4); resize: vertical; line-height: var(--line); padding-top: .15rem; background-image: linear-gradient(to bottom, transparent calc(var(--line) - 1px), rgba(64, 98, 172, .22) calc(var(--line) - 1px)); background-size: 100% var(--line); background-attachment: local; border-bottom: 0; }
.field input::placeholder, .field textarea::placeholder { color: #6B7290; }
.field input:hover, .field select:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--pen); background-color: rgba(246, 162, 107, .10); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--pen); }
.field.sign input { font: 400 1.6rem/1.2 var(--f-hand); color: var(--pen); }
.field.sign input::placeholder { font-family: var(--f-body); font-size: 1rem; color: #6B7290; }
.field .help { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.privacy-note { font-size: .78rem; color: rgba(38, 47, 88, .78); text-align: center; margin-top: 1.1rem; }
.privacy-note a { color: inherit; }
#status { margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: var(--radius); font-weight: 500; }
#status.success { background: #E9F4EE; color: #13502F; border-left: 3px solid #1E7A47; }
#status.error { background: #FCECEC; color: #8C1216; border-left: 3px solid var(--pen); }

/* ---------- Inner pages ---------- */
.crumbs { font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--pen); text-decoration: underline; }
.page-hero { padding-block: clamp(2.4rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.028em; max-width: 16ch; }
.page-hero .lede { margin-top: 1.4rem; }
.page-hero-grid { display: grid; gap: 2.4rem; }
.page-hero-grid .clipped img { aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 7fr 5fr; align-items: end; gap: 3.6rem; } .page-hero-grid .clipped { transform: rotate(-1.2deg); } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; padding: .65rem 0; }
.checklist li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: .25rem; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13c2.5 1.5 4 4 5 6 3-7 7-12 12-16' fill='none' stroke='%23B4181C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat; }

.split { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: 4.5rem; } .split.rev { grid-template-columns: 7fr 5fr; } }

.steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(38, 47, 88, .14); }
.steps li strong { display: block; font: 400 1.5rem/1.15 var(--f-display); margin-bottom: .35rem; }
.steps .verb { font: 400 1.35rem/1 var(--f-hand); color: var(--pen); padding-top: .25rem; transform: rotate(-4deg); }

.note-card { background: #FFF6EE; border-radius: var(--radius); padding: clamp(1.6rem, 3.4vw, 2.6rem); box-shadow: var(--shadow-2); position: relative; transform: rotate(.6deg); max-width: 880px; }
.note-card .tape { left: 16%; }
.note-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.note-card p { margin-top: .8rem; color: var(--ink-soft); max-width: 52ch; }
.note-card .hero-actions { margin-top: 1.4rem; }

.service-links { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
@media (min-width: 800px) { .service-links { grid-template-columns: repeat(2, 1fr); } }
.svc { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; align-items: center; background: var(--sheet); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-1); text-decoration: none; transition: transform .35s var(--spring), box-shadow .3s var(--ease); }
.svc img { aspect-ratio: 1; object-fit: cover; border-radius: 2px; width: 130px; }
.svc strong { display: block; font: 400 1.5rem/1.1 var(--f-display); }
.svc span { display: block; color: var(--ink-soft); font-size: .95rem; margin-top: .35rem; line-height: 1.45; }
.svc em { display: inline-flex; align-items: center; gap: .4rem; font-style: normal; font-weight: 600; font-size: .9rem; margin-top: .6rem; color: var(--pen); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.svc:active { transform: translateY(-1px); }

.subjects-list { display: grid; gap: 1.2rem; margin-top: 2.6rem; }
@media (min-width: 900px) { .subjects-list { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }
.subject { background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 1.6rem 1.6rem 1.6rem 2.2rem; position: relative; overflow: hidden; }
.subject::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--c); }
.subject h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.subject .levels { font: 400 1.25rem/1.2 var(--f-hand); color: var(--pen); margin: .4rem 0 .8rem; }
.subject ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.subject li { margin: .2rem 0; }

.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 2.4rem; }
.legal p { margin-top: .8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #262F58; color: #E7EAF4; padding-block: clamp(3.6rem, 7vw, 5.6rem) 2rem; position: relative; }
.site-footer a { text-decoration: none; }
.foot-top { display: grid; gap: 2.6rem; }
.foot-brand img { width: 250px; height: auto; margin-left: -10px; }
.foot-brand p { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.2 var(--f-display); color: #fff; margin-top: 1.2rem; max-width: 18ch; }
.foot-col h2 { font: 600 .76rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #AEB6D4; margin-bottom: 1.1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-col a { color: #E7EAF4; background: linear-gradient(var(--hl-soft), var(--hl-soft)) left bottom / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .2s; padding-bottom: 2px; }
.foot-col a:hover, .foot-col a:focus-visible { color: #fff; background-size: 100% 1.5px; }
.foot-col a:active { opacity: .7; }
.foot-col a:focus-visible, .foot-bottom a:focus-visible { outline-color: var(--hl-soft); }
.foot-col li i { color: var(--hl-soft); width: 1.2rem; }
.foot-bottom { margin-top: 3.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(231, 234, 244, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; font-size: .88rem; color: #AEB6D4; }
.foot-bottom a { color: #C9CFE4; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom a:hover { color: #fff; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 5fr 3fr 3fr 3fr; gap: 2rem; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  html.js .reveal.visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .drawer-page { transform: none; }
}
.toc-wrap { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html:not(.js) .js-only { display: none; }
a[href^="tel:"] { white-space: nowrap; }
.spine .sp-lvl { white-space: nowrap; }
@media (max-width: 440px) { .spine { font-size: 1.3rem; } .spine .sp-lvl { font-size: .62rem; letter-spacing: .1em; } }
.steps li { grid-template-columns: 1fr; gap: .35rem; }
.steps .verb { font-size: 1.25rem; transform: rotate(-3deg); transform-origin: left center; }
@media (min-width: 640px) { .steps li { grid-template-columns: 9.5rem 1fr; gap: 1rem; } }

/* ---------- Navy header (matches the footer and the logo's own background) ---------- */
.site-header, .site-header[class] { background: #262F58; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header .nav { height: 80px; }
.site-header .brand img { height: 64px; }
.site-header .brand:focus-visible, .site-header :focus-visible { outline-color: var(--hl-soft); }
.site-header .nav-links > li > a, .site-header .nav-links > li > button { color: #FFFFFF; }
.site-header .nav-links > li > a:hover { color: #FFFFFF; }
.site-header .nav-links .ink-line path { stroke: var(--hl-soft); }
.site-header .nav-panel a { color: var(--ink); }
.site-header .lang { color: #FFFFFF; }
.site-header .lang span { color: rgba(255, 255, 255, .72); }
.site-header .lang span.on { color: #FFFFFF; }
.site-header .lang .on svg path { stroke: var(--hl-soft); }
.site-header .lang .off svg path { stroke: #FFFFFF; }
.site-header .lang:hover .off, .site-header .lang:focus-visible .off { color: #FFFFFF; }
.site-header .btn.nav-cta { --bg: #FFFFFF; --fg: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 20px -8px rgba(0, 0, 0, .35); }
.site-header .btn.nav-cta:hover, .site-header .btn.nav-cta:focus-visible { color: var(--ink-deep); }
.site-header .ham { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #FFFFFF; }
.site-header .ham:hover { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .6) !important; }

/* ---------- Hero: rotating subject (défilement) ---------- */
.hero-display { font-size: clamp(3rem, 7.3vw, 7.1rem); }
.rot { display: inline-grid; justify-items: start; overflow: hidden; vertical-align: bottom; padding: .06em .04em .18em 0; margin: -.06em 0 -.18em; }
.rot > span { grid-area: 1 / 1; opacity: 0; transform: translateY(100%); }
.rot > span.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .rot > span { transition: transform .75s var(--ease), opacity .45s ease; }
  .rot > span.is-out { opacity: 0; transform: translateY(-100%); transition: transform .75s var(--ease), opacity .22s ease; }
}

/* ---------- About: founder letter, vision / mission ---------- */
html { scroll-padding-top: 104px; }
.letter { max-width: 780px; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: clamp(1.8rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem) clamp(1.8rem, 4vw, 2.6rem) calc(var(--margin-x) + 22px); border-radius: var(--radius); box-shadow: var(--shadow-3); font-size: 1.12rem; line-height: var(--line); transform: rotate(-.4deg); }
.letter p + p { margin-top: var(--line); }
.letter .letter-hello { font: 400 1.6rem/var(--line) var(--f-display); }
.letter-sign { display: flex; flex-direction: column; align-items: flex-start; }
.letter-sign .hand { font-size: 2.1rem; line-height: 1.1; transform: rotate(-3deg); }
.letter-sign span:last-child { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 767px) { .letter { padding-left: 44px; transform: none; } }
.vm-sec { padding-block: clamp(4rem, 8vw, 7rem); }
.vm { display: grid; gap: 3rem; }
.vm-item h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.12; margin: .5rem 0 1.1rem; }
@media (min-width: 900px) {
  .vm { grid-template-columns: 1fr 1fr; gap: 0; }
  .vm-item { padding-right: 3.5rem; }
  .vm-item + .vm-item { padding: 0 0 0 3.5rem; border-left: 1.5px solid rgba(180, 24, 28, .6); }
}

/* ---------- Form: newsletter consent, sciences note ---------- */
.newsletter { margin-top: 1.6rem; padding: 1rem 1.1rem; background: rgba(246, 162, 107, .14); border-radius: var(--radius); }
.newsletter .box { align-items: flex-start; }
.newsletter .box .sq { margin-top: .15rem; }
.newsletter .box strong { display: block; font-weight: 600; line-height: 1.4; }
.newsletter .box small { display: block; font-size: .86rem; color: var(--ink-soft); font-weight: 400; line-height: 1.45; margin-top: .15rem; }
.sci-note { color: var(--pen); }

/* ---------- Nav: more links, roomier breakpoint ---------- */
.nav-links { gap: 1.6rem; }
@media (min-width: 1080px) and (max-width: 1239px) { .nav-links, .nav-cta { display: none !important; } .ham { display: inline-flex !important; } }

/* Nav underline: under the word only, shorter and centred */
.nav-links .nl { position: relative; display: inline-block; }
.nav-links .nl .ink-line { left: 20%; right: auto; width: 60%; bottom: -7px; height: 7px; }
.nav-links .ink-line path { opacity: 0; transition: stroke-dashoffset .45s var(--ease), opacity .15s ease; }
.nav-links a:hover .ink-line path, .nav-links a:focus-visible .ink-line path, .nav-links [aria-current="page"] .ink-line path, .nav-item:focus-within > a .ink-line path { opacity: 1; stroke-dashoffset: 0; }

/* ---------- Home hero: tutoring video in the background ---------- */
.hero-video { position: relative; isolation: isolate; overflow: hidden; background: #1B2244; color: #fff; min-height: min(88vh, 860px); display: flex; align-items: center; }
.hv-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hv-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(27, 34, 68, .92) 0%, rgba(27, 34, 68, .78) 45%, rgba(27, 34, 68, .45) 100%),
  linear-gradient(0deg, rgba(27, 34, 68, .55), transparent 40%); }
.hero-video .hero { width: 100%; }
.hero-video .has-margin::before { border-left-color: rgba(246, 162, 107, .55); }
.hero-video .hero-display, .hero-video h1 { color: #fff; }
.hero-video .lede { color: rgba(255, 255, 255, .86); }
.hero-video .fix svg path { stroke: var(--hl-soft); }
.hero-video .fix ins { color: var(--hl-soft); }
.hero-video .fix ins::after { border-left-color: var(--hl-soft); }
.hero-video .fix del::after { border-top-color: var(--hl-soft); }
.hero-video .btn { --bg: #fff; --fg: var(--ink); }
.hero-video .tel-link { color: #fff; }
.hero-video .tel-link i { color: var(--hl-soft); }
.hero-video .hero-grid { grid-template-columns: minmax(0, 640px) !important; }
.hv-toggle { position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(27, 34, 68, .55); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s, transform .2s var(--spring); }
.hv-toggle:hover { background: rgba(27, 34, 68, .85); border-color: #fff; }
.hv-toggle:active { transform: scale(.94); }
.hv-toggle:focus-visible { outline: 2px solid var(--hl-soft); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hv-media { display: none; } .hero-video { background: #1B2244 url("/assets/video/tutorat-video-poster.webp") center / cover no-repeat; } .hv-toggle { display: none; } }
.fig-face { width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 50%; }

/* ---------- About: founder letter with photo and real signature ---------- */
.letter-wide { max-width: 900px; }
.letter-photo { float: right; width: min(42%, 300px); margin: -.4rem -1rem 1rem 1.6rem; transform: rotate(2deg); padding: 8px; }
.letter-photo img { aspect-ratio: 610 / 429; object-fit: cover; }
.letter-list { margin: 0; padding-left: 1.2rem; }
.letter-list li + li { margin-top: .2rem; }
.letter-motto { font: 400 clamp(1.6rem, 3vw, 2.2rem)/var(--line) var(--f-display); color: var(--pen); }
.letter-sign img { width: 260px; height: auto; margin-bottom: .3rem; transform: rotate(-2deg); }
.letter::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) { .letter-photo { float: none; width: 100%; margin: 0 0 1.2rem; transform: none; } }
.axes { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.axis { border-left: 3px solid var(--hl-soft); padding: .2rem 0 .2rem 1.1rem; }
.axis h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.more { margin-top: 1rem; }
.more summary { cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--pen); list-style: none; padding: .4rem 0; border-radius: var(--radius); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 1.1rem; transition: transform .3s var(--spring); }
.more[open] summary::after { transform: rotate(45deg); }
.more summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.more summary:active { opacity: .7; }
.more .stack { margin-top: .6rem; }
.values { list-style: none; margin: clamp(2.2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: 1px; background: var(--rule-pale); border: 1px solid var(--rule-pale); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.values li { background: var(--sheet); padding: clamp(1.3rem, 2.6vw, 2rem); }
.values li h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin-bottom: .5rem; display: flex; align-items: center; gap: .6rem; }
.values li h3::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13c2.5 1.5 4 4 5 6 3-7 7-12 12-16' fill='none' stroke='%23B4181C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .values li:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: center; background: #FFF6EE; }
  .values li:first-child h3 { font-size: 2.4rem; margin: 0; }
}

/* ---------- Hours and rates ---------- */
.rates { list-style: none; margin: clamp(2rem, 4vw, 2.8rem) 0 0; padding: 0; max-width: 1000px; }
.rates li { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1rem; padding: 1.1rem 0; }
.r-name strong { display: block; font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--f-display); }
.r-name small { display: block; color: var(--ink-soft); font-size: .95rem; margin-top: .25rem; }
.r-dots { border-bottom: 2px dotted rgba(38, 47, 88, .35); transform: translateY(-.55em); min-width: 2rem; }
.r-price { text-align: right; white-space: nowrap; }
.r-price b { font: 400 clamp(2rem, 4vw, 3.2rem)/1 var(--f-display); color: var(--ink); }
.r-price small { display: block; font-size: .85rem; color: var(--ink-soft); }
.r-price small:first-child { margin-bottom: .2rem; }
.rates-note { margin-top: 1.4rem; font-size: 1.05rem; }
.rates-note .hand { font-size: 1.3rem; margin-right: .3rem; }
@media (max-width: 640px) { .rates li { grid-template-columns: 1fr auto; } .r-dots { display: none; } }
.timetable { width: 100%; max-width: 1000px; border-collapse: collapse; margin-top: 2rem; background: var(--sheet); box-shadow: var(--shadow-2); border-radius: var(--radius); overflow: hidden; }
.timetable th, .timetable td { padding: .85rem 1.1rem; text-align: left; border-top: 1px solid var(--rule-pale); }
.timetable thead th { font: 600 .74rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-top: 0; background: #F1F4FA; }
.timetable tbody th { font: 400 1.2rem/1.2 var(--f-display); width: 9rem; }
.timetable td:nth-child(2) { white-space: nowrap; font-weight: 600; width: 11rem; }
.timetable tr.closed { color: var(--ink-soft); }
.timetable tr.closed td:nth-child(2) { font-weight: 400; font-style: italic; }
.tt-scale { position: relative; }
.tt-scale span { position: absolute; left: calc(1.1rem + var(--x) * (100% - 2.2rem)); top: 50%; transform: translate(-50%, -50%); }
.tt-bar { position: relative; min-width: 220px; }
.tt-bar::before { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; top: 50%; border-top: 1px dashed var(--rule-pale); }
.tt-bar span { position: absolute; top: 50%; height: 14px; transform: translateY(-50%); left: calc(1.1rem + var(--a) * (100% - 2.2rem)); width: calc((var(--b) - var(--a)) * (100% - 2.2rem)); background: var(--hl-soft); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(200, 80, 14, .25); }
@media (max-width: 700px) { .tt-scale, .tt-bar { display: none; } .timetable tbody th { width: auto; } }
.tt-notes { margin-top: 1.6rem; max-width: 70ch; display: grid; gap: .5rem; }
.letter p + .letter-list, .letter .letter-list + p { margin-top: var(--line); }
.tt-scale span { white-space: nowrap; }
.tt-scale span:last-child { transform: translate(-100%, -50%); }
.hero-video .has-margin::before { display: none; }
/* Phone: frame the tutor (right side of the video) instead of the centre */
@media (max-width: 767px) {
  .hv-media { object-position: 58% center; }
  .hero-video { background-position: 58% center; }
  .hv-shade { background: linear-gradient(180deg, rgba(27, 34, 68, .55) 0%, rgba(27, 34, 68, .72) 45%, rgba(27, 34, 68, .78) 100%); }
}

/* ---------- Thin red line under the navy bar ---------- */
.site-header, .site-header[class] { border-bottom: 1px solid var(--pen); }

/* ---------- "Sache que tu es capable." in orange, a little smaller ---------- */
.foot-brand p.slogan { color: var(--hl-soft); font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
h2.slogan { color: #C8500E; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.letter-motto { color: #C8500E; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* ---------- Activités éducatives: two reduced photos (young children + CEGEP) ---------- */
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: end; }
.duo figure { margin: 0; padding: 8px 8px 0; }
.duo img { width: 100%; object-fit: cover; border-radius: 2px; }
.duo-a { transform: rotate(1.6deg); }
.duo-a img { aspect-ratio: 4 / 5; }
.duo-b { transform: rotate(-2.4deg); margin-bottom: 2.2rem !important; }
.duo-b img { aspect-ratio: 381 / 256; }
.duo figcaption { font-size: 1.2rem; padding: .35rem .2rem .45rem; text-align: center; }
@media (min-width: 960px) {
  .duo { display: block; width: 100%; height: 440px; max-width: 480px; justify-self: end; }
  .duo-a { position: absolute; right: 0; top: 0; width: 56%; }
  .duo-b { position: absolute; left: 0; bottom: 0; width: 58%; margin: 0 !important; z-index: 1; }
}

/* ---------- "À l'affiche": pinned note on the home page ---------- */
.feat-note { position: fixed; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 380; width: min(340px, calc(100vw - 24px)); background: #FFF6EE; border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 10px; transform: rotate(-1.5deg); }
.feat-note[hidden] { display: none; }
.feat-note .tape { left: 50%; }
.feat-link { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: center; text-decoration: none; color: var(--ink); border-radius: var(--radius); padding-right: 1.6rem; }
.feat-media { width: 96px; height: 80px; object-fit: cover; border-radius: 2px; }
.feat-text { display: grid; gap: .2rem; line-height: 1.25; }
.feat-label { font: 400 1.15rem/1 var(--f-hand); color: var(--pen); }
.feat-text strong { font: 400 1.15rem/1.2 var(--f-display); }
.feat-more { font-size: .85rem; font-weight: 600; color: #C8500E; }
.feat-link:hover .feat-more { text-decoration: underline; text-underline-offset: 3px; }
.feat-link:active { opacity: .8; }
.feat-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.feat-close:hover { background: rgba(38, 47, 88, .08); color: var(--ink); }
.feat-close:active { transform: scale(.92); }
@media (prefers-reduced-motion: no-preference) {
  .feat-note.is-in { animation: feat-in .7s var(--spring) both, feat-nudge .6s 1.4s ease-in-out 2; }
}
@keyframes feat-in { from { opacity: 0; transform: translateY(40px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes feat-nudge { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1deg) scale(1.03); } }
.feat-big { width: 100%; aspect-ratio: 381 / 256; object-fit: cover; border-radius: 2px; }
.foot-note { margin-top: 2.6rem; font-size: .85rem; color: #AEB6D4; font-style: italic; max-width: 70ch; }
