/*
  Incivy — site public. Les couleurs, les rayons et les typos sont ceux de l'app
  (mobile/src/theme.ts) pour que le site et l'application se ressemblent.
*/

/*
  Les polices sont hébergées ici, pas chez un tiers : un site qui parle de vie privée
  n'a pas à envoyer l'adresse IP de ses visiteurs à un service de polices.
  Seul le caractère distinctif est embarqué ; le texte courant utilise les polices du
  système, plus légères et tout aussi lisibles.
*/
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque_800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque_600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Quatre teintes en deux fois deux : la brique de base des zones masquées. */
  --mosaic-tiles: conic-gradient(
    rgba(42, 36, 112, 0.95) 0 25%,
    rgba(67, 56, 202, 0.95) 0 50%,
    rgba(124, 108, 255, 0.95) 0 75%,
    rgba(249, 115, 22, 0.95) 0 100%
  );
  --brand-dark: #2a2470;
  --brand: #4338ca;
  --brand-light: #7c6cff;
  --brand-soft: #eeebff;
  --accent: #f97316;
  --accent-soft: #fff0e6;
  --positive: #0d9488;
  --positive-soft: #e3f6f4;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e8eaf3;
  --surface: #ffffff;
  --bg: #f5f6fb;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 18px 40px rgba(27, 31, 59, 0.08);
  --shadow-float: 0 28px 60px rgba(27, 31, 59, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--brand);
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.section--dark .eyebrow {
  color: #c7c2ff;
}

.hero .eyebrow {
  color: #cdc8ff;
}

.lead {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 62ch;
}

/* ---------- en-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 246, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand__tile {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  /* Les quatre quartiers sont peints par le fond, et non par quatre cases juxtaposées :
     le navigateur adoucit chaque bord de case, ce qui dessinait une fine ligne claire
     entre les quartiers. Un seul aplat n'a aucun bord intérieur à adoucir.
     Les mêmes valeurs sont répétées dans le style en ligne de la tuile : un navigateur
     qui aurait gardé cette feuille en cache ne peut pas afficher un carré blanc. */
  background-color: #4a4585;
  background-image:
    linear-gradient(90deg, #4a4585 0 50%, #5046ce 50% 100%),
    linear-gradient(90deg, #8576ff 0 50%, #f97316 50% 100%);
  background-size: 100% 50%;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
  box-shadow: 0 6px 16px rgba(42, 36, 112, 0.18);
}

.brand__name {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}

/* ---------- boutons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 14px 30px rgba(67, 56, 202, 0.32);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.button--light {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-card);
}

.button--soon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

.button--soon:hover {
  transform: none;
}

/* ---------- héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(124, 108, 255, 0.55), transparent 55%),
    linear-gradient(140deg, #211c5c 0%, var(--brand-dark) 30%, var(--brand) 68%, var(--brand-light) 100%);
  padding: 78px 0 96px;
}

.hero__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  grid-auto-rows: 1fr;
  opacity: 0.5;
  pointer-events: none;
}

.hero__mosaic span {
  background: rgba(255, 255, 255, 0.06);
  animation: tile 6s ease-in-out infinite;
}

.hero__mosaic span:nth-child(3n) {
  background: rgba(255, 255, 255, 0.12);
  animation-delay: 0.4s;
}

.hero__mosaic span:nth-child(4n) {
  background: rgba(249, 115, 22, 0.16);
  animation-delay: 1.1s;
}

.hero__mosaic span:nth-child(7n) {
  background: rgba(255, 255, 255, 0.02);
  animation-delay: 1.6s;
}

@keyframes tile {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  margin: 18px 0 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- aperçus de l'app ---------- */

.phones {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

.phone {
  width: 292px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #1b1740, #302a6f);
  box-shadow: var(--shadow-float);
  flex: 0 0 auto;
}

.phone__screen {
  position: relative;
  height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.phone__caption {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.phone-wrap {
  display: flex;
  flex-direction: column;
}

.phone:nth-child(2) {
  transform: translateY(-22px);
}

/* en-tête des écrans */

.screen-header {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-light));
  color: #fff;
  padding: 18px 16px 20px;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.screen-header__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-header__badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.screen-header__title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 21px;
  margin-top: 10px;
}

.screen-header__sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}

.chips {
  display: flex;
  gap: 6px;
  margin: 12px 14px 0;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.chip--active {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand);
}

/* carte de signalement */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  margin: 12px 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.photo {
  position: relative;
  height: 148px;
  background-size: cover;
  background-position: center;
  background: linear-gradient(180deg, #cfe4f5 0%, #eef3f8 42%, #cfd6de 43%, #9aa4b2 100%);
}

.photo--mosaic::after {
  content: "";
  position: absolute;
  left: 16%;
  bottom: 14px;
  width: 104px;
  height: 34px;
  border-radius: 3px;
  background-image: var(--mosaic-tiles);
  background-size: 17px 17px;
}

/* La plaque : un rectangle de blocs. Le visage : un carré, ailleurs dans l'image. */
.photo--mosaic::before {
  content: "";
  position: absolute;
  right: 18%;
  top: 18px;
  width: 52px;
  height: 52px;
  border-radius: 3px;
  background-image: var(--mosaic-tiles);
  background-size: 26px 26px;
}

.photo__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  padding: 5px 9px;
  border-radius: 999px;
}

.card__body {
  padding: 12px 14px 14px;
}

.card__text {
  font-size: 13.5px;
  font-weight: 500;
}

.card__meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
  background: var(--line);
}

