
:root {
  --red: #C8102E;
  --navy: #0D1B3E;
  --navy-light: #152558;
  --cream: #F8F5F0;
  --white: #ffffff;
  --gray: #6c757d;
  --light-gray: #f4f4f6;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  /* 500 plutôt que 400 : le texte porte mieux, sans le gras franc (700)
     qui, appliqué à des paragraphes entiers, se lit plus mal que le
     normal. Les mots vraiment mis en avant montent à 600 ou 700. */
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

/* Les textes gris — descriptions, légendes, notes — étaient les plus
   pâles : à 500 sur un gris moyen ils restent lisibles de loin. */
.filiere-card p, .fiche-bloc p, .news-card p, .texte-intro,
.carte-candidature p, .parcours-resume, .liste-pieces span,
footer .footer-brand p, .footer-contact-item, footer a {
  font-weight: 500;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(13,27,62,.08);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.navbar-brand img{
  width: 80px;
  height: 80px;
  margin-right: 20px;

}
.navbar-brand .brand-logo {
  width: 52px; height: 52px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-logo i { color: var(--white); font-size: 1.5rem; }
.brand-logo .cross {
  position: absolute; top: 4px; right: 6px;
  color: var(--red); font-size: .95rem; font-weight: 900;
}
.brand-text { line-height: 1.1; }
.brand-text strong { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.2rem; 
  color: var(--navy); 
  letter-spacing: 1px; 
}
.brand-text small { 
  display: block; 
  font-size: .65rem; 
  color: var(--gray); 
  text-transform: uppercase; 
  letter-spacing: .5px; }

.nav-link {
  font-weight: 500; 
  font-size: 1.03rem;
  color: var(--navy) !important;
  padding: .5rem .9rem !important;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--red);
  transition: left .25s, right .25s;
}
.nav-link:hover::after, .nav-link.active::after { left: .9rem; right: .9rem; }
.nav-link.active { color: var(--red) !important; }

.btn-espace {
  background: var(--red); color: var(--white) !important;
  border-radius: 30px; font-weight: 600;
  padding: .45rem 1.2rem !important;
  font-size: 1rem;
  transition: background .2s, transform .15s;
}
.btn-espace:hover { 
  background: #a30d25; 
  transform: translateY(-1px); }
.btn-espace::after { display: none; }
/* Variante contour, pour un second bouton qui ne concurrence pas le premier. */
.btn-espace.outline {
  background: transparent; color: var(--red) !important;
  border: 1px solid var(--red);
}
.btn-espace.outline:hover,
.btn-espace.outline.actif { background: var(--red); color: var(--white) !important; }
/* Les deux boutons restent côte à côte, et passent à la ligne au besoin. */
/* flex-shrink:0 : le menu centré ne doit pas comprimer les boutons au point
   de les faire passer l'un sous l'autre alors qu'il reste de la place. */
.nav-espaces {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; flex-shrink: 0;
}
/* Un libellé coupé en deux lignes casse l'alignement de la barre. */
.navbar-nav .nav-link, .btn-espace { white-space: nowrap; }

/* ── Menu « Informations » ── */
.nav-chevron {
  font-size: .75rem; margin-left: .25rem;
  display: inline-block; transition: transform .2s;
}
.nav-item.dropdown.show .nav-chevron { transform: rotate(180deg); }
.dropdown-infos {
  border: 1px solid #ececf1; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13,27,62,.12);
  padding: .4rem; margin-top: .4rem; min-width: 15rem;
}
.dropdown-infos .dropdown-item {
  display: flex; align-items: center; gap: .65rem;
  border-radius: 8px; padding: .6rem .8rem;
  font-size: 1rem; font-weight: 500; color: var(--navy);
}
.dropdown-infos .dropdown-item i { color: var(--red); font-size: 1rem; }
.dropdown-infos .dropdown-item:hover,
.dropdown-infos .dropdown-item:focus { background: var(--cream); color: var(--red); }
.dropdown-infos .dropdown-item.actif { color: var(--red); font-weight: 600; }

@media (max-width: 991.98px) {
  /* Menu replié : le déroulant se pose dans le flux plutôt qu'en surcouche,
     sinon il recouvre les entrées suivantes au lieu de les décaler. */
  .dropdown-infos {
    position: static; border: 0; box-shadow: none;
    margin: 0 0 0 .6rem; padding: 0; min-width: 0;
  }
}
/* Les libellés ne se coupent pas et ne se compriment pas : passé une
   certaine largeur de menu, la barre doit donc pouvoir passer à la ligne,
   faute de quoi elle déborde et fait défiler toute la page en travers.
   Les deux niveaux comptent : « navbar-collapse » fait descendre les
   boutons sous le menu, et « navbar-nav » laisse les entrées du menu se
   répartir sur plusieurs rangées. Sans la seconde règle, la liste reste
   sur une rangée trop large — c'est le cas entre 992 et 1180 px, où le
   conteneur se resserre alors que les sept entrées sont toujours là. */
.navbar-collapse { flex-wrap: wrap; row-gap: .5rem; }
.navbar-nav { flex-wrap: wrap; justify-content: center; row-gap: .25rem; }
@media (max-width: 991.98px) {
  /* Menu déplié sur mobile : les boutons prennent toute la largeur. */
  .nav-espaces { width: 100%; margin-top: .6rem; }
  .nav-espaces .btn-espace { flex: 1 1 100%; text-align: center; }
}

/* ── HERO ── */
.hero {
    background: var(--navy);
    min-height: 560px;
    position: relative;
    overflow: hidden;
    display: flex; 
    align-items: center;
    }

/* Diapositives du hero — fondu enchaîné entre plusieurs images */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slides::after {
  content: '';
  position: absolute; inset: 0;
  /* background: linear-gradient(135deg, rgba(13,27,62,.82) 0%, rgba(13,27,62,.55) 55%, rgba(13,27,62,.35) 100%); */
}

/* .hero::before {
  content: '';
  position: absolute; 
  top: 0;
   right: 0;
  width: 45%; height: 100%;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .80;
  z-index: 1;
} */
.hero > .container { 
  position: relative; 
  z-index: 2; 
}
/* .hero-red-accent {
  position: absolute; 
  top: -60px; 
  right: 0;
  width: 220px; 
  height: 340px;
  background: var(--red);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .85;
  z-index: 1;
} */
.hero-img {
  position: absolute; right: 0; bottom: 0;
  width: 55%;
  height: 95%;
  object-fit: cover;
  opacity: .35;
  mix-blend-mode: luminosity;
}
.hero-content { 
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
}
.hero-eyebrow {
  font-size: .93rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: .8rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  padding-left: 30px;
  color: var(--white); line-height: 1.15; margin-bottom: 1rem;
}
.hero h1 span {
   color: var(--red); 
  }
.hero p { 
  color: rgba(255,255,255,.75); 
  font-size: 1.1rem;
   max-width: 440px; 
   line-height: 1.7;
   }

.btn-red {
  background: var(--red); color: var(--white);
  border: none; border-radius: 30px;
  padding: .7rem 1.6rem; font-weight: 600; font-size: 1.05rem;
  transition: background .2s, transform .15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.btn-red:hover { 
  background: #a30d25; 
  color: var(--white); 
  transform: translateY(-2px); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 30px; padding: .68rem 1.4rem;
  font-weight: 600; font-size: 1.05rem;
  transition: border-color .2s, background .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

/* Hero quick links card */
.hero-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  position: relative; z-index: 3;
}
.hero-card-item {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer; 
  transition: background .15s;
  text-decoration: none; color: inherit;
}
.hero-card-item:last-child { border-bottom: none; }
.hero-card-item:hover { background: var(--light-gray); }
.hero-card-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-icon i { color: var(--white); font-size: 1.05rem; }
p.hero-card-title { font-weight: 600; font-size: 1.03rem; color: var(--navy); margin: 0; line-height: 1.2; }
p.hero-card-sub { font-size: .87rem; color: var(--gray); margin: 0; }
.hero-card-arrow { margin-left: auto; color: var(--red); font-size: 1.05rem; }

/* Hero badges */
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.8rem; }
.hero-badge { display: flex; align-items: center; gap: .5rem; }
.hero-badge i { color: var(--red); font-size: 1.2rem; }
.hero-badge-title { font-size: .93rem; font-weight: 600; color: var(--white); margin: 0; }
.hero-badge-sub { font-size: .83rem; color: rgba(255,255,255,.55); margin: 0; }

/* ── SECTION HEADERS ── */
.section-eyebrow {
  font-size: .9rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); }
.section-divider {
  width: 48px; height: 3px; background: var(--red);
  border-radius: 2px; margin: .7rem auto 0;
}
.section-divider.left { margin: .7rem 0 0; }

/* ── FILIÈRES ── */
.filieres { background: var(--cream); padding: 80px 0; }
.filiere-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  border: 1px solid #ede9e3;
  /* Colonne flexible : le contenu se répartit et le lien reste collé
     en bas, pour que toutes les cartes d'une même rangée s'alignent. */
  display: flex;
  flex-direction: column;
}
.filiere-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,27,62,.12); }
.filiere-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
}
.filiere-icon.red { background: var(--red); color: var(--white); }
.filiere-icon.navy { background: var(--navy); color: var(--white); }
/* Hauteur de deux lignes réservée au titre : les descriptions démarrent
   toutes à la même hauteur, que le nom tienne sur une ou deux lignes. */
