/* ==========================================================================
   Lycée Sainte-Cécile d'Albi — feuille de style
   Un seul langage d'animation : courbe expo-out, arche + rideau de brique.
   ========================================================================== */

:root {
    --ease: cubic-bezier(.22, 1, .36, 1);
    /* Palette : bleu (principal), vert (secondaire), gris (neutre) — le rouge n'est qu'une touche d'accent */
    --brick: #2F6DB5;
    --brick-d: #1F4E8C;
    --terracotta: #4A8AD1;
    --ochre: #8FA3B5;
    --gold: #5FC79E;
    --emerald: #2A8C5F;
    --red: var(--brick);
    --charcoal: #1B222B;
    --charcoal-s: #252E39;

    --bg: #F3F6F9;
    --bg-2: #FFFFFF;
    --bg-3: #E8EDF2;
    --text: #1B222B;
    --muted: #5B6672;
    --accent: var(--brick);
    --blue: #2F6DB5;
    --green: #2A8C5F;
    --line: rgba(27, 34, 43, .1);
    --line-accent: rgba(47, 109, 181, .2);
    --glass: rgba(243, 246, 249, .8);
    --shadow: 0 18px 40px -18px rgba(27, 34, 43, .25);
    --glow-1: rgba(47, 109, 181, .2);
    --glow-2: rgba(42, 140, 95, .2);
    --r: 22px;
    --gutter: clamp(1rem, 4vw, 2rem);
}
.theme-sunset {
    --bg: #0F161E;
    --bg-2: #18222D;
    --bg-3: #141D27;
    --text: #EAF0F6;
    --muted: #9FAEBD;
    --accent: #7FB0F0;
    --line: rgba(234, 240, 246, .12);
    --line-accent: rgba(127, 176, 240, .28);
    --glass: rgba(15, 22, 30, .82);
    --shadow: 0 20px 44px -18px rgba(0, 0, 0, .6);
    --glow-1: rgba(47, 109, 181, .35);
    --glow-2: rgba(42, 140, 95, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background-color .6s var(--ease), color .6s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--brick); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.img-fail { opacity: 0 !important; }

.i { width: 1.15em; height: 1.15em; flex: none; }
.serif, h1, h2, h3, .brand-text strong, .stat strong { font-family: 'Cormorant Garamond', Georgia, serif; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brick); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brick); border-radius: 4px; }

