/* ═══════════════════════════════════════════════════
   Solivram — Niveau 1 · EN LIGNE
   Thème : vert · light/dark auto (prefers-color-scheme)
   ═══════════════════════════════════════════════════ */

/* ── Thème clair (défaut) ──────────────────────────── */
:root {
  color-scheme: light dark;

  /* Palette verte */
  --accent:        #27ae60;
  --accent-light:  #2ecc71;
  --accent-muted:  #a8f5c8;
  --accent-dim:    rgba(39, 174, 96, 0.15);

  /* Surfaces */
  --body-bg-from:  #f0faf4;
  --body-bg-to:    #d6f0e0;
  --orb-1:         rgba(39, 174, 96, 0.12);
  --orb-2:         rgba(46, 204, 113, 0.08);
  --card-bg:       rgba(255, 255, 255, 0.82);
  --card-border:   rgba(39, 174, 96, 0.18);
  --card-shadow:   rgba(39, 174, 96, 0.12);
  --card-top:      rgba(255, 255, 255, 0.90);
  --feature-bg:    rgba(39, 174, 96, 0.06);
  --feature-hover: rgba(39, 174, 96, 0.13);
  --feature-bdr:   rgba(39, 174, 96, 0.15);
  --feature-hbdr:  rgba(39, 174, 96, 0.35);
  --status-bg:     rgba(39, 174, 96, 0.07);
  --status-bdr:    rgba(39, 174, 96, 0.15);
  --track-bg:      rgba(39, 174, 96, 0.12);

  /* Texte */
  --text:          #1a2e22;
  --text-muted:    #5a7a65;
  --text-desc:     #2d5038;
  --desc-border:   rgba(39, 174, 96, 0.4);
  --badge-text:    #1a6b38;
  --badge-bg:      rgba(39, 174, 96, 0.12);
  --badge-border:  rgba(39, 174, 96, 0.35);
  --dot-color:     #27ae60;
  --label-line:    rgba(39, 174, 96, 0.18);
  --shimmer-mid:   #27ae60;

  /* Misc */
  --radius-card: 20px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Thème sombre ──────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --accent:        #2ecc71;
    --accent-light:  #58d68d;
    --accent-muted:  #a8f5c8;
    --accent-dim:    rgba(46, 204, 113, 0.15);

    --body-bg-from:  #0d3b22;
    --body-bg-to:    #1a5c36;
    --orb-1:         rgba(46, 204, 113, 0.18);
    --orb-2:         rgba(39, 174, 96, 0.12);
    --card-bg:       rgba(255, 255, 255, 0.07);
    --card-border:   rgba(255, 255, 255, 0.14);
    --card-shadow:   rgba(0, 0, 0, 0.40);
    --card-top:      rgba(255, 255, 255, 0.06);
    --feature-bg:    rgba(0, 0, 0, 0.22);
    --feature-hover: rgba(0, 0, 0, 0.32);
    --feature-bdr:   rgba(255, 255, 255, 0.09);
    --feature-hbdr:  rgba(168, 245, 200, 0.22);
    --status-bg:     rgba(0, 0, 0, 0.20);
    --status-bdr:    rgba(255, 255, 255, 0.07);
    --track-bg:      rgba(255, 255, 255, 0.08);

    --text:          #ffffff;
    --text-muted:    rgba(255, 255, 255, 0.60);
    --text-desc:     rgba(255, 255, 255, 0.88);
    --desc-border:   rgba(168, 245, 200, 0.45);
    --badge-text:    #a8f5c8;
    --badge-bg:      rgba(168, 245, 200, 0.13);
    --badge-border:  rgba(168, 245, 200, 0.35);
    --dot-color:     #a8f5c8;
    --label-line:    rgba(255, 255, 255, 0.10);
    --shimmer-mid:   #a8f5c8;
  }
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body ──────────────────────────────────────────── */
body {
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(150deg, var(--body-bg-from) 0%, var(--body-bg-to) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  animation: page-in 0.7s ease both;
  transition: background 0.4s ease;
}
body::before {
  content: '';
  position: fixed;
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  top: -10%; right: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  width: clamp(150px, 30vw, 380px);
  height: clamp(150px, 30vw, 380px);
  bottom: -8%; left: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: orb-drift 16s ease-in-out infinite alternate-reverse;
}

/* ── Animations ────────────────────────────────────── */
@keyframes page-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3%, 5%) scale(1.08); }
}
@keyframes shimmer-text {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Carte ─────────────────────────────────────────── */
.card {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  box-shadow: 0 2px 0 var(--card-top) inset, 0 20px 60px var(--card-shadow);
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--card-top) 0%, transparent 40%);
  pointer-events: none;
}

/* ── En-tête ───────────────────────────────────────── */
.brand {
  display: flex; align-items: center; gap: 0.85rem;
}
.brand-logo {
  width: 48px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  transition: transform var(--transition);
}
.brand-logo:hover { transform: scale(1.08) rotate(-3deg); }

