/* ============================================================
   GSDA — Feuille de style
   Palette : violet GSDA #8c5da3
   Titres : Montserrat | Texte : Open Sans
   ============================================================ */

:root {
  --purple: #8c5da3;
  --ink: #2b2b2b;
  --grey: #555;
  --bg: #ffffff;
  --baci: #625da6;
  --mami: #a7625d;
  --maia: #5ea662;
  --middlesex: #c53027;
  --card-bg: #f4f4f4;
  --dark: #3a3a3a;
  --nav-h: 72px;
  --subnav-h: 56px;
  --maxw: 1140px;

  --accent: var(--purple);
}

/* Thème de page, posé par nav.js via l'attribut page="..." */
.page--baci { --accent: var(--baci); }
.page--mami { --accent: var(--mami); }
.page--maia { --accent: var(--maia); }
.page--middlesex { --accent: var(--middlesex); }

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--ink);
  background: transparent;
  line-height: 1.6;
}

/* Fond low-poly fixe : presque invisible en haut, légèrement plus présent en bas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.91) 48%,
      rgba(255, 255, 255, 0.83) 100%
    ),
    url('img/lowpolybg.png');
  background-position: center top, center center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

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

/* Texte présent pour les lecteurs d'écran et le référencement, mais invisible à l'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
a { text-decoration: none; color: inherit; }

/* Le composant ne doit pas créer de boîte, sinon le sticky de la navbar casse */
gsda-nav { display: contents; }

/* ====================== NAVBAR ====================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

/* Couleur de la navbar = couleur d'accent de la page (.page--xxx posée par nav.js).
   Déclarée comme vraie couleur (@property) pour pouvoir être animée : le filet,
   le dégradé du fond et la flèche changent ensemble de couleur d'une page à l'autre. */
@property --nav-color {
  syntax: '<color>';
  inherits: true;
  initial-value: #8c5da3;
}

.navbar {
  --nav-color: var(--accent);
  border-bottom: 3px solid var(--nav-color);
  /* Léger dégradé diagonal : blanc à gauche, teinté de la couleur de la page vers la droite (côté menu) */
  background: linear-gradient(100deg, #fff 30%, color-mix(in srgb, var(--nav-color) 10%, #fff) 100%);
}

.navbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.brand { display: block; width: 100px; color: var(--purple); }

.nav { display: flex; gap: 38px; align-items: center; margin-left: auto; }

.nav__partner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: var(--nav-h);
  margin-left: 24px;
  padding: 9px 0;
  border-radius: 7px;
  transition: opacity 0.2s, transform 0.2s;
}
.nav__partner img {
  width: 100%;
  max-height: 34px;
  object-fit: contain;
}
.nav__partner:hover,
.nav__partner:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
}

.nav__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); }

/* Repère de page active : triangle issu de la barre d'accent */
.nav > .nav__link:not(.nav__link--btn) {
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__link.is-active::after,
.nav__dropdown-toggle.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid var(--accent);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Flèche de page active (js/nav.js) : un seul élément, posé sur le filet,
   qui glisse d'un item à l'autre en changeant de couleur lors d'un changement de page.
   Les triangles en ::after ci-dessous restent comme repli si le script ne tourne pas. */
.nav__indicator {
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 0;
  margin-left: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid var(--nav-color);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__indicator[hidden] { display: none; }

.navbar { transition: --nav-color 0.6s ease; }

.navbar--indicator .nav__link.is-active::after,
.navbar--indicator .nav__dropdown-toggle.is-active::after,
.navbar--indicator .nav__partner.is-current::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .nav__indicator,
  .navbar { transition: none; }
}

/* Sur la page Middlesex, seul le triangle marque la page active. */
.nav__partner.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid var(--accent);
  transform: translateX(-50%);
  pointer-events: none;
}

/* CONTACT mis en avant : pilule à la couleur d'accent */
.nav__link--btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav__link--btn:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* Page Contact : la pilule garde son texte blanc, et le triangle descend
   jusqu'au bas de la navbar comme pour les autres liens
   (100 % = hauteur de la pilule, centrée dans la navbar) */
.nav__link--btn.is-active { color: #fff; }
.nav__link--btn.is-active::after { bottom: calc((100% - var(--nav-h)) / 2 - 3px); }

/* ---------- Dropdown CURSUS ---------- */
.nav__item--dropdown {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__dropdown-toggle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  transition: color 0.2s;
  position: relative;
}
.nav__dropdown-toggle:hover,
.nav__dropdown-toggle.is-active { color: var(--accent); }
.nav__chevron { width: 10px; height: 7px; transition: transform 0.25s; }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 34px rgba(38,24,45,0.14);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1001;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__item--dropdown:hover .nav__chevron,
.nav__item--dropdown:focus-within .nav__chevron { transform: rotate(180deg); }

/* Chaque lien est une « pastille » arrondie, en retrait des bords du panneau,
   teintée de la couleur du cursus au survol (même principe que la liste du formulaire de contact) */
.nav__dropdown-link {
  --program: var(--purple);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--program);
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__dropdown-link + .nav__dropdown-link { margin-top: 2px; }
.nav__dropdown-link--baci { --program: var(--baci); }
.nav__dropdown-link--mami { --program: var(--mami); }
.nav__dropdown-link--maia { --program: var(--maia); }

.nav__dropdown-text { display: flex; flex-direction: column; gap: 2px; }

.nav__dropdown-code {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav__dropdown-sub {
  color: #555;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

/* Flèche qui apparaît en glissant au survol */
.nav__dropdown-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav__dropdown-link:hover,
.nav__dropdown-link:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--program) 11%, #fff);
}
.nav__dropdown-link:hover .nav__dropdown-sub,
.nav__dropdown-link:focus-visible .nav__dropdown-sub { color: color-mix(in srgb, var(--program) 70%, #000); }
.nav__dropdown-link:hover .nav__dropdown-arrow,
.nav__dropdown-link:focus-visible .nav__dropdown-arrow { opacity: 1; transform: none; }

/* Cursus de la page en cours : teinte légère permanente */
.nav__dropdown-link[aria-current="page"] { background: color-mix(in srgb, var(--program) 7%, #fff); }

@media (prefers-reduced-motion: reduce) {
  .nav__dropdown-arrow { transition: none; transform: none; }
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* la photo en parallaxe ne déborde pas sur la sous-navbar */
}
/* Photo calée en bas : même cadrage qu'avant sur grand écran,
   mais elle couvre désormais tout le bandeau quelle que soit la largeur */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-blend-mode: color;
  background: url(img/octagon.jpg) center bottom / cover no-repeat;
  filter: grayscale(1);
  background-color: #000000a8;
}

/* Éléments animés par js/parallax.js */
[data-parallax] { will-change: transform; }
.hero__content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 48px 20px;
}
.hero_img { display: block; width: 400px; }

/* ====================== SOUS-NAVBAR (pages cursus) ====================== */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;              /* < navbar (1000) : passe dessous */
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.subnav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--subnav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.subnav__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.subnav__link:hover,
.subnav__link:focus-visible { background: rgba(255,255,255,0.18); }
.subnav__link.is-current { background: rgba(0,0,0,0.18); }

/* Pastille unique qui glisse d'un onglet à l'autre (js/subnav.js).
   Elle remplace le fond de l'onglet actif ; sa taille suit celle de l'onglet. */
.subnav__inner--pill { position: relative; }
.subnav__pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.45s cubic-bezier(0.65, 0, 0.35, 1),
    height 0.45s ease,
    opacity 0.25s ease;
}
.subnav__pill.is-visible { opacity: 1; }
.subnav__inner--pill .subnav__link { position: relative; z-index: 1; }
.subnav__inner--pill .subnav__link.is-current { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .subnav__pill { transition: opacity 0.2s ease; }
}
.subnav__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ====================== CURSUS (accueil) ====================== */
.programs { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; }
.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Carte de formation entièrement cliquable, teintée dans la couleur du cursus */
.program-card {
  --program: var(--purple);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 26px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--program) 22%, transparent);
  border-radius: 18px;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--program) 17%, #fff) 0%,
    color-mix(in srgb, var(--program) 5%, #fff) 75%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--program) 12%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.program-card--baci { --program: var(--baci); }
.program-card--mami { --program: var(--mami); }
.program-card--maia { --program: var(--maia); }

/* Filet de couleur en haut de la carte */
.program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--program);
}

