/* ══════════════════════════════════════════════════════════════
   Trophée David Campbell — Shared Styles
   Used by: candidat-pro.html, candidat-junior.html, enseignant.html, manager.html
   Note: index.html links this file for :root variables only;
         its layout CSS (full-screen dark, spotlight, cards) stays inline.
   ══════════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0E2E52;
  --navy-mid:  #163F6B;
  --navy-deep: #0A1F38;
  --navy-lite: #1E4C78;
  --gold:      #D5A03B;
  --gold-lt:   #E8BF6A;
  --gold-wh:   #F5E6B0;
  --teal:      #0F4C47;
  --cream:     #F8F5EF;
  --cream-w:   #F0EBE0;
  --ink:       #1A1208;
  --ink-mid:   #3D3322;
  --ink-muted: #756B58;

  --font-d: 'Cinzel', Georgia, serif;
  --font-h: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Crimson Pro', Georgia, serif;

  --g: 20px;
  --s: 80px;
}

@media (min-width: 768px)  { :root { --g: 56px;  --s: 120px; } }
@media (min-width: 1200px) { :root { --g: 88px; } }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── SCROLL REVEALS ─────────────────────────────────────────── */
.r {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.r.d1 { transition-delay: 0.08s; }
.r.d2 { transition-delay: 0.16s; }
.r.d3 { transition-delay: 0.24s; }
.r.d4 { transition-delay: 0.32s; }
.r.on { opacity: 1; transform: none; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--g);
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
}
.nav.solid {
  background: rgba(3,14,27,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(213,160,59,0.18);
}
.nav-logo { height: 68px; display: block; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-badge {
  display: none;
  font-family: var(--font-d);
  font-size: 8px;
  letter-spacing: 2.5px;
  color: var(--gold);
  border: 1px solid rgba(213,160,59,0.3);
  border-radius: 99px;
  padding: 5px 14px;
}
@media (min-width: 600px) { .nav-badge { display: block; } }

.btn-nav {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--navy);
  background: linear-gradient(135deg, #D5A03B 0%, #E8C96A 70%, #F5E6B0 100%);
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(213,160,59,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: linear-gradient(135deg, #E8C96A 0%, #F5E6B0 100%); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(213,160,59,0.45); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 48px var(--g) 48px;
}

.hero-bg {
  position: absolute;
  inset: -20% -5%;
  z-index: 0;
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10,31,56,0.55) 0%, rgba(10,31,56,0) 14%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,31,56,0.22) 0%, rgba(10,31,56,0.55) 100%),
    linear-gradient(to bottom,
      rgba(10,31,56,0.32)  0%,
      rgba(10,31,56,0.42)  40%,
      rgba(10,31,56,0.72)  75%,
      rgba(10,31,56,0.88) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(320px, 78vw);
  margin-bottom: 22px;
  animation: logoIn 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.86) translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero-edition {
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  animation: fadeUp 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-edition::before,
.hero-edition::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.hero-edition::after { background: linear-gradient(to left, transparent, var(--gold)); }

.hero-h1 {
  font-family: var(--font-h);
  font-size: clamp(30px, 6.5vw, 62px);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  animation: fadeUp 1s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 680px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--gold-lt);
}

.hero-sub {
  font-family: var(--font-b);
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 28px;
  animation: fadeUp 1s 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 460px;
}

.hero-accent {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D5A03B 30%, #F5E6B0 60%, transparent);
  transform: rotate(-12deg);
  margin: 0 auto 24px;
  animation: fadeUp 1s 0.96s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
}
.hero-accent::after {
  content: '';
  position: absolute;
  right: 18px; top: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F5E6B0;
  box-shadow: 0 0 8px rgba(245,230,176,0.8);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 1s 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-hero {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--navy);
  background: linear-gradient(135deg, #D5A03B 0%, #E8C96A 70%, #F5E6B0 100%);
  border-radius: 8px;
  padding: 16px 40px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(213,160,59,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.3) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn-hero:hover {
  background: linear-gradient(135deg, #E8C96A 0%, #F5E6B0 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(213,160,59,0.5);
}
.btn-hero:hover::after { transform: translateX(100%); }

.hero-down {
  font-family: var(--font-b);
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-down:hover { color: rgba(255,255,255,0.9); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUp 1s 1.2s both, bounce 2.4s 2.2s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ── GOLD SEAM ─────────────────────────────────────────────── */
.seam {
  height: 2px;
  background: linear-gradient(to right, var(--navy-deep), var(--gold) 40%, var(--gold) 60%, var(--navy-deep));
}

/* ── EYEBROW + SECTION HEADLINE ────────────────────────────── */
.eyebrow {
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow.dk { color: var(--ink-muted); }
.eyebrow.dk::before { background: var(--ink-muted); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.sh {
  font-family: var(--font-h);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
}
.sh.lt { color: #fff; }
.sh.dk { color: var(--ink); }
.sh.tl { color: #fff; }

/* ── GOLD BAR ──────────────────────────────────────────────── */
.gold-bar {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

/* ── MINI-QUOTES (.mq) ─────────────────────────────────────── */
.mini-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 560px) { .mini-quotes { grid-template-columns: 1fr 1fr; } }

.mq {
  text-align: left;
  padding: 28px 32px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.mq::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.mq:hover { background: rgba(255,255,255,0.05); }
.mq:hover::after { transform: scaleX(1); }
.mq blockquote {
  font-family: var(--font-h);
  font-size: 21px;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin-bottom: 14px;
}
.mq cite {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  font-style: normal;
}

/* ── GALLERY ────────────────────────────────────────────────── */
.gallery {
  height: 480px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  overflow: hidden;
}

@media (max-width: 639px) {
  .gallery {
    display: flex;
    height: 300px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
}

.gallery-col {
  overflow: hidden;
  position: relative;
  flex: 0 0 82vw;
  scroll-snap-align: center;
}
@media (min-width: 640px) { .gallery-col { flex: none; } }

.gallery-col + .gallery-col { border-left: 4px solid var(--navy-deep); }

.gallery-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(75%) brightness(0.88);
  transition: filter 0.5s ease, transform 0.6s ease;
}
.gallery-col:hover img {
  filter: saturate(100%) brightness(1);
  transform: scale(1.04);
}

/* ── CTA BANNER ──────────────────────────────────────────────── */
.cta-sec {
  background: var(--navy-deep);
  padding: var(--s) var(--g);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-sec::before, .cta-sec::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
}
.cta-sec::before { top: 0; }
.cta-sec::after  { bottom: 0; }

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(213,160,59,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-h);
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.08;
  margin: 14px 0 20px;
}
.cta-inner h2 em { font-style: normal; color: var(--gold-lt); }
.cta-inner > p {
  font-size: 17px;
  color: rgba(255,255,255,0.68);
  margin-bottom: 44px;
  line-height: 1.7;
}
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.btn-cta-big {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--navy);
  background: linear-gradient(135deg, #D5A03B 0%, #E8C96A 70%, #F5E6B0 100%);
  border-radius: 8px;
  padding: 18px 52px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(213,160,59,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-cta-big::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-cta-big:hover {
  background: linear-gradient(135deg, #E8C96A 0%, #F5E6B0 100%);
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(213,160,59,0.5);
}
.btn-cta-big:hover::after { transform: translateX(100%); }

.cta-meta { font-size: 14px; color: rgba(255,255,255,0.55); }
.cta-meta a { color: rgba(213,160,59,0.7); text-decoration: none; }
.cta-meta a:hover { color: var(--gold); }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-sec {
  background: var(--navy);
  padding: var(--s) var(--g);
}
.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq-hd { margin-bottom: 52px; }
.faq-hd .sh { margin: 12px 0 0; }

.faq-group { margin-bottom: 48px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 3.5px;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(213,160,59,0.2);
  padding-bottom: 14px;
  margin-bottom: 4px;
}

.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-item:first-of-type { border-top: 1px solid rgba(255,255,255,0.07); }

.faq-item summary {
  font-family: var(--font-b);
  font-size: 19px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 12px; height: 12px;
  border-right: 1.5px solid rgba(213,160,59,0.6);
  border-bottom: 1.5px solid rgba(213,160,59,0.6);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.3s ease, margin-top 0.3s ease;
  margin-top: -4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq-item summary:hover { color: #fff; }

.faq-answer {
  font-size: 18px;
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
  padding-bottom: 24px;
}
.faq-answer a { color: var(--gold); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

.faq-more {
  margin-top: 40px;
  text-align: center;
}
.faq-more a {
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--gold-lt);
  text-decoration: none;
  border-bottom: 1px solid rgba(213,160,59,0.35);
  padding-bottom: 2px;
}
.faq-more a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ── PARTENAIRES ──────────────────────────────────────────────── */
.partners-sec {
  background: var(--navy-deep);
  padding: 56px var(--g) 40px;
  text-align: center;
  border-top: 1px solid rgba(213,160,59,0.1);
}
.partners-label {
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.partner-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.partner-chip:hover { transform: translateY(-2px); }
.partner-chip img { height: 40px; width: auto; display: block; }
.partner-chip.tall img { height: 56px; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(213,160,59,0.1);
  padding: 44px var(--g);
}
.footer-in {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 640px) {
  .footer-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
footer img { height: 94px; width: auto; opacity: 0.5; display: block; }
.f-info {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  line-height: 1.9;
}
.f-info a { color: rgba(213,160,59,0.42); text-decoration: none; }
.f-info a:hover { color: var(--gold); }
