/* -----------------------------------
        DEBUT STYLES PAGE VELO
-------------------------------------- */

/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
  --blue-intersport: #154093; /* Bleu Intro & Icones */
  --blue-dark: #111E64;       /* Bleu Bouton Stable */
  --red-intersport: #e30613;  /* Rouge Intersport Hover */
  --bg-light: #f0f4f8;        /* Fond icones */
  --white: #ffffff;
  --text-dark: #222222;
  --text-muted: #555555;
  --shadow-soft: 0 8px 25px rgba(0,0,0,0.08);
}

/* Global Reset pour la page (Sécurité mobile) */
.body-wrapper * {
  box-sizing: border-box;
}

/* --- SECTION INTRODUCTION --- */
.intro-section {
  max-width: 900px;
  margin: 40px auto 30px auto;
  text-align: center;
  padding: 0 20px;
}

.intro-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.15rem;
  background: var(--white);
  padding: 25px;
  border-left: 5px solid var(--blue-intersport);
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 4px 15px rgba(0,0,0,0.03);
  text-align: left; /* Meilleure lisibilité sur les longs textes */
}

.intro-text strong {
  color: var(--blue-intersport);
}

/* --- MINI-CARTES CONTACT --- */
.contact-cards-container {
  display: flex;
  gap: 20px;
  max-width: 950px;
  margin: 0 auto 50px auto;
  justify-content: center;
  padding: 0 20px;
}

.mini-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--white);
  padding: 18px 25px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.mini-card:hover {
  border-color: var(--blue-intersport);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(21, 64, 147, 0.1);
}

.mini-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.svg-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.mini-card-info h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 700;
}

.mini-card-info p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* --- CARTE VÉLO --- */
.bike-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  max-width: 950px;
  margin: 0 auto 40px auto;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  flex-wrap: wrap;
}

.bike-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.bike-card-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.bike-card-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
}

.bike-card-content {
  flex: 1;
  min-width: 280px;
}

.bike-card-title {
  font-size: 26px;
  margin: 0 0 15px 0;
  color: #154093;
}

.bike-card-description {
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- TABLEAU DE PRIX --- */
.bike-card-pricing {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.bike-card-pricing th {
  background: #f3f3f3;
  padding: 12px;
  text-align: left;
  font-weight: bold;
}

.bike-card-pricing td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.bike-card-pricing td:last-child, 
.bike-card-pricing th:last-child {
  text-align: right;
}

/* --- BOUTON RÉSERVER (MARINE -> ROUGE) --- */
.bike-card-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #111E64; /* Bleu Marine Profond #111E64 */
    color: var(--white);          /* Texte blanc par défaut */
    text-decoration: none;
    border-radius: 30px;
    font-weight: normal;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;       /* Assure que le padding ne fait pas déborder le bouton */
}

.bike-card-btn:hover {
    background: #164194; /* Rouge Intersport au survol */
    color: var(--white) !important;    /* FORCE le texte en blanc au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.3);
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 767px) {
    .bike-card-btn {
        display: block;    /* Prend toute la largeur disponible */
        width: 100%;       /* S'étire au maximum du conteneur parent */
        padding: 14px 10px; /* Réduction du padding latéral pour éviter de pousser les bords */
        margin: 20px auto 0 auto; /* Ajout d'une marge au dessus pour ne pas coller au tableau */
    }
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80vh;
  border-radius: 10px;
  margin-top: 10vh;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff; font-size: 40px;
  font-weight: bold; cursor: pointer;
}

/* --- RESPONSIVE CORRIGÉ (SÉCURITÉ MOBILE) --- */
@media (max-width: 767px) {
  .bike-card, 
  .contact-cards-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px; /* Évite que le contenu touche les bords */
  }

  .mini-card {
    width: 100%;
    padding: 15px;
  }
  
  .bike-card-btn {
    display: block;
    width: 100%; /* Occupe toute la largeur du conteneur */
    padding: 14px 10px; /* Réduction padding latéral pour éviter le scroll */
    margin: 0 auto;
  }

  .intro-text {
    text-align: left;
    font-size: 1rem;
    padding: 20px;
  }

  .bike-card-image, .bike-card-content {
    width: 100%;
    min-width: 100%; /* Force la largeur sur mobile */
  }
}

/* Style spécifique pour les versions à 5 colonnes */
.bike-card-pricing.table-5-cols {
    display: table; /* Force le comportement tableau standard */
}

.bike-card-pricing.table-5-cols th, 
.bike-card-pricing.table-5-cols td {
    text-align: center;
    padding: 10px 2px;
    width: 20%; /* 100% divisé par 5 colonnes */
}

/* On s'assure que sur mobile les titres ne se chevauchent pas */
@media (max-width: 767px) {
    .bike-card-pricing.table-5-cols {
        font-size: 12px;
    }
}

/* -----------------------------------
        FIN STYLES PAGE VELO
-------------------------------------- */
