/* ==========================================================================
   Jedha AI School — composants (convention BEM)
   ========================================================================== */

/* Sprite d'icônes, hors flux */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Boutons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.button__icon {
  flex-shrink: 0;
  transition: transform 0.2s;
}

@media (hover: hover) {
  .button:hover .button__icon[width] {
    transform: translateX(2px);
  }
}

.button--small {
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

.button--primary {
  /* Même dégradé que les textes (.text-gradient) */
  background: var(--gradient-signature);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(16, 47, 255, 0.22);
}

@media (hover: hover) {
  .button--primary:hover {
    background: linear-gradient(90deg, var(--royal-blue--800), var(--thematic-data--700));
    color: var(--white);
  }
}

.button--violet {
  background: var(--thematic-data--600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(114, 20, 255, 0.22);
}

@media (hover: hover) {
  .button--violet:hover {
    background: var(--thematic-data--700);
    color: var(--white);
  }
}

.button--secondary {
  background: var(--white);
  border-color: var(--royal-blue--200);
  color: var(--grey--900);
}

@media (hover: hover) {
  .button--secondary:hover {
    border-color: var(--royal-blue--400);
    color: var(--grey--900);
  }
}

.button--white {
  background: var(--white);
  color: var(--royal-blue--950);
}

@media (hover: hover) {
  .button--white:hover {
    background: var(--royal-blue--050);
    color: var(--royal-blue--950);
  }
}

.button--outline-white {
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
  color: var(--white);
}

@media (hover: hover) {
  .button--outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
  }
}

.button--white:focus-visible,
.button--outline-white:focus-visible,
.program-card__link:focus-visible {
  outline-color: var(--white);
}

/* ---------- Pastilles ---------- */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--royal-blue--200);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--grey--800);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.3;
}

.pill-list--small .pill {
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xsmall);
}

.pill-list--large {
  gap: var(--space-s);
}

.pill-list--large .pill {
  padding: 0.625rem 1.125rem;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
  border-color: var(--white);
}

.pill-list--on-dark .pill {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ---------- Pastilles « en bref » (durée, niveau d'entrée, modalité) sur fond sombre ---------- */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.badge {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

/* Première pastille (la durée) mise en avant sur fond blanc */
.badge--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--royal-blue--950);
}

/* ---------- Icône dans un cercle ---------- */
.icon-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--royal-blue--050);
  color: var(--royal-blue--600);
}

/* Halo qui pulse autour de toutes les icônes rondes du site (ombre animée : aucun effet sur la mise en page),
   décalé d'un élément de liste à l'autre */
.icon-badge,
.check-list__icon {
  animation: icon-halo 3s var(--ease-out) infinite;
}

li:nth-child(2) .icon-badge, li:nth-child(2) > .check-list__icon { animation-delay: 0.3s; }
li:nth-child(3) .icon-badge, li:nth-child(3) > .check-list__icon { animation-delay: 0.6s; }
li:nth-child(4) .icon-badge, li:nth-child(4) > .check-list__icon { animation-delay: 0.9s; }
li:nth-child(5) .icon-badge, li:nth-child(5) > .check-list__icon { animation-delay: 1.2s; }
li:nth-child(6) .icon-badge, li:nth-child(6) > .check-list__icon { animation-delay: 1.5s; }
li:nth-child(7) .icon-badge, li:nth-child(7) > .check-list__icon { animation-delay: 1.8s; }
li:nth-child(8) .icon-badge, li:nth-child(8) > .check-list__icon { animation-delay: 2.1s; }

@keyframes icon-halo {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--halo-color, var(--royal-blue--500)) 21%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.6em transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-badge,
  .check-list__icon {
    animation: none;
  }
}

.icon-badge--small {
  width: 36px;
  height: 36px;
}

/* ---------- Logo (SVG : version sombre en en-tête, claire en pied de page) ---------- */
.logo {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo__image {
  width: auto;
  height: 40px;
}

.logo--footer .logo__image {
  height: 48px;
}

/* ==========================================================================
   En-tête
   ========================================================================== */
/* --- Bandeau d'annonce, au-dessus de l'en-tête (défile avec la page) --- */
.announcement-bar {
  position: relative;
  z-index: 101;
  background: var(--thematic-data--600);
  color: var(--white);
  font-size: var(--text-small);
  line-height: 1.4;
}

.announcement-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs) var(--space-m);
  padding-block: var(--space-xs);
  text-align: center;
}

.announcement-bar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--white);
  font-weight: 600;
}

@media (hover: hover) {
  .announcement-bar__link:hover {
    color: var(--white);
  }
}

.announcement-bar__link svg {
  transition: transform 0.2s var(--ease-out);
}

@media (hover: hover) {
  .announcement-bar__link:hover svg {
    transform: translateX(2px);
  }
}

.announcement-bar :focus-visible {
  outline-color: var(--white);
}

/* Bouton de fermeture : utile seulement avec JavaScript */
.announcement-bar__close {
  display: none;
}

/* La croix se cale sur le bord droit de l'écran (le bandeau est en position relative),
   pas sur le bord du conteneur */
.js .announcement-bar__inner {
  padding-inline: calc(var(--container-gutter) + 2.5rem);
}

.js .announcement-bar__close {
  position: absolute;
  top: 50%;
  right: var(--space-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .announcement-bar__close:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}

/* Fermé par le visiteur (cookie de 12 h, voir main.js) */
.is-announcement-closed .announcement-bar {
  display: none;
}

@media (max-width: 479px) {
  .announcement-bar {
    font-size: var(--text-xsmall);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* En-tête collé en haut après défilement : filet gris dessiné par une ombre (pas de décalage de 1 px) */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 var(--grey--200);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  min-height: var(--header-height);
}

.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  gap: var(--space-xs);
}

.site-nav__link {
  display: block;
  padding: 0.5rem;
  border-radius: var(--radius-s);
  color: var(--grey--800);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .site-nav__link:hover {
    background: var(--royal-blue--050);
    color: var(--royal-blue--600);
  }
}

/* ---------- Sous-menu Formations (bouton de divulgation) ---------- */
.site-nav__item--has-submenu {
  position: relative;
}

.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.site-nav__trigger[aria-expanded="true"] {
  background: var(--royal-blue--050);
  color: var(--royal-blue--600);
}

.site-nav__chevron {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

.site-nav__trigger[aria-expanded="true"] .site-nav__chevron {
  transform: rotate(180deg);
}

.site-nav__submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  width: max-content;
  min-width: 12rem;
  padding: var(--space-xs);
  border: 1px solid var(--grey--100);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-raised);
}

.site-nav__trigger[aria-expanded="true"] + .site-nav__submenu {
  display: block;
}

/* Sans JavaScript, le sous-menu s'ouvre au survol et au focus */
:root:not(.js) .site-nav__item--has-submenu:focus-within .site-nav__submenu {
  display: block;
}
@media (hover: hover) {
  :root:not(.js) .site-nav__item--has-submenu:hover .site-nav__submenu {
    display: block;
  }
}

.site-nav__sublink {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-s);
  color: var(--grey--800);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .site-nav__sublink:hover {
    background: var(--royal-blue--050);
    color: var(--royal-blue--600);
  }
}

.site-header__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-xs);
}

.site-header__actions .button {
  white-space: nowrap;
}

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--grey--900);
  cursor: pointer;
}

.site-header__toggle-icon--close,
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon--open {
  display: none;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon--close {
  display: block;
}

/* Bouton Candidater dupliqué dans le panneau mobile (affiché sous 767 px) */
.site-nav__cta {
  display: none;
}

/* Menu burger dès 1199 px : la navigation et les deux boutons ne tiennent plus sur une ligne */
@media (max-width: 1199px) {
  .site-header {
    background: rgba(255, 255, 255, 0.9);
  }

  .site-header__inner {
    gap: var(--space-xs);
  }

  /* Le bouton précède la navigation dans le DOM (ordre de tabulation), mais s'affiche à droite */
  .site-header__toggle {
    display: inline-flex;
    order: 3;
  }

  .site-header__actions {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: var(--space-s) var(--container-gutter) var(--space-l);
    border-bottom: 1px solid var(--grey--200);
    background: var(--white);
    box-shadow: var(--shadow-raised);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--grey--100);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .site-nav__trigger {
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }

  .site-nav__trigger[aria-expanded="true"] {
    background: none;
  }

  .site-nav__submenu {
    position: static;
    width: auto;
    padding: var(--space-2xs) 0 var(--space-xs) var(--space-m);
    border: 0;
    border-bottom: 1px solid var(--grey--100);
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav__sublink {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    white-space: normal;
  }
}

/* Sous 767 px, Candidater quitte l'en-tête pour le menu burger (Portes ouvertes reste visible) */
@media (max-width: 767px) {
  .site-header__candidate {
    display: none;
  }

  .site-nav__cta {
    display: flex;
    width: 100%;
    margin-top: var(--space-m);
  }
}

@media (max-width: 479px) {
  .logo__image {
    height: 34px;
  }

  .site-header__actions .button--small {
    padding-inline: 0.875rem;
  }
}

/* ==========================================================================
   S1 — Hero : photo en fond pleine largeur, texte à gauche
   ========================================================================== */
.hero {
  /* Grille : le contenu (ligne 1), puis le bandeau de réassurance réparti sur deux
     lignes de même hauteur. La photo couvre les lignes 1 et 2 : le bandeau
     chevauche donc le hero sur exactement la moitié de sa hauteur. */
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  margin-top: calc(-1 * var(--header-height));
}

.hero__background {
  position: relative;
  z-index: -1;
  grid-row: 1 / 3;
  grid-column: 1;
  overflow: hidden;
  background: var(--royal-blue--050);
}

/* Cadrage : les étudiants restent à droite, la zone de texte à gauche */
.hero__background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

.hero__inner {
  grid-row: 1;
  grid-column: 1;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
}

.hero__title {
  margin-bottom: var(--space-l);
}

.hero__title-line {
  display: block;
}

.hero__lead {
  max-width: 600px;
  color: var(--grey--900);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-xl);
}

@media (max-width: 991px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }
}

@media (max-width: 767px) {
  .hero__inner {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__actions .button {
    width: 100%;
  }
}

/* ==========================================================================
   S1b — Bandeau de réassurance
   ========================================================================== */
.hero__trust {
  grid-row: 2 / 4;
  grid-column: 1;
}

.trust {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-l);
  border: 1px solid var(--grey--100);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-raised);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-xs) var(--space-l);
}

.trust__item + .trust__item {
  border-left: 1px solid var(--grey--200);
}

.trust__text {
  display: flex;
  flex-direction: column;
}

.trust__title {
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.35;
  color: var(--grey--900);
}

.trust__sub {
  font-size: var(--text-xsmall);
  line-height: 1.4;
  color: var(--color-text-muted);
}

@media (max-width: 1199px) {
  .trust__item {
    padding-inline: var(--space-m);
  }
}

@media (max-width: 991px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-m);
  }

  .trust__item:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 479px) {
  .trust {
    grid-template-columns: 1fr;
    padding: var(--space-m);
  }

  .trust__item {
    padding-inline: var(--space-xs);
  }

  .trust__item + .trust__item {
    border-left: 0;
    border-top: 1px solid var(--grey--200);
    padding-top: var(--space-m);
  }
}

/* ==========================================================================
   S3 — Usage de l'IA
   ========================================================================== */
/* Section sur fond doux : un peu plus d'air en haut et en bas */
.usage {
  padding-block: calc(var(--space-section) + var(--space-xl));
}

.usage__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-3xl);
  align-items: start;
}

.usage__hook {
  margin-top: var(--space-l);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.396rem + 0.442vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--royal-blue--600);
}

.usage__media {
  position: relative;
  margin-top: var(--space-xl);
  overflow: hidden;
  border-radius: var(--radius-m);
}

.usage__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.usage__body {
  display: grid;
  gap: var(--space-l);
  color: var(--grey--700);
}

.usage__conclusion {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) var(--space-l);
  border-block: 1px solid var(--royal-blue--100);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.293rem + 0.884vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

/* Les cinq compétences s'enchaînent sous les projets, dans la même section */
.projects .skills {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--grey--200);
}

/* Les débouchés s'enchaînent dans la section « Pourquoi devenir Développeur AI ? » */
.usage .careers__inner {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--grey--200);
}

