/* =========================================================
   COLLÈGE LOUIS PASTEUR — Feuille de style
   Direction : moderne, typographie Outfit, accent tricolore
   du logo traité comme une signature graphique discrète
   (petite barre segmentée) plutôt qu'un motif littéral.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* --- Couleurs --- */
  --bleu:        #3A4CE0;
  --bleu-vif:    #4F5FFF;
  --bleu-nuit:   #12153A;
  --rouge:       #E23B52;
  --encre:       #15161F;
  --papier:      #FAFAF8;
  --papier-2:    #FFFFFF;
  --gris:        #666B78;
  --gris-clair:  #F0EFEA;
  --ligne:       #E7E5DE;

  /* --- Typo --- */
  --f-titre: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-corps: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Rayons --- */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;

  /* --- Ombres --- */
  --ombre-douce: 0 1px 2px rgba(18,21,58,0.04), 0 14px 34px rgba(18,21,58,0.06);
  --ombre-forte: 0 22px 48px rgba(18,21,58,0.16);
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-corps);
  background: var(--papier);
  color: var(--encre);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--bleu-nuit);
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; border: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== ACCESSIBILITÉ ===== */
.skip-links a {
  position: absolute; left: 8px; top: -100px;
  background: var(--encre); color: #fff;
  padding: 10px 18px; font-size: 14px; border-radius: var(--r-sm); font-weight: 500;
  z-index: 1000; transition: top .15s ease;
}
.skip-links a:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }

/* ===== SIGNATURE : BARRE SEGMENTÉE ===== */
.tri-bar {
  display: inline-flex;
  gap: 4px;
  height: 6px;
  width: 34px;
}
.tri-bar span { flex: 1; border-radius: 3px; }
.tri-bar span:nth-child(1) { background: var(--bleu); }
.tri-bar span:nth-child(2) { background: var(--gris-clair); }
.tri-bar span:nth-child(3) { background: var(--rouge); }
.tri-bar.tri-bar-line { width: 100%; height: 4px; margin: 0 0 40px; }

/* ===== EN-TÊTE ===== */
.site-header {
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}
.logo-pasteur { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.logo-pasteur img { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-text .name {
  font-size: 19px; font-weight: 700; color: var(--bleu-nuit); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-text .sub { font-size: 12px; font-weight: 500; color: var(--rouge); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ===== BOUTON DISCORD (toujours visible) ===== */
.btn-discord {
  display: inline-flex; align-items: center; gap: 8px;
  background: #5865F2; color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.btn-discord svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: var(--ombre-forte); }

/* ===== BOUTON HAMBURGER (mobile) ===== */
.nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--papier-2); border: 1px solid var(--ligne); border-radius: 11px;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--encre); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== NAVIGATION ===== */
.main-nav ul {
  display: flex; flex-wrap: wrap; gap: 2px;
  background: var(--gris-clair); padding: 5px; border-radius: 999px;
}
.main-nav a {
  display: block; padding: 10px 18px; font-weight: 500; font-size: 14.5px;
  color: var(--encre); border-radius: 999px;
  transition: background 0.2s, color 0.2s; cursor: pointer;
}
.main-nav a:hover { background: rgba(255,255,255,0.7); }
.main-nav a.active-link { background: var(--bleu-nuit); color: #fff; }

/* ===== PAGES (SPA) ===== */
.page { display: none; }
.page.active { display: block; animation: apparait 0.35s ease; }
@keyframes apparait {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== EYEBROW / LABEL ===== */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--rouge);
}

/* ===== HERO (centré, moderne, sans motif superflu) ===== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.hero::before { background: var(--bleu-vif); top: -220px; left: -160px; }
.hero::after  { background: var(--rouge); top: -160px; right: -180px; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero .label { justify-content: center; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--rouge); }
.hero .lede {
  font-size: 18.5px; color: var(--gris);
  max-width: 52ch; margin: 0 auto 36px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex; align-items: baseline; gap: 8px;
  background: var(--papier-2);
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--ombre-douce);
}
.hero-stat b { font-size: 18px; font-weight: 800; color: var(--bleu-nuit); }
.hero-stat span { font-size: 13.5px; color: var(--gris); font-weight: 500; }

.hero-citation {
  max-width: 460px;
  margin: 56px auto 0;
  text-align: center;
}
.hero-citation p {
  font-size: 19px; font-style: italic; font-weight: 500;
  color: var(--bleu-nuit); margin-bottom: 10px;
}
.hero-citation span { font-size: 13px; color: var(--gris); font-weight: 500; }

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 26px;
  border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--f-corps);
}
.btn-primaire { background: var(--bleu-nuit); color: #fff; }
.btn-primaire:hover { background: var(--bleu); transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.btn-contour { background: var(--papier-2); color: var(--bleu-nuit); border: 1.5px solid var(--ligne); }
.btn-contour:hover { border-color: var(--bleu-nuit); }
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-rouge:hover { background: #c22e43; transform: translateY(-2px); }
.btn-large { padding: 16px 32px; font-size: 16px; width: 100%; justify-content: center; }

/* ===== ACCÈS RAPIDE ===== */
.acces-rapide { padding-top: 8px; }
.acces-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.acces-carte {
  background: var(--papier-2); padding: 26px 24px; border-radius: var(--r-md);
  border: 1px solid var(--ligne);
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.acces-carte:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); border-color: var(--bleu); }
.acces-carte .icone {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gris-clair); color: var(--bleu-nuit);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.acces-carte strong { font-size: 16px; color: var(--encre); font-weight: 600; }
.acces-carte small { color: var(--gris); font-size: 13.5px; }

/* ===== SECTIONS ===== */
section { padding: 88px 0; }
.entete-section {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
}
.entete-section .label { margin-bottom: 10px; }
.entete-section h2 { font-size: 30px; }
.voir-tout {
  font-weight: 600; font-size: 14px; color: var(--bleu);
  border-bottom: 2px solid var(--gris-clair); padding-bottom: 2px; cursor: pointer;
}
.voir-tout:hover { border-color: var(--bleu); }

/* ===== ACTUALITÉS ===== */
.actus-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.actu-carte {
  background: var(--papier-2); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--ligne);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.actu-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.actu-lien { display: flex; flex-direction: column; height: 100%; color: inherit; }
.actu-vignette {
  height: 120px;
  position: relative;
  overflow: hidden;
  background: var(--bleu-nuit);
}
.actu-vignette.rouge { background: var(--rouge); }
.actu-vignette.bleu-vif { background: var(--bleu); }
.actu-vignette::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 22px);
}
.actu-corps { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.actu-etiquette { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--rouge); }
.actu-corps h3 { font-size: 17px; font-weight: 600; }
.actu-date { font-size: 13px; color: var(--gris); margin-top: auto; padding-top: 8px; }

