/* ==========================================================================
   Flavie Dussaillant — One-page
   Palette : Evergreen / Granite / Blue Slate / Powder Blue / Lavender
   ========================================================================== */

:root {
  /* Palette : Evergreen / Granite / Blue Slate / Powder Blue / Lavender */
  --ink: #1f2f16; /* Evergreen */
  --ink-2: #17230f;
  --paper: #f2f4f9;
  --white: #ffffff;
  --text: #1f2f16;
  --muted: #52605a;
  --muted-dark: #aab6c4;
  --line: rgba(31, 47, 22, 0.12);
  --line-dark: rgba(197, 209, 235, 0.14);

  --accent: #395b50; /* Granite */
  --accent-600: #2d4a41;
  --accent-soft: #e3e9f5;
  --slate: #5a7684; /* Blue Slate */
  --sky: #92afd7; /* Powder Blue */
  --lavender: #c5d1eb; /* Lavender */
  --lavender-600: #b3c2e3;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --max: 1200px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(31, 47, 22, 0.04), 0 2px 8px rgba(31, 47, 22, 0.05);
  --shadow: 0 2px 4px rgba(31, 47, 22, 0.04), 0 18px 40px -12px rgba(31, 47, 22, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  /* Empêche tout défilement horizontal parasite (iOS ignore overflow sur body) */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

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

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

h1 em,
h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--slate);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
}
.skip-link:focus {
  top: 16px;
}

.i {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.35s var(--ease);
}

.btn .i {
  transition: transform 0.35s var(--ease);
}

.btn:hover .i {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(57, 91, 80, 0.7);
}
.btn-primary:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(57, 91, 80, 0.8);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--slate);
}

