/* ==========================================================================
   École des Langues et Cultures
   Design system : institutionnel raffiné
   Palette issue du logo : bordeaux, or olive, crème
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Couleurs primaires — issues directement du logo */
  --c-bordeaux: #5C1A2B;
  --c-bordeaux-dark: #3E0F1C;
  --c-bordeaux-light: #7A2839;

  --c-gold: #A88B4A;
  --c-gold-light: #C5A972;
  --c-gold-dark: #8A7038;

  --c-cream: #F5F0E8;
  --c-cream-warm: #EDE5D5;
  --c-paper: #FBF8F2;

  --c-ink: #2A1B16;
  --c-ink-soft: #5C4B43;
  --c-ink-muted: #8C7F75;

  --c-white: #FFFFFF;
  --c-line: rgba(168, 139, 74, 0.18);
  --c-line-strong: rgba(92, 26, 43, 0.15);

  /* Typographie */
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-arabic: 'Amiri', 'Cormorant Garamond', serif;

  /* Échelle typographique */
  --fs-hero: clamp(3rem, 7vw, 6.5rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.875rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.375rem, 2.2vw, 1.875rem);
  --fs-h4: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Espacements */
  --sp-section: clamp(3.5rem, 7vw, 5.5rem);
  --sp-block: clamp(1.75rem, 3.5vw, 2.75rem);
  --container: 1320px;
  --container-narrow: 880px;

  /* Ombres */
  --shadow-soft: 0 4px 24px rgba(42, 27, 22, 0.06);
  --shadow-med: 0 12px 40px rgba(42, 27, 22, 0.10);
  --shadow-strong: 0 24px 64px rgba(42, 27, 22, 0.18);

  /* Transitions */
  --t-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Header */
  --header-h: 88px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

/* Sections cibles d'ancres : décalage pour ne pas être cachées sous le header fixe */
section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--c-bordeaux); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-gold-dark); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--c-bordeaux); color: var(--c-cream); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-bordeaux-dark);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }

.eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-gold);
}

.display-italic { font-style: italic; color: var(--c-gold-dark); }

/* ---------- Containers ---------- */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 3rem, var(--container-narrow));
  margin-inline: auto;
}

section { padding: var(--sp-section) 0; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
}
.site-header.is-transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
}
.site-header.is-transparent .nav-link,
.site-header.is-transparent .brand-text { color: var(--c-cream); }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 24px rgba(42,27,22,0.04);
}
.site-header.is-scrolled .nav-link,
.site-header.is-solid .nav-link,
.site-header.is-scrolled .brand-text,
.site-header.is-solid .brand-text { color: var(--c-bordeaux-dark); }

.header-inner {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transition: color var(--t-med);
}
.brand-text strong {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.brand-text span {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-cream);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-gold);
  transition: width var(--t-med);
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link:hover { color: var(--c-gold-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--c-bordeaux);
  color: var(--c-cream) !important;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all var(--t-med);
}
.nav-cta:hover {
  background: var(--c-bordeaux-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(92, 26, 43, 0.25);
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--c-cream);
  transition: all var(--t-med);
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-solid .nav-toggle span { background: var(--c-bordeaux); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO — Vidéo en background
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--c-cream);
  padding-top: var(--header-h);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(62, 15, 28, 0.85) 0%, rgba(42, 27, 22, 0.55) 60%, rgba(62, 15, 28, 0.75) 100%),
    radial-gradient(ellipse at top left, rgba(168, 139, 74, 0.2) 0%, transparent 60%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 4;
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  padding: 6rem 0 4rem;
}

/* Layout split : texte gauche + logo cercle droite */
.hero-content--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}
.hero-text {
  max-width: 640px;
}

/* Bloc logo arrondi à droite */
.hero-logo-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  opacity: 0;
  transform: scale(0.92);
  animation: hero-logo-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  /* Garantir une hauteur minimale au cas où aspect-ratio ne s'applique pas */
  min-height: 280px;
}
/* Halo doux derrière le disque */
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 139, 74, 0.35) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-logo-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 50%;
  border: 3px solid var(--c-gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 0 30px rgba(168, 139, 74, 0.5);
  z-index: 1;
}
.hero-logo-disc {
  position: absolute;
  top: 4%;
  left: 4%;
  right: 4%;
  bottom: 4%;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 2;
}
.hero-logo-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(168, 139, 74, 0.35);
  pointer-events: none;
  z-index: 3;
}
.hero-logo-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.hero-logo-wrap:hover .hero-logo-disc {
  transform: scale(1.03);
}

