/* SavDisk — site savdisk.com. Couleurs et tailles du design de reference. */

:root {
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  --body: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --grad: linear-gradient(118deg, #b054e8 0%, #2bc9a4 100%);
  --wrap: 1080px;
}

/* Mode sombre (defaut) */
html[data-theme="dark"] {
  --bg: #0e141d;
  --bg-alt: #141c27;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #cbd5e1;
  --text-2: #9aa6b4;
  --text-3: #6b7888;
  --bar: rgba(14,20,29,0.82);
  --check: #43d62c;        /* vert vif lisible sur fond sombre */
  --focus: #45c8f5;        /* anneau de focus clavier */
}

/* Mode clair (lumineux) */
html[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --border: rgba(20,28,45,0.09);
  --text: #1b2330;
  --text-2: #54606e;
  --text-3: #626d7d;       /* assombri: passe AA sur fond clair */
  --bar: rgba(245,247,250,0.86);
  --check: #15800b;        /* vert plus fonce: AA texte sur fond clair (4.7:1) */
  --focus: #1a73c7;        /* anneau de focus clavier */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

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

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand-name { font-family: var(--mono); font-weight: 600; font-size: 20px; letter-spacing: .5px; }
.brand-name.small { font-size: 16px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

.switches { display: flex; gap: 10px; margin-left: 20px; }
.switch { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.switch button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .5px;
  border: 0; background: transparent; color: var(--text-3);
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
}
.switch button.on { background: var(--grad); color: #10202a; font-weight: 600; }

/* Bouton hamburger (menu mobile). Cache sur desktop. */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; padding: 0;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* Focus clavier visible sur tous les elements interactifs. */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Sections */
.band { padding: 88px 0; }
.band.alt { background: var(--bg-alt); }
h2 { font-family: var(--mono); font-weight: 600; font-size: 34px; letter-spacing: -.5px; }
.sub { color: var(--text-2); font-size: 20px; margin-top: 14px; max-width: 720px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Accueil */
.hero { padding: 96px 0 100px; position: relative; overflow: hidden; }
.hero-wrap { text-align: center; position: relative; }
.hero-glow {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px; max-width: 90vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,84,232,0.18), rgba(43,201,164,0.10) 45%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-icon { position: relative; z-index: 1; width: 128px; height: 128px; border-radius: 26px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.hero h1 { position: relative; z-index: 1; font-family: var(--mono); font-weight: 600; font-size: 54px; line-height: 1.1; margin-top: 28px; letter-spacing: -1px; }
.hero .lead { position: relative; z-index: 1; color: var(--text-2); font-size: 21px; margin: 20px auto 0; max-width: 640px; }

.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.center-row { justify-content: center; }
.hero .cta-row { justify-content: center; }

.btn { font-family: var(--mono); font-size: 16px; font-weight: 600; padding: 14px 24px; border-radius: 14px; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--grad); color: #10202a; }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: var(--card); }
.btn:hover { filter: brightness(1.05); }

/* Cartes */
.cards { display: grid; gap: 18px; margin-top: 40px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.card h3 { font-family: var(--mono); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 16px; }
.card.accent-mac { border-top: 3px solid #b054e8; }
.card.accent-ios { border-top: 3px solid #2bc9a4; }

/* Prix */
.card.price { text-align: center; }
.price-label { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); }
.price-num { font-family: var(--mono); font-weight: 600; font-size: 44px; margin: 10px 0; }
.no-sub { text-align: center; margin-top: 30px; font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--check); }

/* Vie privee */
.privacy { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.privacy li { font-family: var(--mono); font-size: 17px; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.privacy li::before { content: "✓"; color: var(--check); margin-right: 10px; font-weight: 700; }
.privacy-close { color: var(--text-2); font-size: 18px; margin-top: 26px; font-style: italic; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; }
.faq-item h3 { font-family: var(--mono); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.faq-item p { color: var(--text-2); font-size: 16px; }

/* Pied */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-tag { color: var(--text-2); font-size: 15px; }
.footer-dom { color: var(--text-3); font-family: var(--mono); font-size: 13px; margin-left: auto; }

/* Responsive */
@media (max-width: 860px) {
  /* Ordre visuel: marque, puis switches pousses a droite, puis hamburger. */
  .switches { margin-left: auto; }
  .nav-toggle { display: flex; margin-left: 10px; order: 3; }
  /* La nav devient un panneau deroulant sous la barre, ouvert par le hamburger. */
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    margin-left: 0;
    background: var(--bar);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .topbar { position: relative; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 27px; }
}
@media (max-width: 520px) {
  .cards-4, .cards-2, .privacy { grid-template-columns: 1fr; }
  .hero h1 { font-size: 33px; }
  .hero .lead { font-size: 18px; }
}

/* Respecte le reglage systeme de reduction des animations. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
