/* ============================================================
   IGLAM — Design System · Layout
   ============================================================
   Migration des sections vers les tokens :
   header, hero, sections éditoriales, footer.
   Objectif : plus d'air, typo plus généreuse, moins d'effets.
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
.header-inner {
  padding: var(--space-6) var(--gutter);
  gap: var(--space-7);
}

.site-branding {
  margin-left: 0;
}

.site-branding a { gap: var(--space-4); }

.site-branding .brand-emblem {
  width: 48px;
  height: 48px;
  transition: transform var(--transition-base);
}

.site-branding:hover .brand-emblem { transform: none; }

.site-branding .brand-name {
  font-size: 2rem;
  letter-spacing: 3px;
  line-height: 1.05;
  /* Le nom doit hériter de la couleur du contexte (blanc sur héro,
     marine sur pages internes) : jamais forcé au bleu. */
  color: inherit;
}

.site-branding .brand-slogan {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent-bright);
}

/* Pages internes : fond clair */
.hero-wrapper--internal .site-branding .brand-name {
  color: var(--color-primary);
}

.hero-wrapper--internal .site-branding .brand-slogan {
  color: var(--color-accent-dark);
}

.site-branding:hover .brand-name {
  color: var(--color-accent-bright);
}

.hero-wrapper--internal .site-branding:hover .brand-name {
  color: var(--color-accent-dark);
}

/* Navigation : moins d'effets, plus de clarté */
.main-nav > ul > li > a {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
}

/* La barre supérieure : hauteur confortable */
.topbar {
  font-size: var(--text-sm);
}

.topbar-inner {
  min-height: 56px;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-editorial-inner {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  gap: var(--space-9);
}

.hero-editorial-title {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero-editorial-sub {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  max-width: 46ch;
  margin-bottom: var(--space-7);
  color: var(--color-text-inverse-muted);
}

.hero-trust {
  margin-top: var(--space-7);
  font-size: var(--text-sm);
}

/* La photo héro : plus d'air, ombre douce (pas de lueur) */
.editorial-card {
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-editorial-photo { transform: none; }

/* ============================================================
   SECTIONS ÉDITORIALES — rythme vertical généreux
   ============================================================ */
.about-section,
.life-section,
.why-section,
.voices-band,
.offre-section,
.campus-map-section,
.filieres-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* Titres de section : plus présents */
.about-title,
.why-title,
.offre-title,
.voices-title,
.life-section .section-title,
.campus-map-title,
.filieres-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.about-lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   GRILLE DE VIE / GALERIE
   ============================================================ */
.life-grid {
  gap: var(--space-6);
}

.life-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.life-item:hover {
  box-shadow: var(--shadow-md);
}

/* On retire le zoom (effet) : la photo reste nette */
.life-item:hover img { transform: none; }

.life-item figcaption {
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
}

.life-item figcaption span {
  color: var(--color-text);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: .01em;
  display: block;
}

/* Le dégradé d'origine est neutralisé : la figcaption est un bloc
   de texte lisible sur fond blanc, pas un voile sur la photo. */
.life-item figcaption {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  background: var(--color-surface);
}

/* ============================================================
   CARTES « POURQUOI NOUS CHOISIR »
   ============================================================ */
.why-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.why-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.why-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

/* ============================================================
   TÉMOIGNAGES — fond bleu marine, cartes translucides
   ============================================================ */
.voices-band {
  color: var(--color-text-inverse);
}

.voice-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-left: 3px solid var(--color-accent-bright);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.voice-card:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 217, 102, .55);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.voice-text {
  color: rgba(255, 255, 255, .95);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.voice-name {
  color: var(--color-text-inverse);
}

.voice-role {
  color: rgba(255, 255, 255, .72);
}

.voice-initials {
  color: var(--color-accent-bright);
  border-color: rgba(255, 217, 102, .55);
}

.voice-mark {
  color: var(--color-accent-bright);
}

/* ============================================================
   BANDEAU « OFFRE DE FORMATION »
   ============================================================ */
.offre-inner {
  gap: var(--space-9);
}

.offre-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.offre-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.offre-sub {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* ============================================================
   FOOTER
   ============================================================ */
/* NOTE : le bandeau « accès rapide » a été refondu en grille de 4 cellules
   (voir section-footer-quick.css). Les règles ci-dessous qui ciblent
   l'ancienne structure en ligne sont neutralisées. */
.footer-quick { padding: 0; }

.footer-quick .container { display: none; }

.footer-quick a {
  text-decoration: none;
}

.footer-partners { padding: var(--space-6) 0; }

.footer-info {
  padding: var(--space-10) 0;
}

.footer-info .container {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.1fr;
  gap: var(--space-9);
  align-items: start;
}

.footer-info h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.footer-info p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, .88);
}

.footer-info a {
  color: var(--color-text-inverse);
}

.footer-info a:hover {
  color: var(--color-accent-bright);
}

.footer-logo {
  max-width: 150px;
  margin-inline: auto;
}

.footer-legal {
  padding: var(--space-5) 0;
  font-size: var(--text-xs);
}

.footer-legal .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — 3 breakpoints rationnels
   ============================================================ */
@media (max-width: 960px) {
  .footer-info .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }

  .footer-info .text-center { grid-column: 1 / -1; order: -1; }

  .hero-editorial-inner {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
  }
}

@media (max-width: 640px) {
  .footer-info .container {
    grid-template-columns: 1fr;
  }

  .offre-card { padding: var(--space-6); }

  .brand-name { font-size: 1.6rem; }
  .brand-emblem { width: 40px; height: 40px; }
}
