:root {
  --bg-dark: #0b0d0f;
  --card-bg: #14181d;
  --blue: #00aaff;
  --yellow: #ffda44;
  --white: #ffffff;
  --gray: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.spacer {
  padding-top: 120px;
  padding-bottom: 120px;
} /* Espace important entre sections */
.center {
  text-align: center;
}

/* Menu */
header {
  background: rgba(11, 13, 15, 0.98);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #232930;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  font-size: 1.6rem;
  font-weight: 900;
}
.logo span {
  color: var(--blue);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Hero Section - Hauteur réduite à 70% de l'écran */
.hero {
  height: 70vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)),
    url("src/voitureElvan\ \(2\).jpg");
  background-size: cover;
  background-position: center 30%; /* Ajuste le focus de l'image vers le haut */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem; /* Légèrement réduit pour l'équilibre */
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #ddd;
}

.hero-info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-tag {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
}
.btn-main {
  background: var(--blue);
  color: white;
  padding: 18px 45px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: 0.3s;
}
.btn-main:hover {
  background: #008ecc;
  transform: scale(1.05);
}

/* Marques */
.brands {
  background: #0e1114;
  padding: 40px 0;
  border-bottom: 1px solid #232930;
}
.brands-list {
  display: flex;
  justify-content: center;
  gap: 50px;
  opacity: 0.4;
  font-weight: bold;
  font-size: 1rem;
  flex-wrap: wrap;
}

/* About Section */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.subtitle {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 15px;
}
.about-text h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
}
.check-list {
  list-style: none;
  margin-top: 30px;
}
.check-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}
.check-list i {
  color: var(--blue);
  font-size: 1.3rem;
}

/* Image & Badge */
.about-image .img-wrapper {
  position: relative;
}
.about-image img {
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}
.badge-7j {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--blue);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 170, 255, 0.4);
}
.badge-7j strong {
  display: block;
  font-size: 1.8rem;
}

/* Features */
.features {
  background: #0e1114;
  border-top: 1px solid #232930;
  border-bottom: 1px solid #232930;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  text-align: center;
}
.feature-item i {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 20px;
}
.feature-item h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Services Cards (Nouveau look) */
.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 60px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--card-bg);
  padding: 50px 30px;
  border-radius: 20px;
  border: 1px solid #232930;
  text-align: center;
  transition: 0.4s;
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-10px);
  background: #1a1f26;
}
.service-icon {
  font-size: 3rem;
  color: var(--blue);
  margin-bottom: 25px;
}

/* Portfolio */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.gallery-item {
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #232930;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Map */
.map-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("src/maps.jpg");
  background-size: cover;
  padding: 120px 0;
  text-align: center;
  background-position: center 50%;
}
.map-box {
  opacity: 80%;
  background: var(--card-bg);
  display: inline-block;
  padding: 50px;
  border: 1px solid var(--blue);
  border-radius: 20px;
}
.map-box i {
  font-size: 3.5rem;
  color: var(--blue);
  margin-bottom: 25px;
}

/* Contact & Snap */
.contact-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.phone-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
}
.snap-card {
  background: var(--yellow);
  padding: 20px 40px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: black;
}
.qr-placeholder {
  font-size: 3rem;
  background: white;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}
.snap-info strong {
  font-size: 1.4rem;
  display: block;
}

footer {
  padding: 60px;
  text-align: center;
  color: var(--gray);
  border-top: 1px solid #232930;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

/* --- SECTION CONTACT PREMIUM --- */
.contact-premium-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 50px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 25px;
  padding: 50px;
  border: 1px solid #232930;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.contact-desc {
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: white;
}

.method-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 170, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.5rem;
  border: 1px solid rgba(0, 170, 255, 0.2);
}

.method-text span {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.method-text strong {
  font-size: 1.4rem;
  color: var(--white);
}

/* Style Snapchat Premium */
.snap-premium {
  background: var(--yellow);
  border: none;
  color: black;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.snap-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}
.snap-header i {
  font-size: 2rem;
}
.snap-header h4 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.qr-container {
  background: white;
  padding: 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.snap-img {
  width: 140px;
  height: 140px;
  display: block;
}

.snap-user {
  display: block;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.snap-details p {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.8;
}

.btn-snap {
  display: inline-block;
  background: black;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-premium-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 30px;
  }
  .method-text strong {
    font-size: 1.1rem;
  }
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 992px) {
  .container {
    padding: 0 30px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .grid-2,
  .contact-premium-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Menu mobile simplifié */
  .nav-links {
    display: none;
  } /* On cache les liens texte pour le moment */
  header nav {
    justify-content: center;
  } /* On centre le logo sur mobile */

  /* Hero */
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero h2 {
    font-size: 1.2rem;
  }
  .btn-main {
    width: 100%;
    text-align: center;
  }

  /* Sections */
  .spacer {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .grid-2,
  .grid-3,
  .features-grid,
  .gallery-grid,
  .contact-premium-grid {
    grid-template-columns: 1fr; /* Tout passe sur une seule colonne */
    gap: 30px;
  }

  /* Ajustement de l'image About */
  .about-image {
    order: -1;
  } /* L'image passe au-dessus du texte sur mobile */
  .badge-7j {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: -30px;
    margin-left: 20px;
    display: inline-block;
  }

  /* Contact */
  .phone-number {
    font-size: 2rem;
  }
  .contact-card {
    padding: 30px 20px;
  }
  .snap-body {
    flex-direction: column;
  }

  /* Marques */
  .brands-list {
    gap: 20px;
    font-size: 0.8rem;
  }
}

/* Optimisation pour les très petits écrans (iPhone SE etc) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .method-text strong {
    font-size: 1.1rem;
  }
}

/* Bouton d'appel fixe sur Mobile */
.mobile-sticky-call {
  display: none; /* Caché par défaut */
}

@media (max-width: 768px) {
  .mobile-sticky-call {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0, 170, 255, 0.4);
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }
}
/* --- HAMBURGER MENU STYLE --- */
.hamburger {
  display: none; /* Caché sur ordinateur */
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--white);
  transition: 0.3s;
  border-radius: 2px;
}

/* RESPONSIVE MOBILE MENU */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Apparaît sur mobile */
    margin-left: auto;
  }

  .nav-links {
    display: flex; /* On s'assure qu'il est en flex pour être vertical */
    position: fixed;
    right: -100%; /* Il est caché à droite de l'écran */
    top: 0;
    height: 100vh;
    width: 75%;
    background: #0f1216; /* Fond sombre pour le menu */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease-in-out;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0; /* Glisse vers la gauche pour apparaître */
  }

  /* Animation du hamburger en "X" quand on clique */
  .hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--blue);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--blue);
  }
}