@keyframes hero-logo-in {
  to { opacity: 1; transform: scale(1); }
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  opacity: 1;
  animation: hero-reveal 1s var(--t-slow) 0.2s both;
}
.hero-eyebrow::before {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--c-gold);
}
.hero-title {
  font-family: var(--f-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-cream);
  margin-bottom: 1.75rem;
  max-width: 18ch;
}
.hero-title .line {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: hero-line 1.2s var(--t-slow) both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) {
  font-style: italic;
  color: var(--c-gold-light);
  animation-delay: 0.6s;
}
.hero-former {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.625rem;
  color: var(--c-gold-light);
  letter-spacing: 0.02em;
  margin-top: -1rem;
  margin-bottom: 1.75rem;
  opacity: 1;
  animation: hero-reveal 1s var(--t-slow) 0.7s both;
}
.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.85);
  max-width: 52ch;
  margin-bottom: 2.75rem;
  opacity: 1;
  animation: hero-reveal 1s var(--t-slow) 0.8s both;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 1;
  animation: hero-reveal 1s var(--t-slow) 1s both;
}

@keyframes hero-line {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-cream);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 1;
  animation: hero-reveal 1s var(--t-slow) 1.4s both;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--c-gold-light);
  animation: scroll-drop 2.2s ease-in-out infinite;
}
@keyframes scroll-drop {
  to { top: 100%; }
}

/* Ornement décoratif hero */
.hero-ornament {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.hero-ornament--tr {
  top: 12vh;
  right: 4rem;
  width: 180px;
  opacity: 0.25;
  animation: float 18s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.125rem 2rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--t-med);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-arrow {
  width: 1.125rem;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width var(--t-med);
}
.btn-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn-arrow { width: 1.625rem; }

.btn--primary {
  background: var(--c-gold);
  color: var(--c-bordeaux-dark);
}
.btn--primary:hover {
  background: var(--c-gold-light);
  color: var(--c-bordeaux-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(168, 139, 74, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border: 1px solid rgba(245, 240, 232, 0.4);
}
.btn--ghost:hover {
  background: rgba(245, 240, 232, 0.08);
  border-color: var(--c-cream);
  color: var(--c-cream);
}

.btn--bordeaux {
  background: var(--c-bordeaux);
  color: var(--c-cream);
}
.btn--bordeaux:hover {
  background: var(--c-bordeaux-dark);
  color: var(--c-cream);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(92, 26, 43, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--c-bordeaux);
  border: 1px solid var(--c-bordeaux);
}
.btn--outline:hover {
  background: var(--c-bordeaux);
  color: var(--c-cream);
}

/* Link with arrow inline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-bordeaux);
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t-fast);
}
.link-arrow:hover { gap: 1rem; color: var(--c-gold-dark); }

/* ==========================================================================
   FORMATIONS — Section
   ========================================================================== */
.formations {
  background: var(--c-paper);
  position: relative;
}
.formations::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--c-line);
}

.section-head {
  text-align: center;
  margin-bottom: var(--sp-block);
  max-width: 720px;
  margin-inline: auto;
}
.section-head .eyebrow { margin-bottom: 0.875rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-gold);
  margin: 1rem auto 0;
}
.section-head p {
  color: var(--c-ink-soft);
  font-size: 1rem;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.formation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
  border-color: var(--c-gold);
}
.formation-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-cream-warm);
}
.formation-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62, 15, 28, 0.3), transparent 60%);
}
.formation-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--t-slow);
}
.formation-card:hover .formation-card__image img { transform: scale(1.05); }

.formation-card__body {
  padding: 1.75rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.formation-card__subtitle {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  font-weight: 600;
}
.formation-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}
.formation-card__desc {
  color: var(--c-ink-soft);
  line-height: 1.6;
  font-size: 0.9375rem;
}
.formation-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: var(--c-cream);
  color: var(--c-bordeaux);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.formation-card__footer {
  padding: 0 1.75rem 1.75rem;
}

/* ==========================================================================
   ABOUT preview
   ========================================================================== */
