/* ═══════════════════════════════════════════════════════════
   KAHWA CONNECT — home.css
   Styles spécifiques à la page d'accueil (index.html)
═══════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 55%, var(--blue-100) 100%);
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  padding: 60px 24px 72px;
  position: relative;
  overflow: hidden;
}

/* Cercles décoratifs */
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -180px;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(168,212,255,0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -80px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255,107,157,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ─── HERO LEFT ─────────────────────────────────────────── */
.hero-left {
  animation: fadeUp 0.7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  border: 1px solid var(--blue-200);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge::before { content: '✦'; color: var(--pink-500); margin-right: 2px; }

.hero-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-slogan-ar {
  font-family: var(--font-arab);
  font-size: 19px;
  color: var(--pink-700);
  direction: rtl;
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-slogan-fr {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--grey-400);
  font-style: italic;
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 17px;
  color: var(--grey-600);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

/* Trust mini stats sous la desc */
.hero-mini-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 0 24px 0 0;
  margin-right: 24px;
  border-right: 1px solid var(--grey-200);
}
.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
}
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-700);
  display: block;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 11.5px;
  color: var(--grey-400);
  line-height: 1.4;
  max-width: 90px;
}

/* ─── REG CARD ──────────────────────────────────────────── */
.reg-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10,56,168,0.16), 0 4px 20px rgba(10,56,168,0.08);
  padding: 36px 32px;
  border: 1px solid var(--grey-100);
  animation: fadeUp 0.7s ease 0.15s both;
  position: relative;
  overflow: hidden;
}
/* Accent top */
.reg-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--pink-500));
}

.reg-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-900);
  text-align: center;
  margin-bottom: 4px;
}
.reg-card-sub {
  font-size: 13px;
  color: var(--grey-400);
  text-align: center;
  margin-bottom: 24px;
}

/* Gender toggle */
.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.gender-btn {
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--grey-200);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
}
.gender-btn .g-icon { font-size: 22px; }
.gender-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
  background: var(--blue-50);
}
.gender-btn.active {
  border-color: var(--blue-700);
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  color: var(--blue-800);
  box-shadow: 0 2px 10px rgba(21,80,200,0.14);
}

.age-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* CTA Register */
.btn-register {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(21,80,200,0.32);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.btn-register::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-register:hover::after { opacity: 1; }
.btn-register span { position: relative; z-index: 1; }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21,80,200,0.4); }

.reg-free-note {
  text-align: center;
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 12px;
}
.reg-free-note strong { color: var(--blue-700); }

.btn-login-card {
  width: 100%;
  padding: 11px;
  border: 2px solid var(--grey-200);
  background: white;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-600);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-login-card:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
}

/* ─── TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  padding: 32px 24px;
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-stat {
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid rgba(168,212,255,0.12);
}
.trust-stat:last-child { border-right: none; }
.trust-stat .t-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--blue-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}
.trust-stat .t-label {
  font-size: 13px;
  color: var(--blue-200);
  display: block;
}
.trust-stat .t-sub {
  font-size: 11px;
  color: rgba(168,212,255,0.5);
  margin-top: 2px;
  display: block;
}

/* ─── PROFILE CARDS ─────────────────────────────────────── */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-100);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.profile-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.profile-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  position: relative;
  overflow: hidden;
}
.profile-thumb-bg {
  position: absolute; inset: 0;
}
.profile-thumb-emoji {
  position: relative;
  z-index: 1;
}

