/* ============================================
   RVF — Page d'attente
   Charte : #3588F0 (bleu UI) / #FEB100 (orange) / Poppins
   ============================================ */

:root {
  --blue-500: #3588F0;
  --blue-600: #2670d4;
  --blue-50: #F2F8FF;
  --orange-500: #FEB100;
  --orange-100: #FFF1CC;
  --text: #1A1A1A;
  --text-muted: #5A6470;
  --border: #E5EAF1;
  --white: #FFFFFF;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-card: 0 8px 24px rgba(53, 136, 240, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(53, 136, 240, 0.16);

  --container: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
}

/* ====== Reset minimal ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }

/* ====== Layout helpers ====== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 72px;
}
.site-header .logo {
  height: 40px;
  width: auto;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 10vw, 112px);
}
.hero__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--blue-50);
  color: var(--blue-500);
  font-weight: 500;
  font-size: 13px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--blue-500);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  border-radius: 4px;
  background: var(--orange-500);
  opacity: 0.5;
}
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ====== Countdown — style IG-like (gradient pill + glass tiles) ====== */
.countdown {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 1.2vw, 10px);
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 20px);
  background: linear-gradient(135deg, #3588F0 0%, #2670D4 60%, #1F60BC 100%);
  border-radius: clamp(22px, 3vw, 32px);
  box-shadow:
    0 24px 60px rgba(53, 136, 240, 0.32),
    0 8px 20px rgba(53, 136, 240, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.20), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(254, 177, 0, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.countdown__cell {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(16px, 3.2vw, 28px) 4px clamp(12px, 2vw, 16px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.countdown__num {
  display: block;
  color: #FFFFFF;
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: transform 320ms cubic-bezier(.2,.9,.3,1.4);
  transform-origin: center;
}
.countdown__num.tick {
  transform: scale(1.08);
}
.countdown__label {
  display: block;
  margin-top: clamp(8px, 1.2vw, 12px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(9px, 1.05vw, 11.5px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: clamp(0.04em, 0.6vw, 0.18em);
}

/* ====== Section commune ====== */
section { padding: clamp(56px, 9vw, 96px) 0; }
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* ====== Cards features ====== */
.features { background: var(--blue-50); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: var(--blue-50);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--blue-500);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ====== Contact direct ====== */
.contact-block {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 5vw, 48px);
  box-shadow: var(--shadow-card);
}
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.contact-list li > div {
  min-width: 0;
  flex: 1;
}
.contact-list .icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--blue-500);
  display: grid; place-items: center;
}
.contact-list a {
  color: var(--blue-500);
  font-weight: 500;
  transition: color 150ms ease;
  overflow-wrap: break-word;
}
.contact-list a:hover { color: var(--blue-600); }
.contact-list .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* ====== Tally form ====== */
.tally-section {
  background: var(--blue-50);
}
.tally-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tally-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ====== Footer ====== */
.site-footer {
  background: var(--blue-500);
  color: var(--white);
  padding: 56px 0 40px;
}
.site-footer .container {
  text-align: center;
}
.site-footer .logo {
  height: 44px;
  width: auto;
  margin: 0 auto 20px;
}
.site-footer p { margin-bottom: 8px; }
.site-footer .baseline { font-weight: 500; }
.site-footer .legal {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 24px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
  transition: background 200ms ease, transform 200ms ease;
}
.social-links a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ====== Animations fade-in ====== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(.2,.7,.2,1) forwards;
}
.fade-in.delay-1 { animation-delay: 100ms; }
.fade-in.delay-2 { animation-delay: 200ms; }
.fade-in.delay-3 { animation-delay: 300ms; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Mobile-first breakpoints ======
   Base styles = mobile (≥320px). Les media queries ajoutent
   pour tablette (≥768px) et desktop (≥1024px). */

@media (min-width: 768px) {
  .features__grid { gap: 28px; }
  .feature-card { padding: 36px 30px; }
  .contact-list li { gap: 18px; font-size: 16.5px; }
}

@media (min-width: 1024px) {
  .features__grid { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}