/* ---------------------------------------------------------------- Mise en page */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 960px; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.grid { display: grid; gap: 1.75rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 3rem; }
.events { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.projects { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 3rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.block { display: block; }
.only-mobile { display: none; }
@media (max-width: 1023px) { .only-desktop { display: none !important; } .only-mobile { display: inline; } }

/* ---------------------------------------------------------------- Typographie */
.h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 700; letter-spacing: -.005em; }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 700; margin: 2.5rem 0 1rem; }
.on-dark { color: #fff; }
.eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.eyebrow-light { color: rgba(255, 255, 255, .85); }
.eyebrow-gold { color: var(--ochre); }
.prose p { margin-bottom: 1.1rem; font-size: 1.05rem; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }

/* Titres masqués mot à mot */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.wi { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line-inner { display: block; will-change: transform; }
.grad { background: linear-gradient(90deg, var(--brick), var(--terracotta), var(--ochre)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: .15em; }

/* ---------------------------------------------------------------- Boutons & petits éléments */
.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-accent); }
.glass-dark { background: rgba(20, 15, 12, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: 1rem 1.6rem; border-radius: 14px; font-weight: 700; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease), border-color .5s var(--ease); position: relative; overflow: hidden; }
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i:last-child { transform: translateX(4px); }
.btn-sm { padding: .7rem 1.05rem; font-size: .7rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brick), var(--terracotta)); color: #fff; box-shadow: 0 12px 26px -10px rgba(47, 109, 181, .6); }
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(47, 109, 181, .75); }
.btn-glass { background: var(--glass); border: 1px solid var(--line-accent); backdrop-filter: blur(10px); }
.btn-glass:hover, .btn-outline:hover { background: var(--brick); color: #fff; border-color: var(--brick); }
.btn-outline { border: 1.5px solid var(--line-accent); }
.btn-light { background: #fff; color: var(--emerald); }
.btn-light:hover { background: var(--bg); }
.btn-ghost { background: rgba(0, 0, 0, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(0, 0, 0, .38); }
.cta-band .btn-light { color: var(--brick-d); }

.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; font-size: 1.05rem; transition: background-color .4s var(--ease); }
.icon-btn:hover { background: rgba(47, 109, 181, .12); }
.i-moon { display: none; }
.theme-sunset .i-sun { display: none; }
.theme-sunset .i-moon { display: inline; }
#theme-toggle { color: #C77F14; }
.theme-sunset #theme-toggle { color: var(--gold); }

.tag { display: inline-block; padding: .28rem .7rem; border-radius: 99px; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; background: color-mix(in srgb, var(--c, var(--brick)) 14%, transparent); color: var(--c, var(--brick)); }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 99px; font-size: .72rem; font-weight: 700; border: 1px solid transparent; }
.badge.b0 { background: rgba(47, 109, 181, .1); color: var(--brick); border-color: rgba(47, 109, 181, .25); text-transform: uppercase; letter-spacing: .06em; }
.badge.b1 { background: rgba(42, 140, 95, .12); color: var(--emerald); border-color: rgba(42, 140, 95, .25); }
.badge.b2 { background: rgba(143, 163, 181, .18); color: var(--brick-d); border-color: rgba(143, 163, 181, .4); }
.theme-sunset .badge.b1 { color: #6FD3A2; }
.theme-sunset .badge.b2 { color: var(--ochre); }
.badge-solid { display: inline-block; padding: .4rem 1rem; border-radius: 99px; background: rgba(47, 109, 181, .88); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.badge-solid.light { background: rgba(255, 255, 255, .2); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); transition: gap .5s var(--ease); }
.link-arrow:hover { gap: .95rem; }
.link-arrow.light { color: var(--terracotta); }
.link-back { display: inline-flex; gap: .4rem; align-items: center; margin: 1.6rem auto 0; font-size: .78rem; font-weight: 700; color: var(--muted); }
.link-back:hover { color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.actions.center { justify-content: center; margin-top: 1.5rem; }
.magnetic { display: inline-block; }
.magnetic.block { display: block; }

/* ---------------------------------------------------------------- Écrans de transition */
#preloader, #curtain { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
#curtain { z-index: 190; }
.is-preload #preloader { visibility: visible; pointer-events: all; }
.is-curtain #curtain { visibility: visible; pointer-events: all; }
.pl-panel, .cu-panel { position: absolute; inset: 0; will-change: transform; }
.pl-a, .cu-a { background: var(--charcoal); }
.pl-b, .cu-b { background: var(--brick); }
.pl-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; color: #fff; }
.pl-arch { width: 92px; height: 110px; }
.pl-brand { text-align: center; }
.pl-brand p { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .03em; }
.pl-brand span { display: block; margin-top: .25rem; font-size: .62rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ochre); }
#pl-count { font-family: 'Cormorant Garamond', serif; letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.cu-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 6vw, 4rem); font-weight: 700; color: #fff; letter-spacing: .02em; }

#progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--brick), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------------------------------------------------------------- En-tête */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px var(--gutter); }
.bar { max-width: 1240px; margin-inline: auto; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .9rem .6rem 1rem; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark { width: 42px; height: 42px; border-radius: 50% 50% 10px 10px; background: linear-gradient(135deg, var(--brick), var(--ochre)); color: #fff; display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.25rem; box-shadow: 0 8px 18px -8px rgba(47, 109, 181, .7); transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.08) rotate(-4deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.brand-text small { font-size: .58rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.brand-light .brand-text small { color: var(--ochre); }
.nav { display: flex; gap: .3rem; }
.nav-link { position: relative; padding: .55rem .85rem; font-size: .84rem; font-weight: 600; border-radius: 10px; transition: color .4s var(--ease); }
.nav-link::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--brick); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--accent); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: .3rem; }
.burger { display: none; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .6s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1023px) {
    .nav, .cta-wrap { display: none; }
    .burger { display: inline-grid; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* Menu plein écran */
#drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--gutter) 2rem; transition: visibility 0s linear .9s; }
#drawer.open { visibility: visible; transition: none; }
.drawer-bg { position: absolute; inset: 0; background: var(--charcoal); clip-path: circle(0% at calc(100% - 2.6rem) 2.6rem); transition: clip-path .9s var(--ease); }
#drawer.open .drawer-bg { clip-path: circle(150% at calc(100% - 2.6rem) 2.6rem); }
.drawer-nav { position: relative; display: flex; flex-direction: column; gap: .2rem; }
.drawer-link { display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .9s var(--ease), color .4s; }
#drawer.open .drawer-link { opacity: 1; transform: none; }
#drawer.open .drawer-link:nth-child(1) { transition-delay: .25s; } #drawer.open .drawer-link:nth-child(2) { transition-delay: .31s; }
#drawer.open .drawer-link:nth-child(3) { transition-delay: .37s; } #drawer.open .drawer-link:nth-child(4) { transition-delay: .43s; }
#drawer.open .drawer-link:nth-child(5) { transition-delay: .49s; } #drawer.open .drawer-link:nth-child(6) { transition-delay: .55s; }
#drawer.open .drawer-link:nth-child(7) { transition-delay: .61s; }
.drawer-link .num { font-size: .75rem; font-weight: 700; color: var(--terracotta); min-width: 2rem; }
.drawer-link .lbl { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; line-height: 1.1; }
.drawer-link:hover { color: var(--gold); }
.drawer-ent .lbl { color: #7FE0B0; }
.drawer-foot { position: relative; margin-top: 2rem; font-size: .8rem; color: rgba(255, 255, 255, .55); opacity: 0; transition: opacity .8s .7s; }
#drawer.open .drawer-foot { opacity: 1; }

/* ---------------------------------------------------------------- Hero (accueil) */
.hero { position: relative; min-height: 100svh; padding: 8.5rem 0 5rem; display: flex; align-items: center; overflow: hidden; }
.hero-bricks { position: absolute; inset: -6% 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cg fill='none' stroke='%235B7A99' stroke-opacity='.17'%3E%3Cpath d='M0 .5H72M0 18.5H72M.5 0V18M36.5 18V36'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-image: radial-gradient(ellipse at 62% 40%, #000 8%, transparent 68%); mask-image: radial-gradient(ellipse at 62% 40%, #000 8%, transparent 68%); }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.blob-a { width: 620px; height: 620px; background: var(--glow-1); left: 50%; margin-left: -310px; top: 20%; }
.blob-b { width: 420px; height: 420px; background: var(--glow-2); right: 2%; bottom: 0; }
.dust { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .55; filter: blur(.5px); animation: floaty 9s ease-in-out infinite; pointer-events: none; }
.dust.d1 { left: 8%; top: 32%; } .dust.d2 { left: 47%; top: 80%; width: 5px; height: 5px; animation-delay: -3s; } .dust.d3 { right: 9%; top: 24%; width: 9px; height: 9px; animation-delay: -6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(10px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-title { font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -.012em; }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 40rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.75rem; margin-top: .5rem; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--brick); line-height: 1; font-weight: 700; }
.stat span { display: block; margin-top: .35rem; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.hero-visual { display: flex; justify-content: center; }
.arch-wrap { position: relative; width: 100%; max-width: 430px; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; background: linear-gradient(160deg, var(--brick), var(--ochre)); box-shadow: 0 40px 70px -30px rgba(158, 50, 28, .55); border: 4px solid rgba(255, 255, 255, .35); }
.arch-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .05) 60%); }
.hero-badge { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 18px; }
.hb-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brick); display: grid; place-items: center; flex: none; }
.hero-badge strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; line-height: 1.1; }
.hero-badge small { font-size: .72rem; opacity: .8; }
.seal { position: absolute; top: -1.6rem; right: -1.6rem; width: 128px; height: 128px; color: var(--brick); }
.seal svg { width: 100%; height: 100%; border-radius: 50%; background: var(--bg-2); box-shadow: var(--shadow); border: 1px solid var(--line-accent); padding: 4px; }
.seal-rot { transform-origin: 100px 100px; }
.seal text { font-weight: 700; }
.seal-sc { font-family: 'Cormorant Garamond', serif; }
@media (max-width: 960px) {
    .hero { padding-top: 7.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .arch-wrap { max-width: 360px; }
    .seal { right: -.6rem; width: 104px; height: 104px; }
}

/* ---------------------------------------------------------------- Bandeau défilant */
.marquee { overflow: hidden; background: linear-gradient(90deg, var(--brick), var(--terracotta), var(--brick)); color: #fff; padding: 1rem 0; margin-block: 1.5rem; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; flex: none; font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.marquee-group i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.no-js-marquee { animation: none; }

/* ---------------------------------------------------------------- Portail en arche */
.portal { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--charcoal); }
.portal-word { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 34vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(95, 199, 158, .22); white-space: nowrap; user-select: none; pointer-events: none; }
.portal-mask { position: absolute; inset: 0; background: linear-gradient(160deg, var(--brick), var(--charcoal)); overflow: hidden; }
.portal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.portal-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 1.5rem; }
.portal-text h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.08; font-weight: 700; max-width: 16ch; margin: 0 auto; }
.portal-text p { margin-top: 1.1rem; max-width: 34rem; color: rgba(255, 255, 255, .85); }
.portal-hint { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--ochre); }
.portal-hint .i { margin-left: .4rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* ---------------------------------------------------------------- Manifeste */
.manifesto { padding-block: clamp(5rem, 12vw, 9rem); text-align: center; max-width: 1060px; }
.manifesto-text { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.18; letter-spacing: -.005em; }
.manifesto-text .wr { display: inline-block; margin-right: .26em; }
.manifesto-text .wr.hl { color: var(--brick); font-style: italic; }

/* ---------------------------------------------------------------- Zoom arrière */
.zoom { position: relative; height: 100vh; min-height: 520px; overflow: hidden; background: linear-gradient(160deg, var(--charcoal), var(--brick-d)); color: #fff; }
.zoom-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .6)); }
.zoom-text { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 1.5rem; gap: 1rem; }
.zoom-text h2 { font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: 1.05; font-weight: 700; max-width: 16ch; }
.zoom-text p { font-size: clamp(1rem, 2vw, 1.3rem); max-width: 40rem; color: rgba(255, 255, 255, .9); font-weight: 300; }