.about-preview {
  background: var(--c-bordeaux-dark);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.about-preview::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168, 139, 74, 0.15) 0%, transparent 65%);
  pointer-events: none;
}
.about-preview .eyebrow { color: var(--c-gold-light); }
.about-preview .eyebrow::before { background: var(--c-gold-light); }

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text h2 {
  color: var(--c-cream);
  margin: 1.5rem 0 2rem;
}
.about-text h2 em {
  font-style: italic;
  color: var(--c-gold-light);
}
.about-text p {
  color: rgba(245, 240, 232, 0.78);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-features {
  list-style: none;
  margin: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--c-cream);
}
.about-features li::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--c-gold);
  flex-shrink: 0;
}

.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  width: 100%;
  margin-left: auto;
  border-radius: 4px;
  overflow: hidden;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid var(--c-gold);
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
  transform: translate(16px, 16px);
}
.about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.15) saturate(0.9);
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  background: var(--c-cream);
  padding: 5rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--c-line);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--c-bordeaux);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.125rem;
}
.stat-value sup {
  font-size: 0.5em;
  color: var(--c-gold-dark);
  margin-left: 0.25rem;
}
.stat-label {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  font-weight: 500;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
  background: var(--c-paper);
  position: relative;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  padding: 2.5rem 2rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), border-color var(--t-med);
}
.testimonial::before {
  content: "\201C";
  font-family: var(--f-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--c-gold);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.35;
}
.testimonial:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
}
.testimonial-quote {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--c-ink);
  margin: 2.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
}
.testimonial-name {
  font-weight: 600;
  color: var(--c-bordeaux);
  font-size: 0.9375rem;
}
.testimonial-role {
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   NEWS / ARTICLES
   ========================================================================== */
.news-section {
  background: var(--c-cream);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.news-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
}
.news-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-cream-warm);
  position: relative;
}
.news-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--t-slow);
}
.news-card:hover .news-card__image img { transform: scale(1.06); }
.news-card__category {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.4rem 0.875rem;
  background: var(--c-bordeaux);
  color: var(--c-cream);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
}
.news-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--c-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.news-card__meta span + span::before {
  content: "·";
  margin-right: 0.75rem;
  color: var(--c-gold);
}
.news-card__title {
  font-size: 1.375rem;
  line-height: 1.25;
  margin-bottom: 0.875rem;
  color: var(--c-bordeaux-dark);
}
.news-card:hover .news-card__title { color: var(--c-bordeaux); }
.news-card__excerpt {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* ==========================================================================
   EVENTS specific styling
   ========================================================================== */
.event-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  padding: 2rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  align-items: center;
  transition: transform var(--t-med), border-color var(--t-med);
  margin-bottom: 1.5rem;
}
.event-card:hover {
  transform: translateX(4px);
  border-color: var(--c-gold);
}
.event-date {
  text-align: center;
  padding-right: 2rem;
  border-right: 1px solid var(--c-line);
}
.event-date__day {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-bordeaux);
}
.event-date__month {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  margin-top: 0.5rem;
  font-weight: 600;
}
.event-date__year {
  font-size: 0.75rem;
  color: var(--c-ink-muted);
  margin-top: 0.25rem;
}
.event-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.event-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
}
.event-info__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.event-info__excerpt {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
}
.event-status {
  padding: 0.4rem 0.875rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
}
.event-status.upcoming { background: var(--c-bordeaux); color: var(--c-cream); }
.event-status.past { background: var(--c-cream-warm); color: var(--c-ink-soft); }

/* ==========================================================================
   PAGE HEADER (sub-pages)
   ========================================================================== */
.page-header {
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  background: linear-gradient(135deg, var(--c-bordeaux-dark) 0%, var(--c-bordeaux) 100%);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(168, 139, 74, 0.18) 0%, transparent 60%);
}
.page-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--c-gold), transparent);
}
.page-header-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-header h1 {
  color: var(--c-cream);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin: 0.6rem 0 0.75rem;
}
.page-header h1 em { color: var(--c-gold-light); font-style: italic; }
.page-header p {
  max-width: 60ch;
  margin: 0 auto;
  color: rgba(245, 240, 232, 0.82);
  font-size: 1rem;
}
.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--c-gold-light); }
.breadcrumb a:hover { color: var(--c-cream); }