@media (max-width: 991px) {
  .usage__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   S4 — Formations
   ========================================================================== */
.section--soft {
  background: var(--royal-blue--050);
  background: var(--gradient-soft);
}

/* Sur fond dégradé, les surtitres passent dans une pilule blanche */
:is(.section--soft, .page-header) .eyebrow:not(:empty) {
  width: fit-content;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  /* Deux couches : le dégradé découpé sur le texte, le blanc de la pilule dessous */
  background: var(--gradient-signature), var(--white);
  background-origin: content-box, padding-box;
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  box-shadow: 0 2px 8px rgba(16, 47, 255, 0.06);
}

.section__header--center .eyebrow {
  margin-inline: auto;
}

/* Un peu plus d'air sous le bandeau de réassurance qui chevauche le hero */
.programs {
  padding-top: calc(var(--space-section) + var(--space-xl));
  padding-bottom: calc(var(--space-section) / 2);
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-raised);
}

.program-card--bachelor {
  background: var(--gradient-bachelor);
}

.program-card--mastere {
  background: var(--gradient-mastere);
}

.program-card__media {
  position: relative;
}

.program-card__image {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

/* Zoom léger de toute la carte et ombre plus profonde au survol (ou au focus clavier).
   Préfixe .programs : passe devant les règles d'apparition au défilement (.js .reveal) */
.programs .program-card {
  transition: opacity var(--duration) var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.programs .program-card:focus-within {
  transform: scale(1.02);
  box-shadow: var(--shadow-raised), 0 30px 60px -20px rgba(16, 47, 255, 0.35);
}

@media (hover: hover) {
  .programs .program-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-raised), 0 30px 60px -20px rgba(16, 47, 255, 0.35);
  }
}

.program-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
  padding: var(--space-xl);
}

.program-card__title {
  font-size: clamp(1.5rem, 1.396rem + 0.442vw, 1.75rem);
  color: var(--white);
}

.program-card__link {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .program-card__link:hover {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
}

.program-card__hook {
  font-size: var(--text-large);
  font-weight: 500;
  line-height: 1.45;
}

.program-card__text {
  color: rgba(255, 255, 255, 0.88);
}

.program-card__rncp {
  display: flex;
  gap: var(--space-s);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--text-small);
  line-height: 1.5;
}

/* Lien vers la fiche France Compétences, lisible sur le fond sombre des cartes */
.program-card__rncp .rncp-link {
  color: inherit;
  text-decoration: underline;
}

.program-card__rncp-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--royal-blue--200);
}

.program-card__label {
  margin-bottom: calc(-1 * var(--space-xs));
  font-size: var(--text-small);
  font-weight: 600;
}

.program-card__cta {
  margin-top: auto;
}

/* Accents du Mastère accordés au violet */
.program-card--mastere .program-card__rncp-icon {
  color: var(--thematic-data--100);
}

.program-card--mastere .button--white {
  color: var(--thematic-data--700);
}

@media (hover: hover) {
  .program-card--mastere .button--white:hover {
    background: var(--thematic-data--100);
    color: var(--thematic-data--700);
  }
}

.programs .program-card--mastere:focus-within {
  box-shadow: var(--shadow-raised), 0 30px 60px -20px rgba(114, 20, 255, 0.4);
}

@media (hover: hover) {
  .programs .program-card--mastere:hover {
    box-shadow: var(--shadow-raised), 0 30px 60px -20px rgba(114, 20, 255, 0.4);
  }
}

.program-card .pill-list {
  margin-bottom: var(--space-s);
}

@media (max-width: 991px) {
  .programs__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .program-card__body {
    padding: var(--space-l);
  }

  .program-card__cta {
    width: 100%;
  }
}

/* Mobile : au clic sur « Voir les formations », titre et intro resserrés et cartes en slider
   horizontal, pour qu'une carte entière soit visible dès l'arrivée sur la section. */
@media (max-width: 767px) {
  .programs {
    padding-top: var(--space-section);
    /* Arrivée par l'ancre #formations : titre juste sous l'en-tête fixe, sans la marge de la section */
    scroll-margin-top: calc(-1 * var(--space-section) + var(--space-xs));
  }

  .programs.programs--compact {
    scroll-margin-top: calc(-1 * var(--space-section) + var(--space-xs));
  }

  .programs .section__header {
    margin-bottom: var(--space-l);
  }

  .programs .section__header h2 {
    font-size: 1.375rem;
    line-height: var(--leading-snug);
  }

  .programs .section__intro {
    margin-top: var(--space-s);
    font-size: 0.875rem;
    line-height: 1.45;
  }

  /* Slider : une carte et le début de la suivante, défilement au doigt avec arrêt sur chaque carte.
     Marges internes pour ne pas rogner l'ombre ; marge négative pour rester aligné sur le conteneur. */
  .programs__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 90%;
    gap: var(--space-s);
    margin-inline: calc(-1 * var(--container-gutter));
    padding: var(--space-xs) var(--container-gutter) var(--space-l);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-gutter);
    scrollbar-width: none;
  }

  .programs__grid::-webkit-scrollbar {
    display: none;
  }

  .programs__grid > .program-card {
    scroll-snap-align: start;
  }

  /* La carte hors écran ne doit pas attendre l'apparition au défilement (déclenchée à la verticale) */
  .js .programs__grid > .reveal {
    opacity: 1;
    transform: none;
  }

  /* Pas de zoom au focus : la carte agrandie serait rognée par le slider */
  .programs .program-card:focus-within {
    transform: none;
  }

  /* Photo moins haute : la carte entière tient dans l'écran d'un téléphone */
  .program-card__image {
    aspect-ratio: 4 / 1;
  }

  .program-card__body {
    gap: var(--space-s);
    padding: var(--space-m) 0.875rem;
  }

  .program-card__title {
    font-size: 1.25rem;
  }

  .program-card__hook {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .program-card__rncp {
    padding: var(--space-xs) var(--space-s);
    font-size: var(--text-xsmall);
    line-height: 1.4;
  }

  .program-card__label {
    margin-bottom: calc(-1 * var(--space-2xs));
    font-size: var(--text-xsmall);
  }

  .program-card .badge-list,
  .program-card .pill-list {
    gap: var(--space-2xs);
  }

  .program-card .badge {
    padding: 0.1875rem 0.5rem;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }

  .program-card .pill {
    padding: 0.125rem 0.4375rem;
    font-size: 0.6875rem;
  }

  .program-card .pill-list {
    margin-bottom: 0;
  }

  .program-card__cta {
    width: 100%;
  }
}

/* ==========================================================================
   S5 — Ce qui distingue l'école
   ========================================================================== */
.strength-card {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
  color: var(--grey--700);
  font-size: var(--text-small);
}

.strength-card__image {
  width: 100%;
  /* 16:9 réduit d'un tiers en hauteur */
  aspect-ratio: 8 / 3;
  object-fit: cover;
}

.strength-card__media {
  position: relative;
}

.strength-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-xl);
}

.strength-card__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--royal-blue--600);
}

.strength-card__title {
  margin-bottom: var(--space-2xs);
  font-size: 1.25rem;
}

/* Précision discrète accolée au titre, ex. « (en option) » */
.strength-card__note {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
}

.strength-card__slot:empty {
  display: none;
}

/* Listes à puces des cards (titres RNCP, certifications) */
.strength-card .strength-card__list {
  display: grid;
  gap: var(--space-xs);
  padding-left: 1.25em;
  list-style: disc;
}

.strength-card__list li::marker {
  color: var(--royal-blue--600);
}

.strength-card__list strong {
  color: var(--grey--900);
}

@media (max-width: 767px) {
  .strength-card__body {
    padding: var(--space-l);
  }
}

/* ==========================================================================
   S6 — Cinq compétences
   ========================================================================== */
.skill-card {
  scroll-snap-align: start;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
  padding: var(--space-l);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

/* Compétences : icône, rond et pastilles en violet */
.skill-card .icon-badge {
  --halo-color: var(--thematic-data--500);
  position: relative;
  background: var(--thematic-data--100);
  color: var(--thematic-data--700);
}

.skill-card .pill {
  border-color: transparent;
  background: var(--thematic-data--100);
}

.skill-card__title {
  font-size: 1.1875rem;
}

.skill-card__text {
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}


/* ==========================================================================
   S7 — Projets (carrousel)
   ========================================================================== */
.projects__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-2xl);
  align-items: center;
}

.projects__lead {
  margin-top: var(--space-m);
  color: var(--color-text-muted);
  font-size: var(--text-large);
}

.carousel__controls {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--royal-blue--200);
  border-radius: 50%;
  background: var(--white);
  color: var(--royal-blue--600);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

@media (hover: hover) {
  .carousel__button:hover {
    border-color: var(--royal-blue--600);
    background: var(--royal-blue--050);
  }
}

.carousel__button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

.carousel {
  min-width: 0;
}

.carousel__track {
  /* Contient les éléments en position absolue (ex. textes masqués) pour qu'ils ne débordent pas de la page */
  position: relative;
  display: grid;
  grid-auto-columns: minmax(250px, calc((100% - 2 * var(--space-m)) / 2.4));
  grid-auto-flow: column;
  gap: var(--space-m);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-2xs);
  scrollbar-width: thin;
  scrollbar-color: var(--royal-blue--200) transparent;
}

/* Espace sous les cartes avant la barre de défilement.
   Sélecteur renforcé : la remise à zéro ul[class] / ol[class] de base.css est plus prioritaire que .carousel__track seul. */
/* Marges internes pour que l'élévation et l'ombre au survol ne soient pas rognées ;
   la marge négative garde les cartes alignées sur le conteneur */
.carousel .carousel__track {
  margin-inline: calc(-1 * var(--space-s));
  padding: var(--space-s) var(--space-s) var(--space-m);
  scroll-padding-inline: var(--space-s);
}

/* Cartes des carrousels : légère élévation et ombre douce au survol */
.carousel__track > li {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) {
  .carousel__track > li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }

  /* Les cartes projets ont déjà une ombre au repos : on la conserve */
  .carousel__track > .project-card:hover {
    box-shadow: var(--shadow-soft), var(--shadow-hover);
  }
}

.carousel__track:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius-m);
}

/* En-tête de section avec les flèches du carrousel alignées à droite du titre */
.section__header--with-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m) var(--space-xl);
  max-width: none;
  /* Titre au plus près du carrousel (environ deux fois moins d'espace qu'un en-tête standard) */
  margin-bottom: var(--space-xs);
}

.carousel__controls--inline {
  margin-top: 0;
}

/* Pistes à colonnes fixes : 3 ou 4 cartes visibles en desktop, 2 en tablette, 1 et un aperçu sur mobile */
.carousel__track.carousel__track--thirds {
  grid-auto-columns: calc((100% - 2 * var(--space-l)) / 3);
  gap: var(--space-l);
}

.carousel__track.carousel__track--quarters {
  grid-auto-columns: calc((100% - 3 * var(--space-m)) / 4);
}

@media (max-width: 1199px) {
  .carousel__track.carousel__track--quarters {
    grid-auto-columns: calc((100% - 2 * var(--space-m)) / 3);
  }
}

@media (max-width: 991px) {
  .carousel__track.carousel__track--thirds {
    grid-auto-columns: calc((100% - var(--space-l)) / 2);
  }

  .carousel__track.carousel__track--quarters {
    grid-auto-columns: calc((100% - var(--space-m)) / 2);
  }
}

@media (max-width: 767px) {
  .carousel__track.carousel__track--thirds,
  .carousel__track.carousel__track--quarters {
    grid-auto-columns: 85%;
    gap: var(--space-m);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.project-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 12 / 7;
  background:
    radial-gradient(60% 80% at 80% 20%, var(--thematic-data--100), rgba(234, 228, 255, 0)),
    var(--royal-blue--050);
}

.project-card__visual svg {
  width: 100%;
  height: 100%;
}

.project-card__title {
  padding: var(--space-m) var(--space-l) var(--space-l);
  font-size: 1.0625rem;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .projects__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .carousel__controls {
    order: 2;
  }
}

@media (max-width: 767px) {
  .carousel__track {
    grid-auto-columns: 78%;
  }
}

/* ==========================================================================
   S8 — Débouchés
   ========================================================================== */
.careers__inner {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--space-3xl);
  align-items: center;
}

.careers__text {
  margin-top: var(--space-l);
  color: var(--grey--700);
}

.careers__text.text-size-large {
  color: var(--grey--900);
}

.careers__cta {
  margin-top: var(--space-xl);
}

/* Phrase d'introduction placée au-dessus de la liste des métiers */
.careers__jobs-label {
  margin-top: 0;
  margin-bottom: var(--space-l);
}