/* ---------------------------------------------------------------- Pavillons */
.pavilions { background: var(--charcoal); color: #fff; padding: 4.5rem 0; overflow: hidden; }
.pav-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.pav-meta { display: flex; align-items: center; gap: 1.25rem; font-size: .78rem; color: rgba(255, 255, 255, .6); }
.pav-meta b { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--ochre); }
.pav-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.pav-wrap::-webkit-scrollbar { display: none; }
.pav-track { display: flex; gap: 1.5rem; width: max-content; padding-inline: var(--gutter); }
.pav-card { position: relative; flex: none; scroll-snap-align: center; width: min(85vw, 500px); height: min(540px, 66vh); min-height: 430px; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--charcoal-s), var(--brick-d)); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; }
.pav-img { position: absolute; inset: 0; overflow: hidden; }
.pav-photo { position: absolute; left: -8%; top: 0; width: 116%; height: 100%; object-fit: cover; opacity: .42; }
.pav-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 40%, rgba(0, 0, 0, .35)); }
.pav-top, .pav-bottom { position: relative; }
.pav-label { font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); }
.pav-top h3 { margin-top: .5rem; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.1; }
.pav-bottom { padding: 1.4rem; border-radius: 20px; }
.pav-bottom p { font-size: .9rem; color: rgba(255, 255, 255, .88); margin-bottom: 1rem; }
.pav-bar { margin-top: 2rem; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; padding: 0; }
.pav-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brick), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }
@media (min-width: 1024px) {
    .anim-ready .pavilions { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 3rem 0; }
    .anim-ready .pav-wrap { overflow: visible; scroll-snap-type: none; }
}

/* ---------------------------------------------------------------- Sections & cartes */
.section-head { margin-bottom: 3rem; }
.section-head.is-center { text-align: center; margin-bottom: 1.5rem; }
.section-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.section-row .section-head { margin-bottom: 0; }

.card { --c: var(--brick); position: relative; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.card-media { position: relative; display: block; height: 170px; overflow: hidden; background: linear-gradient(135deg, var(--c), var(--ochre)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.card-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c, var(--brick)); color: #fff; font-size: 1.2rem; }
.card-media .card-ico { position: absolute; left: 1.25rem; bottom: -1px; border-radius: 14px 14px 0 0; }
.card-ico.big { width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; }
.card-body { padding: 1.4rem 1.5rem .6rem; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.card-title { font-size: 1.7rem; line-height: 1.1; font-weight: 700; }
.card-title a { transition: color .5s var(--ease); }
.card:hover .card-title a { color: var(--c); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-sub { margin-top: .4rem; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ochre); }
.card-text { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 1rem 1.5rem 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fact { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; color: var(--emerald); }
.theme-sunset .fact { color: #6FD3A2; }
.btn-mini { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 12px; font-size: .72rem; font-weight: 800; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); transition: background-color .5s var(--ease), color .5s var(--ease); }
.card:hover .btn-mini { background: var(--c); color: #fff; }
.tilt-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); z-index: 3; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; padding: .45rem; margin-bottom: 2.5rem; border-radius: 18px; background: rgba(47, 109, 181, .06); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.chip { padding: .6rem 1rem; border-radius: 12px; font-size: .78rem; font-weight: 700; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); border: 1px solid transparent; }
.chip:hover { background: rgba(47, 109, 181, .1); }
.chip.is-active { background: var(--brick); color: #fff; box-shadow: 0 8px 18px -8px rgba(47, 109, 181, .7); }
.empty { padding: 3rem 0; }

/* ---------------------------------------------------------------- ÉcoleDirecte */
.ent { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2.5rem; padding: clamp(2rem, 6vw, 4rem); border-radius: 30px; color: #fff; background: linear-gradient(120deg, var(--emerald), #1F5A56, var(--emerald)); box-shadow: var(--shadow); }
.ent-bricks { opacity: .35; }
.ent-copy { position: relative; max-width: 40rem; }
.ent-copy p { margin: 1rem 0 2rem; color: rgba(255, 255, 255, .85); }
.ent-panel { position: relative; min-width: min(100%, 300px); padding: 1.5rem; border-radius: 20px; }
.ent-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: .9rem; }
.ent-panel-top span { display: inline-flex; align-items: center; gap: .5rem; }
.ent-panel-top em { font-style: normal; font-size: .62rem; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; background: rgba(110, 231, 183, .3); }
.ent-panel li { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; padding: .35rem 0; }
.ent-panel li span { display: inline-flex; align-items: center; gap: .5rem; }
.ent-panel li small { opacity: .6; }

/* ---------------------------------------------------------------- Témoignages / agenda / projets */
.quote { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); }
.stars { display: flex; gap: .2rem; color: #E5A93C; margin-bottom: 1rem; font-size: .8rem; }
.stars .i { fill: currentColor; }
.quote blockquote { font-style: italic; font-size: .95rem; }
.quote figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.quote figcaption strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; line-height: 1.1; }
.quote figcaption small { font-size: .72rem; font-weight: 700; color: var(--accent); }
.avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--brick), var(--ochre)); border: 2px solid var(--brick); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.event { --c: var(--brick); display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; padding: 1.75rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); }
.event-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.event-date { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 800; color: var(--c); }
.event h3 { font-size: 1.55rem; line-height: 1.12; }
.event p { font-size: .9rem; color: var(--muted); }
.event-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .75rem; }
.event-foot .muted { display: inline-flex; align-items: center; gap: .35rem; }

