/* ==========================================================================
   Alex's Digital Works — Design System
   Refonte 2026 · navy profond / cyan electrique, derive du logo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marque — extraits du logo (navy profond -> cyan, accent vert) */
  --ink-950: #050b17;
  --ink-900: #0a1627;
  --ink-850: #0d1d33;
  --ink-800: #11233c;
  --ink-700: #1b3557;
  --ink-600: #27486f;

  --brand-800: #073a80;
  --brand-700: #0b4fa8;
  --brand-600: #0f62c4;
  --brand-500: #1b82e6;
  --cyan-400: #38bdf8;
  --cyan-300: #7dd3fc;
  --cyan-200: #bae6fd;

  --eco-600: #16a34a;
  --eco-500: #22c55e;
  --eco-400: #4ade80;

  /* Neutres */
  --paper: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef3f9;
  --line: #e3eaf3;
  --line-strong: #cfdbe9;
  --text: #0f1c2e;
  --text-soft: #41546d;
  --text-mute: #6b7f96;

  /* Degrades */
  --grad-brand: linear-gradient(135deg, #0b4fa8 0%, #1b82e6 48%, #38bdf8 100%);
  --grad-ink: linear-gradient(160deg, #0a1627 0%, #0d1d33 55%, #11233c 100%);
  --grad-text: linear-gradient(100deg, #7dd3fc 0%, #38bdf8 40%, #bae6fd 100%);

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(10, 22, 39, .06);
  --sh-sm: 0 2px 8px rgba(10, 22, 39, .06), 0 1px 2px rgba(10, 22, 39, .04);
  --sh-md: 0 10px 30px -12px rgba(10, 22, 39, .18), 0 2px 8px rgba(10, 22, 39, .05);
  --sh-lg: 0 28px 60px -24px rgba(10, 22, 39, .30), 0 8px 20px -12px rgba(10, 22, 39, .12);
  --sh-glow: 0 18px 40px -16px rgba(27, 130, 230, .55);

  /* Rythme */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Typo */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button { background: none; border: 0; cursor: pointer; }

a { color: var(--brand-600); text-decoration: none; }

ul,
ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--cyan-300); color: var(--ink-900); }

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); letter-spacing: -.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-soft);
}

strong { font-weight: 650; color: var(--ink-900); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); position: relative; }

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--surface { background: var(--surface); }

.section--ink {
  background: var(--grad-ink);
  color: #c9d9ec;
  isolation: isolate;
  overflow: hidden;
}

.section--ink h2,
.section--ink h3,
.section--ink h4 { color: #fff; }

.section--ink .lead { color: #a9c0da; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -150%);
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: .85rem 1.5rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* Texte reserve aux lecteurs d'ecran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Entete de section ------------------------------------------------------- */
.sec-head { max-width: 700px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.sec-head--center .eyebrow::before { display: none; }

.section--ink .eyebrow { color: var(--cyan-400); }

.sec-head p { margin-top: 1.1rem; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .975rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { box-shadow: var(--sh-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(27, 130, 230, .7); }

.btn--ghost {
  --btn-bg: #fff;
  --btn-fg: var(--ink-900);
  border-color: var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); }

.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, .07);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .45);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: .65rem 1.15rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* Lien fleche -------------------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand-600);
}

.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. En-tete / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  color: #fff;
  transition: color .35s var(--ease);
}

