/* ============================================================
   AXIOVERIF — style.css
   Bureau de contrôle CEE — site vitrine
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Base palette — dérivée du logo AXIOVERIF (marine + turquoise) */
  --navy-950: #071228;
  --navy-900: #0b1e3d;
  --navy-800: #14294a;
  --navy-700: #223a5e;
  --slate-600: #3c4c64;
  --slate-500: #5c6c84;
  --slate-400: #8593a8;

  --paper: #f5f7fa;
  --paper-alt: #eceff4;
  --white: #ffffff;
  --line: #dbe2ec;
  --line-dark: #24385c;

  --teal-600: #0c8f85;
  --teal-500: #12a99c;
  --teal-400: #22c3b3;
  --teal-300: #6fe3d2;
  --teal-100: #e2f8f4;

  --amber-600: #b56a24;
  --amber-100: #faf0e1;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1180px;
  --radius-s: 4px;
  --radius-m: 8px;

  --shadow-card: 0 1px 2px rgba(11, 30, 61, 0.06), 0 8px 24px -12px rgba(11, 30, 61, 0.18);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

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

body {
  background: var(--paper);
  color: var(--slate-600);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--teal-500);
}

.lede {
  font-size: 1.08rem;
  color: var(--slate-500);
  max-width: 62ch;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section--tight { padding: 72px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line-dark);
  color: var(--navy-900);
}
.btn-ghost:hover { border-color: var(--navy-900); background: var(--white); }
.btn-teal {
  background: var(--teal-500);
  color: var(--navy-950);
}
.btn-teal:hover { background: var(--teal-400); transform: translateY(-1px); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header { position: sticky; top: 0; z-index: 100; }
.site-header {
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 247, 250, 0.98);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
}
.nav-links a:not(.nav-cta) { position: relative; padding: 4px 0; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal-500);
  transition: right 0.2s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--navy-950); }

.nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: var(--radius-s);
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.nav-cta:hover { background: var(--teal-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 400px; }
  .nav-links a:not(.nav-cta) { padding: 16px 28px; border-bottom: 1px solid var(--paper-alt); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin: 16px 28px; text-align: center; justify-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--paper);
  padding: 72px 0 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(111, 227, 210, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 227, 210, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, black 10%, transparent 75%);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
}
.hero-copy .eyebrow { color: var(--teal-300); }
.hero-copy .eyebrow::before { background: var(--teal-300); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 1.6rem + 2.1vw, 3.1rem);
  max-width: 21ch;
}
.hero-copy p.lede { color: #b9c4d6; margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-panel {
  align-self: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-m);
  padding: 26px;
}
.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-panel-list { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.hero-panel-list li { display: flex; align-items: baseline; gap: 6px; color: #cfd8e6; font-size: 0.88rem; }
.hero-panel-list strong { font-family: var(--font-mono); color: var(--white); font-size: 1rem; }

.hero-stats {
  position: relative;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat-num { font-family: var(--font-mono); font-size: 1.7rem; color: var(--teal-300); }
.stat-label { font-size: 0.85rem; color: #9aa8bd; max-width: 16ch; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT / CONTEXT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.check-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.check-list li {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-800);
  font-size: 0.96rem;
}
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list svg { flex: none; margin-top: 3px; color: var(--teal-500); }

.status-card {
  background: var(--amber-100);
  border: 1px solid #ecd2ac;
  border-radius: var(--radius-m);
  padding: 28px;
}
.status-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-600);
  border: 1px solid #e0b980;
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.status-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.status-card p { font-size: 0.94rem; color: var(--slate-600); }
.status-card p + p { margin-top: 12px; }
.status-card strong { color: var(--navy-900); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRESTATIONS
   ============================================================ */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.service-item {
  background: var(--white);
  padding: 32px 28px;
}
.service-index {
  font-family: var(--font-mono);
  color: var(--teal-600);
  font-size: 0.85rem;
}
.service-item h3 { margin-top: 14px; }
.service-item p { margin-top: 10px; font-size: 0.92rem; color: var(--slate-500); }

@media (max-width: 820px) {
  .services-list { grid-template-columns: 1fr; }
}

/* ============================================================
   PARCOURS D'UNE MISSION (timeline)
   ============================================================ */
.timeline { position: relative; margin-top: 8px; }
.timeline-track {
  position: absolute;
  left: 19px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-track-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--teal-500), var(--navy-800));
  transition: height 0.2s ease-out;
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  padding: 22px 0;
}
.timeline-marker {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate-500);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  z-index: 1;
}
.timeline-step.is-active .timeline-marker {
  border-color: var(--teal-500);
  color: var(--white);
  background: var(--teal-500);
}
.timeline-step.is-relecture .timeline-marker { border-style: dashed; }
.timeline-body {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.timeline-step:last-child .timeline-body { border-bottom: 0; }
.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-head h3 { font-size: 1.08rem; }
.timeline-phase {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-500);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.timeline-step.is-relecture .timeline-phase {
  color: var(--teal-600);
  border-color: var(--teal-400);
}
.timeline-body p { margin-top: 8px; font-size: 0.92rem; color: var(--slate-500); max-width: 60ch; }

/* ============================================================
   PERIMETRE (FOS scope)
   ============================================================ */
.scope-list { margin-top: 8px; }
.scope-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.scope-list .scope-row:last-of-type { border-bottom: 1px solid var(--line); }
.scope-num { font-family: var(--font-mono); color: var(--slate-400); font-size: 0.95rem; }
.scope-row h3 { font-size: 1.05rem; }
.scope-row p { margin-top: 6px; font-size: 0.9rem; color: var(--slate-500); max-width: 60ch; }
.scope-codes { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.scope-codes span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--navy-800);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 4px 9px;
}