.project { --c: var(--brick); padding: 2rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); transform-style: preserve-3d; position: relative; overflow: hidden; }
.project h3 { margin-top: 1.25rem; font-size: 1.6rem; }
.project p { margin-top: .6rem; font-size: .92rem; color: var(--muted); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-top: 2rem; }
.menu-day { padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--glass); border: 1px solid var(--line-accent); font-size: .88rem; }
.menu-day b { display: block; margin-bottom: .4rem; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--accent); }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--brick-d), var(--brick), var(--terracotta)); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.12'%3E%3Cpath d='M0 .5H72M0 18.5H72M.5 0V18M36.5 18V36'/%3E%3C/g%3E%3C/svg%3E"); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner p { margin-top: .75rem; max-width: 34rem; color: rgba(255, 255, 255, .9); }

/* ---------------------------------------------------------------- Pages intérieures */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--charcoal), var(--brick-d) 70%, var(--brick)); padding: 9rem 0 4.5rem; }
.ph-bg { position: absolute; inset: -12% 0; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 18, 26, .88), rgba(12, 18, 26, .35) 60%, rgba(12, 18, 26, .55)); }
.ph-arch { position: absolute; right: max(2vw, 1rem); bottom: -2px; width: min(30vw, 340px); aspect-ratio: 3 / 4; border: 1.5px solid rgba(95, 199, 158, .35); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.ph-inner { position: relative; }
.ph-title { font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1.02; font-weight: 700; max-width: 16ch; letter-spacing: -.01em; }
.ph-intro { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1rem, 1.7vw, 1.2rem); color: rgba(255, 255, 255, .88); }
.ph-scroll { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; display: grid; place-items: center; animation: bob 1.8s ease-in-out infinite; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; font-size: .76rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: #fff; }
.crumbs .i { width: .9em; height: .9em; opacity: .6; }
@media (max-width: 700px) { .ph-arch { display: none; } .page-hero { min-height: 68vh; } }

/* Fiche formation */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 3.5rem; align-items: start; }
.detail-main .h3:first-child { margin-top: 0; }
.checklist { display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.checklist .i { color: var(--brick); margin-top: .25rem; }
.checklist.alt .i { color: var(--emerald); }
.theme-sunset .checklist.alt .i { color: #6FD3A2; }
.detail-side { position: sticky; top: 6.5rem; }
.side-card { --c: var(--brick); padding: 2rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); }
.side-card h3 { font-size: 1.6rem; margin: 1rem 0 1rem; }
.side-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin: 1.5rem 0 .3rem; }
.side-card dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .85rem; margin-bottom: 1rem; }
.side-card dt { color: var(--muted); }
.side-card dd { font-weight: 700; text-align: right; }
.facts { display: grid; gap: .5rem; margin-bottom: 1.5rem; font-size: .85rem; font-weight: 600; }
.facts li { display: flex; gap: .5rem; align-items: center; }
.facts .i { color: var(--emerald); }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; } }
.next-band { background: var(--charcoal); color: #fff; }
.next-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 3.5rem; }
.next-inner strong { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); flex: 1; transition: transform .8s var(--ease), color .5s; }
.next-inner .i { width: 2.4rem; height: 2.4rem; transition: transform .8s var(--ease); }
.next-inner:hover strong { transform: translateX(14px); color: var(--gold); }
.next-inner:hover .i { transform: translateX(10px); }
.next-inner .eyebrow { flex-basis: 100%; margin: 0; }