/* ==========================================================================
   VALUES (About page)
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.value-card {
  text-align: left;
  padding: 2rem 1.5rem;
  border-top: 2px solid var(--c-gold);
  background: var(--c-paper);
}
.value-card__num {
  font-family: var(--f-display);
  font-size: 0.875rem;
  color: var(--c-gold-dark);
  font-style: italic;
  display: block;
  margin-bottom: 1rem;
}
.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}
.value-card p {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================================================
   TIMELINE (history)
   ========================================================================== */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 100px;
  width: 1px;
  background: var(--c-line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 3rem;
  align-items: baseline;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid var(--c-paper);
}
.timeline-year {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--c-bordeaux);
  font-weight: 500;
}
.timeline-event {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink);
  padding-top: 0.5rem;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-list {
  list-style: none;
  margin-top: 2rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-line);
}
.contact-list strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.contact-list a, .contact-list span {
  color: var(--c-ink);
  font-size: 1rem;
}

.contact-form {
  background: var(--c-white);
  padding: 2.5rem;
  border: 1px solid var(--c-line);
  border-radius: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-gold);
  background: var(--c-white);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.form-msg {
  padding: 1rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}
.form-msg.success { background: rgba(168, 139, 74, 0.12); color: var(--c-gold-dark); border-left: 3px solid var(--c-gold); }
.form-msg.error { background: rgba(92, 26, 43, 0.08); color: var(--c-bordeaux); border-left: 3px solid var(--c-bordeaux); }

/* ==========================================================================
   CTA Block
   ========================================================================== */
.cta-block {
  padding: var(--sp-section) 0;
  background:
    linear-gradient(135deg, rgba(62, 15, 28, 0.95) 0%, rgba(92, 26, 43, 0.92) 100%),
    var(--c-bordeaux);
  color: var(--c-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 139, 74, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 139, 74, 0.15) 0%, transparent 50%);
}
.cta-block-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.cta-block .hero-ctas {
  opacity: 1;
  animation: none;
  justify-content: center;
}
.cta-block h2 {
  color: var(--c-cream);
  margin: 0.75rem 0 1rem;
}
.cta-block h2 em { color: var(--c-gold-light); }
.cta-block p {
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

/* Variante compacte pour les pages filière (CTA secondaire de fin de page) */
.cta-block--compact {
  padding: 3.5rem 0 4rem;
}
.cta-block--compact .hero-ctas {
  justify-content: center;
  gap: 0.875rem;
}
.cta-block--compact .btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.8125rem;
}
@media (max-width: 640px) {
  .cta-block--compact { padding: 2.75rem 0 3rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-bordeaux-dark);
  color: rgba(245, 240, 232, 0.78);
  padding: 3.25rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 1.1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(245, 240, 232, 0.45);
}
.newsletter-form > div:focus-within {
  border-color: var(--c-gold) !important;
  background: rgba(245, 240, 232, 0.08) !important;
}
.newsletter-form button:hover {
  background: var(--c-gold-light) !important;
}
.footer-col h4 {
  color: var(--c-cream);
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.625rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 24px;
  height: 1px;
  background: var(--c-gold);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.footer-brand-text strong {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--c-cream);
  display: block;
  line-height: 1.1;
}
.footer-brand-text span {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-light);
}
.footer-about {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.875rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-col a:hover {
  color: var(--c-gold-light);
  padding-left: 0.375rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
.footer-col h4 + .footer-contact-item,
.footer-col h4 + .footer-contact-item + .footer-contact-item {
  display: block;
}
.footer-contact-item::before {
  content: "→";
  color: var(--c-gold);
  font-weight: 700;
  margin-top: 0.1rem;
}
.footer-col h4 + .footer-contact-item::before,
.footer-col h4 + .footer-contact-item + .footer-contact-item::before {
  display: none;
}

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: 50%;
  transition: all var(--t-med);
}
.footer-social a:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-bordeaux-dark);
  padding-left: 0;
}
.footer-social svg { width: 14px; height: 14px; }

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-legal a {
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.8125rem;
}
.footer-legal a:hover { color: var(--c-gold-light); }

/* ==========================================================================
   ABOUT PAGE — extended sections
   ========================================================================== */
.about-intro {
  padding: var(--sp-section) 0;
  background: var(--c-paper);
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-intro-text h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 1.5rem 0 2rem;
}
.about-intro-text p {
  color: var(--c-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-intro-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  width: 100%;
  margin-left: auto;
  background: var(--c-bordeaux);
  border-radius: 4px;
  overflow: hidden;
}
.about-intro-visual::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 1px solid var(--c-gold);
  z-index: -1;
}