.filiere-card h5 {
  font-size: 1.1rem;
  margin-bottom: .6rem;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filiere-card p { font-size: .98rem; color: var(--gray); line-height: 1.6; }

/* Le lien « En savoir plus » est repoussé en bas de la carte. */
.filiere-card .filiere-link {
  margin-top: auto;
  padding-top: .9rem;
  align-self: center;
}


/* Trois lignes, comme le nom l'annonce : la classe en coupait deux, et le
   texte agrandi n'en laissait presque rien voir. La place existe — les
   cartes ont un blanc sous la description. */
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Les filières sans niveau renseigné rendaient une liste vide, qui
   creusait un blanc au milieu de la carte. */
.filiere-card ul.niveaux:empty { display: none; }
.filiere-link {
  color: var(--red); font-size: .97rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: .3rem;
}
.filiere-link:hover { color: #a30d25; gap: .5rem; }
/* Image de carte filière (remplace l'icône quand elle est renseignée) */
.filiere-img {
  width: 100%; height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  display: block;
}

.filiere-card ul.niveaux {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-direction: column; gap: .3rem; align-items: center;
}
.filiere-card ul.niveaux li { font-size: .95rem; color: var(--navy); }
.filiere-card ul.niveaux li i { color: var(--red); margin-right: .3rem; }

/* ── STATS ── */
.stats-bar { background: var(--navy); padding: 50px 0; }
.stat-item { display: flex; align-items: center; gap: 1rem; }
.stat-icon-wrap {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(200,16,46,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-wrap i { color: var(--red); font-size: 1.4rem; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 900;
  color: var(--white); line-height: 1;
}
.stat-label { font-size: .95rem; color: rgba(255,255,255,.6); margin: 0; }
/* Sous 400 px, la colonne fait 160 px : l'icône de 52 px n'en laisse pas
   assez au libellé, qui déborde. On empile plutôt que de rapetisser le
   texte, l'agrandir étant justement le but. */
@media (max-width: 400px) {
  .stat-item { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .stat-label { overflow-wrap: break-word; }
}

/* ── CAMPUS ── */
.campus { 
  padding: 50px 0; 
  background: var(--white); 
}
.campus-left {
   padding-right: 3rem;
   }
.campus-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 100%;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: var(--white);
  /* La carte est un lien : on neutralise le style par défaut des <a>. */
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
a.campus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 27, 62, .16);
  color: inherit;
}
a.campus-card:hover .campus-card-body h6 { color: var(--red); }
.campus-card img {
  width: 100%; 
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.campus-card:hover img {
  transform: scale(1.05);
}
.campus-card-placeholder {
  height: 240px;
  background: var(--light-gray); color: var(--gray);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .95rem;
}
.campus-card-body {
   padding: 1rem 1.1rem 1.1rem;
   }
.campus-card-body h6 { 
  font-size: 1.1rem; 
  margin-bottom: .2rem; 
  font-weight: 700; 
}
.campus-card-body small { 
  color: var(--gray); 
  font-size: .95rem; }

.campus-school-count {
  margin-top: .35rem;
  font-size: .93rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.internat-carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.internat-carousel .carousel-item img {
  height: 420px;
  object-fit: cover;
  display: block;
}

.internat-carousel .carousel-caption {
  left: 1.5rem;
  right: auto;
  bottom: 1.5rem;
  background: linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
  padding: 1rem 1.2rem;
  border-radius: 12px;
  text-align: left;
  max-width: 320px;
}

.internat-carousel .carousel-caption h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.internat-carousel .carousel-caption p {
  font-size: 1rem;
  margin: 0;
}

.internat-carousel .carousel-control-prev,
.internat-carousel .carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  opacity: 1;
  margin: 0 1rem;
}

.internat-carousel .carousel-control-prev-icon,
.internat-carousel .carousel-control-next-icon {
  filter: invert(1);
  width: 1.2rem;
  height: 1.2rem;
}

.internat-carousel .carousel-indicators {
  bottom: 1rem;
}

.internat-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.8);
}

.internat-carousel .carousel-indicators .active {
  background-color: var(--red);
}
.btn-red-outline {
  border: 2px solid var(--red); 
  color: var(--red);
  background: transparent; border-radius: 30px;
  padding: .55rem 1.4rem; font-weight: 600; font-size: 1rem;
  transition: background .2s, color .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.btn-red-outline:hover { background: var(--red); color: var(--white); }

/* ── CONTACT HIGHLIGHT ── */
.contact-highlight {
  background: var(--white);
  padding: 20px 0 50px;
}
.contact-panel {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 24px;
  padding: 2rem;
  color: var(--white);
  box-shadow: 0 18px 45px rgba(13,27,62,.15);
}
.contact-panel .section-eyebrow,
.contact-panel .section-title,
.contact-panel .text-muted,
.contact-panel h6,
.contact-panel small {
  color: var(--white);
}
.contact-panel .section-divider {
  background: var(--red);
}
.contact-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: .9rem 1rem;
  height: 100%;
}
.contact-item i {
  color: var(--red);
  font-size: 1.05rem;
  margin-top: 2px;
}
.contact-item h6 {
  margin-bottom: .2rem;
  font-size: 1.1rem;
}
.contact-item small {
  font-size: .95rem;
  line-height: 1.6;
  opacity: .9;
}
.contact-cta {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1.4rem;
}
.contact-cta h4 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
}
.contact-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin: 0;
}