/* Carte interactive */
.map-box { margin-top: 2.5rem; padding: clamp(1rem, 3vw, 2rem); border-radius: 28px; background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); }
.map { position: relative; aspect-ratio: 16 / 9; min-height: 340px; border-radius: 20px; overflow: hidden; background: linear-gradient(140deg, #1A1614, #2B3A4A 60%, var(--brick-d)); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(1); }
.pin { --c: var(--brick); position: absolute; width: 38px; height: 38px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.pin-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--c); animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.7); opacity: .2; } }
.pin-core { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pin.is-active .pin-core { transform: scale(1.22); box-shadow: 0 0 0 5px rgba(255, 255, 255, .85), 0 8px 20px rgba(0, 0, 0, .4); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chips .chip { border-color: var(--line); }
.pin-card { margin-top: 1.25rem; padding: 1.5rem; border-radius: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.pin-card-body { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 260px; }
.pin-icon { --c: var(--brick); flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.4rem; transition: background-color .5s var(--ease); }
.pin-card h3 { font-size: 1.6rem; line-height: 1.1; }
.pin-card p { margin-top: .3rem; font-size: .88rem; color: var(--muted); }

/* Quiz */
.quiz { padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 28px; box-shadow: var(--shadow); }
.quiz-dots { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.quiz-dots i { width: .5rem; height: .375rem; border-radius: 99px; background: var(--line); transition: width .6s var(--ease), background-color .6s var(--ease); }
.quiz-dots i.on { width: 2rem; background: var(--brick); }
.quiz-step.is-hidden { display: none; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin-top: 1.75rem; }
.quiz-opt { text-align: left; display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .5s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.quiz-opt:hover { border-color: var(--brick); transform: translateY(-4px); box-shadow: var(--shadow); }
.quiz-opt .card-ico { margin-bottom: .5rem; }
.quiz-opt strong { font-size: .95rem; }
.quiz-opt small { color: var(--muted); font-size: .78rem; }
.star-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(42, 140, 95, .18); color: var(--emerald); font-size: 1.8rem; margin-bottom: 1rem; }
.result { text-align: left; padding: 1.75rem; border-radius: 20px; margin: 1.5rem 0; border-color: rgba(42, 140, 95, .35); }
.result h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; margin: .8rem 0 .5rem; line-height: 1.1; }
.result p { color: var(--muted); margin-bottom: 1rem; }
.result .badge-solid { background: var(--emerald); }

/* Agenda : frise verticale */
.timeline { position: relative; padding-left: 2.6rem; display: grid; gap: 2rem; }
.timeline-line { position: absolute; left: .55rem; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-line i { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--brick), var(--gold)); transform: scaleY(0); transform-origin: 50% 0; }
.timeline-item { position: relative; }
.dot { position: absolute; left: -2.6rem; top: 2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--brick); box-shadow: 0 0 0 5px var(--bg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px; box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 1rem; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; margin-bottom: .35rem; padding: 0; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea, .searchbox { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: .92rem; outline: none; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brick); box-shadow: 0 0 0 4px rgba(47, 109, 181, .14); }
.field.has-error input, .field.has-error textarea { border-color: #D33; }
.radios { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.radios legend { width: 100%; }
.radios label { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; font-weight: 600; }
.radios input { accent-color: var(--brick); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .7rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-radius: 14px; font-weight: 600; font-size: .9rem; }
.alert.ok { background: rgba(42, 140, 95, .15); color: var(--emerald); }
.theme-sunset .alert.ok { color: #6FD3A2; }
.alert.bad { background: rgba(211, 51, 51, .12); color: #D33; }
.contact-list { display: grid; gap: .7rem; font-size: .88rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-list .i { color: var(--terracotta); margin-top: .2rem; }
.contact-list a:hover { text-decoration: underline; }

.prose-wrap .h3 { margin-top: 2.5rem; }
.notfound { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem; padding-top: 9rem; }
.nf-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(7rem, 24vw, 16rem); line-height: .8; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--brick); }

/* ---------------------------------------------------------------- Modale de recherche */
.modal { position: fixed; inset: 0; z-index: 180; display: flex; align-items: flex-start; justify-content: center; padding: 6rem 1rem 1rem; background: rgba(10, 6, 4, .68); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.modal.open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.modal-card { width: 100%; max-width: 640px; border-radius: 26px; padding: 1.25rem; background: var(--bg-2); border: 1px solid var(--line-accent); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: translateY(36px) scale(.96); transition: transform .8s var(--ease); }
.modal.open .modal-card { transform: none; }
.search-row { display: flex; align-items: center; gap: .8rem; padding: .3rem .5rem .9rem; border-bottom: 1px solid var(--line); color: var(--brick); }
.search-row input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; font-weight: 600; min-width: 0; }
#search-results { display: grid; gap: .3rem; margin-top: .9rem; max-height: 55vh; overflow-y: auto; }
#search-results a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; font-weight: 700; font-size: .92rem; transition: background-color .4s var(--ease); }
#search-results a:hover { background: rgba(47, 109, 181, .1); }
#search-results a small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 6px; background: rgba(47, 109, 181, .12); color: var(--brick); white-space: nowrap; }

/* ---------------------------------------------------------------- Pied de page */
.footer { background: var(--charcoal); color: #fff; padding-top: 5rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { margin: 1.25rem 0; color: rgba(255, 255, 255, .7); max-width: 26rem; }
.footer .contact-list { color: rgba(255, 255, 255, .85); }
.footer h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .5rem; color: rgba(255, 255, 255, .7); }
.footer-col a { transition: color .4s; }
.footer-col a:hover { color: #fff; }
.footer .accent { color: #6FD3A2; font-weight: 700; }
.footer-word { overflow: hidden; padding: 1.5rem 0; }
.footer-word span { display: block; text-align: center; white-space: nowrap; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 15vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(143, 163, 181, .25); user-select: none; will-change: transform; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem 2rem; font-size: .72rem; color: rgba(255, 255, 255, .5); }
.socials { display: flex; gap: .5rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); transition: background-color .5s var(--ease), transform .5s var(--ease), color .5s; }
.socials a:hover { background: var(--brick); color: #fff; transform: translateY(-3px); }

/* Transition de thème circulaire (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* Bandeau : secours CSS quand GSAP n'est pas disponible */
@keyframes marq { to { transform: translateX(-50%); } }


/* ==========================================================================
   MOUVEMENT PERMANENT + EFFETS « UNE JOURNÉE À ALBI »
   Tout ce bloc bouge tout seul, même sans faire défiler la page.
   ========================================================================== */
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 33% { translate: 60px -40px; } 66% { translate: -50px 30px; } }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 12px 26px -10px rgba(47, 109, 181, .55), 0 0 0 0 rgba(47, 109, 181, .35); } 50% { box-shadow: 0 16px 34px -8px rgba(47, 109, 181, .8), 0 0 0 12px rgba(47, 109, 181, 0); } }
@keyframes shine { 0% { transform: translateX(-130%) skewX(-20deg); } 55%, 100% { transform: translateX(330%) skewX(-20deg); } }
@keyframes waveMove { to { transform: translateX(-50%); } }
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes cloudMove { from { translate: -30vw 0; } to { translate: 130vw 0; } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } to { transform: translateY(-110vh); opacity: 0; } }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
@keyframes borderRun { to { background-position: 300% 0; } }

/* Titre : reflet doré qui glisse en continu */
.grad { background-size: 200% auto; animation: shimmer 5s linear infinite; }
/* Sceau qui tourne */
.seal-rot { transform-box: view-box; transform-origin: 50% 50%; animation: spin 24s linear infinite; }
.seal:hover .seal-rot { animation-duration: 3s; }
/* Grandes taches de lumière qui dérivent */
.blob-a { animation: drift 16s ease-in-out infinite; }
.blob-b { animation: drift 20s ease-in-out infinite reverse; }
/* Photo de l'arche : lent zoom « documentaire » */
.kb { position: absolute; inset: 0; animation: kenburns 16s ease-in-out infinite alternate; }
.kb .arch-img { position: absolute; }
.ph-bg img { animation: kenburns 22s ease-in-out infinite alternate; }
/* Boutons : lueur qui pulse + reflet qui traverse */
.btn-primary { animation: glowPulse 3.2s ease-in-out infinite; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
.btn .ripple, .btn-mini .ripple { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(255, 255, 255, .45); animation: ripple .8s var(--ease) forwards; pointer-events: none; }
/* Poussière dorée : neuf grains qui flottent à des rythmes différents */
.dust.d4 { left: 22%; top: 60%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: -2s; }
.dust.d5 { left: 60%; top: 18%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: -5s; }
.dust.d6 { right: 22%; top: 68%; width: 8px; height: 8px; animation-duration: 13s; animation-delay: -1s; }
.dust.d7 { left: 36%; top: 12%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: -7s; background: var(--brick); }
.dust.d8 { right: 40%; top: 86%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: -4s; background: var(--brick); }
.dust.d9 { left: 3%; top: 78%; width: 9px; height: 9px; animation-duration: 15s; animation-delay: -9s; }
/* Étiquettes du bandeau : petit balancement */
.badge { animation: breathe 4s ease-in-out infinite; }
.badge:nth-child(2) { animation-delay: -1.3s; } .badge:nth-child(3) { animation-delay: -2.6s; }
.card-ico, .pin-icon, .star-ico { animation: breathe 3.6s ease-in-out infinite; }
.brand-mark { animation: sway 5s ease-in-out infinite; }
.next-inner .i, .link-arrow .i { transition: transform .6s var(--ease); }
.hero-badge .hb-ico { animation: breathe 2.8s ease-in-out infinite; }
.portal-hint .i, .ph-scroll { animation: bob 1.6s ease-in-out infinite; }

/* Cathédrale et rivière en filigrane derrière le hero */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; min-height: 200px; pointer-events: none; opacity: .9; }
.skyline path { fill: none; stroke: var(--brick); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .38; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.skyline .sk-river { stroke: var(--gold); opacity: .6; stroke-dasharray: .04 .02; animation: riverFlow 6s linear infinite; }
@keyframes riverFlow { to { stroke-dashoffset: -1; } }
.hero-grid { z-index: 1; }

/* Une journée à Albi : ciel fixe derrière tout le contenu */
#sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#sky .sun { position: absolute; left: 6vw; top: 12vh; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF1B8, #FFC94D 55%, #FF9A3C); box-shadow: 0 0 80px 30px rgba(255, 190, 70, .55); will-change: transform, background; }
#sky .sun-halo { position: absolute; left: calc(6vw - 90px); top: calc(12vh - 90px); width: 310px; height: 310px; border-radius: 50%; border: 2px solid rgba(255, 190, 70, .35); animation: breathe 4s ease-in-out infinite; will-change: transform; }
#sky .cloud { position: absolute; height: 34px; border-radius: 40px; background: rgba(255, 255, 255, .7); box-shadow: 40px -14px 0 8px rgba(255, 255, 255, .7), 90px 0 0 0 rgba(255, 255, 255, .7); animation: cloudMove 70s linear infinite; }
#sky .c1 { top: 22vh; width: 90px; }
#sky .c2 { top: 58vh; width: 60px; opacity: .6; animation-duration: 110s; animation-delay: -40s; }
.theme-sunset #sky .cloud { background: rgba(170, 200, 240, .18); box-shadow: 40px -14px 0 8px rgba(170, 200, 240, .18), 90px 0 0 0 rgba(170, 200, 240, .18); }
.theme-sunset #sky .sun { background: radial-gradient(circle at 35% 35%, #FFE7C2, #FF9A5C 55%, #E0492F); box-shadow: 0 0 90px 36px rgba(224, 90, 50, .5); }
.section, .manifesto { position: relative; }

/* Briques qui se posent pour dévoiler une image */
.brick-cover { position: absolute; inset: 0; z-index: 4; display: grid; pointer-events: none; }
.brick-cover i { display: block; background: linear-gradient(135deg, var(--brick), var(--brick-d)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

/* Traînée de briques du curseur + confettis */
#trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 240; pointer-events: none; }

/* Notification */
#toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 260; transform: translate(-50%, 30px); opacity: 0; max-width: min(92vw, 520px); padding: .85rem 1.2rem; border-radius: 14px; background: var(--charcoal); color: #fff; font-size: .85rem; font-weight: 600; pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#motion-toggle { color: var(--brick); }
.no-motion #motion-toggle { opacity: .45; }

/* La rivière : deux vagues qui glissent (boucle sans couture) et se fondent dans le pied de page */
.waves { position: relative; height: 84px; overflow: hidden; margin-top: -1px; background: transparent; }
.wave { position: absolute; left: 0; bottom: -1px; width: 200%; height: 100%; }
.wave.w1 path { fill: var(--brick-d); }
.wave.w2 path { fill: var(--charcoal); }
.wave.w1 { animation: waveMove 16s linear infinite; }
.wave.w2 { animation: waveMove 10s linear infinite reverse; }

/* Bandeau 2 : lettres creuses qui défilent à contre-sens */
.marquee-outline { background: transparent; color: transparent; padding: .4rem 0; margin-block: 0; }
.marquee-outline .marquee-group { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 9vw, 7rem); font-weight: 700; letter-spacing: .02em; gap: 2.5rem; -webkit-text-stroke: 1.5px var(--brick); }
.marquee-outline b { -webkit-text-stroke: 0; color: var(--gold); font-size: .5em; }

/* Ondulation continue des titres de section au survol */
.h2 .wi { transition: transform .6s var(--ease), color .4s; }
.h2 .w:hover .wi { color: var(--brick); transform: translateY(-6%) rotate(-2deg); }
.footer-word span:hover { -webkit-text-stroke-color: var(--gold); }

/* Mouvement coupé par l'utilisateur (bouton de l'en-tête) */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html.no-motion #preloader, html.no-motion #curtain, html.no-motion #sky, html.no-motion #trail { display: none !important; }

.btn-mini { overflow: hidden; }

/* En-tête : jamais de retour à la ligne, le bouton se réduit à son icône sur écrans moyens */
.nav-link, .btn, .brand-text strong, .brand-text small { white-space: nowrap; }
.nav { gap: .1rem; }
@media (max-width: 1240px) { .cta-wrap .btn span { display: none; } .cta-wrap .btn { padding: .7rem; } }
#sky .sun { top: 20vh; }
#sky .sun-halo { top: calc(20vh - 90px); }

/* Logo du lycée (préchargeur + rideau de transition) */
.logo-card { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 20px; padding: .9rem 1.4rem; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); }
.logo-card img { display: block; height: 62px; width: auto; max-width: min(72vw, 360px); object-fit: contain; }
.logo-card b { display: none; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: #1B222B; }
.logo-card.nologo img { display: none; }
.logo-card.nologo b { display: block; }
.logo-card.big { padding: 1.4rem 2rem; border-radius: 26px; }
.logo-card.big img { height: clamp(64px, 12vw, 110px); }
.pl-brand { display: grid; justify-items: center; gap: .9rem; }
.pl-brand span:not(.logo-card) { margin-top: 0; }


/* ==========================================================================
   Menu à sous-menus, filtres niveau/domaine, page Options, pages d'info
   ========================================================================== */
.nav-item { position: relative; }
.nav-link .i { width: .8em; height: .8em; margin-left: .3rem; vertical-align: -.05em; transition: transform .5s var(--ease); }
.nav-item:hover > .nav-link .i, .nav-item.open > .nav-link .i { transform: rotate(180deg); }
button.nav-link { background: none; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 30; min-width: 280px; padding: .6rem; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-accent); box-shadow: 0 30px 60px -20px rgba(20, 30, 40, .4); opacity: 0; visibility: hidden; transform: translate(-50%, 16px) scale(.97); transform-origin: 50% 0; transition: opacity .45s var(--ease), transform .7s var(--ease), visibility 0s linear .45s; }
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .45s var(--ease), transform .7s var(--ease); }
.dropdown > a, .dd-col > a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .8rem; border-radius: 12px; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateX(-10px); transition: background-color .3s, color .3s, opacity .5s var(--ease), transform .6s var(--ease); }
.nav-item:hover .dropdown > a, .nav-item:focus-within .dropdown > a, .nav-item.open .dropdown > a,
.nav-item:hover .dd-col > a, .nav-item:focus-within .dd-col > a, .nav-item.open .dd-col > a { opacity: 1; transform: none; }
.dropdown > a:nth-child(1) { transition-delay: 0s, 0s, .04s, .04s; } .dropdown > a:nth-child(2) { transition-delay: 0s, 0s, .08s, .08s; } .dropdown > a:nth-child(3) { transition-delay: 0s, 0s, .12s, .12s; }
.dropdown > a:nth-child(4) { transition-delay: 0s, 0s, .16s, .16s; } .dropdown > a:nth-child(5) { transition-delay: 0s, 0s, .2s, .2s; } .dropdown > a:nth-child(n+6) { transition-delay: 0s, 0s, .24s, .24s; }
.dropdown > a:hover, .dd-col > a:hover { background: rgba(47, 109, 181, .12); color: var(--accent); }
.dropdown .i { width: .95em; height: .95em; opacity: .55; }
.dropdown.mega { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; width: min(900px, 92vw); padding: 1.1rem; }
.dd-col { display: grid; align-content: start; gap: .1rem; }
.dd-title { display: block; margin-bottom: .4rem; padding: .3rem .8rem .6rem; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: var(--accent); border-bottom: 2px solid var(--line-accent); transition: color .3s; }
.dd-title:hover { color: var(--brick-d); }
.dd-col > a { padding: .5rem .8rem; }
@media (max-width: 1023px) { .dropdown { display: none; } }

/* Menu plein écran : groupes avec sous-liens */
#drawer { overflow-y: auto; justify-content: flex-start; }
.drawer-link { opacity: 1; transform: none; transition: color .4s; }
.drawer-nav > * { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
#drawer.open .drawer-nav > * { opacity: 1; transform: none; }
#drawer.open .drawer-nav > :nth-child(1) { transition-delay: .25s; } #drawer.open .drawer-nav > :nth-child(2) { transition-delay: .31s; }
#drawer.open .drawer-nav > :nth-child(3) { transition-delay: .37s; } #drawer.open .drawer-nav > :nth-child(4) { transition-delay: .43s; }
#drawer.open .drawer-nav > :nth-child(5) { transition-delay: .49s; } #drawer.open .drawer-nav > :nth-child(6) { transition-delay: .55s; }
.drawer-group { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer-group .drawer-link { border-bottom: 0; padding-bottom: .1rem; }
.drawer-sub { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: .1rem 0 .9rem 3rem; }
.drawer-sub a { color: rgba(255, 255, 255, .7); font-size: .95rem; transition: color .3s; }
.drawer-sub a:hover { color: var(--gold); }

/* Filtres niveau + domaine */
.filters-box { display: grid; gap: 1rem; padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; border-radius: 24px; background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.filter-label { min-width: 74px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.filters-box .filters { margin: 0; padding: 0; border: 0; background: transparent; }
.filter-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .85rem; }
.filter-foot b { color: var(--accent); font-size: 1.1rem; }
.filter-foot .link-back { margin: 0; }

/* Page Options */
.opt-block { margin-bottom: 2rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); }
.opt-block .h3 { margin: 0 0 .5rem; }
.opt-group { margin-top: 1.3rem; }
.opt-group h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--accent); }
.opt-list { display: grid; gap: .5rem; margin-top: .7rem; }
.opt-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 1rem; border-radius: 14px; background: rgba(47, 109, 181, .07); }
.opt-list .i { color: var(--brick); margin-top: .25rem; }
.opt-note { margin-top: .9rem; padding-left: 1rem; border-left: 3px solid var(--ochre); font-size: .92rem; color: var(--muted); }
.uf2s { margin-top: 3rem; padding: clamp(1.6rem, 5vw, 3rem); border-radius: 28px; color: #fff; background: linear-gradient(140deg, var(--charcoal), var(--brick-d)); box-shadow: var(--shadow); }
.uf2s .prose p { color: rgba(255, 255, 255, .88); }
.uf2s-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; margin: 2rem 0; }
.uf2s h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--gold); margin-bottom: .8rem; }
.uf2s ul { display: grid; gap: .7rem; }
.uf2s li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.uf2s li .i { color: var(--gold); margin-top: .3rem; }
.uf2s-outro { font-style: italic; color: rgba(255, 255, 255, .85); margin-bottom: 1.4rem; }

