/* Import fonts (optional) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Rajdhani:wght@500;700&display=swap');

/* Root variables for light and dark themes */
:root {
  /* Base colours for light theme */
  --body-bg: #f8f9fa;
  --body-color: #212529;
  --card-bg: #ffffff;
  --card-color: #212529;
  --accent-color: #c1121f;
  --secondary-color: #333;
  /* Navbar background can be customised per theme */
  --navbar-bg: #000;
}

/* Override variables when the dark theme is active */
[data-bs-theme="dark"] {
  --body-bg: #121212;
  --body-color: #e8e6e3;
  --card-bg: #1e1e1e;
  --card-color: #e8e6e3;
  --secondary-color: #777;
  /* Darker navbar for dark mode */
  --navbar-bg: #111;
}

/* General styles */
body {
  background-color: var(--body-bg);
  color: var(--body-color);
  font-family: 'Inter', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}

a {
  color: var(--accent-color);
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Navbar */
.navbar {
  /* Use the CSS variable so it changes with the selected theme */
  background-color: var(--navbar-bg);
}

ul.navbar-nav.ms-auto.align-items-lg-center.mb-2.mb-lg-0 {
    font-size: 15px;
}

.navbar .logo-small {
  height: 32px;
  width: auto;
}

.btn-outline-danger {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-outline-danger:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}

/* Contenu du hero */
.hero .container {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
  max-width: 600px;
  padding: 2rem;
}

/* Boutons */
.hero .btn {
  margin-top: 1rem;
}
img.img-fluid.mb-3 {
    max-height: 199px;
    alignment-baseline: central;
    width: 100px;
    margin: auto;
    display: block;
}

.hero .container,
.hero .car-marker {
  position: relative;
  z-index: 2; /* passe devant le masque */
}

.image-container {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .image-container {
        max-width: 80%;
    }
}




/* Cards */
.card {
  background-color: var(--card-bg);
  color: var(--card-color);
  border: none;
}

.lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.15);
}

/* Footer */
.footer-dark {
  background-color: #000;
  color: #aaa;
}

.footer-dark a {
  color: #ccc;
}

.footer-dark a:hover {
  color: #fff;
}

/* Team cards */
.team-card .team-img-wrapper {
  height: 220px;
  background-color: #000;
}
.team-card .team-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.team-card .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}
.team-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Skill bars */
.progress {
  height: 0.5rem;
  background-color: #e0e0e0;
}
.progress-bar {
  background-color: var(--accent-color);
  transition: width 1.2s ease;
}
.skill-label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.875rem;
}

/* Hero image wrapper and interactive car markers */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --- Car Markers --- */
.car-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  background-color: #000;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.car-marker:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.car-marker {
  animation: pulse 2s infinite;
}

/* ✅ Mobile optimization */
@media (max-width: 768px) {
  .hero {
    height: 85vh;
    align-items: flex-end;
  }
  .hero .container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 0 1rem 2rem;
    text-align: center;
    max-width: 90%;
  }
  .car-marker {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
  }
  .hero img {
    object-position: 50% 60%;
  }
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .car-marker {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
  }
}
/* Theme toggle button */
#themeToggle {
  border: none;
  background: transparent;
  color: #fff;
}

#themeToggle .theme-icon {
  font-size: 1.2rem;
}

/* Carousel images */
.carousel-item img {
  object-fit: cover;
  height: 550px;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 320px;
  }
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* ===== Social icons adaptive ===== */
.social-links a {
  color: var(--bs-body-color);
  transition: color 0.2s ease;
}

.social-links a:hover {
  
  color: #dc3545; /* rouge bootstrap */
}

@media (max-width: 991px) {

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .hero-image-wrapper {
    position: relative;
  }

  .hero-img {
    height: auto;
    object-fit: contain;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    position: relative;
    background: #121212;
    padding: 2rem 1.5rem;
  }

  .hero-image-wrapper {
    height: 25vh;}

    
}

/* ===== STICKY FOOTER SYSTEM ===== */

html, body {
  height: 100%;
  margin: 0;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Le contenu prend tout l'espace dispo */
.content {
  flex: 1;
}

/* Footer reste en bas */
.footer {
  margin-top: auto;
}