/* Styles communs aux pages de timemapsapp.com. Aucune police ni ressource externe. */
:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #5854e6;
  --accent-text: #ffffff;
  --line: #e5e5ea;
  --card: #f5f5f7;
  --shot-border: rgba(0, 0, 0, .08);
  --shadow: 0 18px 40px rgba(40, 32, 120, .16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #8d90f9;
    --accent-text: #0b0b2a;
    --line: #2c2c2e;
    --card: #1c1c1e;
    --shot-border: rgba(255, 255, 255, .12);
    --shadow: 0 18px 40px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* Largeur : texte seul à 720 px, pages illustrées à 1000 px. */
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
main.wide { max-width: 1000px; }

/* En-tête : le nom de l'app et les langues. */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a {
  padding: 5px 12px; border-radius: 999px; background: var(--card);
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
}
.langs a:hover { color: var(--accent); }
.langs a[aria-current="true"] { background: var(--accent); color: var(--accent-text); }

/* Une section par langue. Le script n'en montre qu'une ; sans lui, elles se suivent. */
.lang + .lang { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.one-lang .lang + .lang { margin-top: 0; padding-top: 0; border-top: 0; }

/* Les pages du site, dans la langue de la section. */
.pages { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0 28px; font-size: 15px; }
.pages a { color: var(--muted); text-decoration: none; font-weight: 500; }
.pages a:hover { color: var(--accent); }
.pages a[aria-current="page"] { color: var(--text); }

h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 10px; }
h2 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p, li { margin: 0 0 10px; }
ul { padding-left: 22px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); }

/* Accueil */
.hero { text-align: center; margin-bottom: 56px; }
.hero .banner { width: 100%; border-radius: 22px; margin-bottom: 32px; box-shadow: var(--shadow); }
.hero h1 { max-width: 720px; margin: 0 auto 12px; }
.hero .lead { max-width: 640px; margin: 0 auto 22px; }
.cta {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
}
.cta:hover { filter: brightness(1.08); }
/* Badge App Store d'Apple : tel quel, au moins 40 px de haut, et un espace libre d'un quart de sa hauteur autour. */
.store-badge { display: inline-block; margin: 13px 0; line-height: 0; }
.store-badge img { display: block; height: 50px; width: auto; }
.platforms { margin-top: 12px; font-size: 15px; color: var(--muted); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 0 0 72px; }
.feature.flip .text { order: 2; }
.feature .shots { display: flex; justify-content: center; gap: 16px; }
.shot { border-radius: 26px; border: 1px solid var(--shot-border); box-shadow: var(--shadow); background: #fff; }
.phone { width: 260px; }
.shots .phone { width: 31%; min-width: 0; border-radius: 18px; }
.tablet { width: 360px; border-radius: 22px; margin: 0 auto; }
.end { text-align: center; margin: 0 0 24px; }
.wide-shot { margin: 0 0 72px; text-align: center; }
.wide-shot .text { max-width: 680px; margin: 0 auto 28px; }
.wide-shot img { border-radius: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 56px; }
.tile { background: var(--card); border-radius: 16px; padding: 18px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 56px; }
.pair .tile { padding: 22px; }

.summary { background: var(--card); border-radius: 14px; padding: 14px 16px; margin: 0 0 8px; }
.date { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.site-footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 760px) {
  h1 { font-size: 28px; }
  .feature { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .feature.flip .text { order: 0; }
  .phone { width: 220px; margin: 0 auto; }
  .tablet { width: 280px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr; }
  .hero .banner { border-radius: 14px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sur un petit écran, les langues tiennent sur la ligne du nom : FR, EN, DE, ES. */
.langs .short { display: none; }
@media (max-width: 480px) {
  .langs .long { display: none; }
  .langs .short { display: inline; }
}

/* Confidentialité : un texte long, des titres plus discrets. */
.legal h1 { font-size: 30px; line-height: 1.2; margin: 0 0 4px; }
.legal h2 { font-size: 19px; margin: 28px 0 6px; }

/* Mode d'emploi */
.guide h2 { margin-top: 44px; scroll-margin-top: 16px; }
.guide h3 { margin-top: 22px; }
.guide .toc { background: var(--card); border-radius: 16px; padding: 16px 20px; margin: 24px 0 8px; }
.guide .toc-title { font-size: 15px; margin: 0 0 8px; color: var(--muted); }
.toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 22px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.note { background: var(--card); border-radius: 14px; padding: 12px 16px; font-size: 16px; }
.examples { width: 100%; border-collapse: collapse; margin: 4px 0 16px; font-size: 16px; }
.examples th, .examples td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.examples th { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.examples td:last-child { color: var(--muted); }
.keys td:first-child { white-space: nowrap; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card); color: var(--text);
  font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; text-align: center;
}
q:lang(fr) { quotes: "«\00a0" "\00a0»"; }
q:lang(es) { quotes: "«" "»"; }
q:lang(de) { quotes: "„" "“"; }
q:lang(en) { quotes: "“" "”"; }
@media (max-width: 480px) {
  .toc ol { columns: 1; }
}

/* Press-Kit */
.press h2 { margin-top: 44px; scroll-margin-top: 16px; }
.press h3 { margin-top: 22px; }
.facts { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 30%; color: var(--muted); font-weight: 500; }
.copy-block { background: var(--card); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.copy-block p:last-child { margin-bottom: 0; }
button.copy {
  float: right; margin: 0 0 6px 12px; padding: 4px 12px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--accent); font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; cursor: pointer;
}
.features { columns: 2; column-gap: 28px; }
.features li { break-inside: avoid; }
.downloads { background: var(--card); border-radius: 16px; padding: 18px 20px; margin: 16px 0 8px; }
.downloads .cta { margin-bottom: 10px; }
.downloads p { margin: 4px 0 0; font-size: 15px; }
.icon-row { display: flex; align-items: center; gap: 20px; }
.icon-row img { width: 128px; height: 128px; border-radius: 28px; box-shadow: var(--shadow); }
.icon-row ul { margin: 0; }
.gallery { display: grid; gap: 14px; margin: 0 0 14px; }
.gallery.phones { grid-template-columns: repeat(4, 1fr); }
.gallery.devices { grid-template-columns: 3fr 5fr; align-items: end; }
.gallery figure { margin: 0; }
.gallery .shot { width: 100%; border-radius: 12px; }
.gallery figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; }
.gallery video { width: 100%; border-radius: 12px; }
@media (max-width: 480px) {
  .gallery.phones { grid-template-columns: 1fr 1fr; }
  .gallery.devices, .features { grid-template-columns: 1fr; columns: 1; }
  .facts th { width: auto; }
}
