/* 123Open — pages du site (confidentialité, assistance, conditions, mentions). */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e3e1dc;
  --accent: #1f5fbf;
  --accent-soft: #e8f0fb;
  --ok: #1e7a46;
  --ok-soft: #e7f4ec;
  --warn: #a4430b;
  --warn-soft: #fdf1e7;
  --accent-strong: #1f5fbf;
  --danger: #e00000;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316;
    --surface: #1b1d21;
    --text: #ececee;
    --muted: #a4a8b0;
    --line: #2c2f35;
    --accent: #7fb0ff;
    --accent-soft: #1d2a3d;
    --ok: #6fd39a;
    --ok-soft: #16281f;
    --warn: #ffa060;
    --warn-soft: #2d2118;
    --accent-strong: #2f6fd0;
    --danger: #ff4d4d;
  }
}

/* Police libre Roboto (Apache 2.0, voir assets/fonts/LICENSE-Roboto.txt), hébergée ici :
   aucune requête vers un service tiers. */
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Roboto-Regular.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Roboto-Bold.ttf") format("truetype"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Roboto", Arial, sans-serif;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
code { font-size: .92em; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }

/* En-tête */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { border-radius: 8px; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.flag {
  display: inline-flex; padding: 3px; border: 2px solid transparent; border-radius: 6px;
  background: none; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s;
}
.flag img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.flag:hover, .flag:focus-visible { opacity: 1; }
.flag[aria-pressed="true"] { opacity: 1; border-color: var(--accent); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; padding-bottom: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Contenu */
.content { padding-top: 28px; padding-bottom: 40px; }
article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 12px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 30px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.meta { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.callout { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 12px; padding: 14px 18px; margin: 0 0 8px; }
.callout p { margin: 6px 0; }
.callout-title { font-weight: 700; font-size: 18px; color: var(--ok); }

/* Guide d'installation */
.warning { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); border-radius: 12px; padding: 6px 20px 14px; margin: 18px 0 8px; }
.warning h2 { color: var(--warn); margin-top: 14px; }
.ack-wrap { text-align: center; margin: 18px 0 6px; }
.ack-btn { font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--accent-strong); border: 0; border-radius: 999px; padding: 12px 34px; cursor: pointer; }
.ack-btn:hover { filter: brightness(1.08); }
.after-ack { display: none; scroll-margin-top: 16px; }
html.ack .after-ack { display: block; }
html.ack .ack-wrap { display: none; }
.alert { background: var(--warn-soft); border-left: 4px solid var(--warn); border-radius: 8px; padding: 6px 16px; margin: 14px 0; }
figure { margin: 18px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 6px; }
ol { padding-left: 22px; }
.danger { color: var(--danger); font-weight: 700; }
.sym { display: inline-block; width: 1.1em; height: .7em; vertical-align: .05em; }
.pdf-link { margin-top: 6px; }
.pdf-link a { font-weight: 700; }

/* Accueil (page commerciale) : sections pleine largeur, sans carte unique */
body[data-page="home"] .wrap { max-width: 1040px; }
body[data-page="home"] article { background: none; border: 0; padding: 0; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 18px 0 30px; }
.hero h1 { font-size: 38px; line-height: 1.15; margin: 14px 0 14px; letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.lead strong { color: var(--text); }
.hero-video { position: relative; margin: 20px 0 6px; border-radius: var(--radius); overflow: hidden; background: #1b1d21; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.video-toggle:hover { background: rgba(0,0,0,.65); }
.video-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.video-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.hero-video .i-play, .hero-video.paused .i-pause { display: none; }
.hero-video.paused .i-play { display: block; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.btn { display: inline-block; font-weight: 700; font-size: 17px; color: #fff; background: var(--accent-strong); border: 2px solid var(--accent-strong); border-radius: 999px; padding: 11px 28px; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); border-color: currentColor; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px 22px; margin: 0 0 20px; }
.block > h2 { font-size: 24px; margin: 22px 0 14px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
.card { background: var(--accent-soft); border-radius: 12px; padding: 4px 16px 10px; }
.card h3, .feature h3 { font-size: 17px; margin: 12px 0 4px; }
.card p, .feature p { margin: 0 0 6px; font-size: 15px; }
.feature p { color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 10px 50px; margin: 0 0 8px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.privacy-band { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.privacy-band h2 { color: var(--ok); }
.made-in { display: flex; align-items: center; gap: 28px; margin: 0 0 20px; padding: 26px 30px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, #003399 0%, #1d3f8f 55%, #002654 100%); }
.made-in h2 { font-size: 28px; margin: 0 0 8px; color: #fff; }
.made-in p { margin: 0; color: rgba(255,255,255,.88); font-size: 17px; }
.made-in-flags { display: flex; gap: 12px; flex-shrink: 0; }
.made-in-flags img { display: block; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 6px 16px rgba(0,0,0,.3); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .42em; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 6px; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px 10px; }
.price-pack { border: 2px solid var(--accent); background: var(--accent-soft); }
.tag { position: absolute; top: -13px; left: 18px; margin: 0; padding: 2px 12px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 13px; font-weight: 700; }
.price-img { display: block; height: 96px; width: auto; margin: 4px 0 6px; object-fit: contain; }
.prices h3 { font-size: 18px; margin: 6px 0 2px; }
.price { font-size: 44px; font-weight: 700; margin: 0; line-height: 1.1; }
.price span { font-size: 18px; font-weight: 400; color: var(--muted); }
.was { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.opts-title { font-size: 18px; margin: 24px 0 4px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.opt > div { flex: 1; }
.opt img { flex-shrink: 0; background: var(--accent-soft); border-radius: 10px; padding: 4px; }
.opt p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.opt .price-sm { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); white-space: nowrap; }
.combo { margin: 6px 0 0; }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 2px; color: var(--muted); }
.contact-band { text-align: center; padding: 18px 0 8px; }
.contact-band h2 { font-size: 26px; margin: 10px 0 4px; }
.contact-band p { margin: 6px 0 14px; color: var(--muted); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-img { order: -1; max-width: 520px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 28px; }
  .lead { font-size: 16px; }
  .block { padding: 6px 18px 16px; }
  .grid-4, .grid-2, .prices, .opts { grid-template-columns: 1fr; }
  .prices { gap: 26px; }
  .made-in { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .made-in h2 { font-size: 23px; }
  .made-in-flags img { width: 72px; height: 48px; }
  .price { font-size: 38px; }
}

/* Pied de page */
.foot { color: var(--muted); font-size: 14px; padding: 0 0 36px; text-align: center; }
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  article { padding: 20px 18px 6px; border-radius: 12px; }
  h1 { font-size: 24px; }
  .content { padding-top: 18px; }
}

/* Impression / PDF : contenu seul, sans menu ni drapeaux. Le guide n'est imprimé
   qu'une fois « J'ai compris » validé (le PDF est généré dans cet état). */
@media print {
  :root { --bg: #fff; --surface: #fff; }
  @page { margin: 14mm 14mm 16mm; }
  body { font-size: 11pt; }
  .top .flags, .nav, .ack-wrap, .pdf-link { display: none !important; }
  .top { border: 0; }
  .content { padding: 0; }
  article { border: 0; padding: 0; }
  figure, .alert, .warning, h2, h3 { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  figure img { max-height: 120mm; width: auto; max-width: 100%; margin: 0 auto; }
  a { color: inherit; text-decoration: none; }
}