/* ==========================================================================
   REVEAL ANIMATIONS (scroll)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--t-slow), transform 0.9s var(--t-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid,
  .about-intro-grid,
  .contact-grid,
  .testimonials-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .formations-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { padding-bottom: 2rem; border-bottom: 1px solid var(--c-line); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-card { grid-template-columns: 1fr; gap: 1rem; }
  .event-date { border-right: none; border-bottom: 1px solid var(--c-line); padding: 0 0 1rem; display: flex; align-items: baseline; justify-content: flex-start; gap: 1rem; }

  /* Hero : passer en grille texte au-dessus, logo en-dessous (plus petit) */
  .hero-content--split {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
  }
  .hero-logo-wrap {
    width: 280px;
    height: 280px;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-logo-wrap::after { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c-paper);
    flex-direction: column;
    gap: 0;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--c-line);
    transform: translateX(100%);
    transition: transform var(--t-med);
    min-height: calc(100vh - var(--header-h));
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--c-line); }
  .nav-link { color: var(--c-bordeaux-dark) !important; padding: 1.25rem 0; display: block; }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 1rem; align-self: flex-start; }

  .hero-content { padding: 5rem 0 3rem; }
  .hero-ornament { display: none; }
  .hero-logo-wrap {
    width: 220px;
    height: 220px;
    max-width: 220px;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { left: 60px; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 1.5rem; }
  .timeline-item::before { left: 56px; }
  .timeline-year { font-size: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid var(--c-line); padding-bottom: 2rem; }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.25rem, 9vw, 3rem); }
  .hero-subtitle { font-size: 1rem; }
  .btn { padding: 1rem 1.5rem; font-size: 0.8125rem; }
  .testimonial { padding: 2rem 1.5rem; }
  .contact-form { padding: 1.75rem 1.5rem; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

/* ==========================================================================
   COOKIES — Bandeau RGPD et panneau de personnalisation
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-gold);
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(42, 27, 22, 0.22);
  max-width: 880px;
  margin: 0 auto;
  animation: cookie-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner[hidden] { display: none; }

@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
}

.cookie-banner__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-bordeaux-dark);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
  margin: 0;
}
.cookie-banner__text a {
  color: var(--c-bordeaux);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Boutons cookies — variante compacte */
.cookie-btn {
  padding: 0.75rem 1.125rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid transparent;
  font-family: var(--f-body);
}
.cookie-btn--primary {
  background: var(--c-bordeaux);
  color: var(--c-cream);
}
.cookie-btn--primary:hover {
  background: var(--c-bordeaux-dark);
  transform: translateY(-1px);
}
.cookie-btn--outline {
  background: transparent;
  color: var(--c-bordeaux);
  border-color: var(--c-bordeaux);
}
.cookie-btn--outline:hover {
  background: var(--c-bordeaux);
  color: var(--c-cream);
}
.cookie-btn--ghost {
  background: transparent;
  color: var(--c-ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-btn--ghost:hover {
  color: var(--c-bordeaux);
}

/* ---------- Modale paramétrage ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal[hidden] { display: none; }

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 27, 22, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cookie-fade 0.3s ease-out;
}
@keyframes cookie-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-modal__panel {
  position: relative;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 2.5rem 2rem 2rem;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(42, 27, 22, 0.4);
  animation: cookie-zoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cookie-zoom {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.cookie-modal__close {
  position: absolute;
  top: 0.875rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--c-ink-soft);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--t-fast);
}
.cookie-modal__close:hover { color: var(--c-bordeaux); }

.cookie-modal__title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-bordeaux-dark);
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.cookie-modal__intro {
  font-size: 0.875rem;
  color: var(--c-ink-soft);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.cookie-category {
  padding: 1.125rem 1.25rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  margin-bottom: 0.875rem;
}
.cookie-category__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.cookie-category__head strong {
  font-size: 0.9375rem;
  color: var(--c-bordeaux-dark);
  font-weight: 600;
}
.cookie-required {
  display: inline-block;
  margin-left: 0.625rem;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: rgba(168, 139, 74, 0.15);
  color: var(--c-gold-dark);
  border-radius: 2px;
  font-weight: 600;
}
.cookie-category__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
  margin: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--c-cream-warm);
  border: 1px solid var(--c-line);
  border-radius: 24px;
  transition: var(--t-fast);
}
.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background: var(--c-white);
  border-radius: 50%;
  transition: var(--t-fast);
  box-shadow: 0 2px 4px rgba(42,27,22,0.15);
}
.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--c-bordeaux);
  border-color: var(--c-bordeaux);
}
.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
  background: var(--c-cream);
}
.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.cookie-modal__actions .cookie-btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

/* ---------- Responsive cookies ---------- */
@media (max-width: 1024px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .cookie-banner__actions {
    flex-direction: column-reverse;
  }
  .cookie-banner__actions .cookie-btn {
    width: 100%;
    text-align: center;
  }
  .cookie-modal__panel {
    padding: 2rem 1.25rem 1.5rem;
  }
}

/* ==========================================================================
   SOUS-MENUS DE NAVIGATION
   ========================================================================== */

.nav-item {
  position: relative;
}

/* Ligne contenant le lien + le bouton chevron (mobile et desktop) */
.nav-item__row {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

/* Bouton chevron — déclencheur du sous-menu */
.nav-submenu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), color var(--t-fast);
}
.nav-submenu-toggle:hover { color: var(--c-gold-light); }

.nav-chevron {
  transition: transform var(--t-med);
}

/* ---------- Desktop : dropdown au hover ---------- */
@media (min-width: 1025px) {
  .nav-item__row { display: inline-flex; }

  .nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    list-style: none;
    margin: 0;
    padding: 0.625rem 0;
    min-width: 240px;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(42, 27, 22, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
    z-index: 200;
  }
  .nav-submenu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--c-paper);
    border-top: 1px solid var(--c-line);
    border-left: 1px solid var(--c-line);
  }
  .nav-item--has-submenu:hover .nav-submenu,
  .nav-item--has-submenu:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-item--has-submenu:hover .nav-chevron {
    transform: rotate(180deg);
  }

  .nav-sublink {
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--c-ink) !important;
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast);
    position: relative;
  }
  .nav-sublink:hover,
  .nav-sublink.is-active {
    color: var(--c-bordeaux) !important;
    background: rgba(168, 139, 74, 0.08);
  }
}