.full-width-container {
  max-width: 98% !important;
  margin: 0 auto;
  padding: 0 10px;
}

/* --- PAGE RÉALISATIONS (STORY LOOK) --- */
.story-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* Espace réduit au minimum entre les photos */
  width: 100%;
}

.story-item {
  position: relative;
  /* On autorise l'image à grandir (grow) pour boucher tous les trous */
  flex: 1 1 calc(25% - 10px);
  min-width: 280px;
  max-width: 450px; /* Augmenté pour remplir les grands écrans */
  aspect-ratio: 9 / 16;
  background: var(--card-bg);
  border-radius: 8px; /* Rayon réduit pour un look plus compact */
  overflow: hidden;
  border: 1px solid #232930;
}

.story-item:hover {
  transform: scale(1.03);
  border-color: var(--blue);
  z-index: 10;
}

.story-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .story-grid {
    gap: 10px;
  }
  .story-overlay span {
    font-size: 0.75rem; /* Texte ajusté pour les petites vignettes */
  }
  .story-item {
    flex: 1 1 calc(50% - 10px); /* 2 par ligne, très serré */
  }
}

@media (max-width: 1100px) {
  .story-item {
    flex: 1 1 calc(33.33% - 10px);
  }
}

/* Ajustement très petit mobile */
@media (max-width: 400px) {
  .story-item {
    flex: 1 1 100%; /* 1 par ligne sur très petit tel pour la lisibilité */
  }
  .full-width-container {
    padding: 0 5px;
  }
}

/* --- STYLE HERO PROPRE À À-PROPOS --- */
.about-hero {
  height: 60vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)),
    url("src/voitureElvan\ \(2\).jpg");
  background-size: cover;
  background-position: center;
}

/* --- TIMELINE CENTRÉE ZIG-ZAG --- */
.timeline-centered {
  position: relative;
  max-width: 1000px;
  margin: 80px auto;
}

/* La ligne centrale */
.timeline-centered::after {
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--blue),
    var(--blue) 80%,
    transparent
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  margin-bottom: 30px;
}

/* Positionnement Gauche et Droite */
.timeline-container.left {
  left: 0;
  text-align: right;
}
.timeline-container.right {
  left: 50%;
  text-align: left;
}

/* Les Icônes sur la ligne */
.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  right: -25px; /* Centré sur la ligne pour la gauche */
  background-color: var(--bg-dark);
  border: 2px solid var(--blue);
  top: 15px;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.timeline-container.right .timeline-icon {
  left: -25px; /* Centré sur la ligne pour la droite */
}

.timeline-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #232930;
}

.timeline-content h3 {
  color: var(--blue);
  margin-bottom: 10px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .timeline-centered::after {
    left: 31px; /* On remet la ligne à gauche sur mobile */
  }

  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left !important;
  }

  .timeline-container.right {
    left: 0;
  }

  .timeline-icon {
    left: 6px !important;
    width: 45px;
    height: 45px;
  }
}

/* --- PAGE CONTACT --- */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #232930;
  transition: 0.3s;
}

.contact-card-item:hover {
  border-color: var(--blue);
  transform: translateX(10px);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 170, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.5rem;
}

.text-box span {
  display: block;
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.text-box strong {
  display: block;
  color: white;
  font-size: 1.2rem;
  margin-top: 5px;
}
.text-box p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Spécifique Snapchat */
.snap-item:hover .icon-box {
  background: var(--yellow);
  color: black;
}
.snap-item:hover {
  border-color: var(--yellow);
}

/* Zone & Carte */
.map-container {
  height: 100%;
  min-height: 400px;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid #232930;
}

/* Le cercle visuel sur la carte */
.map-overlay-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border: 2px dashed var(--blue);
  background: rgba(0, 170, 255, 0.1);
  border-radius: 50%;
  pointer-events: none; /* Permet de cliquer sur la carte à travers */
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay-circle span {
  background: var(--blue);
  color: white;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .map-container {
    height: 350px;
    margin-top: 30px;
  }
  .contact-card-item {
    padding: 15px;
  }
  .text-box strong {
    font-size: 1rem;
  }
  .map-overlay-circle {
    width: 180px;
    height: 180px;
  }
}

.logo {
  font-size: 1.8rem;
  font-weight: 800; /* Très gras pour un look premium */
  color: #ffffff; /* Blanc pour le début */
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif; /* Une police géométrique moderne */
}

.logo span {
  color: #00aaff; /* Le bleu électrique pour le "01" */
  font-weight: 900;
  position: relative;
}

/* Petit effet premium : un point lumineux bleu après le 01 */
.logo span::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #00aaff;
  border-radius: 50%;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px #00aaff;
}
