/* Loto Quine Helper — feuille de style unique du site */

:root {
  color-scheme: light dark;

  --papier: #faf7f2;
  --papier-2: #f2ece2;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --bord: #e5ddd0;
  --bord-fort: #d4c8b5;

  --encre: #15192b;
  --encre-douce: #5b6176;

  --bleu: #1766d6;
  --bleu-fonce: #0d3f8f;
  --bleu-clair: #e8f0fd;
  --rouge: #e03c34;
  --vert: #16a34a;
  --violet: #7c3aed;
  --jaune: #f2b705;

  --ombre: 0 1px 2px rgba(21, 25, 43, .05), 0 12px 32px -16px rgba(21, 25, 43, .22);
  --ombre-forte: 0 2px 4px rgba(21, 25, 43, .06), 0 30px 60px -28px rgba(13, 63, 143, .42);

  --rayon: 18px;
  --rayon-s: 10px;
  --contenu: 1140px;

  --titre: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0d1119;
    --papier-2: #121825;
    --surface: #161d2b;
    --surface-2: #1b2334;
    --bord: #273043;
    --bord-fort: #36415a;

    --encre: #eef2f9;
    --encre-douce: #a3adc2;

    --bleu: #5b9bff;
    --bleu-fonce: #8cb8ff;
    --bleu-clair: #16233c;
    --rouge: #ff6b61;
    --vert: #3ecf8e;

    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
    --ombre-forte: 0 2px 6px rgba(0, 0, 0, .5), 0 36px 70px -30px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bleu-fonce); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

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

section { padding: clamp(64px, 9vw, 110px) 0; }

.entete-section { max-width: 620px; margin-bottom: clamp(32px, 4vw, 52px); }
.entete-section p { color: var(--encre-douce); font-size: 1.06rem; margin: 0; }

/* ---------- barre de navigation ---------- */

.barre {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papier) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.barre.collee { border-bottom-color: var(--bord); }

.barre .contenu {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: var(--encre);
  text-decoration: none;
  margin-right: auto;
}
.marque img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--ombre); }

.liens { display: flex; align-items: center; gap: 4px; }
.liens a {
  color: var(--encre-douce);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.liens a:hover { color: var(--encre); background: var(--papier-2); }

@media (max-width: 820px) { .liens a.repliable { display: none; } }

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton.plein {
  background: var(--bleu);
  color: #fff;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--bleu) 90%, black);
}
.bouton.plein:hover { background: color-mix(in srgb, var(--bleu) 88%, black); }
.bouton.vide {
  background: var(--surface);
  color: var(--encre);
  border-color: var(--bord-fort);
}
.bouton.vide:hover { background: var(--surface-2); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; transition: transform .15s ease; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 48px; width: auto; }
.badge-google { height: 52px !important; }

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

.heros {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--bleu-clair);
  color: var(--bleu-fonce);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.etiquette .pastille {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bleu);
  color: #fff;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 700;
}

.accroche {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--encre-douce);
  max-width: 34em;
  margin-bottom: 28px;
}

.heros .badges { margin-bottom: 30px; }

.chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-top: 26px;
  border-top: 1px solid var(--bord);
}
.chiffres div { display: flex; flex-direction: column; }
.chiffres strong {
  font-family: var(--titre);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--encre);
}
.chiffres span { font-size: .88rem; color: var(--encre-douce); margin-top: 6px; }

.note-legale {
  margin-top: 22px;
  font-size: .86rem;
  color: var(--encre-douce);
}

/* ---------- capture du héros dans un cadre de téléphone ---------- */

.scene { position: relative; display: grid; place-items: center; }

.scene::before {
  content: "";
  position: absolute;
  inset: 8% -6% 12%;
  background:
    radial-gradient(60% 55% at 30% 25%, color-mix(in srgb, var(--bleu) 26%, transparent), transparent 70%),
    radial-gradient(50% 50% at 75% 75%, color-mix(in srgb, var(--rouge) 20%, transparent), transparent 70%);
  filter: blur(46px);
  z-index: 0;
}

.telephone {
  position: relative;
  z-index: 1;
  width: min(320px, 82vw);
  background: #11151f;
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--ombre-forte), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}

.telephone .ecran {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
  background: #000;
}

/* ---------- étapes ---------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: etape;
}
.etape {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 26px 24px;
  box-shadow: var(--ombre);
}
.etape::before {
  counter-increment: etape;
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--bleu-clair);
  color: var(--bleu-fonce);
  font-family: var(--titre);
  font-weight: 700;
  margin-bottom: 16px;
}
.etape p { color: var(--encre-douce); font-size: .97rem; margin: 0; }

/* ---------- fonctionnalités ---------- */

.bande-claire { background: var(--papier-2); border-block: 1px solid var(--bord); }

