/* ==========================================================================
   EXETOPIA GmbH — Feuille de style principale
   Charte graphique : Poppins / Orange #F8AD41 / Anthracite #17191C / Noir #0B0C0E
   Auteur : EXETOPIA x Tinibuni
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --brand-orange: #f8ad41;
  --brand-orange-dark: #e0951f;
  --brand-orange-ink: #8a5a0e;   /* variante lisible sur fond clair */
  --brand-ink: #17191c;          /* anthracite */
  --brand-ink-deep: #0b0c0e;     /* noir */
  --brand-ink-soft: #24282d;     /* anthracite clair */

  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #f5f6f7;
  --surface-dark: var(--brand-ink);
  --surface-dark-deep: var(--brand-ink-deep);

  /* Texte */
  --text: #17191c;
  --text-muted: #5c6067;
  --text-invert: #ffffff;
  --text-invert-muted: #a7adb5;

  /* Traits */
  --line: #e3e5e8;
  --line-strong: #c9cdd2;
  --line-invert: rgba(255, 255, 255, 0.14);

  /* Typographie */
  --font: 'Poppins', 'Arial', 'Helvetica Neue', Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 1.2rem + 4.2vw, 4rem);
  --fs-h1: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Rythme */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  /* Divers */
  --header-h: 76px;
  --shadow-soft: 0 1px 2px rgba(11, 12, 14, 0.04), 0 12px 32px rgba(11, 12, 14, 0.06);
  --shadow-lift: 0 2px 4px rgba(11, 12, 14, 0.06), 0 20px 44px rgba(11, 12, 14, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. Réinitialisation
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, picture { display: block; max-width: 100%; height: auto; }

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

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

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   4. Utilitaires de base
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface-alt); }
.section--dark {
  background: var(--surface-dark);
  color: var(--text-invert);
}
.section--deep {
  background: var(--surface-dark-deep);
  color: var(--text-invert);
}
.section--dark p,
.section--deep p { color: var(--text-invert-muted); }
.section--dark .section-title,
.section--deep .section-title { color: var(--text-invert); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--brand-orange);
  color: var(--brand-ink);
  font-weight: 600;
  border-radius: var(--radius-s);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   5. Typographie
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--brand-orange);
}
.section--dark .eyebrow,
.section--deep .eyebrow,
.hero .eyebrow { color: var(--brand-orange); }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.section-title .accent { color: var(--brand-orange); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}
.section--dark .lead,
.section--deep .lead { color: var(--text-invert-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 1rem; }

.prose p + p { margin-top: 1rem; }
.prose a {
  color: var(--brand-orange-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.section--dark .prose a,
.section--deep .prose a { color: var(--brand-orange); }

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--brand-orange);
  color: var(--brand-ink);
  box-shadow: 0 6px 20px rgba(248, 173, 65, 0.28);
}
.btn--primary:hover { background: var(--brand-orange-dark); }

.btn--dark {
  background: var(--brand-ink);
  color: var(--text-invert);
}
.btn--dark:hover { background: var(--brand-ink-soft); }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover { border-color: var(--brand-ink); background: var(--surface-alt); }

.btn--outline-light {
  border-color: var(--line-invert);
  color: var(--text-invert);
  background: transparent;
}
.btn--outline-light:hover { border-color: var(--brand-orange); color: var(--brand-orange); }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--brand-orange-ink);
}
.link-arrow .arrow { transition: transform 0.25s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.section--dark .link-arrow,
.section--deep .link-arrow { color: var(--brand-orange); }

/* --------------------------------------------------------------------------
   7. En-tête et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-invert);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 12, 14, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 3px;
  background: #fff;
  border-radius: 11px;
}
.brand-mark img { width: 100%; }
.brand-word { width: 116px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav > li { position: relative; }
.nav-mobile-cta { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-link[aria-current='page'] { color: var(--brand-orange); }
.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.15rem;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
}

.nav-toggle-sub {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-caret { transition: transform 0.25s var(--ease); }
[aria-expanded='true'] .nav-caret { transform: rotate(180deg); }

.subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 310px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: translateY(0); }

.subnav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-s);
  transition: background-color 0.2s var(--ease);
}
.subnav a:hover { background: var(--surface-alt); }
.subnav .sub-title {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}
.subnav .sub-desc {
  display: block;
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.subnav a[aria-current='page'] .sub-title { color: var(--brand-orange-ink); }

.header-cta { display: inline-flex; }
.header-cta .btn { padding: 0.7rem 1.25rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-invert);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  transition: background-color 0.2s var(--ease);
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: #fff;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .header-cta { display: none; }

  /* backdrop-filter fait de l'en-tête le bloc conteneur de ses descendants
     position:fixed : le panneau de menu s'y trouvait enfermé et ne mesurait
     que la hauteur de l'en-tête. On le retire ici, l'en-tête devient opaque. */
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--brand-ink-deep);
  }

  /* Panneau plein écran : il couvre toute la fenêtre, l'en-tête restant
     au-dessus pour garder le bouton de fermeture accessible. */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 1.25rem) var(--gutter) 3rem;
    background: var(--brand-ink-deep);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  /* Le panneau est un descendant de l en-tete : il partage son contexte
     d empilement. Logo et bouton de fermeture doivent donc passer au-dessus,
     sans quoi le menu ouvert ne peut plus etre referme. */
  .header-inner .brand,
  .lang-switch,
  .burger { position: relative; z-index: 95; }

  /* Le commutateur reste dans la barre, le bouton d appel a l action
     bascule lui dans le panneau. On resserre pour tenir sur un telephone. */
  .header-inner { gap: 0.6rem; }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 1.15rem 0.25rem;
    font-size: 1.3125rem;
    font-weight: 500;
    line-height: 1.3;
    border-bottom: 1px solid var(--line-invert);
    border-radius: 0;
  }
  .nav-link[aria-current='page']::after { display: none; }
  .nav-link[aria-current='page'] { color: var(--brand-orange); }

  /* « Services » devient un intitulé de section : le sous-menu reste
     déplié pour que toutes les destinations soient visibles d'un coup. */
  .nav-toggle-sub {
    padding: 1.75rem 0.25rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-invert-muted);
    border-bottom: 0;
    cursor: default;
  }
  .nav-toggle-sub:hover { background: none; color: var(--text-invert-muted); }
  .nav-caret { display: none; }

  .subnav {
    position: static;
    min-width: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .subnav a {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line-invert);
    border-radius: 0;
  }
  .subnav .sub-title { font-size: 1.1875rem; font-weight: 500; color: #fff; }
  .subnav .sub-desc { font-size: 0.9375rem; margin-top: 0.3rem; color: var(--text-invert-muted); }
  .subnav a:hover,
  .subnav a:active { background: rgba(255, 255, 255, 0.06); }
  .subnav a[aria-current='page'] .sub-title { color: var(--brand-orange); }

  .nav .nav-mobile-cta { display: block; margin-top: 2.25rem; }
  .nav .nav-mobile-cta .btn { width: 100%; padding: 1.1rem 1.6rem; font-size: 1rem; }
}

