/* ============================================================
   OMNEA ÉDUCATION — Design System
   Palette : Navy + Or + Crème + Encre (couleurs du logo)
   ============================================================ */

:root {
  /* Colors */
  --bg: #F2EEE8;
  --bg-warm: #EBE5DB;
  --bg-deep: #E4DBCB;
  --ink: #1C1C1A;
  --ink-soft: #3D3D3A;
  --ink-muted: #6B675F;
  --ink-faint: #A09B8F;

  --sage: #14256E;
  --sage-deep: #0A1749;
  --sage-soft: #2E4199;
  --sage-light: #B8C1E0;

  --gold: #D4A056;
  --gold-deep: #B8853D;
  --gold-soft: #E8C998;

  --navy: #14256E;
  --navy-deep: #0A1749;
  --navy-soft: #2E4199;

  --line: rgba(28, 28, 26, 0.12);
  --line-strong: rgba(28, 28, 26, 0.2);

  /* Type */
  --serif: 'Fraunces', 'Tiempos', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;
  --s11: 160px;

  /* Radii */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Topbar */
  --sidebar-w: 0px;
  --topbar-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}

/* Links reset */
a { color: inherit; text-decoration: none; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h4 { font-size: clamp(1.125rem, 1.5vw, 1.375rem); letter-spacing: -0.01em; }

.serif { font-family: var(--serif); font-weight: 400; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 300; }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Layout */
.page {
  padding-top: var(--topbar-h);
  min-height: 100vh;
  position: relative;
}

.wrap {
  max-width: 1280px;
  padding: 0 var(--s7);
  margin: 0 auto;
}

.wrap-tight {
  max-width: 960px;
  padding: 0 var(--s7);
  margin: 0 auto;
}

.section {
  padding: var(--s11) 0;
  position: relative;
}

.section-tight { padding: var(--s9) 0; }

/* Section label (mono caption) */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-muted);
}

.eyebrow.no-line::before { display: none; }

/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

.sidebar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--sage);
  color: var(--bg);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--s7);
  gap: var(--s7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0;
  background: transparent;
  cursor: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212, 160, 86, 0.15), 0 8px 20px -10px rgba(14, 35, 105, 0.6);
}
.sidebar-logo img {
  display: block;
  height: 100%;
  width: auto;
  border-radius: 8px;
}
.sidebar-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(212, 160, 86, 0.5), 0 12px 24px -10px rgba(14, 35, 105, 0.8);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.sidebar-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 238, 232, 0.65);
  padding: var(--s3) 0;
  transition: color 0.25s ease;
  cursor: none;
  position: relative;
}

.sidebar-link:hover,
.sidebar-link.active { color: var(--bg); }

.sidebar-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(242, 238, 232, 0.6);
  text-transform: uppercase;
}

.sidebar-foot .rotate { /* no rotation on horizontal bar */ }

.sidebar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ============================================================
   BUTTONS & CTAs
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 18px 32px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--sage);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(20, 37, 110, 0.3);
}

.btn-gold {
  background: var(--gold);
  color: var(--sage-deep);
}
.btn-gold:hover {
  background: var(--gold-deep);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: currentColor;
  display: grid;
  place-items: center;
  margin-right: -12px;
  transition: transform 0.3s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-arrow svg { width: 14px; height: 14px; }
.btn-primary .btn-arrow svg,
.btn-gold .btn-arrow svg { color: var(--sage); }

/* Text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: all 0.25s ease;
  cursor: none;
}
.tlink:hover { color: var(--sage); border-color: var(--sage); gap: var(--s5); }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, opacity 0.2s;
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s, background 0.2s;
}

.cursor-ring.hover {
  width: 56px; height: 56px;
  background: rgba(242, 238, 232, 0.1);
}

.cursor-ring.text {
  width: 8px; height: 8px;
  background: var(--bg);
}

.cursor-label {
  position: fixed;
  top: 0; left: 0;
  padding: 6px 14px;
  background: var(--gold);
  color: var(--sage-deep);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-radius: var(--r-pill);
  transform: translate(16px, 16px);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.cursor-label.on { opacity: 1; }

/* Hide cursor on mobile */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, .cursor-label { display: none; }
  .btn, .sidebar-link, .sidebar-logo, .tlink { cursor: pointer; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 1;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.js-ready .reveal { opacity: 0; }
html.js-ready .reveal.in { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-chars span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.8em);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal-chars.in span {
  opacity: 1;
  transform: none;
}

/* ============================================================
   PLACEHOLDER IMAGE
   ============================================================ */

.ph {
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-align: center;
  padding: var(--s5);
}

.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 11px,
    rgba(28,28,26,0.05) 11px 12px
  );
  pointer-events: none;
}

