/* ph2ph — site de présentation. Identité « Relais » de l'app (vert #0B6E5B, corail #D9572C, Bricolage Grotesque + DM Sans),
   mêmes valeurs que ph2ph-api/docs/maquettes/ph2ph.css (.relais.light). */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
    --ground: #f3f5f2;
    --surface: #ffffff;
    --surface-2: #eef1ef;
    --ink: #10211c;
    --muted: #4a5b55;
    --line: #dde3df;
    --primary: #0b6e5b;
    --primary-dark: #08584a;
    --primary-soft: #dcefe8;
    --accent: #d9572c;
    --accent-soft: #fbe3d9;
    --accent-text: #a33a15;
    /* Dark-mode values of the app, used on the green band */
    --on-band: #eaf2ee;
    --on-band-muted: #c4ddd4;
    --band-accent: #ff9b77;
    --deep: #0c1714;
    --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --r-card: 22px;
    --r-btn: 16px;
    --r-field: 14px;
    --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(--ground); color: var(--ink); font: 400 17px/1.6 var(--body); }
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(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

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

/* Wordmark: the cross mark of the app, then « ph2ph » with the middle « 2 » in colour */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 800 27px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark b { font-weight: 800; color: var(--primary); }

/* Green band (header, and the hero on the home page), with the crossing bars of the logo as a pattern */
.masthead {
    background:
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.05) 47%, rgba(255, 255, 255, 0.05) 53%, transparent 53%) 0 0 / 56px 56px,
        linear-gradient(0deg, transparent 47%, rgba(255, 255, 255, 0.05) 47%, rgba(255, 255, 255, 0.05) 53%, transparent 53%) 0 0 / 56px 56px,
        var(--primary);
    color: var(--on-band);
}
.masthead .wordmark { color: #fff; }
.masthead .wordmark b { color: var(--band-accent); }

/* 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: var(--on-band-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-head nav a:hover { color: #fff; text-decoration: underline; }
.site-head .head-cta { font-size: 15px; font-weight: 700; color: var(--primary); background: #fff; text-decoration: none; padding: 9px 16px; border-radius: var(--r-btn); white-space: nowrap; }
.site-head .head-cta:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* Buttons: same shapes as the app (radius 16, bold label) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: var(--r-btn); font: 700 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c04a22; color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-outline-white { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Hero: text on the green band, the phone overflows below it */
.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, 96px); }
.kicker { font: 700 13px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.masthead .kicker { color: var(--band-accent); }
h1 { font: 800 clamp(38px, 5.6vw, 66px)/1.04 var(--display); letter-spacing: -0.025em; margin: 0 0 26px; }
h1 em { font-style: normal; color: var(--band-accent); }
.lead { font-size: 19px; color: var(--on-band-muted); margin: 0 0 30px; max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { justify-self: center; width: min(300px, 100%); margin-bottom: -110px; position: relative; }
.masthead + main > section:first-child { padding-top: calc(clamp(56px, 8vw, 104px) + 110px); }

/* The answers of a search, as the chips of the app */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--body); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.chip-ok { background: #3fb396; color: #06231c; }
.chip-soft { background: rgba(255, 255, 255, 0.14); color: #fff; }
.chip-warn { background: var(--accent-soft); color: var(--accent-text); }
.chip-urgent { background: var(--accent); color: #fff; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; }

/* Screenshots in a phone frame */
figure { margin: 0; }
.phone { border-radius: 34px; border: 7px solid var(--deep); overflow: hidden; background: var(--surface); box-shadow: 0 24px 48px rgba(12, 23, 20, 0.28); }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 14px; line-height: 1.45; }
figcaption b { color: var(--ink); font-weight: 700; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font: 800 clamp(30px, 3.8vw, 44px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 20px; }
h3 { font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; margin: 0 0 6px; }
.prose { max-width: 38em; color: var(--muted); }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); }
.section-kicker { font: 700 13px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split.reverse > :first-child { order: 2; }

/* Steps: numbered cards like the app's cards */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font: 800 20px/1 var(--display); }
.steps p { margin: 0; color: var(--muted); }

/* Feature list with a check dot */
.features { list-style: none; margin: 24px 0 32px; padding: 0; }
.features li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.features li::before { content: ""; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.5' fill='none' stroke='%230b6e5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.features li b { color: var(--ink); font-weight: 700; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card.accent .icon { background: var(--accent-soft); color: var(--accent-text); }

.cards.two { grid-template-columns: 1fr 1fr; margin-top: 0; }

/* « Not a marketplace » band */
.band { background: var(--surface); }
.band .wrap { max-width: 900px; text-align: center; }
.band h2 { margin-bottom: 16px; }
.band .prose { margin: 0 auto; }

/* Phones next to a text */
.phones { display: flex; justify-content: center; gap: 24px; align-items: flex-start; }
.phones figure { width: min(280px, 100%); }
.phones figure + figure { margin-top: 56px; }

/* Store badges */
.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: 12px; background: var(--deep); color: #fff; text-decoration: none; line-height: 1.15; }
.store small { font-size: 11px; opacity: 0.75; }
.store span { font: 700 18px var(--body); }
.store:hover { background: #000; color: #fff; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Contact: dark green block with the form card */
.contact { background: var(--deep); color: var(--on-band); border-top: 0; }
.contact h2 { color: #fff; }
.contact .prose { color: #9fb3ab; }
.contact .prose strong { color: #fff; }
.contact a { color: #fff; }
.contact .direct { margin-top: 28px; font-size: 16px; color: #9fb3ab; }
.contact .direct a { font-weight: 700; }

.form { background: var(--surface); color: var(--ink); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .form legend { font-size: 14px; font-weight: 700; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 50px; border-radius: var(--r-field); border: 1.5px solid var(--line); background: var(--surface); padding: 12px 14px; font: 500 16px var(--body); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { margin-bottom: 8px; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radios span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font: 700 15px var(--body); color: var(--muted); background: var(--surface); }
.radios input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.radios input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .legal-note { font-size: 13px; color: var(--muted); margin: 0; }
.form .legal-note a { color: var(--primary); }
.form .btn { justify-self: start; }
/* Honeypot: hidden from people, filled in by robots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 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(--muted); }

/* Legal and short pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); 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(--muted); }
.legal strong { color: var(--ink); }
.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: 700; color: var(--ink); border-bottom-color: var(--ink); }
.legal td { color: var(--muted); }
.legal .box { background: var(--primary-soft); border-radius: var(--r-card); padding: 18px 22px; margin: 20px 0; }
.legal .box p { color: var(--ink); margin: 0; }
.message-page { padding: clamp(56px, 9vw, 120px) 0; }
.message-page .wrap { max-width: 640px; }
.message-page .badge { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 24px; }
.message-page .badge.warn { background: var(--accent-soft); color: var(--accent-text); }
.message-page .badge svg { width: 30px; height: 30px; }
.message-page p { color: var(--muted); }
.message-page .actions { margin-top: 28px; }
/* Information still to be provided before going live */
.todo { background: #fff1a8; color: var(--ink); padding: 0 4px; border-radius: 2px; }

@media (max-width: 960px) {
    .site-head nav { display: none; }
    .site-head .head-cta { margin-left: auto; }
}
@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .hero-grid { gap: 8px; }
    .hero-text { padding-bottom: 32px; }
    .hero-phone { width: min(250px, 72%); }
    .cards { grid-template-columns: 1fr 1fr; }
    .phones { justify-content: flex-start; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .site-head .head-cta { font-size: 14px; padding: 8px 12px; }
    .wordmark { font-size: 24px; }
    .wordmark svg { width: 30px; height: 30px; }
    .cards, .cards.two { grid-template-columns: 1fr; }
    .form { grid-template-columns: 1fr; }
    .phones figure + figure { display: none; }
    .site-foot nav { margin-left: 0; }
}

/* Logo mark parts (the vertical bar turns white on the green band) */
.mark .v { fill: var(--primary); }
.mark .h { fill: var(--accent); fill-opacity: 0.92; }
.mark .c { fill: var(--surface); }
.masthead .mark .v { fill: #fff; }
.masthead .mark .c { fill: var(--primary); }