.btn-light {
  background: var(--lavender);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--lavender-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(197, 209, 235, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
  padding: 18px;
  font-size: 1rem;
}

/* ---------- Typo utilitaires ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.tag::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.tag--light {
  color: var(--lavender);
}

.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.section-head .tag::after {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 18px;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--muted);
}

.stars {
  color: #fbbc04;
  letter-spacing: 2px;
  font-size: 1rem;
  line-height: 1;
}
.stars--lg {
  font-size: 1.5rem;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf7d;
  flex-shrink: 0;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s var(--ease) infinite;
}
.pulse--light {
  background: var(--lavender);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}
/* Fond flouté porté par un pseudo-élément : un backdrop-filter sur .header
   piégerait le menu mobile (position: fixed) dans la hauteur du header */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(242, 244, 249, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.3s;
}
.header.is-scrolled::before {
  opacity: 1;
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark {
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  background: var(--ink);
  color: var(--white);
  border-radius: 11px;
  transition:
    background-color 0.3s,
    transform 0.4s var(--ease);
}
.logo:hover .logo-mark {
  background: var(--slate);
  transform: rotate(-6deg);
}
.logo .dot {
  color: var(--slate);
}
.logo--light {
  color: var(--white);
}
.logo--light .logo-mark {
  background: var(--lavender);
  color: var(--ink);
}
.logo--light .dot {
  color: var(--lavender);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-menu a:not(.btn) {
  position: relative;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-menu a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.nav-toggle span:first-child {
  top: 17px;
}
.nav-toggle span:last-child {
  top: 25px;
}
.nav-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(57, 91, 80, 0.12), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(197, 209, 235, 0.18), transparent 70%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.hl {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hl::before {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.06em;
  height: 0.38em;
  background: var(--sky);
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-8deg);
}

.hero-lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
  margin-bottom: 36px;
}

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

.hero-proof {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-proof strong {
  color: var(--ink);
}
.hero-proof .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* Portrait */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky) 0%, var(--lavender) 100%);
  box-shadow:
    0 0 0 8px var(--white),
    0 40px 80px -30px rgba(57, 91, 80, 0.45);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-card strong {
  display: block;
  color: var(--ink);
}
.float-card small {
  color: var(--muted);
  font-size: 0.78rem;
}
.float-card--top {
  top: 14%;
  left: -18%;
}
.float-card--bottom {
  bottom: 9%;
  right: -14%;
  animation-delay: -3s;
}
.float-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.float-icon--dark {
  background: var(--ink);
  color: var(--lavender);
}

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

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.stats li {
  padding: 28px 24px 0 0;
}
.stats li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.stats span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 220px;
}

/* ==========================================================================
   Variante : accueil sombre (Evergreen)
   Retirer .hero--dark / .header--dark dans le HTML pour revenir au clair
   ========================================================================== */
.hero--dark {
  --hero-text: #bdc6d1; /* ~8:1 sur Evergreen */
  color: var(--white);
  background:
    radial-gradient(55% 60% at 82% 30%, rgba(146, 175, 215, 0.26), transparent 70%),
    radial-gradient(45% 50% at 8% 95%, rgba(90, 118, 132, 0.45), transparent 70%),
    linear-gradient(160deg, #24371a 0%, var(--ink) 55%, #17230f 100%);
}
.hero--dark h1 {
  color: var(--white);
}
.hero--dark h1 em {
  color: var(--lavender);
}
.hero--dark .hl::before {
  background: var(--accent);
}
.hero--dark .eyebrow {
  background: rgba(197, 209, 235, 0.08);
  border-color: var(--line-dark);
  color: var(--hero-text);
  box-shadow: none;
}
.hero--dark .hero-lead,
.hero--dark .hero-proof {
  color: var(--hero-text);
}
.hero--dark .hero-proof strong {
  color: var(--white);
}
.hero--dark .btn-primary {
  background: var(--lavender);
  color: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(197, 209, 235, 0.55);
}
.hero--dark .btn-primary:hover {
  background: var(--white);
}
.hero--dark .btn-ghost {
  color: var(--white);
  border-color: rgba(197, 209, 235, 0.3);
}
.hero--dark .btn-ghost:hover {
  border-color: var(--lavender);
}
.hero--dark .portrait {
  box-shadow:
    0 0 0 8px rgba(197, 209, 235, 0.14),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.hero--dark .stats {
  border-color: var(--line-dark);
}
.hero--dark .stats li + li {
  border-color: var(--line-dark);
}
.hero--dark .stats strong {
  color: var(--white);
}
.hero--dark .stats span {
  color: var(--hero-text);
}
/* Le bandeau passe en lavande pour se détacher de l'accueil sombre */
.hero--dark + .marquee {
  background: var(--lavender);
  color: var(--ink);
}
.hero--dark + .marquee i {
  color: var(--accent);
}

/* Header clair sur l'accueil sombre, tant qu'on n'a pas scrollé */
.header--dark:not(.is-scrolled) .logo {
  color: var(--white);
}
.header--dark:not(.is-scrolled) .logo-mark {
  background: var(--lavender);
  color: var(--ink);
}
.header--dark:not(.is-scrolled) .logo .dot {
  color: var(--lavender);
}
.header--dark:not(.is-scrolled) .nav-toggle {
  background: var(--lavender);
}
.header--dark:not(.is-scrolled) .nav-toggle span {
  background: var(--ink);
}
@media (min-width: 961px) {
  .header--dark:not(.is-scrolled) .nav-menu a:not(.btn) {
    color: var(--white);
  }
  .header--dark:not(.is-scrolled) .nav-menu a:not(.btn)::after {
    background: var(--lavender);
  }
  .header--dark:not(.is-scrolled) .btn-dark {
    background: var(--lavender);
    color: var(--ink);
  }
  .header--dark:not(.is-scrolled) .btn-dark:hover {
    background: var(--white);
  }
}
/* Menu mobile ouvert (fond clair) : on rétablit le logo sombre */
.menu-open .header--dark .logo {
  color: var(--ink);
}
.menu-open .header--dark .logo-mark {
  background: var(--ink);
  color: var(--white);
}

/* ==========================================================================
   Bandeau défilant
   ========================================================================== */
.marquee {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 22px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -8px 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 38s linear infinite;
  /* Rendu net du texte en mouvement (calque GPU dédié) */
  will-change: transform;
  backface-visibility: hidden;
}
.marquee span {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee span:nth-of-type(even) {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}
.marquee i {
  font-style: normal;
  color: var(--lavender);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.3s;
}
/* Halo qui suit le curseur */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(146, 175, 215, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(90, 118, 132, 0.45);
  box-shadow: 0 30px 60px -30px rgba(31, 47, 22, 0.25);
}
.service-card:hover::before {
  opacity: 1;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.3rem;
  transition:
    background-color 0.35s,
    color 0.35s,
    transform 0.5s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--white);
  transform: rotate(-8deg) scale(1.05);
}
.service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--muted-dark);
}

.service-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 460px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-right: 60px;
}
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.card-link {
  position: absolute;
  right: clamp(24px, 3vw, 36px);
  bottom: clamp(24px, 3vw, 36px);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.5s var(--ease);
}
/* Toute la carte devient cliquable */
.card-link::after {
  content: '';
  position: absolute;
  inset: -1000px;
}
.service-card:has(.card-link) {
  cursor: pointer;
}
.service-card:hover .card-link {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lavender);
  transform: rotate(45deg);
}