@media (max-width: 991px) {
  .careers__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   Partenaires et entreprises : titre, frise de logos défilante, texte
   ========================================================================== */
.partners__inner {
  padding-top: var(--space-section);
  border-top: 1px solid var(--grey--200);
}

/* La section suit « Pourquoi choisir Jedha AI School ? », également sur fond blanc :
   le filet sépare les deux, le padding haut est porté par le conteneur */
.partners {
  padding-top: 0;
}

/* Après une section sur fond bleu clair, le bloc partenaires retrouve son espace du haut */
.section--soft + .partners {
  padding-top: var(--space-section);
}

/* Même largeur que le paragraphe : le titre tient sur 2 lignes sur grand écran */
.partners .section__header {
  max-width: 1100px;
  margin-bottom: var(--space-xl);
}

.partners__title {
  font-size: var(--text-h2);
  line-height: 1.2;
}

.partners__text {
  max-width: 1100px;
  margin: var(--space-xl) auto 0;
  color: var(--grey--700);
  text-align: center;
}

.partners__text strong {
  color: var(--grey--900);
}

/* Frise : deux listes identiques qui défilent en boucle ; fondu sur les bords */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee 40s linear infinite;
}

.logo-marquee:focus-within .logo-marquee__track,
.logo-marquee.is-paused .logo-marquee__track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .logo-marquee:hover .logo-marquee__track {
    animation-play-state: paused;
  }
}

.logo-marquee .logo-marquee__list {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  margin: 0;
  padding: var(--space-s) var(--space-3xl) var(--space-s) 0;
  list-style: none;
}

.logo-marquee__item {
  flex-shrink: 0;
}

/* Logos en niveaux de gris, couleur au survol */
.logo-marquee__logo {
  width: auto;
  height: 48px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}

@media (hover: hover) {
  .logo-marquee__item:hover .logo-marquee__logo {
    filter: none;
    opacity: 1;
  }
}

/* Bouton pause / lecture (critère WCAG 2.2.2 : tout mouvement de plus de 5 s doit pouvoir être arrêté) */
/* Le bouton pause n'a d'effet qu'avec JavaScript */
.logo-marquee__controls {
  display: none;
}

.js .logo-marquee__controls {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-xs);
}

.logo-marquee__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--grey--700);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .logo-marquee__toggle:hover {
    border-color: var(--royal-blue--400);
    color: var(--royal-blue--600);
  }
}

/* Grand écran : le bouton pause se loge dans la marge à droite du paragraphe,
   sans ajouter de hauteur entre la frise et le texte (marge suffisante dès 1280 px) */
@media (min-width: 1280px) {
  .js .logo-marquee__controls {
    position: relative;
    height: 0;
    margin-top: 0;
  }

  .logo-marquee__toggle {
    position: absolute;
    top: var(--space-s);
    right: var(--container-gutter);
  }
}

@keyframes logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Mouvement réduit : frise statique, logos centrés sur plusieurs lignes, sans copie ni bouton */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-marquee__track {
    width: auto;
    animation: none;
  }

  .logo-marquee .logo-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-l) var(--space-2xl);
    padding-inline: var(--container-gutter);
  }

  .logo-marquee__list[aria-hidden="true"],
  .js .logo-marquee__controls {
    display: none;
  }
}

@media (max-width: 767px) {
  .logo-marquee .logo-marquee__list {
    gap: var(--space-2xl);
    padding-right: var(--space-2xl);
  }

  .logo-marquee__logo {
    height: 40px;
  }
}

/* ==========================================================================
   S9 — Campus
   ========================================================================== */
.campus__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.campus__media {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}

.campus__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.campus__text {
  margin-top: var(--space-l);
  color: var(--grey--700);
}

.campus__cities {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-xl);
}

.campus__city {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-m);
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-s);
  background: var(--white);
}

.campus__city-name {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--grey--900);
  text-decoration: none;
}

@media (hover: hover) {
  .campus__city-name:hover {
    color: var(--royal-blue--600);
  }
}

/* Lien en JS (data-href) : couleur des liens reprise de base.css */
.campus__city-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--royal-blue--600);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .campus__city-link:hover {
    color: var(--royal-blue--800);
    text-decoration: underline;
  }
}

.campus__city-link svg {
  transition: transform 0.2s var(--ease-out);
}

@media (hover: hover) {
  .campus__city-link:hover svg {
    transform: translateX(2px);
  }
}

@media (max-width: 991px) {
  .campus__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   S10 — Télécharger la documentation (formulaire factice en deux étapes)
   ========================================================================== */
.documentation__inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Panneau de gauche : visuel, arguments, titres RNCP */
.documentation__panel {
  container-type: inline-size;
  padding: var(--space-xl);
  border-radius: var(--radius-l);
  background: var(--royal-blue--050);
  background: var(--gradient-soft);
}

/* Titre sur une seule ligne : sa taille suit la largeur du panneau (le texte fait environ 14,8 em) */
.documentation__title {
  font-size: min(2rem, 6.6cqi);
}

/* Le visuel de la brochure a son propre fond transparent et ses ombres : pas de cadre */
.documentation__visual {
  margin-bottom: var(--space-l);
}

/* Limité à 600 px : utile quand le panneau passe en pleine largeur (tablette) */
.documentation__image {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.documentation .documentation__list {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding: 0;
  list-style: none;
  color: var(--grey--700);
}

.documentation__list li {
  position: relative;
  padding-left: 1.5rem;
}

/* Puce en chevron, comme sur la maquette */
.documentation__list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid var(--royal-blue--600);
  border-right: 2px solid var(--royal-blue--600);
  transform: rotate(45deg);
}

.documentation__list strong {
  color: var(--grey--900);
}

/* Badges RNCP et note, séparés par un filet vertical */
.documentation__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

.rating {
  display: grid;
  /* La ligne « alumni » couvre les deux colonnes : la seconde absorbe sa largeur */
  grid-template-columns: auto 1fr;
  /* Étoiles collées à la note, alignées sur son pied */
  align-items: end;
  gap: var(--space-2xs) var(--space-xs);
}

.rating__score {
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.rating__max {
  color: var(--grey--600);
  font-size: 1.125rem;
  font-weight: 600;
}

.rating__stars {
  color: var(--royal-blue--600);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.1em;
}

.rating__text {
  grid-column: 1 / -1;
  color: var(--grey--700);
  font-size: var(--text-small);
}

/* Variante en ligne (étoiles, note, alumni), sur fond sombre dans l'en-tête des formations */
.rating--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-s);
  padding-left: 0;
  border-left: 0;
}

.rating--inline .rating__score {
  font-size: 1.5rem;
}

.rating--inline .rating__text {
  grid-column: auto;
}

.rating--on-dark .rating__stars {
  color: var(--rating-yellow);
}

.rating--on-dark .rating__score {
  color: var(--white);
}

.rating--on-dark .rating__max,
.rating--on-dark .rating__text {
  color: rgba(255, 255, 255, 0.8);
}

/* Carte du formulaire */
.doc-form {
  padding: var(--space-xl);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.doc-form__title {
  font-size: var(--text-h3);
}

.doc-form__progress {
  margin-top: var(--space-xs);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: 500;
}

.doc-form__bar {
  height: 4px;
  margin-top: var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--grey--100);
  overflow: hidden;
}

.doc-form__bar-fill {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-signature);
  transition: width var(--duration) var(--ease-out);
}

.doc-form.is-step-2 .doc-form__bar-fill,
.doc-form.is-sent .doc-form__bar-fill {
  width: 100%;
}

.doc-form__step {
  display: grid;
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

/* Étapes et confirmation masquées : l'attribut hidden doit l'emporter sur display: grid */
.doc-form__step[hidden],
.doc-form__success[hidden],
.contact-form__fields[hidden] {
  display: none;
}

.doc-form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.doc-form__label {
  display: block;
  margin-bottom: var(--space-xs);
  padding: 0;
  color: var(--grey--900);
  font-weight: 600;
}

.doc-form__required {
  color: var(--thematic-data--600);
}

.doc-form__optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

.doc-form__hint {
  margin-top: var(--space-2xs);
  color: var(--color-text-muted);
  font-size: var(--text-xsmall);
}

.doc-form__error {
  margin-top: var(--space-2xs);
  color: var(--thematic-data--700);
  font-size: var(--text-small);
  font-weight: 500;
}

.doc-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.doc-form__control {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--grey--300);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--grey--900);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Téléphone : pays de l'indicatif + numéro */
.doc-form__phone {
  display: grid;
  grid-template-columns: minmax(6.5rem, 38%) 1fr;
  gap: var(--space-xs);
}

.doc-form__textarea {
  min-height: 6rem;
  resize: vertical;
}

/* Aide placée entre le libellé et le champ */
.doc-form__hint--before {
  margin: calc(-1 * var(--space-2xs)) 0 var(--space-xs);
  font-style: italic;
}

.doc-form__control::placeholder {
  color: var(--grey--400);
}

@media (hover: hover) {
  .doc-form__control:hover {
    border-color: var(--grey--400);
  }
}

.doc-form__control:focus-visible {
  outline: none;
  border-color: var(--royal-blue--500);
  box-shadow: 0 0 0 3px var(--royal-blue--100);
}

.doc-form__control[aria-invalid="true"] {
  border-color: var(--thematic-data--600);
}

select.doc-form__control {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--grey--600) 50%), linear-gradient(135deg, var(--grey--600) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

select.doc-form__control:disabled {
  background-color: var(--grey--050);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Case de consentement */
.doc-form__field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xs) var(--space-s);
  align-items: start;
  color: var(--grey--700);
  font-size: var(--text-small);
}

.doc-form__field--check .doc-form__error {
  grid-column: 2;
}

.doc-form__checkbox {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--royal-blue--600);
}

/* Formulaires HubSpot (Candidater, Documentation, Rencontrons-nous) : créés sans le style de HubSpot
   (css: "" dans main.js), mis en forme ici comme les champs .doc-form du DA. À valider par le DA. */

/* Chargement : le conteneur reste vide tant que HubSpot n'a pas inséré le formulaire
   (::after, ::before sert au badge du mode relecture) */
.hs-embed:empty::after {
  content: "Chargement du formulaire…";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  border-radius: var(--radius-s);
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  animation: hs-embed-loading 1.4s ease-in-out infinite alternate;
}

@keyframes hs-embed-loading {
  to {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-embed:empty::after {
    animation: none;
  }
}

.hs-embed .hs-form {
  display: grid;
  gap: var(--space-m);
}

/* Une colonne par champ visible (les champs cachés sont en display: none) */
.hs-embed fieldset {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--space-m);
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* HubSpot injecte toujours sa mise en page (largeurs en %, flottants, marges, et !important sur le
   téléphone) avec des sélecteurs générés très spécifiques : !important nécessaire pour la neutraliser. */
.hs-embed .hs-form fieldset {
  width: auto !important;
  max-width: none !important;
  margin-right: 0 !important;
}

.hs-embed .hs-form fieldset .hs-form-field {
  width: auto !important;
  float: none !important;
}

.hs-embed .hs-form .input {
  margin-right: 0 !important;
}

.hs-embed .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
}

.hs-embed .hs-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
.hs-embed .hs-form textarea.hs-input {
  min-height: 48px !important;
  padding: 0.625rem 0.875rem !important;
}

.hs-embed .hs-form textarea.hs-input {
  min-height: 6rem !important;
}

/* Lignes qui ne contiennent que des champs cachés : pas d'espace vide */
.hs-embed fieldset:not(:has(.hs-form-field:not([style*="display: none"]))) {
  display: none;
}

.hs-embed .hs-form-field > label,
.hs-embed .hs-form-field > legend:not(:empty) {
  display: block;
  margin-bottom: var(--space-xs);
  padding: 0;
  color: var(--grey--900);
  font-weight: 600;
}

.hs-embed .hs-form-required {
  margin-left: 0.2em;
  color: var(--thematic-data--600);
}

.hs-embed .hs-field-desc {
  margin-bottom: var(--space-xs);
  color: var(--color-text-muted);
  font-size: var(--text-xsmall);
}

.hs-embed .hs-field-desc:empty {
  display: none;
}

.hs-embed .hs-input:not([type="checkbox"]):not([type="radio"]):not(div) {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--grey--300);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--grey--900);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hs-embed textarea.hs-input {
  min-height: 6rem;
  resize: vertical;
}

.hs-embed select.hs-input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--grey--600) 50%), linear-gradient(135deg, var(--grey--600) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.hs-embed .hs-input::placeholder {
  color: var(--grey--400);
}

@media (hover: hover) {
  .hs-embed .hs-input:not([type="checkbox"]):not([type="radio"]):not(div):hover {
    border-color: var(--grey--400);
  }
}

.hs-embed .hs-input:focus-visible {
  outline: none;
  border-color: var(--royal-blue--500);
  box-shadow: 0 0 0 3px var(--royal-blue--100);
}

.hs-embed .hs-input.invalid.error {
  border-color: var(--thematic-data--600);
}

/* Téléphone avec indicatif : pays + numéro */
.hs-embed div.hs-fieldtype-intl-phone {
  display: grid;
  grid-template-columns: minmax(6.5rem, 38%) 1fr;
  gap: var(--space-xs);
}

/* Cases à cocher (handicap, portes ouvertes, spécialités) */
.hs-embed .inputs-list {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-embed .inputs-list label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s);
  align-items: start;
  color: var(--grey--700);
  font-size: var(--text-small);
  font-weight: 400;
  cursor: pointer;
}

