/* ─────────────────────────────────────────────────────────────────────────
   FOTDELSI — feuille commune aux trois pages du site public.

   Reprend la palette de l'application : bleu de marque #1747A6, orange
   d'accent #F47B20, et Poppins — la même police que celle embarquée dans
   l'app, servie ici depuis nos propres fichiers.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #1747a6;
  --blue-dark: #0f3178;
  --blue-wash: #eef3fb;
  --orange: #f47b20;
  --ink: #0f1b2d;
  --soft: #43556f;
  --faint: #7286a0;
  --rule: #dde5f0;
  --ground: #ffffff;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 12px 32px -16px rgba(15, 27, 45, 0.25);

  --body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

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

/* ---------- En-tête ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

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

header.site img { height: 34px; width: auto; display: block; }

nav.site {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
nav.site a { color: var(--soft); text-decoration: none; }
nav.site a:hover { color: var(--blue); }

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

/* ---------- Titres ---------- */

h1 {
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 14px;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

p { color: var(--soft); margin: 0 0 16px; }

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  max-width: 34ch;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(23, 71, 166, 0.7);
}
.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: #fff;
}

/* ---------- Héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 8vw, 88px);
  background:
    radial-gradient(1100px 460px at 82% -10%, var(--blue-wash) 0%, transparent 62%),
    var(--ground);
}

.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .lead { max-width: none; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-note { font-size: 14px; color: var(--faint); margin-top: 18px; }

/* Le tambour : un disque qui tourne lentement, seul mouvement de la page. */
.drum {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.drum::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  animation: spin 26s linear infinite;
}
.drum::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.porthole { position: relative; width: 66%; height: auto; display: block; }

/* Le verre : un cercle clair sur le bleu, qui donne la profondeur. */
.porthole .glass {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 3;
}

/* Les trous du tambour tournent — c'est là que le mouvement se lit. */
.porthole .tumble {
  transform-origin: 100px 100px;
  animation: spin 14s linear infinite;
}
.porthole .hole { fill: rgba(255, 255, 255, 0.3); }

/* L'eau, contenue par le verre : un clip circulaire évite qu'elle déborde. */
.porthole .water {
  fill: rgba(255, 255, 255, 0.24);
  clip-path: circle(62px at 100px 100px);
}

.porthole .shine { fill: rgba(255, 255, 255, 0.32); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */

section.band {
  padding: clamp(52px, 7vw, 84px) 0;
  /* L'en-tête est collant : sans cette marge, un lien d'ancre amène le titre
     de section DERRIÈRE lui, et le visiteur atterrit sur un titre tronqué. */
  scroll-margin-top: 88px;
}
section.tint { background: var(--blue-wash); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(15, 27, 45, 0.06), 0 18px 40px -18px rgba(15, 27, 45, 0.34);
}
/* Numérotées parce que c'est une SUITE : l'ordre porte l'information.
   L'icône dit QUOI, le numéro dit QUAND — les deux ne font pas double emploi. */
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -15px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -4px rgba(244, 123, 32, 0.75);
}
.step p { margin: 0; font-size: 15.5px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.feature {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(15, 27, 45, 0.06), 0 18px 40px -18px rgba(15, 27, 45, 0.34);
}
.feature p { margin: 0; font-size: 15.5px; }

/* ---------- Icônes ---------- */

/* Pastille porteuse : c'est elle qui donne la couleur, l'icône reste
   monochrome et hérite. Une icône polychrome vieillirait mal et se
   comporterait mal en contraste élevé. */
.ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--blue-wash);
  color: var(--blue);
}
/* Pas de variante sur la bande teintée : la pastille repose dans une CARTE
   blanche, pas sur la bande. La peindre en blanc l'y rendait invisible. */

.ico svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* La dernière étape est l'aboutissement : elle porte l'accent. */
.step:last-child .ico { background: #fdf0e4; color: var(--orange); }

/* ---------- Pages de contenu ---------- */

.doc { padding: clamp(40px, 6vw, 72px) 0 88px; }
.doc h2 {
  font-size: 20px;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.doc ul { color: var(--soft); padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.updated { font-size: 14px; color: var(--faint); margin-bottom: 30px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
th, td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--soft);
}
th {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 600;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 28px 0 8px;
}
.contact {
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}
.contact a { font-weight: 600; text-decoration: none; }
.contact p { margin: 4px 0 0; font-size: 14.5px; }

/* ---------- Pied ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 34px 0 46px;
  font-size: 14.5px;
  color: var(--faint);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}
footer.site a { color: var(--soft); text-decoration: none; }
footer.site a:hover { color: var(--blue); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Captures de l'application ---------- */

/* Un rail qui défile, et non une grille : quatre écrans de téléphone côte à
   côte deviennent illisibles sous 1000 px, et les empiler ferait une page
   interminable. Le défilement garde les proportions du téléphone à toutes
   les tailles. */
.shots {
  display: flex;
  gap: 26px;
  margin-top: 36px;
  padding: 6px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shot {
  flex: 0 0 236px;
  margin: 0;
  scroll-snap-align: start;
}

/* Le cadre du téléphone : une bordure claire et une ombre portée, sans
   châssis dessiné. Un faux bezel daterait la page dès le prochain modèle. */
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 6px rgba(15, 27, 45, 0.06), 0 20px 44px -20px rgba(15, 27, 45, 0.4);
  background: #fff;
}

.shot figcaption {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
}
.shot figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

@media (max-width: 620px) {
  /* Sur mobile le rail déborde volontairement du conteneur : les captures
     touchent les bords, ce qui indique qu'on peut faire défiler. */
  .shots {
    margin-inline: -24px;
    padding-inline: 24px;
  }
  .shot { flex-basis: 210px; }
}
