/* ============================================================
   CARRIÈRES RÉELLES — Feuille de style
   Palette : bleu nuit #0d2149 · jaune #f2b705 · rouge #e23b3b
   ============================================================ */

:root {
  --navy: #0d2149;
  --navy-deep: #071530;
  --navy-soft: #16295c;
  --gold: #f2b705;
  --gold-soft: #ffd34d;
  --red: #e23b3b;
  --red-deep: #b92c2c;
  --paper: #f7f4ec;
  --ink: #0a1120;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Anton', 'Archivo', sans-serif; letter-spacing: .01em; }
.bg-paper { background: var(--paper); }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-navy-deep { background: var(--navy-deep) !important; }
.bg-red-cr { background: var(--red) !important; }
.text-red-cr { color: var(--red) !important; }
.border-white-10 { border-color: rgba(255,255,255,.1) !important; }

::selection { background: var(--gold); color: var(--navy-deep); }

/* ---------- Marque ---------- */
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--navy); color: var(--gold);
  font-family: 'Anton', sans-serif; font-size: .9rem;
}
.brand-name { display: block; font-family: 'Anton', sans-serif; font-size: 15px; color: var(--ink); }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-sub { display: block; font-size: 10px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: rgba(10,17,32,.5); }

/* ---------- Navigation ---------- */
.nav-cr {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink) !important; position: relative;
}
.nav-cr:hover { color: var(--navy) !important; }
.nav-cr.active::after {
  content: ''; position: absolute; left: .5rem; right: .5rem; bottom: 0;
  height: 3px; background: var(--gold);
}
.btn-test {
  background: var(--red); color: #fff !important; font-weight: 700;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  border-radius: 999px; padding: .55rem 1.2rem;
}
.btn-test:hover { background: var(--red-deep); color: #fff; }

/* ---------- Titres de section ---------- */
.sec-title {
  display: flex; align-items: flex-start; gap: .9rem;
}
.sec-title::before {
  content: ''; flex: none; width: 6px; align-self: stretch;
  background: var(--gold); border-radius: 3px;
}
.sec-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(13,33,73,.6);
}
.sec-eyebrow.light { color: var(--gold); }
.sec-h {
  font-family: 'Anton', sans-serif; text-transform: uppercase;
  line-height: 1.05; color: var(--ink); margin: 0;
}
.sec-h.light { color: #fff; }

/* ---------- Boutons ---------- */
.btn-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--navy-deep) !important;
  font-weight: 700; font-size: .9rem; padding: .85rem 1.6rem;
  border-radius: 999px; border: 0; transition: all .2s;
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-red {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: #fff !important;
  font-weight: 700; font-size: .9rem; padding: .85rem 1.6rem;
  border-radius: 999px; border: 0; transition: all .2s;
}
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-outline-light-cr {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.5); color: #fff !important;
  font-weight: 600; font-size: .9rem; padding: .85rem 1.6rem;
  border-radius: 999px; transition: all .2s;
}
.btn-outline-light-cr:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-navy {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--navy); color: var(--navy) !important;
  font-weight: 700; font-size: .9rem; padding: .85rem 1.6rem;
  border-radius: 999px; transition: all .2s; background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff !important; }

/* ---------- Hero mosaïque ---------- */
.hero-cr {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  background: var(--navy); min-height: min(82vh, 720px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-mosaic {
  position: absolute; inset: 0; padding: 2rem;
  display: grid; grid-template-columns: repeat(9, 1fr);
  gap: 1rem; opacity: .6;
}
.mosaic-cell { aspect-ratio: 1; border-radius: 9999px; overflow: hidden; background: rgba(255,255,255,.06); }
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .4s; }
.mosaic-cell:hover img { filter: grayscale(0); transform: scale(1.08); }
.mosaic-cell.red { background: rgba(226,59,59,.35); }
.mosaic-cell.gold { background: rgba(242,183,5,.3); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--navy-deep) 0%, rgba(7,21,48,.7) 55%, transparent 100%); }
.hero-content { position: relative; padding: 3rem; }
@media (max-width: 767px) {
  .hero-mosaic { grid-template-columns: repeat(6, 1fr); gap: .75rem; padding: 1.25rem; }
  .hero-content { padding: 1.5rem; }
}

/* ---------- Cartes Alumni ---------- */
.alumni-card { text-decoration: none; display: block; }
.alumni-card .photo-wrap { overflow: hidden; border-radius: .75rem; background: rgba(13,33,73,.05); }
.alumni-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); transition: transform .5s, filter .5s; }
.alumni-card:hover img { transform: scale(1.04); filter: grayscale(0); }
.alumni-card .arrow { transition: transform .25s, color .25s; color: rgba(10,17,32,.4); }
.alumni-card:hover .arrow { transform: translateX(6px); color: var(--gold); }
.alumni-card .name { color: var(--ink); }
.alumni-card .meta { color: rgba(10,17,32,.6); }
.alumni-card .sub { color: rgba(10,17,32,.4); }

