/* ==========================================================================
   Sanitek V2 — Gestion cloud de l'hygiène et de la salubrité · Lalema inc.
   ========================================================================== */

:root {
  /* Brand */
  --orange: #ff701f;
  --orange-2: #ff8a3d;
  --orange-600: #ec5a12;
  --orange-700: #c9490a;
  --cyan: #4addff;
  --cyan-600: #17aecb;

  /* Ink / neutrals */
  --ink: #14152a;
  --ink-2: #1c1e3a;
  --ink-3: #262a4d;
  --text: #4a4f63;
  --muted: #838a9e;
  --line: #e9ebf3;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --shadow-sm: 0 6px 18px rgba(20, 21, 42, .06);
  --shadow-md: 0 18px 40px rgba(20, 21, 42, .10);
  --shadow-lg: 0 30px 70px rgba(20, 21, 42, .16);
  --shadow-orange: 0 16px 40px -12px rgba(255, 112, 31, .6);

  --grad-orange: linear-gradient(120deg, #ff8a3d 0%, #ff5e1f 55%, #ff701f 100%);
  --grad-ink: linear-gradient(160deg, #1b1d3a 0%, #14152a 60%, #101126 100%);

  --header-h: 76px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* La gouttière réservée évite que la page se décale quand le défilement est
   bloqué (intro, modale ouverte) puis rendu. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
strong { font-weight: 700; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.4rem; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--grad-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Intro
   Le logo s'affiche plein écran puis rejoint sa place dans l'en-tête. Le voile
   démarre blanc puis révèle directement l'arrière-plan complet du hero, en
   conservant le logo dans ses couleurs : quand le voile s'efface,
   il découvre la page sans rupture. Séquence et retrait du DOM : js/main.js.
   ========================================================================== */
body.intro-on { overflow: hidden; }
body.intro-on #pageShell { opacity: 0; visibility: hidden; }
#pageShell { transition: opacity .45s var(--ease); }

.intro-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: #fff;
  transition: opacity .8s var(--ease);
}
.intro-overlay.is-out { opacity: 0; pointer-events: none; }

.intro-logo {
  position: fixed; left: 50%; top: 50%; z-index: 901;
  width: min(560px, calc(100vw - 3rem)); height: auto;
  transform: translate(-50%, -50%) scale(.94);
  transform-origin: center center;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.intro-logo.is-in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Le vol vers l'en-tête a sa propre durée : main.js s'y cale (INTRO_FLY). */
.intro-logo.is-flying { transition: transform 1s cubic-bezier(.22, 1, .36, 1); }

/* ---------- Shared typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--orange-600);
  margin-bottom: 1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,112,31,.18); }
.eyebrow-light { color: var(--orange-2); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--ink); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-sub { margin-top: .9rem; font-size: 1.08rem; color: var(--muted); }
.section-head-light .section-title { color: #fff; }
.lead { font-size: 1.1rem; color: var(--text); }
.grad {
  background: var(--grad-orange); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  border-radius: var(--radius-pill); padding: .95rem 1.9rem; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s var(--ease);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn-sm { padding: .6rem 1.25rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 46px -12px rgba(255,112,31,.7); }
.btn-play { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-play:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.btn-play .play-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-orange); display: inline-flex; align-items: center; justify-content: center; color: #fff; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-orange); z-index: 300; transition: width .1s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; min-height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.brand-logo { height: 40px; width: auto; transition: filter .35s var(--ease); }
/* logo white while transparent over dark hero, dark once scrolled */
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

.primary-nav .nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-list a { padding: .5rem .95rem; border-radius: 9px; font-weight: 500; font-size: .96rem; color: rgba(255,255,255,.9); transition: color .2s, background .2s; }
.site-header.scrolled .nav-list a { color: var(--ink); }
.nav-list a:hover { color: var(--orange); background: rgba(255,112,31,.1); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions-mobile { display: none; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .85rem; color: rgba(255,255,255,.7); }
.site-header.scrolled .lang-switch { color: var(--muted); }
.lang-switch a { color: inherit; }
.lang-switch a.active { color: #fff; }
.site-header.scrolled .lang-switch a.active { color: var(--ink); }
.nav-login { font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.92); }
.site-header.scrolled .nav-login { color: var(--ink); }
.nav-login:hover { color: var(--orange); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 26px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem; overflow: hidden;
  background: var(--grad-ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../assets/images/sanitek-background-1600x1067.jpg') center/cover no-repeat;
  opacity: .14; mix-blend-mode: luminosity;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; }
.hero-glow-1 { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(255,112,31,.55), transparent 68%); }
.hero-glow-2 { width: 460px; height: 460px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(74,221,255,.28), transparent 70%); }
.hero-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-content { color: #fff; }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; color: #fff; line-height: 1.06; letter-spacing: -.02em; }
.hero-lead { margin: 1.4rem 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.82); max-width: 34rem; }
.hero-lead strong { color: #fff; }

.tag-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.9rem; }
.tag-chips li {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: #fff;
  padding: .5rem 1.1rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  position: relative; padding-left: 2rem;
}
.tag-chips li::before { content: ""; position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--orange-2); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero-trust svg { color: var(--cyan); }

/* Hero visual / mock */
.hero-visual { position: relative; min-height: 400px; }
.mock-card { background: rgba(255,255,255,.98); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mock-main { padding: 1.5rem; position: relative; z-index: 2; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.mock-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.mock-badge { font-size: .72rem; font-weight: 700; color: #0a8f5b; background: rgba(13,205,123,.14); padding: .28rem .7rem; border-radius: 100px; }
.mock-chart { display: flex; align-items: flex-end; gap: .5rem; height: 120px; padding: .5rem 0; }
.mock-chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--orange-2), var(--orange)); border-radius: 6px 6px 3px 3px; opacity: .92; }
.mock-chart span:nth-child(6) { background: linear-gradient(180deg, #ffd7bf, var(--orange)); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.mock-stats div { text-align: center; }
.mock-stats strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.mock-stats small { color: var(--muted); font-size: .74rem; }

.mock-score {
  position: absolute; z-index: 3; left: -28px; bottom: 36px;
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem;
}
.score-ring {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--orange) calc(var(--val) * 1%), #ecedf5 0);
  position: relative; flex-shrink: 0;
}
.score-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.score-ring span { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.score-label strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
.score-label small { color: var(--muted); font-size: .74rem; }

.mock-pill {
  position: absolute; z-index: 3; right: -14px; top: 18px;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem; font-weight: 600; font-size: .82rem; color: var(--ink);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #0dcd7b; box-shadow: 0 0 0 4px rgba(13,205,123,.16); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: .6rem 1rem; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.1); }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: rgba(255,255,255,.72); font-size: .88rem; }

/* ==========================================================================
   Split (Produit)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.media-frame {
  position: relative; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.media-frame img { width: 82%; }
.media-tag {
  position: absolute; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  padding: .5rem .95rem; border-radius: 100px; background: #fff; box-shadow: var(--shadow-md); color: var(--ink);
}
.media-tag-1 { top: 1.2rem; left: 1.2rem; color: var(--orange-600); }
.media-tag-2 { bottom: 1.2rem; right: 1.2rem; color: var(--cyan-600); }
.check-list { margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2.1rem; font-weight: 500; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: rgba(255,112,31,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23ff701f'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ==========================================================================
   Features grid
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(255,112,31,.35); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 15px; color: #fff; background: var(--grad-orange); margin-bottom: 1.2rem;
  box-shadow: var(--shadow-orange);
}
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: .94rem; }

/* ==========================================================================
   Video
   ========================================================================== */
.video-frame {
  position: relative; max-width: 940px; margin-inline: auto; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Sanitag (application Android — téléchargement APK)
   ========================================================================== */
.app-dl { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.app-dl .lead { margin-top: 1rem; }
.app-dl .check-list { margin-bottom: 0; }
/* Deux sections d'outils se suivent : on alterne le sens pour que la seconde
   ne soit pas la copie conforme de la première. */
.app-dl-reverse { grid-template-columns: .95fr 1.05fr; }
.app-dl-reverse .app-dl-text { order: 2; }
.app-dl-reverse .app-card { order: 1; }
.app-dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.app-dl-meta { margin-top: 1rem; font-size: .86rem; color: var(--muted); }

.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow-md);
  display: grid; justify-items: center; text-align: center;
}
.app-ico {
  width: 92px; height: 92px; border-radius: 26px; margin-bottom: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--grad-orange); box-shadow: var(--shadow-orange);
}
.app-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.app-editor { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.app-specs { display: grid; gap: .55rem; width: 100%; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.app-specs div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.app-specs dt { color: var(--muted); }
.app-specs dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Pillars (méthode)
   ========================================================================== */
.pillars { display: grid; gap: 1.4rem; }
.pillar-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.pillar-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad-orange); }
.pillar-aside { position: relative; }
.pillar-num {
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .9;
}
.pillar-heading { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.pillar-ico { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--orange); background: rgba(255,112,31,.12); flex-shrink: 0; }
.pillar-heading h3 { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.pillar-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.pillar-cards-2 { grid-template-columns: repeat(2, 1fr); }
.mini-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.mini-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.mini-sub { display: block; color: var(--cyan-600); font-weight: 600; font-size: .85rem; margin-bottom: .7rem; }
.mini-card ul { display: grid; gap: .45rem; margin-top: .5rem; }
.mini-card li { position: relative; padding-left: 1.3rem; font-size: .95rem; color: var(--text); }
.mini-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.mini-card-accent { background: linear-gradient(160deg, rgba(255,112,31,.09), rgba(255,138,61,.05)); border-color: rgba(255,112,31,.28); }

/* ==========================================================================
   Mission / Vision / Valeurs
   ========================================================================== */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mvv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mvv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mvv-ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 15px; color: #fff; background: var(--grad-orange); margin-bottom: 1.2rem; box-shadow: var(--shadow-orange); }
.mvv-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .8rem; color: var(--ink); }
.values-list { display: grid; gap: .6rem; margin-top: .3rem; counter-reset: v; }
.values-list li { position: relative; padding-left: 2.4rem; font-weight: 500; color: var(--ink); }
.values-list li::before {
  counter-increment: v; content: counter(v, decimal-leading-zero);
  position: absolute; left: 0; top: -1px; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  color: var(--orange-600); background: rgba(255,112,31,.12); width: 1.8rem; height: 1.8rem; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { width: 132px; height: 132px; margin: 0 auto 1.2rem; border-radius: 50%; padding: 4px; background: var(--grad-orange); }
.team-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.team-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.team-role { color: var(--orange-600); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin: .35rem 0; }
.team-desc { color: var(--muted); font-size: .92rem; }

/* ==========================================================================
   CTA (Prix + devis)
   ========================================================================== */
.section-cta { background: var(--grad-ink); overflow: hidden; }
.cta-glow { width: 500px; height: 500px; top: -140px; right: -100px; background: radial-gradient(circle, rgba(255,112,31,.4), transparent 70%); }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-text .section-title { color: #fff; }
.cta-text .lead { color: rgba(255,255,255,.82); margin-top: 1rem; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.8rem; }
.cta-contact { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 600; }
.cta-contact:hover { color: var(--orange-2); }
.cta-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--orange-2); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }

.cta-card { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.cta-phone { width: 100%; border-radius: var(--radius); margin-bottom: 1.4rem; }
.cta-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.devis-form { display: grid; gap: .9rem; }
.devis-form input[type="email"] { width: 100%; padding: .95rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--ink); font-size: 1rem; transition: border-color .2s; }
.devis-form input[type="email"]:focus-visible { outline: none; border-color: var(--orange); background: #fff; }
.gdpr { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .85rem; }
.gdpr input { margin-top: .3rem; accent-color: var(--orange); flex-shrink: 0; }
.form-feedback { min-height: 1.1em; font-weight: 600; font-size: .9rem; margin: 0; }
.form-feedback.ok { color: #0a8f5b; }
.form-feedback.err { color: #d84a2c; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.contact-list { display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--orange); background: rgba(255,112,31,.1); }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--orange); }
.contact-list span { color: var(--text); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 38px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .92rem; max-width: 30ch; }
.footer-by { margin-top: .8rem; }
.footer-by a { color: var(--orange-2); font-weight: 600; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1.1rem; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: .7rem; }
.footer-col a:hover { color: var(--orange-2); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; flex-wrap: wrap; }
.footer-copy { font-size: .85rem; color: rgba(255,255,255,.6); }
.lang-switch-dark { color: rgba(255,255,255,.6); }
.lang-switch-dark a.active { color: #fff; }

/* ==========================================================================
   Cookie notice + scroll top
   ========================================================================== */
.cookie-notice[hidden] { display: none !important; }
.cookie-notice {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 250; max-width: 660px; margin-inline: auto;
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
}
.cookie-notice p { font-size: .88rem; }
.cookie-notice a { text-decoration: underline; }

/* ==========================================================================
   Modales légales (conditions, confidentialité)
   ========================================================================== */
.legal-link {
  color: inherit; font: inherit; padding: 0; background: none; border: 0;
  cursor: pointer; text-decoration: none;
}
.legal-link:hover { color: var(--orange-2); text-decoration: underline; }
.footer-col .legal-link { display: block; color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: .7rem; text-align: left; }
.gdpr .legal-link, .cookie-notice .legal-link { color: var(--orange-600); text-decoration: underline; }
.gdpr .legal-link:hover, .cookie-notice .legal-link:hover { color: var(--orange-700); }

.footer-legal { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-legal .sep { color: rgba(255,255,255,.3); }
.footer-legal .legal-link { color: rgba(255,255,255,.72); font-size: .85rem; }

.modal-root { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1.5rem; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,21,42,.6); backdrop-filter: blur(3px); }

.legal-modal {
  position: relative; width: min(680px, 100%); max-height: min(80vh, 760px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.legal-modal[hidden] { display: none; }
.legal-modal header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); flex: none;
}
.legal-modal header h2 { font-size: 1.2rem; }
.legal-modal .modal-x {
  font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 0 .35rem;
  border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.legal-modal .modal-x:hover { color: var(--ink); }
.legal-modal .modal-body { padding: 1.3rem 1.5rem 1.7rem; overflow-y: auto; }
.legal-modal .modal-body > * + * { margin-top: .9rem; }
.legal-modal .modal-body p, .legal-modal .modal-body li { font-size: .94rem; }
.legal-modal .modal-body h3 { font-size: 1rem; margin-top: 1.4rem; }
.legal-modal .modal-body ul { display: grid; gap: .45rem; padding-left: 1.15rem; }
.legal-modal .modal-body li { list-style: disc; }
.legal-modal .modal-foot { margin-top: 1.3rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 240; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-orange); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  /* Sept entrées de menu : on resserre avant que la barre ne déborde, le
     repli en menu déroulant n'arrivant qu'à 900 px. */
  .nav-list a { padding: .5rem .62rem; font-size: .9rem; }
  .nav-actions { gap: .7rem; }
}

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-cards-2 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .primary-nav.open { max-height: 80vh; overflow-y: auto; }
  .primary-nav .nav-list { flex-direction: column; align-items: stretch; padding: .8rem 1.4rem 0; }
  .nav-list a { padding: .9rem .6rem; color: var(--ink); }
  .nav-actions-mobile { display: flex; flex-direction: column; gap: .8rem; padding: .6rem 1.4rem 1.6rem; }
  .nav-actions-mobile .nav-login { color: var(--ink); text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 1rem; }
  .split, .cta-grid, .contact-grid, .app-dl { grid-template-columns: 1fr; }
  .app-card { max-width: 460px; margin-inline: auto; }
  /* En colonne, le texte passe devant quel que soit le sens choisi au large. */
  .app-dl-reverse .app-dl-text { order: 1; }
  .app-dl-reverse .app-card { order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .mvv-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pillar-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .pillar-heading { margin-top: .2rem; }
  .contact-grid { direction: ltr; }
  .contact-map { order: -1; }
}

@media (max-width: 560px) {
  .feature-grid, .pillar-cards, .pillar-cards-2, .team-grid { grid-template-columns: 1fr; }
  .team-grid { max-width: 320px; margin-inline: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .app-dl-actions { flex-direction: column; align-items: stretch; }
  .app-dl-actions .btn { width: 100%; }
  .mock-score { left: 0; }
  .mock-pill { right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* L'intro reste présente sur téléphone, mais ses transitions plus courtes
   évitent une impression d'attente au premier affichage. */
@media (max-width: 700px) {
  .intro-logo { transition-duration: .45s; }
  .intro-logo.is-flying { transition-duration: .7s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* La demande produit est de conserver l'intro sur mobile. Safari peut activer
   prefers-reduced-motion selon les réglages de l'appareil : on rétablit donc
   uniquement les trois transitions nécessaires à cette intro. */
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .intro-overlay { transition: opacity .8s var(--ease) !important; }
  .intro-logo {
    transition: opacity .45s var(--ease), transform .45s var(--ease) !important;
  }
  .intro-logo.is-flying {
    transition: transform .7s cubic-bezier(.22, 1, .36, 1) !important;
  }
}
