﻿/* nouvelle_liste_boutiques.css */




/* Variables de Couleurs */
:root {
    --primary-color: #3A5FCD;
    --secondary-color: #1C3B6C;
    --background-color: #1c1c1c;
    --form-background: #2e2e2e;
    --text-color: #ffffff;
    --border-color: #3A5FCD;
    --focus-color: #1C3B6C;
    --button-hover-gradient: linear-gradient(to right, #1C3B6C, #3A5FCD);
    --button-gradient: linear-gradient(to right, #3A5FCD, #1C3B6C);
}

/* Le conteneur des particules */
/* On le place en arrière-plan, sur toute la page */
#tsparticles {
    position: fixed;  /* ou absolute, selon ton besoin */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;      /* Derrière le contenu principal */
    overflow: hidden;
}


/* Reset de Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html, body {
    margin: 0; 
    padding: 0;
    overflow-x: hidden; 
    /* overflow-y: auto; si nécessaire */
}


body {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Header */
.header {
    background-color: transparent;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Bebas Neue', Arial, sans-serif;
    padding: 10px 25px;
    border-radius: 50px;
    background: #222;
    border: 2px solid var(--primary-color);
    transition: background 0.3s, color 0.3s;
}

.back-link:hover {
    text-decoration: underline;
    background: #333;
}

.title {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    background: var(--button-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.shop-status {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* shop-status-circle : petit cercle en haut de la carte */
/* ... (le reste du CSS inchangé) ... */

/* Position et style du cercle */
.shop-status-circle {
  position: absolute;
  /* on le met un peu au-dessus du bloc (négatif si on veut le hors cadre) */
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer; /* main quand on survole */
}

/* Couleur verte ou rouge */
.status-circle-available {
  background-color: #28a745; /* vert */
}
.status-circle-unavailable {
  background-color: #dc3545; /* rouge */
}

/* Icône blanche */
.shop-status-icon {
  color: #ffffff;
  font-size: 14px; /* plus petit */
}

/* Infobulle "disponible / indisponible" */
.availability-bubble {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: none;
  z-index: 99999;
  white-space: nowrap;

  opacity: 1;
  transition: opacity 0.3s;
}

/* Petite flèche pour bulle à droite du cercle */
.availability-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 100%; /* la flèche sortira sur la gauche de la bulle */
  border: 5px solid transparent;
  border-right-color: rgba(0, 0, 0, 0.8); /* flèche */
}


/* ============================ */
/*       BARRE BLEUE           */
/* ============================ */
.top-bar {
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #3A5FCD, #1C3B6C);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* ============================ */
/*   DÉGRADÉ BAS DE PAGE       */
/* ============================ */
.bottom-gradient {
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to top,
    rgba(58, 95, 205, 0.2),
    rgba(28, 59, 108, 0)
  );
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
}


.separator {
    height: 2px;
    width: 90%;
    margin: 20px auto;
    background: var(--button-gradient);
    border: none;
}

.logo {
    width: 300px;
    height: auto;
    margin: 10px auto;
    background: transparent;
}

/* Main Container */
.main-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* Sections */
.section {
    margin-bottom: 60px;
}

/* Titre de section amélioré */
.section-title {
    font-size: 32px;
    color: var(--text-color);
    padding: 15px 30px;
    text-align: center;
    position: relative;
    background: linear-gradient(to right, #3A5FCD, #1C3B6C);
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
    font-family: 'Bebas Neue', cursive;
}

.section-title::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.boutiques-moment-title::before {
    content: '\f005'; /* Icône fa-star */
}

.toutes-les-boutiques-title::before {
    content: '\f54e'; /* Icône fa-store */
}

.section-title i {
    position: relative;
    z-index: 1;
    color: #FFD700;
    margin-right: 10px;
}

.section-title-text {
    position: relative;
    z-index: 1;
}

/* Swiper Styles */
.swiper-pagination {
    position: absolute; /* Revenir à position absolute pour assurer que les points de pagination restent visibles */
    bottom: 10px; /* Augmenter la valeur pour éloigner les points de pagination du bas des cartes */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    z-index: 20; /* Augmenter le z-index pour que les points de pagination soient bien visibles par-dessus les autres éléments */
}

.swiper-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Limiter la largeur pour s'adapter à votre design */
    margin: 0 auto; /* Centrer le conteneur du carrousel */
    overflow: visible;   
    padding-bottom: 30px; /* Ajouter du padding en bas pour éviter que les points de pagination ne chevauchent les cartes */
}

.swiper-wrapper {
    width: 100%;
    overflow: visible;
}

.swiper-slide {
    text-align: center;
    width: auto; /* Laisser swiper gérer la largeur des slides */
    margin: 0;
    overflow: visible; /* Assurez-vous que les slides permettent le débordement */
}

.boutique-moment {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
}

.swiper-pagination-bullet {
    width: 8px; /* Réduire la taille des points */
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Cards Grid */
.cards-grid, .boutiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Boutiques Cards */
.card {
    position: relative;
    background-color: var(--form-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.7);
}

.card-image {
    width: 100%;
    height: 200px; /* Augmentée pour mieux remplir l'espace */
    object-fit: cover; /* Remplit tout l'espace en coupant les parties excessives */
    background-color: #ffffff;
    padding: 0; /* Supprimé pour permettre à l'image de s'étendre */
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Bebas Neue', cursive;
}

.card-description {
    font-size: 16px;
    margin-bottom: 15px;
    color: #cccccc;
    flex: 1;
}

.card-conditions {
    list-style-type: none;
    margin-bottom: 15px;
}

.card-conditions li {
    font-size: 14px;
    color: #bbbbbb;
    margin-bottom: 5px;
}

/* Modification pour centrer les boutons */
.card-button {
    align-self: center; /* Centrer le bouton horizontalement */
    padding: 10px 15px;
    background: var(--button-gradient);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card-button:hover {
    background: var(--button-hover-gradient);
    transform: scale(1.05);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background-color: #333333;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 14px;
}

.filter-button:hover {
    background: var(--button-hover-gradient);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.filter-button.active {
    background: var(--button-gradient);
    color: #ffffff;
    border-color: var(--secondary-color);
}


/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .cards-grid, .boutiques-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .card-image {
        height: 150px; /* Ajusté pour les petits écrans */
        padding: 0; /* Assurez-vous que le padding est supprimé */
    }

    .card-title {
        font-size: 18px;
    }

    .card-description {
        font-size: 14px;
    }

    .card-button {
        font-size: 12px;
        padding: 8px 12px;
    }

    .filter-button {
        font-size: 12px;
        padding: 8px 12px;
    }

    .section-title {
        font-size: 24px;
    }

    /* Ajustement supplémentaire pour la pagination Swiper en mode mobile */
    .swiper-container {
        padding-bottom: 40px; /* Augmenter le padding pour les petits écrans */
    }

    .swiper-pagination {
        bottom: 15px; /* Plus bas pour les petits écrans */
    }
}