.brand img { width: 38px; height: 38px; border-radius: 9px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-text b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand-text span {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .62;
}

.is-stuck .brand,
.page-light .brand { color: var(--ink-900); }

/* Liens */
.nav { display: flex; align-items: center; gap: .3rem; }

/* Le CTA telephone du menu n'existe que sur mobile */
.nav .is-mobile-cta { display: none; }

/* Un bouton dans le menu garde ses propres couleurs */
.nav a.btn,
.nav a.btn:hover { color: var(--btn-fg); }

.nav a {
  position: relative;
  padding: .55rem .9rem;
  border-radius: var(--r-pill);
  font-size: .94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.nav a.is-active { color: #fff; }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .2rem;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-400);
}

.is-stuck .nav a,
.page-light .nav a { color: var(--text-soft); }

.is-stuck .nav a:hover,
.page-light .nav a:hover { color: var(--ink-900); background: var(--surface-2); }

.is-stuck .nav a.is-active,
.page-light .nav a.is-active { color: var(--brand-600); }

/* Page courante : mise en avant par la graisse, le trait marque la section lue */
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }

.is-stuck .nav a[aria-current="page"],
.page-light .nav a[aria-current="page"] { color: var(--ink-900); }

.header-cta { display: inline-flex; gap: .6rem; align-items: center; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}

.is-stuck .nav-toggle,
.page-light .nav-toggle { color: var(--ink-900); border-color: var(--line-strong); }

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color .2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
  background: var(--grad-ink);
  color: #c9d9ec;
  isolation: isolate;
  overflow: hidden;
}

/* Halos lumineux */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -280px;
  right: -180px;
  background: radial-gradient(circle, rgba(27, 130, 230, .55), transparent 68%);
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -300px;
  left: -200px;
  background: radial-gradient(circle, rgba(34, 197, 94, .26), transparent 68%);
}

/* Grille technique en fond */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(125, 211, 252, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .07) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 32%, #000 30%, transparent 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 1.5rem; }

.hero .lead { max-width: 54ch; color: #a9c0da; }

/* Badge de disponibilite */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .55rem;
  margin-bottom: 1.75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .85rem;
  font-weight: 500;
  color: #d8e6f6;
}

.hero-badge .dot {
  position: relative;
  width: 8px;
  height: 8px;
  margin-left: .35rem;
  border-radius: 50%;
  background: var(--eco-400);
  flex: none;
}

.hero-badge .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--eco-400);
  opacity: .6;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(.6); opacity: .7; }
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.25rem;
}

/* Points de reassurance */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  font-weight: 500;
  color: #bed2e8;
}

.hero-points svg { width: 18px; height: 18px; color: var(--cyan-400); flex: none; }

/* Visuel */
.hero-visual { position: relative; }

.hero-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 1.1rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}

.hero-card img {
  width: 100%;
  border-radius: var(--r-lg);
  background: #fff;
}

/* Pastille flottante */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(10, 22, 39, .78);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-chip--tr { top: -18px; right: -14px; }
.hero-chip--bl { bottom: -20px; left: -16px; animation-delay: -3s; }

.hero-chip .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  flex: none;
}

.hero-chip .ico svg { width: 19px; height: 19px; }

.hero-chip b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

.hero-chip small { font-size: .76rem; color: #9fb6d0; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   8. Bandeau de confiance
   -------------------------------------------------------------------------- */
.trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: calc(var(--section-y) * -.45);
  position: relative;
  z-index: 2;
  box-shadow: var(--sh-md);
}

.trust-item {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1rem, 2vw, 1.6rem);
  text-align: center;
}

.trust-item b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-item span {
  display: block;
  margin-top: .6rem;
  font-size: .9rem;
  color: var(--text-mute);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. Cartes de service
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}

.card:hover,
.card:has(.card-more:focus-visible) {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--cyan-300);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card:hover .card-media img { transform: scale(1.06); }

/* Voile degrade bas de l'image */
.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10, 22, 39, .45), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.card:hover .card-media::after { opacity: 1; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  gap: .55rem;
}

.card-body h3 { color: var(--ink-900); }

.card-body p {
  font-size: .95rem;
  color: var(--text-soft);
  margin-bottom: .35rem;
}

.card-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .4rem;
  margin-top: auto;
  padding: 0;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  text-align: left;
  color: var(--brand-600);
}

/* Toute la carte devient cliquable sans imbriquer de titre dans un bouton */
.card-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-more:focus-visible { outline: none; }

.card-more:focus-visible::after {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
}

.card-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card:hover .card-more svg { transform: translateX(4px); }

