/* =========================================================================
   TEIWA — style.css
   Page statique unique, sans framework. Palette et typographie fidèles à
   l'identité de marque (logo) : bleu nuit / bleu électrique / blanc.
   ========================================================================= */

/* ---- Fonts (auto-hébergées, licence OFL dans assets/fonts/) ---- */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --navy-900: #071935;
  --navy-800: #0f2748;

  --blue-700: #0251b5;
  --blue-600: #0363de;  /* interactive blue — 5.46:1 contrast on white */
  --blue-50: #eef4ff;

  --ink: #14202f;
  --slate-600: #45505f;
  --slate-500: #5b6472;
  --slate-400: #6b7684;
  --line: #e4e8ee;
  --offwhite: #f7f8fa;
  --paper: #fbfbfc;

  --font-display: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;

  --radius: 10px;
  --max: 1040px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, li, form { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--navy-900); letter-spacing: -0.01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 0.65rem 1rem;
  border-radius: 6px; font-size: 0.875rem; transition: top 0.15s ease-out;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Layout helpers ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section.alt { background: var(--offwhite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 88px 0; } }

h2 { font-size: 1.75rem; line-height: 1.15; }
@media (min-width: 768px) { h2 { font-size: 2.125rem; } }
.section-head { max-width: 34rem; margin-bottom: 8px; }
.section-lead { margin-top: 14px; font-size: 1.0625rem; line-height: 1.6; color: var(--slate-600); max-width: 34rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px; font-weight: 500; font-size: 0.95rem; padding: 11px 20px;
  cursor: pointer; border: none; transition: background 0.15s ease-out;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--navy-900); border: 1px solid rgba(7,25,53,0.15); }
.btn-ghost:hover { background: rgba(7,25,53,0.04); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,252,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 28px; width: auto; }

/* ---- Hero ---- */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: 2.375rem; line-height: 1.1; letter-spacing: -0.02em; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
.hero .lead { margin-top: 22px; max-width: 46ch; font-size: 1.125rem; line-height: 1.6; color: var(--slate-600); }
.hero .actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) { .hero .actions { flex-direction: row; align-items: center; } }
.hero-visual svg { width: 100%; height: auto; }

/* ---- Cards (activité) ---- */
.cards-grid { margin-top: 36px; display: grid; gap: 20px; }
@media (min-width: 700px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; }
.icon-chip {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-600);
}
.panel h3 { margin-top: 18px; font-size: 1.05rem; }
.panel p { margin-top: 8px; font-size: 0.925rem; color: var(--slate-500); line-height: 1.55; }

/* ---- Steps (comment ça marche) ---- */
.steps-grid { margin-top: 36px; display: grid; gap: 28px; }
@media (min-width: 700px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step .num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  font-family: var(--font-display); font-size: 0.95rem;
}
.step h3 { margin-top: 14px; font-size: 1.05rem; }
.step p { margin-top: 6px; font-size: 0.925rem; color: var(--slate-500); line-height: 1.55; }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.contact-coords { margin-top: 22px; display: grid; gap: 8px; font-size: 0.95rem; color: var(--slate-600); }
.contact-coords a { color: var(--navy-900); font-weight: 500; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--navy-900); }
.req { color: var(--blue-600); }
input, textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px;
  background: #fff; width: 100%;
}
input:focus, textarea:focus { border-color: var(--blue-600); outline: none; }
textarea { resize: vertical; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.error { color: #b42318; }
.form-status.success { color: var(--blue-700); }
.form-note { font-size: 0.8rem; color: var(--slate-400); margin-top: -4px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 36px 0; }
.footer-inner { display: grid; gap: 10px; }
.footer-logo { height: 22px; }
.legal-note { font-size: 0.8rem; color: var(--slate-500); line-height: 1.6; max-width: 42rem; }
.copyright { font-size: 0.75rem; color: var(--slate-400); }
