:root {
  --accent: #4f46e5;
  --fg: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --maxw: 760px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }

/* Header */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { display: block; }
.brand-word { font-weight: 800; letter-spacing: -.02em; color: var(--fg); font-size: 1.2rem; }
.brand-word span { font-weight: 500; color: var(--muted); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.site-header nav a:hover { color: var(--fg); }

/* Main */
main { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: .2em 0 .4em; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 2.2rem 0 .6rem; letter-spacing: -.01em; }
h3 { margin: 0 0 .3rem; }
p, li { color: #1e293b; }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }

/* Hero */
.hero { padding: 2rem 0 1rem; }
.hero h1 { background: linear-gradient(120deg, var(--fg), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* App cards */
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
  background: var(--bg-soft);
  transition: border-color .2s, transform .2s;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.app-card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .2rem; }
.app-card-head h3 { margin: 0; }
.app-card h3 a { text-decoration: none; color: var(--fg); }
.app-card h3 a:hover { color: var(--accent); }
.app-logo { width: 56px; height: 56px; border-radius: 22%; display: block; flex: none; }
.app-hero-logo { width: 88px; height: 88px; border-radius: 22%; display: block; margin-bottom: .7rem; }

/* Store / social / link pills */
.stores, .socials { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.socials { margin-top: -.2rem; }
.stores a, .socials a {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.stores a:hover, .socials a:hover { background: var(--accent); color: #fff; }

/* Lists */
main ul { padding-left: 1.2rem; }
main li { margin: .25rem 0; }
.legal-links { list-style: none; padding-left: 0; }
.legal-links li { margin: .5rem 0; }

/* Legal pages */
.legal .updated, .back { color: var(--muted); font-size: .9rem; }
.back a { text-decoration: none; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0 1rem; }
.muted { color: var(--muted); font-size: .9rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .94rem; }
th, td { text-align: left; padding: .6rem .55rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding: 1.4rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
}
.site-footer .legal-line { margin: 0 0 .6rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-footer nav a { color: var(--muted); }

/* ============================================================
   Landing page produit MindOFF (body.lp) — préfixe .lp-
   Thème vert/or du logo. N'affecte que /mindoff/.
   ============================================================ */
:root {
  --lp-green: #2f5a44;      /* vert forêt du logo */
  --lp-green-deep: #1e3a2c; /* fond sombre (cadre téléphone) */
  --lp-gold: #c79a3e;       /* or/jaune du symbole */
  --lp-gold-soft: #e6cf9c;
  --lp-cream: #f6f4ec;      /* neutre chaud, biais vert/or */
}
body.lp { background: var(--bg); }
body.lp main { max-width: 1060px; }
.lp section { margin: 5rem 0; }
.lp h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.6rem; text-wrap: balance; }

/* ---------- Hero ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}
.lp-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-wrap: balance;
  background: linear-gradient(115deg, var(--lp-green-deep), var(--lp-green) 60%, var(--lp-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.lp-trial { color: var(--lp-green); font-weight: 600; font-size: .98rem; }

.lp-hero-visual { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }

/* Marque au-dessus de la maquette */
.lp-brand { display: flex; align-items: center; gap: .6rem; }
.lp-brand-logo { width: 46px; height: 46px; border-radius: 22%; display: block; box-shadow: 0 4px 12px -4px rgba(30,58,44,.5); }
.lp-brand-name { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--fg); }

/* Maquette téléphone (thème Sage) */
.lp-phone {
  --sg-bg: #f7f3ec; --sg-surface: #fffdf7; --sg-border: #d4c8a8;
  --sg-text: #2a2620; --sg-muted: #6b6357;
  width: 100%; max-width: 300px;
  background: linear-gradient(160deg, var(--lp-green-deep), #12241a);
  border-radius: 38px; padding: 13px;
  box-shadow: 0 30px 60px -22px rgba(30,58,44,.55), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.lp-phone-screen { background: var(--sg-bg); border-radius: 26px; padding: 1.2rem .9rem 1.4rem; }
.lp-phone-top { text-align: center; margin-bottom: 1rem; }
.lp-pebble { margin: .2rem auto 0; display: block; filter: drop-shadow(0 6px 12px rgba(61,89,71,.4)); }
.lp-phone-title { color: var(--sg-text); font-weight: 700; font-size: 1rem; margin: .15rem 0 0; }

.lp-card {
  background: var(--sg-surface); border: 1px solid var(--sg-border);
  border-radius: 15px; padding: .75rem .85rem; margin: .6rem 0;
  animation: lp-rise .5s both;
}
.lp-card:nth-child(2) { animation-delay: .08s; }
.lp-card:nth-child(3) { animation-delay: .16s; }
.lp-card:nth-child(4) { animation-delay: .24s; }
.lp-card p { color: var(--sg-text); margin: .35rem 0 0; font-size: .92rem; }
.lp-card-photo { padding: 0; overflow: hidden; }
.lp-photo { display: block; width: 100%; height: auto; }
.lp-card-body { padding: .6rem .85rem .75rem; }
/* Carte-lien : vignette (affiche) à gauche + texte à droite */
.lp-card-link { display: flex; align-items: center; gap: .75rem; }
.lp-thumb {
  flex: none; width: 46px; height: 69px; border-radius: 7px; display: block;
  box-shadow: 0 3px 8px rgba(30,20,40,.3);
}
.lp-link-text { min-width: 0; }
.lp-link-text p { margin: .3rem 0 0; }
.lp-chip {
  display: inline-block; padding: .16rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; color: #fff; background: var(--chip);
}
.lp-card-meta { display: block; margin-top: .4rem; color: var(--sg-muted); font-size: .76rem; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Badges stores */
.lp-stores { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.lp-store {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem; border-radius: 13px;
  background: #111; color: #fff; text-decoration: none;
  border: 1px solid #111; transition: transform .15s, box-shadow .15s;
}
.lp-store:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); }
.lp-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.lp-store small { font-size: .62rem; opacity: .8; }
.lp-store strong { font-size: .98rem; font-weight: 700; }

/* Réseaux sous les stores */
.lp-socials-top { display: flex; gap: .7rem; justify-content: center; }
.lp-socials-top a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--lp-green); border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.lp-socials-top a:hover { background: var(--lp-green); color: #fff; border-color: var(--lp-green); }

/* ---------- Comment ça marche : flux horizontal ---------- */
.lp-flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 1rem; padding: 0; margin: 0; list-style: none;
}
.lp-flow-step {
  flex: 1 1 0; text-align: center;
  background: var(--lp-cream); border: 1px solid var(--sg-border, #e2e8f0);
  border-radius: var(--radius); padding: 1.6rem 1.2rem;
  transition: transform .2s, box-shadow .2s;
}
.lp-flow-step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(47,90,68,.5); }
.lp-flow-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: .7rem;
  background: var(--lp-green); color: #fff; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 6px 14px -6px var(--lp-green);
}
.lp-flow-step h3 { font-size: 1.12rem; color: var(--fg); margin: 0 0 .3rem; }
.lp-flow-step p { color: #46503f; margin: 0; font-size: .95rem; }
.lp-flow-arrow { display: flex; align-items: center; color: var(--lp-gold); flex: 0 0 auto; }

/* ---------- Fonctions : cartes avec icônes ---------- */
.lp-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.lp-feature {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.lp-feature:hover { border-color: var(--lp-green); transform: translateY(-3px); }
.lp-feature-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: .8rem;
  background: linear-gradient(145deg, var(--lp-green), var(--lp-green-deep));
  color: var(--lp-gold-soft);
}
.lp-feature h3 { font-size: 1.1rem; color: var(--fg); margin: 0 0 .3rem; }
.lp-feature p { color: #46503f; margin: 0; }

/* ---------- Usages ---------- */
.lp-chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.lp-chips li {
  margin: 0; padding: .5rem 1rem; border-radius: 999px;
  background: var(--lp-cream); border: 1px solid var(--sg-border, #e2e8f0);
  font-size: .92rem; font-weight: 500; color: #3a4636;
}

/* ---------- Confidentialité ---------- */
.lp-privacy { background: var(--lp-green-deep); color: #eef3ee; border-radius: var(--radius); padding: 2.4rem; }
.lp-privacy h2 { color: #fff; }
.lp-privacy p { color: #d3e0d5; max-width: 64ch; }
.lp-privacy a { color: var(--lp-gold-soft); }

/* ---------- FAQ : accordéon cliquable ---------- */
.lp-q {
  border: 1px solid var(--border); border-radius: 12px;
  margin: .7rem 0; background: var(--bg-soft); overflow: hidden;
}
.lp-q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--fg);
  list-style: none;
}
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary:hover { color: var(--lp-green); }
.lp-q[open] summary { color: var(--lp-green); }
.lp-q-plus { position: relative; flex: none; width: 18px; height: 18px; }
.lp-q-plus::before, .lp-q-plus::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.lp-q-plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.lp-q-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.lp-q[open] .lp-q-plus::after { transform: rotate(90deg); opacity: 0; }
.lp-q p { margin: 0; padding: 0 1.2rem 1.1rem; color: #46503f; max-width: none; }

.lp-legal { border-top: 1px solid var(--border); padding-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .lp-card, .lp-flow-step, .lp-feature, .lp-store, .lp-q-plus::before, .lp-q-plus::after { animation: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero-visual { order: -1; }
  .lp-flow { flex-direction: column; align-items: stretch; }
  .lp-flow-arrow { transform: rotate(90deg); align-self: center; }
  .lp-grid-2 { grid-template-columns: 1fr; }
}

/* Accessibilité : focus visible au clavier (indexation & a11y) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Page assistance ---------- */
.support-form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; margin-top: 1.5rem; }
.support-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; color: var(--fg); font-size: .95rem; }
.support-form input, .support-form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%;
}
.support-form input:focus, .support-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.support-form textarea { resize: vertical; }
.support-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.support-btn {
  align-self: flex-start; padding: .8rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.support-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px -8px var(--accent); }
.support-btn:disabled { opacity: .55; cursor: not-allowed; }
.support-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.support-status.is-ok { color: #1c7a4a; }
.support-status.is-err { color: #c0392b; }
.support-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* Logo en gros à gauche du titre des pages assistance */
.support-head { display: flex; align-items: center; gap: 1.1rem; margin: .4rem 0 .3rem; }
.support-head h1 { margin: 0; }
.support-logo { width: 72px; height: 72px; border-radius: 20px; display: block; flex: none; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
@media (max-width: 480px) { .support-logo { width: 60px; height: 60px; border-radius: 16px; } }

/* Select du formulaire de contact */
.support-form select {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; cursor: pointer;
}
.support-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* ============================================================
   Landing page produit Cup of Date (body.lp.lp-cupofdate) — même ossature
   que .lp, thème « Encre et laiton » de l'app. N'affecte que /cupofdate/.
   ============================================================ */
body.lp-cupofdate {
  --lp-green: #9a7e45;      /* laiton foncé (liens, accents, numéros) */
  --lp-green-deep: #131215; /* encre (cadre téléphone, bloc confidentialité) */
  --lp-gold: #b99a5f;       /* laiton clair du thème sombre */
  --lp-gold-soft: #d9c49a;
}
/* Maquette téléphone : thème sombre Encre et laiton (palettes.ts, ink.dark) */
body.lp-cupofdate .lp-phone {
  --sg-bg: #131215; --sg-surface: #1d1b1f; --sg-border: #2b2830;
  --sg-text: #ebe8e4; --sg-muted: #8c8880;
  background: linear-gradient(160deg, #2b2830, #0c0b0e);
  box-shadow: 0 30px 60px -22px rgba(12, 11, 14, .7), 0 0 0 1px rgba(255, 255, 255, .05) inset;
}
body.lp-cupofdate .lp-brand-logo { box-shadow: 0 4px 12px -4px rgba(12, 11, 14, .6); }
/* Monogramme B au sommet de l'écran, à la place du galet MindOFF */
.lp-cupofdate-mark {
  margin: .2rem auto 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #1d1b1f; border: 1px solid #2b2830;
  color: #b99a5f; font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem; font-weight: 700;
  filter: drop-shadow(0 6px 12px rgba(12, 11, 14, .5));
}
/* Rangée fiche : avatar initiale + identité + score, dans les cartes de la maquette */
.lp-cupofdate-row { display: flex; align-items: center; gap: .6rem; }
.lp-cupofdate-ava {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #2b2830; color: #b99a5f; font-weight: 700; font-size: .95rem;
}
.lp-cupofdate-id { min-width: 0; flex: 1; }
.lp-cupofdate-id p { margin: 0 !important; }
.lp-cupofdate-name { font-weight: 700; }
.lp-cupofdate-sub { color: var(--sg-muted) !important; font-size: .76rem !important; }
.lp-cupofdate-score {
  flex: none; padding: .18rem .55rem; border-radius: 999px;
  background: #b99a5f; color: #131215; font-weight: 700; font-size: .8rem;
}
.lp-cupofdate-tier {
  flex: none; padding: .14rem .5rem; border-radius: 7px;
  background: #2b2830; color: #ebe8e4; font-weight: 700; font-size: .74rem;
}
