/* Cours Edgar — styles */

:root {
  /* Palette */
  --navy: #1B3A6B;
  --navy-900: #0F2547;
  --navy-700: #1B3A6B;
  --navy-600: #2C528F;
  --navy-100: #E8EEF7;
  --ink: #0F1B2D;
  --ink-2: #33425A;
  --ink-3: #5A6B85;
  --ink-4: #8A99B3;
  --line: #E5E8EF;
  --line-2: #EEF0F5;
  --paper: #FAFAF8;
  --surface: #F5F6F8;
  --white: #FFFFFF;
  --accent: #7BB3E8;    /* sky — default */
  --accent-ink: #1B3A6B;
  --accent-soft: #E8F2FB;
  --gold: #C9A961;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04), 0 1px 1px rgba(15, 27, 45, 0.03);
  --shadow-md: 0 4px 14px rgba(15, 27, 45, 0.06), 0 2px 4px rgba(15, 27, 45, 0.04);
  --shadow-lg: 0 20px 48px rgba(15, 27, 45, 0.10), 0 6px 16px rgba(15, 27, 45, 0.06);
  --shadow-float: 0 30px 80px rgba(15, 27, 45, 0.14), 0 8px 20px rgba(15, 27, 45, 0.05);

  /* Layout */
  --max: 1200px;
  --gutter: 24px;
  --header-h: 68px;
}

[data-accent="gold"] {
  --accent: #C9A961;
  --accent-soft: #F7F1E0;
}

[data-type="serif"] {
  --font-display: "Instrument Serif", "Times New Roman", serif;
}
[data-type="sans"] {
  --font-display: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--navy); color: #fff; }

