/* Cigarino — design tokens portés du design system de l'app (app_theme.dart) */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F5F3EE;
  --brown: #3A2E26;
  --brown-dark: #1F1711;
  --brown-light: #8B6F55;
  --gold: #B8935A;
  --gold-contrast: #A67F46;
  --gold-light: #E8D8B7;
  --gold-soft: #F4E8D0;
  --text: #1F1B15;
  --text-2: #6E645C;
  --divider: #E4E1D9;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brown); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-contrast);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px;
}
/* Logo : pastille de l'icône app + nom en Playfair romain. L'italique du kit
   d'identité reste cantonné à l'icône ; le nom est du vrai texte, donc
   sélectionnable et lu tel quel par les lecteurs d'écran. */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--serif); font-weight: 600; font-size: 24px;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500;
}
.site-nav a:hover { color: var(--text); }
/* Pastille dans un rail : le segment actif porte son propre rayon plutôt que
   d'être rogné par le conteneur, sinon le clip laisse un liseré et un angle vif. */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--divider); border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; line-height: 1;
}
.lang-switch a, .lang-switch span {
  /* largeur fixe : "FR" et "EN" ne mesurent pas la même chose en SF Pro */
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 24px; border-radius: 999px;
  text-decoration: none; color: var(--text-2);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch [aria-current] {
  background: var(--brown); color: var(--bg);
}
@media (max-width: 700px) {
  .site-nav .nav-link { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, var(--gold-soft) 0%, rgba(244, 232, 208, 0) 60%),
    var(--bg);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero .lede {
  margin-top: 20px; font-size: 19px; color: var(--text-2); max-width: 46ch;
}
.hero .free-note { margin-top: 14px; font-size: 15px; color: var(--text-2); }

.store-badges {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
/* Badge Apple : fichier officiel servi tel quel. Ne jamais le redessiner, le
   recolorer ni le déformer (Apple Identity Guidelines). Hauteur minimale 40 px,
   zone de protection d'au moins 10 % de la hauteur, assurée par le gap. */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 40px; width: auto; display: block; }
/* Badge Google : fichier officiel intact, marge comprise dans l'image. On le
   rend donc plus haut que celui d'Apple pour que les deux pastilles visibles
   fassent la même taille — l'encre occupe 67 % de l'image en anglais, 77 % en
   français, d'où deux hauteurs. */
.store-badge.play img { width: auto; }
.store-badge.play img[src$="-en.png"] { height: 59px; }   /* encre 67,60 % -> pastille 39,9 px */
.store-badge.play img[src$="-fr.png"] { height: 52px; }   /* encre 77,20 % -> pastille 40,1 px */

/* ---------- Téléphones ---------- */
.phone {
  border-radius: 44px; background: var(--brown-dark);
  padding: 10px; box-shadow: 0 24px 60px rgba(31, 23, 17, 0.18);
  width: min(320px, 76vw);
}
.phone img { border-radius: 36px; }
.hero .phone { justify-self: center; transform: rotate(2deg); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8A6838; /* or foncé assombri : 4.9:1 sur fond crème (WCAG AA) */
}
h2.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin-top: 8px;
}
.section-sub { color: var(--text-2); margin-top: 12px; max-width: 60ch; }

/* Features */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 44px 0;
}
.feature + .feature { border-top: 1px solid var(--divider); }
.feature .media { display: flex; justify-content: center; position: relative; }
.feature:nth-of-type(even) .media { order: -1; }
.feature h3 {
  font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2;
  margin-top: 10px;
}
.feature p { color: var(--text-2); margin-top: 12px; }
.feature ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.feature li strong { color: var(--text); font-weight: 600; }
.tick {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--gold-soft); display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.tick svg { width: 15px; height: 15px; }
.chip {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  background: var(--gold-soft); color: #6d5327; border-radius: 999px; padding: 3px 12px;
  margin-left: 8px; vertical-align: middle;
}
.phone-duo { position: relative; }
.phone-duo .phone.back {
  position: absolute; right: -64px; top: 46px; width: min(250px, 56vw);
  transform: rotate(4deg); z-index: 1;
}
.phone-duo .phone.front { position: relative; z-index: 2; transform: rotate(-2deg); }

/* ---------- Tarifs ---------- */
#pricing { background: var(--surface-alt); }
.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px;
}
.price-card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--r-l); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 6px 24px rgba(31, 23, 17, 0.05);
}
.price-card.featured { border-color: var(--gold); box-shadow: 0 10px 30px rgba(184, 147, 90, 0.18); }
.price-card .plan { font-weight: 600; font-size: 15px; color: var(--text-2); }
.price-card .price {
  font-family: var(--serif); font-weight: 600; font-size: 32px; color: var(--text);
}
.price-card .per { font-size: 14px; color: var(--text-2); }
/* Marché de référence : le montant affiché est celui d'un pays donné, les
   autres varient avec la fiscalité locale. Rattaché au prix plutôt qu'à la
   ligne du dessous, qui est déjà longue sur l'offre annuelle. */
.price-card .cur {
  display: inline-block; margin-left: 4px; padding: 1px 7px;
  border: 1px solid var(--divider); border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2);
  white-space: nowrap; vertical-align: 7px;
}
.price-card ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.price-card li { display: flex; gap: 9px; font-size: 14.5px; color: var(--text-2); align-items: flex-start; }
.price-card li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.price-note { margin-top: 22px; font-size: 14px; color: var(--text-2); max-width: 70ch; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; display: grid; gap: 12px; max-width: 780px; }
details {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-m);
  padding: 0 20px;
}
summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--serif); font-size: 22px; color: #836234; flex: none;
}
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); padding-bottom: 18px; }
/* même correctif que .legal-main a : ces liens vivent dans un <details>
   replié, donc invisibles pour l'audit automatique tant qu'il est fermé. */