/* ---------- Statistiques ---------- */
.stat-num { font-family: 'Anton', sans-serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); }
.stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Mur d'entreprises (défilement) ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 1rem; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.company-chip {
  display: flex; align-items: center; gap: .8rem;
  height: 96px; width: 220px; flex: none;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  border-radius: 1rem; padding: 0 1.25rem; text-decoration: none; transition: all .2s;
}
.company-chip:hover { border-color: rgba(242,183,5,.6); background: rgba(255,255,255,.08); }
.company-logo {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  background: #fff; border-radius: .75rem; padding: 6px; overflow: hidden;
}
.company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.company-logo.lg { width: 80px; height: 80px; border-radius: 1rem; padding: 8px; }
.company-logo.xl { width: 96px; height: 96px; border-radius: 1rem; padding: 10px; }
.company-logo.sm { width: 34px; height: 34px; border-radius: .4rem; padding: 3px; border: 1px solid rgba(255,255,255,.2); }

/* ---------- Fiche Alumni ---------- */
.profile-hero { background: var(--navy); color: #fff; }
.profile-photo { position: relative; min-height: 420px; }
.profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,33,73,.4), transparent); }
.info-line { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.75); font-size: .92rem; }
.info-line a { color: #fff; text-underline-offset: 4px; }
.info-line a:hover { text-decoration: underline; }
.info-ico { color: var(--gold); flex: none; }

/* Citation */
.quote-mark { font-family: 'Anton', sans-serif; font-size: 4rem; line-height: 1; color: var(--gold); }
.quote-text { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; line-height: 1.35; color: #fff; }

/* Chronologie */
.timeline-step { position: relative; padding-left: 2.25rem; padding-bottom: 2rem; border-left: 2px solid rgba(13,33,73,.15); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: ''; position: absolute; left: -8px; top: 2px;
  width: 14px; height: 14px; border-radius: 9999px;
  background: var(--gold); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year { font-family: 'Anton', sans-serif; color: var(--gold); font-size: .95rem; }

/* Compétences */
.skill-tag {
  display: inline-block; border: 1px solid rgba(13,33,73,.25);
  color: var(--navy); border-radius: 999px; padding: .4rem .9rem;
  font-size: .85rem; font-weight: 500; margin: 0 .4rem .5rem 0;
}

/* Partage */
.share-btn {
  width: 42px; height: 42px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.35); color: #fff;
  text-decoration: none; transition: all .2s; font-weight: 700;
}
.share-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* ---------- Filtres Alumni ---------- */
.filter-select {
  appearance: none; background-color: #fff;
  border: 1px solid rgba(10,17,32,.15); border-radius: 999px;
  padding: .6rem 2.4rem .6rem 1.1rem; font-size: .85rem; font-weight: 500;
  color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230d2149' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.filter-select:focus { outline: none; border-color: var(--navy); }

/* ---------- Listes formations ---------- */
.formation-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem .5rem; border-bottom: 1px solid rgba(10,17,32,.08);
  text-decoration: none; transition: background .2s;
}
.formation-row:hover { background: var(--paper); }
.formation-num { font-family: 'Anton', sans-serif; color: var(--gold); }

/* ---------- Quiz ---------- */
.quiz-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.quiz-progress > div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 999px; transition: width .4s; }
.quiz-option {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  color: #fff; border-radius: 1rem; padding: 1rem 1.25rem; text-align: left;
  font-size: .92rem; font-weight: 500; transition: all .2s; margin-bottom: .75rem;
}
.quiz-option:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
.quiz-option .q-arrow { opacity: 0; transition: opacity .2s; }
.quiz-option:hover .q-arrow { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer-cr { background: var(--navy-deep); }
.footer-title { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; display: inline-block; padding: .2rem 0; }
.footer-links a:hover { color: #fff; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; background: #f3f1ea; }
.admin-sidebar { background: var(--navy-deep); min-height: 100vh; }
.admin-sidebar a { color: rgba(255,255,255,.7); text-decoration: none; display: block; padding: .6rem 1rem; border-radius: .5rem; font-size: .9rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.stat-card { border: 1px solid rgba(10,17,32,.1); border-radius: 1rem; background: #fff; padding: 1.25rem; }
.stat-card .num { font-family: 'Anton', sans-serif; font-size: 1.9rem; color: var(--navy); }
.badge-draft { background: #fdf0d5; color: #8a6d00; }
.badge-pub { background: #d8f3dc; color: #1b5e20; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 5px; }


/* Typographie générale du projet */
body,
button,
input,
select,
textarea,
.font-display,
.brand-badge,
.brand-name,
.sec-h {
  font-family: 'Raleway', system-ui, sans-serif !important;
}

.font-display,
.brand-badge,
.brand-name,
.sec-h {
  font-weight: 800;
}
