/* ============================================================
 * ILYGO Centralized Backup — charte « Coffre suisse »
 * Thème clair, premium. Identite monochrome : rouge suisse = SEULE
 * couleur d'accent, graphite neutre = structure, vert = succes.
 * Titres en serif élégante (Fraunces), texte Inter, code JetBrains Mono.
 * ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --bg-3: #eef2f7;
  --panel: #ffffff;
  --ink: #1e232b;          /* graphite neutre (presque noir) — titres / structure */
  --text: #3d434d;         /* corps */
  --text-dim: #677079;
  --text-mute: #98a0aa;
  --border: #e7e7ea;
  --border-strong: #d4d5da;
  --accent: #e4002b;       /* rouge suisse — SEULE couleur d'accent */
  --accent-ink: #b3001f;   /* rouge profond (survols, liens) */
  --accent-2: #1e232b;     /* graphite — base / structure */
  --accent-soft: rgba(228, 0, 43, 0.07);
  --swiss: #e4002b;        /* rouge suisse */
  --ok: #1f9d6b;
  --warn: #c9821a;
  --danger: #d23b4e;
  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1180px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, 0.06), 0 1px 3px rgba(20, 22, 28, 0.05);
  --shadow: 0 4px 16px rgba(20, 22, 28, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 22, 28, 0.13);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.7rem);
  line-height: 1.06;
  font-weight: 600;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.18;
}
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--font); font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-dim); }
strong { color: var(--ink); font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-3);
  color: #444b55;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 140ms ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(228, 0, 43, 0.26);
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }

