/* ==========================================================================
   Diagnostima – site vitrine
   ========================================================================== */

:root {
  --orange: #e8730c;
  --orange-600: #c95f04;
  --orange-50: #fff4ea;
  --ink: #14181f;
  --ink-2: #2a313c;
  --muted: #5d6673;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, .06), 0 2px 8px rgba(20, 24, 31, .05);
  --shadow: 0 10px 30px rgba(20, 24, 31, .08);
  --font-title: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 40px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 26px; height: 26px; }

/* Boutons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-title); font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(232, 115, 12, .3); }
.btn--primary:hover { background: var(--orange-600); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--orange-600); }
.btn--line { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--line:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-title); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange-600); background: var(--orange-50); padding: 6px 12px; border-radius: 999px;
}
.eyebrow .ico { width: 15px; height: 15px; }

/* Topbar ------------------------------------------------------------------- */
.topbar { background: var(--ink); color: #c9ced6; font-size: 13.5px; }
.topbar__inner { display: flex; gap: 24px; justify-content: flex-end; align-items: center; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item .ico { width: 15px; height: 15px; }
.topbar a:hover { color: #fff; }
.topbar__item:first-child { margin-right: auto; }
.topbar__phone { color: #fff; font-weight: 600; }

/* Header ------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-title); font-size: 20px; font-weight: 800; color: var(--orange); letter-spacing: .02em; text-transform: uppercase; }
.brand__text small { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { font-weight: 500; padding: 8px 14px; border-radius: 8px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav > a:not(.btn):hover { color: var(--orange-600); background: var(--orange-50); }
.nav > a:not(.btn)[aria-current="page"] { color: var(--orange-600); }
.nav__cta { margin-left: 10px; }
.nav__phone { display: none; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(232,115,12,.14), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(232,115,12,.08), transparent 60%),
    linear-gradient(180deg, #fff, #fbfbfc);
}
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.02em; margin: 18px 0 18px; }
.hl { color: var(--orange); }
.lead { font-size: 18.5px; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--ink-2); }
.hero__checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__checks .ico { color: var(--orange); width: 17px; height: 17px; stroke-width: 2.6; }

.hero__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.hero__card-head { display: flex; justify-content: center; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.hero__card-head img { width: 150px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.pillars li { display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); border-radius: var(--radius); padding: 16px; font-family: var(--font-title); font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.pillars .ico { color: var(--orange); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.stats div { background: var(--bg-alt); border-radius: var(--radius); padding: 16px; }
.stats dt { font-family: var(--font-title); font-weight: 800; font-size: 28px; color: var(--ink); }
.stats dd { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.promo { display: flex; gap: 14px; align-items: center; background: var(--orange-50); color: var(--orange-600); border-radius: var(--radius); padding: 14px 16px; }
.promo p { color: var(--ink-2); font-size: 14.5px; }
.promo strong { display: block; color: var(--orange-600); font-family: var(--font-title); text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; }

/* Sections ----------------------------------------------------------------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.01em; margin: 14px 0 12px; }
.section__head p { color: var(--muted); font-size: 17px; }

/* Atouts */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-50); color: var(--orange); margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Diagnostics */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter { font-family: var(--font-title); font-weight: 600; font-size: 14.5px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--ink-2); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.diags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.diag a { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
.diag a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(232,115,12,.4); }
.diag__badge { align-self: flex-start; font-family: var(--font-title); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-600); background: var(--orange-50); padding: 4px 10px; border-radius: 6px; }
.diag h3 { font-size: 17px; margin-top: 4px; }
.diag p { font-size: 14px; color: var(--muted); flex: 1; }
.diag__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); margin-top: 6px; }
.diag__more .ico { width: 16px; height: 16px; transition: transform .2s; }
.diag a:hover .diag__more { color: var(--orange-600); }
.diag a:hover .diag__more .ico { transform: translateX(3px); }
.diag.is-hidden { display: none; }
.diag.is-in { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 34px 28px 30px; border-radius: var(--radius-lg); background: var(--bg-alt); }
.step__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-title); font-weight: 800; font-size: 46px; line-height: 1; color: rgba(20,24,31,.07); }
.step__ico { color: var(--orange); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta { padding: 0 0 96px; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 56px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--orange), var(--orange-600));
  box-shadow: 0 20px 50px rgba(201,95,4,.3);
}
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.9); max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer ------------------------------------------------------------------- */
.footer { background: var(--ink); color: #aab1bc; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr .9fr 1.1fr 1.2fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer__col li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.brand--footer { margin-bottom: 18px; }
.brand--footer img { background: #fff; border-radius: 10px; padding: 4px; }
.brand--footer .brand__text strong { color: var(--orange); }
.brand--footer .brand__text small { color: #8a929e; }
.footer__about p { max-width: 420px; margin-bottom: 18px; }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.social:hover { background: var(--orange); }
.footer__zones li { margin-bottom: 6px; font-size: 14.5px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { margin-top: 3px; color: var(--orange); }
.footer__contact a[href^="tel:"] { white-space: nowrap; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .diags { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .diags { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__about { grid-column: 1 / -1; }

  .burger { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 14px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__phone { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar__item:not(.topbar__phone) { display: none; }
  .topbar__inner { justify-content: center; }
  .brand__text small { display: none; }
  .section { padding: 64px 0; }
  .features, .diags { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .cta { padding-bottom: 64px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* En-tete des pages interieures */
.page-hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(232,115,12,.14), transparent 60%),
    linear-gradient(180deg, #fff, #fbfbfc);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 10px; }
.page-hero .lead { font-size: 17px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); font-weight: 500; }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb span { margin: 0 6px; opacity: .5; }
@media (max-width: 640px) { .page-hero { padding: 32px 0 28px; } }
