/* ==========================================================================
   Modulo IT — design system
   Bleu Minuit #142B42 · Corail #EE6146 · Blanc Cassé #F8F7F4
   ========================================================================== */

/* ---------- Polices auto-hébergées (RGPD : aucun appel à Google Fonts) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --midnight: #142b42;
  --midnight-soft: #1e3a58;
  --midnight-deep: #0e2033;
  --coral: #ee6146;
  --coral-dark: #d34e35;
  --coral-soft: rgba(238, 97, 70, 0.1);
  --cream: #f8f7f4;
  --white: #ffffff;
  --ink: #22374c;
  --muted: #5d6d7e;
  --line: rgba(20, 43, 66, 0.12);
  --line-soft: rgba(20, 43, 66, 0.08);
  --whatsapp: #1fa855;

  --shadow-sm: 0 1px 2px rgba(20, 43, 66, 0.06), 0 2px 8px rgba(20, 43, 66, 0.05);
  --shadow-md: 0 6px 24px rgba(20, 43, 66, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 43, 66, 0.16);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --container: 1160px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--coral);
  color: var(--white);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

p {
  overflow-wrap: break-word;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section--tight {
  padding-top: 0;
}

.section--dark {
  background: var(--midnight);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-heading p,
.lead {
  margin: 18px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(238, 97, 70, 0.32);
}

.btn-primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 12px 30px rgba(238, 97, 70, 0.4);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--midnight);
}

.btn-ghost:hover {
  border-color: var(--midnight);
}

.btn-ghost--light {
  border-color: rgba(248, 247, 244, 0.35);
  background: transparent;
  color: var(--cream);
}

.btn-ghost--light:hover {
  border-color: var(--cream);
  background: rgba(248, 247, 244, 0.08);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #188a45;
}

/* Boutons sur fond sombre */
.on-dark .btn-ghost {
  border-color: rgba(248, 247, 244, 0.3);
  background: transparent;
  color: var(--cream);
}

.on-dark .btn-ghost:hover {
  border-color: var(--cream);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral);
  font-weight: 600;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 24px rgba(20, 43, 66, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand small {
  display: none;
  color: var(--muted);
  font-size: 0.74rem;
}

@media (min-width: 640px) {
  .brand small {
    display: block;
  }
}

.nav-toggle {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--midnight);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  position: fixed;
  inset: 86px 20px auto;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  max-height: calc(100svh - 104px);
  overflow-y: auto;
}

.nav-links.is-open {
  display: grid;
  gap: 4px;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--midnight);
  font-weight: 500;
  font-size: 0.97rem;
  transition: background 150ms ease, color 150ms ease;
}

.nav-links a:hover {
  background: rgba(20, 43, 66, 0.05);
}

.nav-links a[aria-current="page"] {
  color: var(--coral);
  font-weight: 600;
}

.nav-cta {
  justify-content: center;
  background: var(--coral) !important;
  color: var(--white) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding-inline: 20px !important;
}

.nav-cta:hover {
  background: var(--coral-dark) !important;
}

.lang-switch {
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  min-height: 40px !important;
  padding-inline: 14px !important;
}

@media (min-width: 1000px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .nav-links a {
    min-height: 42px;
    padding: 0 13px;
  }

  .nav-cta {
    margin-left: 10px;
  }

  .lang-switch {
    margin-left: 6px;
  }
}

/* ---------- Hero (accueil) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 43, 66, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 43, 66, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 10%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 10%, black 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--midnight);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.hero h1 {
  max-width: 620px;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero-text {
  margin: 22px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hero-points li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--coral);
  font-weight: 700;
}

@media (min-width: 640px) {
  .hero-points {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 10px 28px;
  }
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 720px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: 72% center;
}

@media (max-width: 959px) {
  .hero-visual img {
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }
}

.hero-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}

.hero-chip strong {
  display: block;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.2;
}

.hero-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 4px rgba(31, 168, 85, 0.16);
}

/* ---------- Page hero (pages internes) ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px);
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
}

.page-hero .lead {
  max-width: 620px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--line);
}

/* ---------- Bande Avant / Module / Après ---------- */

.flow-strip {
  padding-block: clamp(52px, 7vw, 76px);
  color: var(--cream);
}

.flow-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 820px) {
  .flow-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
}