/* Pages d'information */
.related { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.related-card { display: grid; gap: .4rem; padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--glass); border: 1px solid var(--line-accent); transition: transform .6s var(--ease), border-color .4s; }
.related-card:hover { transform: translateY(-5px); border-color: var(--brick); }
.related-card strong { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; line-height: 1.1; }
.related-card small { color: var(--muted); }
.related-card .i { color: var(--accent); }

/* En-tête : le menu à 6 entrées doit toujours tenir dans la barre */
.nav-link { padding: .55rem .62rem; font-size: .8rem; }
.bar { gap: .6rem; }
@media (max-width: 1440px) { .cta-wrap .btn span { display: none; } .cta-wrap .btn { padding: .7rem; } .brand-text small { display: none; } }
@media (max-width: 1180px) and (min-width: 1024px) { .nav-link { padding: .5rem .4rem; font-size: .76rem; } .brand-text strong { font-size: 1.05rem; } }
#header .bar { max-width: 1360px; }


/* ==========================================================================
   Vert & bleu du logo, blog, section ALBI, menu aligné
   ========================================================================== */
/* Menu : tous les éléments sur la même ligne */
.nav { align-items: center; }
.nav-item { display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; line-height: 1.2; height: 40px; }
.nav-link::after { background: linear-gradient(90deg, var(--brick), var(--blue)); }