/* ---------------- Navigation ---------------- */
/* Filet rouge suisse en haut de page (accent drapeau) */
body { border-top: 4px solid var(--swiss); }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.02rem; white-space: nowrap; }
.brand svg { flex: none; }
.brand-accent { color: var(--ink); font-weight: 700; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.94rem; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 92px 0 72px;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(228, 0, 43, 0.06), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 0.82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 107, 0.16); }
.hero h1 { margin-bottom: 18px; }
.grad {
  background: linear-gradient(100deg, #e4002b 10%, #b3001f 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-dim); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-bullets li { position: relative; padding-left: 28px; color: var(--text); font-size: 0.96rem; }
.hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e4002b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Hero cards (coffre) */
.hero-visual { position: relative; }
.hero-cards { display: grid; gap: 14px; }
.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: grid;
  grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px;
}
.hero-card:nth-child(2) { margin-left: 36px; }
.hero-card:nth-child(3) { margin-left: 12px; }
.hero-card-icon {
  grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.hero-card-title { font-weight: 700; color: var(--ink); font-size: 0.96rem; }
.hero-card-sub { color: var(--text-mute); font-size: 0.84rem; }
.hero-card-ok .hero-card-icon { background: rgba(31, 157, 107, 0.12); color: var(--ok); }
.hero-card-pulse .hero-card-icon { background: rgba(228, 0, 43, 0.08); color: var(--swiss); }
.hero-card-pulse { position: relative; }
.hero-card-pulse::after {
  content: ""; position: absolute; right: 16px; top: 16px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 157, 107, 0.5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(31, 157, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); }
}

/* Signature suisse */
.swiss-cross { display: inline-grid; place-items: center; width: 16px; height: 16px; background: var(--swiss); border-radius: 3px; flex: none; }
.swiss-cross::before { content: ""; width: 9px; height: 9px; background:
  linear-gradient(#fff, #fff) center / 9px 3px no-repeat,
  linear-gradient(#fff, #fff) center / 3px 9px no-repeat; }
.title-rule { width: 64px; height: 4px; border-radius: 3px; background: var(--swiss); margin: 4px 0 22px; }

/* Coffre-fort (hero) */
.vault { position: relative; max-width: 480px; margin: 0 auto; }
.vault svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(11, 42, 74, 0.18)); }
.vault-chip {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 15px; box-shadow: var(--shadow); font-size: 0.86rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.vault-chip .vc-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.vault-chip small { display: block; font-weight: 500; color: var(--text-mute); font-size: 0.78rem; }
.vault-chip-ok { top: 24px; right: -10px; }
.vault-chip-ok .vc-ic { background: rgba(31, 157, 107, 0.12); color: var(--ok); }
.vault-chip-lock { bottom: 34px; left: -14px; }
.vault-chip-lock .vc-ic { background: rgba(228, 0, 43, 0.08); color: var(--swiss); }
@media (max-width: 680px) {
  .vault-chip-ok { right: 4px; } .vault-chip-lock { left: 4px; }
}

/* ---------------- Trust strip ---------------- */
.strip { background: var(--ink); color: #d2d4da; }
.strip-inner { display: flex; align-items: center; gap: 22px; padding: 16px 0; flex-wrap: wrap; }
.strip-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #848a93; font-weight: 700; }
.strip-items { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: #edeef1; font-weight: 500; font-size: 0.92rem; }
.strip-items span:nth-child(even) { color: #5d6772; }

/* ---------------- Sections ---------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); }
.section-header { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--swiss); margin-bottom: 12px;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--swiss); display: inline-block; }
.section-sub { font-size: 1.08rem; color: var(--text-dim); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow 160ms ease, transform 160ms ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; }
.card-icon-red { background: rgba(210, 59, 78, 0.1); color: var(--danger); }
.card-icon-orange { background: rgba(201, 130, 26, 0.12); color: var(--warn); }
.card-icon-blue { background: var(--accent-soft); color: var(--accent); }
.card-stat { margin: 14px 0 0; font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.card-takeaway { margin: 16px 0 0; font-weight: 600; color: var(--accent); font-size: 0.92rem; }
.card-promise { position: relative; padding-top: 30px; }
.promise-num {
  position: absolute; top: -16px; left: 26px; width: 40px; height: 40px; border-radius: 11px;
  background: var(--ink); color: #fff; font-family: var(--serif); font-weight: 600;
  display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow);
}

.warn-banner {
  margin-top: 30px; background: rgba(228, 0, 43, 0.05); border: 1px solid rgba(228, 0, 43, 0.22);
  border-left: 4px solid var(--swiss); border-radius: var(--radius); padding: 18px 22px; color: var(--text);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; font-family: var(--serif);
}

/* Compare */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.compare-col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.compare-before { border-top: 3px solid var(--danger); }
.compare-after { border-top: 3px solid var(--ok); }
.compare-head { margin-bottom: 14px; }
.compare-tag { display: inline-block; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--danger); }
.compare-tag-good { color: var(--ok); }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compare-col li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.95rem; }
.compare-before li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
.compare-after li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.compare-arrow { display: grid; place-items: center; color: var(--border-strong); }

/* Audience */
.audience { text-align: center; padding: 26px 18px; }
.audience-icon { font-size: 2.2rem; margin-bottom: 12px; }

/* Quote */
.section-quote blockquote { margin: 0; text-align: center; }
.section-quote p { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.5; color: var(--ink); font-weight: 500; }
.section-quote footer { color: var(--text-mute); font-size: 0.95rem; }

/* Pricing */
.pricing { align-items: stretch; }
.price { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.price h3 { font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.86rem; color: var(--text-mute); }
.price-amount { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); font-weight: 600; margin: 6px 0; }
.price-sub { font-family: var(--font); font-size: 0.95rem; color: var(--text-mute); font-weight: 500; }
.price-note { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 18px; }
.price-features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.price-features li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.94rem; }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e4002b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.pricing-note { text-align: center; margin-top: 26px; color: var(--text-dim); }

/* FAQ accordéon */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; margin: 0; }
.faq-cta { text-align: center; margin-top: 28px; }

/* CTA (bloc nuit, contraste premium) */
.cta { background: var(--ink); color: #edeef1; padding: 80px 0; }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: #c5c8ce; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 14px; }
.cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-fine { color: #848a93; font-size: 0.9rem; }

/* Footer */
.footer { background: #14181f; color: #b3b8c0; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer .brand { color: #fff; }
.footer-brand p { color: #8c919a; margin-top: 12px; font-size: 0.92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; margin-bottom: 12px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a { color: #b6bac1; font-size: 0.92rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; color: #7d828c; font-size: 0.86rem; flex-wrap: wrap; gap: 10px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 107, 0.18); }

/* ============================================================
 * Pages secondaires (technologie / documentation) — éléments pointus
 * ============================================================ */

/* Bandeau de page */
.page-banner { background: linear-gradient(180deg, var(--bg-2), #fff); border-bottom: 1px solid var(--border); padding: 64px 0 40px; }
.page-banner-inner { max-width: 820px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}

/* Stats */
.stats, .section-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--accent); }
.stat-label { color: var(--text-mute); font-size: 0.9rem; }

/* Terminal (blocs commande) */
.terminal { background: #0b1f38; border: 1px solid #173255; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 18px 0; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #0e2745; border-bottom: 1px solid #173255; }
.tdot { width: 11px; height: 11px; border-radius: 50%; background: #355; }
.tdot-r { background: #ff5f57; } .tdot-y { background: #febc2e; } .tdot-g { background: #28c840; }
.terminal pre, .terminal code { color: #d6e3f7; background: transparent; border: 0; }
.terminal pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; }

/* Callouts / diagramme d'archi */
.callout { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); margin: 14px 0; }
.callout-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.arch-diagram { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); overflow-x: auto; }
.arch-callouts { display: grid; gap: 14px; margin-top: 20px; }
/* couleurs sémantiques des légendes crypto */
.c-key { color: var(--swiss); font-weight: 700; }
.c-str { color: var(--accent); font-weight: 700; }
.c-com { color: var(--ok); font-weight: 700; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4, .steps, .stats, .section-stats { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .steps, .stats, .section-stats, .footer-cols { grid-template-columns: 1fr; }
  .hero-card:nth-child(2), .hero-card:nth-child(3) { margin-left: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