.bar__yes {
  background: var(--accent);
}

.bar__no {
  background: var(--positive);
}

.votes {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.vote {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
}

.vote--no {
  background: var(--positive-soft);
  color: var(--positive);
}

.vote--yes {
  background: var(--accent-soft);
  color: var(--accent);
}

.tabbar {
  margin-top: auto;
  margin-bottom: 14px;
  align-self: center;
  width: 82%;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  font-size: 10px;
  color: var(--muted);
}

.tabbar__plus {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 300;
  box-shadow: 0 12px 26px rgba(67, 56, 202, 0.4);
}

.tabitem {
  font-size: 9px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.tabitem--feed::before,
.tabitem--contrib::before,
.tabitem--contrib::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h12v10H3zM5 5h12v2H5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h12v10H3zM5 5h12v2H5z'/%3E%3C/svg%3E");
}

/* Lignes de la maquette des contributions. */
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.mock-row:first-child { border-top: 0; }
.mock-thumb { width: 44px; height: 44px; border-radius: 10px; background-size: cover; background-position: center; flex: 0 0 auto; }
.mock-row__texts { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mock-row__title { font-size: 12px; font-weight: 600; }
.mock-row__meta { font-size: 10.5px; color: var(--muted); }

.tabitem--voter::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 16px 16px;
  mask-size: 16px 16px;
}

.tabitem--feed::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v4H3zM3 14h18v4H3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v4H3zM3 14h18v4H3z'/%3E%3C/svg%3E");
}

.tabitem--voter::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l6-5v10zM20 12l-6-5v10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l6-5v10zM20 12l-6-5v10z'/%3E%3C/svg%3E");
}

.tabitem--active {
  color: var(--brand);
}

/* écran voter */

.deck {
  position: relative;
  margin: 16px 14px 0;
  flex: 1;
}

.deck__card {
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.deck__card--back {
  transform: translateY(14px) scale(0.95);
  opacity: 0.6;
}

.deck__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 26px;
}

.round {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.round--no {
  background: var(--positive);
}

.round--yes {
  background: var(--accent);
}

/* écran nouveau signalement */

.sheet {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet__bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 15px;
}

.sheet__title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-inline: auto;
}

.slot {
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--brand-soft), #f8f7ff);
  border: 1px dashed #c9c1ff;
  padding: 22px 16px;
  text-align: center;
}

.slot__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  font-size: 20px;
}

.slot__title {
  font-weight: 700;
  font-size: 14px;
}

.slot__hint {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
}

.field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.field__label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}

.field__value {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
  font-weight: 600;
}

.publish {
  margin-top: auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 13px;
  text-align: center;
}

/* ---------- cartes de contenu ---------- */

.grid {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 940px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.card-soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.card-soft p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-top: 10px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.step--1 {
  background: var(--brand-dark);
}

.step--2 {
  background: var(--brand);
}

.step--3 {
  background: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
}

.pill--green {
  background: var(--positive-soft);
  color: var(--positive);
}

.pill--orange {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- section sombre ---------- */

.section--dark {
  background: linear-gradient(140deg, #211c5c, var(--brand-dark) 45%, var(--brand));
  color: #fff;
}

.section--dark .lead,
.section--dark p {
  color: rgba(255, 255, 255, 0.84);
}

.section--dark .card-soft {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.section--dark .card-soft p {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- téléchargement ---------- */

.download {
  text-align: center;
}

.store-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 12px 20px;
  min-width: 210px;
  text-decoration: none;
}

.store--soon {
  background: #1e293b;
  opacity: 0.92;
  cursor: default;
}

.store__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background-color: #fff;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
  /* Flèche de téléchargement : neutre, lisible, identique sur les deux boutons. */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.2l3.3-3.3 1.4 1.4L12 16 6.3 10.3l1.4-1.4L11 12.2z'/%3E%3Cpath d='M5 19h14v2H5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.2l3.3-3.3 1.4 1.4L12 16 6.3 10.3l1.4-1.4L11 12.2z'/%3E%3Cpath d='M5 19h14v2H5z'/%3E%3C/svg%3E");
}

.store__text {
  text-align: left;
}

.store__small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store__big {
  font-size: 17px;
  font-weight: 700;
}

/* ---------- FAQ ---------- */

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  margin-top: 14px;
  box-shadow: var(--shadow-card);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
}

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

summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--brand);
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-top: 12px;
  color: var(--ink-soft);
}

/* ---------- pied de page ---------- */

.site-footer {
  background: #14123a;
  color: rgba(255, 255, 255, 0.72);
  padding: 54px 0 34px;
  font-size: 14.5px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

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

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer__legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- pages légales ---------- */

.legal {
  padding: 64px 0 96px;
}

.legal article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 42px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
}

