/* ========================================================================
   Citadellys — feuille de style commune
   Palette extraite du logo : bleu marine, rouge, gris pierre, blanc.
   ======================================================================== */

:root {
  --navy: #0b1e3e;
  --navy-2: #132a52;
  --navy-3: #1c3866;
  --red: #c41e24;
  --red-dark: #9c161b;
  --stone: #6b6d6f;
  --stone-light: #9fa0a2;
  --stone-pale: #e7e9eb;
  --pale: #f5f6f8;
  --white: #ffffff;
  --ink: #10182b;
  --ink-soft: #4a5164;

  --font-head: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif;
  --font-body: "Inter", "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em 0; color: var(--ink-soft); }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-block;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--stone-pale);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.brand img { height: 34px; width: 34px; display: block; }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a.active { color: var(--red); }
.nav-links a:hover { color: var(--red); text-decoration: none; }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--red); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links { position: fixed; inset: 62px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 28px; gap: 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--white);
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 20%, rgba(196,30,36,0.28), transparent 45%),
                     radial-gradient(circle at 8% 90%, rgba(196,30,36,0.14), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #cfd6e6; font-size: 1.15rem; max-width: 620px; }

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 68px 0 56px;
}
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: #cfd6e6; max-width: 680px; font-size: 1.05rem; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); text-decoration: none; background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--red); text-decoration: none; }

/* ---------- Stat tiles ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 44px;
}
.stat-tile {
  background: rgba(255,255,255,0.04);
  padding: 20px 22px;
}
.stat-tile .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}
.stat-tile .label {
  font-size: 0.82rem;
  color: #b7c0d6;
  margin-top: 4px;
}

/* ---------- Sections & cards ---------- */

section { padding: 72px 0; }
section.alt { background: var(--pale); }

.section-head { max-width: 720px; margin-bottom: 44px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--stone-pale);
  border-radius: 8px;
  padding: 28px 26px;
}
.card .icon-mark {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
}
.card.accent { border-top: 3px solid var(--red); }

.divider-line {
  height: 3px;
  width: 56px;
  background: var(--red);
  margin: 0 0 20px 0;
}

blockquote.pull {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--navy);
  border-left: 3px solid var(--red);
  padding-left: 22px;
  margin: 32px 0;
  line-height: 1.4;
}

table.legal {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.legal td { padding: 10px 12px; border-bottom: 1px solid var(--stone-pale); vertical-align: top; }
table.legal td:first-child { color: var(--stone); width: 42%; font-size: 0.88rem; }

ol.roadmap { padding-left: 0; list-style: none; counter-reset: step; }
ol.roadmap li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 22px 46px;
  border-left: 1px solid var(--stone-pale);
  margin-left: 18px;
}
ol.roadmap li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.roadmap li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: 0;
  width: 34px; height: 34px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
ol.roadmap li strong { color: var(--navy); display: block; margin-bottom: 2px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag {
  background: var(--pale);
  border: 1px solid var(--stone-pale);
  color: var(--ink-soft);
  font-size: 0.84rem;
  padding: 6px 12px;
  border-radius: 20px;
}

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfd6e6; }

/* ---------- Forms ---------- */

form.contact-form { display: grid; gap: 18px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--stone-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy-3); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #b7c0d6;
  padding: 52px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-grid a { color: #b7c0d6; }
.footer-grid a:hover { color: var(--white); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--font-head); color: var(--white); font-weight: 700; font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8a93ab;
}
.footer-bottom a { color: #8a93ab; }

@media (max-width: 600px) {
  section { padding: 52px 0; }
  .hero { padding: 68px 0 56px; }
}