/* ===== CHIFFRES ===== */
.chiffres { background: var(--bleu-nuit); padding: 0; border-radius: var(--r-lg); overflow: hidden; }
.chiffres-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.08); }
.chiffre { background: var(--bleu-nuit); padding: 44px 28px; }
.chiffre .nombre { font-size: 42px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.chiffre .etiquette { font-size: 14px; color: #a8acd6; margin-top: 6px; font-weight: 500; }

/* ===== PILIERS ===== */
.piliers-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pilier { background: var(--papier-2); padding: 30px 26px; border-radius: var(--r-md); border: 1px solid var(--ligne); }
.pilier .repere { font-size: 11.5px; font-weight: 700; color: var(--rouge); text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: 14px; }
.pilier h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.pilier p { color: var(--gris); font-size: 14.5px; }

/* ===== INFOS PRATIQUES ===== */
.pratique { background: var(--papier-2); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.pratique-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pratique-carte { background: var(--papier); padding: 28px 30px; border-radius: var(--r-md); border: 1px solid var(--ligne); }
.pratique-carte h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; margin-bottom: 18px; font-weight: 600; }
.pratique-carte h3 svg { width: 22px; height: 22px; color: var(--rouge); flex-shrink: 0; }
.ligne-info { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--ligne); font-size: 14px; }
.ligne-info:last-child { border-bottom: none; }
.ligne-info span:first-child { color: var(--gris); }
.ligne-info span:last-child { font-weight: 600; color: var(--encre); text-align: right; }

/* ===== PAGE ESPACE NUMÉRIQUE (ENT) ===== */
.ent-hero { background: var(--bleu-nuit); color: #fff; padding: 64px 0 48px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.ent-hero .label { color: #8b93ff; margin-bottom: 18px; }
.ent-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.ent-hero p { font-size: 17px; color: #b9bdf0; max-width: 62ch; }

.ent-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: -36px; position: relative; z-index: 2; }
.ent-carte {
  background: var(--papier-2); border-radius: var(--r-lg); padding: 34px 28px;
  box-shadow: var(--ombre-forte); border: 1px solid var(--ligne);
  display: flex; flex-direction: column; gap: 14px;
}
.ent-carte .icone-cercle {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gris-clair); display: flex; align-items: center; justify-content: center; color: var(--bleu);
}
.ent-carte .icone-cercle svg { width: 24px; height: 24px; }
.ent-carte h3 { font-size: 19px; font-weight: 700; }
.ent-carte p { color: var(--gris); font-size: 14px; flex: 1; }

.ent-aide {
  margin-top: 56px; background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--r-md);
  padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.ent-aide h4 { font-size: 17px; margin-bottom: 4px; font-weight: 700; }
.ent-aide p { color: var(--gris); font-size: 14.5px; }

/* ===== PAGES SIMPLES ===== */
.page-entete { padding: 56px 0 8px; }
.page-entete h1 { font-size: 34px; margin-bottom: 10px; font-weight: 800; }
.page-entete p { font-size: 17px; color: var(--gris); max-width: 62ch; }

.encadre {
  margin-top: 40px; background: var(--papier-2); border: 1px solid var(--ligne); border-left: 5px solid var(--rouge);
  border-radius: var(--r-md); padding: 30px 32px;
}
.encadre h4 { font-size: 17px; margin-bottom: 16px; font-weight: 700; }
.grille-horaires { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14.5px; }
.grille-horaires div strong { color: var(--bleu-nuit); }
.note-bas { margin-top: 16px; color: var(--gris); font-size: 13px; }

/* ===== CONTACT ===== */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-carte { background: var(--papier-2); border-radius: var(--r-md); padding: 30px 32px; border: 1px solid var(--ligne); }
.contact-carte h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; margin-bottom: 16px; font-weight: 600; }
.contact-carte h3 svg { width: 22px; height: 22px; color: var(--rouge); }
.contact-carte p { font-size: 14.5px; color: var(--gris); margin-bottom: 6px; }
.contact-carte p strong { color: var(--encre); }
.contact-formulaire { grid-column: 1 / -1; background: var(--bleu-nuit); color: #fff; border-radius: var(--r-lg); padding: 40px; text-align: center; }
.contact-formulaire h3 { color: #fff; margin-bottom: 8px; font-weight: 700; }
.contact-formulaire p { color: #b9bdf0; margin-bottom: 22px; }
.form-champs { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.form-champs input, .form-champs textarea {
  padding: 13px 18px; border: none; border-radius: var(--r-sm); font-family: inherit;
  font-size: 14.5px; width: 100%; background: rgba(255,255,255,0.95);
}
.form-champs input:focus, .form-champs textarea:focus { outline: 2px solid var(--rouge); }
.form-statut { font-size: 13.5px; color: #b9bdf0; min-height: 18px; }

/* ===== CTA GLOBAL ===== */
.cta { background: var(--rouge); color: #fff; padding: 48px 44px; border-radius: var(--r-lg); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h3 { color: #fff; font-size: 23px; max-width: 40ch; font-weight: 700; }
.cta .btn-primaire { background: #fff; color: var(--rouge); }
.cta .btn-primaire:hover { background: var(--papier); color: var(--rouge); }

/* ===== PIED DE PAGE ===== */
footer { background: var(--encre); color: #c9cbd1; border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: 8px; }
.pied-haut { max-width: 1180px; margin: 0 auto; padding: 64px 28px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.pied-marque { display: flex; gap: 14px; }
.pied-marque img { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.pied-marque strong { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; font-weight: 700; }
.pied-marque p { font-size: 13.5px; line-height: 1.7; color: #9a9ca5; }
.pied-colonne h5 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; font-weight: 600; }
.pied-colonne ul { display: flex; flex-direction: column; gap: 10px; }
.pied-colonne a { color: #b3b5be; font-size: 14px; cursor: pointer; }
.pied-colonne a:hover { color: #fff; }
.pied-bas { border-top: 1px solid rgba(255,255,255,0.08); }
.pied-bas .container { padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.pied-bas .liens-legaux { display: flex; gap: 20px; flex-wrap: wrap; }
.pied-bas a { color: #9a9ca5; }
.pied-bas a:hover { color: #fff; }
.copyright { color: #74767f; font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 73px; left: 12px; right: 12px;
    max-height: 0;
    overflow: hidden;
    background: var(--papier-2);
    border: 1px solid var(--ligne);
    border-radius: var(--r-md);
    box-shadow: var(--ombre-forte);
    transition: max-height 0.25s ease;
    z-index: 99;
  }
  .main-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 2px; background: transparent; padding: 10px; border-radius: 0; }
  .main-nav a { padding: 13px 16px; }
}
@media (max-width: 960px) {
  .acces-grille { grid-template-columns: repeat(2, 1fr); }
  .actus-grille { grid-template-columns: 1fr; }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); }
  .piliers-grille { grid-template-columns: 1fr; }
  .pratique-grille, .contact-grille { grid-template-columns: 1fr; }
  .ent-grille { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .acces-grille { grid-template-columns: 1fr; }
  .grille-horaires { grid-template-columns: 1fr; }
  .chiffres-grille { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr; padding: 48px 24px 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 48px; }
  .container { padding: 0 18px; }
  .ent-aide { flex-direction: column; align-items: flex-start; }
  .ent-aide .btn, .contact-formulaire .btn { width: 100%; justify-content: center; }
  .entete-section { align-items: flex-start; }
}
@media (max-width: 480px) {
  .btn-discord span { display: none; }
  .btn-discord { padding: 10px; }
  .logo-text .name { font-size: 16px; max-width: 46vw; }
  .header-inner { padding: 12px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}