/* ── ACTUALITÉS ── */
.actualites { 
  background: var(--cream); 
  padding: 50px 0; 
}
.news-card {
  background: var(--white); 
  border-radius: 12px;
  overflow: hidden; 
  transition: box-shadow .25s;
  border: 1px solid #ede9e3;
}
.news-card:hover {
   box-shadow: 0 12px 32px rgba(13,27,62,.1); 
  }
.news-card img { 
  width: 100%; height: 160px; 
  object-fit: cover;
 }
.news-card-body {
   padding: 1rem;
   }
.news-badge {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: .2rem .6rem; border-radius: 20px;
  margin-bottom: .6rem;
}
.badge-annonce { background: rgba(200,16,46,.1); color: var(--red); }
.badge-event { background: rgba(13,27,62,.1); color: var(--navy); }
.badge-campus { background: rgba(16,185,129,.12); color: #0f9d6b; }
.badge-partenariat { background: rgba(245,158,11,.15); color: #b45309; }
.news-card h6 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.news-card p { font-size: .93rem; color: var(--gray); line-height: 1.5; }
.news-date { font-size: .85rem; color: var(--gray); }

/* Infos pratiques */
.info-row {
  display: flex; align-items: center;
  padding: .9rem 0; border-bottom: 1px solid #eee;
  text-decoration: none; color: inherit;
  transition: color .15s;
}
.info-row:last-child { border-bottom: none; }
.info-row:hover h6 { color: var(--red); }
.info-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-right: .8rem;
}
.info-icon i { color: var(--white); font-size: 1.1rem; }
.info-row h6 { font-size: 1rem; font-weight: 600; margin: 0; }
.info-row small { font-size: .88rem; color: var(--gray); }
.info-row .chevron { margin-left: auto; color: var(--gray); }

/* Quote card */
.quote-card {
  background: var(--navy); border-radius: 14px;
  padding: 2rem 1.5rem; color: var(--white);
}
.quote-card .quote-icon { font-size: 2.5rem; color: var(--red); line-height: 1; margin-bottom: .8rem; }
.quote-card blockquote { font-size: 1.1rem; font-style: italic; line-height: 1.6; }
.quote-card p.sub { font-size: .97rem; color: rgba(255,255,255,.6); }
.quote-card h5 { color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-brand img{
  width: 50px;
  height: 50px;
}
footer .footer-brand strong {
  font-family: 'Playfair Display', serif;
  color: var(--white); font-size: 1.1rem;
}
footer .footer-brand p { font-size: .95rem; line-height: 1.6; margin-top: .6rem; }
footer h6 { color: var(--white); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: .5px; }
footer a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .97rem; transition: color .2s; }
footer a:hover { color: var(--red); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: .45rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .55rem; font-size: .97rem; }
.footer-contact-item i { color: var(--red); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; padding: 1.2rem 0;
  font-size: .9rem; color: rgba(255,255,255,.4);
  margin-top: 3rem;
}
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7) !important;
  font-size: 1.05rem; transition: background .2s;
  margin-right: .3rem;
}
.social-icons a:hover { background: var(--red); color: var(--white) !important; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .35s; }
.delay-4 { animation-delay: .5s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; min-height: auto; }
  .hero-card { margin-top: 2rem; }
  .campus-left { padding-right: 0; margin-bottom: 2rem; }
}

