/* ==========================================================================
   Pélio — feuille de style unique.
   100 % locale : aucune police distante, aucun CDN, aucune requête externe.
   Mise en page logique (propriétés `inline`/`block`), mobile-first.

   Palette : brand/README.md §3 (FIGÉE).
     primary/700 #0E6B5C · primary/600 #0F8A75 (héros) · primary/500 #13A38A
     ink/900 #10243A · ink/700 #34506B · accent/500 #FF7A59
   Contrastes vérifiés (WCAG 2.1 AA, ratio calculé) :
     #10243A / #FFFFFF ....... 15,7:1
     #34506B / #F6F8F9 ......... 7,9:1
     #0E6B5C / #F6F8F9 ......... 6,0:1
     #FFFFFF / #0E6B5C ......... 6,4:1   ← boutons (le héros #0F8A75 tombe à
                                            4,3:1 : réservé aux surfaces)
     #E7EDF1 / #0C1620 ........ 15,5:1   (sombre)
     #9FB2C0 / #14222F ......... 7,4:1   (sombre)
     #2DC4A8 / #14222F ......... 7,4:1   (sombre)
   ========================================================================== */

:root {
  /* Marque */
  --brand: #0f8a75;       /* primary/600 — héros, surfaces et dégradés */
  --brand-strong: #0e6b5c; /* primary/700 — texte et boutons (AA sur clair) */
  --brand-soft: #d6f2ec;  /* primary/100 */
  --accent: #ff7a59;      /* accent/500 — parcimonieux */

  /* Thème clair (défaut) */
  --bg: #f6f8f9;
  --bg-alt: #ffffff;
  --fg: #10243a;
  --fg-muted: #34506b;
  --line: #e2e8ec;
  --card: #ffffff;
  --link: #0e6b5c;
  --btn-bg: #0e6b5c;
  --btn-fg: #ffffff;
  --quote-bg: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 66rem;

  /* Lexend est la police de marque (brand §4.1) mais n'est PAS embarquée :
     aucune requête réseau n'est tolérée sur ce site. Si elle est installée
     localement elle sera utilisée, sinon on retombe sur la pile système. */
  --font: Lexend, "Lexend Deca", Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, ui-sans-serif, system-ui, "Helvetica Neue", Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1620;
    --bg-alt: #14222f;
    --fg: #e7edf1;
    --fg-muted: #9fb2c0;
    --line: #24384a;
    --card: #14222f;
    --link: #2dc4a8;
    --btn-bg: #13a38a;
    --btn-fg: #06231d;
    --brand-soft: #143430;
    --quote-bg: #0f1d29;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg);
  background: var(--bg);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.85rem, 5.5vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.85rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :focus-visible { outline-color: #2dc4a8; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus {
  inset-inline-start: 1rem;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  position: relative; /* ancre du menu de langue en mobile */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
  margin-inline-end: auto;
}
.brand .mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.93rem;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
}

/* Sélecteur de langue : de VRAIS liens, utilisable sans JS. */
.lang {
  position: relative;
}
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--fg);
  background: var(--bg-alt);
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--brand-strong); }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 10rem;
  max-width: calc(100vw - 2.5rem);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 36, 58, 0.18);
}
.lang-menu a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--line); }
.lang-menu a[aria-current="true"] {
  color: var(--link);
  font-weight: 600;
}

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

section {
  padding-block: clamp(2.25rem, 6vw, 3.75rem);
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.lede {
  font-size: 1.12rem;
  color: var(--fg-muted);
  max-width: 40rem;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.25rem, 7vw, 4rem) clamp(1.5rem, 4vw, 2.25rem);
}
.hero h1 {
  max-width: 18ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
}
.hero-sub {
  color: var(--fg-muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
}
.badges li {
  font-size: 0.84rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-muted);
  background: var(--bg-alt);
}

/* --- Exemple de SMS (texte réel du gabarit, pas une capture) ------------- */

.sms-demo {
  margin: 2rem 0 1.75rem;
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
}
.sms-bubble {
  background: var(--quote-bg);
  border: 1px solid var(--line);
  border-start-start-radius: var(--radius);
  border-start-end-radius: var(--radius);
  border-end-end-radius: var(--radius);
  border-end-start-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin: 0;
  box-shadow: 0 6px 18px rgba(16, 36, 58, 0.06);
}
.sms-bubble p {
  margin: 0;
  font-size: 1rem;
}
.sms-when {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}
.sms-caption {
  margin: 0;
  font-size: 0.86rem;
  color: var(--fg-muted);
}

