/* ═══════════════════════════════════════════════════════════
   KAHWA CONNECT — main.css
   Variables globales, reset, typographie, utilitaires
   www.kahwaconnect.fr
═══════════════════════════════════════════════════════════ */

/* ─── GOOGLE FONTS ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Noto+Naskh+Arabic:wght@400;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Blues */
  --blue-900: #061A6E;
  --blue-800: #0A38A8;
  --blue-700: #1550C8;
  --blue-600: #2060D8;
  --blue-400: #4A90F0;
  --blue-200: #A8D4FF;
  --blue-100: #D6EAFF;
  --blue-50:  #F0F6FF;

  /* Pinks */
  --pink-900: #7A0828;
  --pink-700: #AA1040;
  --pink-500: #E8255A;
  --pink-300: #FF6B9D;
  --pink-100: #FFE0EC;

  /* Neutrals */
  --gold:     #C9943A;
  --white:    #FFFFFF;
  --grey-50:  #F8FAFD;
  --grey-100: #EEF2F8;
  --grey-200: #D8E0EE;
  --grey-400: #8A9BBC;
  --grey-600: #4A5A7A;
  --grey-800: #1A2340;
  --text:     #0D1B3E;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(21,80,200,0.08);
  --shadow-md: 0 6px 24px rgba(21,80,200,0.12);
  --shadow-lg: 0 16px 48px rgba(21,80,200,0.16);
  --shadow-xl: 0 24px 64px rgba(21,80,200,0.20);

  /* Radii */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-arab:  'Noto Naskh Arabic', serif;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
button { font-family: var(--font-sans); cursor: pointer; }
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--blue-900);
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue-700), var(--pink-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-ar {
  font-family: var(--font-arab);
  direction: rtl;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(21,80,200,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21,80,200,0.4);
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232,37,90,0.3);
}
.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232,37,90,0.4);
}

.btn-outline {
  background: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--blue-700);
}
.btn-outline:hover {
  background: var(--blue-50);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: white;
}

.btn-lg  { padding: 15px 40px; font-size: 16px; border-radius: var(--radius); }
.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ─── FORM ELEMENTS ─────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--grey-600);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-200);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--grey-50);
  transition: all var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--blue-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74,144,240,0.12);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  pointer-events: none;
  font-size: 12px;
}

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ─── SECTIONS ──────────────────────────────────────────── */
.section {
  padding: 72px 24px;
}
.section-alt {
  background: var(--grey-50);
}
.section-dark {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pink-500);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--grey-400);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── BADGE VÉRIFIÉ ─────────────────────────────────────── */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-700);
  color: white;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-verified::before { content: '✓ '; }

.badge-founder {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--gold), #E8B84B);
  color: white;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
}
.badge-founder::before { content: '👑 '; }

/* ─── ONLINE DOT ────────────────────────────────────────── */
.dot-online {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
  display: inline-block;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,56,168,0.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 440px;
  max-width: 94vw;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-slow);
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--grey-100);
  border: none;
  font-size: 16px;
  color: var(--grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--grey-200); }

/* ─── RESPONSIVE UTILITIES ──────────────────────────────── */
.hide-mobile { }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section { padding: 48px 16px; }
}

/* ─── DIVIDER ───────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}
.divider span {
  font-size: 12px;
  color: var(--grey-400);
  white-space: nowrap;
}
