/* ==========================================================================
   House of Mentorat — Design System
   Palette : Bordeaux profond / Brun chocolat / Or champagne / Ivoire
   ========================================================================== */

:root {
  --bordeaux: #5c1420;
  --bordeaux-light: #7a1f2e;
  --bordeaux-dark: #3d0d16;
  --chocolate: #2b1810;
  --chocolate-light: #40261a;
  --gold: #c9a35e;
  --gold-light: #e8d5a8;
  --gold-dark: #a5813f;
  --ivory: #f8f1e6;
  --ivory-dark: #efe4d2;
  --white: #fffdf9;

  --text-dark: #2b1810;
  --text-light: #f8f1e6;
  --text-muted: #8a7863;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-script: 'Mrs Saint Delafield', cursive;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
  --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--ivory);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--chocolate);
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 400;
  margin-bottom: 18px;
  display: inline-block;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto;
  border: none;
}
.divider.left { margin: 20px 0; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--chocolate);
  border-color: var(--gold);
}
.btn-primary:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}
.btn-outline:hover { background: var(--ivory); color: var(--chocolate); }

.btn-outline-dark {
  background: transparent;
  color: var(--chocolate);
  border-color: var(--chocolate);
}
.btn-outline-dark:hover { background: var(--chocolate); color: var(--ivory); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(43, 24, 16, 0.97);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Utility row: nav links centered, CTA pinned right, balanced by an empty spacer */
.navbar-utility {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 32px 0;
}
.navbar-spacer { min-width: 1px; }
/* Positioned out of the grid flow so its size never inflates the (fixed) navbar's
   height and pushes page content down — it simply overlays the top-left corner. */
.navbar-mini-logo {
  position: absolute;
  left: 32px;
  top: 12px;
  display: block;
  line-height: 0;
  z-index: 2;
}
.navbar-mini-logo img { height: 148px; width: auto; display: block; transition: var(--transition); }
.navbar.scrolled .navbar-mini-logo { top: 8px; }
.navbar.scrolled .navbar-mini-logo img { height: 104px; }
.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--ivory);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-light); }

.nav-cta {
  grid-column: 3;
  justify-self: end;
  padding: 11px 22px;
  font-size: 0.66rem;
}
.nav-cta-mobile { display: none; }