/* --- Grilles ------------------------------------------------------------ */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.card h3 { margin-bottom: 0.3rem; }
.card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* --- Captures d'écran de l'application ---------------------------------- */
/* Les captures sont des écrans de téléphone : très hautes (rapport ~1:2,2).
   Repliées en grille, une seule occuperait plus d'un écran de haut sur un
   mobile de 390 px. On les présente donc en BANDE DÉFILANTE horizontale :
   largeur de vignette bornée (~15–17 rem), le débordement est absorbé par la
   bande elle-même (`overflow-inline: auto`) et jamais par la page. */

.shots {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 1.75rem 0 0.85rem;
  padding: 0 0 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots > li {
  flex: 0 0 auto;
  /* 15 rem = 240 px : les 4 vignettes + 3 gouttières tiennent pile dans la
     largeur utile du conteneur (66 rem − 2 × 1,25 rem) sur grand écran. */
  inline-size: clamp(13rem, 60vw, 15rem);
  scroll-snap-align: start;
}
.shots figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  block-size: 100%;
}
.shots img {
  inline-size: 100%;
  block-size: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.shots figcaption {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.45;
}
.shots-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--fg-muted);
}
@media (min-width: 66rem) {
  /* Les 4 vignettes tiennent d'un coup : plus rien à faire défiler. */
  .shots-hint { display: none; }
}

/* Étapes numérotées (« comment ça marche ») */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--link);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps strong { display: block; margin-bottom: 0.2rem; }
.steps p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* --- Prix --------------------------------------------------------------- */

.price-wrap {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.price .amount {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.price .per {
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.price p {
  margin: 0.5rem 0 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
}
.trial {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--fg);
  max-width: 44rem;
}
.trial p:last-child { margin-bottom: 0; }

/* --- Disponibilité (jamais un lien : les apps ne sont pas publiées) ------ */

.soon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.soon li {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  color: var(--fg-muted);
  background: var(--bg-alt);
  font-size: 0.93rem;
}
.soon strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
}

/* --- Prose (pages légales, support) ------------------------------------- */

/* La classe est portée par le `.container` lui-même, qui est centré : si on lui
   donnait `max-width: 44rem`, toute la prose se retrouverait décalée vers la
   droite, désalignée du <h1> et de l'en-tête. On garde donc la largeur du
   conteneur et on borne la LONGUEUR DE LIGNE enfant par enfant → le texte
   s'aligne sur le bord gauche commun à toute la page. */
.container.prose {
  max-width: var(--container);
}
.prose > * {
  max-width: 46rem;
}
/* Les tableaux ont droit à toute la largeur : ils défilent déjà en interne. */
.prose > .table-wrap {
  max-width: 100%;
}
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul,
.prose ol { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }

/* Tableaux des pages légales : lisibles en mobile, jamais de débordement de
   la page — c'est le tableau qui défile dans son propre conteneur. */
.table-wrap {
  /* Le tableau défile DANS son conteneur : la page, elle, ne défile JAMAIS
     horizontalement. La barre de défilement est laissée visible (`thin`) —
     sur un tableau, la masquer revient à cacher qu'il reste des colonnes. */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  margin-block: 1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 28rem;
  font-size: 0.93rem;
}
/* Indice de défilement : masqué dès que le tableau tient dans la page. */
.table-hint {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}
@media (min-width: 34rem) {
  .table-hint { display: none; }
}
th,
td {
  text-align: start;
  vertical-align: top;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--bg);
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: 0; }

/* Identité de l'éditeur : libellé / valeur. */
.ident {
  margin-block: 1rem 1.35rem;
  display: grid;
  gap: 0.55rem;
}
.ident > div {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 0.2rem 1rem;
  padding-block-end: 0.55rem;
  border-block-end: 1px solid var(--line);
}
.ident > div:last-child {
  border-block-end: 0;
  padding-block-end: 0;
}
.ident dt {
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.ident dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 34rem) {
  .ident > div { grid-template-columns: 1fr; }
}

.callout {
  margin-block: 1.25rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--bg);
}
.callout p:last-child { margin-bottom: 0; }

.note {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* Adresse de contact mise en avant (page support). */
.contact-mail {
  font-size: 1.18rem;
  font-weight: 600;
  margin-block: 0.5rem 1rem;
  overflow-wrap: anywhere;
}

/* FAQ — <details> natif, aucun JS. */
.faq {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.85rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--link);
  font-weight: 700;
  flex: none;
}
.faq details[open] summary::before { content: "–"; }
.faq details[open] summary { margin-bottom: 0.6rem; }
.faq details > :not(summary):last-child { margin-bottom: 0; }
.faq p,
.faq li { font-size: 0.97rem; }

/* --- Pied de page ------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 2.25rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.disclaimer {
  margin: 0 0 0.5rem;
  max-width: 46rem;
}
.footer-meta { margin: 0; }

/* --- 404 ---------------------------------------------------------------- */

.center {
  text-align: center;
  min-height: 46vh;
  display: grid;
  place-content: center;
}
