/* ===================================================================== */
/* PASSION AUTO 85 — Feuille de style : content-index.css                */
/* --------------------------------------------------------------------- */
/* Description :                                                         */
/*   Styles CSS propres à la page d'accueil du site BMW Passion Auto 85. */
/*   Gère les titres, grilles, paragraphes, animations, responsive, etc. */
/*   À utiliser pour personnaliser l'apparence de la page d'accueil sans */
/*   impacter la structure globale.                                      */
/* --------------------------------------------------------------------- */
/* Structure :                                                           */
/*   1. Sélecteurs généraux et disposition                               */
/*   2. Section histoire de passion                                      */
/*   3. Bloc demande de devis (CTA)                                      */
/*   4. Animations et cartes de service                                  */
/*   5. Galerie index                                                    */
/* --------------------------------------------------------------------- */
/* Auteur : 0xcyberlitech                                                */
/* Date de création : 24/12/2025                                         */
/* Dernière modification : 29/12/2025                                    */
/* ===================================================================== */


/* ===================================================================== */
/* 1. SÉLECTEURS GÉNÉRAUX ET DISPOSITION                                 */
/*    Styles pour les éléments communs à la page d'accueil               */
/* ===================================================================== */

/* Sous-titre principal (bleu BMW) */


/* Espace sous le bouton devis (section devis) */
.devis-to-quisommes-space {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 700px) {
  .devis-to-quisommes-space {
    margin-bottom: 0;
    margin-top: 0;
  }
  .devis-container {
    padding: 0 !important;
  }
  .devis-btn {
    margin-bottom: 0 !important;
  }
}

/* Grille histoire : disposition des blocs histoire */
.histoire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5vw;
  max-width: 1800px;
  margin: 0 auto;
  justify-content: center;
}
.histoire-grid .welcome-text-histoire {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .histoire-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
  }
  .histoire-grid .welcome-text-histoire {
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
  }
}

/* ===================================================================== */
/* 2. SECTION HISTOIRE DE PASSION                                        */
/*    Styles pour la section histoire de la page d'accueil               */
/* ===================================================================== */


/* SECTION HISTOIRE DE PASSION : titres, textes, responsive */
.histoire-titre {
  color: #4fc3f7;
  font-weight: bold;
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 700px) {
  .histoire-titre {
    font-size: 1.3rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 95vw !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}
/* Mise en page de la section histoire de Passion Auto 85 */
body.index .welcome-content-histoire {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
}

/* ===================================================================== */
/* 3. BLOC DEMANDE DE DEVIS (CTA)                                        */
/*    Bloc pour la demande de devis (formulaire, bouton, responsive)     */
/* ===================================================================== */
/* Bloc pour la demande de devis (formulaire, bouton, responsive) */
.devis-section {
  background: none !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin: 6rem auto 2rem auto;
  position: relative;
  z-index: 10;
  min-height: unset;
  box-shadow: none;
}
/* Removed stray CSS block that caused syntax error */
@media (max-width: 700px) {
  .devis-container {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    max-width: 98vw;
    border-radius: 1.2rem;
  }
}
.devis-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.devis-title {
  font-family: var(--font-primary);
  font-size: 2.1rem;
  color: #4fc3f7; /* Bleu clair BMW */
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.devis-slogan {
  font-family: var(--font-secondary);
  font-size: 1.28rem;
  color: #4fc3f7; /* Bleu clair BMW */
  margin-bottom: 2.2rem;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
/* Style bouton devis en rouge BMW */
.devis-btn {
  margin-top: 0.5rem;
  min-width: 220px;
  font-size: 1.1rem;
  background: #ff4444 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(255, 68, 68, 0.18);
  border: none;
  transition: background 0.3s, box-shadow 0.3s;
}
.devis-btn:hover {
  background: #d32f2f !important;
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.28);
}
.devis-btn .button-glow {
  pointer-events: none;
}
@media (max-width: 700px) {
  .devis-section {
    margin: 2rem auto 1.2rem auto;
    padding: 1.2rem 0 1.2rem 0;
  }
  .devis-title {
    font-size: 2rem;
    word-break: break-word;
    text-align: center;
    padding: 0 8px;
  }
  .devis-slogan {
    font-size: 1rem;
  }
  .devis-btn {
    min-width: 160px;
    font-size: 1rem;
  }
}

/* ===================================================================== */
/* 4. ANIMATIONS ET CARTES DE SERVICE                                    */
/*    Animation d'apparition des cartes de service                       */
/* ===================================================================== */
/* Animation d'apparition des cartes de service */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------- */
/* Styles et animation pour les cartes de service                        */
/* --------------------------------------------------------------------- */
/* Styles et animation pour les cartes de service */
/* ...règles spécifiques à la page index... */

/* --- Desktop Large (≥1025px) --- */
@media (min-width: 1025px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1600px;
    margin: 4rem auto 0 auto;
    padding: 0 2rem;
  }

  .welcome-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .welcome-content .service-card {
    padding-top: 350px;
  }

  .welcome-content .service-card img {
    height: 350px;
  }

  .welcome-content .service-card h3 {
    font-size: 1.8rem;
  }

  .welcome-content .service-card p {
    font-size: 1.1rem;
  }
}

/* --- Tablet Large (769px - 1024px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding: 0 1.8rem;
  }

  .service-card {
    min-height: 260px;
  }

  .welcome-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .welcome-content .service-card {
    padding-top: 280px;
  }

  .welcome-content .service-card img {
    height: 280px;
  }

  .welcome-content .service-card h3 {
    font-size: 1.6rem;
  }

  .welcome-content .service-card p {
    font-size: 1rem;
  }
}

/* --- Tablet (481px - 768px) --- */
@media (max-width: 768px) and (min-width: 481px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 2rem auto 0 auto;
    padding: 0 1rem;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 250px;
  }

  .welcome-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .welcome-content .service-card {
    padding-top: 300px;
  }

  .welcome-content .service-card img {
    height: 300px;
  }

  .welcome-content .service-card h3 {
    font-size: 1.5rem;
  }

  .welcome-content .service-card p {
    font-size: 1rem;
  }
}