/* Brand row: big centered wordmark, collapses on scroll */
.navbar-brand {
  text-align: center;
  padding: 14px 0 20px;
  max-height: 90px;
  overflow: hidden;
  opacity: 1;
  transition: var(--transition);
}
.navbar-brand a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.navbar.scrolled .navbar-brand {
  max-height: 0;
  opacity: 0;
  padding: 0;
}
.navbar.scrolled .navbar-utility { padding: 16px 32px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  grid-column: 3;
  justify-self: end;
}
.nav-toggle span {
  width: 26px; height: 1px;
  background: var(--ivory);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--chocolate);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  background: var(--chocolate);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,24,16,0.55) 0%, rgba(43,24,16,0.35) 45%, rgba(43,24,16,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ivory);
  max-width: 760px;
  padding: 0 24px;
}
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 22px;
}
.hero-content p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ivory-dark);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
/* ---------- Door CTA (hero) ---------- */
.door-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  text-decoration: none;
}
.door-handle {
  position: relative;
  width: 168px;
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.door-handle svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.4)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* Brass gradient stops (referenced by fill="url(#brass)" in the SVG) */
.door-handle stop.c1 { stop-color: var(--gold-light); }
.door-handle stop.c2 { stop-color: var(--gold); }
.door-handle stop.c3 { stop-color: var(--gold-dark); }
.door-handle .sheen { fill: url(#sheen); pointer-events: none; }
.door-handle .contact-shadow { fill: rgba(20, 10, 5, 0.35); }

.door-handle .pulse-ring {
  fill: none;
  stroke: rgba(201, 163, 94, 0.45);
  stroke-width: 1.4;
  transform-box: view-box;
  transform-origin: 55px 60px;
  animation: doorPulse 2.8s ease-out infinite;
}

/* Rosette (fixed mounting plate — does not move) */
.door-handle .rosette-plate { fill: url(#brass); stroke: var(--chocolate); stroke-width: 1; }
.door-handle .rosette-edge { fill: none; stroke: var(--gold-light); stroke-width: 0.6; opacity: 0.5; }
.door-handle .rosette-bead {
  fill: none;
  stroke: url(#brass);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.6 6.2;
}
.door-handle .rosette-bead-shadow {
  fill: none;
  stroke: var(--chocolate);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.6 6.2;
  opacity: 0.3;
  transform: translate(0.6px, 0.9px);
}
.door-handle .rosette-recess { fill: var(--chocolate); opacity: 0.22; stroke: var(--chocolate); stroke-width: 0.5; }
.door-handle .rosette-boss { fill: url(#brass); stroke: var(--chocolate); stroke-width: 0.8; }
.door-handle .rosette-slot { stroke: var(--chocolate); stroke-width: 1.6; opacity: 0.5; }

/* Whole handle assembly (rosette + lever together) pivots as one piece on hover */
.door-handle .handle-assembly {
  transform-box: view-box;
  transform-origin: 60px 65px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.door-handle .lever-part { fill: url(#brass); stroke: var(--chocolate); stroke-width: 0.9; }
.door-handle .lever-ring { fill: var(--gold-dark); stroke: var(--chocolate); stroke-width: 0.6; }
.door-handle .lever-flute { stroke: var(--chocolate); stroke-width: 1; opacity: 0.35; }
.door-handle .finial-bead {
  fill: none;
  stroke: url(#brass);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0.4 3.4;
}
.door-handle .finial-cap { fill: var(--gold-dark); opacity: 0.9; }

.door-cta:hover .door-handle .handle-assembly,
.door-cta:focus-visible .door-handle .handle-assembly {
  transform: rotate(14deg);
}
.door-cta:hover .door-handle .rosette-plate,
.door-cta:focus-visible .door-handle .rosette-plate {
  stroke: var(--gold-light);
}

.door-cta-label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: var(--transition);
}
.door-cta:hover .door-cta-label { color: var(--gold-light); }

@keyframes doorPulse {
  0% { transform: scale(0.82); opacity: 0.55; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Entrance popup (annonce événement) ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(20, 11, 7, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.popup-overlay.active { opacity: 1; pointer-events: all; }
.popup-card {
  position: relative;
  max-width: 400px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--ivory);
  border: 1px solid var(--gold);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.popup-overlay.active .popup-card { transform: scale(1) translateY(0); }
.popup-card img { width: 100%; display: block; }

/* Affiche officielle de l'événement (page Événement) */
.event-poster {
  display: inline-block;
  max-width: 560px;
  width: 100%;
  background: var(--ivory);
  border: 1px solid var(--gold);
  box-shadow: 0 30px 70px rgba(43, 24, 16, 0.28);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.event-poster:hover { transform: translateY(-6px); box-shadow: 0 40px 90px rgba(43, 24, 16, 0.36); }
.event-poster img { width: 100%; display: block; }
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(20, 11, 7, 0.65);
  color: var(--ivory);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.popup-close:hover { background: var(--gold); color: var(--chocolate); }
.popup-cta { padding: 22px 26px 26px; text-align: center; }
.popup-cta .btn { width: 100%; }

/* ---------- Door transition overlay ---------- */
.door-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--chocolate);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.door-transition.active { opacity: 1; pointer-events: all; }
.door-transition video { width: 100%; height: 100%; object-fit: cover; }

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--ivory);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll .line { width: 1px; height: 40px; background: var(--gold); animation: scrollpulse 2s infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-dark { background: var(--chocolate); color: var(--ivory); }
.section-dark h2 { color: var(--white); }
.section-bordeaux { background: var(--bordeaux); color: var(--ivory); }
.section-bordeaux h2 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.section-head p { color: var(--text-muted); margin-top: 18px; font-size: 1rem; }
.section-dark .section-head p, .section-bordeaux .section-head p { color: var(--ivory-dark); }

/* ---------- Intro / Welcome ---------- */
.intro { text-align: center; max-width: 780px; margin: 0 auto; }
.intro h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 26px; }
.intro p { font-size: 1.08rem; color: var(--text-muted); }

/* ---------- Arch frame (brand iconography) ---------- */
.arch-frame {
  position: relative;
  border-radius: 220px 220px 8px 8px;
  overflow: hidden;
  border: 1px solid var(--gold);
  padding: 6px;
}
.arch-frame img, .arch-frame video { border-radius: 216px 216px 4px 4px; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Grid layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* ---------- Cards: Programmes ---------- */
.program-card {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  padding: 48px 36px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.program-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(43,24,16,0.12);
}
.program-card .tier { font-family: var(--font-script); font-size: 1.8rem; color: var(--gold-dark); margin-bottom: 6px; }
.program-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.program-card .price { font-family: var(--font-display); font-size: 1.6rem; color: var(--bordeaux); margin: 18px 0; }
.program-card p.desc { color: var(--text-muted); font-size: 0.94rem; min-height: 48px; }
.program-card ul { text-align: left; margin: 24px 0; }
.program-card ul li { padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--ivory-dark); color: var(--text-dark); }
.program-card ul li:last-child { border: none; }
.program-card > a.btn { margin-top: auto; }

/* ---------- Event details ---------- */
.event-detail-list { margin-top: 24px; }
.event-detail-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(248,241,230,0.15);
}
.event-detail-item .label {
  min-width: 140px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.event-detail-item .value { font-size: 1.05rem; color: var(--ivory); }
.event-detail-item .value small { display:block; color: var(--ivory-dark); font-size: 0.85rem; margin-top: 4px; }

.experience-list { margin-top: 30px; }
.experience-list li {
  padding: 14px 0 14px 30px;
  position: relative;
  border-bottom: 1px solid rgba(43,24,16,0.08);
}
.experience-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.countdown-item { text-align: center; min-width: 80px; }
.countdown-item .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--white); }
.countdown-item .lbl { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  padding: 44px 38px;
  position: relative;
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: 10px; display: block; }
.testimonial-card p.quote { font-style: italic; color: var(--text-dark); font-size: 1.02rem; margin-bottom: 22px; }
.testimonial-card .author { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); }
.placeholder-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--ivory-dark);
  padding: 4px 10px;
}

/* ---------- Founder teaser ---------- */
.founder-signature { font-family: var(--font-script); font-size: 2rem; color: var(--bordeaux); margin-top: 20px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--chocolate);
  color: var(--ivory-dark);
  padding: 90px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(248,241,230,0.12);
}
.footer h4 {
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-family: var(--font-body);
  font-weight: 400;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { height: 46px; }
.footer-logo span { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }

.footer-seal { text-align: center; margin-bottom: 60px; }
.footer-seal img { height: 78px; width: auto; margin: 0 auto; opacity: 0.92; }
.footer p { font-size: 0.9rem; color: var(--ivory-dark); }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { font-size: 0.9rem; color: var(--ivory-dark); transition: var(--transition); }
.footer ul li a:hover { color: var(--gold-light); }

.newsletter-form { display: flex; margin-top: 14px; border-bottom: 1px solid var(--gold); }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: var(--ivory-dark); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  background: none; border: none; color: var(--gold-light);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-muted); }
.social-links { display: flex; gap: 18px; }
.social-links a { color: var(--ivory-dark); font-size: 0.85rem; letter-spacing: 0.05em; }
.social-links a:hover { color: var(--gold-light); }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  background: var(--chocolate);
  color: var(--ivory);
  padding: 200px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero .eyebrow { color: var(--gold-light); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 22px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ivory-dark);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--bordeaux);
}
.legal-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 0 0 14px 0;
  padding-left: 0;
}
.legal-content ul li {
  color: var(--text-muted);
  font-size: 0.98rem;
  padding: 6px 0 6px 22px;
  position: relative;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.legal-content strong { color: var(--text-dark); }
.legal-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 50px;
  display: block;
}
.legal-note {
  background: var(--ivory-dark);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  margin: 0 0 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Video showcase (rectangle, full frame, click-to-play with sound) ---------- */
.video-showcase {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--chocolate);
  box-shadow: 0 30px 70px rgba(43, 24, 16, 0.35);
  cursor: pointer;
}
.video-showcase video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,24,16,0.05) 0%, rgba(43,24,16,0.35) 100%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.video-showcase.playing::after { opacity: 0; }

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 60%, var(--gold-dark) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 2;
}
.video-play-btn::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  animation: doorPulse 2.6s ease-out infinite;
}
.video-play-btn svg { width: 24px; height: 24px; fill: var(--chocolate); margin-left: 4px; }
.video-showcase:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-showcase.playing .video-play-btn { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.7); }