/* Carte mise en avant (apps) */
.service-card--accent {
  background: var(--ink);
  border-color: var(--ink);
}
.service-card--accent::before {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(197, 209, 235, 0.16), transparent 45%);
}
.service-card--accent h3 {
  color: var(--white);
}
.service-card--accent p {
  color: var(--muted-dark);
}
.service-card--accent .service-icon {
  background: var(--lavender);
  color: var(--ink);
}
.service-card--accent:hover .service-icon {
  background: var(--lavender);
  color: var(--ink);
}
.service-card--accent .chips li {
  color: var(--white);
  border-color: var(--line-dark);
}
.service-card--accent .card-link {
  color: var(--white);
  border-color: var(--line-dark);
}
.service-card--accent:hover {
  border-color: var(--ink);
}
.service-card--accent:hover .card-link {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--ink);
}

/* ==========================================================================
   Applications mobiles (section sombre)
   ========================================================================== */
.apps {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.apps h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 22px;
}
.apps h2 em {
  color: var(--lavender);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow--sky {
  width: 520px;
  height: 520px;
  right: -120px;
  top: 10%;
  background: rgba(146, 175, 215, 0.32);
}
.glow--slate {
  width: 320px;
  height: 320px;
  right: 22%;
  bottom: -160px;
  background: rgba(90, 118, 132, 0.4);
}

.apps-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.apps-lead {
  font-size: 1.1rem;
  color: var(--muted-dark);
  max-width: 540px;
  margin-bottom: 36px;
}

.spotlight {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-dark);
  margin-bottom: 32px;
  transition:
    border-color 0.3s,
    transform 0.5s var(--ease);
}
.spotlight:hover {
  border-color: rgba(197, 209, 235, 0.35);
}
.spotlight-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(197, 209, 235, 0.12);
  color: var(--lavender);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spotlight-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted-dark);
}
.spotlight h3 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 12px;
}
.spotlight > p {
  color: var(--muted-dark);
  margin-bottom: 20px;
}

.checks {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  font-size: 0.96rem;
  font-weight: 500;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lavender)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2f16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.store-btn svg {
  width: 24px;
  height: 24px;
}
.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(255, 255, 255, 0.5);
}
/* Avant la sortie : badge non cliquable */
.store-btn.is-soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid var(--line-dark);
  cursor: default;
}
.store-btn.is-soon small {
  color: var(--muted-dark);
}
.store-btn.is-soon:hover {
  transform: none;
  box-shadow: none;
}

/* Crédits du projet, façon générique */
.spotlight-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.spotlight-credits dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.spotlight-credits dd {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}
.spotlight-credits a {
  color: var(--lavender);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.spotlight-credits a:hover {
  color: var(--white);
}

.spotlight-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lavender);
}

/* ---------- Mockup de téléphone ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 19.2;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(145deg, #3d4540, #121611 40%, #2c332e);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    inset 0 0 0 6px #0b0e0a,
    0 60px 100px -30px rgba(0, 0, 0, 0.8),
    0 30px 80px -20px rgba(146, 175, 215, 0.4);
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(2deg);
  transition: transform 0.9s var(--ease);
  animation: phone-float 7s ease-in-out infinite;
}
.phone-stage:hover .phone--front {
  transform: rotateY(0) rotateX(0) rotateZ(0);
}

@keyframes phone-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

.phone-btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: #2c332e;
}
.phone-btn--power {
  right: -3px;
  top: 26%;
  height: 80px;
}
.phone-btn--vol {
  left: -3px;
  top: 20%;
  height: 56px;
  box-shadow: 0 72px 0 #2c332e;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: #fff;
  color: #1f2f16;
  display: flex;
  flex-direction: column;
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  z-index: 2;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 0;
  height: 44px;
  font-size: 0.74rem;
  font-weight: 700;
}
.status-icons {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.status-icons i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: #1f2f16;
}
.status-icons i:nth-child(1) {
  height: 5px;
}
.status-icons i:nth-child(2) {
  height: 7px;
}
.status-icons i:nth-child(3) {
  width: 18px;
  height: 9px;
  border-radius: 3px;
  margin-left: 4px;
}

/* Capture d'écran réelle de l'app */
.phone-screen img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Barre « home » façon iPhone */
.phone-screen::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  translate: -50% 0;
  width: 96px;
  height: 4px;
  border-radius: 4px;
  background: rgba(31, 47, 22, 0.55);
}