/* ---------- Mobile : accordéon contrôlé ---------- */
@media (max-width: 1024px) {

  /* La ligne lien + chevron occupe toute la largeur, chevron à droite */
  .nav-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-item__row .nav-link {
    flex: 1;
    padding: 1.25rem 0 !important;
  }
  .nav-submenu-toggle {
    padding: 1rem 0.5rem;
    color: var(--c-bordeaux);
    margin-right: -0.5rem; /* compense le padding pour aligner avec le bord */
  }
  .nav-submenu-toggle .nav-chevron {
    width: 14px;
    height: 9px;
  }
  .nav-submenu-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
  }

  /* Sous-menu fermé par défaut (max-height: 0 + overflow hidden) */
  .nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
  }
  /* Ouverture déclenchée par .is-open ajouté en JS */
  .nav-submenu.is-open {
    max-height: 280px; /* assez pour 4-5 entrées max */
  }
  .nav-submenu li {
    width: 100%;
    border-bottom: none !important;
  }
  .nav-submenu li:first-child .nav-sublink {
    padding-top: 0.875rem;
  }
  .nav-submenu li:last-child .nav-sublink {
    padding-bottom: 1.125rem;
  }
  .nav-sublink {
    display: block;
    padding: 0.625rem 0 0.625rem 1.5rem;
    font-size: 0.875rem;
    color: var(--c-ink-soft) !important;
    text-decoration: none;
    position: relative;
    border-left: 1px solid var(--c-line);
    margin-left: 0.5rem;
    transition: color var(--t-fast), border-color var(--t-fast);
  }
  .nav-sublink::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 16px;
    background: var(--c-gold);
    transition: width var(--t-fast);
  }
  .nav-sublink:hover,
  .nav-sublink.is-active {
    color: var(--c-bordeaux) !important;
  }
  .nav-sublink.is-active::before {
    width: 2px;
  }
}

/* ============================================================
   CHATBOT ELC
   ============================================================ */
.elc-chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 9000; font-family: var(--font-body, 'Manrope', sans-serif); }

