/*
 * Site vitrine PixCollection — direction « Papier » de l'application : fond beige, surfaces
 * blanches, filet 1 px, un seul accent. Couleurs reprises de `lib/theme.ts` (à resynchroniser
 * si la palette de l'application change).
 */

@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --border: #E7E6E1;
  --divider: #F1F0EC;
  --sunken: #EFEEE9;
  --text: #16161A;
  --muted: #6E6E78;
  --faint: #8A8A93;
  --accent: #3B49DB;
  --accent-hover: #2F3CC4;
  --accent-soft: #EEF0FE;
  --accent-border: #D5D9F7;
  --radius: 14px;
  --page: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--surface); padding: 8px 14px; z-index: 10; }

/* --- En-tête ---------------------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: #fff; }
.site-nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
@media (max-width: 760px) { .site-nav .optional { display: none; } .site-nav { gap: 14px; } }

/* --- Boutons ---------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--faint); color: var(--text); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Héros ------------------------------------------------------------------------------ */

.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 999px; padding: 4px 12px; margin: 0 0 18px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; font-weight: 700; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.hero-shots { display: flex; justify-content: center; gap: 18px; }
.hero-shots .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

.phone {
  width: min(250px, 44vw); background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 8px; overflow: hidden;
}
.phone img { border-radius: 21px; width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }

/* --- Chiffres --------------------------------------------------------------------------- */

.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px; border-left: 1px solid var(--divider); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--divider); }
}

/* --- Sections --------------------------------------------------------------------------- */

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--divider); }
h2 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }
.section-intro { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }
@media (max-width: 760px) { section { padding: 56px 0; } }

.feature { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.feature.reverse { grid-template-columns: 300px 1fr; }
.feature.reverse .feature-shot { order: -1; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .phone { width: 270px; }
.feature p { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 860px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-shot { order: 0; }
}

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233B49DB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.platforms li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-size: 14px; color: var(--muted); }

.scope { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.scope h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.scope ul { margin: 0; padding-left: 20px; }
.scope li { margin-bottom: 6px; }
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }

/* --- FAQ -------------------------------------------------------------------------------- */

.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* --- Appel final et pied de page --------------------------------------------------------- */

.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.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 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .disclaimer { flex-basis: 100%; font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* --- Pages de texte (lexique, guide, mentions légales, 404) ------------------------------ */

.prose { max-width: 760px; padding: 56px var(--gutter) 80px; margin: 0 auto; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: 18px; }
.prose strong { color: var(--text); font-weight: 600; }

.breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.breadcrumb a { color: var(--muted); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 8px; }
.toc a { display: inline-block; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--faint); }

.glossary { margin: 0; }
.glossary dt { margin-top: 32px; scroll-margin-top: 88px; }
.glossary dt dfn { font-style: normal; font-weight: 700; font-size: 20px; color: var(--text); }
.glossary dt .aka { color: var(--muted); font-size: 15px; margin-left: 6px; }
.glossary dd { margin: 6px 0 0; }
.glossary dd p { margin: 0 0 10px; }

.callout { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--radius); padding: 20px 24px; margin: 40px 0 0; }
.callout p { color: var(--text); margin: 0 0 12px; }
.callout p:last-child { margin-bottom: 0; }

.related { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; }
.related h2 { margin-top: 0; font-size: 18px; }