/* Téléphone : on gagne encore de la place en resserrant les marges. */
@media (max-width: 560px) {
  .brand-word { width: 92px; }
  .nav { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav-link { font-size: 1.25rem; }
  .subnav .sub-title { font-size: 1.125rem; }
}


/* Commutateur de langue
   -------------------------------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-invert);
  border-radius: 999px;
  flex-shrink: 0;
}
.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang-switch a:hover,
.lang-switch a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.09); }
.lang-switch [aria-current='true'] {
  background: var(--brand-orange);
  color: var(--brand-ink);
  cursor: default;
}

/* Commutateur : variantes tablette et téléphone.
   Déclarées après le bloc de base, sinon la cascade les annule. */
@media (max-width: 1000px) {
  .lang-switch { padding: 2px; }
  .lang-switch a,
  .lang-switch span { min-width: 36px; min-height: 40px; padding: 0 0.35rem; }
}
@media (max-width: 560px) {
  .lang-switch a,
  .lang-switch span { min-width: 32px; padding: 0 0.2rem; letter-spacing: 0; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--brand-ink-deep);
  color: var(--text-invert);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -18%; right: -8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(248, 173, 65, 0.16) 0%, transparent 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title .accent { color: var(--brand-orange); }

.hero-lead {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  color: var(--text-invert-muted);
  max-width: 54ch;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}
.hero-figure img { width: 100%; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-invert);
  font-size: var(--fs-small);
  color: var(--text-invert-muted);
}
.hero-meta li { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta svg { color: var(--brand-orange); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}

/* Hero compact pour les pages internes */
.page-hero {
  position: relative;
  background: var(--brand-ink-deep);
  color: var(--text-invert);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 20%, transparent 75%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.25rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-hero-lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: var(--text-invert-muted);
  max-width: 56ch;
}
.page-hero-figure {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line-invert);
}
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-figure { order: -1; }
}

