/* =========================================================================
   SmartAgri — site public
   Charte : #075E4B (primaire), #0B8063, #DDF2E7 (menthe), #F0F8F3 (ice mint)
   ========================================================================= */

:root {
  --c-primary: #075e4b;
  --c-primary-dark: #054436;
  --c-secondary: #0b8063;
  --c-mint: #ddf2e7;
  --c-ice: #f0f8f3;
  --c-white: #ffffff;
  --c-sun: #f5b93b;
  --c-text: #12352c;
  --c-muted: #3d6a5e;
  --c-line: rgba(7, 94, 75, 0.12);

  --radius-sm: 16px;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(7, 94, 75, 0.06);
  --shadow-lift: 0 18px 44px rgba(7, 94, 75, 0.14);
  --shadow-phone: 0 40px 80px rgba(7, 94, 75, 0.25);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-ice);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.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;
}

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

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

.section--white {
  background: var(--c-white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head p {
  color: var(--c-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  color: var(--c-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s;
}

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

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 12px 28px rgba(7, 94, 75, 0.28);
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 94, 75, 0.34);
}

.btn--ghost {
  background: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-mint);
  box-shadow: var(--shadow);
}

.btn--ghost:hover {
  border-color: var(--c-secondary);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--c-white);
  color: var(--c-primary);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.btn--outline-light {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  border-color: var(--c-white);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Badge Google Play (rendu seulement si playStoreUrl est défini) */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 20px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.play-badge small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.play-badge strong {
  font-size: 1.1rem;
}

.play-badge svg {
  width: 26px;
  height: 26px;
}

[hidden] {
  display: none !important;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(240, 248, 243, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 24px rgba(7, 94, 75, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: clamp(132px, 30vw, 160px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  background: var(--c-mint);
  color: var(--c-primary);
}

.nav .btn {
  min-height: 44px;
  margin-left: 8px;
  padding: 8px 20px;
  color: var(--c-white);
}

.nav .btn:hover {
  background: var(--c-primary-dark);
  color: var(--c-white);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--c-white);
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-primary);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}

.burger span:nth-child(1) {
  top: 16px;
}

.burger span:nth-child(2) {
  top: 23px;
}

.burger span:nth-child(3) {
  top: 30px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 940px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) - 4px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lift);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.3s var(--ease),
      opacity 0.25s,
      visibility 0.3s;
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow-y: auto;
  }

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

  .nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .nav .btn {
    margin: 8px 0 0;
  }

  .site-header {
    background: rgba(240, 248, 243, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 110px);
  overflow: hidden;
}

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

.hero::before {
  width: min(70vw, 760px);
  aspect-ratio: 1;
  right: -18%;
  top: -12%;
  background: radial-gradient(circle, rgba(11, 128, 99, 0.18), rgba(11, 128, 99, 0) 68%);
}

.hero::after {
  width: min(60vw, 560px);
  aspect-ratio: 1;
  left: -20%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(221, 242, 231, 0.95), rgba(221, 242, 231, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy .lead {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  color: var(--c-muted);
  max-width: 560px;
}

.hero-copy h1 .accent {
  color: var(--c-secondary);
  background: linear-gradient(transparent 62%, var(--c-mint) 62%);
  padding-inline: 4px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  box-shadow: var(--shadow);
  color: var(--c-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

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

.apk-meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* Maquette de téléphone animée */
.phone-stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 24px 0;
}

.phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 390 / 844;
  padding: 11px;
  border-radius: 46px;
  background: #10261f;
  box-shadow:
    inset 0 0 0 2px #2c4a40,
    var(--shadow-phone);
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--c-ice);
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.8s var(--ease),
    transform 1.2s var(--ease);
}

.phone-screen img.is-active {
  opacity: 1;
  transform: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 230px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lift);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
  animation: float 7s ease-in-out infinite;
}

.float-card .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--c-mint);
  color: var(--c-primary);
}

.float-card .ico svg {
  width: 20px;
  height: 20px;
}

.float-card small {
  display: block;
  font-weight: 500;
  color: var(--c-muted);
}

.float-card--a {
  top: 14%;
  left: max(-4%, -24px);
  animation-delay: -2s;
}

.float-card--b {
  bottom: 18%;
  right: max(-4%, -24px);
  animation-delay: -4s;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.screen-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-muted);
  font: 600 0.85rem var(--font);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.screen-tabs button[aria-pressed="true"] {
  background: var(--c-primary);
  color: var(--c-white);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-copy .btn-row,
  .hero-pills {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .float-card {
    display: none;
  }

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

/* ---------- Cartes génériques ---------- */
.card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--c-mint);
  color: var(--c-primary);
}

.icon-tile svg {
  width: 28px;
  height: 28px;
}