.hs-embed .inputs-list input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--royal-blue--600);
}

.hs-embed .hs-error-msgs {
  margin: var(--space-2xs) 0 0;
  padding: 0;
  list-style: none;
}

.hs-embed .hs-error-msgs label,
.hs-embed .hs_error_rollup {
  display: block;
  color: var(--thematic-data--700);
  font-size: var(--text-small);
  font-weight: 500;
}

.hs-embed .hs-richtext,
.hs-embed .legal-consent-container {
  color: var(--grey--700);
  font-size: var(--text-small);
}

/* École : toujours Jedha, renseignée par main.js */
.hs-embed .hs_school_quest {
  display: none;
}

.hs-embed .actions {
  display: flex;
  justify-content: flex-end;
}

.hs-embed .hs-button {
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--gradient-signature);
  box-shadow: 0 8px 20px rgba(16, 47, 255, 0.22);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .hs-embed .hs-button:hover {
    background: linear-gradient(90deg, var(--royal-blue--800), var(--thematic-data--700));
  }
}

.hs-embed .hs-button:focus-visible {
  outline: 2px solid var(--royal-blue--500);
  outline-offset: 2px;
}

.hs-embed .hs-dependent-field > div:not(:last-of-type){
  margin-bottom: 1rem;
}

/* Agenda HubSpot Meetings (Rencontrons-nous, Candidater, Documentation) et bouton « Suivant » masqué */
.rencontre__meetings .meetings-iframe-container,
.rencontre__meetings iframe {
  width: 100%;
}

.doc-form__actions .button[hidden] {
  display: none;
}

@media screen and (max-width: 767px) {
  .hs-embed fieldset {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .hs-embed .actions .hs-button {
    width: 100%;
  }
}

/* Cartes de choix du profil (boutons radio) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-s);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .choice-card:hover {
    border-color: var(--royal-blue--300);
  }
}

.choice-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--royal-blue--050);
  color: var(--royal-blue--600);
  transition: background-color 0.2s, color 0.2s;
}

.choice-card__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.choice-card__title {
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-weight: 600;
}

.choice-card__sub {
  color: var(--color-text-muted);
  font-size: var(--text-xsmall);
}

.choice-card:has(.choice-card__input:checked) {
  border-color: var(--royal-blue--600);
  background: var(--royal-blue--050);
  box-shadow: 0 0 0 1px var(--royal-blue--600);
}

.choice-card:has(.choice-card__input:checked) .choice-card__icon {
  background: var(--royal-blue--600);
  color: var(--white);
}

.choice-card:has(.choice-card__input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.doc-form__actions {
  display: flex;
  justify-content: flex-end;
}

.doc-form__actions--split {
  justify-content: space-between;
  gap: var(--space-s);
}

/* Retour seul (étapes HubSpot) : reste à droite, aligné sur le bouton d'envoi HubSpot */
@media (min-width: 992px) {
  .doc-form__actions:not(:has(> .button--secondary:only-child)) {
    justify-content: center;
  }
}

/* Confirmation */
.doc-form__success {
  display: grid;
  justify-items: center;
  gap: var(--space-s);
  margin-top: var(--space-xl);
  padding: var(--space-xl) var(--space-l);
  border-radius: var(--radius-m);
  background: var(--royal-blue--050);
  text-align: center;
}

.doc-form__success:focus {
  outline: none;
}

.doc-form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--royal-blue--600);
  color: var(--white);
}

.doc-form__success-title {
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.doc-form__success-text {
  color: var(--grey--700);
}

@media (max-width: 991px) {
  .documentation__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 479px) {
  .documentation__panel,
  .doc-form {
    padding: var(--space-l);
  }

  .choice-grid,
  .doc-form__row {
    grid-template-columns: 1fr;
  }

  .doc-form__actions .button {
    flex: 1;
  }
}

/* ==========================================================================
   S11 — FAQ
   ========================================================================== */
.faq__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-2xl);
  align-items: start;
}

.faq__list {
  display: grid;
  gap: var(--space-s);
}

.faq-item {
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--royal-blue--200);
  box-shadow: var(--shadow-soft);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-l);
  border-radius: var(--radius-m);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--grey--900);
  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--royal-blue--050);
  color: var(--royal-blue--600);
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 var(--space-l) var(--space-l);
  color: var(--grey--700);
}

@media (max-width: 991px) {
  .faq__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 479px) {
  .faq-item__question {
    padding: var(--space-m);
    font-size: 1.0625rem;
  }

  .faq-item__answer {
    padding: 0 var(--space-m) var(--space-m);
  }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
  padding-top: var(--space-3xl);
  background: var(--royal-blue--950);
  color: var(--royal-blue--100);
  font-size: var(--text-small);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1.2fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.site-footer__group {
  margin-top: var(--space-m);
  max-width: 320px;
}

.footer-question {
  display: grid;
  gap: var(--space-xs);
  max-width: 360px;
  margin-top: var(--space-xl);
  padding: var(--space-l);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--700);
}

.footer-question__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--grey--900);
}

.footer-question__cta {
  width: 100%;
  margin-top: var(--space-xs);
}

/* Le contour de focus blanc du pied de page serait invisible sur la carte blanche */
.site-footer .footer-question__cta:focus-visible {
  outline-color: var(--color-focus);
}

.site-footer__title {
  margin-bottom: var(--space-m);
  font-size: 1rem;
  color: var(--white);
}

.site-footer__subnav {
  margin-top: var(--space-xl);
}

.site-footer__contact {
  display: grid;
  gap: var(--space-l);
  font-style: normal;
}

/* Téléphone et e-mail sous le logo, collés l'un à l'autre */
.site-footer__contact--direct {
  margin-top: var(--space-l);
}

.site-footer__contact .site-footer__list {
  gap: 0;
}

.site-footer__campuses {
  display: grid;
  gap: var(--space-m);
}

.site-footer__campus-name {
  display: block;
  font-weight: 600;
  color: var(--white);
}

/* Le lien reste sur sa propre ligne, au-dessus de l'adresse, sans occuper toute la largeur */
a.site-footer__campus-name {
  width: fit-content;
}

.site-footer__list {
  display: grid;
  gap: var(--space-s);
}

.site-footer__link,
.site-footer__jedha {
  color: var(--white);
  text-decoration: none;
}

@media (hover: hover) {
  .site-footer__link:hover,
.site-footer__jedha:hover {
    color: var(--white);
    text-decoration: underline;
  }
}

/* Lien d'action (ouvre le bandeau Cookiebot) : bouton présenté comme les liens du pied de page */
.site-footer__link--button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.site-footer a:focus-visible,
.site-footer__link--button:focus-visible {
  outline-color: var(--white);
}

.site-footer__bottom {
  padding-block: var(--space-l);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

/* Lien vers le site du groupe, dans la mention du bas */
.site-footer__group-link {
  color: var(--white);
  text-decoration: underline;
}
@media (hover: hover) {
  .site-footer__group-link:hover {
    color: var(--white);
    text-decoration: underline;
  }
}

.site-footer__jedha {
  color: var(--royal-blue--100);
}

/* Tablette : le logo et le texte du groupe sur toute la largeur, les 4 colonnes en 2 × 2 */
@media (max-width: 991px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mode relecture (?relecture=1)
   ========================================================================== */
.is-relecture [data-a-valider] {
  outline: 2px dashed var(--thematic-data--500);
  outline-offset: 2px;
}

.is-relecture [data-a-valider]::before {
  content: "À valider : " attr(data-a-valider);
  display: inline-block;
  margin: 0 var(--space-xs) var(--space-2xs) 0;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  background: var(--thematic-data--700);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  vertical-align: middle;
  -webkit-text-fill-color: var(--white);
}

/* Les emplacements vides deviennent visibles en relecture */
.is-relecture .eyebrow[data-a-valider]:empty,
.is-relecture .strength-card__slot[data-a-valider]:empty {
  display: block;
  min-height: 1.5rem;
}

/* Le badge des figures se superpose à l'image */
.is-relecture figure[data-a-valider]::before,
.is-relecture .hero__background[data-a-valider]::before {
  position: absolute;
  top: var(--space-s);
  left: var(--space-s);
  z-index: 3;
}

.is-relecture .hero__background[data-a-valider]::before {
  top: calc(var(--header-height) + var(--space-s));
  left: auto;
  right: var(--space-s);
}

.is-relecture .trust[data-a-valider]::before {
  position: absolute;
  top: -12px;
  left: var(--space-l);
}

.relecture-panel {
  position: fixed;
  right: var(--space-m);
  bottom: var(--space-m);
  z-index: 300;
  max-width: 340px;
  padding: var(--space-m);
  border-radius: var(--radius-s);
  background: var(--grey--900);
  color: var(--white);
  font-size: var(--text-xsmall);
  box-shadow: var(--shadow-raised);
}

.relecture-panel__title {
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.relecture-panel__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 1.1em;
}

/* ==========================================================================
   Modal (dialog natif) : événement mis en avant, ex. portes ouvertes
   ========================================================================== */
.modal {
  width: min(800px, calc(100% - 2 * var(--container-gutter)));
  max-height: calc(100% - 2 * var(--space-l));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--white);
  color: var(--grey--700);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}

.modal::backdrop {
  background: color-mix(in srgb, var(--grey--900) 55%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modal-in 0.35s var(--ease-out);
}

.modal[open]::backdrop {
  animation: modal-fade 0.35s var(--ease-out);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
}

.modal__inner {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 3fr;
  max-height: inherit;
}

.modal__media {
  margin: 0;
  background: var(--royal-blue--050);
}

/* Variante à logo (modal « professionnels ») */
.modal__media--logo {
  display: grid;
  place-items: center;
  padding: var(--space-xl);
}

.modal__logo {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.modal__eyebrow {
  margin-bottom: calc(var(--space-m) * -1 + var(--space-2xs));
}

.modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-xl);
  overflow-y: auto;
}

.modal__title {
  padding-right: var(--space-2xl);
  font-size: var(--text-h3);
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal__text {
  font-size: var(--text-body);
}

.modal__cta {
  align-self: stretch;
  margin-top: var(--space-2xs);
}

.modal__close {
  position: absolute;
  top: var(--space-m);
  right: var(--space-m);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--royal-blue--600);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

@media (hover: hover) {
  .modal__close:hover {
    border-color: var(--royal-blue--300);
    background: var(--royal-blue--050);
  }
}

/* Étiquettes d'information (date, format…) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-s);
  background: var(--grey--100);
  color: var(--grey--900);
  font-size: var(--text-small);
  font-weight: 500;
}

.tag--highlight {
  background: var(--royal-blue--100);
}

/* Petit écran : la photo passe en bandeau au-dessus du texte */
@media (max-width: 767px) {
  .modal__inner {
    grid-template-columns: 1fr;
  }

  .modal__media {
    height: 160px;
  }

  .modal__media--logo {
    height: auto;
    padding: var(--space-l) var(--space-3xl) var(--space-m) var(--space-l);
  }

  .modal__logo {
    max-width: 160px;
  }

  .modal__body {
    padding: var(--space-l);
  }

  .modal__title {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal[open],
  .modal[open]::backdrop {
    animation: none;
  }
}

/* Page figée derrière un modal ouvert */
html:has(.modal[open]) {
  overflow: hidden;
}

/* ==========================================================================
   Retour en haut de page
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: var(--space-m);
  bottom: var(--space-m);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--royal-blue--600);
  color: var(--white);
  box-shadow: var(--shadow-raised);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s, background-color 0.2s;
}

@media (hover: hover) {
  .back-to-top:hover {
    background: var(--royal-blue--700);
    color: var(--white);
  }
}

@media (hover: hover) {
  .back-to-top:hover .back-to-top__icon {
    transform: rotate(180deg) translateY(2px);
  }
}

.back-to-top__icon {
  transform: rotate(180deg);
  transition: transform 0.2s var(--ease-out);
}

/* Avec JavaScript, le bouton n'apparaît qu'une fois le premier écran dépassé */
.js .back-to-top:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
}

@media (max-width: 479px) {
  .back-to-top {
    right: var(--space-s);
    bottom: var(--space-s);
  }
}

/* ==========================================================================
   Pages de contenu (mentions légales, CGV…) : en-tête de page et texte courant
   ========================================================================== */
.page-header {
  padding-block: var(--space-2xl) var(--space-xl);
  background: var(--royal-blue--050);
  background: var(--gradient-soft);
}

.page-header__title {
  font-size: var(--text-h2);
}

.breadcrumb {
  margin-bottom: var(--space-m);
  font-size: var(--text-small);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-xs);
  color: var(--grey--700);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-xs);
  color: var(--grey--500);
}