/* Etiquette coin */
.card-tag {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 2;
  pointer-events: none;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: rgba(10, 22, 39, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}

.card-tag--soon { background: rgba(34, 197, 94, .9); }

/* Carte "bientot disponible" sans photo */
.card-media--soon {
  display: grid;
  place-items: center;
  background: var(--grad-ink);
  position: relative;
}

.card-media--soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .09) 1px, transparent 1px);
  background-size: 34px 34px;
}

.card-media--soon svg {
  width: 56px;
  height: 56px;
  color: var(--cyan-400);
  position: relative;
}

/* --------------------------------------------------------------------------
   10. Fenetre modale
   -------------------------------------------------------------------------- */
.modal {
  /* margin:auto recentre le dialog, que le reset global a neutralise */
  margin: auto;
  width: min(680px, calc(100vw - 2rem));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(10, 22, 39, .55);
  overflow: hidden;
}

.modal[open] { display: flex; flex-direction: column; }

.modal-figure { flex: none; }

.modal::backdrop {
  background: rgba(5, 11, 23, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal[open] { animation: modal-in .35s var(--ease); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.modal-figure {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.modal-figure img { width: 100%; height: 100%; object-fit: cover; }

.modal-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 22, 39, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.modal-close:hover { background: rgba(10, 22, 39, .88); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

.modal-body {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  overflow-y: auto;
}

.modal-body h2 { margin-bottom: 1.1rem; }

.modal-body p { color: var(--text-soft); margin-bottom: .9rem; }

.modal-body p:last-of-type { margin-bottom: 0; }

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   11. Section "nos motivations" (sombre)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.section--ink .prose p { color: #a9c0da; }

/* Encadre accent vert */
.eco-note {
  position: relative;
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem 1.35rem 1.65rem;
  border-radius: var(--r-md);
  background: rgba(34, 197, 94, .09);
  border: 1px solid rgba(34, 197, 94, .25);
}

.eco-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: .9rem;
  bottom: .9rem;
  width: 3px;
  border-radius: 3px;
  background: var(--eco-500);
}

.eco-note p { color: #d6ead9 !important; margin: 0; font-size: .97rem; }

.eco-note b { color: var(--eco-400); }

/* Statistiques verticales */
.stat-stack { display: grid; gap: 1rem; }

.stat {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.stat:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(125, 211, 252, .35);
  transform: translateX(4px);
}

.stat .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  flex: none;
}

.stat .ico svg { width: 22px; height: 22px; }

.stat h4 { margin-bottom: .25rem; }

.stat p { font-size: .92rem; color: #9fb6d0; margin: 0; }

/* --------------------------------------------------------------------------
   12. Deroulement (etapes)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 { margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   13. Zone d'intervention
   -------------------------------------------------------------------------- */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.zone-list li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--sh-xs);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.zone-list li:hover { border-color: var(--cyan-300); color: var(--ink-900); transform: translateY(-2px); }

.zone-list svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; }

/* --------------------------------------------------------------------------
   14. Tarifs (page forfaits)
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
}

.plan:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

/* Formule mise en avant */
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--grad-brand) border-box;
  border: 2px solid transparent;
  box-shadow: var(--sh-md);
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: .35rem 1rem;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  box-shadow: var(--sh-glow);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
}

.plan-sub { font-size: .93rem; color: var(--text-mute); margin-top: .3rem; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: 1.5rem 0 .4rem;
}

.plan-price b {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink-900);
}

.plan-price span { font-size: .92rem; color: var(--text-mute); }

.plan--featured .plan-price b {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-features {
  display: grid;
  gap: .85rem;
  margin: 1.75rem 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.plan-features li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .75rem;
  align-items: start;
  font-size: .95rem;
  color: var(--text-soft);
}

.plan-features svg { width: 20px; height: 20px; color: var(--eco-600); margin-top: .18rem; }

.plan-features b { display: block; color: var(--ink-900); font-weight: 600; }

.plan-features small { display: block; color: var(--text-mute); font-size: .86rem; line-height: 1.5; }

.plan .btn { margin-top: auto; }

/* Notes legales */
.notes {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.notes h4 { margin-bottom: .85rem; color: var(--ink-900); }

.notes li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: .6rem;
  font-size: .9rem;
  color: var(--text-mute);
  line-height: 1.6;
}

.notes li:last-child { margin-bottom: 0; }

.notes li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-card {
  position: relative;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: var(--r-xl);
  background: var(--grad-ink);
  color: #c9d9ec;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-lg);
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -240px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 130, 230, .5), transparent 68%);
  filter: blur(70px);
  z-index: -1;
}