.legal h2 {
  font-size: 22px;
  margin-top: 34px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  margin-top: 12px;
}

.legal ul {
  padding-left: 22px;
}

.legal code {
  background: var(--bg);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 14px;
}

.todo {
  display: inline-block;
  background: var(--accent-soft);
  color: #b45309;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- animations ---------- */

/* Jauge de progression de lecture, tout en haut. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light), var(--accent));
  will-change: transform;
}

/* L'en-tête se pose quand on quitte le haut de page. */
.site-header {
  transition: background 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
  box-shadow: 0 12px 34px rgba(27, 31, 59, 0.09);
}

/* Apparitions : quatre mouvements distincts, jamais deux fois le même côte à côte. */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 720ms cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 720ms cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(-36px);
}

.reveal--right {
  transform: translateX(36px);
}

.reveal--scale {
  transform: translateY(26px) scale(0.94);
}

.reveal--soft {
  transform: translateY(14px);
}

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

/* Une grille marquée « data-stagger » fait apparaître ses enfants en cascade. */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 660ms cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 660ms cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Les cartes se soulèvent doucement au survol. */
.card-soft,
.phone,
.store {
  transition:
    transform 320ms cubic-bezier(0.16, 0.84, 0.44, 1),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.card-soft:hover {
  transform: translateY(-6px);
  border-color: #d7d3ff;
  box-shadow: 0 26px 50px rgba(27, 31, 59, 0.12);
}

.store:not(.store--soon):hover {
  transform: translateY(-4px);
}

/* Les barres de votes se remplissent quand elles entrent à l'écran. */
.bar__yes,
.bar__no {
  width: 0;
  transition: width 1s cubic-bezier(0.16, 0.84, 0.44, 1) 220ms;
}

.is-visible .bar__yes,
.is-visible .bar__no {
  width: var(--w);
}

/* Entrée du héros : le texte monte, la mosaïque se lève en vague. */
.hero__inner > * {
  animation: rise 880ms cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.hero__inner > *:nth-child(2) {
  animation-delay: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__mosaic span {
  opacity: 0;
  animation:
    tileIn 700ms ease both,
    tile 7s ease-in-out infinite;
}

@keyframes tileIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Le bouton principal laisse passer un reflet au survol. */
.button--primary,
.button--light {
  position: relative;
  overflow: hidden;
}

.button--primary::after,
.button--light::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 760ms ease;
}

.button--primary:hover::after,
.button--light:hover::after {
  transform: translateX(130%);
}

/* Une réponse de FAQ s'ouvre en fondu. */
details[open] > p {
  animation: fadeDown 320ms ease both;
}

details summary::after {
  transition: transform 220ms ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* La grande image d'aperçu flotte doucement, comme posée sur la page. */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phones .phone-wrap:nth-child(2) .phone {
  animation: float 7s ease-in-out infinite;
}

/* La question porte l'accroche, la promesse la suit. */
.hero p.hero__claim {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 2.3vw, 25px);
  color: #fff;
  margin: 0 0 14px;
  max-width: 34ch;
}

/* Le mot clé est souligné par une bande de mosaïque, qui se dessine à l'arrivée. */
.souligne {
  position: relative;
  display: inline-block;
}

.souligne::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  height: 9px;
  border-radius: 3px;
  background-image: var(--mosaic-tiles);
  background-size: 24px 24px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: trace 900ms cubic-bezier(0.16, 0.84, 0.44, 1) 720ms both;
}

@keyframes trace {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-stagger] > *,
  .hero__inner > *,
  .hero__mosaic span,
  .souligne::after,
  .button::after,
  .phones .phone-wrap:nth-child(2) .phone {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .bar__yes,
  .bar__no {
    width: var(--w);
    transition: none;
  }
}

/* Les aperçus sont de vraies captures de l'application, à la bonne proportion.
   Le fond de l'écran reprend la teinte du cadre : si un pixel de jeu apparaît au
   coin, il se fond dans le cadre au lieu de dessiner un liseré clair. Le rayon de
   l'image est celui de l'écran, pour qu'aucun angle carré ne dépasse. */
.phone__screen {
  aspect-ratio: 390 / 844;
  height: auto;
  background: #241f5c;
  border-radius: 30px;
}

.shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}
/* Écrans en attente de leur capture : le cadre reste en place, le contenu viendra. */
.phone__screen--empty {
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
}

.placeholder-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-image: var(--mosaic-tiles);
  background-size: 22px 22px;
  opacity: 0.75;
}

.placeholder-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* --- Formulaire de contact --- */

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-form label {
  display: block;
  font-weight: 650;
  font-size: 14.5px;
  margin-bottom: 7px;
  color: var(--ink);
}

.contact-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.16);
}

.contact-form button {
  justify-self: start;
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(67, 56, 202, 0.32);
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.legal .contact-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.contact-resultat {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

/* Étoile des champs obligatoires : la convention des formulaires. */
.contact-form .asterisque {
  color: #dc2626;
  font-weight: 700;
  margin-left: 3px;
}
