/* ============================================================
   BAGHEERUN – STYLE.CSS
   Palette : rouge corail + gris anthracite + blanc
   Typographie : Inter + Space Grotesk
   ============================================================ */

:root {
  --primary: #E8333A;
  --primary-dark: #C0242B;
  --primary-light: #f2888b;
  --accent: #4A4A4A;
  --accent-light: #6e6e6e;
  --light: #f8f9fa;
  --dark: #1e1e1e;
  --dark-card: #2a2a2a;
  --text: #222;
  --text-muted: #6c757d;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.6s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET & BASE ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.py-6 { padding-top: 7rem; padding-bottom: 7rem; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---- SECTION TITLES ---- */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-subtitle {
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.1rem 0;
}

#mainNav.scrolled {
  background: rgba(30, 30, 30, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,.2);
  padding: .6rem 0;
}

#mainNav .navbar-brand {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

#mainNav .navbar-brand .brand-icon { color: var(--primary); }
#mainNav .navbar-brand .brand-accent { color: var(--primary); }

#mainNav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 500;
  font-size: .9rem;
  position: relative;
  padding: .5rem 1rem;
  transition: color var(--transition);
}
#mainNav .nav-link:hover { color: #fff !important; }
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: left var(--transition), right var(--transition);
  border-radius: 1px;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { left: 1rem; right: 1rem; }

.btn-cta-nav {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .45rem 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-cta-nav:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-1px);
}

.navbar-toggler { border-color: rgba(255,255,255,.2); }
.navbar-toggler-icon { filter: invert(1); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(160deg, #1a1a1a 0%, #2b2b2b 40%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Animated blob shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
}

.hero-shape-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -10%; right: -5%;
  animation: float-blob 12s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px; height: 400px;
  background: var(--primary-dark);
  bottom: -10%; left: 10%;
  animation: float-blob 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 250px; height: 250px;
  background: var(--primary-light);
  top: 40%; left: 40%;
  animation: float-blob 10s ease-in-out infinite 2s;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.03); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(232,51,58,.15);
  border: 1px solid rgba(232,51,58,.35);
  color: var(--primary-light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  opacity: .8;
  max-width: 520px;
  line-height: 1.7;
}

/* Hero buttons */
.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: .85rem 2rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition);
}
.btn-hero-primary:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232,51,58,.3);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: .85rem 2rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
  align-items: center;
}

.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  color: #fff;
}

.hero-stat-label {
  font-size: .75rem;
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* Hero visual cards (right column) */
.hero-visual {
  position: relative;
  height: 400px;
}

.hero-visual-card {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float-card 6s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

.hero-visual-card:nth-child(1) { top: 10%; right: 0; }
.hero-visual-card:nth-child(2) { top: 40%; left: 0; animation-delay: 2s; }
.hero-visual-card:nth-child(3) { bottom: 5%; right: 10%; animation-delay: 4s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-visual-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(232,51,58,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.hero-visual-label {
  font-weight: 600;
  font-size: .95rem;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll a {
  color: rgba(255,255,255,.4);
  font-size: 1.5rem;
  animation: bounce-mouse 2s ease-in-out infinite;
  text-decoration: none;
  display: block;
}
@keyframes bounce-mouse {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(8px); opacity: .8; }
}

/* ============================================================
   À PROPOS
   ============================================================ */
.section-about {
  background: #fff;
}

.about-img-wrapper {
  position: relative;
}

.about-img-item {
  aspect-ratio: 4/3;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
}
.about-img-item.no-img-about img { opacity: 0; }
.about-img-item.no-img-about .about-img-fallback { display: flex; }

.about-floating-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--primary);
  color: #fff;
  padding: .7rem 1.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 8px 24px rgba(232,51,58,.35);
  z-index: 2;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 500;
}

.about-feature-icon {
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================================
   VALEURS
   ============================================================ */
.section-valeurs {
  background: var(--light);
}

.value-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,.04);
  overflow: hidden;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.value-icon-wrap {
  display: flex;
  justify-content: center;
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--transition);
}
.value-card:hover .value-icon { transform: scale(1.1) rotate(-5deg); }

/* ============================================================
   GALERIE
   ============================================================ */
.section-galerie {
  background: #fff;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #eee;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-ph-content {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  font-weight: 500;
}

.gallery-item.no-img {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
}
.gallery-item.no-img img { display: none; }
.gallery-item.no-img .gallery-ph-content { display: flex; }

.gallery-fb-cta {
  background: linear-gradient(135deg, #1877f2, #0a58ca);
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-fb-cta:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(24,119,242,.3); }

/* ============================================================
   SECTION REJOINDRE
   ============================================================ */
.section-join {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, #2d2d2d 50%, #3a3a3a 100%);
  overflow: hidden;
}

.join-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.join-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .25;
}

.join-shape-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -20%; right: -10%;
}

.join-shape-2 {
  width: 350px; height: 350px;
  background: var(--primary-dark);
  bottom: -15%; left: -5%;
}

.text-join-label {
  color: var(--primary-light) !important;
}

.text-join-highlight {
  color: var(--primary);
}

.join-step {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  color: white;
  transition: all var(--transition);
}
.join-step:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  background: var(--light);
}

.contact-info-card {
  background: var(--dark);
  color: white;
  box-shadow: var(--shadow-lg);
}

.contact-info-card .fw-semibold {
  color: #ddd;
}
.contact-info-card .fw-bold {
  color: #fff;
}
.contact-text-light {
  color: #aaa;
  line-height: 1.6;
}
.contact-link {
  color: var(--primary-light) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-link:hover { color: #fff !important; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(232,51,58,.15);
  color: var(--primary-light);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background: white;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
}

.form-control {
  border: 1.5px solid #e0e0e0;
  border-radius: .6rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,51,58,.1);
}

.form-floating > label {
  color: var(--text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: .6rem;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,51,58,.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
}

.footer-text { color: #999; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-divider { border-color: rgba(255,255,255,.08); }

.footer-bottom small { color: #666; }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #aaa;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all var(--transition);
}
.social-btn:hover {
  background: #1877f2;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24,119,242,.3);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(232,51,58,.3);
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-stats { flex-wrap: wrap; gap: 1.5rem !important; }
  .hero-stat-divider { display: none; }
}

@media (max-width: 768px) {
  .py-6 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero-title { letter-spacing: -1px; }
  .footer-links { gap: 1rem; }
  .about-floating-badge { right: 10px; bottom: -12px; }
}

@media (max-width: 576px) {
  .hero-section { min-height: 100svh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 42px; height: 42px; }
}