.contact-card h2 { color: #fff; }
.contact-card .lead { color: #a9c0da; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.contact-tile {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .11);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

a.contact-tile:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(125, 211, 252, .4);
  transform: translateY(-3px);
}

.contact-tile .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: .6rem;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
}

.contact-tile .ico svg { width: 20px; height: 20px; }

.contact-tile small {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8aa5c4;
}

.contact-tile b {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}

.contact-tile span { font-size: .88rem; color: #9fb6d0; }

/* --------------------------------------------------------------------------
   16. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-950);
  color: #8aa5c4;
  padding-top: clamp(3.5rem, 7vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer .brand { color: #fff; margin: 0 0 1.1rem; }

.site-footer p { font-size: .93rem; line-height: 1.7; max-width: 42ch; }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-col li { margin-bottom: .6rem; font-size: .93rem; }

.footer-col a { color: #8aa5c4; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--cyan-300); }

.footer-hours {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
}

.footer-hours span:last-child { color: #c9d9ec; font-weight: 500; white-space: nowrap; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
  color: #67809c;
}

/* --------------------------------------------------------------------------
   17. Barre d'action mobile + retour en haut
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); }
.to-top svg { width: 19px; height: 19px; }

/* Barre fixe « Appeler » sur mobile */
.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: none;
  gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.call-bar .btn { flex: 1; }

/* --------------------------------------------------------------------------
   18. Animations d'apparition
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }
}

/* Le menu bascule en tiroir avant l'apparition de la barre d'appel mobile */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }

  .header-cta .btn { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }

  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }

  /* :not(.btn) pour ne pas ecraser le style du CTA telephone du tiroir */
  .nav a:not(.btn) {
    color: var(--text-soft);
    padding: .85rem 1rem;
    border-radius: var(--r-sm);
    font-size: 1rem;
    font-weight: 500;
  }

  .nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink-900); }
  .nav a.is-active:not(.btn) { color: var(--brand-600); background: var(--surface-2); }
  .nav a.is-active::after { display: none; }

  .nav .btn { margin-top: .75rem; }
  .nav .is-mobile-cta { display: inline-flex; }

  /* Le bandeau adopte le fond clair du tiroir quand il est ouvert.
     Fond opaque : un backdrop-filter imbrique casse la composition du tiroir. */
  .nav-open .site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .nav-open .brand { color: var(--ink-900); }

  .nav-open .nav-toggle { color: var(--ink-900); border-color: var(--line-strong); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .call-bar { display: flex; }

  body { padding-bottom: 72px; }

  .to-top { bottom: calc(72px + 1rem); }
}

@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; margin-top: calc(var(--section-y) * -.3); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-chip--tr { top: -14px; right: -6px; }
  .hero-chip--bl { bottom: -14px; left: -6px; }
  .hero-chip { padding: .6rem .85rem; }
  .hero-points { gap: .75rem 1.25rem; }
  .footer-bottom { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   20. Preferences utilisateur / impression
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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

@media print {
  .site-header,
  .call-bar,
  .to-top,
  .hero-visual { display: none !important; }

  body { padding-bottom: 0; }

  .hero,
  .section--ink,
  .contact-card { background: #fff !important; color: #000 !important; }

  .hero h1,
  .section--ink h2,
  .contact-card h2 { color: #000 !important; }
}
