/* ==========================================================================
   GFS EXPRESS — Design system
   Charte graphique tranchée (non négociable) :
   - Fond principal unique : bleu nuit #0F172A
   - Couleur de marque : bleu vif #2563EB / #1D4ED8 (nav, liens, badges, icônes)
   - Couleur de conversion : jaune/or #F59E0B / #FBBF24, réservée aux CTA
     principaux (Envoyer un colis, Découvrir nos services, Suivre mon colis)
     — jamais en fond, jamais en décoration.
   ========================================================================== */

:root {
  /* Couleurs de marque — ne pas modifier hors validation charte */
  --bg-principal: #0F172A;
  --bg-surface: #16213A;
  --bg-surface-2: #1C2942;
  --brand-500: #2563EB;
  --brand-600: #1D4ED8;
  --brand-100: #DBEAFE;
  --cta-500: #F59E0B;
  --cta-600: #FBBF24;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: #253352;
  --success: #22C55E;
  --danger: #EF4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-principal);
  color: var(--text-primary);
  font-family: var(--font-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-secondary); }
.eyebrow {
  color: var(--brand-500);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.nav-logo .mark {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-100); }
.nav-cta-group { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

/* CTA principal — jaune/or, réservé aux actions de conversion */
.btn-cta {
  background: linear-gradient(135deg, var(--cta-600), var(--cta-500));
  color: #1A1305;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}
.btn-cta:hover { box-shadow: 0 8px 22px rgba(245, 158, 11, 0.4); }

/* Bouton de marque — bleu, navigation/actions secondaires */
.btn-brand {
  background: var(--brand-500);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-600); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover { border-color: var(--brand-500); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Cartes / surfaces ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--brand-100);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-roadmap {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

/* ---------- Hero + module à onglets ---------- */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.18), transparent 45%),
    var(--bg-principal);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero h1 { margin-bottom: 16px; }
.hero-lead { font-size: 1.05rem; margin-bottom: 26px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust .stat { }
.hero-trust .stat strong { display: block; font-size: 1.3rem; color: var(--text-primary); }
.hero-trust .stat span { font-size: 0.8rem; color: var(--text-muted); }

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}
.tab-btn {
  flex: 1;
  padding: 16px 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--brand-500); }
.tab-panel { display: none; padding: 22px; }
.tab-panel.active { display: block; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

.result-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
}
.result-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.result-row span:first-child { color: var(--text-secondary); }
.result-row.total { border-top: 1px solid var(--border-subtle); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }
.result-row.total span:last-child { color: var(--cta-600); }
.result-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; }
.result-meta.fallback { color: var(--danger); }

/* ---------- Sections génériques ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { margin-top: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.15);
  color: var(--brand-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; }

/* ---------- Galerie photos (page Nos services) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  font-size: 0.76rem;
  color: var(--text-primary);
  background: linear-gradient(to top, rgba(11, 18, 32, 0.92), transparent);
}
.photo-pending {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 16px; text-align: center;
  font-size: 0.8rem; color: var(--text-muted);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Agences ---------- */
.agence-card { display: flex; flex-direction: column; gap: 14px; }
.agence-card .meta-row { display: flex; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.agence-card .meta-row strong { color: var(--text-primary); min-width: 90px; display: inline-block; }
.map-embed {
  width: 100%; height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 28px;
  background: #0B1220;
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 0.85rem; margin-bottom: 12px; color: var(--text-primary); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text-secondary); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--brand-100); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: var(--text-muted);
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-left: 2px solid var(--brand-500);
  padding-left: 10px;
  margin-top: 14px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.status-pill.ok { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-pill.pending { background: rgba(245, 158, 11, 0.15); color: var(--cta-600); }
.status-pill.error { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* ---------- Responsive (mobile-first : la base ci-dessus est déjà fluide,
   les règles desktop sont ajoutées via min-width) ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 62px; left: 0; right: 0; background: var(--bg-surface);
    flex-direction: column; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-130%); transition: transform 0.2s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta-group .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; }
  .tab-btn { font-size: 0.82rem; padding: 14px 8px; }
}