.program-card:hover,
.program-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--program) 45%, transparent);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--program) 28%, transparent);
}

.program-card:focus-visible {
  outline: 3px solid var(--program);
  outline-offset: 3px;
}

.program-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  transition: transform 0.3s ease;
}

.program-card__logo img { height: 70px; width: auto; }
.program-card:hover .program-card__logo { transform: scale(1.05); }

.program-card__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  list-style: none;
}

.program-card__facts li {
  padding: 4px 11px;
  border: 1px solid color-mix(in srgb, var(--program) 22%, transparent);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: color-mix(in srgb, var(--program) 80%, #000);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.program-card__meta {
  margin-top: 14px;
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Le bouton reste aligné en bas, quelle que soit la hauteur du contenu */
.program-card__cta {
  margin-top: auto;
  padding-top: 22px;
}

.program-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--program);
  border-radius: 999px;
  color: var(--program);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.program-card__more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.program-card:hover .program-card__more,
.program-card:focus-visible .program-card__more {
  background: var(--program);
  color: #fff;
}

.program-card:hover .program-card__more svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .program-card,
  .program-card__logo,
  .program-card__more,
  .program-card__more svg { transition: none; }
  .program-card:hover,
  .program-card:focus-visible,
  .program-card:hover .program-card__logo,
  .program-card:hover .program-card__more svg { transform: none; }
}


/* ====================== À PROPOS ====================== */
.about { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px 40px; }
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: stretch;
}

/* Titre sur toute la largeur, au-dessus de la photo et du texte */
.about__head { margin-bottom: 28px; }

/* Photo alignée sur le bloc de texte (haut des paragraphes → bas de l'encart) */
.about__media { margin: 0; }

.about__img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(38,24,45,0.12);
}

/* Sur grand écran, c'est le texte qui fixe la hauteur : la photo s'y adapte */
@media (min-width: 901px) {
  .about__media { position: relative; min-height: 320px; }
  .about__img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }
}

.about__title {
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.about__title em {
  color: var(--purple);
  font-style: italic;
  font-weight: 500;
}

.about__dot {
  margin: 0 0.04em;
  color: var(--purple);
}

.about__body p + p { margin-top: 14px; }

.about__body p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Encart dates de rentrée */
.about__intake {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(115deg, #2b1a35 0%, #5b3a6d 100%);
  box-shadow: 0 14px 30px rgba(43,26,53,0.22);
}

.about__intake-icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
}

.about__intake-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__intake-title {
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about__intake-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.about__intake-dates time {
  padding: 5px 13px;
  border-radius: 999px;
  background: #fff;
  color: #5b3a6d;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.about__intake-note {
  margin-top: 9px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ====================== ACCUEIL — HERO ====================== */
.hero--home {
  min-height: 500px;
  overflow: hidden;
}

/* Photo recadrée pour couvrir tout le bandeau, fond gris neutre :
   les pétales violets du logo ressortent mieux que sur un voile violet */
.hero--home .hero__overlay {
  background-position: center 78%;
  background-color: rgba(0,0,0,0.45);
  will-change: transform; /* parallaxe (js/parallax.js) */
}

/* Léger assombrissement vers le bas, pour la lisibilité des boutons */
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(30,20,36,0.05) 0%, rgba(30,20,36,0.35) 100%);
}

/* Logo et boutons centrés sur le même axe, même si les boutons sont plus larges que le logo */
.hero--home .hero__content {
  z-index: 1;
  will-change: transform, opacity; /* parallaxe (js/parallax.js) */
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero--home .hero_img { animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero--home .hero__actions { animation: hero-rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.hero__btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 26px rgba(140,93,163,0.45);
}

.hero__btn--primary:hover,
.hero__btn--primary:focus-visible {
  background: #a074b6;
  transform: translateY(-2px);
}

.hero__btn--primary:hover svg { transform: translateY(2px); }

.hero__btn--ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.hero__btn--ghost:hover,
.hero__btn--ghost:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--purple);
}

.hero__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ====================== ACCUEIL — VIDÉO DE PRÉSENTATION ====================== */
/* Lecteur avec affiche aux couleurs de GSDA (js/video.js) */
.home-video {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.home-video__head {
  margin-bottom: 30px;
  text-align: center;
}

.video-player { max-width: 960px; margin: 0 auto; }

.video-player__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #1e1226;
  box-shadow: 0 30px 60px rgba(38,24,45,0.25);
}

/* Affiche : dégradé aubergine, lueur violette, symbole GSDA en filigrane, texture low-poly */
.video-player__poster {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 85% at 50% 50%, rgba(140,93,163,0.38) 0%, rgba(140,93,163,0) 70%),
    linear-gradient(125deg, #24152c 0%, #3d2649 55%, #5b3a6d 100%);
}

.video-player__poster::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -7%;
  width: 56%;
  aspect-ratio: 1;
  background: url('img/favicon.svg') center / contain no-repeat;
  opacity: 0.16;
  transform: translateY(-50%) rotate(-8deg);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease;
}

.video-player__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/lowpolybg.png') center / cover no-repeat;
  opacity: 0.07;
  mix-blend-mode: screen;
}

.video-player__frame:hover .video-player__poster::before {
  opacity: 0.22;
  transform: translateY(-50%) rotate(-2deg) scale(1.05);
}