.elc-chatbot__bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-bordeaux); color: var(--c-cream);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(62, 15, 28, .35);
  transition: transform .2s ease, background .2s ease;
}
.elc-chatbot__bubble:hover { background: var(--c-bordeaux-light); transform: scale(1.06); }

.elc-chatbot__panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(420px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 100px));
  background: #fff; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  border: 1px solid rgba(92, 26, 43, .12);
}
.elc-chatbot__panel[hidden] { display: none; }

.elc-chatbot__header {
  background: var(--c-bordeaux); color: var(--c-cream);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.elc-chatbot__logo {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-cream); padding: 3px; object-fit: contain;
}
.elc-chatbot__header > div { margin-right: auto; }
.elc-chatbot__header strong { display: block; font-size: 15px; font-family: var(--font-title, 'Cormorant Garamond', serif); letter-spacing: .02em; }
.elc-chatbot__header span { font-size: 12px; opacity: .8; }
.elc-chatbot__close { background: none; border: none; color: var(--c-cream); cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; opacity: .85; transition: opacity .15s ease; }
.elc-chatbot__close:hover { opacity: 1; }

.elc-chatbot__messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; background: var(--c-cream, #F5F0E8); }
.elc-chatbot__msg { max-width: 85%; padding: 9px 13px; border-radius: 12px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.elc-chatbot__msg--bot  { background: #fff; color: #2b2b2b; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.elc-chatbot__msg--user { background: var(--c-bordeaux); color: var(--c-cream); align-self: flex-end; border-bottom-right-radius: 4px; }
.elc-chatbot__msg a { color: var(--c-bordeaux); font-weight: 600; text-decoration: underline; }

.elc-chatbot__chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 12px; background: var(--c-cream, #F5F0E8); border-top: 1px solid rgba(92,26,43,.08); max-height: 220px; overflow-y: auto; flex-shrink: 0; }
.elc-chatbot__chip {
  border: 1px solid var(--c-gold); color: var(--c-bordeaux); background: #fff;
  border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer;
  transition: background .15s ease, color .15s ease; text-align: left;
}
.elc-chatbot__chip:hover { background: var(--c-gold); color: #fff; }
.elc-chatbot__chip--back { border-color: rgba(92,26,43,.3); color: #6b6b6b; background: transparent; }
.elc-chatbot__chip--back:hover { background: rgba(92,26,43,.08); color: var(--c-bordeaux); }
.elc-chatbot__chip--contact { border-color: var(--c-bordeaux); color: #fff; background: var(--c-bordeaux); }
.elc-chatbot__chip--contact:hover { background: var(--c-bordeaux-light); color: #fff; }

.elc-chatbot__note { font-size: 10px; color: #8a8378; text-align: center; padding: 4px 12px 7px; background: var(--c-cream, #F5F0E8); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.elc-chatbot__crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 7px 14px; background: #fff; border-bottom: 1px solid rgba(92,26,43,.08); font-size: 12px; flex-shrink: 0; }
.elc-chatbot__crumb-link { background: none; border: none; color: var(--c-bordeaux); cursor: pointer; padding: 0; font-size: 12px; text-decoration: underline; font-family: inherit; }
.elc-chatbot__crumb-cur { color: #8a8378; }
.elc-chatbot__crumb-sep { color: #c9c2b6; }

.elc-chatbot__search { padding: 8px 12px 2px; background: var(--c-cream, #F5F0E8); flex-shrink: 0; }
.elc-chatbot__search input {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(92,26,43,.22);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; font-family: inherit; outline: none;
}
.elc-chatbot__search input:focus { border-color: var(--c-bordeaux); }

@media (max-width: 480px) {
  .elc-chatbot { right: 12px; bottom: 12px; }
  .elc-chatbot__panel { bottom: 66px; }
}

/* ============================================================
   BOUTONS DE PARTAGE SOCIAL
   ============================================================ */
.share-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.share-row__label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gold-dark); font-weight: 600; }
.share-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-bordeaux);
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  padding: 0;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-btn--fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-btn--tw:hover { background: #000; border-color: #000; color: #fff; }
.share-btn--copy:hover { background: var(--c-gold); border-color: var(--c-gold); color: #fff; }
.share-btn.is-copied { background: var(--c-bordeaux); border-color: var(--c-bordeaux); color: var(--c-cream); }
