/* dmsy.fr : style commun (page d'accueil, pages des apps, politiques de confidentialité). Couleurs d'InstantReplay. */
:root {
  --bg: #021117;
  --panel: #0a1419;
  --card: #152228;
  --stroke: #2e3a3f;
  --text: #ffffff;
  --muted: #cccccc;
  --dim: #8a989e;
  --pink: #ff205d;
  --pink-dark: #e0124c;
  --radius: 16px;
  --maxw: 1080px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-underline-offset: 3px; }
a:hover { color: #ff5c86; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* En-tête et pied de page */
.site-header { border-bottom: 1px solid var(--stroke); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 20px; }
.site-header nav a:hover { color: var(--text); }

.site-footer { border-top: 1px solid var(--stroke); margin-top: 72px; padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 18px; padding: 14px 26px; border-radius: 12px;
}
.btn:hover { background: var(--pink-dark); color: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }
.note { color: var(--dim); font-size: 14px; margin-top: 10px; }

/* Héros */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.5px; }
.hero .lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 34em; }
.hero .wrap.single { grid-template-columns: 1fr; }
.hero-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.3px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--panel); border: 1px solid var(--stroke); display: grid; place-items: center; }
.icon img { width: 24px; height: 24px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li { background: var(--card); border: 1px solid var(--stroke); border-radius: 999px; padding: 8px 16px; color: var(--muted); }

.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--stroke); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { color: var(--muted); font-size: 15px; font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--pink); font-weight: 700; }

details { background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 48px 24px; }
.cta .lead { color: var(--muted); margin: 0 auto 24px; max-width: 32em; }

/* Liste des apps (page d'accueil) */
.app-card { display: flex; gap: 20px; align-items: center; text-decoration: none; color: var(--text); }
.app-card:hover h3 { color: var(--pink); }
.app-card img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.app-card h3 { margin: 0 0 4px; }

/* Pages de texte (politique de confidentialité) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 0; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 6px; }
.doc .meta { color: var(--dim); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.doc th { color: var(--text); }
.doc td { color: var(--muted); }
.callout { background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }

@media (max-width: 820px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 14px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-bottom: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--stroke); padding: 10px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