/* Logo GSDA en blanc, en haut à gauche */
.video-player__logo {
  position: absolute;
  top: 7%;
  left: 5%;
  width: clamp(84px, 13%, 130px);
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Bouton lecture avec double halo qui pulse */
.video-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.video-player__play svg {
  width: 34px;
  height: 34px;
  margin-left: 5px;
  fill: currentColor;
}

.video-player__play::before,
.video-player__play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: video-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.video-player__play::after { animation-delay: 1.3s; }

@keyframes video-pulse {
  from { opacity: 0.9; transform: scale(0.85); }
  to { opacity: 0; transform: scale(1.5); }
}

.video-player__play:hover,
.video-player__play:focus-visible {
  background: var(--purple);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-player__play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

/* Titre en bas à gauche */
.video-player__caption {
  position: absolute;
  left: 5%;
  bottom: 8%;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.95rem, 2.1vw, 1.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.video-player__caption small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,0.65);
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Pastille « Bientôt disponible » (tant qu'aucune vidéo n'est renseignée) */
.video-player__soon {
  display: none;
  position: absolute;
  right: 5%;
  bottom: 8%;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.video-player.is-soon .video-player__soon { display: block; }

.video-player.is-soon-flash .video-player__soon {
  border-color: var(--purple);
  background: var(--purple);
  transform: scale(1.08);
}

/* Lecture en cours : la vidéo remplace l'affiche */
.video-player__media {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-player.is-playing .video-player__poster,
.video-player.is-playing .video-player__logo,
.video-player.is-playing .video-player__play,
.video-player.is-playing .video-player__caption,
.video-player.is-playing .video-player__soon { display: none; }

@media (max-width: 680px) {
  .home-video { padding: 36px 16px 0; }
  .home-video__head { margin-bottom: 22px; }
  .video-player__frame { border-radius: 16px; }
  .video-player__play { width: 64px; height: 64px; }
  .video-player__play svg { width: 26px; height: 26px; margin-left: 4px; }
  .video-player__play::before,
  .video-player__play::after { inset: -7px; }
  .video-player__soon { padding: 4px 10px; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .video-player__play::before,
  .video-player__play::after { animation: none; opacity: 0; }
  .video-player__play,
  .video-player__poster::before { transition: none; }
  .video-player__frame:hover .video-player__poster::before { transform: translateY(-50%) rotate(-8deg); }
}

/* ====================== ACCUEIL — EN-TÊTE CURSUS ====================== */
.programs__head {
  margin-bottom: 34px;
  text-align: center;
}

.programs__title,
.home-video__title {
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.programs__title::after,
.home-video__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--purple);
}

@media (max-width: 900px) {
  .about { padding-top: 56px; }
  .about__media { max-width: 560px; }
}

@media (max-width: 680px) {
  .hero--home { min-height: 440px; }
  .hero__actions { flex-direction: column; align-items: center; margin-top: 26px; }
  .about { padding: 44px 16px 24px; }
  .about__img { max-height: 340px; object-fit: cover; }
  .about__intake { padding: 16px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero--home .hero_img,
  .hero--home .hero__actions { animation: none; }
  .hero__btn,
  .hero__btn svg { transition: none; }
  .hero__btn--primary:hover,
  .hero__btn--primary:hover svg { transform: none; }
}

/* ============================================================
   PAGE FORMATION (BACI / MAMI / MAIA)
   ============================================================ */

.formation { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 24px; }

/* Décalage des ancres : sinon les titres passent sous les 2 barres */
#overview, #sectors, #approach, #strengths, #programme, #admission {
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 24px);
}

/* En-tête : titre, méta, puis logo partenaire centré EN DESSOUS */
.formation__head { text-align: center; }
.formation__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  white-space: nowrap;
  color: var(--accent);
  margin-bottom: 12px;
}
.formation__meta { color: var(--grey); font-size: 1rem; line-height: 1.5; }
.formation__partner {
  width: 130px;
  margin: 20px auto 0;   /* centré sous le texte */
}
.formation__partner { display: block; }
.formation__partner img { width: 100%; }

.formation__sep {
  width: 280px;
  max-width: 60%;
  margin: 28px auto 0;
  border: 0;
  border-top: 1px solid #ccc;
}

.formation__intro { margin-top: 36px; }
.formation__intro p { color: #444; font-size: 0.9rem; line-height: 1.7; }

/* ---------- Les 3 années ---------- */
.years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: start;        /* chaque colonne grandit indépendamment */
}
.year__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 16px;
}
.year__card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 16px;
  min-height: 240px;
}

/* ---------- Modules dépliables (<details>) ---------- */
.modules { display: flex; flex-direction: column; gap: 12px; }

.module {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.module.is-animating { will-change: height; }
.module:hover { border-color: var(--accent); }
.module[open] {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* En-tête cliquable */
.module__head {
  position: relative;
  cursor: pointer;
  padding: 14px 32px 14px 14px;   /* place à droite pour le chevron */
  text-align: center;
  list-style: none;               /* masque le triangle par défaut */
  transition: background-color 0.25s ease;
}
.module__head:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.module[open] .module__head { background: var(--card-bg); }
.module__head::-webkit-details-marker { display: none; }  /* idem Safari */

.module__code { display: block; font-weight: 700; font-size: 0.78rem; color: var(--ink); }
.module__name { display: block; font-size: 0.78rem; color: var(--grey); }
.module__ects { display: block; font-size: 0.75rem; color: var(--grey); }

.module__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.25s;
}
.module[open] .module__chevron { transform: translateY(-50%) rotate(180deg); }

/* Contenu détaillé : 2 sections (descriptif + acquis) */
.module__body {
  margin: 0 14px;
  padding: 12px 0 14px;
  border-top: 1px solid #eee;
  font-size: 0.72rem;          /* texte réduit */
  line-height: 1.6;
  color: #4a4a4a;
  text-align: left;
}
.module__body p + p { margin-top: 8px; }

/* Section 2 : "À la fin de ce module" */
.module__outcomes {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}
.module__outcomes-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);        /* couleur d'accent de la page */
  margin-bottom: 5px;
}
.module__outcomes ul {
  list-style: none;
  margin: 0;
}
.module__outcomes li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 3px;
}
.module__outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Les 4 filières ---------- */
.tracks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.track {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.track:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}
.track__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.track__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.track__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.track__text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--grey);
}

/* ---------- Notes ---------- */
.formation__notes { margin-top: 48px; }
.formation__notes p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---------- Conditions d'admission ---------- */
.admission {
  background: var(--dark);
  color: #fff;
  padding: 48px 24px 64px;
  margin-top: 24px;
}
.admission__inner { max-width: var(--maxw); margin: 0 auto; }
.admission__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
  margin-bottom: 28px;
}
.admission__list { list-style: none; }
.admission__list li { font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .subnav__inner { gap: 2px; padding: 0 12px; }
  .subnav__link { padding: 10px 12px; font-size: 0.75rem; gap: 7px; }
}

/* ============================================================
   PAGE MIDDLESEX
   ============================================================ */
.partner-page__hero {
  min-height: 330px;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(197,48,39,0.94), rgba(111,20,16,0.94)),
    url(img/octagon.jpg) center / cover no-repeat;
}
.partner-page__hero-logo {
  display: block;
  width: min(520px, 88vw);
  padding: 34px 40px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}
.partner-page__hero-logo:hover,
.partner-page__hero-logo:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(0,0,0,0.28);
}
.partner-page__content {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 88px;
  text-align: center;
}
.partner-page__logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 26px;
}

.partner-page__eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.partner-page__title {
  margin-bottom: 24px;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}