.video-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Map card (no embed, no cookies) ---------- */
.map-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--ivory-dark);
  padding: 50px 40px;
}
.map-card .map-pin {
  width: 46px; height: 46px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-card .map-pin svg { width: 20px; height: 20px; fill: var(--gold-dark); }
.map-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.map-card p { color: var(--text-muted); margin-bottom: 26px; line-height: 1.6; }

/* ---------- Signature key visual ---------- */
.signature-key-wrap { text-align: center; padding: 30px 0 60px; }
.signature-key-wrap img {
  width: 225px;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(43, 24, 16, 0.3));
}

/* ---------- Expert flip cards ---------- */
.expert-card {
  perspective: 1800px;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}
.expert-card-inner {
  position: relative;
  width: 100%;
  height: 620px;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}
/* Flips on hover (desktop/mouse) — and on the .flipped class added by JS for touch/mobile */
.expert-card:hover .expert-card-inner,
.expert-card.flipped .expert-card-inner {
  transform: rotateY(180deg);
}
.expert-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid var(--ivory-dark);
  box-shadow: 0 24px 60px rgba(43, 24, 16, 0.12);
}
.expert-card-front { background: var(--white); display: flex; flex-direction: column; }
.expert-card-front .expert-photo { width: 100%; height: 250px; flex-shrink: 0; overflow: hidden; }
.expert-card-front .expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.expert-card-front .expert-info { flex: 1; padding: 26px 30px; text-align: center; overflow: hidden; }