.breadcrumb__link {
  color: var(--royal-blue--600);
  text-decoration: none;
}

@media (hover: hover) {
  .breadcrumb__link:hover {
    text-decoration: underline;
  }
}

/* Texte long : largeur de lecture confortable, titres et paragraphes espacés */
.prose {
  max-width: 760px;
  color: var(--grey--700);
}

.page-header__meta {
  margin-top: var(--space-s);
  font-size: var(--text-small);
  color: var(--grey--700);
}

.page-header__intro {
  max-width: 760px;
  margin-top: var(--space-m);
  font-size: var(--text-large);
  line-height: 1.5;
  color: var(--grey--700);
}

.page-header__note {
  max-width: 760px;
  margin-top: var(--space-m);
  padding: var(--space-s) var(--space-m);
  border-left: 3px solid var(--royal-blue--600);
  border-radius: var(--radius-s);
  background: var(--white);
  font-size: var(--text-small);
  color: var(--grey--700);
}

.page-header__cta {
  margin-top: var(--space-l);
}

.prose > * + *,
.prose__group > * + * {
  margin-top: var(--space-m);
}

.prose h2 {
  margin-top: var(--space-2xl);
  font-size: var(--text-h3);
}

.prose h3 {
  margin-top: var(--space-xl);
  font-size: 1.125rem;
}

.prose h4 {
  margin-top: var(--space-l);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey--900);
}

.prose :is(h2, h3, h4) + * {
  margin-top: var(--space-s);
}

/* Listes du texte courant (les listes à classe gardent leur propre mise en forme) */
.prose :is(ul, ol):not([class]) {
  display: grid;
  gap: var(--space-xs);
  padding-left: 1.25rem;
}

.prose li::marker {
  color: var(--royal-blue--600);
}

/* Encadré mis en avant dans un texte long (ex. contact du référent handicap) */
.prose__callout {
  padding: var(--space-l);
  border-left: 3px solid var(--royal-blue--600);
  border-radius: var(--radius-s);
  background: var(--royal-blue--050);
}

.prose__callout > * + * {
  margin-top: var(--space-s);
}

.prose__group {
  margin-top: var(--space-m);
}

/* Sommaire en tête de page longue */
.prose__toc {
  padding: var(--space-m) var(--space-l);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-s);
}

.prose__toc-title {
  font-weight: 600;
  color: var(--grey--900);
}

.prose__toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-l);
  margin-top: var(--space-xs);
}

.prose a {
  overflow-wrap: anywhere;
}

.page-header--large {
  padding-block: var(--space-2xl) var(--space-3xl);
}

.page-header--large .page-header__title {
  max-width: 820px;
  font-size: var(--text-h1);
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-xl);
}

/* ==========================================================================
   Page Parents
   ========================================================================== */
/* --- Le métier visé : texte à gauche, compétences à droite --- */
.job__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.job__content > * + * {
  margin-top: var(--space-m);
}

.job__content .eyebrow {
  margin-bottom: 0;
}

.job__skills {
  padding: var(--space-xl);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.job__media {
  overflow: hidden;
  border-radius: var(--radius-m);
}

.job__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Compétences sous le texte et la photo, sur toute la largeur : liste sur plusieurs colonnes */
.job__skills--wide {
  margin-top: var(--space-2xl);
}

.job__skills--wide .check-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-m) var(--space-xl);
}

.job__skills-title {
  margin-bottom: var(--space-l);
  color: var(--royal-blue--600);
}

.check-list {
  display: grid;
  gap: var(--space-m);
}

.check-list__item {
  display: flex;
  gap: var(--space-s);
  color: var(--grey--700);
}

.check-list__item strong {
  color: var(--grey--900);
}

.check-list__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--royal-blue--050);
  color: var(--royal-blue--600);
}

/* Sur fond bleu clair, le rond passe en blanc pour rester visible */
:is(.section--soft, .page-header) .check-list__icon {
  background: var(--white);
}

/* --- Formations : sans l'espace réservé au bandeau de réassurance de la homepage --- */
.programs.programs--compact {
  padding-block: var(--space-section);
}

/* --- Les questions des parents (cartes du carrousel) --- */
.info-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-xl);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--700);
  font-size: var(--text-small);
}

.info-card .icon-badge {
  margin-bottom: var(--space-xs);
}

.info-card__title {
  font-size: var(--text-h3);
}

.info-card__list {
  display: grid;
  gap: var(--space-xs);
  padding-left: 1.25rem;
  list-style: disc;
}

.info-card__list li::marker {
  color: var(--royal-blue--600);
}

/* --- Étapes numérotées --- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-l);
  counter-reset: step;
}

.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-l);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--700);
  font-size: var(--text-small);
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--royal-blue--600);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Numéros d'étape : même halo pulsant que les icônes rondes, décalé d'une étape à l'autre */
.steps__item::before {
  animation: icon-halo 3s var(--ease-out) infinite;
}

.steps__item:nth-child(2)::before { animation-delay: 0.3s; }
.steps__item:nth-child(3)::before { animation-delay: 0.6s; }
.steps__item:nth-child(4)::before { animation-delay: 0.9s; }
.steps__item:nth-child(5)::before { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .steps__item::before {
    animation: none;
  }
}

.steps__title {
  font-size: 1.125rem;
}

.steps__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .steps__link:hover {
    text-decoration: underline;
  }
}

/* --- Frise chronologique --- */
.history__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
}

.history__media {
  margin-top: var(--space-xl);
  overflow: hidden;
  border-radius: var(--radius-m);
}

.history__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline {
  display: grid;
  gap: var(--space-xl);
  border-left: 2px solid var(--royal-blue--100);
}

.timeline__item {
  position: relative;
  display: grid;
  gap: var(--space-xs);
  padding-left: var(--space-xl);
  color: var(--grey--700);
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--royal-blue--600);
  box-shadow: 0 0 0 4px var(--white);
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--royal-blue--600);
}

.timeline__title {
  font-size: var(--text-h3);
}

/* --- Bloc d'appel final en dégradé --- */
.cta-band {
  display: grid;
  justify-items: center;
  gap: var(--space-m);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-m);
  background: var(--gradient-signature);
  color: var(--white);
  text-align: center;
}

.cta-band__title {
  color: var(--white);
}

.cta-band__text {
  max-width: 600px;
  font-size: var(--text-large);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
  margin-top: var(--space-s);
}

@media (max-width: 1200px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .job__inner,
  .history__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

}

@media (max-width: 767px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: var(--space-2xl) var(--space-l);
  }
}

@media (max-width: 479px) {
  .page-header__actions .button,
  .cta-band__actions .button {
    width: 100%;
  }

  .job__skills,
  .info-card {
    padding: var(--space-l);
  }
}

/* ==========================================================================
   Onglets par profil, au-dessus du menu principal (Étudiants, Parents, Professionnels)
   ========================================================================== */
.audience-nav {
  background: var(--grey--100);
  font-size: var(--text-small);
}

.audience-nav__list {
  display: flex;
  gap: var(--space-2xs);
}

.audience-nav__link {
  display: block;
  padding: var(--space-xs) var(--space-m);
  color: var(--grey--900);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

@media (hover: hover) {
  .audience-nav__link:hover {
    color: var(--royal-blue--600);
  }
}

/* Onglet de la page en cours : relié visuellement à l'en-tête blanc */
.audience-nav__link[aria-current="page"],
.audience-nav__link.is-active {
  background: var(--white);
  color: var(--royal-blue--600);
}

.audience-nav__link:focus-visible {
  outline-offset: -2px;
}

@media (max-width: 479px) {
  /* 4 onglets sur un petit écran : plus serrés, et défilement horizontal en dernier recours */
  .audience-nav .container {
    padding-inline: 0;
  }

  .audience-nav__list {
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .audience-nav__link {
    padding-inline: var(--space-xs);
    font-size: var(--text-xsmall);
    white-space: nowrap;
  }
}

/* ==========================================================================
   Fiche formation (gabarit commun Bachelor / Mastère)
   ========================================================================== */
/* --- En-tête : fond de la carte formation, texte à gauche, photo à droite --- */
.formation-hero {
  padding-block: var(--space-2xl) var(--space-3xl);
  color: var(--white);
}

.formation-hero--bachelor {
  background: var(--gradient-bachelor);
}

.formation-hero--mastere {
  background: var(--gradient-mastere);
}

.formation-hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.formation-hero__content > * + * {
  margin-top: var(--space-m);
}

.formation-hero__title {
  color: var(--white);
}

.formation-hero__hook {
  font-size: var(--text-large);
  font-weight: 500;
  line-height: 1.45;
}

.formation-hero__content p:not([class]) {
  color: rgba(255, 255, 255, 0.88);
}

.formation-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  padding-top: var(--space-s);
}

.formation-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.breadcrumb--on-dark .breadcrumb__list,
.breadcrumb--on-dark .breadcrumb__link {
  color: var(--royal-blue--100);
}

.breadcrumb--on-dark .breadcrumb__item:not(:last-child)::after {
  color: var(--royal-blue--200);
}

.breadcrumb--on-dark .breadcrumb__link:focus-visible {
  outline-color: var(--white);
}

/* --- Sommaire de la page, collé sous l'en-tête au défilement --- */
.page-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  border-bottom: 1px solid var(--grey--200);
  background: var(--white);
}

.page-nav__list {
  display: flex;
  gap: var(--space-l);
  overflow-x: auto;
  scrollbar-width: none;
}

.page-nav__link {
  display: block;
  padding-block: var(--space-m);
  border-bottom: 2px solid transparent;
  color: var(--grey--700);
  font-size: var(--text-small);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

@media (hover: hover) {
  .page-nav__link:hover {
    border-bottom-color: var(--royal-blue--600);
    color: var(--royal-blue--600);
  }
}

.page-nav__link:focus-visible {
  outline-offset: -2px;
}

/* --- Pourquoi : titre à gauche, texte à droite --- */
.formation-why__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
}

.formation-why__media {
  margin-top: var(--space-xl);
  overflow: hidden;
  border-radius: var(--radius-m);
}

.formation-why__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.formation-why__text {
  display: grid;
  gap: var(--space-m);
  font-size: var(--text-large);
  line-height: 1.5;
  color: var(--grey--700);
}

.formation-why__highlight {
  padding-left: var(--space-m);
  border-left: 3px solid var(--royal-blue--600);
  font-weight: 600;
  color: var(--grey--900);
}

/* --- Compétences de sortie et projets --- */
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3xl);
  align-items: start;
}

.outcomes__title {
  margin-bottom: var(--space-l);
  font-size: var(--text-h3);
}

/* Même taille que les titres de section (H2 standard) */
.outcomes__title--section {
  font-size: var(--text-h2);
}

.outcomes__block--card {
  padding: var(--space-xl);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.mission-list {
  display: grid;
  gap: var(--space-s);
}

.mission-list__item {
  position: relative;
  padding: var(--space-s) var(--space-m) var(--space-s) 2.5rem;
  border-radius: var(--radius-s);
  background: var(--royal-blue--050);
  color: var(--grey--900);
  font-weight: 500;
}

.mission-list__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--space-m);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-signature);
  transform: translateY(-50%);
}

/* --- Programme : une carte par année --- */
.curriculum__year {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-xl);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--700);
  font-size: var(--text-small);
}

/* Carte du programme avec visuel en haut, bord à bord */
.curriculum__year--media {
  overflow: hidden;
  padding-top: 0;
}

.curriculum__media {
  margin: 0 calc(var(--space-xl) * -1) var(--space-xs);
}

.curriculum__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Visuel qui occupe une colonne libre du programme (ex. Mastère sur 2 ans) */
.curriculum__visual {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius-m);
}

.curriculum__visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .curriculum__visual {
    display: none;
  }
}

.curriculum__step {
  display: inline-block;
  margin-bottom: var(--space-s);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--royal-blue--600);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.curriculum__title .curriculum__step {
  display: table;
}

.curriculum__title {
  font-size: var(--text-h3);
}

.curriculum__label {
  margin-top: var(--space-xs);
  font-weight: 600;
  color: var(--grey--900);
}

.curriculum__modules {
  display: grid;
  gap: var(--space-xs);
}

/* Puce : petite coche bleue (masque SVG coloré par la couleur de fond) */
.curriculum__modules li {
  position: relative;
  padding-left: 1.5rem;
}