/* Fil d'Ariane */
.breadcrumb {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  font-size: var(--fs-micro);
  color: var(--text-invert-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb li::after { content: '/'; margin-left: 0.5rem; opacity: 0.45; }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a:hover { color: var(--brand-orange); text-decoration: underline; }
.breadcrumb [aria-current='page'] { color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   9. Grilles et cartes
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.split--media-left { grid-template-columns: 1.14fr 0.86fr; }
.split--media-right { grid-template-columns: 0.86fr 1.14fr; }
.split--media-first > :first-child { order: -1; }
@media (max-width: 900px) {
  .split,
  .split--media-left,
  .split--media-right { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card__text {
  margin-top: 0.7rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 1.15rem;
  border-radius: var(--radius-s);
  background: rgba(248, 173, 65, 0.14);
  color: var(--brand-orange-ink);
}
.section--dark .card,
.section--deep .card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-invert);
}
.section--dark .card__title,
.section--deep .card__title { color: var(--text-invert); }
.section--dark .card__text,
.section--deep .card__text { color: var(--text-invert-muted); }
.section--dark .card__icon,
.section--deep .card__icon { background: rgba(248, 173, 65, 0.16); color: var(--brand-orange); }

/* Carte service cliquable */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-lift);
}
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--brand-ink-deep);
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__num {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(6px);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
}
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
}
.service-card__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }
.service-card__text {
  margin-top: 0.65rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}
.tag {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.service-card__link { margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
/* L'overlay appartient au lien lui-même : posé sur le <p>, il recouvrait
   la carte par-dessus le <a> et rendait le clic inopérant. */
.service-card__link a::after { content: ''; position: absolute; inset: 0; }

/* --------------------------------------------------------------------------
   10. Chiffres clés
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-invert);
  border: 1px solid var(--line-invert);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.stat {
  padding: clamp(1.35rem, 3vw, 2.15rem);
  background: var(--brand-ink);
  text-align: center;
}
.stat__value {
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-orange);
}
.stat__label {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: var(--text-invert-muted);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   11. Listes enrichies
   -------------------------------------------------------------------------- */
.check-list { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-muted);
}
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.4em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand-orange);
  border-bottom: 2px solid var(--brand-orange);
  transform: rotate(-45deg);
}
.section--dark .check-list li,
.section--deep .check-list li { color: var(--text-invert-muted); }
.section--dark .check-list li strong,
.section--deep .check-list li strong { color: var(--text-invert); }

.bullet-list { display: grid; gap: 0.7rem; margin-top: 1.25rem; }
.bullet-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
}
.section--dark .bullet-list li,
.section--deep .bullet-list li { color: var(--text-invert-muted); }

/* Étapes de la méthode */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
}
.step::before {
  content: '0' counter(step);
  display: block;
  margin-bottom: 1rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
}
.step h3 { font-size: 1.0625rem; font-weight: 600; }
.step p { margin-top: 0.55rem; font-size: var(--fs-small); color: var(--text-muted); }
.section--dark .steps,
.section--deep .steps { background: var(--line-invert); border-color: var(--line-invert); }
.section--dark .step,
.section--deep .step { background: var(--brand-ink); }
.section--dark .step p,
.section--deep .step p { color: var(--text-invert-muted); }

/* Secteurs / logos */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.pill {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  background: var(--surface);
}
.section--dark .pill,
.section--deep .pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-invert);
  color: var(--text-invert-muted);
}

/* --------------------------------------------------------------------------
   12. Onglets (spécifications techniques)
   -------------------------------------------------------------------------- */
.tabs { margin-top: 2rem; }
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 0.7rem 1.15rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--brand-orange); font-weight: 600; }

.tabpanel { padding-top: 1.75rem; }
.tabpanel[hidden] { display: none; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2.5rem; }
@media (max-width: 720px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-group h4 {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange-ink);
  margin-bottom: 0.6rem;
}
.spec-group ul { display: grid; gap: 0.4rem; }
.spec-group li { font-size: var(--fs-small); color: var(--text-muted); }
.spec-group li strong { color: var(--text); font-weight: 500; }

