/*
Theme Name: PC Wallis
Description: Thème sur mesure pour physique-chimie.wf — accueil animé et pages de présentation.
Version: 1.3.1
Author: manatai
Text Domain: pc-wallis
Requires PHP: 8.0
*/

:root {
  --night: #070d1f;
  --night-2: #0d1733;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e9f3;
  --paper: #f6f8fc;
  --white: #fff;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --amber: #fbbf24;
  --green: #34d399;
  --pink: #f472b6;
  /* Couleurs d'accent : redéfinies par site (body.site-college, .site-lycee, .site-lp) */
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-soft: #a5f3fc;
  --accent-ink: #2563eb;
  --accent-rgb: 34, 211, 238;
  --deep: #1e2a5a;
  --grad: linear-gradient(100deg, #22d3ee 0%, #a78bfa 45%, #fbbf24 100%);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  color: #fff;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(7, 13, 31, .78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 20px -6px rgba(var(--accent-rgb), .7); }
.brand-mark svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.6; animation: spin 18s linear infinite; }
.brand-mark svg circle { fill: #fff; stroke: none; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1; display: flex; flex-direction: column; }
.brand-text > span { color: var(--accent); }
.brand-text small { font-family: var(--font); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; margin-top: 4px; }
.brand-text { flex-direction: row; flex-wrap: wrap; max-width: 210px; }
.brand-text small { flex-basis: 100%; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-list a { display: block; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; opacity: .85; transition: background .2s, opacity .2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .1); }
.nav-list a.nav-cta { opacity: 1; background: #fff; color: var(--night); font-weight: 600; }
.nav-list a.nav-cta:hover { background: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; }
  .nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 70px 16px auto; padding: 12px; border-radius: 20px; background: rgba(13, 23, 51, .96);
    backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .3s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 14px 18px; }
}

/* ---------- Boutons ---------- */
.btn { --bg: #fff; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; cursor: pointer; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-primary { color: var(--night); background: linear-gradient(135deg, var(--accent), var(--accent-soft)); box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), .65); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(var(--accent-rgb), .8); }
.btn-down:hover svg { transform: translateY(3px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-light { color: var(--night); background: #fff; box-shadow: var(--shadow); }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, var(--deep) 0%, transparent 60%), var(--night); isolation: isolate; }
.hero-home { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; }
.hero-page { padding: 150px 0 80px; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2; opacity: .55; }
.glow-a { width: 520px; height: 520px; background: var(--accent-2); left: -160px; bottom: -200px; animation: float 14s ease-in-out infinite; }
.glow-b { width: 420px; height: 420px; background: var(--accent); right: -120px; top: 10%; opacity: .3; animation: float 18s ease-in-out infinite reverse; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); font-weight: 700; }
.hero-page h1 { font-size: clamp(36px, 5vw, 62px); }
.grad { background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .75); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-visual.small { max-width: 240px; }
.atom { position: relative; width: 78%; aspect-ratio: 1; }
.orbit { position: absolute; inset: 0; margin: auto; height: 34%; border-radius: 50%; border: 1.5px solid rgba(var(--accent-rgb), .45);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), .15), inset 0 0 22px rgba(var(--accent-rgb), .1); }
.o1 { transform: rotate(0deg); } .o2 { transform: rotate(60deg); } .o3 { transform: rotate(-60deg); }
.orbit i { position: absolute; inset: 0; }
/* l'électron suit l'ellipse grâce à offset-path */
.orbit i::before { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px 4px rgba(251, 191, 36, .7);
  offset-path: ellipse(50% 50% at 50% 50%); offset-rotate: 0deg; animation: orbit 3.4s linear infinite; }
.o2 i::before { background: var(--pink); box-shadow: 0 0 16px 4px rgba(244, 114, 182, .7); animation-duration: 4.6s; animation-direction: reverse; }
.o3 i::before { background: var(--green); box-shadow: 0 0 16px 4px rgba(52, 211, 153, .7); animation-duration: 5.8s; }
.nucleus { position: absolute; inset: 0; margin: auto; width: 17%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent) 45%, var(--accent-2)); box-shadow: 0 0 40px 8px rgba(var(--accent-rgb), .55); animation: pulse 3s ease-in-out infinite; }
.atom { animation: spin 40s linear infinite; }
.formula { position: absolute; font-family: var(--display); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); color: rgba(255, 255, 255, .85); animation: float 7s ease-in-out infinite; }
.f1 { top: 6%; left: 0; } .f2 { top: 18%; right: -2%; animation-delay: -2s; } .f3 { bottom: 12%; left: -4%; animation-delay: -4s; } .f4 { bottom: 2%; right: 8%; animation-delay: -1s; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 28px; height: 44px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll 1.8s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--accent-ink); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.espace-card { --c1: var(--cyan); --c2: var(--blue); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px 30px 30px;
  border-radius: 28px; background: #fff; text-decoration: none; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; isolation: isolate; }
.espace-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c1) 18%, transparent), transparent 60%); }
.espace-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.espace-card:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c1) 40%, var(--line)); }
.espace-card:hover::before { opacity: 1; }
.espace-college { --c1: #34d399; --c2: #22d3ee; }
.espace-lycee { --c1: #8b5cf6; --c2: #3b82f6; }
.espace-lp { --c1: #fbbf24; --c2: #f97316; }
.espace-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px -10px var(--c1); transform: translateZ(30px); }
.espace-icon svg { width: 36px; height: 36px; }
.espace-card:hover .espace-icon svg { animation: wobble .8s var(--ease); }
.espace-niveau { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.espace-card h3 { font-size: 30px; }
.espace-card p { color: var(--ink-2); font-size: 16px; flex: 1; }
.espace-go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; color: #fff; background: var(--ink); transition: background .3s, gap .3s var(--ease); }
.espace-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.espace-card:hover .espace-go { gap: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); }

.teaser { padding-top: 0; }
.teaser-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px; border-radius: 32px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(135deg, #1e1b4b, #312e81 50%, #1d4ed8); box-shadow: var(--shadow-lg); }
.teaser-inner h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 640px; }
.teaser-inner p:not(.eyebrow) { margin-top: 14px; color: rgba(255, 255, 255, .78); max-width: 620px; }
.teaser-inner .btn { flex-shrink: 0; }

/* ---------- Contenu de page ---------- */
.page-content { padding: 70px 0 110px; }
.page-content > *:not(.full) { width: min(1180px, 100% - 40px); margin-inline: auto; }
.prose { padding: 60px 0 100px; }


/* Composants de la page spécialité (utilisables dans n'importe quelle page via un bloc HTML) */
.pc-block { margin-bottom: 26px; }
.pc-grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.pc-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.pc-card h2, .pc-section h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.pc-card p { color: var(--ink-2); }
.pc-card.highlight { background: linear-gradient(135deg, #fff8e6, #ffecc2); border-color: #fcd98a; }
.pc-card.highlight strong { color: #9a4f00; }
.pc-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.highlight .pc-tag { color: #b45309; }

.pc-domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pc-domain { --c: var(--blue); position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pc-domain::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .08; transition: transform .5s var(--ease), opacity .4s; }
.pc-domain:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pc-domain:hover::after { transform: scale(1.8); opacity: .14; }
.pc-domain .ico { width: 54px; height: 54px; display: grid; place-items: center; font-size: 28px; border-radius: 16px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--c) 14%, #fff); transition: transform .4s var(--ease); }
.pc-domain:hover .ico { transform: rotate(-8deg) scale(1.08); }
.pc-domain h3 { font-size: 19px; margin-bottom: 8px; }
.pc-domain p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.pc-domain:nth-child(8n+1) { --c: #06b6d4; } .pc-domain:nth-child(8n+2) { --c: #8b5cf6; } .pc-domain:nth-child(8n+3) { --c: #f59e0b; } .pc-domain:nth-child(8n+4) { --c: #3b82f6; }
.pc-domain:nth-child(8n+5) { --c: #ef4444; } .pc-domain:nth-child(8n+6) { --c: #0ea5e9; } .pc-domain:nth-child(8n+7) { --c: #ec4899; } .pc-domain:nth-child(8n+8) { --c: #10b981; }

.pc-bac { position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 44px; background: radial-gradient(500px 260px at 100% 0%, rgba(139, 92, 246, .45), transparent 60%), linear-gradient(135deg, #0b1228, #1b2547); box-shadow: var(--shadow-lg); }
.pc-bac h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 28px; }
.pc-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pc-score { padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.pc-num { font-family: var(--display); font-size: clamp(44px, 5vw, 62px); font-weight: 700; line-height: 1; color: #7ee3ff; }
.pc-num small { font-size: .45em; margin-left: 6px; opacity: .8; }
.pc-score:nth-child(2) .pc-num { color: #ffd37b; }
.pc-score:nth-child(3) .pc-num { color: #9dffbf; }
.pc-score p { margin-top: 12px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.pc-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-top: 30px; background: rgba(255, 255, 255, .08); }
.pc-bar span { width: 0; transition: width 1.6s var(--ease); }
.pc-bar .w { background: linear-gradient(90deg, #ffd37b, #fb923c); } .pc-bar .p { background: linear-gradient(90deg, #9dffbf, #34d399); }
.pc-bar.on .w { width: 80%; } .pc-bar.on .p { width: 20%; transition-delay: .5s; }
.pc-bar-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .65); }

.pc-section { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.pc-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc-path { position: relative; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #f1f6ff, #f7f3ff); border: 1px solid #dfe7fb; }
.pc-path .duo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 20px; color: #1e3a8a; flex-wrap: wrap; }
.pc-path .duo b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1e3a8a; color: #fff; font-size: 16px; }
.pc-path p { color: var(--ink-2); font-size: 16px; }
.pc-path.svt { background: linear-gradient(135deg, #effcf5, #f0fbff); border-color: #ccefdc; }
.pc-path.svt .duo { color: #065f46; } .pc-path.svt .duo b { background: #065f46; }

.pc-studies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pc-study { padding: 26px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.pc-study h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pc-study h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.pc-study ul { list-style: none; margin: 0; padding: 0; }
.pc-study li { padding: 8px 0; border-bottom: 1px dashed #d8e0ec; font-size: 15px; color: var(--ink-2); }
.pc-study li:last-child { border-bottom: 0; }
.pc-jobs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pc-pill { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #123a67; background: #eef6ff; border: 1px solid #d6e8ff;
  transition: transform .25s var(--ease), background .25s, color .25s; cursor: default; }
.pc-pill:hover { transform: translateY(-3px) scale(1.04); background: var(--ink); color: #fff; }

.pc-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pc-reason { text-align: center; padding: 30px 20px; border-radius: 22px; background: linear-gradient(160deg, #ecfdf5, #e0f2fe); border: 1px solid #cdeee0; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.pc-reason span { display: block; font-size: 40px; margin-bottom: 12px; transition: transform .4s var(--ease); }
.pc-reason:hover span { transform: translateY(-6px) scale(1.15); }
.pc-cta { display: flex; justify-content: center; margin-top: 40px; }
.pc-cta .btn { color: #fff; background: var(--ink); }
.pc-cta .btn:hover { background: var(--accent-ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 56px 0 28px; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-title { font-family: var(--display); color: #fff; font-size: 18px; display: block; margin-bottom: 6px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; } .footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; opacity: .6; }

/* ---------- Couleurs par site ---------- */
.site-college {
  --accent: #34d399; --accent-2: #0ea5e9; --accent-soft: #a7f3d0; --accent-ink: #059669; --accent-rgb: 52, 211, 153; --deep: #0d3b3f;
  --grad: linear-gradient(100deg, #34d399 0%, #5eead4 45%, #38bdf8 100%);
}
.site-lycee {
  --accent: #a78bfa; --accent-2: #6366f1; --accent-soft: #ddd6fe; --accent-ink: #7c3aed; --accent-rgb: 167, 139, 250; --deep: #2e1f5e;
  --grad: linear-gradient(100deg, #c4b5fd 0%, #818cf8 45%, #f0abfc 100%);
}
.site-lp {
  --accent: #fbbf24; --accent-2: #f97316; --accent-soft: #fde68a; --accent-ink: #c2410c; --accent-rgb: 251, 191, 36; --deep: #4a2510;
  --grad: linear-gradient(100deg, #fde047 0%, #fb923c 50%, #f87171 100%);
}

/* ---------- Accueil d'un site de niveau ---------- */
.hero-niveau h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -.035em; }
.hero-badge { position: absolute; left: 40%; bottom: -6%; width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 18px 40px -12px rgba(var(--accent-rgb), .8); animation: float 6s ease-in-out infinite; }
.hero-badge svg { width: 44px; height: 44px; }
.hero-niveau .f4 { right: 0; bottom: 4%; }

/* Contenu Gutenberg des pages */
.page-content > h2, .entry > h2 { font-size: clamp(26px, 3vw, 36px); margin: 1.6em auto .5em; }
.page-content > h3, .entry > h3 { font-size: 22px; margin: 1.4em auto .4em; }
.page-content > p, .page-content > ul, .page-content > ol, .entry > p, .entry > ul, .entry > ol { margin-block: 0 1em; max-width: 780px; color: var(--ink-2); }
.page-content > p, .page-content > ul, .page-content > ol, .page-content > h2, .page-content > h3, .page-content > .wp-block-buttons { width: min(780px, 100% - 40px) !important; }
.page-content > p a, .page-content > ul a, .page-content > ol a, .page-content > h2 a, .page-content > h3 a, .entry a:not(.wp-block-button__link) { color: var(--accent-ink); text-underline-offset: 3px; }
.page-content a { color: inherit; }
.page-content img, .entry img { height: auto; border-radius: 16px; }
.page-content .wp-block-image, .entry .wp-block-image { margin-block: 1.5em; }
.wp-block-button__link { border-radius: 999px !important; padding: 13px 24px !important; font-weight: 600; background: var(--ink); color: #fff; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.wp-block-button__link:hover { background: var(--accent-ink); transform: translateY(-2px); }
.entry { max-width: 820px; padding: 60px 0 100px; }
.entry p, .entry li { font-size: 18px; line-height: 1.75; }
.page-content:empty { display: none; }

/* Cartes d'articles */
.posts-section { padding-top: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb-empty { display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 50%), linear-gradient(135deg, var(--accent), var(--accent-2)); }
.post-thumb-empty svg { width: 56px; height: 56px; opacity: .9; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.post-meta { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.post-title { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.post-excerpt { font-size: 15px; color: var(--ink-2); }
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; }
.empty { text-align: center; color: var(--muted); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Fil d'Ariane, pages enfants ---------- */
.crumb { color: inherit; text-decoration: none; opacity: .9; }
.crumb:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.child-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 10px; }
.child-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.child-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.child-card:hover { box-shadow: var(--shadow-lg); }
.child-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.child-icon svg { width: 28px; height: 28px; }
.child-card strong { font-family: var(--display); font-size: 22px; line-height: 1.15; }
.child-card > span:not(.child-icon) { color: var(--ink-2); font-size: 15px; }
.child-card em { margin-top: 10px; font-style: normal; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.child-card em svg, .lucy-card em svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.child-card:hover em svg { transform: translateX(4px); }

/* ---------- Espaces des professeurs ---------- */
.prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prof-card { --p1: var(--accent); --p2: var(--accent-2); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: 26px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; transition: box-shadow .35s var(--ease); }
.prof-card:hover { box-shadow: var(--shadow-lg); }
.prof-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--p1) 30%, transparent), transparent 70%); transition: transform .6s var(--ease); }
.prof-card:hover::before { transform: scale(1.4); }
.prof-mono { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 14px 28px -12px var(--p1); margin-bottom: 8px; }
.prof-card h3 { font-size: 26px; }
.prof-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.prof-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-tags span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--p1) 14%, #fff); color: var(--ink); }
.prof-card .espace-go { margin-top: 14px; }
.prof-card:hover .espace-go { gap: 14px; background: linear-gradient(135deg, var(--p1), var(--p2)); }
.prof-bn { --p1: #8b5cf6; --p2: #6366f1; }
.prof-mlt { --p1: #ec4899; --p2: #8b5cf6; }
.prof-tb { --p1: #06b6d4; --p2: #6366f1; }

.empty-state { text-align: center; padding: 56px 28px; border-radius: 28px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.empty-state .big { font-size: 52px; display: block; margin-bottom: 12px; animation: float 5s ease-in-out infinite; }
.empty-state h2 { font-size: 28px; margin-bottom: 10px; }
.empty-state p { color: var(--ink-2); max-width: 520px; margin: 0 auto; }

/* ---------- Lucy ---------- */
.lucy-dock { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.lucy-btn { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; color: #fff;
  background: rgba(13, 23, 51, .92); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 30px -10px rgba(7, 13, 31, .6);
  transition: transform .3s var(--ease), box-shadow .3s; animation: dock-in .8s var(--ease) both; }
.lucy-exam { animation-delay: .15s; }
.lucy-btn:hover { transform: translateX(-4px); box-shadow: 0 16px 40px -10px rgba(var(--accent-rgb), .6); }
.lucy-ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.lucy-prof .lucy-ico { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.lucy-exam .lucy-ico { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.lucy-ico svg { width: 21px; height: 21px; }
.lucy-txt { display: flex; flex-direction: column; line-height: 1.15; }
.lucy-txt strong { font-family: var(--display); font-size: 15px; }
.lucy-txt small { font-size: 11.5px; opacity: .7; }
@keyframes dock-in { from { opacity: 0; transform: translateX(30px); } }
@media (max-width: 760px) {
  .lucy-dock { left: 12px; right: 12px; bottom: 12px; flex-direction: row; }
  .lucy-btn { flex: 1; justify-content: center; padding: 6px 12px 6px 6px; }
  .lucy-txt small { display: none; }
  .lucy-ico { width: 34px; height: 34px; }
  body:has(.lucy-dock) .site-footer { padding-bottom: 90px; }
}

.lucy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lucy-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px; border-radius: 28px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-lg); transition: box-shadow .35s var(--ease); }
.lucy-card.lucy-prof { background: radial-gradient(400px 200px at 100% 0%, rgba(244, 114, 182, .5), transparent 60%), linear-gradient(135deg, #1e1b4b, #4c1d95); }
.lucy-card.lucy-exam { background: radial-gradient(400px 200px at 100% 0%, rgba(34, 211, 238, .45), transparent 60%), linear-gradient(135deg, #0c1a3d, #1d4ed8); }
.lucy-card .lucy-ico { width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); margin-bottom: 10px; }
.lucy-card .lucy-ico svg { width: 32px; height: 32px; }
.lucy-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.lucy-card strong { font-family: var(--display); font-size: 34px; line-height: 1; }
.lucy-desc { opacity: .82; font-size: 15.5px; max-width: 440px; }
.lucy-card em { margin-top: 16px; align-self: flex-start; font-style: normal; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #fff; color: var(--night); }
.lucy-card:hover em svg { transform: translate(3px, -3px); }

/* ---------- Bandeau duo (orientation / spécialité) ---------- */
.duo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo-band a { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 24px; text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.duo-band a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.duo-band .e { font-size: 38px; }
.duo-band strong { display: block; font-family: var(--display); font-size: 21px; }
.duo-band small { color: var(--muted); font-size: 14.5px; }

/* ---------- STI2D : sujets de bac ---------- */
.sti-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: stretch; }
.sti-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sti-stat { display: flex; flex-direction: column; justify-content: center; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, #1b1240, #2e1f5e); color: #fff; text-align: center; }
.sti-stat b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent-soft); }
.sti-stat span { font-size: 13px; opacity: .75; margin-top: 6px; }
.sti-toolbar { position: sticky; top: 72px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sti-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.sti-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; flex-shrink: 0; }
.sti-search input { flex: 1; border: 0; background: none; padding: 11px 0; font: inherit; font-size: 15px; outline: none; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 15px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: .2s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sti-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); margin: 18px 4px 0; }
.sti-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.sti-legend .ls { background: #ede9fe; border: 1px solid #c4b5fd; } .sti-legend .lc { background: #d1fae5; border: 1px solid #6ee7b7; }
.sti-group { margin-top: 34px; }
.sti-group > h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 16px; }
.sti-group > h3 span { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, #fff); }
.sti-chap { background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s; }
.sti-chap[open] { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.sti-chap summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; }
.sti-chap summary::-webkit-details-marker { display: none; }
.sti-chap summary .t { flex: 1; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; }
.sti-count { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sti-count span { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.sti-count .s { background: #ede9fe; color: #5b21b6; } .sti-count .c { background: #d1fae5; color: #065f46; }
.sti-chev { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: transform .35s var(--ease), background .3s; }
.sti-chev svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sti-chap[open] .sti-chev { transform: rotate(180deg); background: var(--accent-soft); }
.sti-body { padding: 0 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; animation: open .4s var(--ease); }
.sti-body h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sti-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sti-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.sti-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(15, 23, 42, .4); }
.sti-pill.s { background: #f5f3ff; border: 1px solid #ddd6fe; color: #4c1d95; }
.sti-pill.c { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.sti-pill .f { font-size: 17px; line-height: 1; }
.sti-none { font-size: 14px; color: var(--muted); font-style: italic; }
.sti-empty { display: none; text-align: center; padding: 40px; color: var(--muted); }
.sti-hidden { display: none !important; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Orientation ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2), #f472b6); opacity: .5; }
.step { position: relative; padding: 0 6px; text-align: center; }
.step-dot { position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 8px var(--paper), 0 16px 30px -10px rgba(var(--accent-rgb), .8); }
.step-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); height: calc(100% - 90px); }
.step-card h3 { font-size: 22px; margin-bottom: 10px; }
.step-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.step-card li { margin-bottom: 6px; }
.step-card li::marker { color: var(--accent-ink); }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 18px; margin-top: 22px; }
.res { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.res:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.res-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.res-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; }
.res[data-cat="metiers"] .res-tag { background: #fce7f3; color: #9d174d; }
.res[data-cat="etudes"] .res-tag { background: #ede9fe; color: #5b21b6; }
.res[data-cat="officiel"] .res-tag { background: #dbeafe; color: #1e40af; }
.res[data-cat="pacifique"] .res-tag { background: #ccfbf1; color: #115e59; }
.res-ext { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background .3s, transform .3s var(--ease); }
.res-ext svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.res:hover .res-ext { background: var(--accent-soft); transform: rotate(45deg); }
.res strong { font-family: var(--display); font-size: 19px; line-height: 1.2; }
.res .dom { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.res p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.res.featured { grid-column: span 2; background: linear-gradient(135deg, #f5f3ff, #eef2ff); border-color: #ddd6fe; }
.help-band { display: flex; align-items: center; gap: 24px; padding: 34px 38px; border-radius: 28px; color: #fff;
  background: radial-gradient(500px 240px at 100% 0%, rgba(var(--accent-rgb), .45), transparent 60%), linear-gradient(135deg, #1e1b4b, #312e81); box-shadow: var(--shadow-lg); }
.help-band .e { font-size: 48px; }
.help-band h3 { font-size: 24px; margin-bottom: 6px; }
.help-band p { opacity: .8; }

@media (max-width: 1000px) {
  .prof-grid, .res-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 36px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent), var(--accent-2), #f472b6); }
  .step { display: grid; grid-template-columns: 72px 1fr; gap: 18px; text-align: left; padding: 0; }
  .step-dot { margin: 0; }
  .step-card { height: auto; }
}
@media (max-width: 860px) {
  .sti-intro, .lucy-cards, .duo-band { grid-template-columns: 1fr; }
  .sti-body { grid-template-columns: 1fr; }
  .sti-toolbar { top: 64px; }
  .help-band { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 620px) {
  .prof-grid, .res-grid { grid-template-columns: 1fr; }
  .res.featured { grid-column: auto; }
  .sti-chap summary { flex-wrap: wrap; padding: 16px; }
  .sti-chap summary .t { flex-basis: calc(100% - 50px); }
  .sti-count { order: 3; justify-content: flex-start; }
  .sti-stats { grid-template-columns: repeat(3, 1fr); }
  .sti-stat b { font-size: 30px; }
  .lucy-card { padding: 26px; }
  .lucy-card strong { font-size: 28px; }
}

.step-dot span { white-space: nowrap; }
.step-dot sup { font-size: .55em; }
.page-content .lucy-card, .lucy-card strong { color: #fff; }
.page-content .lucy-card em { color: var(--night); }

/* ---------- Pages application (Lucy…) ---------- */
.app-head { color: #fff; padding: 110px 0 34px; background: radial-gradient(900px 300px at 85% 0%, var(--deep), transparent 70%), var(--night); }
.app-head h1 { font-size: clamp(30px, 4vw, 46px); }
.app-head p { margin-top: 8px; color: rgba(255, 255, 255, .72); max-width: 680px; }
.app-content { padding: 30px 0 80px; min-height: 50vh; }
.app-frame { width: min(1400px, 100% - 24px); margin-inline: auto; }
.admin-hint { margin-top: 16px !important; font-size: 14px; padding: 12px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412 !important; }
.lucy-btn[aria-current="page"] { display: none; }

/* ---------- Compteur de visites ---------- */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.visits { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; opacity: 1; }
.visits b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.espace-card.reveal.in { transition: opacity .9s var(--ease) var(--d, 0ms), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes pulse { 50% { box-shadow: 0 0 60px 14px rgba(var(--accent-rgb), .7); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes wobble { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pc-domains { grid-template-columns: repeat(2, 1fr); }
  .pc-reasons { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-home .hero-visual { max-width: 300px; order: -1; margin-bottom: -10px; }
  .hero-page .hero-visual { display: none; }
  .formula { font-size: 13px; }
  .pc-grid-2, .pc-paths, .pc-studies, .pc-scores { grid-template-columns: 1fr; }
  .teaser-inner { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .pc-section, .pc-bac { padding: 28px 22px; }
  .pc-card { padding: 26px 22px; }
  .section { padding: 80px 0; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap, .page-content > *:not(.full) { width: calc(100% - 32px); }
  .pc-domains, .pc-reasons { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .espace-card { padding: 28px 22px 24px; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