.ph > span { position: relative; z-index: 1; }

.ph-sage { background: var(--sage); color: var(--sage-light); }
.ph-sage::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,0.04) 11px 12px);
}
.ph-gold { background: var(--gold); color: var(--sage-deep); }
.ph-gold::before {
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(45,74,62,0.07) 11px 12px);
}

/* ============================================================
   CARD BASE
   ============================================================ */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: var(--s6);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(20, 37, 110, 0.25);
}

/* ============================================================
   GOLD CORNER FILIGREE — signature ornament (from logo)
   ============================================================ */

.gold-corners {
  position: relative;
}
.gold-corners::before,
.gold-corners::after,
.gold-corners > .gcc-tl,
.gold-corners > .gcc-br {
  display: none;
}
/* top-left */
.gold-corners::before {
  top: 24px; left: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none' stroke='%23D4A056' stroke-width='1.2'><path d='M2 22 Q2 2 22 2'/><path d='M8 22 Q8 8 22 8'/><path d='M14 22 Q14 14 22 14'/><circle cx='22' cy='22' r='1.5' fill='%23D4A056'/></svg>");
}
/* top-right */
.gold-corners::after {
  top: 24px; right: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none' stroke='%23D4A056' stroke-width='1.2'><path d='M70 22 Q70 2 50 2'/><path d='M64 22 Q64 8 50 8'/><path d='M58 22 Q58 14 50 14'/><circle cx='50' cy='22' r='1.5' fill='%23D4A056'/></svg>");
}
.gold-corners > .gcc-tl {
  bottom: 24px; left: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none' stroke='%23D4A056' stroke-width='1.2'><path d='M2 50 Q2 70 22 70'/><path d='M8 50 Q8 64 22 64'/><path d='M14 50 Q14 58 22 58'/><circle cx='22' cy='50' r='1.5' fill='%23D4A056'/></svg>");
}
.gold-corners > .gcc-br {
  bottom: 24px; right: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none' stroke='%23D4A056' stroke-width='1.2'><path d='M70 50 Q70 70 50 70'/><path d='M64 50 Q64 64 50 64'/><path d='M58 50 Q58 58 50 58'/><circle cx='50' cy='50' r='1.5' fill='%23D4A056'/></svg>");
}

/* Gold arc separator (like the one under "Omnea" in the logo) */
.gold-arc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin: var(--s5) auto;
  max-width: 320px;
}
.gold-arc::before,
.gold-arc::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
}
.gold-arc-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  background: var(--sage-deep);
  color: var(--bg);
  padding: var(--s10) 0 var(--s6);
  position: relative;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s7);
  margin-bottom: var(--s9);
}

.foot h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s5);
  font-weight: 400;
}

.foot-links { display: flex; flex-direction: column; gap: var(--s3); }
.foot-links a {
  color: rgba(242, 238, 232, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s;
  cursor: none;
  display: inline-block;
  width: fit-content;
}
.foot-links a:hover { color: var(--gold); }

.foot-brand {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--s4);
}
.foot-brand em { font-style: italic; color: var(--gold); }

.foot-logo {
  display: block;
  height: 72px;
  width: auto;
  border-radius: 10px;
  margin-bottom: var(--s5);
  box-shadow: 0 0 0 1px rgba(212, 160, 86, 0.2), 0 20px 40px -20px rgba(14, 35, 105, 0.6);
}

.foot-tag {
  color: rgba(242, 238, 232, 0.7);
  font-size: 0.95rem;
  max-width: 360px;
  line-height: 1.6;
}

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--s5);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(242, 238, 232, 0.5);
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE (minimal — desktop-first for this brief)
   ============================================================ */

@media (max-width: 900px) {
  .sidebar { padding: 0 var(--s5); gap: var(--s4); }
  .sidebar-nav { gap: var(--s4); overflow-x: auto; }
  .sidebar-foot { display: none; }
  .wrap, .wrap-tight { padding: 0 var(--s5); }
  .section { padding: var(--s8) 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}
