/* Site de xGhost (GitHub Pages), d'après resources/site (STYLE.md). */
/* Polices hébergées avec le site : aucun appel à un service tiers (sans tracking). */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-style: normal; font-display: swap; src: url('assets/fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-tint: #f0fdfa;
  --primary-soft: #ccfbf1;
  --danger-text: #c2311b;
  --danger-strong: #8f2414;
  --danger-tint: #fdedea;
  --ink: #111318;
  --text-muted: #5b6270;
  --text-subtle: #4b5260;
  --background: #f5f6f8;
  --surface: #fff;
  --surface-muted: #eef0f3;
  --border: #e6e8ec;
  --dark-border: #2a2e36;
  --dark-muted: #c9ced6;
  --display: 'Manrope', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.5 var(--text); color: var(--ink); background: var(--background); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 80px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* --- Icônes de bouton --- */
.i { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px var(--text); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn--small { height: 40px; padding: 0 14px; border-radius: 10px; }
.btn--large { height: 48px; padding: 0 22px; border-radius: 14px; font-size: 15px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); padding: 0 20px; }
.btn--secondary:hover { color: var(--ink); border-color: var(--ink); }

/* Bouton « Partager » : design d'origine du site, conservé tel quel. */
.btn-share { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid transparent; background: var(--ink); color: #fff; font: 600 15px/1.6 var(--text); text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn-share:hover { background: #2a2e37; color: #fff; }


/* Installation, Mise à jour : colonne d'intro + liste d'étapes (sans images) */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__intro { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.split__intro .eyebrow { margin-bottom: -8px; }
.split__text { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.steps { flex: 2 1 480px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.step__num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-hover); font-size: 14px; font-weight: 700; }
.step__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.step h3 { margin-top: 5px; font-size: 15px; font-weight: 600; }
.step p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
/* « C'est prêt ! » et les points de Mise à jour : coche verte à la place du numéro. */
.step--done .step__num { background: #e3f2ea; color: #1c5c3a; }
.step--done .step__num .i { width: 16px; height: 16px; stroke-width: 2.8; }

/* --- Header --- */
.header { position: sticky; top: 0; z-index: 10; background: rgba(245, 246, 248, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header__inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 19px var(--display); }
.logo:hover { color: var(--ink); }
.menu { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.menu a { color: var(--text-subtle); text-decoration: none; font-size: 14px; }
.menu a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang { padding: 8px 6px; border-radius: 10px; color: var(--text-subtle); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.lang:hover { background: var(--surface-muted); color: var(--ink); }

/* --- Hero --- */
.hero { padding: 72px 0 64px; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.hero__text { flex: 1 1 560px; }
.tag { display: inline-block; margin-bottom: 20px; padding: 5px 12px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-hover); font-size: 13px; font-weight: 600; }
h1 { font: 800 clamp(40px, 6vw, 64px)/1.04 var(--display); letter-spacing: -0.03em; }
.hl { color: var(--danger-text); }
.hero__lead { margin: 20px 0 30px; max-width: 480px; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__card { flex: 0 1 400px; width: 400px; min-width: 0; border-radius: 24px; box-shadow: 0 24px 60px rgba(17, 19, 24, .12); }

/* --- Sections --- */
.section { padding: 72px 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--ink); color: #fff; }
.eyebrow { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.section--dark .eyebrow { color: var(--dark-muted); }
h2 { max-width: 620px; font: 800 36px/1.1 var(--display); letter-spacing: -0.02em; }
.cards { display: flex; flex-wrap: wrap; margin-top: 32px; }

/* Fonctionnement */
.cards--how { gap: 20px; }
.how { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--background); }
.how__head { display: flex; align-items: center; gap: 12px; }
.how__num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; }
.how h3 { font: 800 19px var(--display); }
.how p { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.how img { width: 100%; }
.note-ref { margin-left: 1px; color: var(--primary); font-weight: 700; text-decoration: none; }
.note { margin-top: 20px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.note > span { margin-right: 4px; color: var(--primary); font-weight: 700; }
.note strong { color: var(--ink); font-weight: 600; }

/* Aperçu */
.cards--preview { gap: 20px; }
.preview { flex: 1 1 300px; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.preview__shot { height: 340px; padding: 24px; display: grid; place-items: center; background: var(--surface-muted); }
.preview__shot img { max-width: 100%; max-height: 100%; width: auto; border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 19, 24, .12); }
.preview__shot .preview__img--popup { max-height: 292px; }
.preview figcaption { padding: 18px 20px 20px; }
.preview h3 { font: 800 17px var(--display); }
.preview p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }


/* Confidentialité */
.cards--privacy { gap: 16px; }
.privacy { flex: 1 1 220px; padding: 22px; border: 1px solid var(--dark-border); border-radius: 20px; }
.privacy h3 { font: 800 17px var(--display); }
.privacy p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--dark-muted); }

/* Questions */
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
details { padding: 0 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; color: var(--primary); font-size: 22px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { padding-bottom: 18px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* --- Footer --- */
.footer { padding: 28px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer__left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.footer__logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 800 15px var(--display); }
.footer__links { display: flex; align-items: center; gap: 18px; }

@media (max-width: 800px) {
  .hero { padding-top: 48px; }
  .hero__card { width: 100%; }
  h2 { font-size: 32px; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.footer__links a { color: var(--primary); text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--primary-hover); text-decoration: underline; }
.hero__text, .how, .preview, .split__intro, .steps, .privacy { min-width: 0; }