/* --- Mobile Large (361px - 480px) --- */
@media (max-width: 480px) and (min-width: 361px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 1.5rem auto 0 auto;
    padding: 0 0.8rem;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 230px;
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .welcome-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .welcome-content .service-card {
    padding-top: 240px;
  }

  .welcome-content .service-card img {
    height: 240px;
  }

  .welcome-content .service-card h3 {
    font-size: 1.3rem;
  }

  .welcome-content .service-card p {
    font-size: 0.9rem;
  }
}

/* --- Mobile Small (≤360px) --- */
@media (max-width: 360px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 320px;
    margin: 1rem auto 0 auto;
    padding: 0 0.5rem;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 220px;
    padding: 1.2rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  .welcome-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .welcome-content .service-card {
    padding-top: 200px;
  }

  .welcome-content .service-card img {
    height: 200px;
  }

  .welcome-content .service-card h3 {
    font-size: 1.2rem;
  }

  .welcome-content .service-card p {
    font-size: 0.85rem;
  }
}

/* ===================================================================== */
/* 5. GALERIE INDEX                                                      */
/*    Styles galerie index (ex-content-galerie-index.css)                */
/* ===================================================================== */
/* Espace avant le titre histoire */
.presentation-grid {
  margin-bottom: 6rem;
}

/* --------------------------------------------------------------------- */
/* FUSION : Styles galerie index (ex-content-galerie-index.css)          */
/* --------------------------------------------------------------------- */

/* Fond semi-transparent pour les paragraphes de la section HISTOIRE */
.galerie-paragraph, .paragraph-bmw-histoire {
  background: rgba(22, 33, 62, 0.7);
  border-radius: 0 0 16px 16px;
  padding: 1.2em 1em;
}

/* Couleur distinctive du titre "GALERIE" en bleu clair BMW */

/* Grille galerie */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0 0 0;
  justify-items: center;
}

@keyframes galerieFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.galerie-item {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: galerieFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--fade-delay, 0s);
  background: none;
  border: 2px solid #1e90ff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #1e90ff44, 0 0 8px #00bfff22 inset;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  height: 100%;
  align-items: stretch;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.galerie-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px #1e90ff88, 0 0 16px #00bfff44 inset;
  border-color: #00bfff;
}
.galerie-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #1e90ff44;
  background: #111;
}
.galerie-caption {
  font-family: var(--font-primary);
  font-size: 1.15em;
  color: #16213e;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  background: #4da6ff;
  letter-spacing: 0.5px;
  font-weight: bold;
  box-shadow: 0 2px 8px #1e90ff22 inset;
  text-shadow: 0 2px 8px #16213e22;
  border-radius: 0;
}
.galerie-description {
  background: rgba(22, 33, 62, 0.7);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  color: #eaf6ff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-grow: 1;
  min-height: 56px;
  width: 100%;
  margin-top: 0;
  padding: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 8px #1e90ff22 inset;
  text-align: center;
}
.galerie-description span {
  display: block;
  width: 100%;
  padding: 0.7em 1em 1.1em 1em;
  box-sizing: border-box;
}

/* Responsive galerie (extraits principaux, le reste est déjà couvert par les media queries existantes) */
@media (min-width: 1025px) {
  .galerie-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0 0 0;
  }
  .galerie-item {
    max-width: 400px;
  }
  .galerie-item img {
    height: 260px;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .galerie-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem 0 0 0;
  }
  .galerie-item {
    max-width: 380px;
  }
  .galerie-item img {
    height: 240px;
  }
  .galerie-caption {
    font-size: 1.05em;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .galerie-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0 0 0;
  }
  .galerie-item {
    max-width: 360px;
  }
  .galerie-item img {
    height: 220px;
  }
  .galerie-caption {
    font-size: 1em;
    padding: 0.8rem 0.4rem 0.4rem 0.4rem;
  }
  .galerie-description {
    min-height: 50px;
  }
  .galerie-description span {
    font-size: 0.95em;
    padding: 0.6em 0.8em 1em 0.8em;
  }
}
@media (max-width: 480px) and (min-width: 361px) {
  .galerie-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    padding: 0.8rem 0 0 0;
  }
  .galerie-item {
    max-width: 100%;
  }
  .galerie-item img {
    height: 200px;
  }
  .galerie-caption {
    font-size: 0.95em;
    padding: 0.7rem 0.4rem 0.3rem 0.4rem;
  }
  .galerie-description {
    min-height: 48px;
  }
  .galerie-description span {
    font-size: 0.9em;
    padding: 0.5em 0.7em 0.9em 0.7em;
  }
}
@media (max-width: 360px) {
  .galerie-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem 0 0 0;
  }
  .galerie-item {
    max-width: 100%;
    border-radius: 12px;
  }
  .galerie-item img {
    height: 180px;
  }
  .galerie-caption {
    font-size: 0.9em;
    padding: 0.6rem 0.3rem 0.2rem 0.3rem;
    letter-spacing: 0;
  }
  .galerie-description {
    min-height: 45px;
  }
  .galerie-description span {
    font-size: 0.85em;
    padding: 0.5em 0.6em 0.8em 0.6em;
  }
}
