/* ICECOLD — Base CSS partagé entre desktop et mobile.
   Thème BLANC premium type Apple / Dyson / Nothing.
   Design tokens, reset, typographie, composants atomiques. */

:root {
  /* Palette glaciale sur fond clair */
  --ice-50:  #f4fbff;
  --ice-100: #e8f6ff;
  --ice-200: #c5e9ff;
  --ice-300: #7dd9ff;
  --ice-400: #38c4ff;
  --ice-500: #0aa6f0;
  --ice-600: #0084cc;
  --ice-700: #005685;

  --glacier:      #38c4ff;
  --glacier-deep: #0084cc;
  --glacier-soft: #7dd9ff;
  --rose-gold:    #e9bda2;

  /* Fonds */
  --bg:          #ffffff;
  --bg-soft:     #fafcff;
  --bg-tint:     #f0f6ff;
  --bg-dark:     #03060d;       /* utilisé pour sections d'accent */
  --bg-dark-2:   #0a0f1c;

  /* Texte sur fond clair */
  --ink:        #03060d;        /* texte principal noir profond */
  --ink-soft:   #1a2236;
  --ink-muted:  #5a6578;
  --ink-faint:  #8a93a4;
  --ink-on-dark: #ffffff;

  /* Bordures */
  --border:        rgba(15, 30, 60, 0.08);
  --border-strong: rgba(15, 30, 60, 0.15);
  --border-ice:    rgba(56, 196, 255, 0.25);

  /* Typo */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Ease */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Ombres premium sur fond blanc — multi-couches */
  --shadow-sm:    0 2px 8px rgba(15, 30, 60, 0.04), 0 1px 2px rgba(15, 30, 60, 0.06);
  --shadow-md:    0 8px 24px rgba(15, 30, 60, 0.06), 0 2px 6px rgba(15, 30, 60, 0.04);
  --shadow-lg:    0 20px 50px rgba(15, 30, 60, 0.10), 0 8px 16px rgba(15, 30, 60, 0.04);
  --shadow-xl:    0 30px 80px rgba(15, 30, 60, 0.12), 0 12px 24px rgba(15, 30, 60, 0.06);

  /* Ombres avec teinte glaciale — pour le produit */
  --glow-ice:     0 30px 60px rgba(56, 196, 255, 0.18), 0 60px 120px rgba(125, 217, 255, 0.16);
  --glow-soft:    0 10px 30px rgba(56, 196, 255, 0.15);
  --glow-intense: 0 40px 80px rgba(56, 196, 255, 0.25), 0 0 200px rgba(125, 217, 255, 0.3);

  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(1400px 700px at 50% -200px, rgba(56, 196, 255, 0.10), transparent 60%),
    var(--bg);
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(56, 196, 255, 0.25);
  color: var(--ink);
}

/* Scrollbar premium claire */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 30, 60, 0.12), rgba(15, 30, 60, 0.18));
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--glacier), var(--glacier-deep));
}

/* ---------- Typographie ---------- */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glacier);
  box-shadow: 0 0 12px rgba(56, 196, 255, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

.text-gradient {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink) 30%, var(--glacier-deep) 70%, var(--glacier) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-soft {
  background: linear-gradient(180deg, var(--glacier-deep) 0%, var(--glacier) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-ice {
  color: var(--glacier-deep);
}

/* ---------- Composants atomiques ---------- */

/* Cartes "premium glass" sur fond blanc */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.card-ice {
  background: linear-gradient(135deg, var(--bg-tint) 0%, #ffffff 100%);
  border: 1px solid var(--border-ice);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.glass-ice {
  background: linear-gradient(135deg, rgba(56, 196, 255, 0.06) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-ice);
  box-shadow: 0 8px 32px rgba(56, 196, 255, 0.08);
}

/* CTA principal — fond noir sur thème blanc (style Apple/Tesla) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(3, 6, 13, 0.5), 0 2px 4px rgba(3, 6, 13, 0.1);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glacier-deep), var(--glacier));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(56, 196, 255, 0.5), 0 2px 4px rgba(56, 196, 255, 0.2);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-ice {
  background: linear-gradient(135deg, var(--glacier) 0%, var(--glacier-deep) 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px -8px rgba(56, 196, 255, 0.45);
}
.btn-ice::after { display: none; }
.btn-ice:hover {
  box-shadow: 0 20px 45px -8px rgba(56, 196, 255, 0.6);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--bg-tint);
  border-color: var(--glacier);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tap { transition: transform 120ms var(--ease-spring); }
.tap:active { transform: scale(0.96); }

/* ---------- Animations partagées ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes mist-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  20%  { opacity: 0.85; }
  100% { transform: translateY(-220px) scale(2); opacity: 0; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rise-blur {
  from { opacity: 0; transform: translateY(60px); filter: blur(20px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes air-flow {
  0%   { transform: translateX(-100%) scaleY(1); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: translateX(100%) scaleY(0.8); opacity: 0; }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   FALLBACK CSS DU PRODUIT — adapté thème clair
   ============================================================ */
.product-fallback {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.2;
  max-width: 360px;
  margin: 0 auto;
}

.product-fallback__body {
  position: absolute;
  inset: 30% 20% 0 20%;
  background: linear-gradient(180deg, #ffffff 0%, #e8f1fa 60%, #c9d8e8 100%);
  border-radius: 18% 18% 8% 8%;
  box-shadow:
    inset 0 -25px 50px rgba(15, 30, 60, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 30px 60px -20px rgba(56, 196, 255, 0.3),
    0 10px 30px rgba(15, 30, 60, 0.08);
}

.product-fallback__body::before {
  content: '';
  position: absolute;
  inset: 25% 0 5% 0;
  background:
    radial-gradient(circle, rgba(0,0,0,0.3) 1.5px, transparent 2px) 0 0 / 8px 8px;
  opacity: 0.4;
  border-radius: inherit;
  mask: linear-gradient(90deg, black 0 18%, transparent 22% 78%, black 82% 100%);
}

.product-fallback__ring {
  position: absolute;
  left: 50%;
  top: 0;
  width: 60%;
  height: 70%;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 55%, rgba(233, 189, 162, 0.6) 56%, rgba(233, 189, 162, 0.85) 70%, transparent 71%),
    linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
  box-shadow:
    inset 0 0 0 2px rgba(233, 189, 162, 0.6),
    inset 0 0 0 6px rgba(255,255,255,0.7),
    0 25px 50px -10px rgba(56, 196, 255, 0.25),
    0 0 80px rgba(125, 217, 255, 0.3);
}

.product-fallback__ring::before {
  content: '';
  position: absolute;
  inset: 8% 8% 35% 8%;
  background: radial-gradient(ellipse at center, rgba(56,196,255,0.2) 0%, transparent 70%);
  border-radius: inherit;
}

.product-fallback__panel {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 16%;
  height: 22%;
  background: linear-gradient(180deg, #0a0e1a, #1a1f33);
  border-radius: 30px;
  border: 1px solid rgba(233, 189, 162, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 8% 0;
}

.product-fallback__panel span {
  width: 50%;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,196,255,0.9), rgba(56,196,255,0.1));
  box-shadow: 0 0 12px rgba(56, 196, 255, 0.5);
}

.product-fallback__mist {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  width: 35%;
  height: 25%;
  filter: blur(14px);
  opacity: 0.85;
  background: radial-gradient(ellipse at center bottom, rgba(255,255,255,0.95), rgba(125, 217, 255, 0.4) 50%, transparent 75%);
  border-radius: 50%;
  animation: mist-rise 3s ease-in-out infinite;
}