.curriculum__modules li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: var(--royal-blue--600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Bouton « Afficher plus » : inutile sur grand écran, où la liste est entière */
.collapse-toggle {
  display: none;
  justify-self: start;
  align-self: flex-start;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--royal-blue--600);
  font-weight: 600;
  cursor: pointer;
}

@media (hover: hover) {
  .collapse-toggle:hover {
    text-decoration: underline;
  }
}

@media (max-width: 767px) {
  .collapse-toggle {
    display: inline-block;
  }

  /* Liste repliée : deux modules visibles, le second en partie masqué par un fondu */
  .js [data-collapsible]:not(.is-expanded) > li:nth-child(n + 3) {
    display: none;
  }

  .js [data-collapsible]:not(.is-expanded) {
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
    mask-image: linear-gradient(to bottom, #000 45%, transparent);
  }

  /* Le projet fil rouge suit la liste au lieu d'être repoussé en bas de carte */
  .curriculum__project {
    margin-top: var(--space-xs);
  }
}

.curriculum__project {
  margin-top: auto;
  padding: var(--space-m);
  border-radius: var(--radius-s);
  background: var(--royal-blue--050);
}

.curriculum__project .curriculum__label {
  margin-top: 0;
}

/* --- Métiers visés et poursuite d'études --- */
.careers-next {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.careers-next__media {
  overflow: hidden;
  border-radius: var(--radius-m);
}

.careers-next__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.careers-next__jobs > * + * {
  margin-top: var(--space-m);
}

.careers-next__label {
  font-weight: 600;
  color: var(--grey--900);
}

/* Métiers visés : pastilles violet clair, comme celles des compétences */
.careers-next .pill {
  border-color: transparent;
  background: var(--thematic-data--100);
  box-shadow: none;
  color: var(--royal-blue--900);
}

.next-step {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
  padding: var(--space-xl);
  border-radius: var(--radius-m);
  background: var(--gradient-mastere);
  color: rgba(255, 255, 255, 0.88);
}

/* Poursuite d'études sur toute la largeur : texte à gauche, bouton à droite */
.next-step--wide {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-l) var(--space-2xl);
  margin-top: var(--space-2xl);
}

.next-step__content {
  display: grid;
  gap: var(--space-s);
}

.next-step--wide .next-step__cta {
  margin-top: 0;
}

@media (max-width: 767px) {
  .next-step--wide {
    grid-template-columns: 1fr;
  }
}

.next-step__eyebrow {
  justify-self: start;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--thematic-data--700);
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.next-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.next-step__cta {
  margin-top: var(--space-s);
}

.next-step .button--white {
  color: var(--thematic-data--700);
}

/* --- Informations pratiques : bloc compact (mentions à caractère légal), deux colonnes de lignes --- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-2xl);
  padding: var(--space-s) var(--space-xl);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  font-size: var(--text-small);
  line-height: 1.5;
}

.facts__item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: var(--space-m);
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--grey--200);
}

.facts__item--wide {
  grid-column: 1 / -1;
}

.facts__item:last-child {
  border-bottom: 0;
}

/* Sur deux colonnes, la dernière ligne compte deux éléments */
@media (min-width: 992px) {
  .facts__item:nth-last-child(2):not(.facts__item--wide):has(+ .facts__item:last-child:not(.facts__item--wide)) {
    border-bottom: 0;
  }
}

.facts__term {
  font-weight: 600;
  color: var(--grey--900);
}

.facts__value {
  color: var(--grey--700);
}

.facts__value a {
  font-weight: 600;
}

/* Prochaine rentrée mise en avant */
.facts__item--highlight .facts__value {
  font-weight: 600;
  color: var(--royal-blue--600);
}

/* Bloc d'appel compact, intégré sous les étapes d'admission */
/* Fiches formations : bloc Candidater dans les tons violets */
.cta-band--compact {
  background: linear-gradient(120deg, var(--thematic-data--700) 0%, var(--thematic-data--600) 50%, var(--thematic-data--500) 100%);
  gap: var(--space-s);
  margin-top: var(--space-xl);
  padding-block: var(--space-xl);
}

.cta-band--compact .cta-band__title {
  font-size: var(--text-h3);
  line-height: 1.35;
}

/* Sur le bandeau déjà en dégradé, le surtitre reste blanc */
.cta-band .cta-band__eyebrow {
  margin-bottom: 0;
  background: none;
  color: var(--white);
  -webkit-text-fill-color: currentColor;
}

/* --- Financement : frais à gauche, montants à droite, puis les aides --- */
.financing__fees {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-xl) var(--space-3xl);
  align-items: start;
}

.financing__text {
  display: grid;
  gap: var(--space-m);
  color: var(--grey--700);
  line-height: 1.6;
}

/* Titre dans la colonne de gauche : les tarifs s'alignent sur le surtitre */
.financing__heading {
  margin-bottom: var(--space-s);
}

.price-list {
  display: grid;
  gap: var(--space-s);
}

.price-card {
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--white);
}

.price-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-m);
  padding: var(--space-m) var(--space-l);
  background: var(--royal-blue--600);
  color: var(--white);
}

.price-card__city {
  font-weight: 600;
}

.price-card__total {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-card__unit {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
}

.price-card__details {
  padding-inline: var(--space-l);
}

.price-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-m);
  padding-block: var(--space-m);
}

/* Trait de séparation entre les lignes d'un même bloc */
.price-list__item + .price-list__item {
  border-top: 1px solid var(--grey--200);
}

.price-list__label {
  color: var(--grey--700);
  font-size: var(--text-small);
}

.price-list__value {
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Encadré d'information sous les tarifs (ex. prise en charge en alternance) : couleur distincte */
.price-note {
  display: flex;
  gap: var(--space-s);
  padding: var(--space-m) var(--space-l);
  border: 1px solid var(--thematic-data--500);
  border-radius: var(--radius-m);
  background: var(--thematic-data--100);
  color: var(--grey--900);
  font-size: var(--text-small);
  line-height: 1.5;
}

.price-note__icon {
  flex-shrink: 0;
  color: var(--thematic-data--600);
}

.price-note__highlight {
  color: var(--thematic-data--700);
}

.financing__header {
  margin-top: var(--space-2xl);
}

.financing__subtitle {
  /* Entre le H3 standard et le H2 : 24 → 28 px */
  font-size: clamp(1.5rem, 1.396rem + 0.442vw, 1.75rem);
  color: var(--royal-blue--600);
}

.aid-card {
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  padding: var(--space-l);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--700);
  font-size: var(--text-small);
}

.aid-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey--900);
}

@media (max-width: 991px) {
  .financing__fees {
    grid-template-columns: 1fr;
  }
}

/* En-tête de section au plus près du bloc qui suit */
.section__header--tight {
  margin-bottom: var(--space-m);
}

/* --- Lien vers le dispositif handicap, sous les formations et le programme --- */
.handicap-note {
  margin-top: var(--space-l);
  font-size: var(--text-small);
}

.handicap-note--center {
  text-align: center;
}

.handicap-note__link {
  color: var(--royal-blue--600);
  font-weight: 500;
}

/* --- Bandeau photo pleine largeur, entre deux sections --- */
.photo-band {
  height: 200px;
  overflow: hidden;
}

.photo-band__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Admission : accroche + texte, puis les 4 étapes --- */
.admission__header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl) var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.admission__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-m);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--thematic-data--100);
  color: var(--royal-blue--900);
  font-size: var(--text-small);
  font-weight: 600;
}

.admission__tag svg {
  color: var(--thematic-data--700);
}

/* Admission : numéros d'étape en violet */
.admission .steps__item::before {
  --halo-color: var(--thematic-data--500);
  background: var(--thematic-data--600);
}

.admission__intro {
  color: var(--grey--700);
  line-height: 1.6;
}

.steps.steps--four {
  grid-template-columns: repeat(4, 1fr);
}

.steps--four .steps__item::before {
  content: counter(step, decimal-leading-zero);
}

.steps--bordered .steps__item {
  border: 1px solid var(--grey--200);
}

@media (max-width: 1200px) {
  .steps.steps--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .admission__header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .steps.steps--four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .formation-hero__inner,
  .formation-why__inner,
  .outcomes,
  .careers-next {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .formation-hero__media {
    display: none;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .facts {
    padding-inline: var(--space-l);
  }

  .facts__item {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }
}

@media (max-width: 479px) {
  .formation-hero__actions .button {
    width: 100%;
  }

  .curriculum__year,
  .outcomes__block--card,
  .next-step {
    padding: var(--space-l);
  }
}

/* ==========================================================================
   Page campus (gabarit /campus/<ville>/)
   ========================================================================== */
/* --- En-tête : même principe que la homepage (photo en fond, points forts à cheval) --- */
.hero--page .breadcrumb {
  margin-bottom: var(--space-l);
}

/* Étiquette en pastille (ex. « Espace parents ») au-dessus d'un titre */
.label-pill {
  display: inline-block;
  margin-bottom: var(--space-m);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--royal-blue--600);
  color: var(--white);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

/* Section qui suit un bandeau à cheval : un peu plus d'air en haut */
.section--after-trust {
  padding-top: calc(var(--space-section) + var(--space-xl));
}

/* --- Situation : texte et adresse à gauche, carte ou photo à droite --- */
.campus-location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.campus-location__text > * + * {
  margin-top: var(--space-m);
}

.campus-location__text .eyebrow {
  margin-bottom: 0;
}

.campus-location__text p:not(.eyebrow) {
  color: var(--grey--700);
  line-height: 1.6;
}

.campus-location__address {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
  border-radius: var(--radius-m);
  background: var(--thematic-data--100);
  color: var(--grey--900);
  font-style: normal;
}

/* Rond de l'icône en blanc : le fond violet clair de l'encadré le rendrait invisible */
.campus-location__address .icon-badge {
  --halo-color: var(--thematic-data--500);
  background: var(--white);
  color: var(--thematic-data--700);
}

.campus-location__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
}

/* --- Équipement : texte à gauche, carte de configuration à droite --- */
.equipment {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.equipment__text > * + * {
  margin-top: var(--space-m);
}

.equipment__text .eyebrow {
  margin-bottom: 0;
}

.equipment__text p:not(.text-size-large):not(.eyebrow) {
  color: var(--grey--700);
  line-height: 1.6;
}

.equipment__card {
  overflow: hidden;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.equipment__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.equipment__title {
  margin: var(--space-l) var(--space-l) var(--space-m);
}

.equipment__card .check-list {
  padding: 0 var(--space-l) var(--space-l);
}

/* --- Campus en ligne --- */
.online-campus {
  display: flex;
  gap: var(--space-l);
  align-items: flex-start;
  padding: var(--space-xl);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--700);
  line-height: 1.6;
}

.online-campus__title {
  margin-bottom: var(--space-s);
  font-size: var(--text-h3);
}

/* --- Autres campus : sous l'adresse, en petit --- */
.other-campus__title {
  margin-bottom: var(--space-s);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--royal-blue--600);
}

.other-campus {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.other-campus__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-s) var(--space-l);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .other-campus__link:hover {
    border-color: var(--royal-blue--300);
    box-shadow: var(--shadow-hover);
    color: var(--royal-blue--600);
  }
}

@media (max-width: 991px) {
  .campus-location__inner,
  .equipment {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .online-campus {
    flex-direction: column;
    padding: var(--space-l);
  }
}

/* ==========================================================================
   Page Employabilité
   ========================================================================== */
/* Bandeau de 3 atouts, hors en-tête */
.trust.trust--stacked {
  grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--shadow-soft);
}

.outcomes__cta {
  margin-top: var(--space-l);
}

/* Deux colonnes égales (stages / alternance, immersion…) */
.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
}

.stage-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-xl);
  border-radius: var(--radius-m);
  background: var(--gradient-bachelor);
  color: rgba(255, 255, 255, 0.88);
}

.stage-card--mastere {
  background: var(--gradient-mastere);
}

.stage-card__label {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--white);
}

.stage-card__title {
  font-size: var(--text-h3);
  color: var(--white);
}

.stage-card__list {
  display: grid;
  gap: var(--space-s);
}

.stage-card__item {
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.1);
}

.stage-card__item dt {
  font-weight: 600;
  color: var(--white);
}

.stage-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: auto;
  padding-top: var(--space-s);
  color: var(--white);
  font-weight: 600;
}

@media (hover: hover) {
  .stage-card__link:hover {
    color: var(--white);
  }
}

.stage-card a:focus-visible {
  outline-color: var(--white);
}

.info-block {
  display: flex;
  gap: var(--space-l);
  align-items: flex-start;
  color: var(--grey--700);
  line-height: 1.6;
}

/* Encadré sur toute la largeur (ex. « Trouver un stage ») */
.info-block--boxed {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
}

.info-block__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-s);
  font-weight: 600;
}