.flow-step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(248, 247, 244, 0.14);
  border-radius: var(--radius);
  background: rgba(248, 247, 244, 0.05);
}

.flow-step.is-accent {
  border-color: rgba(238, 97, 70, 0.55);
  background: rgba(238, 97, 70, 0.12);
}

.flow-step span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-step.is-accent span {
  color: #ff9a86;
}

.flow-step p {
  margin: 0;
  color: rgba(248, 247, 244, 0.88);
  font-size: 0.98rem;
}

.flow-step strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.flow-arrow {
  display: none;
  align-self: center;
  color: var(--coral);
  font-size: 1.4rem;
}

@media (min-width: 820px) {
  .flow-arrow {
    display: block;
  }
}

/* ---------- Cartes services ---------- */

.card-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

a.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(238, 97, 70, 0.4);
  box-shadow: var(--shadow-md);
}

.service-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-card .text-link {
  margin-top: 4px;
  font-size: 0.92rem;
}

.service-card--lg {
  padding: 32px 30px;
}

.service-card--lg h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

.service-card .tech-row {
  margin-top: 2px;
}

.service-card .tech-row span {
  padding: 6px 12px;
  background: var(--cream);
  font-size: 0.8rem;
}

/* ---------- Cas d'usage ---------- */

.usecase-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.usecase-card h3 {
  font-size: 1.05rem;
}

.usecase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Études de cas / scénarios ---------- */

.case-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.case-tag {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card h3 {
  font-size: 1.14rem;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-card p strong {
  color: var(--midnight);
}

.case-metric {
  margin-top: 4px;
  padding: 14px 16px;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--coral-soft);
  color: var(--midnight) !important;
  font-weight: 600;
  font-size: 0.93rem !important;
}

/* ---------- Réalisations / projets ---------- */

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

a.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(238, 97, 70, 0.4);
  box-shadow: var(--shadow-md);
}

.project-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line-soft);
  background: var(--cream);
}

.project-thumb--contain {
  object-fit: contain;
  padding: 26px;
  background: var(--white);
}

.project-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 24px 26px;
}

.project-body h3 {
  font-size: 1.16rem;
}

.project-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.project-body .text-link {
  font-size: 0.92rem;
}

/* ---------- Étapes / process ---------- */

.steps-grid {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step-card .step-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--midnight);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Bloc "En bref" (GEO) ---------- */

.brief {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.brief h2 {
  max-width: 720px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.brief > p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.brief-facts {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
}

@media (min-width: 640px) {
  .brief-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .brief-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.brief-facts div {
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.brief-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brief-facts dd {
  margin: 4px 0 0;
  color: var(--midnight);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Tech chips ---------- */

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-row span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--white);
  color: var(--midnight);
  font-size: 0.88rem;
  font-weight: 500;
}

.tech-row--gap {
  margin-top: 18px;
}

.article-body--push {
  margin-top: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- FAQ ---------- */

.faq-teaser {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.faq-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--midnight);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease;
}

.faq-link::after {
  content: "→";
  color: var(--coral);
  transition: transform 160ms ease;
}

.faq-link:hover {
  transform: translateX(4px);
  border-color: rgba(238, 97, 70, 0.4);
}

.faq-category {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.faq-category > h2 {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--coral);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.faq-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.faq-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 97, 70, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-card h3 {
  font-size: 1.02rem;
  line-height: 1.35;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-card .text-link {
  font-size: 0.9rem;
}

/* ---------- Page réponse (FAQ détail, légal) ---------- */

.article {
  max-width: 780px;
}

.article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.18;
}

.key-answer {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--midnight);
  font-size: 1.06rem;
  font-weight: 500;
}

.article-body p {
  margin: 0 0 18px;
  color: var(--ink);
}

.article-body strong {
  color: var(--midnight);
}

.related {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.related h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px) clamp(26px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: var(--midnight);
  color: var(--cream);
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 97, 70, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-band .eyebrow {
  color: #ff9a86;
}

.cta-band h2 {
  max-width: 640px;
  color: var(--cream);
}

.cta-band p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(248, 247, 244, 0.75);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.contact-channels {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 97, 70, 0.4);
}

.contact-channel .icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral);
}

.contact-channel.is-whatsapp .icon {
  background: rgba(31, 168, 85, 0.12);
  color: var(--whatsapp);
}

.contact-channel strong {
  display: block;
  color: var(--midnight);
  font-size: 0.99rem;
}

.contact-channel small {
  color: var(--muted);
  font-size: 0.83rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row[hidden] {
  display: none;
}

/* Champ piège anti-robots : hors écran plutôt que display:none,
   que certains robots savent contourner. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row label {
  color: var(--midnight);
  font-weight: 600;
  font-size: 0.93rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(238, 97, 70, 0.14);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--midnight);
  font-weight: 500;
  font-size: 0.92rem;
}

/* ---------- Témoignages ---------- */

.testimonial {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.testimonial p {
  margin: 0;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.5;
}

.testimonial p::before {
  content: "« ";
  color: var(--coral);
}

.testimonial p::after {
  content: " »";
  color: var(--coral);
}

.testimonial cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--midnight);
  color: rgba(248, 247, 244, 0.78);
}

.footer-main {
  display: grid;
  gap: 36px;
  padding-block: clamp(48px, 6vw, 68px) 40px;
}

@media (min-width: 820px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--cream);
  padding: 4px;
  object-fit: contain;
}

