/* ============================================
   HARO — Design system 2026 (V2)
   Sombre · palette alignée sur le mode sombre de l'application
   ============================================ */

/*
 * Les fonds, le texte et les surfaces reprennent les jetons du mode sombre de
 * l'application (resources/css/theme.scss, bloc html.dark) pour que le site
 * vitrine et le produit se ressemblent. Correspondances :
 *   --bg         <- --c-bg-gray-900  (fond de page)
 *   --bg-alt     <- --c-bg-white     (panneau, sections alternées, pied de page)
 *   --panel      <- --c-bg-gray-800  (cadres de captures, listes déroulantes)
 *   --text       <- --c-fg-gray-900
 *   --text-muted <- --c-fg-gray-500
 *
 * Les accents restent ceux de la marque Haro : l'application ne les utilise pas
 * — elle s'en tient à la palette Tailwind — mais c'est l'identité visuelle du
 * site, et le dégradé des titres en dépend.
 */
:root {
  color-scheme: dark;
  --bg: #0b1117;
  --bg-alt: #0f1821;
  --panel: #16212c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6edf3;
  --text-muted: #8d9caa;
  /*
   * L'accent de l'application est le violet (bg-purple-600, 34 usages), mais
   * en mode sombre theme.scss le fait basculer vers la sarcelle : purple-600
   * devient #0e7f93 en fond et #4dd0e1 en texte. C'est donc la sarcelle, pas
   * le violet, qu'il faut reprendre ici.
   */
  --accent-1: #0e7f93;   /* fond d'action    <- --c-bg-purple-600 */
  --accent-2: #4dd0e1;   /* texte et icônes  <- --c-fg-purple-500 */
  --accent-3: #0a6172;   /* fond appuyé      <- --c-bg-purple-700 */
  --lime: #66d9e8;       /* cyan pâle        <- --c-fg-purple-700 */

  /*
   * Deux dégradés, pas un. L'original allait de l'ambre au rouge : toutes ses
   * étapes étaient claires, donc le même dégradé servait au texte et aux
   * fonds. La sarcelle n'a pas cette propriété — les étapes de fond sont
   * sombres et disparaîtraient en texte, les étapes de texte sont trop claires
   * pour porter du blanc. D'où la séparation, la même que celle des jetons
   * `-solid` du mode sombre de l'application.
   */
  --gradient: linear-gradient(100deg, var(--lime), var(--accent-2));
  --gradient-solid: linear-gradient(100deg, var(--accent-1), var(--accent-3));
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

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

/* ---------- Fond décoratif ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

.bg-glow {
  position: fixed; z-index: -3; border-radius: 50%;
  filter: blur(120px); pointer-events: none; opacity: 0.5;
}
.bg-glow--1 {
  width: 640px; height: 640px; top: -240px; left: 50%; transform: translateX(-30%);
  background: radial-gradient(circle, rgba(14, 127, 147, 0.38), transparent 65%);
}
.bg-glow--2 {
  width: 520px; height: 520px; top: 30vh; left: -200px;
  background: radial-gradient(circle, rgba(14, 127, 147, 0.20), transparent 65%);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--primary {
  background: var(--gradient-solid); color: #fff;
  box-shadow: 0 8px 32px rgba(14, 127, 147, 0.38);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(14, 127, 147, 0.5); }
.btn--ghost {
  background: var(--surface); color: var(--text); border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 17, 23, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 34px; width: auto; }
.nav__links {
  display: flex; gap: 36px; list-style: none;
}
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__lang {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  color: var(--text-muted); padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__lang:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

.nav__burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(11, 17, 23, 0.95); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a { padding: 12px 0; font-weight: 500; }
.nav__mobile .btn { margin-top: 12px; }
.nav__mobile.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  min-height: 92vh; padding-top: 130px; padding-bottom: 110px;
}
.hero__title {
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 700;
  margin-bottom: 24px;
  white-space: nowrap;
}
.hero__subtitle {
  font-size: 18px; color: var(--text-muted); max-width: 540px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/*
 * Invitation à défiler. Elle remplace la bande claire qui dépassait en bas du
 * hero : au lieu d'une ligne blanche qui coupe l'image, le bas du premier écran
 * indique qu'il y a une suite.
 */
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-muted); text-decoration: none;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.25s ease;
  animation: hero-scroll-bob 2.8s ease-in-out infinite;
}
.hero__scroll:hover, .hero__scroll:focus-visible { color: var(--accent-2); }
.hero__scroll-mouse {
  width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid currentColor; opacity: 0.7;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll-dot {
  width: 3px; height: 8px; border-radius: 2px; background: currentColor;
  animation: hero-scroll-dot 2.2s ease-in-out infinite;
}
@keyframes hero-scroll-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@keyframes hero-scroll-dot {
  0% { opacity: 0; transform: translateY(-4px); }
  25% { opacity: 1; }
  70% { opacity: 1; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Maquette produit ---------- */
.hero__visual { position: relative; }
.mockup {
  background: rgba(15, 24, 33, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}
.mockup__header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
}
.mockup__dots { display: flex; gap: 6px; }
.mockup__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.mockup__dots span:first-child { background: #ff5f57; }
.mockup__dots span:nth-child(2) { background: #febc2e; }
.mockup__dots span:nth-child(3) { background: #28c840; }
.mockup__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup__live {
  display: inline-flex; align-items: center; gap: 7px;
  color: #4ade80; font-weight: 600;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

.mockup__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 280px; }
.crow {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
  font-size: 13.5px;
}
.crow__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  background: linear-gradient(135deg, rgba(14, 127, 147, 0.35), rgba(10, 97, 114, 0.28));
  border: 1px solid var(--border);
}
.crow__info { flex: 1; min-width: 0; }
.crow__info strong { display: block; font-weight: 600; }
.crow__info small { color: var(--text-muted); font-size: 12px; }
.crow__status {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
  white-space: nowrap; transition: 0.4s ease;
}
.crow--calling { border-color: rgba(77, 208, 225, 0.45); background: rgba(77, 208, 225, 0.06); }
.crow--calling .crow__status { background: rgba(77, 208, 225, 0.15); color: var(--accent-2); }
.crow--declined .crow__status { background: rgba(227, 34, 34, 0.15); color: #f26969; }
.crow--accepted { border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.07); }
.crow--accepted .crow__status { background: rgba(74, 222, 128, 0.15); color: #4ade80; }

.mockup__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.mockup__footer strong { color: #4ade80; }

.mockup__card {
  position: absolute; bottom: -24px; right: -16px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 16px;
  background: rgba(15, 24, 33, 0.92); border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-size: 13px;
}
.mockup__card small { display: block; color: var(--text-muted); font-size: 11.5px; }
.mockup__card-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.15); color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.mockup__card--float { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Bande clients (claire, en carrousel) ---------- */
.trust {
  background: #f3f4f6;
  color: #111827;
  padding: 72px 0;
  overflow: hidden;
}
.trust__title {
  text-align: center;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin-bottom: 44px;
}
/*
 * Le carrousel déborde volontairement du conteneur : le défilement doit venir
 * du bord de l'écran, et le masque en dégradé fait disparaître les logos aux
 * deux extrémités plutôt que de les couper net.
 */
.trust__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/*
 * La piste contient deux fois la même série de logos et se déplace de -50 % :
 * à la fin du cycle, le second groupe occupe exactement la position de départ
 * du premier, donc la boucle est invisible.
 */
.trust__track {
  display: flex; width: max-content;
  animation: trust-scroll 165s linear infinite;
}
.trust__marquee:hover .trust__track { animation-play-state: paused; }
.trust__group {
  flex: 0 0 auto;
  display: flex; align-items: center;
  gap: 72px; padding-right: 72px;
}
.trust__group img {
  height: 38px; width: auto; max-width: 180px; object-fit: contain;
  mix-blend-mode: multiply;
}
.trust__group img.trust__logo--tall { height: 60px; }
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 24px; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}

/* ---------- Produit : vitrine ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center;
  padding: 48px 0;
}
.feature--reverse .feature__text { order: 2; }
.feature--reverse .feature__media { order: 1; }
.feature__tag {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border);
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  margin-bottom: 20px;
}
.feature__text h3 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 16px; }
.feature__text > p { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }
.feature__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature__list li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14.5px; color: var(--text-muted);
}
.feature__list li::before {
  content: "✓"; color: var(--accent-2); font-weight: 700; flex-shrink: 0;
}

.browser {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.browser:hover { transform: translateY(-6px); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }
.browser__bar {
  display: flex; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.browser__bar span:first-child { background: #ff5f57; }
.browser__bar span:nth-child(2) { background: #febc2e; }
.browser__bar span:nth-child(3) { background: #28c840; }
.browser img { width: 100%; background: #fff; }

/* ---------- Maquettes d'interface (en attendant les animations) ---------- */
/*
 * Ces panneaux remplacent les captures d'écran dans les cadres .browser. Ils
 * reprennent les colonnes réelles de l'application, mais avec des données de
 * démonstration : aucune donnée client ne transite par le site. Un seul
 * role="img" porte la description, sinon un lecteur d'écran énoncerait tout le
 * tableau. Pour revenir à une image, il suffit de remettre la balise <img>.
 */
.mock { padding: 14px 16px 16px; font-size: 11.5px; }
.mock__toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.mock__name { font-weight: 600; font-size: 13px; }
.mock__chip {
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px;
  background: rgba(77, 208, 225, 0.12); color: var(--accent-2);
  border: 1px solid rgba(77, 208, 225, 0.25);
}
.mock__search {
  margin-left: auto; padding: 4px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 10.5px;
}
.mock__table { width: 100%; border-collapse: collapse; }
.mock__table th {
  text-align: left; font-weight: 500; font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); padding: 0 8px 8px 0;
  border-bottom: 1px solid var(--border);
}
.mock__table td {
  padding: 9px 8px 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.mock__table tr:last-child td { border-bottom: 0; }
.mock__who { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mock__av {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(77, 208, 225, 0.14); color: var(--accent-2);
}
.mock__num { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mock__tag {
  padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 500;
}
.mock__tag--ok   { background: rgba(40, 200, 64, 0.12);  color: #6ee7a0; }
.mock__tag--warn { background: rgba(254, 188, 46, 0.12); color: #f2c94c; }
.mock__tag--off  { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.mock__tag--no   { background: rgba(255, 95, 87, 0.12);  color: #ff8a80; }
/* Pastille « en cours » : le point reprend le pouls de la maquette du hero. */
.mock__chip--live { display: inline-flex; align-items: center; gap: 6px; }
.mock__chip--live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28c840; box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.16);
}
/* Onglets de la vue cascade : Cascade · Règle · Quart · Message */
.mock__tabs {
  display: flex; gap: 16px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mock__tabs span {
  padding-bottom: 8px; font-size: 11px; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.mock__tabs span.on { color: var(--text); border-bottom-color: var(--accent-2); }
.mock__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 10.5px;
}
/* Journal : l'horodatage en chiffres tabulaires aligne les colonnes. */
.mock__log { list-style: none; margin: 0; padding: 0; }
.mock__log li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mock__log li:last-child { border-bottom: 0; }
.mock__log time {
  font-variant-numeric: tabular-nums; font-size: 10.5px;
  color: var(--accent-2); flex-shrink: 0; opacity: 0.85;
}
.mock__ev { font-weight: 500; flex-shrink: 0; }
.mock__sub {
  color: var(--text-muted); font-size: 10.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Bande de la semaine : sept créneaux, les jours planifiés en accent. */
.mock__week { display: inline-flex; gap: 3px; }
.mock__week i {
  width: 6px; height: 14px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.mock__week i.on { background: var(--accent-2); opacity: 0.75; }
@media (max-width: 520px) {
  .mock { font-size: 10.5px; }
  .mock__table th:nth-child(3), .mock__table td:nth-child(3) { display: none; }
  .mock__search { display: none; }
  .mock__tabs { gap: 12px; }
  .mock__foot { font-size: 10px; }
}

/* ---------- Industries (tuiles qui s'ouvrent au survol) ---------- */
/*
 * Une rangée de tuiles de largeur égale. Au survol de la rangée, toutes les
 * tuiles se resserrent et celle qui est pointée s'élargit : c'est la largeur
 * gagnée qui fait apparaître la description, restée repliée jusque-là.
 */
.tiles { display: flex; flex-direction: column; gap: 16px; }
.tiles__row { display: flex; gap: 16px; height: 420px; }
.tile {
  position: relative; flex: 1 1 0%; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: flex-grow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.35s ease;
}
.tile__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.4) brightness(0.62);
  transform: scale(1.02);
  transition: transform 0.7s ease, filter 0.5s ease;
}
/*
 * Deux dégradés : le principal remonte du bas pour porter le texte, le second
 * assombrit légèrement le haut pour détacher la tuile du fond de page.
 */
.tile__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11, 17, 23, 0.94) 0%, rgba(11, 17, 23, 0.62) 34%, rgba(11, 17, 23, 0.1) 68%),
    linear-gradient(to bottom, rgba(11, 17, 23, 0.35), rgba(11, 17, 23, 0) 28%);
}
.tile__btm { position: relative; }
.tile__title {
  font-size: 20px; line-height: 1.25;
  display: flex; align-items: baseline; gap: 8px;
}
.tile__arrow { color: var(--accent-2); transition: transform 0.35s ease; }
.tile__desc {
  color: rgba(230, 237, 243, 0.78); font-size: 14.5px; line-height: 1.5;
  max-height: 0; opacity: 0; margin-top: 0; overflow: hidden;
  transform: translateY(6px);
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease, transform 0.5s ease;
}
.tiles__row:hover .tile, .tiles__row:focus-within .tile { flex-grow: 0.75; }
.tiles__row .tile:hover, .tiles__row .tile:focus-visible { flex-grow: 2; }
.tile:hover, .tile:focus-visible { border-color: rgba(77, 208, 225, 0.45); }
.tile:hover .tile__bg, .tile:focus-visible .tile__bg {
  filter: grayscale(0) brightness(0.78); transform: scale(1.06);
}
.tile:hover .tile__arrow, .tile:focus-visible .tile__arrow { transform: translateX(5px); }
.tile:hover .tile__desc, .tile:focus-visible .tile__desc {
  max-height: 8em; opacity: 1; margin-top: 12px; transform: none;
}
/* Sans survol possible, rien ne déclencherait l'ouverture : tout reste ouvert. */
@media (hover: none) {
  .tile__desc { max-height: 8em; opacity: 1; margin-top: 12px; transform: none; }
  .tile__bg { filter: grayscale(0) brightness(0.68); }
}

/* ---------- Performance ---------- */
.perf { position: relative; overflow: hidden; }
.perf__curve {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.perf__curve svg { width: 100%; height: 100%; display: block; }
.perf__line { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.perf__fill { opacity: 0; }
.perf.is-visible .perf__line { animation: perf-draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.perf.is-visible .perf__fill { animation: perf-fill 1.6s ease 0.5s forwards; }
@keyframes perf-draw { to { stroke-dashoffset: 0; } }
@keyframes perf-fill { to { opacity: 1; } }
.perf__inner { position: relative; max-width: 760px; }
.perf__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 40px; margin-top: 44px;
}
.perf__stat { padding-left: 18px; border-left: 2px solid var(--accent-2); }
.perf__value {
  display: block; font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; line-height: 1.1;
}
.perf__label { display: block; margin-top: 6px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Témoignages ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote {
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
  justify-content: space-between;
}
.quote blockquote {
  font-size: 16.5px; line-height: 1.6; font-weight: 500;
}
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote__logo {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6px;
}
.quote__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.quote figcaption small { display: block; color: var(--text-muted); }

/* ---------- À propos ---------- */
.about { position: relative; }
/*
 * La photo sort du conteneur pour aller d'un bord a l'autre de l'ecran : sans
 * cela, elle s'arreterait net a 1180 px. Le masque la fait disparaitre en
 * diagonale vers le haut-gauche, la ou se trouve le texte, et le degrade
 * vertical pose par-dessus fond les bords haut et bas dans la couleur de page.
 */
.about__bg {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(11, 17, 23, 0) 20%,
                    rgba(11, 17, 23, 0) 80%, var(--bg) 100%),
    url("assets/about-trees.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, rgba(0, 0, 0, 0.45) 58%, #000 88%);
  mask-image: linear-gradient(115deg, transparent 30%, rgba(0, 0, 0, 0.45) 58%, #000 88%);
  opacity: 0.42;
  pointer-events: none;
}
.about__text { position: relative; max-width: 760px; }
.about__text h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 24px; }
.about__text p { color: var(--text-muted); font-size: 17px; margin-bottom: 18px; max-width: 640px; }

/* ---------- CTA / formulaire ---------- */
.cta { padding: 120px 24px; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(77, 208, 225, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% 120%, rgba(14, 127, 147, 0.12), transparent 70%);
}
.cta__panel {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px;
  padding: 56px;
  border-radius: 28px;
  background: rgba(22, 33, 44, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}
.cta__info h2 { font-size: clamp(32px, 3.8vw, 46px); margin-bottom: 18px; }
.cta__info > p { color: var(--text-muted); font-size: 16.5px; margin-bottom: 28px; }
.cta__points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cta__points li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14.5px; color: var(--text-muted);
}
.cta__points li::before { content: "✓"; color: var(--accent-2); font-weight: 700; }
.cta__contact { font-size: 14px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.cta__contact a { color: var(--accent-2); font-weight: 600; }
.cta__contact a:hover { text-decoration: underline; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__field label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form__field input,
.form__field select,
.form__field textarea {
  padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 14.5px;
  outline: none; transition: border-color 0.25s ease, background 0.25s ease;
  width: 100%;
}
.form__field select { appearance: none; cursor: pointer; }
.form__field select option { background: var(--panel); color: var(--text); }
.form__field textarea { resize: vertical; min-height: 96px; }
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(168, 160, 160, 0.6); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { border-color: var(--accent-2); background: var(--surface-strong); }
.form__submit { margin-top: 4px; }
.form__submit:disabled { opacity: .6; cursor: progress; }
.form__status { font-size: 13.5px; color: #4ade80; min-height: 20px; }
.form__status--error { color: #f26969; }

/* Piège à pourriel : hors écran plutôt que display:none, que certains robots
   savent détecter. aria-hidden + tabindex="-1" l'écartent des lecteurs d'écran
   et du parcours au clavier. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding: 64px 24px 48px;
}
.footer__brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 6px; }
.footer__col a, .footer__col span { font-size: 14.5px; color: var(--text-muted); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.footer__bottom a:hover { color: var(--text); }

/* ---------- Animations au défilement ---------- */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mockup__card--float, .pulse { animation: none; }
  .hero__scroll, .hero__scroll-dot { animation: none; }
  .tile, .tile__bg, .tile__desc { transition: none; }
  .perf__line { stroke-dashoffset: 0; animation: none; }
  .perf__fill { opacity: 1; animation: none; }
  /* Sans animation, le carrousel redevient une grille centrée et le second
     groupe (le doublon de la boucle) n'a plus de raison d'être affiché. Le
     masque de bord disparaît aussi : rien ne sort plus du cadre, il ne ferait
     que délaver les logos des extrémités. */
  .trust__marquee { -webkit-mask-image: none; mask-image: none; }
  .trust__track {
    animation: none; width: 100%;
    flex-wrap: wrap; justify-content: center;
  }
  .trust__group { flex-wrap: wrap; justify-content: center; gap: 40px 56px; padding-right: 0; }
  .trust__group[aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 64px; min-height: auto; padding-top: 140px; padding-bottom: 80px; }
  /* Hero empilé : plus de premier écran à remplir, l'invitation n'a plus d'objet. */
  .hero__scroll { display: none; }
  .hero__visual { max-width: 620px; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; }
  .feature--reverse .feature__text { order: 1; }
  .feature--reverse .feature__media { order: 2; }
  .tiles__row { height: 340px; }
  .cta__panel { grid-template-columns: 1fr; padding: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .quotes { grid-template-columns: 1fr; }
  .tiles__row { flex-direction: column; height: auto; }
  .tile { height: 260px; }
  .tiles__row:hover .tile, .tiles__row .tile:hover { flex-grow: 1; }
  .perf__stats { gap: 22px 24px; }
  .section { padding: 80px 24px; }
  .mockup__card { right: 8px; bottom: -18px; }
  .trust__group { gap: 44px; padding-right: 44px; }
  .trust__group img { height: 28px; }
  .trust__group img.trust__logo--tall { height: 46px; }
  .cta__panel { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Pages légales ---------- */
.legal__head {
  border-bottom: 1px solid var(--border); padding: 20px 0;
  background: var(--bg-alt);
}
.legal__head .container,
.legal__foot .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.legal__back { color: var(--text-muted); text-decoration: none; font-size: 14.5px; }
.legal__back:hover { color: var(--accent-2); }
.legal { padding: 64px 0 96px; }
.legal__inner { max-width: 760px; }
.legal h1 {
  font-size: clamp(30px, 4vw, 42px); margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px; margin: 44px 0 14px; padding-top: 4px;
}
.legal h3 { font-size: 17px; margin: 30px 0 10px; color: var(--accent-2); }
.legal p, .legal li { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 18px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-2); }
.legal__foot {
  border-top: 1px solid var(--border); padding: 28px 0 40px;
  font-size: 13.5px; color: var(--text-muted);
}
.legal__foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.legal__foot a { color: var(--text-muted); text-decoration: none; }
.legal__foot a:hover { color: var(--accent-2); }
@media (max-width: 600px) {
  .legal__foot .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}
