/*
==========================================================================
 PASSION AUTO 85 — Styles des composants réutilisables
 Ce fichier regroupe tous les styles des composants interactifs et visuels
 utilisés sur plusieurs pages : carrousels, boutons, cartes, CTA, etc.
 Pour toute question, référez-vous à la documentation du projet.
 Dernière mise à jour : 27/12/2025 | Auteur : 0xcyberlitech
==========================================================================
*/

/* ===================================================================== */
/* PASSION AUTO 85 — Feuille de style : components.css                   */
/* --------------------------------------------------------------------- */
/* Description :                                                         */
/*   Styles CSS pour les composants réutilisables du site BMW Passion    */
/*   Auto 85. Gère les boutons, badges, cards, popups, etc.              */
/*   À utiliser pour centraliser les styles des éléments modulaires.     */
/* --------------------------------------------------------------------- */
/* Structure :                                                           */
/*   1. Boutons et badges                                                */
/*   2. Cards et blocs réutilisables                                     */
/*   3. Popups et overlays                                               */
/*   4. Utilitaires de composants                                        */
/* --------------------------------------------------------------------- */
/* Auteur : 0xcyberlitech                                                */
/* Date de création : 24/12/2025                                         */
/* Dernière modification : 29/12/2025                                    */
/* ===================================================================== */

/* ===================================================================== */
/* 1. BOUTONS ET BADGES                                                  */
/*    Styles pour boutons, badges, CTA                                   */
/* ===================================================================== */