.section--dark .tablist,
.section--deep .tablist { border-bottom-color: var(--line-invert); }
.section--dark .tab,
.section--deep .tab { color: var(--text-invert-muted); }
.section--dark .tab[aria-selected='true'],
.section--deep .tab[aria-selected='true'] { color: #fff; }
.section--dark .spec-group h4,
.section--deep .spec-group h4 { color: var(--brand-orange); }
.section--dark .spec-group li,
.section--deep .spec-group li { color: var(--text-invert-muted); }
.section--dark .spec-group li strong,
.section--deep .spec-group li strong { color: #fff; }

/* --------------------------------------------------------------------------
   13. Accordéon FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-trigger:hover { color: var(--brand-orange-ink); }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 0.2rem;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--brand-orange);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-trigger[aria-expanded='true'] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.32s var(--ease);
}
.faq-panel-inner {
  padding-bottom: 1.5rem;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 68ch;
}
.section--dark .faq,
.section--deep .faq { border-top-color: var(--line-invert); }
.section--dark .faq-item,
.section--deep .faq-item { border-bottom-color: var(--line-invert); }
.section--dark .faq-trigger,
.section--deep .faq-trigger { color: var(--text-invert); }
.section--dark .faq-trigger:hover,
.section--deep .faq-trigger:hover { color: var(--brand-orange); }
.section--dark .faq-panel-inner,
.section--deep .faq-panel-inner { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   14. Témoignage
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 3px solid var(--brand-orange);
}
.quote blockquote {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--text-invert-muted);
}
.quote figcaption strong { display: block; color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   15. Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--brand-orange);
  color: var(--brand-ink);
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 12, 14, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 12, 14, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-band-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}
.cta-band h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.cta-band p { margin-top: 0.75rem; max-width: 46ch; color: rgba(11, 12, 14, 0.78); }
.cta-band .btn-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   16. Formulaire
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
}
.field .req { color: var(--brand-orange-ink); }
.field input,
.field select,
.field textarea {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(248, 173, 65, 0.22);
}
.field .hint { font-size: var(--fs-micro); color: var(--text-muted); }
.field .error {
  font-size: var(--fs-micro);
  color: #b3261e;
  min-height: 1em;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b3261e; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: var(--text-muted);
}
.checkbox input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--brand-orange); flex-shrink: 0; }

.form-status {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  border: 1px solid;
}
.form-status.is-visible { display: block; }
.form-status--ok {
  background: rgba(248, 173, 65, 0.12);
  border-color: var(--brand-orange);
  color: var(--text);
}
.form-status--error {
  background: rgba(179, 38, 30, 0.07);
  border-color: #b3261e;
  color: var(--text);
}
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Bloc coordonnées */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-item svg { flex-shrink: 0; color: var(--brand-orange); margin-top: 0.2rem; }
.contact-item dt {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-item dd { margin: 0.3rem 0 0; font-size: var(--fs-small); line-height: 1.6; }
.contact-item dd a:hover { color: var(--brand-orange-ink); text-decoration: underline; }
.section--dark .contact-item dt,
.section--deep .contact-item dt { color: var(--text-invert-muted); }
.section--dark .contact-item dd a:hover,
.section--deep .contact-item dd a:hover { color: var(--brand-orange); }

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-ink-deep);
  color: var(--text-invert-muted);
  font-size: var(--fs-small);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand .brand-mark { width: 46px; height: 46px; border-radius: 12px; }
.footer-brand .brand-word { width: 132px; }
.footer-brand p { max-width: 34ch; line-height: 1.65; }

.footer-col h3 {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.15rem;
}
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--brand-orange); }
.footer-col address { font-style: normal; line-height: 1.7; }

.footer-social { display: flex; gap: 0.5rem; margin-top: 1.35rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-invert);
  border-radius: 50%;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--brand-orange); color: var(--brand-orange); background: rgba(248, 173, 65, 0.08); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-invert);
  font-size: var(--fs-micro);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--brand-orange); }

/* --------------------------------------------------------------------------
   18. Retour en haut
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--brand-ink);
  color: #fff;
  border: 1px solid var(--line-invert);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-orange); color: var(--brand-ink); }

/* --------------------------------------------------------------------------
   19. Animations d'apparition
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Divers
   -------------------------------------------------------------------------- */
.media-frame {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.section--dark .media-frame,
.section--deep .media-frame { border-color: var(--line-invert); background: var(--brand-ink-deep); }
.media-frame img { width: 100%; }

.legal-doc h2 { font-size: var(--fs-h3); font-weight: 600; margin-top: 2.5rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.75; }
.legal-doc p { margin-top: 0.85rem; }
.legal-doc ul { margin-top: 0.85rem; display: grid; gap: 0.5rem; }
.legal-doc li { position: relative; padding-left: 1.25rem; }
.legal-doc li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-orange); }

@media print {
  .site-header, .to-top, .cta-band, .site-footer { display: none; }
  body { color: #000; }
}