/* =====================================================================
   Compléments — pages intérieures (même langage visuel)
   ===================================================================== */

/* Bandeau d'en-tête des pages intérieures */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
  padding: 3.2rem 0; color: var(--white);
}
.page-head::after {
  content: ''; position: absolute; top: -60px; right: 0;
  width: 200px; height: 160%;
  background: var(--red);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .85;
}
.page-head .container { position: relative; z-index: 2; }
.page-head .breadcrumb-line {
  font-size: .87rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: .6rem;
}
.page-head .breadcrumb-line a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-head .breadcrumb-line a:hover { color: var(--white); }
.page-head h1 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.page-head p.lead-sub { color: rgba(255,255,255,.7); font-size: 1.1rem; margin: .5rem 0 0; max-width: 60ch; }

/* Sections utilitaires */
.section-cream { background: var(--cream); padding: 60px 0; }
.section-white { background: var(--white); padding: 60px 0; }

/* Onglets / filtres */
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.tab {
  border: 1px solid #e3e0da; background: var(--white); color: var(--navy);
  border-radius: 30px; padding: .45rem 1.1rem;
  font-size: .97rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.tab:hover { border-color: var(--red); color: var(--red); }
.tab.active { background: var(--red); border-color: var(--red); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Liste à coches */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem 0; border-bottom: 1px solid #eee; font-size: 1.05rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li i { color: var(--red); font-size: 1.1rem; line-height: 1.4; }

/* Sections détaillées d'une fiche filière */
.fiche-bloc { margin-top: 2.2rem; }
.fiche-bloc h3 {
  font-family: 'Playfair Display', serif; color: var(--navy);
  font-size: 1.15rem; margin: 0 0 .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.fiche-bloc h3 i { color: var(--red); font-size: 1.05rem; }

/* ── Rubriques dépliables de la fiche ── */
.fiche-rubriques .fiche-bloc {
  margin-top: 0;
  border-bottom: 1px solid #ececf1;
}
.fiche-rubriques .fiche-bloc:first-child { border-top: 1px solid #ececf1; }
.fiche-rubriques h3 { margin: 0; }

/* Le titre reste un h3 pour la structure du document ; le bouton qu'il
   contient porte l'interaction et l'état (aria-expanded). */
.fiche-bloc-tete {
  width: 100%; display: flex; align-items: center; gap: .7rem;
  padding: 1.05rem .2rem;
  background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  transition: color .2s;
}
.fiche-bloc-tete span { flex: 1; }
.fiche-bloc-tete:hover { color: var(--red); }
.fiche-bloc-tete:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px;
}
.fiche-bloc-tete .chevron {
  color: var(--gray); font-size: 1rem;
  transition: transform .25s ease, color .2s;
}
.fiche-bloc-tete:hover .chevron { color: var(--red); }
.fiche-bloc.ouvert .fiche-bloc-tete .chevron { transform: rotate(180deg); }
.fiche-bloc.ouvert .fiche-bloc-tete { color: var(--red); }

.fiche-bloc-corps { padding: 0 .2rem 1.3rem; }
/* L'ouverture est animée, la fermeture non : le contenu disparaît d'un
   coup (hidden), l'animer à rebours donnerait un saut. */
.fiche-bloc.ouvert .fiche-bloc-corps { animation: rubriqueOuvre .25s ease both; }
@keyframes rubriqueOuvre {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fiche-bloc.ouvert .fiche-bloc-corps { animation: none; }
  .fiche-bloc-tete .chevron { transition: none; }
}
.fiche-bloc p {
  color: var(--gray); font-size: 1.05rem; line-height: 1.8; margin: 0 0 .6rem;
}
.fiche-bloc p:last-child { margin-bottom: 0; }
.fiche-note { font-size: .95rem !important; font-style: italic; margin-top: 1rem !important; }

/* Matières, en étiquettes */
.matieres { display: flex; flex-wrap: wrap; gap: .45rem; }
.matieres span {
  background: var(--cream); border: 1px solid #ede9e3;
  border-radius: 999px; padding: .35rem .8rem;
  font-size: .95rem; color: var(--navy);
}

/* Carte des dates (admission) */
.dates-card {
  background: var(--white); border: 1px solid #ede9e3;
  border-radius: 14px; padding: 1.4rem 1.6rem;
}
.date-row {
  display: flex; gap: .9rem; align-items: center;
  padding: .8rem 0; border-bottom: 1px solid #f0ede8;
}
.date-row:last-child { border-bottom: none; }
.date-row .info-icon { margin-right: 0; background: var(--red); }
.date-row b { display: block; font-size: 1rem; }
.date-row span { font-size: .93rem; color: var(--gray); }

/* Étapes d'admission */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 2.5rem; }
.step {
  background: var(--white); border: 1px solid #ede9e3; border-radius: 12px;
  padding: 1rem; display: flex; align-items: center; gap: .8rem;
}
.step .num {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--light-gray); color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Playfair Display', serif; flex-shrink: 0;
}
.step.active { border-color: var(--red); }
.step.active .num { background: var(--red); color: var(--white); }
.step span { font-size: .97rem; font-weight: 600; }
@media (max-width: 768px) { .stepper { grid-template-columns: repeat(2, 1fr); } }
/* Sous 400 px, deux colonnes ne tiennent plus : le numéro et son libellé
   ne se compriment pas, et l'étape déborde. On passe à une colonne. */
@media (max-width: 400px) { .stepper { grid-template-columns: 1fr; } }

/* Bande newsletter */
.newsletter-band {
  background: var(--navy); border-radius: 14px; padding: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; color: var(--white);
}
.newsletter-band h5 { color: var(--white); margin: 0 0 .2rem; }
.newsletter-band p { color: rgba(255,255,255,.6); font-size: .97rem; margin: 0; }
.newsletter-form { display: flex; gap: .6rem; flex: 1; min-width: min(260px, 100%); max-width: 430px; }
.newsletter-form input {
  /* min-width:0 : sans cela le champ garde sa largeur naturelle (une
     vingtaine de caractères), la ligne ne peut plus se resserrer et le
     bouton sort de l'écran sur mobile. */
  flex: 1; min-width: 0; border: none; border-radius: 30px;
  padding: .6rem 1.1rem; font-size: 1rem; font-family: 'DM Sans', sans-serif;
}
.newsletter-form input:focus { outline: 2px solid var(--red); }
.newsletter-form .btn-red { border: none; }

/* Formulaires (contact) */
.form-panel {
  background: var(--white); border: 1px solid #ede9e3;
  border-radius: 14px; padding: 2rem;
}
.form-panel label { font-size: .97rem; font-weight: 600; margin-bottom: .35rem; }
.form-panel .form-control {
  font-size: 1.05rem; padding: .65rem .9rem; border-radius: 10px;
}
.form-panel .form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 .15rem rgba(200,16,46,.15);
}

