/* ===== MIND MEDICAL – Redirect Page Styles ===== */

:root {
  --primary:       #1B5EB4;
  --primary-dark:  #123F80;
  --primary-light: #2B7FE8;
  --accent:        #00C2CB;
  --white:         #FFFFFF;
  --off-white:     #F4F7FC;
  --gray-light:    #E8EDF5;
  --gray:          #7A8BA6;
  --text:          #1A2B45;
  --text-light:    #4A5E7A;
  --shadow:        0 8px 32px rgba(27, 94, 180, 0.15);
  --radius:        16px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── HEADER ── */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(27, 94, 180, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Version footer : légèrement agrandie et sur fond sombre — on garde les couleurs d'origine */
.logo-img--footer {
  height: 40px;
  filter: brightness(0) invert(1);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--off-white);
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.header-contact:hover {
  background: var(--primary);
  color: var(--white);
}

.header-contact svg { width: 16px; height: 16px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 70px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(0, 194, 203, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  position: relative;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 680px;
  margin: 0 auto 16px;
  position: relative;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
}

/* ── REDIRECT CARD ── */
.redirect-section {
  max-width: 680px;
  margin: -48px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 10;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(27, 94, 180, 0.30);
}

.card-icon svg { width: 34px; height: 34px; fill: white; }

.card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Countdown */
.countdown-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
}

.countdown-ring svg {
  transform: rotate(-90deg);
  width: 100px;
  height: 100px;
}

.countdown-ring .track {
  fill: none;
  stroke: var(--gray-light);
  stroke-width: 6;
}

.countdown-ring .progress {
  fill: none;
  stroke: url(#countGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.countdown-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(27, 94, 180, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(27, 94, 180, 0.45);
}

.btn-secondary {
  background: var(--off-white);
  color: var(--primary);
  border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

.btn svg { width: 18px; height: 18px; }

/* ── STATS ── */
.stats-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(27, 94, 180, 0.07);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(27,94,180,0.08) 0%, rgba(0,194,203,0.08) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.stat-icon svg { width: 24px; height: 24px; fill: var(--primary); }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

/* ── FEATURES ── */
.features-section {
  background: var(--white);
  padding: 60px 24px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: var(--off-white);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--gray-light);
  transform: translateX(4px);
}

.feature-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item-icon svg { width: 20px; height: 20px; fill: white; }

.feature-item-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-item-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .logo-text strong { color: white; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.45); }
.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; }

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover { background: var(--primary); }
.social-link svg { width: 16px; height: 16px; fill: white; }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-contact span { display: none; }
  .card { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 20px 70px; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ── LOADER BAR ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  width: 0%;
  transition: width 1s linear;
  z-index: 9999;
}
