/* En commune : site de présentation. Polices servies par le site (aucun appel à un tiers). */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #ECE9E2;
  --ink: #1B1A17;
  --muted: #55524B;
  --line: #DDD9CF;
  --brand: #1F4E79;
  --brand-ink: #FFFFFF;
  --brand-soft: #E4ECF4;
  --warm: #A8492C;
  --warm-soft: #F7E9DF;
  --sky: #DCEAF4;
  --shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 12px 32px -12px rgba(27, 26, 23, .18);
  --radius: 16px;
  --max: 1160px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412; --surface: #1F1E1B; --surface-2: #2C2B27; --ink: #F2F0EB; --muted: #BDB8AD; --line: #3A3833;
    --brand: #9DBDFF; --brand-ink: #10213A; --brand-soft: #17264A; --warm: #F0A98C; --warm-soft: #3A231A; --sky: #1A2733;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141412; --surface: #1F1E1B; --surface-2: #2C2B27; --ink: #F2F0EB; --muted: #BDB8AD; --line: #3A3833;
  --brand: #9DBDFF; --brand-ink: #10213A; --brand-soft: #17264A; --warm: #F0A98C; --warm-soft: #3A231A; --sky: #1A2733;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
.eyebrow { font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--warm); }
.muted { color: var(--muted); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 23px/1 var(--serif); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 16px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 900px) { .site-nav a:not(.btn) { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 12px; font: 700 17px/1.2 var(--sans); text-decoration: none; border: 2px solid var(--brand); transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Accueil */
.hero { padding: 72px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 21px; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero .note { margin-top: 18px; font-size: 16px; color: var(--muted); }
.hero-visual { position: relative; padding: 0 0 48px 0; }
.hero-visual .browser { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar b { margin-left: 10px; font-weight: 400; }
.phone { border-radius: 30px; overflow: hidden; border: 6px solid #1B1A17; box-shadow: var(--shadow); background: #1B1A17; }
.hero-visual .phone { position: absolute; right: -8px; bottom: 0; width: 34%; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { margin-right: 8px; }
}

/* Bandeau des engagements */
.pledges { border-block: 1px solid var(--line); background: var(--surface); }
.pledges ul { list-style: none; margin: 0 auto; padding: 18px 24px; max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; font-weight: 700; font-size: 16px; }
.pledges li { display: flex; align-items: center; gap: 8px; }
.pledges svg { width: 20px; height: 20px; color: var(--warm); flex: none; }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 10px 0 14px; }
.section-head p { font-size: 20px; color: var(--muted); }
.section-head .eyebrow, .split .eyebrow { font-size: 15px; color: var(--warm); }
@media (max-width: 600px) { .section { padding: 60px 0; } }

/* Une seule saisie */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.section-alt .step { background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 20px/1 var(--serif); margin-bottom: 18px; }
.step h3 { font-size: 23px; margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 30px; height: 30px; color: var(--brand); margin-bottom: 14px; }
.feature h3 { font: 700 19px/1.3 var(--sans); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 17px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Blocs texte + image */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 10px 0 16px; }
.split .lead { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.checks svg { width: 24px; height: 24px; color: var(--warm); margin-top: 3px; }
.split > *, .phones > *, .hero .wrap > * { min-width: 0; }
.phone img, .shot img, .browser img { width: 100%; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }

/* Captures de l'app */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.phones figure { margin: 0; }
.phones figcaption { text-align: center; margin-top: 12px; font-size: 16px; color: var(--muted); }
.phones figure:nth-child(2) { margin-top: 40px; }
@media (max-width: 600px) { .phones { gap: 10px; } .phones figure:nth-child(2) { margin-top: 20px; } .phone { border-width: 4px; border-radius: 20px; } .phones figcaption { font-size: 14px; } }

/* Obligations */
.duties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.duty { border-left: 4px solid var(--warm); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; }
.section-alt .duty { background: var(--bg); }
.duty h3 { font: 700 20px/1.3 var(--sans); margin-bottom: 6px; }
.duty p { color: var(--muted); }
@media (max-width: 760px) { .duties { grid-template-columns: 1fr; } }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.price.featured { border: 2px solid var(--brand); }
.price h3 { font-size: 25px; }
.price .amount { font: 700 36px/1.1 var(--serif); }
.price .amount small { font: 400 17px/1.3 var(--sans); color: var(--muted); }
.price ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.prices-note { margin-top: 24px; max-width: 920px; color: var(--muted); }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } .price { padding: 24px; } }

/* Questions */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.section-alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--sans); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Contact */
.contact { background: var(--brand); color: var(--brand-ink); border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.contact p { font-size: 20px; opacity: .92; }
.contact-lines { display: grid; gap: 12px; }
.contact-lines a { display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--brand-ink) 12%, transparent); color: var(--brand-ink); text-decoration: none; padding: 18px 20px; border-radius: 14px; font-weight: 700; font-size: 19px; word-break: break-word; }
.contact-lines a:hover { background: color-mix(in srgb, var(--brand-ink) 20%, transparent); }
.contact-lines svg { width: 24px; height: 24px; flex: none; }
.contact :focus-visible { outline-color: var(--brand-ink); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Pied de page */
.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Pages simples (mentions légales) */
.page { max-width: 780px; padding: 56px 24px 72px; margin: 0 auto; }
.page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.page h2 { font-size: 26px; margin: 36px 0 10px; }
.page p, .page li { margin-bottom: 8px; }
@media (max-width: 600px) { .page { padding: 40px 16px 56px; } }

/* En-tête sur téléphone : marque et bouton sur une ligne */
.brand, .site-nav .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 12px; }
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .site-nav .btn-small { padding: 0 12px; font-size: 15px; }
}

/* Qui sommes-nous */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 8px; align-content: start; }
.person-initials { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--warm-soft); color: var(--warm); font: 700 24px/1 var(--serif); margin-bottom: 8px; }
.person h3 { font-size: 25px; }
.person-role { font-weight: 700; color: var(--muted); }
.person p:last-child { color: var(--muted); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } .person { padding: 24px; } }