/* Article (détail actualité) */
.article-body { font-size: 1.1rem; line-height: 1.8; white-space: pre-line; }

/* Carte */
.map-embed {
  border-radius: 12px; overflow: hidden;
  border: 1px solid #ede9e3; height: 230px; margin-top: 1rem;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Carrousel des écoles */
.ecole-carousel .carousel-inner { border-radius: 14px; }
.ecole-carousel .carousel-item img {
  height: 420px; object-fit: cover;
}
@media (max-width: 768px) {
  .ecole-carousel .carousel-item img { height: 260px; }
}

/* Liste des commodités (2 colonnes sur grand écran) */
.commodites-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: 1.5rem;
}
.commodites-list li { border-bottom: 1px solid #f2f0eb; }

/* Modales « Informations pratiques » */
.modal-ifsm .modal-content {
  border: none; border-radius: 14px; overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.modal-ifsm .modal-header {
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  padding: 1rem 1.4rem;
  gap: .8rem;
}
.modal-ifsm .modal-title {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}
.modal-ifsm .modal-icon {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.modal-ifsm .modal-icon i { color: var(--white); font-size: 1.05rem; }
.modal-ifsm .modal-body { padding: 1.4rem; }
.modal-ifsm .modal-footer { border-top: 1px solid #f0ede8; padding: .9rem 1.4rem; }
.modal-ifsm .check-list li { font-size: 1.03rem; }

/* Pop-up promotionnel : l'image porte le message, le cadre s'efface. */
.modal-promo .modal-content {
  position: relative; background: var(--white);
  /* Le visuel ne doit jamais repousser le bouton hors de l'écran : on borne
     la fenêtre à la hauteur visible, et elle défile si le texte est long. */
  max-height: 92vh; overflow-y: auto;
}
.modal-promo .promo-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 3;
  background-color: rgba(255, 255, 255, .9); border-radius: 50%;
  padding: .55rem; opacity: 1;
}
.modal-promo .promo-close:hover { background-color: var(--white); }
.modal-promo img {
  display: block; width: 100%; height: auto;
  /* Une affiche en portrait reste entière sans écraser le reste. */
  max-height: 62vh; object-fit: contain; background: var(--cream);
}
.modal-promo .promo-visuel { display: block; }
.modal-promo .promo-corps { padding: 1.3rem 1.4rem 1.5rem; text-align: center; }
.modal-promo .promo-corps h5 {
  font-family: 'Playfair Display', serif; color: var(--navy);
  font-size: 1.2rem; margin: 0 0 .5rem;
}
.modal-promo .promo-corps p {
  color: var(--gray); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem;
}
.modal-promo .promo-corps > :last-child { margin-bottom: 0; }

.modal-steps { display: flex; flex-direction: column; gap: .6rem; }
.modal-step {
  display: flex; align-items: center; gap: .8rem;
  background: var(--cream); border: 1px solid #ede9e3;
  border-radius: 10px; padding: .7rem .9rem; font-size: 1.03rem; font-weight: 600;
}
.modal-step .num {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem;
}

/* Validation du formulaire de contact */
.champ-erreur {
  color: var(--red);
  font-size: .93rem;
  margin-top: .3rem;
  display: flex;
  align-items: flex-start;
  gap: .3rem;
}
.champ-erreur::before { content: "\26A0"; }  /* ⚠ */
.champ-aide { color: var(--gray); font-size: .9rem; margin-top: .3rem; }
.form-panel .form-control.is-invalid {
  border-color: var(--red);
  background-image: none;
}
.form-panel .form-control.is-invalid:focus {
  box-shadow: 0 0 0 .15rem rgba(200, 16, 46, .18);
}
#message-compteur.compteur-limite { color: var(--red); font-weight: 600; }

/* Messages flash */
.flash-wrap {
  position: fixed; top: 90px; right: 20px; z-index: 2000;
  display: flex; flex-direction: column; gap: .6rem; max-width: 340px;
}
.flash {
  padding: .8rem 1.1rem; border-radius: 10px; color: var(--white);
  font-size: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  animation: fadeUp .4s ease both;
}
.flash.success { background: #0f9d6b; }
.flash.error { background: var(--red); }
.flash.info { background: var(--navy); }

/* ── Lien vers le cycle, en bas de fiche filière ── */
.lien-cycle {
  display: flex; align-items: center; gap: .9rem;
  margin-top: 2.2rem; padding: 1rem 1.2rem;
  background: var(--cream); border: 1px solid #e6e0d6; border-radius: 12px;
  color: var(--navy); text-decoration: none; font-size: 1.05rem;
  transition: border-color .2s, background .2s, transform .15s;
}
.lien-cycle:hover {
  background: var(--white); border-color: var(--red);
  transform: translateY(-2px); color: var(--navy);
}
.lien-cycle > i:first-child { color: var(--red); font-size: 1.2rem; }
.lien-cycle span { flex: 1; }
.lien-cycle b { display: block; font-weight: 700; }
.lien-cycle .fleche { color: var(--red); transition: transform .2s; }
.lien-cycle:hover .fleche { transform: translateX(4px); }

/* ── Repères du diplôme (licences et masters) ── */
.reperes {
  background: var(--cream); border-radius: 14px;
  padding: 1.2rem 1.4rem; margin-bottom: 1.5rem;
}
.reperes > div {
  display: grid; grid-template-columns: 28px 1fr;
  align-items: start; gap: .2rem .7rem;
  padding: .7rem 0; border-bottom: 1px solid #e6e0d6;
}
.reperes > div:last-child { border-bottom: none; padding-bottom: 0; }
.reperes > div:first-child { padding-top: 0; }
.reperes i { grid-row: span 2; color: var(--red); font-size: 1.1rem; }
.reperes span { font-size: .9rem; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }
.reperes b { font-size: 1.05rem; color: var(--navy); font-weight: 600; }

/* ── Page recrutement ── */
.texte-intro {
  color: var(--gray); font-size: 1.1rem; line-height: 1.8; max-width: 68ch;
}
.carte-candidature {
  display: block; height: 100%; padding: 1.8rem;
  background: var(--white); border: 1px solid #e9e9ef; border-radius: 16px;
  text-decoration: none; color: var(--navy);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.carte-candidature:hover {
  border-color: var(--red); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,27,62,.1); color: var(--navy);
}
.candidature-icone {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.carte-candidature:hover .candidature-icone { background: var(--red); }
.carte-candidature h3 {
  font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem;
}
.carte-candidature p {
  color: var(--gray); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem;
}

.liste-pieces { list-style: none; padding: 0; margin: 0; }
.liste-pieces li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 0; border-bottom: 1px solid #eee;
}
.liste-pieces li:last-child { border-bottom: none; }
.liste-pieces i { color: var(--red); font-size: 1.1rem; margin-top: .15rem; }
.liste-pieces span > b { display: block; font-size: 1.05rem; font-weight: 600; }
.liste-pieces span { color: var(--gray); font-size: 1rem; line-height: 1.7; }

.etapes-envoi {
  background: var(--navy); color: var(--white);
  border-radius: 16px; padding: 1.8rem;
}
.etapes-envoi h3 {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .6rem;
}
.etapes-envoi h3 i { color: var(--red); font-size: 1.1rem; }
.etapes-envoi ol { list-style: none; counter-reset: etape; padding: 0; margin: 0; }
.etapes-envoi li {
  counter-increment: etape; position: relative;
  padding: 0 0 1.4rem 2.6rem;
  border-left: 1px solid rgba(255,255,255,.15); margin-left: .9rem;
}
.etapes-envoi li:last-child { border-left-color: transparent; padding-bottom: 0; }
.etapes-envoi li::before {
  content: counter(etape);
  position: absolute; left: -.9rem; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700;
}
/* Seul le titre de l'étape passe en bloc : un « b » de mise en valeur au
   milieu d'une phrase doit rester dans le fil du texte. */
.etapes-envoi li > b { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.etapes-envoi li span {
  display: block; color: rgba(255,255,255,.7);
  font-size: 1rem; line-height: 1.7;
}
.etapes-envoi .objet-mail {
  background: rgba(255,255,255,.08); border-radius: 8px;
  padding: .5rem .8rem; font-family: monospace; color: var(--white);
}
.mail-recrutement {
  display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: .2rem; padding: .6rem 1rem;
  background: var(--red); border-radius: 10px;
  color: var(--white); text-decoration: none;
  font-size: 1rem; font-weight: 600; word-break: break-all;
  transition: background .2s;
}
.mail-recrutement:hover { background: #a30d25; color: var(--white); }

/* Sur mobile, la gouttière « g-5 » (3rem) déborde de la marge du conteneur
   et fait défiler la page en travers. On la resserre sous 576 px : les
   colonnes y sont de toute façon empilées, l'écart horizontal ne sert plus. */
@media (max-width: 575.98px) {
  .row.g-5, .row.g-4 { --bs-gutter-x: 1.5rem; }
}

/* La barre de navigation est fixée en haut : sans cette marge, une cible
   d'ancre (#enseignants, #filiere-grid…) vient se ranger dessous et son
   titre reste caché. La barre passe sur deux lignes en dessous de 1200 px,
   d'où la réserve plus large. */
:root { scroll-behavior: smooth; }
section[id], #filiere-grid, #vie-tabs { scroll-margin-top: 120px; }
@media (min-width: 1200px) {
  section[id], #filiere-grid, #vie-tabs { scroll-margin-top: 100px; }
}

/* Les textes des fiches et des cartes viennent de l'administration : un mot
   très long — une énumération collée par des barres obliques, une adresse —
   ne doit pas élargir sa colonne et faire défiler la page en travers. */
.fiche-bloc p, .fiche-bloc li, .filiere-card p, .filiere-card h5,
.check-list span, .liste-pieces span, .article-body, .matieres span,
.reperes b, .lien-cycle b, .texte-intro, .page-head p.lead-sub {
  overflow-wrap: break-word;
}

/* Appel à candidatures, en tête de la page recrutement : mis en avant sans
   devenir un encadré de plus, il donne le ton avant la marche à suivre. */
.appel-candidats {
  border-left: 3px solid var(--red);
  padding: .2rem 0 .2rem 1.4rem;
  margin: 0 0 1.6rem;
  max-width: 68ch;
}
.appel-candidats p {
  font-size: 1.1rem; line-height: 1.8; color: var(--navy); margin: 0 0 .8rem;
}
.appel-candidats p:last-child { margin-bottom: 0; }
.appel-candidats b { font-weight: 700; color: var(--red); }

/* ── Parcours (accueil) ────────────────────────────────────────────────
   Escalier du baccalauréat au master. Le sens de lecture est celui du
   schéma LMD : le socle en bas, les paliers qui montent, le niveau à
   gauche et les crédits cumulés à droite. La flèche entre deux paliers
   est dessinée en ::before, elle n'existe donc pas dans le balisage. */
.parcours-intro {
  color: var(--gray); font-size: 1.1rem; line-height: 1.7;
  max-width: 60ch; margin: 1rem auto 0;
}
.parcours {
  display: flex; flex-direction: column; gap: 0;
  max-width: 900px; margin: 0 auto;
}
.parcours-etape {
  display: grid;
  grid-template-columns: 92px 1fr 84px;
  align-items: stretch; gap: 1.2rem;
  padding: 0; margin: 0 0 2.4rem;
  text-decoration: none; color: var(--navy);
  position: relative;
}
/* Flèche montante vers ce palier, depuis celui du dessous — le dernier
   la reçoit aussi, elle vient alors du baccalauréat. Elle est dessinée en
   bordures plutôt qu'avec un glyphe : la police d'icônes vient d'un CDN,
   et le schéma resterait muet si elle ne se chargeait pas. */
.parcours-etape::before {
  content: ''; position: absolute; left: 50%; bottom: -1.5rem;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid var(--red);
}
.parcours-etape::after {
  content: ''; position: absolute; left: 50%; bottom: -2.4rem;
  transform: translateX(-50%);
  width: 3px; height: .95rem; background: var(--red); opacity: .3;
}

.parcours-niveau {
  display: flex; align-items: center; justify-content: center;
  background: #C9CE3B; color: var(--navy);
  border-radius: 12px; font-weight: 700; font-size: 1.05rem;
  text-align: center; padding: .6rem;
}
.parcours-carte {
  display: block; background: var(--white);
  border: 1px solid #e9e9ef; border-radius: 14px; padding: 1.3rem 1.5rem;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.parcours-etape:hover .parcours-carte {
  border-color: var(--red); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(13,27,62,.1);
}
.parcours-titre {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.2;
}
.parcours-soustitre {
  display: block; font-size: .95rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 1px; margin-top: .25rem;
}
.parcours-resume {
  display: block; color: var(--gray); font-size: 1.05rem;
  line-height: 1.7; margin-top: .7rem;
}
.parcours-lien {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .9rem; color: var(--red); font-weight: 600; font-size: 1rem;
}
.parcours-etape:hover .parcours-lien i { transform: translateX(4px); }
.parcours-lien i { transition: transform .2s; }

.parcours-credits {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--red); color: var(--white);
  border-radius: 50%; width: 84px; height: 84px; align-self: center;
  font-size: 1.4rem; font-weight: 700; line-height: 1;
}
.parcours-credits small {
  font-size: .7rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .5px; opacity: .85; margin-top: .15rem;
}

.parcours-socle {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  background: var(--navy); color: var(--white);
  border-radius: 12px; padding: 1.1rem 1.4rem;
  font-weight: 600; font-size: 1.1rem; text-align: center;
}
.parcours-socle i { color: var(--red); font-size: 1.2rem; }

/* Sur mobile, le niveau passe au-dessus de la carte et les crédits
   deviennent une pastille posée dans le coin : trois colonnes ne tiennent
   pas, et réduire le texte le rendrait illisible. */
@media (max-width: 767.98px) {
  /* Les zones sont nommées plutôt que laissées au placement automatique :
     sans cela la pastille des crédits, dernière dans le balisage, se range
     sous la carte au lieu de rester en tête avec le niveau. */
  .parcours-etape {
    grid-template-columns: 1fr auto;
    grid-template-areas: "niveau credits" "carte carte";
    gap: .6rem;
  }
  .parcours-niveau {
    grid-area: niveau; justify-content: flex-start; padding: .5rem 1rem;
  }
  .parcours-credits {
    grid-area: credits; width: 58px; height: 58px; font-size: 1.1rem;
  }
  .parcours-credits small { font-size: .55rem; }
  .parcours-carte { grid-area: carte; padding: 1.1rem 1.2rem; }
  .parcours-titre { font-size: 1.2rem; }
}

/* Palier du stage : il ferme le parcours sans en être un cycle. Ni lien ni
   crédits, donc ni survol ni pastille rouge — la nuance visuelle évite de
   le lire comme un diplôme de plus. */
.parcours-etape--stage .parcours-niveau {
  background: var(--navy); color: var(--white);
}
.parcours-etape--stage .parcours-carte {
  background: var(--cream); border-style: dashed; border-color: #ddd6c8;
}
.parcours-etape--stage:hover .parcours-carte {
  transform: none; box-shadow: none; border-color: #ddd6c8;
}
.parcours-credits--vide {
  background: var(--navy); font-size: 1.6rem;
}

/* ══════════════════════════════════════════════════════════════════════
   TEXTES SECONDAIRES SOUS LES TITRES

   Le sous-titre d'une page, le chapô d'une section, la description sous le
   nom d'une carte : ce sont les lignes qu'on lit juste après un titre, et
   elles étaient les plus pâles et les plus petites de la page. Elles
   passent ici en 600 — la graisse demandée — avec un cran de taille de
   plus que le reste du texte.

   Les paragraphes longs en sont écartés : le corps d'une rubrique de fiche
   grossit, mais reste en 500. Sur plusieurs lignes d'affilée, le
   demi-gras fatigue au lieu d'aider.

   Sur fond sombre, l'opacité monte en même temps que la graisse : un texte
   épaissi mais transparent paraît sale plutôt que lisible.
   ══════════════════════════════════════════════════════════════════════ */

/* Sous-titre de page, sous le grand titre du bandeau. */
.page-head p.lead-sub {
  font-size: 1.25rem; font-weight: 600;
  color: rgba(255,255,255,.85);
}

/* Accroche du hero, sous le titre principal. */
.hero p { font-size: 1.25rem; font-weight: 600; color: rgba(255,255,255,.85); }

/* Chapôs de section, sous « Du BAC au Master », « Deux façons de
   candidater »… */
.parcours-intro, .texte-intro {
  font-size: 1.2rem; font-weight: 600;
}

/* Descriptions sous le nom d'une carte. */
.filiere-card p { font-size: 1.08rem; font-weight: 600; }
.news-card p { font-size: 1.03rem; font-weight: 600; }
.carte-candidature p { font-size: 1.15rem; font-weight: 600; }
.parcours-resume { font-size: 1.12rem; font-weight: 600; }
.parcours-soustitre { font-size: 1rem; font-weight: 600; }

/* Encarts : sous-titres et légendes accompagnant un intitulé. */
.quote-card p.sub { font-size: 1.07rem; font-weight: 600; color: rgba(255,255,255,.8); }
p.hero-card-sub { font-size: .97rem; font-weight: 600; }
.hero-badge-sub { font-size: .93rem; font-weight: 600; color: rgba(255,255,255,.75); }
.stat-label { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,.8); }
.info-row small { font-size: .98rem; font-weight: 600; }
.date-row span { font-size: 1.03rem; font-weight: 600; }
.liste-pieces span { font-size: 1.05rem; }

/* Corps des rubriques de fiche : la taille suit, la graisse non. */
.fiche-bloc p { font-size: 1.12rem; }