/* Duo : accueil devant, lecteur audio derrière */
.phone--front {
  z-index: 1;
  margin-left: 120px;
}
.phone--back {
  position: absolute;
  z-index: 0;
  top: 56px;
  left: calc(50% - 230px);
  width: 250px;
  transform: rotateY(16deg) rotateX(4deg) rotateZ(-7deg);
  filter: brightness(0.82) saturate(0.95);
  animation-delay: -3.5s;
  transition:
    transform 0.9s var(--ease),
    filter 0.6s;
}
.phone-stage:hover .phone--back {
  transform: translateX(-28px) rotateY(8deg) rotateZ(-10deg);
  filter: none;
}

.phone-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
/* Positionnées depuis le centre : seulement sur le bord des téléphones */
.phone-chip {
  z-index: 2;
}
.phone-chip--a {
  top: 6%;
  right: calc(50% + 110px);
}
.phone-chip--b {
  bottom: 14%;
  left: calc(50% + 180px);
  animation-delay: -3s;
}

/* Icône d'app à côté du titre Homéla */
.spotlight-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.spotlight-title h3 {
  margin-bottom: 0;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55);
}
.app-icon img {
  width: 68px;
  height: auto;
}

/* ==========================================================================
   À propos + méthode
   ========================================================================== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.about-text h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 24px;
}
.about-text .lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 3px solid var(--lavender);
}
.about-text p:not(.lead):not(.tag) {
  color: var(--muted);
  margin-bottom: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.link-arrow .i {
  transition: transform 0.35s var(--ease);
}
.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.link-arrow:hover .i {
  transform: translate(2px, -2px);
}

.method {
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.method-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.steps li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child {
  border-top: 0;
}
.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.steps li:hover .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.steps h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
}
.steps p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ==========================================================================
   Avis Google
   ========================================================================== */
.reviews {
  background: var(--paper);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.gbp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.g-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
}
.g-logo--sm {
  width: 22px;
  height: 22px;
  margin: 0 0 0 auto;
}
.gbp-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.gbp-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 6px;
}
.gbp-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.gbp-rating {
  margin-bottom: 28px;
}
.gbp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.review-card::before {
  content: '“';
  position: absolute;
  right: 28px;
  bottom: -90px;
  font-family: var(--font-serif);
  font-size: 22rem;
  line-height: 1;
  color: var(--lavender);
  opacity: 0.12;
  pointer-events: none;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(31, 47, 22, 0.5);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
}
.review-name {
  font-weight: 700;
}
.review-meta {
  font-size: 0.85rem;
  color: var(--muted-dark);
}
.review-card blockquote {
  margin: 18px 0 26px;
}
.review-card blockquote p {
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}
.review-card blockquote p + p {
  margin-top: 0.8em;
}
.review-card figcaption {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--muted-dark);
}

/* ==========================================================================
   Contact (section sombre)
   ========================================================================== */
.contact {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.glow--contact {
  left: -200px;
  right: auto;
  top: auto;
  bottom: -200px;
  opacity: 0.6;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.contact-info h2 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  margin-bottom: 22px;
}
.contact-info h2 em {
  color: var(--lavender);
}
.contact-info > p {
  color: var(--muted-dark);
  font-size: 1.08rem;
  margin-bottom: 36px;
}

.contact-list {
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.contact-list a {
  transition: color 0.25s;
}
.contact-list small {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted-dark);
}
.contact-list a:hover {
  color: var(--lavender);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--lavender);
}

.contact-form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.project-type {
  border: 0;
  margin-bottom: 22px;
}
.project-type legend,
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.radio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-chips span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.radio-chips label:hover span {
  border-color: var(--ink);
}
.radio-chips input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lavender);
}
.radio-chips input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 18px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.98rem;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9a97a6;
}
.field input:hover,
.field textarea:hover {
  border-color: rgba(31, 47, 22, 0.25);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(57, 91, 80, 0.14);
}