details a { color: #836234; }

/* ---------- Bandeau final ---------- */
.closing {
  text-align: center; background: var(--brown-dark); color: var(--bg);
}
.closing h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 38px);
}
.closing p { color: rgba(250, 250, 247, 0.75); margin-top: 12px; }
.closing .store-badges { justify-content: center; }
/* Sur fond sombre, Apple impose sa variante blanche : on ne pose donc aucun
   fond derrière le badge, on change de fichier. */


/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--divider);
  padding: 48px 0 40px; font-size: 14.5px;
}
.footer-cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
}
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
}
.footer-cols h2 {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 12px; font-weight: 700;
}
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { color: var(--text-2); text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--text);
}
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-tagline { color: var(--text-2); margin-top: 10px; max-width: 34ch; }
.footer-contact { margin-top: 14px; }
.footer-contact a { color: var(--text-2); }
.health-warning {
  margin-top: 36px; border: 1px solid var(--divider); border-radius: var(--r-m);
  background: var(--surface-alt); padding: 14px 18px; color: var(--text-2); font-size: 13.5px;
}
.copyright { margin-top: 20px; color: var(--text-2); font-size: 13px; }

/* ---------- Pages légales ---------- */
.legal-main { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.legal-main h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 40px);
}
.legal-main .updated { color: var(--text-2); font-size: 14px; margin: 10px 0 36px; }
.legal-main h2 {
  font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 34px 0 10px;
}
.legal-main p, .legal-main li { color: var(--text-2); }
.legal-main p { margin-bottom: 14px; }
.legal-main ul { padding-left: 22px; margin-bottom: 14px; }
.legal-main li { margin-bottom: 6px; }
/* `--gold-contrast` (#A67F46) plafonne à 3,3:1 sur ces fonds : sous le seuil AA
   pour du texte. Teinte assombrie : 5,3:1 sur crème, 5,0:1 sur surface-alt. */
.legal-main a { color: #836234; }
.legal-main .lang-note {
  background: var(--surface-alt); border: 1px solid var(--divider); border-radius: var(--r-s);
  padding: 10px 14px; font-size: 14px; color: var(--text-2); margin-bottom: 28px;
}
.legal-main .callout {
  background: var(--surface-alt); border: 1px solid var(--divider); border-radius: var(--r-m);
  border-left: 3px solid var(--gold); padding: 14px 18px; margin: 0 0 28px;
  color: var(--text); font-size: 15px;
}

.legal-main .steps {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-m);
  padding: 18px 20px 18px 40px; margin: 14px 0 20px;
}
.legal-main .steps li { margin-bottom: 8px; color: var(--text); }

/* ---------- Glossaire ---------- */
.glossary-toc {
  background: var(--surface-alt); border: 1px solid var(--divider);
  border-radius: var(--r-m); padding: 18px 20px; margin: 0 0 34px;
}
.glossary-toc h2 {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
  margin: 0 0 10px;
}
.glossary-toc ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.glossary-toc a { color: var(--text); text-decoration: none; font-size: 15px; }
.glossary-toc a:hover { text-decoration: underline; }

.glossary h2 { scroll-margin-top: 84px; }
.glossary dl { margin: 0; }
.glossary dt {
  font-weight: 600; color: var(--text); font-size: 17px;
  margin-top: 24px; scroll-margin-top: 84px;
}
.glossary dt:first-of-type { margin-top: 6px; }
.glossary dt .alt {
  font-weight: 400; color: var(--text-2); font-size: 15px;
}
.glossary dd { margin: 5px 0 0; color: var(--text-2); }
.glossary dd + dd { margin-top: 4px; }
.glossary .in-app {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  background: var(--gold-soft); color: #6d5327; border-radius: 999px;
  padding: 2px 11px; margin-top: 7px;
}

/* ---------- Kit presse ---------- */
.press-lede { font-size: 19px; color: var(--text-2); max-width: 62ch; }
.press-tagline {
  font-family: var(--serif); font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: #836234;
  margin-top: 6px;
}
.factsheet { border-collapse: collapse; width: 100%; margin-top: 8px; }
.factsheet th, .factsheet td {
  text-align: left; vertical-align: top; padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--divider); font-size: 16px;
}
.factsheet th { font-weight: 600; white-space: nowrap; width: 34%; }
.factsheet td { color: var(--text-2); }

.boilerplate {
  background: var(--surface-alt); border: 1px solid var(--divider);
  border-radius: var(--r-m); padding: 18px 20px; margin: 14px 0 0;
  color: var(--text-2);
}
.boilerplate p { margin: 0; }
.boilerplate + .boilerplate { margin-top: 12px; }

.asset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px; margin-top: 18px; padding: 0; list-style: none;
}
.asset-grid figure { margin: 0; }
.asset-grid img {
  width: 100%; height: auto; border: 1px solid var(--divider);
  border-radius: var(--r-m); background: var(--bg);
}
.asset-grid figcaption { margin-top: 9px; font-size: 15px; }
.asset-grid .dl { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.asset-grid .dl a { color: #836234; }

.file-list { list-style: none; padding: 0; margin: 14px 0 0; }
.file-list li {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--divider);
}
.file-list .name { font-weight: 600; }
.file-list .meta { color: var(--text-2); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 56px 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero .phone { transform: none; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .feature:nth-of-type(even) .media { order: 0; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .phone-duo .phone.back { right: -20px; top: 60px; width: 44vw; }
}
@media (max-width: 480px) {
  .price-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