.grille-fonctions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.fonction {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fonction:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.fonction .icone {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 15px;
  background: var(--bleu-clair);
  color: var(--bleu-fonce);
}
.fonction .icone svg { width: 21px; height: 21px; }
.fonction p { color: var(--encre-douce); font-size: .95rem; margin: 0; }

.fonction.rouge .icone { background: color-mix(in srgb, var(--rouge) 14%, var(--surface)); color: var(--rouge); }
.fonction.vert .icone { background: color-mix(in srgb, var(--vert) 14%, var(--surface)); color: var(--vert); }
.fonction.violet .icone { background: color-mix(in srgb, var(--violet) 14%, var(--surface)); color: var(--violet); }
.fonction.jaune .icone { background: color-mix(in srgb, var(--jaune) 20%, var(--surface)); color: #a97c00; }

/* ---------- types de parties ---------- */

.parties {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.partie {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-s);
  padding: 14px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.mini {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1.5px;
  width: 100%;
  background: var(--bord-fort);
  padding: 2px;
  border-radius: 3px;
}
.mini i { display: block; aspect-ratio: 3 / 4; background: var(--surface); border-radius: 1px; }
.mini i.on { background: var(--bleu); }
.partie b { font-size: .88rem; font-weight: 600; }

/* ---------- captures d'écran ---------- */

.galerie {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.vue { margin: 0; scroll-snap-align: start; }
.vue img {
  display: block;
  width: 100%;
  height: auto;
  border: 7px solid #11151f;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--ombre-forte), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.vue figcaption {
  margin-top: 12px;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--encre-douce);
}
.vue b { display: block; color: var(--encre); font-weight: 600; }

@media (max-width: 760px) {
  .galerie { grid-auto-columns: 62vw; }
}

/* ---------- démo vidéo ---------- */

.cadre-video {
  max-width: 920px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--rayon);
  overflow: hidden;
  background: #0d1119;
  border: 1px solid var(--bord);
  box-shadow: var(--ombre-forte);
  cursor: pointer;
}
.cadre-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.cadre-video .affiche {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.cadre-video .lecture {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 2px solid rgba(255, 255, 255, .55);
  display: grid; place-items: center;
  transition: transform .2s ease, background-color .2s ease;
}
.cadre-video:hover .lecture { transform: scale(1.07); background: rgba(255, 255, 255, .26); }
.cadre-video .lecture svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.cadre-video .affiche p { font-weight: 600; margin: 0; }
.cadre-video .affiche small { opacity: .8; }

/* ---------- gratuit / payant ---------- */

.comparatif {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

.formule {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--ombre);
}

.formule header {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bord);
}
.plateforme {
  display: block;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--bleu-fonce);
  margin-bottom: 8px;
}
.prix {
  display: block;
  font-family: var(--titre);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.formule header p { margin: 6px 0 0; font-size: .95rem; color: var(--encre-douce); }

.liste-plus { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.liste-plus li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--encre);
}
.liste-plus svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--vert); }
.liste-plus li.moins { color: var(--encre-douce); }
.liste-plus li.moins svg { color: var(--bord-fort); }

.supplement {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--bord-fort);
}
.titre-supplement {
  margin: 0 0 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre);
}

/* ---------- questions ---------- */

.questions { display: grid; gap: 12px; max-width: 820px; }
details {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-s);
  padding: 4px 20px;
}
details[open] { box-shadow: var(--ombre); }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--titre);
  font-size: 1.3rem;
  color: var(--encre-douce);
  line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { padding-bottom: 18px; color: var(--encre-douce); font-size: .96rem; }

/* ---------- appel final ---------- */

.final {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  border-radius: 24px;
  padding: clamp(34px, 5vw, 60px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  box-shadow: var(--ombre-forte);
}
.final h2 { color: #fff; margin: 0; }
.final p { color: rgba(255, 255, 255, .84); max-width: 48ch; margin: 0; }
.final .badges { margin-top: 8px; justify-content: center; }

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

.pied {
  border-top: 1px solid var(--bord);
  padding: 44px 0 56px;
  font-size: .92rem;
  color: var(--encre-douce);
}
.pied .contenu { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: flex-start; }
.pied .marque { margin-right: auto; }
.pied nav { display: grid; gap: 8px; }
.pied nav a { color: var(--encre-douce); text-decoration: none; }
.pied nav a:hover { color: var(--encre); text-decoration: underline; }
.pied .mention { width: 100%; padding-top: 22px; border-top: 1px solid var(--bord); font-size: .85rem; }

/* ---------- pages de contenu (CGU) ---------- */

.page-texte { max-width: 760px; padding: clamp(40px, 6vw, 72px) 0; }
.page-texte h1 { margin-bottom: .3em; }
.page-texte .date { color: var(--encre-douce); font-size: .92rem; margin-bottom: 2.4em; }
.page-texte h2 { font-size: 1.35rem; margin-top: 2.2em; }
.page-texte p { color: var(--encre-douce); }
.page-texte ul { margin: 0 0 1em; padding-left: 1.3em; color: var(--encre-douce); }
.page-texte li { margin-bottom: .5em; }
.page-texte strong { color: var(--encre); font-weight: 600; }

.encadre {
  background: var(--bleu-clair);
  border-radius: var(--rayon);
  padding: 22px 24px;
  margin-bottom: 2.4em;
}
.encadre p { color: var(--encre); margin: 0; }
.retour { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: .93rem; }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .heros { grid-template-columns: 1fr; }
  .scene { margin-top: 8px; }
  .offre { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .chiffres { gap: 20px 28px; }
  .badges img { height: 42px; }
  .badge-google { height: 46px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