.contact-form .btn-block {
  margin-top: 6px;
}
.contact-form.is-sending .btn-block {
  opacity: 0.7;
  pointer-events: none;
}

.form-status {
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  margin-top: 14px;
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  color: #15803d;
}
.form-status.is-error {
  color: #dc2626;
}
.form-note {
  font-size: 0.82rem;
  text-align: center;
  color: var(--muted);
  margin-top: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink-2);
  color: var(--muted-dark);
  padding: 64px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p {
  margin-top: 18px;
  line-height: 1.7;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-contact .i {
  color: var(--lavender);
}
.footer a:not(.logo) {
  width: fit-content;
  transition:
    color 0.25s,
    background-color 0.25s,
    border-color 0.25s;
}
.footer a:not(.logo):hover {
  color: var(--lavender);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 0.84rem;
}
.footer--compact {
  padding: 28px 0;
}
.footer--compact .footer-bottom {
  padding-top: 0;
}
.legal-link {
  font-size: 0.75rem;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Page mentions légales ---------- */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.legal {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px);
}
.legal .container {
  max-width: 800px;
}
.legal h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 24px;
}
.legal-intro {
  font-size: 1.1rem;
  color: var(--muted);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.legal section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-bottom: 16px;
}
.legal h2 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--slate);
}
.legal h3 {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
.legal section p {
  color: var(--muted);
  margin-bottom: 12px;
}
.legal a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-list {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) 1fr;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}
.legal-list dt,
.legal-list dd {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.legal-list dt:first-of-type,
.legal-list dt:first-of-type + dd {
  border-top: 0;
}
.legal-list dt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
}
.legal-list dd {
  color: var(--muted);
}
.legal-bullets {
  margin: 0 0 12px;
  display: grid;
  gap: 6px;
}
.legal-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}
.legal-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}
.legal-update {
  margin-top: 32px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}
@media (max-width: 600px) {
  .legal-list {
    grid-template-columns: 1fr;
  }
  .legal-list dt {
    padding-bottom: 4px;
  }
  .legal-list dd {
    border-top: 0;
    padding-top: 4px;
  }
}

/* ==========================================================================
   Animations d'apparition (activées seulement si JS)
   ========================================================================== */
/* `translate` (et non `transform`) pour ne pas écraser les effets de survol */
.js .reveal {
  opacity: 0;
  translate: 0 24px;
}
.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.9s var(--ease) var(--delay, 0ms),
    translate 0.9s var(--ease) var(--delay, 0ms),
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.3s,
    background-color 0.3s,
    color 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    translate: 0 0;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .float-card--top {
    left: -8%;
  }
  .float-card--bottom {
    right: -6%;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    z-index: 2;
  }
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.35s var(--ease),
      visibility 0.35s;
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
  }
  .nav-menu a:not(.btn) {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  .nav-menu .btn {
    padding: 16px 28px;
    font-size: 1rem;
  }
  body.menu-open {
    overflow: hidden;
  }

  .hero-grid,
  .apps-grid,
  .about-grid,
  .contact-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    width: min(100%, 340px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .stats li {
    padding-bottom: 24px;
  }

  .phone-stage {
    margin-top: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  /* Bandeau droit sur mobile : l'inclinaison floutait le texte et débordait de l'écran */
  .marquee {
    transform: none;
    margin: 0;
    padding: 16px 0;
  }

  .services-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-row {
    gap: 0;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .float-card {
    font-size: 0.8rem;
    padding: 10px 14px 10px 10px;
  }
  .float-card--top {
    left: -4%;
  }
  .float-card--bottom {
    right: -4%;
  }
  .phone--front {
    width: 240px;
    margin-left: 80px;
  }
  .phone--back {
    width: 200px;
    top: 40px;
    left: calc(50% - 158px);
  }
  /* Trop peu de place autour du téléphone : les puces masqueraient l'écran */
  .phone-chip {
    display: none;
  }
  .logo-text {
    font-size: 0.98rem;
  }
}

@media (max-width: 400px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stats li,
  .stats li + li {
    padding-left: 0;
    border-left: 0;
  }
  .stats li + li {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 340px) {
  .logo-text {
    display: none;
  }
}
