/* ============================================
   Clovis Éducation — Design System
   Classique / institutionnel
   ============================================ */

:root {
  --navy: #0a2545;
  --navy-soft: #14315a;
  --navy-ink: #061a33;
  --gold: #e8b53d;
  --gold-deep: #c99826;
  --gold-soft: #f3d27a;
  --cream: #faf6ec;
  --cream-warm: #f3ecdc;
  --paper: #ffffff;
  --ink: #1a1f2c;
  --ink-soft: #4a5060;
  --rule: #e6dcc4;
  --rule-soft: #efe6cf;

  --serif: "Playfair Display", "EB Garamond", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

/* ---------- TOP RIBBON ---------- */
.ribbon {
  background: var(--navy-ink);
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ribbon-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.ribbon span { opacity: 0.85; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(10, 37, 69, 0.04);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.brand-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}
nav.primary {
  display: flex;
  gap: 36px;
  align-items: center;
}
nav.primary a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-ink);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms, color 160ms;
}
nav.primary a:hover { color: var(--gold-deep); }
nav.primary a.active {
  border-bottom-color: var(--gold);
  color: var(--navy);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 2px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--ink-soft);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: background 160ms, color 160ms;
}
.lang-switch button:hover { color: var(--navy); }
.lang-switch button.active {
  background: var(--navy-ink);
  color: var(--gold);
}

/* Clovis World link (top right of header) */
.cw-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-soft);
  padding-left: 24px;
  margin-left: 4px;
  border-left: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 160ms;
}
.cw-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.cw-link:hover { color: var(--navy); }
.cw-link-label { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.cw-link-label small { font-size: 9px; opacity: 0.6; letter-spacing: 0.18em; }

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 900px) {
  nav.primary { gap: 18px; }
  nav.primary a { font-size: 11px; letter-spacing: 0.12em; }
  .cw-link-label { display: none; }
  .cw-link { padding-left: 14px; }
  .header-right { gap: 14px; }
}

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(232, 181, 61, 0.10), transparent 50%),
    linear-gradient(180deg, var(--navy-ink) 0%, var(--navy) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 4.5vw, 60px) var(--gutter) clamp(35px, 5vw, 70px);
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 64%;
}
@media (max-width: 1100px) { .hero-content { max-width: 70%; } }
@media (max-width: 900px) { .hero-content { max-width: 100%; } }
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.04;
  margin: 0 0 28px;
  letter-spacing: -0.005em;
  color: var(--cream);
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.65;
  max-width: 58ch;
  color: rgba(250, 246, 236, 0.85);
  margin: 0 0 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--gold);
  color: var(--navy-ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--gold-deep);
  transition: background 160ms, transform 160ms;
}
.hero-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }
.hero-cta .arrow { font-size: 16px; }

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 24px;
  padding: 18px 4px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid rgba(232, 181, 61, 0.5);
}
.hero-secondary:hover { color: var(--gold); }

.hero-seal {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 320px);
  opacity: 0.92;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
@media (max-width: 1100px) { .hero-seal { width: clamp(160px, 18vw, 220px); right: calc(var(--gutter) - 10px); opacity: 0.85; } }
@media (max-width: 900px) { .hero-seal { display: none; } }

/* ---------- SECTIONS ---------- */
section { padding: clamp(60px, 8vw, 120px) 0; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--navy-ink);
  letter-spacing: -0.01em;
}
.section-title em { color: var(--gold-deep); font-style: italic; font-weight: 500; }
.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 auto;
}