.header {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2rem;
  animation: slide-up 0.5s 0.1s ease both;
}
.logo {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--text) 0%, var(--shimmer-mid) 40%, var(--text) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 5s linear infinite;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-pill);
  padding: 0.38rem 1rem;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--badge-text);
  animation: pulse-ring 2.8s ease-out infinite;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot-color);
  animation: dot-blink 1.6s ease-in-out infinite;
}

/* ── Description ───────────────────────────────────── */
.desc {
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  line-height: 1.75; color: var(--text-desc);
  border-left: 3px solid var(--desc-border);
  padding-left: 1.1rem; margin-bottom: 2rem;
  animation: slide-up 0.5s 0.2s ease both;
}

/* ── Section label ─────────────────────────────────── */
.section-label {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--label-line);
}

/* ── Grille features ───────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 28%, 175px), 1fr));
  gap: 0.75rem; margin-bottom: 2rem;
  animation: slide-up 0.5s 0.25s ease both;
}
.feature {
  background: var(--feature-bg);
  border: 1px solid var(--feature-bdr);
  border-radius: var(--radius-sm);
  padding: 1rem 0.9rem;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  cursor: default;
}
.feature:hover {
  transform: translateY(-3px) scale(1.01);
  background: var(--feature-hover);
  border-color: var(--feature-hbdr);
}
.feature-icon { font-size: 1.45rem; margin-bottom: 0.5rem; display: block; }
.feature-name { font-size: 0.83rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text); }
.feature-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.45; }

/* ── Barre statut ──────────────────────────────────── */
.status-bar {
  display: flex; align-items: center;
  justify-content: space-evenly; flex-wrap: wrap; gap: 0.6rem;
  background: var(--status-bg);
  border: 1px solid var(--status-bdr);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  animation: slide-up 0.5s 0.35s ease both;
}
.status-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--text-muted);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); flex-shrink: 0;
}

/* ── Uptime bar ────────────────────────────────────── */
.uptime-bar { margin-top: 1.25rem; animation: slide-up 0.5s 0.4s ease both; }
.uptime-label {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.4rem;
}
.uptime-track {
  height: 4px; background: var(--track-bg);
  border-radius: var(--radius-pill); overflow: hidden;
}
.uptime-fill {
  height: 100%; width: 99.8%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent-muted));
  border-radius: var(--radius-pill); transform-origin: left;
  animation: bar-grow 1.2s 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Header right + switcher langue ───────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-switch {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--feature-bdr);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Section label large ───────────────────────────── */
.section-label-lg {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: var(--text);
}

/* ── Bloc comparaison 5 → 1 ───────────────────────── */
.compare-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  animation: slide-up 0.5s 0.4s ease both;
}
.stack-before {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.stack-before li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  background: var(--feature-bg);
  border: 1px solid var(--feature-bdr);
  border-radius: 7px;
}
.stack-cross {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}
.compare-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  text-align: center;
  padding: 0 0.3rem;
}
.solivram-block {
  background: var(--feature-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 0 18px var(--accent-dim);
}
.solivram-block-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.solivram-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.solivram-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-desc);
}
.sol-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.solivram-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
}

/* ── Section future ────────────────────────────────── */
.future-section {
  margin-top: 1.5rem;
  background: var(--feature-bg);
  border: 1px solid var(--feature-bdr);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.1rem;
  animation: slide-up 0.5s 0.45s ease both;
}
.future-header {
  display: flex; align-items: flex-start; gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.future-icon {
  font-size: 1.6rem; flex-shrink: 0; margin-top: 0.05rem;
}
.future-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.2rem;
}
.future-subtitle {
  font-size: 0.72rem; color: var(--text-muted);
  font-style: italic; letter-spacing: 0.02em;
}
.future-desc {
  font-size: 0.85rem; line-height: 1.65;
  color: var(--text-desc); margin-bottom: 1rem;
  border-left: 2px solid var(--desc-border);
  padding-left: 0.85rem;
}
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 28%, 180px), 1fr));
  gap: 0.6rem;
}
.future-item {
  background: var(--feature-bg);
  border: 1px solid var(--feature-bdr);
  border-radius: 8px; padding: 0.75rem 0.7rem;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  cursor: default;
}
.future-item:hover {
  transform: translateY(-2px);
  background: var(--feature-hover);
  border-color: var(--feature-hbdr);
}
.future-item-icon { font-size: 1.2rem; margin-bottom: 0.35rem; display: block; }
.future-item-name { font-size: 0.78rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--text); }
.future-item-desc { font-size: 0.68rem; color: var(--text-muted); line-height: 1.4; }

/* ── Pied de page ──────────────────────────────────── */
.footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--label-line);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  animation: slide-up 0.5s 0.5s ease both;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 520px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
  .status-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .compare-block { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); font-size: 1rem; justify-content: center; }
  .header-right { gap: 0.5rem; }
}
@media (max-width: 360px) {
  .features { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .compare-block { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
}
