/* Dispology — site de présentation. Identité A2 de l'app et du BO (bleu #1D4ED8, orange #C2410C, Newsreader + Public Sans). */

@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

:root {
    --paper: #fbfaf7;
    --surface: #ffffff;
    --ink: #142033;
    --ink-2: #3a4658;
    --muted: #667085;
    --line: #e4e1d9;
    --line-strong: #142033;
    --primary: #1d4ed8;
    --primary-dark: #1e3fae;
    --accent: #c2410c;
    --accent-light: #fb923c;
    --av: #0f766e;
    --av-soft: #d5efe9;
    --pending-soft: #fde7d9;
    --refused: #b42318;
    --refused-soft: #fbe3e1;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1160px;
    --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Wordmark: the « o » is the pending dot of the app */
.wordmark { font: 500 26px/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark i { display: inline-block; width: 0.48em; height: 0.48em; border-radius: 50%; background: var(--accent); margin: 0 0.03em; vertical-align: 0.02em; }

/* Blue band with the dot pattern of the app and the BO (header, and the hero on the home page) */
.masthead {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.14) 2.5px, transparent 3px) 0 0 / 22px 22px,
        var(--primary);
    color: #fff;
}
.masthead .wordmark { color: #fff; }
.masthead .wordmark i { background: var(--accent-light); }

/* Header */
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.site-head nav { display: flex; gap: 24px; margin-left: auto; }
.site-head nav a { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-size: 15px; }
.site-head nav a:hover { color: #fff; text-decoration: underline; }
.site-head .bo-link { font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.7); padding: 7px 14px; border-radius: 4px; }
.site-head .bo-link:hover { background: #fff; color: var(--primary); }

/* Buttons: flat, square-ish */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 4px; font: 600 16px var(--sans); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #eef2ff; color: var(--primary-dark); }
.btn-outline-white { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Hero: text on the blue band, the phone overflows below it like the cards of the app */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
.hero-text { padding-bottom: clamp(48px, 7vw, 88px); }
.kicker { font: 600 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.masthead .kicker { color: var(--accent-light); }
h1 { font: 400 clamp(40px, 6vw, 72px)/1.02 var(--serif); letter-spacing: -0.025em; margin: 0 0 28px; }
h1 em { font-style: italic; }
.lead { font-size: 19px; color: #dce5ff; margin: 0 0 28px; max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { justify-self: center; width: min(300px, 100%); margin-bottom: -96px; position: relative; }
.hero-phone .shot { border-radius: 28px; border: 6px solid #0f1b33; box-shadow: 0 24px 48px rgba(15, 27, 51, 0.28); }
.masthead + main > section:first-child { padding-top: calc(clamp(56px, 8vw, 104px) + 96px); }

/* The state legend of the planning, in the colours of the app on blue */
.states { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; color: #dce5ff; }
.states li { display: flex; align-items: center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.ok { background: #2dd4bf; }
.dot.pending { background: var(--accent-light); }
.dot.refused { background: #fca5a5; }
.dot.open { border: 1.5px dashed var(--accent-light); }

/* Screenshots: thin frame, caption below like a newspaper figure */
figure { margin: 0; }
.shot { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
figcaption b { color: var(--ink); font-weight: 600; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font: 400 clamp(30px, 3.8vw, 44px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 20px; }
h3 { font: 600 17px/1.35 var(--sans); margin: 0 0 6px; }
.prose { max-width: 38em; color: var(--ink-2); }
.prose p { margin: 0 0 16px; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }

/* The four steps: a ruled list, not cards */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 0 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font: 400 34px/1 var(--serif); color: var(--accent); }
.steps p { margin: 0; color: var(--ink-2); }
.steps .who { font: 600 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }

/* Journalists: phone */
.phones { display: flex; justify-content: center; align-items: flex-start; }
.phones figure { width: min(290px, 100%); }
.phones .shot { border-radius: 28px; border: 6px solid #0f1b33; }
.features { list-style: none; margin: 24px 0 32px; padding: 0; }
.features li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.features li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--av); }
.features li b { color: var(--ink); font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 6px 20px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.15; }
.store small { font-size: 11px; opacity: 0.75; }
.store span { font: 600 18px var(--sans); }
.store:hover { background: #000; color: #fff; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); margin-top: 40px; }
.facts div { padding: 22px 24px 4px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Contact: the only dark block */
.contact { background: var(--ink); color: #e9ecf2; border-top: 0; }
.contact h2 { color: #fff; }
.contact .prose { color: #c4cad6; }
.contact a { color: #fff; }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; font-size: 17px; }
.contact dt { color: #8f9ab0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.contact dd { margin: 0; }
.contact .btn-primary { margin-top: 28px; }

/* Footer */
.site-foot { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.site-foot a { color: var(--ink-2); }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--ink); border-bottom-color: var(--line-strong); }
.legal .box { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 20px 0; }
/* Information still to be provided before going live */
.todo { background: #fff1a8; color: var(--ink); padding: 0 4px; border-radius: 2px; }

@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero-grid { gap: 8px; }
    .hero-text { padding-bottom: 32px; }
    .hero-phone { width: min(250px, 72%); }
    .phones { justify-content: flex-start; }
    .site-head nav { display: none; }
    .site-head .bo-link { margin-left: auto; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .site-head .bo-link { font-size: 14px; padding: 6px 10px; }
    .facts { grid-template-columns: 1fr; }
    .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .contact dl { grid-template-columns: 1fr; gap: 2px; }
    .contact dd { margin-bottom: 12px; }
    .site-foot nav { margin-left: 0; }
}
