/* =========================================================
   ONACC × Le Labo — Thème institutionnel
   Reprend strictement la palette et le système typographique
   du site Le Labo (navy / or, Fraunces + Inter + IBM Plex Mono)
   ========================================================= */

:root {
  --navy-950: #081221;
  --navy-900: #0f1f3d;
  --navy-800: #16294c;
  --navy-700: #1c3a63;
  --navy-100: #e7ebf3;

  --gold-600: #b8863d;
  --gold-500: #c9974a;
  --gold-400: #d9ad6c;
  --gold-200: #f0dfc0;
  --gold-100: #f7ecd8;

  --cream-50: #faf8f4;
  --cream-100: #f3efe6;

  --ink-900: #1a2130;
  --ink-600: #5b6472;
  --ink-400: #8b93a1;

  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 60px -20px rgba(15, 31, 61, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(15, 31, 61, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: var(--white);
  padding: 12px 20px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-600);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold-500); display: inline-block; }
.eyebrow-light { color: var(--gold-400); }

.section { padding: 100px 0; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head.text-start { margin: 0 0 40px; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-600); font-size: 1.02rem; }

.btn { border-radius: 999px; font-weight: 600; padding: 0.7rem 1.5rem; font-size: 0.92rem; transition: all 0.3s var(--ease); border: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--white); box-shadow: 0 12px 28px -10px rgba(184,134,61,0.5); }
.btn-gold:hover { color: var(--white); transform: translateY(-2px); }
.btn-outline-navy { background: transparent; color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-900); }

/* =========================================================
   Topbar + header
   ========================================================= */
.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 7px 0;
}
.topbar a { color: rgba(255,255,255,0.75); }
.topbar a:hover { color: var(--gold-400); }
.topbar .divider { opacity: 0.3; margin: 0 10px; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250,248,244,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,31,61,0.08);
}
.navbar { padding: 12px 0; }
.navbar-brand img { height: 42px; }
.nav-link { color: var(--navy-900); font-weight: 500; font-size: 0.9rem; padding: 0.5rem 0.8rem !important; }
.nav-link:hover { color: var(--gold-600); }
.dropdown-menu { border: none; box-shadow: var(--shadow-card); border-radius: 14px; padding: 8px; }
.dropdown-item { border-radius: 8px; font-size: 0.9rem; padding: 8px 14px; }
.dropdown-item:hover { background: var(--cream-100); color: var(--gold-600); }
.btn-login { border: 1.5px solid var(--navy-900); color: var(--navy-900); border-radius: 999px; padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 600; }
.btn-login:hover { background: var(--navy-900); color: var(--white); }

/* =========================================================
   Hero carousel
   ========================================================= */
.hero-carousel { position: relative; }
.hero-slide {
  position: relative;
  height: 560px;
  display: flex;
  align-items: flex-end;
}
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,18,33,0.92) 0%, rgba(8,18,33,0.45) 55%, rgba(8,18,33,0.15) 100%);
}
.hero-slide-content { position: relative; z-index: 1; padding: 48px 0; color: var(--white); }
.hero-tags { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-tag-badge { background: var(--gold-500); color: var(--navy-950); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.hero-slide-content h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 760px; margin-bottom: 20px; }
.hero-slide-content .btn { margin-top: 4px; }
@media (max-width: 767.98px) { .hero-slide { height: 460px; } }

.hero-carousel .carousel-indicators { bottom: 18px; }
.hero-carousel .carousel-indicators [data-bs-target] { background: var(--gold-400); width: 8px; height: 8px; border-radius: 50%; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { width: 5%; opacity: 0.8; }

/* =========================================================
   Mission
   ========================================================= */
.mission-statement {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  margin-bottom: 44px;
}
.mission-statement::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(184,134,61,0.25), transparent 70%);
}
.mission-statement p { position: relative; }

.mission-axis-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease);
}
.mission-axis-card:hover { transform: translateY(-6px); }
.mission-axis-media { height: 190px; overflow: hidden; }
.mission-axis-media img { width: 100%; height: 100%; object-fit: cover; }
.mission-axis-body { padding: 26px; }
.mission-axis-tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-600); margin-bottom: 8px; display: block; }
.mission-axis-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.mission-axis-subtitle { display: block; font-size: 0.86rem; color: var(--ink-400); margin-bottom: 12px; }
.mission-axis-body p { color: var(--ink-600); font-size: 0.94rem; }

