/* Palette : branding/README.md § Palette — source unique de l'identité visuelle. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --petrol: #002636;
  --deep: #00131c;
  --teal: #0caea9;
  --teal-ink: #037f78;
  --orange: #fc8328;
  --red: #f92a24;
  --light: #f4f7f8;
  --gray: #9aa7ad;
  --ink: #002636;
  --muted: #45585f;
  --line: #dbe4e7;
  --surface: #ffffff;
  --radius: 16px;
  --max: 1120px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--light); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(244, 247, 248, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { width: 190px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { background: #e4edf0; color: var(--ink); }
.site-nav .nav-cta { background: var(--petrol); color: #fff; }
.site-nav .nav-cta:hover { background: var(--deep); color: #fff; }
@media (max-width: 720px) {
  .brand img { width: 150px; }
  .site-nav a:not(.nav-cta) { display: none; }
}

/* Boutons, pastilles */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--teal); color: var(--deep); }
.btn-primary:hover { background: #22c4be; color: var(--deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chip { padding: 3px 10px; border-radius: 999px; background: var(--light); border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #a14f08; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Accueil */
.hero { background: radial-gradient(120% 140% at 85% 0%, #003f52 0%, var(--petrol) 45%, var(--deep) 100%); color: #fff; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: clamp(64px, 10vw, 120px); }
.hero h1 span { color: var(--teal); }
.hero p { color: #c9d8dd; font-size: 1.2rem; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mark { justify-self: center; width: min(100%, 360px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-mark { width: 200px; justify-self: start; order: -1; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--light); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; font-weight: 700; }

.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
.project:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 38, 54, 0.12); }
.project .band { padding: 28px 24px; color: #fff; }
.project .band h3 { font-size: 1.6rem; margin: 6px 0 0; }
.project .band p { margin: 6px 0 0; opacity: 0.9; }
.project .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.project .more { margin-top: auto; font-weight: 600; color: var(--teal-ink); }

.steps { counter-reset: step; display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.contact { background: var(--petrol); color: #fff; border-radius: 24px; padding: clamp(32px, 6vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.contact p { color: #c9d8dd; }
.contact .email { font-size: 1.15rem; font-weight: 600; color: #fff; word-break: break-all; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Pages de contenu */
.page-head { padding-block: 48px 8px; }
.page-head .back { display: inline-block; margin-bottom: 16px; font-weight: 500; }
.project-hero { color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 48px); margin-top: 8px; }
.project-hero p { opacity: 0.92; font-size: 1.15rem; margin: 0; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.facts dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { width: 38%; color: var(--muted); font-weight: 500; }
.todo { background: #fff3e6; color: #8a3f00; border: 1px dashed #f0a35a; border-radius: 6px; padding: 1px 6px; font-weight: 500; }

/* Pied de page */
.site-footer { background: var(--deep); color: #cfdade; padding-block: 48px 28px; margin-top: 0; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .name { color: #fff; font-weight: 600; margin: 12px 0 2px; }
.site-footer .small { font-size: 0.9rem; color: var(--gray); margin: 0; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer nav a { color: #e4edf0; text-decoration: none; padding: 6px 0; }
.site-footer nav a:hover { color: var(--teal); }
.site-footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.prose ul.chips { padding-left: 0; }
.prose .chip { margin-bottom: 0; }

/* Page d'attente (production tant que le site complet n'est pas publié — build.mjs) */
.wait-page { background: var(--deep); display: flex; flex-direction: column; min-height: 100vh; }
.wait { flex: 1; display: grid; align-items: center; background: radial-gradient(120% 140% at 85% 0%, #003f52 0%, var(--petrol) 45%, var(--deep) 100%); color: #fff; }
.wait-inner { display: grid; justify-items: start; gap: 18px; padding-block: clamp(56px, 12vw, 120px); }
.wait-pill { background: var(--orange); color: var(--deep); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; padding: 6px 14px; border-radius: 999px; }
.wait-logo { width: min(152px, 40vw); }
.wait h1 { margin: 0; max-width: 20ch; text-wrap: balance; }
.wait h1 span { color: var(--teal); }
.wait p { margin: 0; color: #c9d8dd; font-size: 1.15rem; max-width: 52ch; }
.wait .btn { word-break: break-all; }
.wait-foot { color: var(--gray); font-size: 0.9rem; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wait-foot p { margin: 0; }