.info-block__title {
  margin-bottom: var(--space-xs);
  font-size: var(--text-h3);
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
}

.event-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-card__body {
  display: grid;
  gap: var(--space-s);
  padding: var(--space-xl);
  color: var(--grey--700);
  font-size: var(--text-small);
  line-height: 1.6;
}

.event-card__title {
  font-size: var(--text-h3);
}

/* Équipe : photos et fonctions */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-l);
}

.person-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
}

.person-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.person-card__name {
  padding: var(--space-m) var(--space-l) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--grey--900);
}

.person-card__role {
  padding: var(--space-2xs) var(--space-l) var(--space-l);
  font-size: var(--text-small);
  color: var(--grey--700);
}

.mentor__role {
  font-weight: 600;
  color: var(--royal-blue--600);
}

@media (max-width: 991px) {
  .trust.trust--stacked {
    grid-template-columns: 1fr;
  }

  .duo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Blog : liste des articles et gabarit d'article
   ========================================================================== */
.blog__heading {
  font-size: var(--text-h3);
}

.blog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.blog-filter {
  min-height: 36px;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--royal-blue--200);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--grey--900);
  font-size: var(--text-small);
  font-weight: 500;
  cursor: pointer;
}

.blog-filter[aria-pressed="true"] {
  border-color: var(--royal-blue--600);
  background: var(--royal-blue--600);
  color: var(--white);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.blog__heading + .post-grid {
  margin-top: var(--space-l);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.post-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), var(--shadow-hover);
}

@media (hover: hover) {
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft), var(--shadow-hover);
  }
}

.post-card[hidden] {
  display: none;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__body {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-l);
}

.post-card__tag {
  justify-self: start;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--royal-blue--050);
  color: var(--royal-blue--900);
  font-size: var(--text-xsmall);
  font-weight: 600;
}

.post-card__title {
  font-size: 1.125rem;
}

/* Toute la carte est cliquable via le lien du titre */
.post-card__link {
  color: var(--grey--900);
  text-decoration: none;
}

.post-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (hover: hover) {
  .post-card__link:hover {
    color: var(--royal-blue--600);
  }
}

.post-card__excerpt {
  color: var(--grey--700);
  font-size: var(--text-small);
  line-height: 1.5;
}

/* Article à la une : image à gauche, texte à droite */
.post-grid--featured {
  grid-template-columns: 1fr;
}

.post-card--featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.post-card--featured .post-card__image {
  height: 100%;
}

.post-card--featured .post-card__body {
  align-content: center;
  padding: var(--space-2xl);
}

.post-card--featured .post-card__title {
  font-size: var(--text-h2);
}

/* --- Gabarit d'article : sommaire collant à gauche, texte à droite --- */
.article-header__title {
  max-width: 900px;
}

.article-header__meta {
  margin-top: var(--space-m);
  color: var(--grey--700);
  font-size: var(--text-small);
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: start;
  padding-block: var(--space-section);
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + var(--space-l));
  display: grid;
  gap: var(--space-l);
}

.article-toc {
  padding: var(--space-l);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
}

.article-toc__title {
  margin-bottom: var(--space-s);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--grey--900);
}

.article-toc__list {
  display: grid;
  gap: var(--space-2xs);
  counter-reset: toc;
}

.article-toc__link {
  display: block;
  padding: var(--space-xs) var(--space-s);
  border-left: 2px solid var(--grey--200);
  color: var(--grey--700);
  font-size: var(--text-small);
  line-height: 1.4;
  text-decoration: none;
}

.article-toc__link[aria-current="true"] {
  border-left-color: var(--royal-blue--600);
  color: var(--royal-blue--600);
}

@media (hover: hover) {
  .article-toc__link:hover {
    border-left-color: var(--royal-blue--600);
    color: var(--royal-blue--600);
  }
}

.article-toc__link[aria-current="true"] {
  font-weight: 600;
  background: var(--royal-blue--050);
}

.article-promo {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
  padding: var(--space-l);
  border-radius: var(--radius-m);
  background: var(--gradient-bachelor);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-small);
}

.article-promo__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
}

.article-promo a:focus-visible {
  outline-color: var(--white);
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  scroll-margin-top: calc(var(--header-height) + var(--space-l));
}

.article-body__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.article-body__lead {
  font-size: var(--text-large);
  line-height: 1.5;
  color: var(--grey--900);
}

.article-callout {
  padding: var(--space-s) var(--space-m);
  border-left: 3px solid var(--royal-blue--600);
  border-radius: var(--radius-s);
  background: var(--royal-blue--050);
  color: var(--grey--900);
  font-weight: 500;
}

.related__title {
  margin-bottom: var(--space-l);
}

@media (max-width: 991px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card--featured {
    grid-template-columns: 1fr;
  }

  .post-card--featured .post-card__body {
    padding: var(--space-l);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* En une colonne, le sommaire n'est plus collant et passe au-dessus du texte */
  .article-aside {
    position: static;
  }
}

@media (max-width: 767px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

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

/* Employabilité : visuel sous le texte de la pédagogie, cartes en carrousel */
.outcomes__media {
  margin-top: var(--space-xl);
  overflow: hidden;
  border-radius: var(--radius-m);
}

.outcomes__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-card,
.person-card {
  scroll-snap-align: start;
}

/* Trait de séparation entre deux sections sur le même fond */
.section-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--grey--200);
}

/* ==========================================================================
   Pages Stages (/stages/ et sous-pages)
   ========================================================================== */
/* Infos clés dans l'en-tête : où, quand, durée, prix */
.stage-facts {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-l);
}

.stage-facts__item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  color: var(--grey--900);
}

/* Trois blocs : public, objectif, programme */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.feature-card {
  display: grid;
  align-content: start;
  gap: var(--space-s);
  padding: var(--space-xl);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  color: var(--grey--700);
  line-height: 1.6;
}

/* Intitulés sans niveau de titre : ils précèdent le titre de la section */
.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tracking-heading);
  color: var(--grey--900);
}

/* Les 4 stages découverte par niveau, en carrousel : visuel en haut, texte dessous */
.stages-quote__divider {
  margin-top: var(--space-3xl);
}

.level-carousel__header {
  margin-top: var(--space-3xl);
}

/* En tête de section (page du stage IA) : pas d'espace supplémentaire */
.container > .level-carousel__header:first-child {
  margin-top: 0;
}

.level-carousel__header > div:first-child {
  flex: 1 1 20rem;
  max-width: 52rem;
}

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  scroll-snap-align: start;
  font-size: var(--text-small);
  color: var(--grey--700);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.level-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.level-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m) var(--space-l) var(--space-l);
  line-height: 1.4;
}

.level-card__body .level-card__title {
  margin-block: var(--space-2xs);
}

.level-card__body .level-card__more {
  padding-top: var(--space-s);
}

.level-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

@media (hover: hover) {
  .level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
}

.level-card__badge {
  justify-self: start;
  align-self: flex-start;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--royal-blue--600);
  color: var(--white);
  font-size: var(--text-xsmall);
  font-weight: 600;
  text-transform: uppercase;
}

.level-card__title {
  font-size: var(--text-h3);
}

/* Toute la carte est cliquable via le lien du titre */
.level-card__link,
.offer-card__link {
  color: inherit;
  text-decoration: none;
}

.level-card__link::after,
.offer-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.level-card__meta {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
}

.level-card__meta svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--royal-blue--600);
}

.level-card__more,
.offer-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: auto;
  padding-top: var(--space-xs);
  color: var(--royal-blue--600);
  font-weight: 600;
}

.stages-quote {
  margin: var(--space-2xl) auto 0;
  max-width: 1120px;
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
  color: var(--royal-blue--600);
}

/* Stages pratiques payants */
.paid-stages__header {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-xl) var(--space-3xl);
  align-items: end;
}

.paid-stages__price {
  padding: var(--space-l);
  border-radius: var(--radius-m);
  background: var(--royal-blue--600);
  color: var(--white);
}

.paid-stages__price-label {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.paid-stages__price-value {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
}

.paid-stages__price-value span {
  font-size: var(--text-small);
  font-weight: 500;
}

.paid-stages__sessions {
  font-size: var(--text-small);
}

.paid-stages__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
  margin: var(--space-2xl) 0 var(--space-xs);
}

.paid-stages__select {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--royal-blue--600);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  overflow: hidden;
  scroll-snap-align: start;
  padding: var(--space-l);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  font-size: var(--text-small);
  color: var(--grey--700);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.offer-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), var(--shadow-hover);
}

@media (hover: hover) {
  .offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft), var(--shadow-hover);
  }
}

/* Cartes à visuel (carrousel des stages pratiques) : photo en haut, texte dessous */
.offer-card:has(> .offer-card__media) {
  gap: 0;
  padding: 0;
}

.offer-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.offer-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-l);
}

/* Le stage IA de Jedha AI School, mis en avant en premier, dans des tons violets */
.offer-card--featured {
  /* Pas de bordure : le dégradé violet dépassait autour du visuel */
  border: 0;
  background: var(--gradient-mastere);
  color: rgba(255, 255, 255, 0.9);
}

@media (hover: hover) {
  .offer-card--featured .offer-card__link:hover {
    color: var(--white);
    text-decoration: underline;
  }
}

.offer-card--featured .offer-card__title,
.offer-card--featured .offer-card__more,
.offer-card--featured .offer-card__meta svg {
  color: var(--white);
}

.offer-card--featured a:focus-visible {
  outline-color: var(--white);
}

.offer-card__badge {
  align-self: flex-start;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--thematic-data--700);
  font-size: var(--text-xsmall);
  font-weight: 600;
  text-transform: uppercase;
}

.offer-card__title {
  font-size: 1.125rem;
  color: var(--grey--900);
}

.offer-card__tags {
  font-weight: 500;
}

.offer-card__meta {
  display: grid;
  gap: var(--space-2xs);
}

.offer-card__meta li {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
}

.offer-card__meta strong {
  font-weight: 600;
}

.offer-card__meta svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--royal-blue--600);
}

/* Qui sommes-nous et campus en images */
.stages-about__intro {
  color: var(--grey--700);
  line-height: 1.6;
}

.stages-about__intro .eyebrow {
  margin-bottom: var(--space-s);
}

.stages-about__intro h2 {
  margin-bottom: var(--space-m);
}

.stages-about__subtitle {
  margin-bottom: var(--space-s);
  color: var(--royal-blue--600);
}

.stages-about__gallery-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
  margin: var(--space-2xl) 0 var(--space-xs);
}

/* Carrousel de photos des campus (9 visuels) */
.campus-gallery__item {
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--radius-m);
}

.campus-gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Pages par niveau : adresses, encadrants, autres stages */
.stage-text {
  color: var(--grey--700);
  line-height: 1.6;
}

.stage-text + .stage-text {
  margin-top: var(--space-m);
}

.stage-limit {
  margin-top: var(--space-xs);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--royal-blue--600);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.address-card {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
  padding: var(--space-l);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--700);
  font-size: var(--text-small);
  line-height: 1.6;
}

.address-card .icon-badge {
  background: var(--royal-blue--050);
}

.address-card__title {
  margin-bottom: var(--space-2xs);
  font-size: 1.125rem;
}

.address-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-xs);
  font-weight: 600;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
}

.other-stages__title {
  margin-bottom: var(--space-l);
  font-size: var(--text-h3);
}

.other-stages__block {
  margin-top: var(--space-2xl);
}

@media (max-width: 1200px) {
  .offer-grid,
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .feature-grid,
  .address-grid {
    grid-template-columns: 1fr;
  }

  .paid-stages__header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .offer-grid,
  .coach-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .level-card,
  .offer-card {
    transition: none;
  }
}

/* --- Formulaire de contact des stages (champs du formulaire de documentation) --- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl) var(--space-3xl);
  align-items: start;
}

.contact-panel__lead {
  margin-top: var(--space-m);
  font-size: var(--text-large);
  font-weight: 500;
  color: var(--grey--900);
}

.contact-panel__media {
  margin-top: var(--space-xl);
  overflow: hidden;
  border-radius: var(--radius-m);
}

.contact-panel__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-form__fields {
  display: grid;
  gap: var(--space-m);
}

.contact-form__legal,
.contact-form__help {
  font-size: var(--text-small);
  color: var(--grey--700);
}

.contact-form__submit {
  justify-self: start;
}

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

/* --- Réservation du stage IA : lieu, sessions (cartes à cocher) et coordonnées --- */
.reservation .section__header {
  max-width: 1040px;
}

.reservation__form {
  max-width: 960px;
  margin-inline: auto;
}

.reservation__fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.reservation__fieldset legend {
  margin-bottom: var(--space-s);
  padding: 0;
}

/* Lieux : pilules (boutons radio), la formation en ligne à part, à droite */
.place-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.place-pill {
  position: relative;
  cursor: pointer;
}

