/* ==========================================================================
   COLIGOOO — Landing page statique
   Design aligné sur l'application React (Tailwind) : rouge #dc2626 / vert #16a34a
   Compatible LTR (fr, en) et RTL (ar) via les propriétés logiques CSS.
   ========================================================================== */

:root {
  --primary-50:  #fef2f2;
  --primary-100: #fee2e2;
  --primary-200: #fecaca;
  --primary-500: #dc2626;
  --primary-600: #b91c1c;
  --primary-700: #991b1b;

  --accent-50:  #f0fdf4;
  --accent-100: #dcfce7;
  --accent-200: #bbf7d0;
  --accent-500: #16a34a;
  --accent-600: #15803d;

  --amber-100: #fef3c7;
  --amber-600: #d97706;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;

  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

  --max-width: 1152px;
}

/* ─── Reset ─────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }

/* Retourne les icônes directionnelles en RTL */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ─── Utilitaires ───────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
.section-sm { padding-block: 3.5rem; }

.text-center { text-align: center; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.0625rem;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3rem;
  text-wrap: balance;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-primary { background: var(--primary-100); color: var(--primary-600); }
.badge-accent  { background: var(--accent-100);  color: var(--accent-600); }

/* ─── Boutons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--primary-500); outline-offset: 2px; }

.btn-md { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.0625rem; }

.btn-primary { background: var(--primary-500); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-accent { background: var(--accent-500); color: var(--white); box-shadow: var(--shadow-md); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }

/* ─── En-tête ───────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.625rem; }

.logo-mark {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary-500);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--white);
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset-block-end: -2px;
  inset-inline-end: -2px;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent-500);
  border: 2px solid var(--white);
  border-radius: var(--radius-full);
}

.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

/* Sélecteur de langue */
.lang-switch { display: flex; align-items: center; gap: 0.25rem; }

.lang-link {
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: background-color .15s, color .15s;
}

.lang-link:hover { background: var(--gray-100); color: var(--gray-900); }
.lang-link[aria-current="true"] { background: var(--primary-50); color: var(--primary-600); }

/* ─── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 5rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 45%, var(--accent-50) 100%);
}

.hero-blob {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: var(--radius-full);
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}

.hero-blob-1 { inset-block-start: -6rem; inset-inline-end: -6rem; background: var(--primary-200); }
.hero-blob-2 { inset-block-end: -8rem; inset-inline-start: -6rem; background: var(--accent-200); }

.hero-content { position: relative; text-align: center; }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-block: 1.5rem 1.25rem;
  text-wrap: balance;
}

.hero h1 .highlight { color: var(--primary-500); }
.hero h1 .highlight-accent { color: var(--accent-500); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

/* Trois piliers sous le hero */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 56rem;
  margin-inline: auto;
}

@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  background: rgb(255 255 255 / 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}

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

.pillar-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.pillar h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.pillar p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; }

/* ─── Icônes colorées réutilisables ─────────────────────── */

.ic-primary { background: var(--primary-100); color: var(--primary-500); }
.ic-accent  { background: var(--accent-100);  color: var(--accent-600); }
.ic-amber   { background: var(--amber-100);   color: var(--amber-600); }

/* ─── Section Express avion ─────────────────────────────── */

.express {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 50%, var(--accent-50) 100%);
}

.express-blob {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: var(--radius-full);
  filter: blur(70px);
  opacity: .3;
  pointer-events: none;
}

.express-blob-1 { inset-block-start: 0; inset-inline-end: 0; background: var(--primary-100); }
.express-blob-2 { inset-block-end: 0; inset-inline-start: 0; background: var(--accent-100); }

.express > .container { position: relative; }

.badge-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }

/* ─── Grille de cartes ──────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}

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

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  transition: transform .3s;
}

.card:hover .card-icon { transform: scale(1.1); }

.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.65; }

/* Mention de confiance */
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-block: 2.5rem 2rem;
  text-align: center;
}

.trust svg { color: var(--accent-500); flex-shrink: 0; }

/* ─── Étapes ────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { text-align: center; position: relative; }

.step-num {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--primary-100);
  display: grid;
  place-items: center;
  color: var(--primary-500);
  box-shadow: var(--shadow-sm);
}

.step-num::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-block-start: -0.375rem;
  inset-inline-end: -0.375rem;
  width: 1.375rem;
  height: 1.375rem;
  background: var(--primary-500);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.375rem; }
.step p { font-size: 0.9375rem; color: var(--gray-600); }

/* ─── Bandeau écologique ────────────────────────────────── */

.eco {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: var(--white);
}

.eco .section-title, .eco .section-subtitle { color: var(--white); }
.eco .section-subtitle { opacity: .9; }

.eco-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 768px) { .eco-stats { grid-template-columns: repeat(4, 1fr); } }

.eco-stat { text-align: center; }

.eco-stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.eco-stat-label { font-size: 0.875rem; opacity: .85; }

/* ─── Moyens de transport ───────────────────────────────── */

.transports {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.transport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 5.5rem;
  padding: 1rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.transport:hover {
  border-color: var(--primary-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.transport svg { color: var(--gray-600); }
.transport.featured { border-color: var(--primary-500); background: var(--primary-50); }
.transport.featured svg { color: var(--primary-500); }
.transport span { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); }

/* ─── FAQ ───────────────────────────────────────────────── */

.faq { max-width: 46rem; margin-inline: auto; }

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
  transition: border-color .2s;
}

.faq-item[open] { border-color: var(--primary-200); }

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  color: var(--primary-500);
  font-size: 1.125rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: transform .25s;
}

.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }

.faq-item .faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─── Appel à l'action final ────────────────────────────── */

.cta-final {
  background: var(--gray-900);
  color: var(--white);
}

.cta-final .section-title { color: var(--white); }
.cta-final .section-subtitle { color: var(--gray-400); }

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  max-width: 30rem;
  margin-inline: auto;
}

.notify-form input {
  flex: 1 1 15rem;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-700);
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
  font-size: 0.9375rem;
  transition: border-color .2s, background-color .2s;
}

.notify-form input::placeholder { color: var(--gray-500); }

.notify-form input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: rgb(255 255 255 / 0.1);
}

.notify-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 1rem;
}

/* ─── Pied de page ──────────────────────────────────────── */

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-block: 2.5rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: start; }
}

.footer .logo-text { color: var(--white); font-size: 1.0625rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer-links a:hover { color: var(--white); }

/* ─── Animations au défilement ──────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ─── Accessibilité ─────────────────────────────────────── */

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary-500);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-lg) 0;
}

.skip-link:focus { inset-inline-start: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