/* ---- Typography ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.display {
  font-family: var(--font-display, var(--font-sans));
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
}
[data-type="serif"] .display {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

/* ---- Layout ---- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 96px 0;
}
.section-sm { padding: 64px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.header.scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark::after {
  content: "CE";
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--line-2); }
.nav a.active { color: var(--ink); font-weight: 500; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 8px;
}
.phone-link:hover { color: var(--ink); background: var(--line-2); }
@media (max-width: 860px) {
  .nav { display: none; }
  .phone-link { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-900);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); background: var(--white); border-color: #D5DAE4; }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-accent:hover { filter: brightness(0.96); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 8px 13px; font-size: 13px; }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 60px);
  font-family: var(--font-display, var(--font-sans));
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.02;
}
[data-type="serif"] .hero h1 { font-weight: 400; letter-spacing: -0.012em; line-height: 1.04; }
.hero h1 em {
  font-style: normal;
  color: var(--navy);
  position: relative;
  white-space: nowrap;
}
.hero p.lead {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(123, 179, 232, 0.25), transparent 55%),
    radial-gradient(800px 500px at 100% 100%, rgba(27, 58, 107, 0.12), transparent 60%),
    linear-gradient(180deg, #fff, #F3F6FB);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 80%);
}
.hero-school-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 6s ease-in-out infinite;
}
.hero-school-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-school-card .sc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-school-card .sc-meta {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-school-card .sc-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--navy);
}
.hero-school-card.sc-1 { top: 10%; left: 8%; animation-delay: 0s; }
.hero-school-card.sc-2 { top: 6%; right: 10%; animation-delay: -2s; }
.hero-school-card.sc-3 { top: 40%; left: 4%; animation-delay: -4s; }
.hero-school-card.sc-4 { top: 46%; right: 6%; animation-delay: -1s; }
.hero-school-card.sc-5 { bottom: 14%; left: 18%; animation-delay: -3s; }
.hero-school-card.sc-6 { bottom: 8%; right: 18%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--shadow-float), 0 0 0 8px rgba(27, 58, 107, 0.06), 0 0 0 20px rgba(27, 58, 107, 0.03);
}
.hero-center-badge .hcb-num {
  font-family: var(--font-display, var(--font-sans));
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
[data-type="serif"] .hero-center-badge .hcb-num { font-weight: 400; }
.hero-center-badge .hcb-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* Hero variant: TYPE */
.hero-visual[data-variant="type"] .hero-canvas {
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 40px;
}
.hero-visual[data-variant="type"] .hero-canvas::before { display: none; }
.hero-visual[data-variant="type"] .hero-school-card,
.hero-visual[data-variant="type"] .hero-center-badge { display: none; }
.hero-type-content {
  display: none;
  color: #fff;
  text-align: left;
  width: 100%;
}
.hero-visual[data-variant="type"] .hero-type-content { display: block; }
.hero-type-line {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-type-line.muted { color: rgba(255,255,255,0.45); }
.hero-type-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* Hero variant: GEOMETRIC */
.hero-visual[data-variant="geo"] .hero-school-card,
.hero-visual[data-variant="geo"] .hero-center-badge { display: none; }
.hero-visual[data-variant="geo"] .hero-canvas {
  background: linear-gradient(135deg, #F3F6FB, #E8EEF7);
}
.hero-geo {
  display: none;
  position: absolute;
  inset: 0;
}
.hero-visual[data-variant="geo"] .hero-geo { display: block; }

/* ---- Trust bar ---- */
.trust-bar {
  padding: 36px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trust-schools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
}

/* ---- Section headers ---- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.sec-head .left {
  max-width: 640px;
}
.sec-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-family: var(--font-display, var(--font-sans));
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
[data-type="serif"] .sec-head h2 { font-weight: 400; letter-spacing: -0.01em; }
.sec-head p.lead {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
}

/* ---- Pillars ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #D5DAE4;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.pillar .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.pillar h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pillar p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---- Steps ---- */
.steps {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .steps { padding: 40px 24px; border-radius: var(--r-lg); } }
.steps-head h2 {
  color: #fff;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
}
[data-type="serif"] .steps-head h2 { font-weight: 400; }
.steps-head .eyebrow { color: rgba(255,255,255,0.6); }
.steps-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-top: 24px;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: -12px;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.step h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  padding: 36px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
@media (max-width: 720px) {
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.stat-num {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
[data-type="serif"] .stat-num { font-weight: 400; letter-spacing: -0.015em; }
.stat-num span { color: var(--navy); }
.stat-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ---- Testimonials ---- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 14px;
}
.quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex-grow: 1;
}
.author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.avatar.v2 { background: #F7F1E0; color: #8A6D2A; }
.avatar.v3 { background: #E8F2FB; color: #2C528F; }
.avatar.v4 { background: #F0E8E3; color: #6B4A33; }
.avatar.v5 { background: #E4EEE7; color: #2E5A3E; }
.avatar.v6 { background: #F2E8EF; color: #6B3A5C; }
.author-meta .name {
  font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.author-meta .sub {
  font-size: 12px; color: var(--ink-3); margin-top: 2px;
}

/* ---- Subjects ---- */
.subjects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 860px) { .subjects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .subjects { grid-template-columns: 1fr 1fr; gap: 8px; } }
.subject {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  cursor: default;
}
.subject:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
  background: var(--navy-100);
}
.subject:hover .sub-ic { background: var(--navy); color: #fff; }
.sub-ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); color: var(--navy);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.subject h5 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.subject p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---- FAQ ---- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--navy); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, background 0.2s, border-color 0.2s;
  color: var(--ink-3);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 700px;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(123, 179, 232, 0.20), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(123, 179, 232, 0.10), transparent 60%);
  pointer-events: none;
}
@media (max-width: 720px) { .cta-band { padding: 40px 24px; flex-direction: column; align-items: flex-start; border-radius: var(--r-lg); } }
.cta-band h2 {
  margin: 0;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 520px;
  line-height: 1.1;
  position: relative;
}
[data-type="serif"] .cta-band h2 { font-weight: 400; }
.cta-band p { margin: 10px 0 0; color: rgba(255,255,255,0.7); position: relative; font-size: 15px; }
.cta-band .btn-accent { position: relative; }

/* ---- Footer ---- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand p {
  font-size: 14px; color: var(--ink-3); line-height: 1.6; margin: 14px 0 20px; max-width: 360px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-float);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sticky-cta .sc-actions { display: flex; gap: 6px; align-items: center; }
.sticky-cta .btn { padding: 9px 14px; font-size: 13px; }
.sticky-cta .btn-accent { background: var(--accent); color: var(--accent-ink); }
.sticky-cta .icon-btn {
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center; color: #fff;
  border: none; cursor: pointer;
}
.sticky-cta .icon-btn:hover { background: rgba(255,255,255,0.2); }
@media (min-width: 861px) {
  .sticky-cta { display: none; }
}

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
  padding: 32px;
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center;
  color: var(--ink-3);
}
.modal-close:hover { color: var(--ink); background: var(--line-2); }
.modal h3 {
  margin: 0 0 6px;
  font-family: var(--font-display, var(--font-sans));
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
[data-type="serif"] .modal h3 { font-weight: 400; letter-spacing: -0.01em; }
.modal .modal-sub {
  margin: 0 0 24px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}
.field textarea { resize: vertical; min-height: 70px; }
.field.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field.two-col > * { grid-column: span 2; }
.field.two-col .sub { grid-column: span 1; }
.field.error input, .field.error select { border-color: #DC2626; }
.field-error-msg { color: #DC2626; font-size: 12px; margin-top: 4px; font-family: var(--font-mono); }
.modal-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.modal .btn-primary { width: 100%; padding: 14px; }

.modal-success {
  text-align: center;
  padding: 24px 0;
}
.modal-success .check {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #059669;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.modal-success h3 { margin: 0 0 8px; }
.modal-success p { color: var(--ink-2); margin: 0 0 24px; font-size: 14.5px; line-height: 1.55; }

/* ---- Tarifs ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.price-card.featured .price-level,
.price-card.featured .price-sub,
.price-card.featured li { color: rgba(255,255,255,0.82); }
.price-card.featured .price-num { color: #fff; }
.price-card.featured .price-effective { color: rgba(255,255,255,0.6); }
.price-card.featured li::before { background: var(--accent); }
.price-level {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.price-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-sub {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.price-num {
  font-family: var(--font-display, var(--font-sans));
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
[data-type="serif"] .price-num { font-weight: 400; letter-spacing: -0.015em; }
.price-num .unit {
  font-size: 16px;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 500;
  letter-spacing: 0;
  font-family: var(--font-sans);
}
.price-card.featured .price-num .unit { color: rgba(255,255,255,0.6); }
.price-effective {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-effective b { color: var(--ink); font-weight: 600; }
.price-card.featured .price-effective b { color: #fff; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.price-card li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.price-card li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: 3px;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
}
.price-card .btn { margin-top: auto; }

.tax-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
}
.tax-banner .tax-ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
.tax-banner h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tax-banner p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* ---- Profs ---- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 720px) { .process { grid-template-columns: 1fr; } }
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.process-step .step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  background: var(--navy-100);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}
.process-step h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.process-step p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.profs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .profs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .profs-grid { grid-template-columns: 1fr; } }
.prof-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.prof-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #D5DAE4; }
.prof-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prof-avatar {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.prof-name { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.prof-school { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.prof-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prof-tag {
  font-size: 11px;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.prof-bio { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.prof-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.prof-rating {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.prof-status {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.prof-status .dot { width: 5px; height: 5px; border-radius: 999px; background: #10B981; }

/* ---- Tweaks Panel ---- */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  width: 280px;
  box-shadow: var(--shadow-float);
  display: none;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.tweaks-panel.visible { display: flex; }
.tweaks-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweak-row label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tweak-seg {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.tweak-seg button {
  flex: 1;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tweak-seg button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tweak-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  resize: vertical;
  min-height: 60px;
}
.tweak-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12); }
.tweak-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tweak-prices input {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Tiny utilities */
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  margin: 0 auto 20px;
  max-width: 820px;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
}
[data-type="serif"] .page-hero h1 { font-weight: 400; letter-spacing: -0.012em; }
.page-hero p.lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

/* ---- Wizard multi-step form ---- */
.modal.wizard-modal { max-width: 620px; padding: 28px 32px 24px; }
.wizard-head { margin-bottom: 22px; }
.wizard-steps {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.wizard-step {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  color: var(--ink-3); transition: color 0.2s;
}
.wizard-step-dot {
  width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--line-2); color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.wizard-step-label {
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--font-mono); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wizard-step.is-active { color: var(--ink); }
.wizard-step.is-active .wizard-step-dot {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(27, 58, 107, 0.08);
}
.wizard-step.is-done { color: var(--ink-2); }
.wizard-step.is-done .wizard-step-dot {
  background: #ECFDF5; color: #059669; border-color: #A7F3D0;
}
.wizard-progress {
  height: 2px; background: var(--line-2); border-radius: 999px; overflow: hidden;
}
.wizard-progress > span {
  display: block; height: 100%; background: var(--navy);
  transition: width 0.3s cubic-bezier(.2,.8,.2,1);
}
.wizard-form { display: flex; flex-direction: column; }
.wizard-panel {
  animation: wizardFadeIn 0.28s cubic-bezier(.2,.8,.2,1);
}
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.wizard-step-body h3 {
  font-size: 20px; margin: 0 0 18px;
}
.wizard-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.wizard-chips .matiere-chip {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
  font-size: 13px; font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wizard-chips .matiere-chip:hover {
  border-color: var(--ink-3); color: var(--ink);
}
.wizard-chips .matiere-chip.is-active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.wizard-nav {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.wizard-nav-spacer { flex: 1; }
.wizard-nav .btn-primary { width: auto; padding: 12px 22px; }

/* Calendar picker */
.wizard-calendar {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.wc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.wc-title { display: flex; align-items: baseline; gap: 8px; }
.wc-month {
  font-family: var(--font-display, var(--font-sans));
  font-style: italic; font-size: 17px; color: var(--ink);
  text-transform: capitalize;
}
.wc-year { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.wc-nav {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 16px; color: var(--ink-2); line-height: 1;
}
.wc-nav:hover:not(:disabled) { background: var(--line-2); color: var(--ink); }
.wc-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.wc-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
  text-transform: uppercase; text-align: center; letter-spacing: 0.06em;
}
.wc-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.wc-cell {
  aspect-ratio: 1; border: 1px solid transparent; background: transparent;
  border-radius: 8px; font-size: 13px; color: var(--ink-2);
  cursor: pointer; font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.wc-cell:hover:not(:disabled):not(.is-selected) {
  background: var(--line-2); color: var(--ink);
}
.wc-cell.is-selected {
  background: var(--navy); color: #fff; border-color: var(--navy);
  font-weight: 600;
}
.wc-cell.is-disabled { opacity: 0.28; cursor: not-allowed; }
.wc-empty { pointer-events: none; }

/* Success screen */
.wizard-success { padding: 16px 0; }
.wizard-success h3 {
  font-family: var(--font-display, var(--font-sans));
  font-size: 26px; letter-spacing: -0.02em;
}
.wizard-success p strong { color: var(--ink); }
.wizard-success-sub { font-size: 13.5px !important; color: var(--ink-3) !important; margin-bottom: 18px !important; }
.wizard-success-wa {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 13px;
}

@media (max-width: 640px) {
  .modal.wizard-modal { padding: 22px 20px 18px; }
  .wizard-step-label { display: none; }
  .wizard-steps { gap: 16px; justify-content: flex-start; }
  .wizard-step { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-panel { animation: none; }
  .wizard-progress > span { transition: none; }
}
