/* =========================================================
   EDI-Services CI — Feuille de style principale
   Palette LCM : bleu #004AAD / or #FFC000 / bleu foncé #00234F
   Fond blanc — signature : nuage + engrenage + document
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
  --purple: #004AAD;
  --purple-2: #1E63C4;
  --purple-dark: #00234F;
  --gold: #FFC000;
  --gold-deep: #C99A00;
  --tint: #EAF1FB;
  --tint-2: #DCE9FA;
  --ink: #0C1B33;
  --gray: #5B6472;
  --gray-light: #8890A0;
  --white: #FFFFFF;
  --border: #DCE6F5;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px -6px rgba(0,35,79,0.14);
  --shadow: 0 18px 40px -18px rgba(0,35,79,0.28);
  --shadow-lg: 0 30px 60px -20px rgba(0,35,79,0.32);
  --font-display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --container: 1180px;
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--purple-dark);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--gray); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--tint-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--purple); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--purple-dark); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--border); color: var(--purple-dark); background: var(--white); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--purple-dark);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 20px -12px rgba(0,35,79,0.35);
}
.nav-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 18px; padding: 15px 0;
}
.brand { justify-self: center; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--white); white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.68); }

.nav-left, .nav-right { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.nav-left { justify-self: end; }
.nav-right { justify-self: start; }
.nav-left a, .nav-right a {
  font-size: 0.85rem; font-weight: 500; color: var(--white);
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-left a::after, .nav-right a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .2s ease;
}
.nav-left a:hover::after, .nav-left a.active::after,
.nav-right a:hover::after, .nav-right a.active::after { width: 100%; }
.nav-left a.active, .nav-right a.active { color: var(--gold); }

.nav-phone { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.82rem; color: var(--white); white-space: nowrap; }
.nav-phone svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.nav-right .btn { padding: 9px 18px; font-size: 0.82rem; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: none; width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: 10px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--white);
  margin: 5px auto; transition: transform .2s ease, opacity .2s ease;
}

/* Panneau mobile (liste complète séparée, jamais affichée en même temps que la version desktop) */
.nav-links { display: none; }

@media (max-width: 900px) {
  .nav-grid { grid-template-columns: 1fr auto; justify-content: space-between; }
  .nav-left, .nav-right { display: none; }
  .brand { justify-self: start; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: flex; position: fixed; inset: 68px 0 0 0; background: var(--white); flex-direction: column;
    padding: 30px 24px; gap: 6px; transform: translateX(100%); transition: transform .28s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--border); width: 100%; color: var(--ink); font-size: 1rem; white-space: normal; }
  .nav-links a.active { color: var(--purple); }
  .nav-links .btn-gold { display: block; margin-top: 14px; text-align: center; color: var(--purple-dark); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 100px;
  background:
    radial-gradient(560px 420px at 82% -10%, rgba(255,192,0,0.20), transparent 60%),
    radial-gradient(700px 520px at 100% 20%, rgba(0,74,173,0.08), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--purple); }
.hero-lead { font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--gray); font-weight: 500; }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--purple); flex-shrink: 0; }

.hero-visual { position: relative; aspect-ratio: 1/1; max-width: 480px; margin: 0 auto; }
.cloud-breathe { transform-box: view-box; transform-origin: 240px 240px; animation: cloud-breathe 4.5s ease-in-out infinite; }
@keyframes cloud-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo-strip p { margin: 0; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-light); font-weight: 600; }
.logo-strip-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-pill { font-size: 0.8rem; font-weight: 600; color: var(--purple); background: var(--tint); padding: 7px 14px; border-radius: 999px; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  opacity: 0; transform: translateY(18px);
}
.service-card.is-visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--purple); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin-bottom: 12px; font-size: 0.94rem; }
.service-card .kw { font-size: 0.78rem; font-weight: 600; color: var(--gold-deep); }
.service-link { font-size: 0.88rem; font-weight: 600; color: var(--purple); display: inline-flex; align-items: center; gap: 6px; }
.service-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.service-card:hover .service-link svg { transform: translateX(3px); }

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-item { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--tint); }
.process-item .step-no { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--gold-deep); display: block; margin-bottom: 10px; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.check-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--ink); }
.check-list li:last-child { border-bottom: none; }
.check-list svg { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; margin-top: 1px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.stat-card { background: var(--purple-dark); color: var(--white); border-radius: var(--radius); padding: 22px 18px; }
.stat-card .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold); display: block; }
.stat-card .lbl { font-size: 0.78rem; color: #D9C9F0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--purple-dark), var(--purple) 70%);
  border-radius: var(--radius-lg); padding: 56px 50px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #E4D6F7; margin: 0; max-width: 460px; }
.cta-band .btn-gold:hover { background: var(--white); }

/* ---------- Testimonial / quote ---------- */
.quote-card { background: var(--tint); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 34px; }
.quote-card p { font-size: 1.06rem; color: var(--ink); font-style: italic; }
.quote-card cite { font-style: normal; font-weight: 600; color: var(--purple-dark); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.faq-q h3 { margin: 0; font-size: 1.02rem; }
.faq-q .icon { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] .faq-q .icon { transform: rotate(45deg); background: var(--gold); }
.faq-a { padding-top: 12px; font-size: 0.95rem; }

/* ---------- Service detail pages ---------- */
.service-detail { border-bottom: 1px solid var(--border); padding: 56px 0; scroll-margin-top: 90px; }
.service-detail:last-child { border-bottom: none; }
.service-detail-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.service-detail-head .service-icon { width: 58px; height: 58px; }
.service-detail-head .service-icon svg { width: 28px; height: 28px; }
.service-detail-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 860px) { .service-detail-body { grid-template-columns: 1fr; } }
.service-detail ul.check-list { margin-top: 6px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 60px 0 50px; background: var(--tint); }
.breadcrumb { font-size: 0.85rem; color: var(--gray-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--purple); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info-item svg { width: 22px; height: 22px; color: var(--purple); flex-shrink: 0; }
.contact-info-item h3 { margin-bottom: 2px; font-size: 0.98rem; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--purple-dark); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--tint-2);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--gray-light); margin-top: 12px; }
#form-status { font-size: 0.9rem; font-weight: 600; margin-top: 14px; display: none; }
#form-status.ok { color: #1E7A44; display: block; }
#form-status.err { color: #B23A3A; display: block; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 26px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-dark); color: #D9C9F0; padding: 32px 0 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 9px; }
.footer-grid a { display: block; padding: 3px 0; font-size: 0.6rem; color: #D9C9F0; transition: color .18s ease; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { color: #C6B4E0; font-size: 0.6rem; max-width: 320px; }
.site-footer .brand-mark { width: 19px; height: 19px; }
.site-footer .brand { font-size: 0.575rem; gap: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 22px; padding-top: 11px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.55rem; color: #B49FD3; }
.footer-socials { display: flex; gap: 6px; }
.footer-socials a { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; padding: 0; }
.footer-socials svg { width: 8px; height: 8px; color: var(--white); }
.footer-socials a:hover { background: var(--gold); }
.footer-socials a:hover svg { color: var(--purple-dark); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple); color: var(--white); padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 999; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.divider-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); display: inline-block; margin: 0 10px; vertical-align: middle; }