/* Typography template — matches the "Fonction" reference layout exactly, reused for all experts */
.expert-name-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 16px;
}
.expert-name-title .expert-name { font-weight: 600; }
.expert-name-title .expert-title { font-weight: 400; }
.expert-divider { width: 44px; height: 1px; background: var(--gold); margin: 0 auto 18px; border: none; }
.expert-skill-block { margin-bottom: 14px; }
.expert-skill-block:last-child { margin-bottom: 0; }
.expert-skill-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.expert-keywords { font-size: 0.85rem; color: var(--text-muted); font-style: italic; line-height: 1.5; }

.expert-card-front .flip-hint {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(43,24,16,0.55);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
}

.expert-card-back {
  transform: rotateY(180deg);
  background: var(--chocolate);
  color: var(--ivory);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.expert-card-back h4 { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.expert-card-back .expert-message { font-size: 0.95rem; color: var(--ivory-dark); line-height: 1.7; margin-bottom: 22px; }
.expert-card-back .expert-message-quote { font-family: var(--font-display); font-style: italic; color: var(--gold-light); margin-top: 14px; display: block; }
.expert-card-back .btn { width: 100%; max-width: 260px; }

@media (max-width: 500px) {
  .expert-card-inner { height: 660px; }
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.stat-tile { text-align: center; padding: 0 20px; position: relative; }
.stat-tile + .stat-tile::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--ivory-dark);
}
.stat-tile .stat-num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--bordeaux); }
.stat-tile .stat-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }

/* ---------- Values row (minimal, "quelques mots forts") ---------- */
.values-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  color: var(--chocolate);
  letter-spacing: 0.03em;
}
.values-divider { color: var(--gold); font-size: 1.3rem; }

/* ---------- Application form (Rejoindre la Maison) ---------- */
.form-section {
  margin-bottom: 46px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ivory-dark);
}
.form-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 30px; }
.form-section-num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: block;
}
.form-section h3 { font-size: 1.25rem; margin-bottom: 12px; }
.form-section .helper { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 20px; line-height: 1.6; }

.choice-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  cursor: pointer;
  padding: 14px 24px;
  border: 1px solid var(--ivory-dark);
  transition: var(--transition);
}
.choice-option input { accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.choice-option:hover { border-color: var(--gold); }
.choice-option:has(input:checked) { border-color: var(--gold); background: var(--ivory-dark); }

.objective-row { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.objective-row span { font-family: var(--font-display); color: var(--gold-dark); font-size: 1rem; }

.info-panel {
  background: var(--ivory-dark);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin-bottom: 46px;
}
.info-panel p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 8px; }
.info-panel p:last-child { margin-bottom: 0; }

/* ---------- Upload zone (candidature video) ---------- */
.upload-zone {
  position: relative;
  border: 1.5px dashed var(--ivory-dark);
  background: var(--ivory-dark);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201, 163, 94, 0.08);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-zone-content .upload-icon {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-zone-content .upload-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-dark); stroke-width: 1.6; }
.upload-zone-content .upload-text { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 6px; }
.upload-zone-content .upload-browse { color: var(--gold-dark); text-decoration: underline; }
.upload-zone-content .upload-hint { font-size: 0.78rem; color: var(--text-muted); }

.upload-file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.upload-file-info svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-dark); stroke-width: 1.6; flex-shrink: 0; }
.upload-file-info span[data-upload-filename] { font-size: 0.92rem; color: var(--text-dark); word-break: break-all; }
.upload-remove {
  pointer-events: all;
  background: none;
  border: 1px solid var(--ivory-dark);
  color: var(--text-muted);
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  transition: var(--transition);
}
.upload-remove:hover { border-color: var(--gold); color: var(--gold-dark); }
.upload-progress {
  margin-top: 14px;
  height: 3px;
  background: var(--ivory-dark);
  overflow: hidden;
  display: none;
}
.upload-progress-bar { height: 100%; width: 0%; background: var(--gold); transition: width 0.2s ease; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 60px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .navbar-utility { grid-template-columns: 1fr auto; padding: 18px 24px; }
  .navbar-spacer, .nav-cta { display: none; }
  .nav-toggle { grid-column: 2; }
  .navbar-brand { padding: 10px 0 16px; margin-top: 34px; }
  .navbar-brand a { font-size: 1.3rem; }
  .navbar-mini-logo { left: 24px; top: 10px; }
  .navbar-mini-logo img { height: 64px; }
  .navbar.scrolled .navbar-mini-logo { top: 8px; }
  .navbar.scrolled .navbar-mini-logo img { height: 48px; }
  .nav-links {
    grid-column: unset;
    justify-self: auto;
    position: fixed;
    inset: 0;
    width: 100%;
    background: var(--chocolate);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 10px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .countdown { gap: 16px; }
  .countdown-item .num { font-size: 2rem; }
  .event-detail-item { flex-direction: column; gap: 6px; }
}
