/* ==========================================
   EVENTIX — Feuille de styles principale
   Couleurs : Bleu #1E3A8A | Or #F59E0B | Blanc #FFF | Gris #F3F4F6
   ========================================== */

:root {
  --primary: #1E3A8A;
  --primary-dark: #172354;
  --primary-light: #3B61F0;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FCD34D;
  --surface: #F3F4F6;
  --white: #FFFFFF;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --radius: .75rem;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar-eventix {
  background: var(--white) !important;
  border-bottom: 2px solid var(--surface);
  box-shadow: 0 1px 8px rgb(30 58 138 / .08);
  padding: .75rem 0;
}

.navbar-brand-eventix {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -.02em;
  text-decoration: none;
}
.navbar-brand-eventix span { color: var(--accent); }

.navbar-eventix .nav-link {
  color: #374151 !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .8rem !important;
  border-radius: .5rem;
  transition: all .2s;
}
.navbar-eventix .nav-link:hover,
.navbar-eventix .nav-link.active {
  color: var(--primary) !important;
  background: var(--surface);
}

.btn-nav-connexion {
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 2rem;
  padding: .35rem 1.1rem !important;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
}
.btn-nav-connexion:hover {
  background: var(--primary);
  color: var(--white) !important;
}

.btn-nav-inscription {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 2rem;
  padding: .4rem 1.2rem !important;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  transition: all .2s;
}
.btn-nav-inscription:hover {
  background: var(--accent-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Badge panier */
.badge-panier {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  padding: 2px 6px;
  position: absolute;
  top: -6px;
  right: -8px;
  font-weight: 700;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2d4faa 60%, #1a3278 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.4);
  color: var(--accent-light);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 2rem;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title .highlight {
  color: var(--accent);
  position: relative;
}
.hero-subtitle {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label { font-size: .78rem; opacity: .75; margin-top: .1rem; }

/* Carte flottante hero */
.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}
.hero-card-header {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ==========================================
   BOUTONS
   ========================================== */
.btn-primary-eventix {
  background: var(--primary);
  color: white;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary-eventix:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent-eventix {
  background: var(--accent);
  color: white;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-accent-eventix:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary-eventix {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.5);
  padding: .7rem 1.7rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .2s;
}
.btn-outline-primary-eventix:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
  color: white;
}

/* ==========================================
   SECTIONS TITRES
   ========================================== */
.section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: .6rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================
   CARTES PRESTATAIRE
   ========================================== */
.card-prestataire {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card-prestataire:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: inherit;
  text-decoration: none;
}

.card-cover {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
  position: relative;
}
.badge-verifie {
  position: absolute;
  top: .7rem;
  right: .7rem;
  background: var(--accent);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}

.card-body-prestataire {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-categorie {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: .3rem;
}
.card-nom {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .25rem;
  line-height: 1.3;
}
.card-ville {
  font-size: .83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .5rem;
}
.card-description {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-footer-prestataire {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--surface);
  background: var(--surface);
}
.card-note {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.card-prix {
  font-size: .8rem;
  color: var(--text-muted);
}
.card-prix strong {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================
   CATÉGORIES GRID
   ========================================== */
.categorie-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: all .2s;
  display: block;
}
.categorie-card:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.categorie-icon {
  font-size: 2.2rem;
  margin-bottom: .6rem;
  display: block;
}
.categorie-nom {
  font-size: .85rem;
  font-weight: 600;
}

/* ==========================================
   ÉTAPES "COMMENT ÇA MARCHE"
   ========================================== */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: .5rem;
}
.step-text {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   SECTION STATS DARK
   ========================================== */
.section-stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
}
.stat-box { text-align: center; padding: 1rem; }
.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .9rem;
  opacity: .8;
  margin-top: .3rem;
}

/* ==========================================
   SECTION PLANIFICATEUR PROMO
   ========================================== */
.promo-section {
  background: var(--surface);
  padding: 5rem 0;
}
.promo-card {
  background: linear-gradient(135deg, var(--primary) 0%, #2d4faa 100%);
  color: white;
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(245,158,11,.15);
  border-radius: 50%;
}

/* ==========================================
   BARRE DE RECHERCHE
   ========================================== */
.search-bar {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.search-bar .form-control,
.search-bar .form-select {
  border: 1px solid var(--border);
  border-radius: .5rem;
  font-size: .9rem;
  padding: .6rem .9rem;
}
.search-bar .form-control:focus,
.search-bar .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}

/* ==========================================
   PAGE DÉTAIL PRESTATAIRE
   ========================================== */
.cover-prestataire {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.04em;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.badge-categorie {
  background: rgba(30,58,138,.08);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .8rem;
  border-radius: 2rem;
  display: inline-block;
}

.service-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
  transition: all .2s;
}
.service-item:hover { border-color: var(--primary); }
.service-prix {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  white-space: nowrap;
}

/* ==========================================
   PLANIFICATEUR WIZARD
   ========================================== */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.wizard-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: white;
  transition: all .3s;
}
.wizard-step.active .wizard-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.wizard-step.done .wizard-step-num {
  background: #10B981;
  border-color: #10B981;
  color: white;
}
.wizard-step-label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-muted);
}
.wizard-step.active .wizard-step-label { color: var(--primary); }
.wizard-step.done .wizard-step-label { color: #10B981; }
.wizard-connector {
  height: 2px;
  width: 4rem;
  background: var(--border);
  margin: 0 .5rem;
}
.wizard-connector.done { background: #10B981; }

/* Budget indicator */
.budget-bar {
  height: 10px;
  background: var(--surface);
  border-radius: 5px;
  overflow: hidden;
  margin: .5rem 0;
}
.budget-fill {
  height: 100%;
  border-radius: 5px;
  transition: width .4s ease;
  background: var(--primary);
}
.budget-fill.danger { background: #EF4444; }
.budget-fill.warning { background: var(--accent); }

/* ==========================================
   DEVIS PDF
   ========================================== */
.devis-header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.devis-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.devis-logo span { color: var(--accent); }
.devis-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: .85rem;
  padding: .75rem 1rem;
}
.devis-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.devis-total-row { background: rgba(30,58,138,.05); font-weight: 700; }

@media print {
  .no-print { display: none !important; }
  .devis-container { box-shadow: none !important; }
  body { background: white; }
}

/* ==========================================
   DASHBOARD
   ========================================== */
.dashboard-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.dashboard-card:hover { box-shadow: var(--shadow-lg); }

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.stat-card.accent { border-left-color: var(--accent); }
.stat-card.green { border-left-color: #10B981; }
.stat-card.purple { border-left-color: #7C3AED; }

.stat-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .75rem;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-card-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card.accent .stat-card-num { color: var(--accent-dark); }
.stat-card-label { font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }

/* ==========================================
   ALERTES / TOAST
   ========================================== */
.alert-eventix {
  border-radius: .75rem;
  border: none;
  padding: .9rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
}
.alert-succes {
  background: #D1FAE5;
  color: #065F46;
  border-left: 4px solid #10B981;
}
.alert-erreur {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
}
.alert-info {
  background: rgba(30,58,138,.06);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

/* ==========================================
   FORMS
   ========================================== */
.form-eventix .form-control,
.form-eventix .form-select {
  border: 1.5px solid var(--border);
  border-radius: .6rem;
  padding: .65rem .9rem;
  font-size: .92rem;
  transition: all .2s;
}
.form-eventix .form-control:focus,
.form-eventix .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.form-eventix label {
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .3rem;
}

.form-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-eventix {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.5rem;
}
.footer-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
}
.footer-brand span { color: var(--accent); }
.footer-title {
  color: white;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.footer-link {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
  display: block;
  margin-bottom: .4rem;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: .82rem;
}

/* ==========================================
   UTILITAIRES
   ========================================== */
.bg-primary-eventix { background: var(--primary) !important; }
.bg-accent-eventix { background: var(--accent) !important; }
.text-primary-eventix { color: var(--primary) !important; }
.text-accent-eventix { color: var(--accent) !important; }
.text-muted-eventix { color: var(--text-muted) !important; }
.bg-surface { background: var(--surface) !important; }

.rounded-eventix { border-radius: var(--radius) !important; }
.shadow-eventix { box-shadow: var(--shadow) !important; }
.shadow-lg-eventix { box-shadow: var(--shadow-lg) !important; }
.cursor-pointer { cursor: pointer !important; }

.divider-accent {
  height: 4px;
  width: 3rem;
  background: var(--accent);
  border-radius: 2px;
  margin: .75rem 0 1.5rem;
}
.divider-accent.center { margin: .75rem auto 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .wizard-connector { width: 2rem; }
  .form-card { padding: 1.5rem; }
}

/* ============================================================
   CARROUSEL D'ACCUEIL — bannières gérées depuis l'espace admin
   ============================================================ */
.banniere-section {
  position: relative;
}

.banniere-slide {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.banniere-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 35, 84, .88) 0%, rgba(30, 58, 138, .65) 55%, rgba(30, 58, 138, .25) 100%);
}

.banniere-contenu {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  color: #fff;
}

.banniere-titre {
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.banniere-soustitre {
  font-size: clamp(.95rem, 2vw, 1.12rem);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.banniere-cta {
  display: inline-flex;
  align-items: center;
}

/* Les contrôles Bootstrap sont peu visibles sur une photo claire */
.banniere-section .carousel-control-prev,
.banniere-section .carousel-control-next {
  width: 6%;
  opacity: .75;
}

.banniere-section .carousel-control-prev:hover,
.banniere-section .carousel-control-next:hover {
  opacity: 1;
}

.banniere-section .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 2rem;
  background-color: rgba(255, 255, 255, .55);
  border: 0;
}

.banniere-section .carousel-indicators .active {
  background-color: var(--accent);
}

@media (max-width: 767.98px) {
  .banniere-slide { min-height: 320px; }
  .banniere-overlay {
    background: linear-gradient(180deg, rgba(23, 35, 84, .82) 0%, rgba(30, 58, 138, .72) 100%);
  }
  /* Les flèches chevauchent le texte sur écran étroit : le glissement
     tactile de Bootstrap et les indicateurs suffisent. */
  .banniere-section .carousel-control-prev,
  .banniere-section .carousel-control-next { display: none; }
  .banniere-contenu { padding-bottom: 3rem; }
}