.footer-brand strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-main p {
  margin: 0;
  max-width: 300px;
  font-size: 0.92rem;
}

.footer-col h3 {
  margin-bottom: 16px;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col nav {
  display: grid;
  gap: 10px;
}

.footer-col a {
  width: fit-content;
  font-size: 0.94rem;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(248, 247, 244, 0.12);
  font-size: 0.84rem;
  color: rgba(248, 247, 244, 0.55);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom a:hover {
  color: var(--coral);
}

/* ---------- WhatsApp flottant ---------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(31, 168, 85, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 40px rgba(31, 168, 85, 0.5);
}

/* ---------- Bannière nouveauté GEO (accueil) ---------- */

.geo-banner {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-deep) 100%);
  color: rgba(248, 247, 244, 0.85);
  overflow: hidden;
}

.geo-banner::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 97, 70, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.geo-banner .eyebrow {
  color: var(--coral);
}

.geo-banner h2 {
  max-width: 720px;
  color: var(--cream);
}

.geo-banner-text {
  max-width: 760px;
  margin: 0;
}

.geo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.geo-points li {
  padding: 8px 15px;
  border: 1px solid rgba(248, 247, 244, 0.22);
  border-radius: 999px;
  background: rgba(248, 247, 244, 0.06);
  color: var(--cream);
  font-size: 0.88rem;
}

.geo-banner .cta-actions {
  position: relative;
  z-index: 1;
  margin-top: 6px;
}

/* ---------- Popup nouveauté (GEO) ---------- */

.geo-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: min(380px, calc(100vw - 108px));
  display: grid;
  gap: 10px;
  padding: 24px 26px;
  border: 1px solid rgba(238, 97, 70, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--midnight) 0%, var(--midnight-deep) 100%);
  color: rgba(248, 247, 244, 0.82);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.geo-popup.is-open {
  opacity: 1;
  transform: translateY(0);
}

.geo-popup .eyebrow {
  margin: 0;
  color: var(--coral);
}

.geo-popup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
}

.geo-popup p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.geo-popup-link {
  justify-self: start;
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--coral);
  text-decoration: none;
}

.geo-popup-link:hover {
  text-decoration: underline;
}

.geo-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(248, 247, 244, 0.6);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.geo-popup-close:hover {
  background: rgba(248, 247, 244, 0.12);
  color: var(--cream);
}

@media (max-width: 639px) {
  .geo-popup {
    left: 14px;
    bottom: 14px;
    padding: 20px 22px;
  }
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-content: center;
  gap: 18px;
  min-height: calc(100svh - 74px);
  padding-block: 64px;
  text-align: center;
}

.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--midnight);
}

.notfound .code em {
  font-style: normal;
  color: var(--coral);
}

.notfound p {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
}

.notfound .cta-actions {
  justify-content: center;
}

/* ---------- Animations d'apparition ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .reveal:nth-child(2).is-visible {
  transition-delay: 70ms;
}

.js-enabled .reveal:nth-child(3).is-visible {
  transition-delay: 140ms;
}

.js-enabled .reveal:nth-child(4).is-visible {
  transition-delay: 210ms;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 639px) {
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-chip {
    left: 12px;
    bottom: 12px;
    padding: 10px 14px;
  }
}
