/* Codalisia — feuille de style commune */
:root {
  --accent: #2f3fc4;
  --accent-dark: #1f2a8a;
  --accent-soft: #eef0fd;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4b5563;
  --line: #e5e7eb;
  --field: #9ca3af;
  --bg-alt: #f6f7fb;
  --white: #ffffff;
  --radius: 16px;
  --max: 1200px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 10;
}

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
}
.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.main-nav a { color: var(--ink-2); text-decoration: none; }
.main-nav a:hover { color: var(--ink); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.main-nav .btn-primary { color: var(--white); font-weight: 500; font-size: 15px; }
.btn-secondary { color: var(--ink); border-color: #d1d5db; background: var(--white); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* Titres */
h1, h2, h3 { margin: 0; }
.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.title-xl {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
}
.title-l {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0;
  font-size: 20px;
  color: var(--muted);
  max-width: 720px;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: #d1d5db; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 24px; }

.hero { padding: 96px 0 88px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Cartes services */
.card {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card h3 { font-family: var(--font-title); font-weight: 600; font-size: 26px; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: #1f2937; }
.card .for-who { font-size: 14px; }
.card .for-who strong { color: var(--ink); }
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.steps li {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.steps .num { font-family: var(--font-title); font-weight: 600; font-size: 15px; color: var(--accent); }
.steps h3 { font-size: 20px; font-weight: 600; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

/* Atouts */
.why { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.why h3 { font-size: 20px; font-weight: 600; color: var(--white); }
.why p { margin: 0; }

/* À propos */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-photo {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px dashed #a5adeb;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 14px;
  text-align: center;
  padding: 16px;
  object-fit: cover;
}
.about-text { flex: 999 1 480px; min-width: 0; }
.about-text p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-intro { flex: 1 1 340px; min-width: 0; }
.contact-intro p { margin: 0; }
.contact-form {
  flex: 1 1 480px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row .field { flex: 1 1 200px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input,
.field select,
.field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.btn:focus-visible,
a:focus-visible { outline: 3px solid #a5adeb; outline-offset: 2px; }
.contact-form .btn { align-self: flex-start; }
.form-status { margin: 0; font-size: 15px; min-height: 1.6em; }
.form-status.ok { color: #166534; }
.form-status.error { color: #b91c1c; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Pages simples (mentions légales, bientôt disponible) */
.page-simple { padding: 72px 0; }
.page-simple .container { max-width: 800px; }
.page-simple h2 { font-size: 22px; margin-top: 32px; }
.page-simple p { color: var(--ink-2); }

.soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.soon main {
  flex: 1;
  display: flex;
  align-items: center;
}
.soon main .container { width: 100%; }
.soon .stack { padding: 80px 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