.place-pill__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.place-pill__label {
  display: inline-block;
  padding: 0.375rem 1rem;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--royal-blue--600);
  font-weight: 600;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

@media (hover: hover) {
  .place-pill:hover .place-pill__label {
    background: var(--royal-blue--050);
  }
}

.place-pill__input:checked + .place-pill__label {
  border-color: transparent;
  background: var(--gradient-signature);
  color: var(--white);
}

.place-pill__input:focus-visible + .place-pill__label {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Sessions : cartes cliquables avec case à cocher */
.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-s);
}

.session-card {
  display: grid;
  justify-items: center;
  gap: var(--space-2xs);
  height: 100%;
  padding: var(--space-m) var(--space-s);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
  color: var(--grey--900);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

@media (hover: hover) {
  .session-card:hover {
    border-color: var(--royal-blue--300);
  }
}

.session-card:has(.session-card__input:checked) {
  border-color: var(--royal-blue--600);
  background: var(--royal-blue--050);
}

.session-card:has(.session-card__input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.session-card__month {
  font-weight: 600;
}

.session-card__days {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.1;
}

.session-card__price {
  color: var(--grey--700);
  font-size: var(--text-small);
}

.session-card__input {
  width: 1.25rem;
  height: 1.25rem;
  margin: var(--space-2xs) 0 0;
  accent-color: var(--royal-blue--600);
}

.session-group__empty {
  padding: var(--space-m);
  border: 1px dashed var(--grey--200);
  border-radius: var(--radius-m);
  color: var(--grey--700);
}

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

@media (prefers-reduced-motion: reduce) {
  .place-pill__label,
  .session-card {
    transition: none;
  }
}

/* --- Demande de documentation : aperçu des pages de la brochure --- */
/* Suite directe du formulaire : pas de double espacement entre les deux sections */
.documentation + .doc-preview {
  padding-top: 0;
}

.doc-preview__item {
  scroll-snap-align: start;
}

.doc-preview__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1649 / 1154;
  object-fit: cover;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-s);
}

/* --- Formulaire documentation : étape suivante proposée après l'envoi --- */
.doc-next {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-xl);
}

.doc-next[hidden] {
  display: none;
}

.doc-next .label-pill {
  justify-self: start;
  margin-bottom: 0;
}

.doc-next__title {
  font-size: var(--text-h3);
  line-height: 1.2;
}

.doc-next__text {
  color: var(--grey--700);
}

.doc-next__text strong {
  color: var(--grey--900);
}

.doc-next__list {
  gap: var(--space-s);
}

.doc-next__help {
  color: var(--grey--700);
  font-size: var(--text-small);
  text-align: center;
}

.doc-next__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
}

/* Les flèches passent sous le texte quand la colonne est étroite */
.doc-next__header .doc-next__text {
  flex: 1 1 18rem;
}

.carousel__track.doc-next__track {
  grid-auto-columns: calc((100% - var(--space-m)) / 2);
  gap: var(--space-m);
}

@media (max-width: 479px) {
  .carousel__track.doc-next__track {
    grid-auto-columns: 85%;
  }
}

/* Carte de contenu à découvrir */
.next-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
}

.next-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.next-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-m);
}

.next-card__title {
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

.next-card__text {
  color: var(--grey--700);
  font-size: var(--text-small);
  line-height: 1.5;
}

.next-card__cta {
  align-self: flex-start;
  margin-top: auto;
}

/* --- Candidater : étapes à gauche, formulaire à droite (bloc partagé candidature) --- */
.candidature__inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-2xl);
  align-items: start;
}

.candidature__intro {
  display: grid;
  gap: var(--space-m);
}

.candidature__lead {
  color: var(--grey--700);
  font-size: var(--text-large);
  line-height: 1.5;
}

.candidature__label {
  color: var(--grey--900);
  font-weight: 600;
}

.candidature__steps {
  gap: var(--space-s);
}

.doc-next__back {
  justify-self: start;
}

@media (max-width: 991px) {
  .candidature__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.doc-next:focus {
  outline: none;
}

/* --- Page Candidater : en-tête --- */
.apply-header__season {
  margin-top: var(--space-2xs);
  font-weight: 600;
}

.apply-header__list {
  max-width: 760px;
  margin-top: var(--space-l);
  gap: var(--space-s);
}

.apply-header__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-l);
  margin-top: var(--space-l);
}

.apply-header__footer .rating {
  margin: 0;
}

/* --- Rencontrons-nous : formulaire portes ouvertes / rendez-vous (bloc partagé rencontre) --- */
/* Formulaire sur toute la largeur du conteneur de la page, peu d'espace au-dessus de l'intitulé d'étape */
.rencontre__form {
  padding-top: var(--space-l);
}

/* La confirmation suit directement les étapes : pas de marge en haut */
.rencontre__form .doc-form__success {
  margin-top: 0;
}

.rencontre__form .doc-form__step {
  display: grid;
  gap: var(--space-l);
  margin-top: 0;
}

.rencontre__form .doc-form__step[hidden] {
  display: none;
}

/* Intitulé d'étape dans une pastille, centré */
.rencontre__step-label {
  display: block;
  width: fit-content;
  margin: 0 auto var(--space-m);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-signature);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.rencontre__form .doc-form__field:has([data-meet-situation]),
.rencontre__form [data-meet-child-field] {
  max-width: 480px;
}

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

/* Étape 1 : visuel portes ouvertes à gauche des champs, desktop uniquement */
.rencontre__visual {
  display: none;
}

.rencontre__step-body {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 1201px) {
  /* Seuls le visuel et les champs sont en grille : pastille et boutons restent centrés */
  .rencontre__step-grid {
    display: grid;
    grid-template-columns: 3fr 7fr;
    column-gap: var(--space-3xl);
  }

  /* Le visuel couvre la hauteur des cartes et du select, sans en imposer une */
  .rencontre__visual {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
  }

  .rencontre__visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .rencontre__step--visual .choice-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Deux ou trois options selon le profil : les cartes se partagent la largeur */
.choice-grid.choice-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.choice-grid--three .choice-card[hidden] {
  display: none;
}

.rencontre__step-hint {
  margin: calc(var(--space-s) * -1) 0 var(--space-m);
  color: var(--grey--700);
  font-size: var(--text-small);
  text-align: center;
}

/* Choix sans icône : pastille radio dessinée, sous-titre en capitales */
.choice-card--plain {
  padding-left: 2.75rem;
}

.choice-card__radio {
  position: absolute;
  top: 50%;
  left: var(--space-m);
  width: 18px;
  height: 18px;
  border: 2px solid var(--grey--300);
  border-radius: 50%;
  transform: translateY(-50%);
}

.choice-card:has(.choice-card__input:checked) .choice-card__radio {
  border: 5px solid var(--royal-blue--600);
}

.choice-card__sub--caps {
  color: var(--thematic-data--700);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rencontre__campus {
  max-width: 360px;
}

/* Étape 3 : dates en présentiel et en ligne, côte à côte */
.meet-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.meet-dates__group {
  display: grid;
  align-content: start;
  gap: var(--space-s);
}

.meet-dates__title {
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.place-pill__label--static {
  border-color: transparent;
  display: inline-flex;
  background: var(--gradient-signature);
  color: var(--white);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--space-xs);
}

.date-grid > li[hidden] {
  display: none;
}

.date-card {
  display: grid;
  justify-items: center;
  gap: 0.125rem;
  height: 100%;
  padding: var(--space-s) var(--space-xs);
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-s);
  background: var(--white);
  text-align: center;
  cursor: pointer;
}

@media (hover: hover) {
  .date-card:hover {
    border-color: var(--royal-blue--300);
  }
}

.date-card:has(.date-card__input:checked) {
  border-color: var(--royal-blue--600);
  background: var(--royal-blue--050);
}

.date-card__day {
  color: var(--grey--900);
  font-size: var(--text-small);
  font-weight: 600;
}

.date-card__date {
  color: var(--grey--900);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.date-card__hours {
  color: var(--grey--700);
  font-size: var(--text-xsmall);
}

.date-card__input {
  width: 18px;
  height: 18px;
  margin-top: var(--space-2xs);
  accent-color: var(--royal-blue--600);
}

.rencontre__booking {
  display: grid;
  gap: var(--space-s);
}

.rencontre__booking[hidden] {
  display: none;
}

/* Étape 4 : récapitulatif à gauche, coordonnées à droite */
.meet-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.meet-final__fields {
  display: grid;
  gap: var(--space-m);
}

.meet-final__title {
  margin-bottom: var(--space-s);
  font-size: 1.375rem;
}

.meet-final__list {
  display: grid;
  gap: var(--space-xs);
}

.meet-final__list--center {
  justify-items: center;
}

.meet-final__item {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  color: var(--grey--800);
}

.meet-final__item svg {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--royal-blue--600);
}

@media (max-width: 991px) {
  .meet-dates,
  .meet-final {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }
}


@media (max-width: 991px) {
  .choice-grid.choice-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .choice-grid.choice-grid--five,
  .choice-grid.choice-grid--three {
    grid-template-columns: 1fr;
  }
}

/* --- Rencontrons-nous : les trois formats d'échange --- */
.meet-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}

.meet-format {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--grey--200);
  border-radius: var(--radius-m);
  background: var(--white);
}

.meet-format__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.meet-format__body {
  display: grid;
  align-content: start;
  gap: var(--space-s);
  padding: var(--space-l);
}

.meet-format__body .label-pill {
  justify-self: start;
  margin-bottom: 0;
}

.meet-format__title {
  font-size: 1.375rem;
}

.meet-format__text {
  color: var(--grey--700);
  font-size: var(--text-small);
  line-height: 1.6;
}

.meet-format .check-list {
  gap: var(--space-xs);
  font-size: var(--text-small);
}

.meet-format .check-list__icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 991px) {
  .meet-formats {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }
}

/* --- Rencontrons-nous : aperçus des portes ouvertes --- */
.meet-gallery__item {
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--radius-m);
}

.meet-gallery__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rencontre__intro {
  margin: 0 0 var(--space-xl);
  color: var(--grey--700);
  text-align: center;
}

/* --- En-tête de page avec photo dans une colonne à droite (ex. Candidater) --- */
.page-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.page-header__media {
  overflow: hidden;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-raised);
}

.page-header__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 991px) {
  .page-header__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .page-header__media {
    max-width: 640px;
  }
}

/* Après l'inscription aux portes ouvertes, la carte « Portes ouvertes » n'a plus lieu d'être */
.rencontre [data-discover-card="portes-ouvertes"] {
  display: none;
}

.meet-dates__group[hidden] {
  display: none;
}

/* Portes ouvertes en ligne seulement : un seul groupe de dates, sur toute la largeur */
.meet-dates:has([data-meet-onsite][hidden]) {
  grid-template-columns: 1fr;
}

/* Formulaire pleine largeur : trois cartes « à découvrir » de front sur grand écran */
.rencontre .carousel__track.doc-next__track {
  grid-auto-columns: calc((100% - 2 * var(--space-m)) / 3);
}

@media (max-width: 991px) {
  .rencontre .carousel__track.doc-next__track {
    grid-auto-columns: calc((100% - var(--space-m)) / 2);
  }
}

@media (max-width: 479px) {
  .rencontre .carousel__track.doc-next__track {
    grid-auto-columns: 85%;
  }
}

/* --- Guide des métiers de l'IA (bloc partagé guide-metiers) --- */
.guide-metiers__lead {
  color: var(--grey--700);
  font-size: var(--text-large);
  line-height: 1.5;
}

/* Après l'envoi : formations ou stages, deux cartes côte à côte */
.guide-metiers__formations,
.guide-metiers__stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
}

.guide-metiers__stages [data-discover-card="portes-ouvertes"],
.guide-metiers__stages [data-discover-card="guide"] {
  display: none;
}

.next-card--formation {
  border: 0;
  color: var(--white);
}

.next-card--bachelor {
  background: var(--gradient-bachelor);
}

.next-card--mastere {
  background: var(--gradient-mastere);
}

.next-card--formation .next-card__title,
.next-card--formation .next-card__text {
  color: var(--white);
}

.next-card__link {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .next-card__link:hover {
    text-decoration: underline;
  }
}

.next-card--formation .next-card__cta {
  background: var(--white);
  color: var(--grey--900);
}

@media (max-width: 479px) {
  .guide-metiers__formations,
  .guide-metiers__stages {
    grid-template-columns: 1fr;
  }
}

/* Introduction au-dessus du panneau et du formulaire, sur toute la largeur */
.guide-metiers__intro {
  grid-column: 1 / -1;
  color: var(--grey--700);
  line-height: 1.6;
}