.scope-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 28px 32px;
}
.scope-cta p { color: #c3cddc; margin-top: 6px; font-size: 0.92rem; max-width: 52ch; }
.scope-cta h3 { color: var(--white); }

/* ============================================================
   WHY / PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.pillar { border-top: 2px solid var(--navy-900); padding-top: 18px; }
.pillar-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-600); }
.pillar h3 { font-size: 1rem; margin-top: 10px; }
.pillar p { font-size: 0.86rem; margin-top: 8px; color: var(--slate-500); }

@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--navy-950); color: var(--paper); border-bottom: none; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-section h2 { color: var(--white); max-width: 14ch; }
.contact-section .lede { color: #b9c4d6; margin-top: 18px; }
.contact-cards { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.12); border-radius: var(--radius-m); overflow: hidden; }
.contact-card {
  background: rgba(255,255,255,0.04);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.15s ease;
}
.contact-card:hover { background: rgba(255,255,255,0.08); }
.contact-card svg { flex: none; color: var(--teal-300); }
.contact-card-label { font-family: var(--font-mono); font-size: 0.72rem; color: #93a2b8; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-card-value { font-size: 1.05rem; color: var(--white); font-weight: 500; margin-top: 3px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: #aab6c9; }
.footer-top {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-logo { height: 30px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 40ch; color: #93a2b8; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--teal-300); }

.footer-bottom {
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #7c8aa0;
}

.legal-disclosure { padding: 0 0 34px; }
.legal-disclosure summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: #7c8aa0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legal-disclosure summary::-webkit-details-marker { display: none; }
.legal-disclosure summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: #7c8aa0;
  transition: transform 0.15s ease;
}
.legal-disclosure[open] summary::before { content: "–"; }
.legal-disclosure summary:hover { color: #aab6c9; }
.legal-content {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #8a97ac;
  max-width: 74ch;
}
.legal-content h5 {
  color: #aab6c9;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  margin-top: 16px;
}
.legal-content h5:first-child { margin-top: 0; }
.legal-content p { margin-top: 6px; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reveal-on-load (single orchestrated hero moment) ---------- */
.hero-copy, .hero-panel {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}
.hero-panel { animation-delay: 0.15s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-panel { opacity: 1; transform: none; animation: none; }
}