/* Badges sur la photo */
.profile-badges {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.profile-online-dot {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
}

/* Like btn apparaît au hover */
.profile-like {
  position: absolute;
  bottom: 68px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--grey-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  transform: scale(0.8);
  z-index: 2;
}
.profile-card:hover .profile-like {
  opacity: 1;
  transform: scale(1);
}
.profile-like:hover {
  background: var(--pink-100);
  border-color: var(--pink-300);
  transform: scale(1.12);
}

.profile-info {
  padding: 14px 16px;
}
.profile-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--blue-900);
  margin-bottom: 3px;
}
.profile-meta {
  font-size: 12.5px;
  color: var(--grey-400);
  margin-bottom: 9px;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.profile-tag {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 500;
  border: 1px solid var(--blue-100);
}
.profile-tag.pink {
  background: var(--pink-100);
  color: var(--pink-700);
  border-color: var(--pink-100);
}

/* ─── FEATURES GRID ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--pink-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature-icon.blue { background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); }
.feature-icon.pink { background: linear-gradient(135deg, var(--pink-100), #fff0f4); }
.feature-icon.gold { background: linear-gradient(135deg, #FFF3D4, #FFF8E8); }

.feature-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--grey-600);
  line-height: 1.7;
}

/* ─── STEPS ─────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 31px; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--pink-200));
  pointer-events: none;
}

.step { text-align: center; }
.step-num {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-200);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-700);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(21,80,200,0.14);
  transition: all 0.3s;
}
.step:hover .step-num {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: white;
  border-color: var(--blue-700);
  transform: scale(1.08);
}
.step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--grey-400);
  line-height: 1.65;
}

/* ─── TESTIMONIALS ──────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
}
.testi-card::before {
  content: '❝';
  position: absolute; top: 16px; right: 20px;
  font-size: 42px;
  color: var(--blue-100);
  font-family: serif;
  line-height: 1;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testi-stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 3px;
}
.testi-text {
  font-size: 14.5px;
  color: var(--grey-600);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 14px; color: var(--blue-900); }
.testi-loc  { font-size: 12px; color: var(--grey-400); }

/* ─── KAHWA TALKS ────────────────────────────────────────── */
.talks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.talk-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  background: white;
  transition: all 0.3s;
}
.talk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.talk-thumb {
  height: 155px;
  display: flex; align-items: center; justify-content: center;
  font-size: 50px;
}
.talk-body { padding: 20px; }
.talk-date {
  font-size: 11px; font-weight: 700;
  color: var(--pink-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.talk-title {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.talk-info {
  font-size: 13px;
  color: var(--grey-400);
  margin-bottom: 14px;
}
.btn-talk {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  border: 2px solid var(--blue-200);
  color: var(--blue-700);
  background: var(--blue-50);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.btn-talk:hover {
  background: var(--blue-700);
  color: white;
  border-color: var(--blue-700);
}

/* ─── CTA FINAL ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-900) 100%);
  padding: 88px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -40%; left: -10%;
  width: 55%; height: 180%;
  background: radial-gradient(ellipse, rgba(168,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -30%; right: -5%;
  width: 40%; height: 120%;
  background: radial-gradient(ellipse, rgba(232,37,90,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }

.cta-slogan-ar {
  font-family: var(--font-arab);
  font-size: 22px;
  color: var(--pink-300);
  direction: rtl;
  margin-bottom: 16px;
  font-weight: 600;
  display: block;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.25;
}
.cta-sub {
  font-size: 17px;
  color: var(--blue-200);
  margin-bottom: 44px;
  opacity: 0.88;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--grey-800);
  color: var(--grey-400);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: white; margin-bottom: 4px;
}
.footer-brand-slogan {
  font-family: var(--font-arab);
  font-size: 13px;
  color: var(--pink-300);
  direction: rtl;
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  transition: all var(--transition);
  color: var(--grey-400);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--blue-700);
  color: white;
  border-color: var(--blue-700);
}

.footer-col h5 {
  font-size: 12px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex; flex-direction: column; gap: 9px;
}
.footer-col ul li a {
  font-size: 13.5px;
  color: var(--grey-400);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--blue-200); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--grey-400); text-decoration: none; }
.footer-legal a:hover { color: var(--blue-200); }

/* ─── RESPONSIVE HOME ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .reg-card { max-width: 500px; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .talks-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 56px; }
}