.partner-page__lead {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.85;
}
.partner-page__divider {
  width: 96px;
  margin: 34px auto;
  border: 0;
  border-top: 3px solid var(--accent);
}
.partner-page__note {
  color: var(--grey);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  /* 3e carte seule sur sa rangée : centrée */
  .program-card--maia { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
  .about__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .formation__title { white-space: normal; font-size: clamp(1.3rem, 4vw, 1.9rem); }
  .tracks { grid-template-columns: repeat(2, 1fr); }
  .years { grid-template-columns: 1fr; }
  .year__card { min-height: 0; }
}

@media (max-width: 680px) {
  .navbar__inner { padding: 0 16px; }
  .brand { width: 88px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav__partner {
    width: 54px;
    min-width: 54px;
    height: var(--nav-h);
    margin-left: 10px;
    padding: 8px 0;
  }
  .nav__partner img { max-height: 29px; }
  .nav__link.is-active::after,
  .nav__dropdown-toggle.is-active::after { display: none; }

  .nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 3px solid var(--accent);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 560px; }
  .nav__link { padding: 16px 24px; border-top: 1px solid #eee; font-size: 0.9rem; }

  .nav__link--btn {
    border-radius: 8px;
    margin: 14px 24px 18px;
    padding: 14px 24px;
    text-align: center;
    border-top: 0;
  }
  .nav__link--btn:hover { transform: none; }

  .nav__item--dropdown { height: auto; display: block; }
  .nav__dropdown-toggle {
    width: 100%;
    height: auto;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    justify-content: space-between;
    font-size: 0.9rem;
  }
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    background: #f6f1f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__item--dropdown.is-open .nav__dropdown { max-height: 320px; }
  .nav__item--dropdown.is-open .nav__chevron { transform: rotate(180deg); }
  .nav__dropdown-link {
    padding: 14px 24px 14px 40px;
    border-top: 1px solid #e7dcee;
    border-radius: 0;
    white-space: normal;
  }
  .nav__dropdown-link + .nav__dropdown-link { margin-top: 0; }
  .nav__dropdown-arrow { display: none; }

  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .programs__grid { grid-template-columns: 1fr; }
  .program-card--maia { grid-column: auto; justify-self: stretch; width: auto; }
  .tracks { grid-template-columns: 1fr; }
  .hero { min-height: 300px; }
  .hero_img { width: 100%; max-width: 300px; }
  .partner-page__hero { min-height: 270px; padding: 42px 20px; }
  .partner-page__hero-logo { padding: 24px; border-radius: 14px; }
  .partner-page__content { padding: 48px 20px 64px; }

  /* Sous-navbar mobile : picto au-dessus du texte, défilement horizontal */
  :root { --subnav-h: 66px; }
  .subnav__inner {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .subnav__inner::-webkit-scrollbar { display: none; }
  .subnav__link {
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    font-size: 0.65rem;
  }
  .subnav__icon { width: 20px; height: 20px; }
}

/* Accessibilité */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
/* ============================================================
   PAGE MIDDLESEX — CONTENU ÉDITORIAL
   ============================================================ */
.partner-page__content {
  max-width: 1040px;
  text-align: left;
}

.partner-page__intro {
  max-width: 900px;
  margin: 0 auto 52px;
  text-align: center;
}

.partner-page__lead {
  max-width: 880px;
  margin: 0 auto;
}

.partner-page__sections {
  display: grid;
  gap: 28px;
}

.partner-page__section {
  position: relative;
  padding: 34px 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(197, 48, 39, 0.16);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.07);
}

.partner-page__section::before {
  content: "";
  position: absolute;
  top: -58px;
  right: -58px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(197, 48, 39, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.partner-page__section h2 {
  position: relative;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
}

.partner-page__section p {
  position: relative;
  color: #444;
  font-size: 1rem;
  line-height: 1.82;
}

.partner-page__section p + p {
  margin-top: 18px;
}

.partner-page__list {
  position: relative;
  display: grid;
  gap: 15px;
  margin-top: 24px;
  list-style: none;
}

.partner-page__list li {
  position: relative;
  padding-left: 29px;
  color: #444;
  line-height: 1.72;
}

.partner-page__list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 2px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.partner-page__list strong {
  color: var(--ink);
}

.partner-page__section--highlight {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(197, 48, 39, 0.97), rgba(125, 24, 19, 0.97)),
    url(img/octagon.jpg) center / cover no-repeat;
  border-color: transparent;
  border-left-color: #fff;
}

.partner-page__section--highlight::before {
  border-color: rgba(255, 255, 255, 0.08);
}

.partner-page__section--highlight h2,
.partner-page__section--highlight p {
  color: #fff;
}

.partner-page__conclusion {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 700;
}

@media (max-width: 680px) {
  .partner-page__intro {
    margin-bottom: 36px;
  }

  .partner-page__section {
    padding: 27px 23px;
    border-left-width: 4px;
  }

  .partner-page__section p,
  .partner-page__list li {
    font-size: 0.95rem;
  }
}


/* ============================================================
   PAGE BACI — CONTENU COMPLET
   ============================================================ */
.formation__eyebrow,
.section-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.formation-section {
  margin-top: 80px;
}

.formation-section--welcome {
  margin-top: 54px;
  padding: 40px clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, rgba(98,93,166,0.09), rgba(98,93,166,0.025));
  border: 1px solid rgba(98,93,166,0.16);
  border-radius: 18px;
}

.formation-section__head {
  max-width: 820px;
  margin-bottom: 30px;
}

.formation-section__head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.formation-section__title {
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.formation-section__lead {
  margin-top: 14px;
  color: var(--grey);
  font-size: 0.96rem;
  line-height: 1.75;
}

.rich-text {
  color: #444;
  font-size: 0.94rem;
  line-height: 1.8;
}

.rich-text p + p { margin-top: 16px; }

.rich-text__closing {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.approach-intro,
.programme-intro {
  max-width: 900px;
  margin-bottom: 28px;
  color: #444;
  font-size: 0.94rem;
  line-height: 1.8;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  position: relative;
  min-height: 190px;
  padding: 28px 28px 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(0,0,0,0.045);
}

.value-card--wide { grid-column: 1 / -1; min-height: 0; }

.value-card__number {
  position: absolute;
  top: 12px;
  right: 18px;
  color: rgba(98,93,166,0.10);
  font-family: 'Montserrat', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
}

.value-card h3,
.strength-card h3 {
  position: relative;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  line-height: 1.35;
}

.value-card p,
.strength-card p {
  position: relative;
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.65;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.strength-card {
  padding: 28px 24px;
  text-align: center;
  background: var(--card-bg);
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.strength-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.09);
}

.strength-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.strength-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.program-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.program-summary > div {
  padding: 20px 14px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
}

.program-summary strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.program-summary span {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.program-table-wrap {
  overflow-x: auto;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(0,0,0,0.04);
}

.program-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.program-table caption {
  padding: 18px 20px;
  text-align: left;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.program-table th,
.program-table td {
  padding: 13px 16px;
  text-align: left;
  border-top: 1px solid #e9e9e9;
}

.program-table th {
  color: #fff;
  background: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.program-table tbody tr:nth-child(even) { background: #fafafa; }
.program-table tbody tr:hover { background: rgba(98,93,166,0.07); }

.program-table__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
}

.program-total {
  margin-top: 14px;
  color: var(--grey);
  font-size: 0.82rem;
  text-align: right;
}

.pathway-callout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.5fr);
  gap: 30px;
  margin-top: 42px;
  padding: 32px;
  color: #fff;
  background: #31313a;
  border-left: 6px solid var(--accent);
  border-radius: 14px;
}

.pathway-callout .section-kicker { color: #bdb9ef; }
.pathway-callout h3 {
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}
.pathway-callout__intro > p:last-child { color: #d9d9df; font-size: 0.84rem; line-height: 1.65; }

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pathway {
  padding: 15px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9px;
}
.pathway:last-child { grid-column: 1 / -1; }
.pathway strong { display: block; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 0.78rem; }
.pathway span { display: block; margin-top: 4px; color: #cfcfd6; font-size: 0.7rem; line-height: 1.45; }

.modules-heading {
  margin-top: 58px;
  text-align: center;
}
.modules-heading h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.year__head { margin-bottom: 16px; text-align: center; }
.year__level {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.year__title { margin: 3px 0 2px; }
.year__meta { color: var(--grey); font-size: 0.72rem; }

.module__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 15px 34px 15px 15px;
  text-align: left;
}

.module__heading { min-width: 0; }
.module__code {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.module__name {
  margin-top: 2px;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}
.module__ects {
  align-self: center;
  max-width: 94px;
  color: var(--grey);
  font-size: 0.64rem;
  line-height: 1.35;
  text-align: right;
}
.module__body {
  font-size: 0.78rem;
  line-height: 1.7;
}
.module__desc p + p { margin-top: 10px; }
.module__outcomes p { color: #444; }
.module__pathway-list {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.module__pathway-list li {
  padding: 8px 10px;
  background: var(--card-bg);
  border-radius: 6px;
}

.admission__inner { max-width: 920px; text-align: center; }
.section-kicker--light { color: #c9c6f0; }
.admission__list { display: grid; gap: 12px; margin-top: 28px; text-align: left; }
.admission__list li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 46px;
  background: rgba(255,255,255,0.07);
  border-radius: 9px;
}
.admission__list li::before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 18px;
  color: #bdb9ef;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}
.admission__cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 12px 24px;
  color: var(--dark);
  background: #fff;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s;
}
.admission__cta:hover,
.admission__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

@media (max-width: 1100px) {
  .subnav__inner {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .subnav__inner::-webkit-scrollbar { display: none; }
  .subnav__link { padding-right: 13px; padding-left: 13px; }
}

@media (max-width: 900px) {
  .strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pathway-callout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .formation { padding-right: 18px; padding-left: 18px; }
  .formation-section { margin-top: 58px; }
  .formation-section--welcome { padding: 30px 22px; }
  .value-grid,
  .strength-grid,
  .pathway-grid { grid-template-columns: 1fr; }
  .value-card--wide,
  .pathway:last-child { grid-column: auto; }
  .program-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-total { text-align: left; }
  .pathway-callout { padding: 26px 22px; }
  .module__head { grid-template-columns: 1fr; }
  .module__ects { max-width: none; text-align: left; }
  .admission { padding-right: 18px; padding-left: 18px; }
}

/* ============================================================
   PAGE MAMI — AJUSTEMENTS DU CONTENU COMPLET
   ============================================================ */
.page--mami .formation-section--welcome {
  background: linear-gradient(135deg, rgba(167,98,93,0.10), rgba(167,98,93,0.025));
  border-color: rgba(167,98,93,0.18);
}

.page--mami .value-card__number {
  color: rgba(167,98,93,0.11);
}

.page--mami .program-table tbody tr:hover {
  background: rgba(167,98,93,0.08);
}

.page--mami .pathway-callout .section-kicker,
.page--mami .section-kicker--light,
.page--mami .admission__list li::before {
  color: #e3c3c0;
}

.tracks--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tracks--five .track {
  grid-column: span 2;
}

.tracks--five .track:nth-child(4) {
  grid-column: 2 / span 2;
}

.tracks--five .track:nth-child(5) {
  grid-column: 4 / span 2;
}

.strength-card--wide {
  grid-column: 1 / -1;
}

.years--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admission__lead {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.94rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .tracks--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracks--five .track,
  .tracks--five .track:nth-child(4),
  .tracks--five .track:nth-child(5) {
    grid-column: auto;
  }

  .tracks--five .track:last-child {
    grid-column: 1 / -1;
  }

  .years--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tracks--five {
    grid-template-columns: 1fr;
  }

  .tracks--five .track:last-child,
  .strength-card--wide {
    grid-column: auto;
  }
}

/* ============================================================
   PAGE MAIA — AJUSTEMENTS DU CONTENU COMPLET
   ============================================================ */
.page--maia .formation-section--welcome {
  background: linear-gradient(135deg, rgba(94,166,98,0.11), rgba(94,166,98,0.025));
  border-color: rgba(94,166,98,0.2);
}

.page--maia .value-card__number {
  color: rgba(94,166,98,0.12);
}

.page--maia .program-table tbody tr:hover {
  background: rgba(94,166,98,0.08);
}

.page--maia .pathway-callout .section-kicker,
.page--maia .section-kicker--light,
.page--maia .admission__list li::before {
  color: #c9e7cb;
}

/* ============================================================
   TABLEAUX DES MODULES — VERSION MOBILE EN CARTES
   ============================================================ */
@media (max-width: 760px) {
  .program-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .program-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  .program-table caption {
    padding: 0 0 14px;
    font-size: 1rem;
  }

  .program-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .program-table tbody {
    display: grid;
    gap: 13px;
  }

  .program-table tbody tr,
  .program-table tbody tr:nth-child(even),
  .program-table tbody tr:hover {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    background: #fff;
    border: 1px solid #dedede;
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 6px 17px rgba(0,0,0,0.045);
  }

  .program-table td {
    display: flex;
    grid-column: span 3;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 11px 13px;
    border-top: 0;
    border-bottom: 1px solid #ededed;
    background: transparent;
    line-height: 1.4;
  }

  .program-table td::before {
    content: attr(data-label);
    color: var(--grey);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .program-table td[data-label="Nom du module"] {
    grid-column: 1 / -1;
    order: -2;
    padding: 15px 14px 11px;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .program-table td[data-label="Code"] {
    grid-column: 1 / -1;
    order: -1;
    padding: 9px 14px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, white);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, white);
  }

  .program-table td[data-label="Code"]::before {
    color: var(--accent);
  }

  .program-table td[data-label="Code"] strong {
    font-size: 0.78rem;
  }

  .program-table td:last-child,
  .program-table td:nth-last-child(2) {
    border-bottom: 0;
  }

  .page--baci .program-table td:not([data-label="Nom du module"]):not([data-label="Code"]) {
    grid-column: span 2;
    border-bottom: 0;
  }

  .program-table__level {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }

  .program-total {
    margin-top: 12px;
    font-size: 0.76rem;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .program-table td {
    padding-right: 10px;
    padding-left: 10px;
  }

  .program-table td[data-label="Nom du module"],
  .program-table td[data-label="Code"] {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* ============================================================
   NAVIGATION BILINGUE FR / EN
   ============================================================ */
.nav {
  gap: clamp(18px, 2.4vw, 38px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-right: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 1px;
  color: #a0a0a0;
  opacity: 0.82;
  transition: color 0.2s, opacity 0.2s;
}

.lang-switch__link:hover,
.lang-switch__link:focus-visible {
  color: var(--accent);
  opacity: 1;
}

.lang-switch__link.is-active {
  color: var(--accent);
  font-weight: 800;
  opacity: 1;
}

.lang-switch__separator {
  color: #c3c3c3;
  font-weight: 400;
}

.language-placeholder {
  width: min(720px, calc(100% - 40px));
  margin: 90px auto;
  padding: 48px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.language-placeholder h1 {
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.language-placeholder__link {
  display: inline-flex;
  margin-top: 24px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

@media (max-width: 900px) and (min-width: 681px) {
  .navbar__inner { padding-right: 16px; padding-left: 16px; }
  .nav { gap: 17px; }
  .nav__link,
  .nav__dropdown-toggle { font-size: 0.76rem; }
  .nav__link--btn { padding-right: 16px; padding-left: 16px; }
  .nav__partner { margin-left: 14px; }
}

@media (max-width: 680px) {
  .nav.is-open { max-height: 650px; }

  .lang-switch {
    width: auto;
    min-height: 0;
    margin: 12px 24px 7px;
    padding: 0;
    justify-content: flex-start;
    align-self: flex-start;
    font-size: 0.64rem;
  }

  .lang-switch__link {
    min-width: 0;
    min-height: 28px;
    padding: 2px 1px;
  }

  .language-placeholder {
    margin: 54px auto;
    padding: 34px 22px;
  }
}

/* ============================================================
   PAGE CONTACT — accent GSDA / page d'accueil
   ============================================================ */
.page--contact { --accent: var(--purple); }

.contact-section {
  padding: 72px 24px 96px;
}

.contact-layout {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  gap: 34px;
  align-items: start;
}

.contact-sidebar,
.contact-form-card {
  border: 1px solid rgba(43,43,43,0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 48px rgba(38,24,45,0.08);
}

.contact-sidebar {
  padding: 34px;
}

.contact-sidebar__intro h2,
.contact-form-card__header h2 {
  margin: 5px 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.contact-sidebar__intro > p:last-child,
.contact-form-card__header > p:last-child {
  color: var(--grey);
  font-size: 0.92rem;
}

.contact-topics {
  margin-top: 30px;
  display: grid;
  gap: 13px;
}

.contact-topic {
  padding: 17px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(140,93,163,0.13);
  border-radius: 13px;
  background: color-mix(in srgb, var(--purple) 4%, white);
}

.contact-topic__icon,
.contact-address__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 12%, white);
}

.contact-topic__icon svg,
.contact-address__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-topic h3,
.contact-address h3 {
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
}

.contact-topic p {
  color: var(--grey);
  font-size: 0.78rem;
  line-height: 1.55;
}

.contact-address {
  margin-top: 22px;
  padding-top: 23px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(43,43,43,0.1);
}

.contact-address address {
  color: #4c4c4c;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.65;
}

.contact-address a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--purple);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
}

.contact-address a:hover,
.contact-address a:focus-visible { text-decoration: underline; }

.contact-form-card {
  padding: 38px;
}

.contact-form-card__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(43,43,43,0.1);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.form-field label span,
.form-consent span span { color: var(--purple); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 49px;
  border: 1px solid #d5d1d7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.form-field input,
.form-field select { padding: 0 14px; }
.form-field textarea { min-height: 160px; padding: 13px 14px; resize: vertical; }

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: color-mix(in srgb, var(--purple) 46%, #d5d1d7); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 14%, transparent);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #9a969c; }

/* ---------- Menu déroulant « Sujet » ---------- */
/* Fermé : chevron violet maison à la place de la flèche du système */
.form-field select {
  -webkit-appearance: none;
          appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238c5da3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

/* Tant qu'aucun sujet n'est choisi, l'invite est grise comme un placeholder */
.form-field select:invalid { color: #9a969c; }
.form-field select option { color: var(--ink); }

/* Ouvert : liste stylisée dans les navigateurs qui le permettent (Chrome / Edge récents).
   Ailleurs, la liste native du système reste affichée. */
@supports (appearance: base-select) {
  .form-field select,
  .form-field select::picker(select) { appearance: base-select; }

  .form-field select {
    display: flex;
    align-items: center;
  }

  .form-field select::picker-icon { display: none; }

  .form-field select:open {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 14%, transparent);
  }

  .form-field select::picker(select) {
    margin: 6px 0; /* écart avec le champ, que la liste s'ouvre en dessous ou au-dessus */
    padding: 6px;
    border: 1px solid #e4dfe7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(38,24,45,0.16);
  }

  .form-field select option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    cursor: pointer;
  }

  .form-field select option:hover,
  .form-field select option:focus-visible {
    outline: none;
    background: color-mix(in srgb, var(--purple) 10%, #fff);
    color: var(--purple);
  }

  .form-field select option:checked { font-weight: 700; color: var(--purple); }
  .form-field select option::checkmark { order: 1; margin-left: auto; color: var(--purple); }

  /* L'invite « Sélectionnez un sujet » n'apparaît pas dans la liste */
  .form-field select option[value=""] { display: none; }
}

.form-consent {
  margin-top: 21px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #555;
  font-size: 0.76rem;
  line-height: 1.55;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--purple);
}

.contact-form__footer {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(140,93,163,0.24);
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
}

.contact-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(140,93,163,0.3);
}

.contact-form__status {
  flex: 1;
  color: #4d7350;
  font-size: 0.76rem;
  line-height: 1.45;
}

.contact-form__status.is-error { color: #9b3c3c; }

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
  }

  .contact-topics { margin-top: 0; }
  .contact-address { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 680px) {
  .contact-section { padding: 42px 17px 68px; }

  .contact-sidebar {
    padding: 25px 20px;
    display: block;
  }

  .contact-topics { margin-top: 24px; }
  .contact-address { margin-top: 20px; }

  .contact-form-card { padding: 27px 20px; }
  .contact-form-card__header { margin-bottom: 23px; padding-bottom: 20px; }

  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .form-field--full { grid-column: auto; }

  .contact-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit,
  .form-field input,
  .form-field select,
  .form-field textarea { transition: none; }
}

/* ============================================================
   EN-TÊTE DE PAGE COMPACT (Contact, Staff)
   Remplace les anciens bandeaux : petite ligne d'intro, titre, amorce.
   ============================================================ */
.page-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 0;
  text-align: center;
}

.page-intro .section-kicker { margin-bottom: 10px; }

.page-intro__title {
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-intro__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--accent);
}

.page-intro__lead {
  margin-top: 16px;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

/* Moins d'espace entre l'en-tête et le contenu qui suit */
.page-intro ~ .contact-section { padding-top: 44px; }
.page-intro ~ .staff-section { padding-top: 40px; }

@media (max-width: 680px) {
  .page-intro { padding: 40px 16px 0; }
  .page-intro__lead { font-size: 0.94rem; }
  .page-intro ~ .contact-section { padding-top: 32px; }
  .page-intro ~ .staff-section { padding-top: 28px; }
}

/* ============================================================
   PAGE STAFF — trombinoscope
   ============================================================ */
.page--staff { --accent: var(--purple); }

.staff-section {
  padding: 52px 24px 72px;
}

.staff-group {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  /* Décalage des ancres : le titre ne passe pas sous la navbar + la sous-navbar */
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 20px);
}

.staff-group + .staff-group { margin-top: 60px; }

.staff-group__header {
  margin-bottom: 26px;
  text-align: center;
}

.staff-group__header .section-kicker { margin-bottom: 4px; }

.staff-group__header h2 {
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.staff-group__header h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--accent);
}

.staff-group__note {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.staff-group__note strong { color: var(--ink); }

/* Sous-groupes (pôle formation) */
.staff-subgroup + .staff-subgroup { margin-top: 36px; }

.staff-subgroup__title {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.staff-subgroup__level {
  margin-left: 6px;
  color: var(--grey);
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.staff-subgroup__level::before {
  content: "· ";
  color: var(--accent);
}

/* Flex + centrage : une rangée incomplète reste centrée */
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.staff-card {
  width: 208px;
  padding: 22px 14px 20px;
  text-align: center;
  overflow-wrap: break-word;
  border: 1px solid rgba(43,43,43,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 28px rgba(38,24,45,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.staff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(140,93,163,0.35);
  box-shadow: 0 16px 38px rgba(38,24,45,0.11);
}

/* Photo masquée par le carré central du logo GSDA (img/svg/logo_square.svg),
   avec un anneau dégradé dans la couleur d'accent et un liseré blanc.
   Trois couches de la même forme : anneau (conteneur) > liseré (::before) > photo. */
.page--staff {
  --squircle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50.23 0H49.77C8.89 0 0 8.93 0 50S8.89 100 49.77 100H50.23C91.11 100 100 91.07 100 50S91.11 0 50.23 0Z'/%3E%3C/svg%3E");
  --ring: 4px;  /* épaisseur de l'anneau dégradé */
  --gap: 3px;   /* épaisseur du liseré blanc */
}

.staff-card__photo,
.staff-card__photo::before,
.staff-card__photo img {
  -webkit-mask: var(--squircle) center / 100% 100% no-repeat;
          mask: var(--squircle) center / 100% 100% no-repeat;
}

.staff-card__photo {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  margin: 0 auto 14px;
  padding: calc(var(--ring) + var(--gap));
  background: linear-gradient(135deg, var(--accent), rgba(140,93,163,0.22));
}

.staff-card__photo::before {
  content: "";
  position: absolute;
  inset: var(--ring);
  background: #fff;
}

.staff-card__photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ece6f0;
}

.staff-card__name {
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Nom de famille toujours sur sa propre ligne, sous le prénom */
.staff-card__lastname {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.staff-card__role {
  margin-top: 7px;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Autres rôles : pastilles */
.staff-card__roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 9px;
  list-style: none;
}

.staff-card__roles li {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(140,93,163,0.09);
  color: #6f4c83;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .staff-section { padding: 36px 14px 56px; }
  .staff-group + .staff-group { margin-top: 44px; }
  .staff-group__header { margin-bottom: 20px; }
  .staff-subgroup + .staff-subgroup { margin-top: 28px; }
  .staff-subgroup__title { margin-bottom: 12px; }
  .staff-subgroup__level { display: block; margin: 2px 0 0; }
  .staff-subgroup__level::before { content: none; }
  .staff-grid { gap: 12px; }

  .staff-card {
    width: calc(50% - 6px);
    padding: 18px 10px 16px;
  }

  .staff-card__photo {
    --ring: 3px;
    width: 92px;
    margin-bottom: 12px;
  }

  .staff-card__name { font-size: 0.95rem; }
}

@media (max-width: 340px) {
  .staff-card { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .staff-card { transition: none; }
  .staff-card:hover { transform: none; }
}


/* ============================================================
   FOOTER — composant <gsda-footer> (js/footer.js)
   Le filet du haut prend la couleur d'accent de la page.
   ============================================================ */
gsda-footer { display: block; }

.site-footer {
  position: relative;
  margin-top: 40px;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.6;
  background: linear-gradient(115deg, #2b1a35 0%, #3d2649 100%);
  border-top: 4px solid var(--accent);
}

/* Pages cursus : le bloc Admission (pleine largeur) touche directement le footer */
.page--baci .site-footer,
.page--mami .site-footer,
.page--maia .site-footer { margin-top: 0; }

.site-footer a { transition: color 0.2s ease; }

.site-footer__inner {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.95fr);
  gap: 40px;
}

/* Logo GSDA passé en blanc sur fond sombre */
.site-footer__logo img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-footer__tagline {
  max-width: 290px;
  margin-top: 16px;
  font-size: 0.86rem;
}

/* Logo Middlesex en version blanche, directement sur le fond sombre */
.site-footer__partner {
  display: inline-block;
  margin-top: 22px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-footer__partner:hover { opacity: 1; }

.site-footer__partner:hover { transform: translateY(-2px); }
.site-footer__partner img { width: 130px; height: auto; }

.site-footer__title {
  margin-bottom: 14px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__list { list-style: none; }
.site-footer__list li + li { margin-top: 9px; }

.site-footer__list a:hover,
.site-footer__map:hover { color: #fff; }

.site-footer__list strong {
  margin-right: 6px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-footer__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}

/* Cursus : pastille de couleur + sigle, intitulé sur une 2e ligne */
.site-footer__list--programmes li + li { margin-top: 12px; }

.site-footer__list--programmes a {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.site-footer__list--programmes .site-footer__dot { margin: 0; vertical-align: 0; }
.site-footer__list--programmes strong { margin: 0; }

.site-footer__sub {
  grid-column: 2;
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-footer__dot--baci { background: var(--baci); }
.site-footer__dot--mami { background: var(--mami); }
.site-footer__dot--maia { background: var(--maia); }

.site-footer__address { font-style: normal; }

.site-footer__map {
  display: inline-block;
  margin-top: 8px;
  color: #d9c4e4;
  font-weight: 600;
}

.site-footer__cta {
  display: table;
  margin-top: 18px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__cta:hover {
  background: #a074b6;
  transform: translateY(-1px);
}

.site-footer__bottom {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    width: calc(100% - 32px);
    padding: 40px 0 32px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer__bottom {
    width: calc(100% - 32px);
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a,
  .site-footer__partner,
  .site-footer__cta { transition: none; }
  .site-footer__partner:hover,
  .site-footer__cta:hover { transform: none; }
}


/* ============================================================
   PAGE STAFF — barre de filtres et familles (js/staff.js)
   ============================================================ */
/* La barre reprend le style de la sous-navbar des cursus ; elle défile si elle est trop large */
.subnav--filters .subnav__inner {
  max-width: none;
  gap: 2px;
  padding: 0 16px;
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav--filters .subnav__inner::-webkit-scrollbar { display: none; }

button.subnav__link {
  border: 0;
  background-color: transparent;
  cursor: pointer;
}
.subnav--filters .subnav__link {
  flex-direction: row;
  gap: 6px;
  padding: 8px 11px;
  font-size: 0.78rem;
}

.subnav__count {
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.6;
}
/* Compteurs seulement sur Tous / L'école / Enseignants, pour que la barre tienne sur une ligne */
.subnav__divider ~ .subnav__link .subnav__count { display: none; }

.subnav__divider {
  flex: 0 0 1px;
  align-self: center;
  height: 22px;
  margin: 0 4px;
  background: rgba(255,255,255,0.35);
}

/* Sous-titre des deux familles */
.staff-group__lead {
  margin-top: 12px;
  color: var(--grey);
  font-size: 0.92rem;
}

/* Pastille de lieu (Zürich) */
.staff-card__roles li.is-place {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--purple) 18%, #fff);
}
.staff-card__roles li.is-place svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Cartes et familles masquées par un filtre */
.staff-card[hidden],
.staff-group[hidden] { display: none !important; }


/* ============================================================
   PAGES CURSUS — bloc Admission : dégradé dans la couleur du cursus,
   symbole GSDA en filigrane, texture low-poly, bouton avec flèche
   ============================================================ */
:root {
  /* Symbole GSDA (pétales) en masque : la forme seule, colorée en CSS */
  --gsda-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='62.83 -4.07 143.93 143.93'%3E%3Cg%3E%3Cpath d='M134.83,0c-8.9,0-16.11,7.22-16.11,16.11s16.11,25.39,16.11,25.39c0,0,16.11-16.49,16.11-25.39S143.73,0,134.83,0Z'/%3E%3Cpath d='M101.77,34.81s-.2-17.1-4.87-21.77c-4.67-4.67-12.23-4.67-16.9,0s-4.67,12.23,0,16.9,21.77,4.87,21.77,4.87Z'/%3E%3Cpath d='M189.72,13.02c-4.67-4.67-12.23-4.67-16.9,0-4.67,4.67-4.87,21.77-4.87,21.77,0,0,17.1-.2,21.77-4.87,4.67-4.67,4.67-12.23,0-16.9Z'/%3E%3Cpath d='M80.03,105.7c-1.75,1.75-2.85,3.91-3.28,6.18-.77,3.79.32,7.89,3.26,10.83,4.67,4.67,12.23,4.67,16.9,0,1.47-1.47,2.5-4.17,3.21-7.19,1.58-6.57,1.68-14.69,1.68-14.69,0,0-17.1.2-21.77,4.87Z'/%3E%3Cpath d='M66.9,67.85c0,8.9,7.22,16.11,16.11,16.11s25.39-16.11,25.39-16.11c0,0-16.49-16.11-25.39-16.11s-16.11,7.21-16.11,16.11Z'/%3E%3Cpath d='M118.64,119.67c0,8.9,7.21,16.11,16.11,16.11s16.11-7.22,16.11-16.11-16.11-25.39-16.11-25.39c0,0-16.11,16.49-16.11,25.39Z'/%3E%3Cpath d='M186.57,51.82c-8.9,0-25.39,16.11-25.39,16.11,0,0,16.49,16.11,25.39,16.11s16.11-7.21,16.11-16.11-7.22-16.11-16.11-16.11Z'/%3E%3Cpath d='M134.91,51.86h-.15c-13.1,0-15.95,2.85-15.95,15.95s2.85,15.95,15.95,15.95h.15c13.1,0,15.95-2.85,15.95-15.95s-2.85-15.95-15.95-15.95Z'/%3E%3Cpath d='M187.19,104.17c-6.39-3.18-19.51-3.33-19.51-3.33,0,0,.2,17.1,4.87,21.77.95.95,2.02,1.7,3.16,2.26,4.51,2.37,10.22,1.67,14.01-2.13,4.67-4.67,4.67-12.23,0-16.9-.64-.64-1.51-1.19-2.53-1.67Z'/%3E%3C/g%3E%3C/svg%3E");
}

.admission {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 24px 88px;
  background:
    radial-gradient(ellipse 55% 80% at 85% 25%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 45% 70% at 8% 100%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
    linear-gradient(140deg, #25202a 0%, #2e2833 45%, color-mix(in srgb, var(--accent) 32%, #1c1720) 100%);
}

/* Filigrane : le symbole GSDA, légèrement incliné, teinté de la couleur du cursus */
.admission::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -5%;
  width: min(540px, 50vw);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--accent) 60%, #fff);
  opacity: 0.13;
  -webkit-mask: var(--gsda-mark) center / contain no-repeat;
          mask: var(--gsda-mark) center / contain no-repeat;
  transform: translateY(-50%) rotate(-12deg);
}

/* Texture low-poly du site, très discrète */
.admission::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('img/lowpolybg.png') center / cover no-repeat;
  opacity: 0.06;
  mix-blend-mode: screen;
}

/* Titre plus affirmé, avec le trait de couleur des autres titres */
.admission__title {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.admission__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 70%, #fff);
}
.admission__title + .admission__list { margin-top: 32px; }
.admission__lead { margin-top: 26px; }

/* Conditions (BACI) : cartes en verre dépoli */
.admission__list li {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}

/* Bouton : flèche qui avance, se remplit de la couleur du cursus au survol */
.admission__cta {
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 28px;
  font-size: 0.82rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.admission__cta::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.25s ease;
}
.admission__cta:hover,
.admission__cta:focus-visible {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 45%, transparent);
}
.admission__cta:hover::after,
.admission__cta:focus-visible::after { transform: translateX(4px); }
.admission__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 680px) {
  .admission { padding: 56px 18px 64px; }
  .admission::before { width: 78vw; right: -28%; top: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  .admission__cta,
  .admission__cta::after { transition: none; }
  .admission__cta:hover,
  .admission__cta:hover::after { transform: none; }
}


/* ---- Vidéo de l'université partenaire : note sous le lecteur + liens (page Middlesex) ---- */
.video-player__note {
  max-width: 960px;
  margin: 16px auto 0;
  color: #5d5661;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}
.video-player__note a,
.partner-page__links a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video-player__note a:hover,
.partner-page__links a:hover { color: var(--accent); }
.partner-page__video { margin: 26px 0 30px; }
.partner-page__video .video-player__frame { box-shadow: 0 16px 34px rgba(38,24,45,0.18); }
.partner-page__section p.video-player__note { font-size: 0.9rem; text-align: center; }
.partner-page__links-title {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.partner-page__links {
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
  line-height: 1.6;
}
.partner-page__links a { color: var(--accent); }
/* Dans une section de la page partenaire, la légende du lecteur garde son style d'origine */
.partner-page__section .video-player__caption {
  position: absolute;
  margin: 0;
  color: #fff;
  font-size: clamp(0.95rem, 2.1vw, 1.4rem);
  line-height: 1.2;
}
.partner-page__section p.video-player__note { margin-top: 16px; color: #5d5661; line-height: 1.6; }
.partner-page__links-title { position: relative; color: #2b2b2b; }

/* Numéro de téléphone dans les blocs d'adresse (page contact et pied de page) */
.contact-address address a,
.site-footer__address a { color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; }
.contact-address address a:hover,
.site-footer__address a:hover { text-decoration: underline; }