/* Carrousel des services (haut de page) */
.services-carousel {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: rgba(10, 30, 60, 0.7);
  border-bottom: 2px solid var(--bmw-blue);
  box-shadow: 0 2px 12px 0px #1e90ff66;
  margin: 0 0 2px 0;
  padding: 32px 0 6px 0; /* padding-bottom réduit */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1000;
  min-height: 160px;
}
.services-carousel {
  flex-direction: column;
}
/* Slide individuel du carrousel services */
.services-carousel-slide {
  padding: 2rem 1rem;
  font-size: 1.35rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  background: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px #1e90ff22;
  transition: opacity 0.8s;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Affichage du slide actif dans le carrousel services */
.services-carousel-slide[style*="display:block"] {
  display: flex;
  opacity: 1;
}
.services-carousel-slide > div:first-child {
  font-size: 2.1rem;
  color: #4fc3f7;
  font-family: var(--font-primary);
  font-weight: 800;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
  text-transform: uppercase;
  word-break: break-word;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .services-carousel-slide {
    padding: 1.8rem 1rem;
    font-size: 1.25rem;
  }
  .services-carousel-slide > div:first-child {
    font-size: 2.0rem;
  }
  .services-carousel-slide > div:last-child {
    font-size: 1.15rem;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .services-carousel-slide {
    padding: 1.2rem 0.5rem;
    font-size: 1.1rem;
  }
  .services-carousel-slide > div:first-child {
    font-size: 1.5rem;
  }
  .services-carousel-slide > div:last-child {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .services-carousel-slide {
    padding: 0.8rem 0.2rem;
    font-size: 1rem;
  }
  .services-carousel-slide > div:first-child {
    font-size: 1.2rem;
  }
  .services-carousel-slide > div:last-child {
    font-size: 0.95rem;
  }
}
/* Carrousel Services - Haut de page */
/* Style hérité du carrousel du bas (FAQ) */
.services-carousel-slide {
  padding: 2rem 1rem;
  font-size: 1.35rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  background: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px #1e90ff22;
  transition: opacity 0.8s;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  display: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.services-carousel-slide[style*="display:block"] {
  display: flex;
  opacity: 1;
}
/* Removed orphaned CSS properties and invalid blocks */
@media (max-width: 768px) and (min-width: 481px) {
  .services-carousel-slide {
    padding: 1.2rem 0.5rem;
    font-size: 1.1rem;
  }
  .services-carousel-slide > div:first-child {
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
  .services-carousel-slide {
    padding: 0.8rem 0.2rem;
    font-size: 1rem;
  }
  .services-carousel-slide > div:first-child {
    font-size: 1.5rem;
  }
  .services-carousel-slide > div:last-child {
    font-size: 1rem;
  }
}
@media (max-width: 700px) {
  .services-carousel-slide {
    padding: 8px 2px;
    font-size: 1em;
  }
}
/* Components CSS BMW - PASSION AUTO 85 */


/* Bouton principal d'appel à l'action (CTA) */
.cta-button {
  position: relative;
  padding: 1rem 2.5rem;
  background: var(--bmw-blue);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-primary);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

/* Effet hover sur le bouton CTA */
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
  background: rgba(30, 144, 255, 0.9);
}

/* Effet actif sur le bouton CTA */
.cta-button:active {
  transform: translateY(0);
}

/* Effet lumineux animé sur le bouton CTA */
.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  /* Style hérité du carrousel du bas (FAQ) */
  .services-carousel-slide {
    padding: 2rem 1rem;
    font-size: 1.35rem;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    background: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px #1e90ff22;
    transition: opacity 0.8s;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
    display: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .services-carousel-slide[style*="display:block"] {
    display: flex;
    opacity: 1;
  }
  .services-carousel-slide h3 {
    font-size: 2.2rem;
    color: #4fc3f7;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
    text-transform: uppercase;
    word-break: break-word;
  }
  .services-carousel-slide p {
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.7;
    font-weight: 400;
    text-align: center;
    margin: 0 0 0.5em 0;
    max-width: 900px;
  }
  @media (max-width: 1024px) and (min-width: 769px) {
    .services-carousel-slide {
      padding: 1.8rem 1rem;
      font-size: 1.25rem;
    }
    .services-carousel-slide h3 {
      font-size: 2.4rem;
    }
    .services-carousel-slide p {
      font-size: 1.35rem;
    }
  }
  @media (max-width: 768px) and (min-width: 481px) {
    .services-carousel-slide {
      padding: 1.2rem 0.5rem;
      font-size: 1.1rem;
    }
    .services-carousel-slide h3 {
      font-size: 2rem;
    }
    .services-carousel-slide p {
      font-size: 1.1rem;
    }
  }
  @media (max-width: 480px) {
    .services-carousel-slide {
      padding: 0.8rem 0.2rem;
      font-size: 1rem;
    }
    .services-carousel-slide h3 {
      font-size: 1.5rem;
    }
    .services-carousel-slide p {
      font-size: 1rem;
    }
  }
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover .button-glow {
  left: 100%;
}

/* ===================================================================== */
/* 2. CARDS ET BLOCS RÉUTILISABLES                                       */
/*    Styles pour cards, blocs, vignettes                                */
/* ===================================================================== */

/* Titre de carte BMW (composant) */
.card-title-bmw {
  font-family: var(--font-primary);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
  transition: color 0.3s ease;
}

/* Effet hover sur le titre de carte BMW */
.card-title-bmw:hover {
  color: #87ceeb;
}

/* Paragraphe de carte BMW (composant) */
.card-paragraph-bmw {
  font-family: var(--font-secondary);
  font-size: 1em;
  color: rgba(192, 192, 192, 0.95);
  line-height: 1.6;
  text-align: center;
  margin: 0 auto 1rem auto;
  max-width: 600px;
}

/* Sous-titre BMW (composant) */
.subtitle-bmw {
  margin: var(--spacing-xl) auto var(--spacing-md) auto;
}

/* Variante de sous-titre BMW plus petit */
.subtitle-bmw-small {
  margin: var(--spacing-lg) auto var(--spacing-sm) auto;
}

/* Paragraphe BMW générique (composant) */
.paragraph-bmw {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ===================================================================== */
/* 3. POPUPS ET OVERLAYS                                                 */
/*    Styles pour popups, overlays, modales                              */
/* ===================================================================== */

/* ===================================================================== */
/* 4. UTILITAIRES DE COMPOSANTS                                          */
/*    Classes utilitaires pour composants                                */
/* ===================================================================== */
