/* Servines — palette tirée du logo : cyan, jaune, sur un bleu nuit institutionnel */
:root {
  --blanc: #FFFFFF;
  --fond: #F6F8FA;
  --pierre: #EEF2F5;
  --nuit: #0E2236;
  --bleu: #0B6E99;
  --bleu-fonce: #08587B;
  --cyan: #17A4CF;
  --soleil: #F8D904;
  --encre: #14202E;
  --ardoise: #536173;
  --trait: #DCE3EA;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Boutons */
.btn {
  display: inline-block;
  background: var(--bleu);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8em 1.4em;
  border: 2px solid var(--bleu);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.btn-small { padding: 0.5em 1.1em; font-size: 0.95rem; }
.btn-accent { background: var(--soleil); border-color: var(--soleil); color: var(--nuit); }
.btn-accent:hover { background: #E6C800; border-color: #E6C800; color: var(--nuit); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.btn-ghost { background: transparent; color: var(--bleu); }
.btn-ghost:hover { background: var(--fond); color: var(--bleu-fonce); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; /* blanc pur : identique au fond du logo */
  border-bottom: 1px solid var(--trait);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--encre); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--bleu); }
.menu-toggle { display: none; }

/* Accueil */
.hero { background: var(--nuit); color: #fff; padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 17ch; }
.lead { margin-top: 24px; font-size: 1.2rem; color: #C3CEDB; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { width: 100%; max-width: 440px; justify-self: end; }

.hero-facts {
  list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 32px 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-facts li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 3px solid var(--cyan); }
.hero-facts strong { font-weight: 600; font-size: 1.05rem; }
.hero-facts span { color: #A9B6C6; font-size: .95rem; }

@media (prefers-reduced-motion: no-preference) {
  .bulles { animation: apparaitre .9s cubic-bezier(.2, .7, .2, 1) both .3s; transform-origin: 400px 150px; }
  @keyframes apparaitre { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
}

/* Sections */
.services, .method, .about, .contact { padding: clamp(64px, 9vw, 112px) 0; }
.section-intro { margin-top: 16px; color: var(--ardoise); font-size: 1.15rem; max-width: 58ch; }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); margin-top: 48px; }
.service {
  background: #fff; padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--trait); border-top: 3px solid var(--cyan); border-radius: var(--radius);
}
.service h3 { font-size: 1.5rem; }
.service > p { margin-top: 12px; color: var(--ardoise); }
.service ul { list-style: none; margin: 24px 0 0; padding: 0; }
.service li { padding: 12px 0 12px 26px; border-top: 1px solid var(--trait); position: relative; }
.service li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 12px; height: 7px; border-left: 2px solid var(--bleu); border-bottom: 2px solid var(--bleu);
  transform: rotate(-45deg);
}
.aside { margin-top: 40px; max-width: 70ch; color: var(--ardoise); padding: 20px 24px; background: var(--fond); border-radius: var(--radius); }
.aside strong { color: var(--encre); font-weight: 600; }

.method { background: var(--pierre); }
.steps { list-style: none; counter-reset: etape; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: etape; position: relative; padding-top: 56px; }
.steps li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-weight: 700; font-size: 1.6rem; color: var(--bleu); line-height: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 12px; left: 52px; right: -16px;
  border-top: 1px solid #C2CCD6;
}
.steps p { margin-top: 10px; color: var(--ardoise); }

.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about h2 { max-width: 14ch; }
.about-text p { font-size: 1.15rem; max-width: 60ch; }
.about-text p + p { margin-top: 20px; color: var(--ardoise); }

.contact { background: var(--fond); border-top: 1px solid var(--trait); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.contact-info > p { margin-top: 16px; color: var(--ardoise); max-width: 40ch; }
.contact-info dl { margin: 36px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.contact-info dt { color: var(--ardoise); }
.contact-info dd { margin: 0; font-weight: 500; }

.contact-form { background: #fff; border: 1px solid var(--trait); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ardoise); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--encre);
  background: #fff; border: 1px solid #BCC6D1; border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(23, 164, 207, .25); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .9rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.legal-note { margin-top: 16px; font-size: .9rem; color: var(--ardoise); }
.form-status { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.form-status.ok { background: #E3F1E7; color: #1D5B33; }
.form-status.err { background: #FBE7E6; color: #8C1D18; }

/* Pied de page */
.site-footer { background: var(--nuit); color: #A9B6C6; padding: 28px 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #DCE4EE; }

/* Page mentions légales */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 44px; }
.legal p, .legal ul { margin-top: 12px; color: #2C3A55; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-facts { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .steps li:nth-child(2n)::after { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle {
    display: block; font: inherit; font-weight: 600; color: var(--encre);
    background: none; border: 1px solid var(--trait); border-radius: var(--radius); padding: 6px 16px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: #fff; border-bottom: 1px solid var(--trait);
    padding: 20px var(--gutter) 28px;
  }
  .nav.open { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}