/* ---------- PILLARS (3 colonnes accueil) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  padding: 56px 36px;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
}
.pillar:last-child { border-right: none; }
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy-ink);
  margin: 0 0 16px;
  line-height: 1.2;
}
.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }
}

/* ---------- EXPERIENCES GRID ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 960px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .exp-grid { grid-template-columns: 1fr; } }

.exp-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms, border-color 220ms;
  position: relative;
  overflow: hidden;
}
.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(10, 37, 69, 0.25);
  border-color: var(--gold);
}
.exp-card-photo {
  aspect-ratio: 4 / 3;
  background: var(--cream-warm) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.exp-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 37, 69, 0.5));
}
.exp-card-flag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--cream);
  color: var(--navy-ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 12px;
  font-weight: 600;
  border: 1px solid var(--gold);
}
.exp-card-logo {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 8px;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-card-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.exp-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
.exp-card-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.exp-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
  color: var(--navy-ink);
}
.exp-card-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}
.exp-card-cta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exp-card-cta .arrow {
  transition: transform 200ms;
  color: var(--gold-deep);
}
.exp-card:hover .exp-card-cta .arrow { transform: translateX(4px); }

/* ---------- PAGE HEADER (sous-pages) ---------- */
.page-head {
  background: var(--navy-ink);
  color: var(--cream);
  padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px);
  pointer-events: none;
}
.page-head-inner { position: relative; }
.breadcrumb {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--gold-soft); text-decoration: none; opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { margin: 0 12px; opacity: 0.4; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--cream);
  max-width: 22ch;
}
.page-head h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
body[data-screen-label="02 À propos"] .page-head h1 em { font-size: 40%; display: inline-block; }
.page-head-lede {
  font-size: 18px;
  max-width: 60ch;
  color: rgba(250, 246, 236, 0.78);
  margin: 0;
  line-height: 1.65;
}

/* ---------- EXPERIENCE DETAIL ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .detail-hero { grid-template-columns: 1fr; gap: 36px; } }

.detail-photo {
  aspect-ratio: 4 / 5;
  background: var(--cream-warm) center/cover no-repeat;
  border: 1px solid var(--rule);
}
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.detail-school-logo {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  align-self: flex-start;
}
.detail-meta {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.detail-meta span:first-child { font-weight: 600; color: var(--navy); }
.detail-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
}
.detail-body p { margin: 0 0 18px; }
.detail-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  max-width: 60ch;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-stat {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}
.detail-stat-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.detail-stat-value {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy-ink);
  line-height: 1.2;
}

/* ---------- NEXT/PREV ---------- */
.adjacent {
  border-top: 1px solid var(--rule);
  background: var(--cream-warm);
}
.adjacent-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.adjacent a {
  padding: 40px var(--gutter);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 160ms;
}
.adjacent a:hover { background: rgba(232, 181, 61, 0.08); }
.adjacent a + a { border-left: 1px solid var(--rule); }
.adjacent-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.adjacent-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy-ink);
  line-height: 1.25;
}
.adjacent-right { text-align: right; }

/* ---------- ABOUT PAGE ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--cream-warm) center/cover no-repeat;
  border-radius: 2px;
  position: sticky;
  top: 100px;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; }
}
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--cream-warm) center/cover no-repeat;
  border: 1px solid var(--rule);
  position: sticky;
  top: 110px;
}
.about-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
}
.about-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  color: var(--navy-ink);
  margin: 0 0 24px;
  line-height: 1.15;
}
.about-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin: 40px 0 14px;
}
.about-body p { margin: 0 0 18px; }

.values {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 800px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value {
  padding: 44px 32px;
  border-right: 1px solid var(--rule);
}
.value:last-child { border-right: none; }
@media (max-width: 800px) {
  .value { border-right: none; border-bottom: 1px solid var(--rule); }
}
.value-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.value h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 12px;
}
.value p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ---------- ENGAGEMENT BAND (home) ---------- */
.engagement {
  background: var(--navy-ink);
  color: var(--cream);
  text-align: center;
  padding: clamp(70px, 9vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.engagement::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(232, 181, 61, 0.15), transparent 60%);
  pointer-events: none;
}
.engagement-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.4;
  max-width: 26ch;
  margin: 0 auto 32px;
  color: var(--cream);
  position: relative;
  z-index: 1;
}
.engagement-mark {
  font-family: var(--serif);
  font-size: 72px;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 28px;
  display: block;
  position: relative;
  z-index: 1;
}
.engagement-mark-end { margin-bottom: 0; margin-top: 28px; }
.engagement-signoff {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  position: relative;
  z-index: 1;
}

/* ---------- FEATURED EXP (home preview) ---------- */
.featured {
  background: var(--cream-warm);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-ink);
  color: rgba(250, 246, 236, 0.7);
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-brand img { width: 48px; height: 48px; }
.footer-brand .brand-name { color: var(--cream); font-size: 20px; }
.footer-brand .brand-tag { color: var(--gold); }
.footer p { margin: 0 0 10px; line-height: 1.65; }
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer a {
  color: rgba(250, 246, 236, 0.78);
  text-decoration: none;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(250, 246, 236, 0.5);
  letter-spacing: 0.06em;
}