/* Section ALBI : au début on ne voit QUE le mot ; la photo s'ouvre en arche pendant le défilement */
.anim-ready .portal-mask { clip-path: inset(50% 50% 50% 50% round 50vw); }
.portal-word { -webkit-text-stroke: 2px rgba(95, 199, 158, .65); }
.portal-hint { z-index: 3; }

/* Accents vert & bleu */
#progress { background: linear-gradient(90deg, var(--brick), var(--gold), var(--green), var(--blue)); }
.badge.b2 { background: rgba(47, 109, 181, .12); color: var(--blue); border-color: rgba(47, 109, 181, .3); }
.theme-sunset .badge.b2 { color: #7FB0F0; }
.blob-b { background: rgba(47, 109, 181, .2); }
.dust.d2, .dust.d5 { background: var(--blue); }
.dust.d8, .dust.d3 { background: var(--green); }
.skyline .sk-buttress { stroke: var(--blue); }
#sky .cloud { background: rgba(214, 232, 255, .8); box-shadow: 40px -14px 0 8px rgba(214, 232, 255, .8), 90px 0 0 0 rgba(214, 232, 255, .8); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-glass:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.link-arrow { color: var(--blue); }
.theme-sunset .link-arrow { color: #7FB0F0; }
.section-head::after { content: ''; display: block; width: 76px; height: 4px; border-radius: 4px; margin-top: 1.1rem; background: linear-gradient(90deg, var(--green), var(--blue), var(--brick)); }
.section-head.is-center::after { margin-inline: auto; }
.ent { background: linear-gradient(120deg, var(--green), #1F6B78 50%, var(--blue)); }
.page-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(60% 80% at 100% 0%, rgba(47, 109, 181, .7), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(42, 140, 95, .6), transparent 60%); }
.wave.w1 path { fill: var(--blue); opacity: .9; }
.pl-d, .cu-d { background: var(--green); }
.pl-c, .cu-c { background: var(--blue); }
.chip[style*="--dot"]::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--dot); vertical-align: 1px; }
.chip.is-active[style*="--dot"]::before { background: #fff; }
.stat strong { background: linear-gradient(90deg, var(--brick), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote figcaption small { color: var(--blue); }
.theme-sunset .quote figcaption small { color: #7FB0F0; }

/* Bouton « Candidater » : jamais rogné */
.btn-block { white-space: normal; text-align: center; }
.side-card .btn { padding-inline: 1rem; }

/* Blog : bande d'accueil */
.pav-card h3 a { color: inherit; }
.pav-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pav-more { flex: none; scroll-snap-align: center; width: min(70vw, 300px); height: min(540px, 66vh); min-height: 430px; border-radius: 28px; border: 2px dashed rgba(255, 255, 255, .3); color: #fff; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1.5rem; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.pav-more span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brick), var(--blue)); font-size: 1.6rem; transition: transform .6s var(--ease); }
.pav-more strong { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; }
.pav-more:hover { background: rgba(255, 255, 255, .06); border-color: var(--gold); }
.pav-more:hover span { transform: translateX(8px) scale(1.08); }

/* Blog : liste + article */
.posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.post { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--glass); border: 1px solid var(--line-accent); box-shadow: var(--shadow); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.post:hover { transform: translateY(-6px); }
.post[hidden] { display: none; }
.post-media { display: block; height: 210px; overflow: hidden; background: linear-gradient(135deg, var(--green), var(--blue) 60%, var(--brick)); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post-media img { transform: scale(1.07); }
.post-body { display: grid; gap: .7rem; padding: 1.4rem 1.5rem 1.6rem; align-content: start; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .75rem; color: var(--muted); }
.post-meta .tag { --c: var(--blue); }
.post h3 { font-size: 1.65rem; line-height: 1.12; }
.post h3 a:hover { color: var(--blue); }
.post p { font-size: .92rem; color: var(--muted); }
.rich h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; margin: 2rem 0 .6rem; color: var(--accent); }
.rich p { font-size: 1.08rem; line-height: 1.75; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--green), var(--blue)); }
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery figcaption { padding: .7rem 1rem; font-size: .8rem; color: #fff; background: rgba(0, 0, 0, .35); }
.footer { position: relative; }

/* Le rouge n'est plus qu'une touche */
.badge.b0 { background: rgba(200, 75, 49, .1); color: var(--red); border-color: rgba(200, 75, 49, .25); }
.stars { color: #E5A93C; }
.grad { background-image: linear-gradient(90deg, var(--accent), var(--terracotta), var(--green)); }
.stat strong { background-image: linear-gradient(90deg, var(--brick), var(--green)); }

/* Fenêtre de candidature */
#apply { align-items: center; padding: 1rem; }
.apply-card { max-width: 660px; max-height: calc(100vh - 2rem); overflow-y: auto; position: relative; padding: clamp(1.3rem, 4vw, 2.2rem); }
.apply-x { position: absolute; top: .8rem; right: .8rem; z-index: 2; }
.apply-done { display: grid; justify-items: center; text-align: center; gap: 1rem; padding: 2rem 0; }
.apply-done[hidden], #apply-form[hidden] { display: none; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: .2rem 0 1rem; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: .25rem; accent-color: var(--brick); flex: none; }
.consent.err, .field.err input, .field.err select, .field.err textarea { color: #C0392B; }
.field.err input, .field.err select, .field.err textarea { border-color: #C0392B; }
.apply-status { margin-bottom: 1rem; padding: .7rem 1rem; border-radius: 12px; background: rgba(192, 57, 43, .12); color: #C0392B; font-weight: 600; font-size: .88rem; }

/* Mentions légales (fenêtre) */
#legal { align-items: center; padding: 1rem; z-index: 185; }
.legal-card { max-width: 820px; max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.3rem, 4vw, 2.4rem); }
.legal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; position: sticky; top: calc(-1 * clamp(1.3rem, 4vw, 2.4rem)); margin: calc(-1 * clamp(1.3rem, 4vw, 2.4rem)) calc(-1 * clamp(1.3rem, 4vw, 2.4rem)) 1rem; padding: clamp(1.3rem, 4vw, 2.4rem) clamp(1.3rem, 4vw, 2.4rem) 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line); z-index: 2; }
.legal-intro { color: var(--muted); margin-bottom: 1rem; }
.legal-sec { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: var(--accent); margin-bottom: .5rem; }
.legal-sec .prose p { font-size: .95rem; margin-bottom: .7rem; }
.legal-link { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); white-space: nowrap; }

/* Menu mobile compact : rubriques repliées (accordéon), sous-liens à la demande */
#drawer { padding-top: 5.2rem; }
.drawer-link { padding: .5rem 0; gap: .8rem; align-items: center; width: 100%; text-align: left; }
.drawer-link .lbl { font-size: clamp(1.45rem, 6.2vw, 1.9rem); flex: 1; }
.drawer-link .num { min-width: 1.6rem; font-size: .68rem; }
.drawer-toggle .i { width: 1.1rem; height: 1.1rem; color: var(--gold); transition: transform .5s var(--ease); flex: none; }
.drawer-group.open .drawer-toggle .i { transform: rotate(180deg); }
.drawer-group.open .drawer-toggle .lbl { color: var(--gold); }
.drawer-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); padding: 0; }
.drawer-group.open .drawer-sub { grid-template-rows: 1fr; }
.drawer-sub-in { min-height: 0; overflow: hidden; display: grid; gap: 0; padding-left: 2.4rem; }
.drawer-sub-in.cols { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.drawer-group.open .drawer-sub-in { padding-bottom: .8rem; }
.drawer-sub-in a { padding: .42rem 0; font-size: .92rem; color: rgba(255, 255, 255, .78); line-height: 1.3; }
.drawer-sub-in a:hover { color: var(--gold); }
.drawer-sub-in .sub-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #fff; padding-bottom: .5rem; }
.drawer-sub-in .sub-all .i { width: .9rem; height: .9rem; }
.drawer-sub-in .sub-title { grid-column: 1 / -1; margin-top: .5rem; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }
.drawer-foot { margin-top: 1.4rem; font-size: .74rem; }