.card p {
  color: var(--c-muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

/* ---------- Problème → solution ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  align-items: stretch;
}

.compare .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.compare li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--c-muted);
}

.compare li svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.card--problem {
  background: var(--c-white);
}

.card--problem li svg {
  color: #b5533c;
}

.card--solution {
  background: linear-gradient(150deg, var(--c-secondary), var(--c-primary));
  color: var(--c-white);
}

.card--solution h3,
.card--solution li {
  color: var(--c-white);
}

.card--solution li svg {
  color: var(--c-mint);
}

/* ---------- Fonctionnalités ---------- */
.feature {
  display: flex;
  flex-direction: column;
}

.feature .tag {
  align-self: flex-start;
  margin-top: 18px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-ice);
  color: var(--c-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.feature--highlight {
  background: linear-gradient(160deg, var(--c-white) 55%, var(--c-mint));
}

.quote {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--c-secondary);
  border-radius: 0 12px 12px 0;
  background: var(--c-ice);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-primary);
}

/* ---------- Étapes ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  counter-increment: step;
  padding-top: clamp(28px, 3vw, 36px);
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(7, 94, 75, 0.3);
}

/* ---------- Vidéo ---------- */
.video-wrap {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--c-white);
  box-shadow: var(--shadow-lift);
}

.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--c-mint);
}

.video-note {
  margin-top: 18px;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.95rem;
}

/* ---------- Impact ---------- */
.section--impact {
  background: linear-gradient(150deg, var(--c-primary), var(--c-primary-dark));
  color: var(--c-white);
  overflow: hidden;
}

.section--impact::before {
  content: "";
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: rgba(221, 242, 231, 0.08);
}

.section--impact h2,
.section--impact .section-head p {
  color: var(--c-white);
}

.section--impact .section-head p {
  opacity: 0.88;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(221, 242, 231, 0.18);
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s;
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.stat strong {
  display: block;
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-white);
}

.stat--word strong {
  font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.9rem);
  overflow-wrap: anywhere;
}

.stat strong .unit {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 4px;
  color: var(--c-mint);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--c-mint);
  font-weight: 500;
}

/* ---------- Experts, partenaires, sponsors ---------- */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: calc(var(--radius-lg) + 4px);
  background: var(--c-white);
  box-shadow: var(--shadow-lift);
}

.contact-aside h3 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
}

.contact-aside p {
  color: var(--c-muted);
}

.mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail-chip svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid var(--c-mint);
  border-radius: var(--radius-sm);
  background: var(--c-ice);
  color: var(--c-text);
  font: 500 1rem var(--font);
  transition: border-color 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-secondary);
  background: var(--c-white);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 185, 59, 0.6);
}

.profile-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-choice legend {
  margin-bottom: 8px;
}

.profile-choice label {
  position: relative;
  cursor: pointer;
}

.profile-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.profile-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--c-mint);
  border-radius: var(--radius-pill);
  background: var(--c-ice);
  color: var(--c-primary);
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.profile-choice input:checked + span {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

.profile-choice input:focus-visible + span {
  outline: 3px solid var(--c-sun);
  outline-offset: 2px;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-muted);
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4em;
  font-weight: 600;
  color: var(--c-primary);
}

.form-status.is-error {
  color: #a3321f;
}

@media (max-width: 820px) {
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    var(--c-mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23075E4B' d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--c-muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Téléchargement ---------- */
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(circle at 90% 10%, rgba(221, 242, 231, 0.18), transparent 45%),
    linear-gradient(150deg, var(--c-secondary), var(--c-primary-dark));
  color: var(--c-white);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.download-card h2 {
  color: var(--c-white);
}

.download-card p {
  color: rgba(255, 255, 255, 0.9);
}

.install-steps {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(221, 242, 231, 0.2);
  list-style: none;
  counter-reset: inst;
  display: grid;
  gap: 14px;
}

.install-steps li {
  counter-increment: inst;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
}

.install-steps li::before {
  content: counter(inst);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-primary);
  font-weight: 800;
}

.download-card .apk-meta {
  color: var(--c-mint);
}

@media (max-width: 860px) {
  .download-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 28px;
  background: #06372c;
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}

.site-footer h2 {
  font-size: 1rem;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--c-mint);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(221, 242, 231, 0.15);
  font-size: 0.88rem;
}

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 12px 28px rgba(7, 94, 75, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease),
    visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 24px;
  height: 24px;
}

/* ---------- Page de texte (confidentialité) ---------- */
.legal {
  max-width: 820px;
  margin-inline: auto;
}

.legal .card {
  margin-bottom: 20px;
}

.legal .card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.legal h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
}

.legal ul {
  padding-left: 1.2em;
  color: var(--c-muted);
}

.legal li {
  margin-bottom: 8px;
}

.legal .card p {
  color: var(--c-muted);
  margin-bottom: 1em;
}

.legal .card p:last-child {
  margin-bottom: 0;
}

.updated {
  color: var(--c-muted);
  font-size: 0.95rem;
}

/* ---------- Apparition au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

/* ---------- Mouvement réduit ---------- */
@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;
    transform: none;
  }
}
