/* Accueil : styles spécifiques à la page */

/* ---------- Héros ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--cream);
  padding: clamp(40px, 7vw, 96px) 20px;
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__text { flex: 1 1 340px; min-width: 0; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 138, 46, .15);
  border: 1px solid rgba(198, 138, 46, .4);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: rgba(247, 245, 240, .82);
  margin: 0 0 28px;
  max-width: 56ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta-gold { font-size: 16px; padding: 15px 26px; }
.hero__cta-light {
  border: 2px solid rgba(247, 245, 240, .6);
  color: var(--cream);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.hero__cta-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.hero__media { flex: 1 1 320px; min-width: 0; }
.hero__media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  display: block;
}
.hero__caption {
  font-size: 12px;
  color: rgba(247, 245, 240, .5);
  margin: 10px 4px 0;
}

/* ---------- Statistiques du corpus ---------- */

.stats { padding: clamp(36px, 5vw, 64px) 20px; }
.stats__kicker {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.stat-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
}
.stat-card .icon { width: 26px; height: 26px; margin-bottom: 10px; }
.stat-card__value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  font-size: 13px;
  color: rgba(247, 245, 240, .7);
  margin-top: 4px;
  line-height: 1.35;
}

/* ---------- À propos ---------- */

.apropos { padding: clamp(48px, 7vw, 88px) 20px; }
.apropos h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.apropos__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 70ch;
}
.piliers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.pilier {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(15, 42, 63, .06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pilier .icon {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  margin-top: 2px;
}
.pilier__titre { font-weight: 700; color: var(--navy); font-size: 15px; }
.pilier__texte {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 3px;
}
.universites { display: flex; flex-direction: column; gap: 12px; }
.universites__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.universites__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Explorer la plateforme ---------- */

.explorer { padding: 0 20px clamp(48px, 7vw, 88px); }
.explorer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.explorer-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 130px;
  transition: transform .15s ease;
}
.explorer-card:hover {
  transform: translateY(-3px);
  background: var(--navy-2);
  color: var(--cream);
}
.explorer-card .icon { width: 26px; height: 26px; }
.explorer-card__titre { font-size: 17px; font-weight: 700; line-height: 1.25; }
.explorer-card__texte {
  font-size: 13px;
  color: rgba(247, 245, 240, .65);
  line-height: 1.4;
}
.explorer-card__more {
  margin-top: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Rachid Badouri ---------- */

.badouri { padding: clamp(48px, 7vw, 80px) 20px; }
.badouri__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.badouri__photo {
  width: min(240px, 60vw);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  flex: none;
  margin: 0 auto;
}
.badouri__text { flex: 1 1 320px; min-width: 0; }
.badouri__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.badouri h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.15;
}
.badouri__desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(247, 245, 240, .82);
  margin: 0 0 18px;
}
.badouri__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}
.badouri__stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--gold);
}
.badouri__stat-label {
  font-size: 15px;
  color: rgba(247, 245, 240, .8);
  max-width: 26ch;
  line-height: 1.4;
}

/* ---------- Écosystème multimédia ---------- */

.medias { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.medias__head {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.medias h2 { margin: 0 0 6px; }
.medias__all { font-weight: 700; font-size: 15px; }
.medias__lead {
  margin: 0 auto 20px;
  padding: 0 20px;
  color: var(--text-3);
  font-size: 15px;
}
.medias .scroller { padding: 8px 20px 20px; }
/* Cartes centrées quand elles n'occupent pas toute la largeur,
   tout en restant défilables quand elles débordent */
.medias .scroller > :first-child { margin-left: auto; }
.medias .scroller > :last-child { margin-right: auto; }
.media-card {
  flex: none;
  width: 200px;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  box-shadow: 0 3px 14px rgba(15, 42, 63, .1);
}
.media-card__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}
.media-card__titre { font-size: 16px; font-weight: 700; line-height: 1.3; }
.media-card__texte { font-size: 12.5px; opacity: .75; line-height: 1.45; }
.media-card__share {
  margin-top: auto;
  align-self: flex-start;
  border: 1.5px solid currentColor;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 100px;
  cursor: pointer;
  min-height: 38px;
}
.media-card__cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.media-card__cta:hover { color: inherit; opacity: .85; }
/* Bouton « Recevoir le guide » : ouvre le formulaire courriel, bien mis en valeur */
.media-card__recevoir {
  margin-top: auto;
  width: 100%;
  border: none;
  background: var(--cream);
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: background .15s ease, transform .15s ease;
}
.media-card__recevoir::before { content: '✉'; }
.media-card__recevoir:hover { background: var(--gold); color: #fff; transform: translateY(-1px); }

/* Lecture d'une actualité (superposition) */
.actu-card__more-btn {
  border: none;
  background: none;
  font-family: inherit;
  color: var(--teal);
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.actu-card__more-btn:hover { color: var(--gold); }
.actu-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 34, 51, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.actu-modal[hidden] { display: none; }
.actu-modal__card {
  background: #fff;
  border-radius: 22px;
  max-width: 640px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  animation: fadeUp .25s ease;
  position: relative;
}
.actu-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--gray);
  color: var(--navy);
  border-radius: 12px;
  font-size: 19px;
  cursor: pointer;
  z-index: 1;
}
.actu-modal__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 16px;
}
.actu-modal__titre {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 12px;
  line-height: 1.3;
}
.actu-modal__texte {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}
.actu-modal__texte p { margin: 0 0 14px; }
.actu-modal__texte img { max-width: 100%; border-radius: 12px; }

/* ---------- Partenaires ---------- */

.partenaires {
  background: #fff;
  padding: clamp(36px, 5vw, 56px) 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.partenaires__kicker {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .7;
  margin: 0 0 28px;
}
.partenaires__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}
.partenaires__logos img {
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

/* ---------- Actualités ---------- */

.actus { padding: 0 20px clamp(48px, 7vw, 88px); }
.actus__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.actu-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card-md);
  display: flex;
  flex-direction: column;
}
.actu-card > img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.actu-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.actu-card__date {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.actu-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}
.actu-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 0;
}
.actu-card__more { margin-top: auto; font-weight: 700; font-size: 14px; }