/* =========================================================
   Axes stratégiques
   ========================================================= */
.section-axes { background: var(--cream-100); }
.axis-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease);
}
.axis-card:hover { transform: translateY(-6px); }
.axis-card.is-featured { border: 2px solid var(--gold-400); }
.axis-media { height: 170px; overflow: hidden; position: relative; }
.axis-media img { width: 100%; height: 100%; object-fit: cover; }
.axis-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold-500); color: var(--navy-950);
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.axis-body { padding: 22px; }
.axis-body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.axis-body p { color: var(--ink-600); font-size: 0.9rem; }

/* =========================================================
   Services de recherche économique
   ========================================================= */
.service-cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.service-cat-media { height: 170px; overflow: hidden; }
.service-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.service-cat-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-cat-tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-600); margin-bottom: 8px; }
.service-cat-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-cat-body > p { color: var(--ink-600); font-size: 0.9rem; margin-bottom: 16px; }
.service-cat-list { margin-bottom: 20px; flex: 1; }
.service-cat-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; color: var(--ink-900); margin-bottom: 9px; }
.service-cat-list i { color: var(--gold-600); margin-top: 3px; font-size: 0.8rem; flex-shrink: 0; }
.service-cat-link { font-weight: 600; color: var(--gold-600); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.service-cat-link i { transition: transform 0.25s var(--ease); }
.service-cat-card:hover .service-cat-link i { transform: translate(3px, -3px); }

/* =========================================================
   Publication (note d'information)
   ========================================================= */
.section-publication { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.section-publication::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 0% 0%, rgba(184,134,61,0.18), transparent 70%); }
.section-publication .container { position: relative; }
.publication-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.publication-media { position: relative; }
.publication-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.publication-body { padding: 36px; }
.publication-kicker { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-600); margin-bottom: 10px; display: block; }
.publication-body h3 { font-size: 1.3rem; margin-bottom: 14px; color: var(--navy-900); }
.publication-body p { color: var(--ink-600); font-size: 0.92rem; margin-bottom: 20px; }
.publication-meta { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--ink-400); margin-bottom: 20px; flex-wrap: wrap; }
.publication-meta i { color: var(--gold-600); margin-right: 4px; }
@media (max-width: 767.98px) { .publication-card { grid-template-columns: 1fr; } }

/* =========================================================
   Actualités
   ========================================================= */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease);
}
.news-card:hover { transform: translateY(-6px); }
.news-media { height: 190px; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-body { padding: 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); margin-bottom: 12px; }
.news-meta .tag { background: var(--gold-100); color: var(--gold-600); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.news-body h3 { font-size: 1.02rem; margin-bottom: 10px; }
.news-body p { color: var(--ink-600); font-size: 0.88rem; margin-bottom: 14px; }
.news-link { font-weight: 600; color: var(--gold-600); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================
   Partenaires
   ========================================================= */
.section-partners { background: var(--cream-100); }
.partners-marquee {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px;
}
.partner-chip {
  background: var(--white);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-900);
  box-shadow: var(--shadow-card);
  transition: all 0.25s var(--ease);
}
.partner-chip:hover { background: var(--navy-900); color: var(--white); transform: translateY(-3px); }

/* =========================================================
   CTA newsletter
   ========================================================= */
.section-cta { background: var(--navy-950); color: var(--white); }
.cta-title { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.cta-sub { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-form input { border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: var(--white); padding: 0.75rem 1.2rem; flex: 1; min-width: 220px; }
.cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form input:focus { outline: none; border-color: var(--gold-500); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.72); padding: 64px 0 26px; font-size: 0.9rem; }
.footer-brand img { height: 46px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand h5 { color: var(--white); font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 6px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-badges span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; }
.site-footer h6 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--gold-400); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.site-footer hr { border-color: rgba(255,255,255,0.12); margin: 40px 0 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-600); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s var(--ease); z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-900); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
