/* Site vitrine de Gridtime : asphalte, rouge course, jaune drapeau (mêmes couleurs que l'application). */
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-style: italic;
  src: url('/fonts/barlow-condensed-800-italic.ttf') format('truetype');
  font-display: swap;
}

:root {
  --paper: #eeeeea;
  --card: #ffffff;
  --ink: #121316;
  --muted: #4a4d55;
  --heading: #121316;
  --accent: #c41620;
  --line: #d5d5cf;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0f12;
    --card: #1a1c21;
    --ink: #f4f4f2;
    --muted: #b4b6bc;
    --heading: #f4f4f2;
    --accent: #ff4136;
    --line: #2c2f36;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 1; }

.top, main, .bottom { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-style: italic; font-size: 24px; text-transform: uppercase; }
.brand img { border-radius: 10px; }
.lang { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }

h1, h2, h3 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-style: italic; color: var(--heading); line-height: 1.25; }
h1 { font-size: clamp(30px, 7vw, 44px); margin: 8px 0 16px; }
h2 { font-size: 24px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; }

section { padding: 28px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; padding-top: 20px; }
.lead { font-size: 19px; }
.note { color: var(--muted); font-size: 15px; }
.badge {
  display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 15px;
}

.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card p { margin: 0; }
.card ul { margin: 0; padding-left: 20px; }
.card.premium { border: 2px solid var(--accent); }

.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 12px; }
@media (min-width: 640px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.figures dt { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-style: italic; font-size: 34px; color: var(--accent); }
.figures dd { margin: 4px 0 0; font-size: 15px; }

.safety { background: var(--card); border: 2px solid var(--heading); border-radius: 14px; padding: 18px 20px; margin: 28px 0; }
.safety p { margin: 0; }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
details p { margin-top: 0; }

.doc h1 { font-size: clamp(26px, 6vw, 36px); }
.doc section { padding: 18px 0; }
.doc h2 { font-size: 20px; }

.bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; padding-bottom: 32px; font-size: 15px; color: var(--muted); }
.bottom nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bottom nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* Page Premium */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.box h2 { margin-top: 4px; }
.box form { display: grid; gap: 8px; margin: 12px 0; }
label { font-weight: 600; }
input[type='email'] {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--muted);
  border-radius: 10px; min-height: 48px; padding: 8px 12px; width: 100%;
}
input:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button {
  font: 600 17px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer;
  min-height: 52px; width: 100%; margin-top: 8px; padding: 12px 16px; border-radius: 12px;
  border: 0; background: var(--heading); color: var(--paper);
}
button.secondary { background: transparent; color: var(--heading); border: 2px solid var(--heading); }
button:disabled { opacity: 0.6; cursor: wait; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.plan {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; margin: 0;
  background: var(--paper); color: var(--ink); border: 2px solid var(--line); font-weight: 400;
}
.plan b { font-weight: 700; }
.plan small { color: var(--muted); font-size: 14px; }
.plan[aria-checked='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.warn { color: #9b1c1c; font-weight: 600; }
@media (prefers-color-scheme: dark) { .warn { color: #f19a9a; } }
.ok { font-weight: 600; color: var(--heading); }
.test { border: 2px dashed var(--accent); border-radius: 10px; padding: 8px 12px; font-weight: 600; color: var(--accent); }
ol { padding-left: 22px; }
