﻿/* ============================ */
/*       VARIABLES GLOBALES     */
/* ============================ */


:root {
  --primary-color: #3A5FCD;        /* Bleu principal */
  --secondary-color: #1C3B6C;      /* Bleu foncé / secondaire */
  --background-color: #1c1c1c;     /* Fond sombre */
  --text-color: #ffffff;           /* Texte blanc */
  --highlight-color: #f7c945;      /* Jaune doré */
  --button-gradient: linear-gradient(to right, #3A5FCD, #1C3B6C);
  --button-hover-gradient: linear-gradient(to right, #1C3B6C, #3A5FCD);
  --form-background: #2e2e2e;      /* Coloration pour blocs internes */
}

/* ============================ */
/*        RESET / GLOBAL        */
/* ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}


body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  overflow-x: hidden; /* Empêche le scroll horizontal */
  padding-bottom: 60px; /* Pour la bottom-gradient */
}

/* 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;
}


/* ============================ */
/*       BARRE BLEUE           */
/* ============================ */
.top-bar {
  width: 100%;
  height: 5px;
  background: var(--button-gradient);
  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;
}

/* ============================ */
/*       BOUTON RETOUR          */
/* ============================ */
/* ============================ */
/*       BOUTON RETOUR          */
/* ============================ */
.back-link {
    display: inline-block;
    margin: 40px 0 20px 0; /* Ajout de 40px de marge supérieure */
    font-size: 16px; /* Taille de police réduite */
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Bebas Neue', Arial, sans-serif;
    padding: 8px 20px; /* Réduction du padding */
    border-radius: 50px;
    background: #222;
    border: 2px solid var(--primary-color);
    transition: background 0.3s, color 0.3s;
}

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

/* ============================ */
/*       CONTAINER GLOBAL       */
/* ============================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 20px; 
  /* 80px en haut pour dégager l'espace sous la top-bar en position fixed */
  position: relative;
  overflow: hidden;
}

/* ============================ */
/*           LOGO               */
/* ============================ */
.logo {
  width: 300px;
  height: auto;
  margin: 10px auto;
  background: transparent;
}

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

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

/* ============================ */
/*       TEXTE INTRODUCTIF      */
/* ============================ */
.intro-text {
  font-size: 18px;
  color: #ddd;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* ============================ */
/*         TITRES H2            */
/*    (même style que boutiques)*/
/* ============================ */
.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 32px;
  color: var(--text-color);
  padding: 15px 30px;
  text-align: center;
  position: relative;
  background: var(--button-gradient);
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  overflow: hidden; /* Évite que le pseudo-élément dépasse et provoque un scroll */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Espace entre l'icône <i> et le texte */
}

/* Les icônes (fa) devant le texte */
.section-title i {
  color: rgba(255, 255, 255, 0.6); /* Icône blanche avec moins de luminosité */
  font-size: 1.5em;
  position: relative;
  z-index: 1;
}

/* Texte du titre */
.section-title-text {
  position: relative;
  z-index: 1;
}

/* Watermark (en arrière-plan) */
.avis-recents-title::before {
  content: "\f017"; /* Icône fa-clock */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgba(255, 255, 255, 0.1); /* Moins lumineux */
  z-index: 0;
}

.meilleurs-avis-title::before {
  content: "\f164"; /* Icône fa-thumbs-up */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgba(255, 255, 255, 0.1); /* Moins lumineux */
  z-index: 0;
}

/* ============================ */
/*       SWIPER CARROUSEL       */
/* ============================ */
.swiper-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding-bottom: 30px;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Pour un meilleur rendu sur mobile, évite tout overflow */
  width: auto;
  margin: 0;
}

/* Pagination (points) */
.swiper-pagination {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  transform: none;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--secondary-color);
  opacity: 0.7;
  transition: all 0.3s;
}

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

/* ============================ */
/*        BLOCS "AVIS"          */
/* ============================ */
.avis-item {
  background: var(--form-background);
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px; /* Largeur max pour éviter trop grand sur grand écran */
  width: 100%; /* Assure que les avis remplissent la slide */
}

.avis-item:hover {
  transform: translateY(-5px);
}

.avis-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s;
  background: #fff; /* Pour mieux contraster la photo */
}

.avis-image:hover {
  opacity: 0.8;
}

/* ============================ */
/*   POP-UP : AFFICHAGE IMAGE   */
/* ============================ */
.image-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;  /* 100% de la fenêtre */
  height: 100vh; /* 100% de la fenêtre */
  display: none; /* Par défaut caché */
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.image-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-popup-content img {
  max-width: 100%;
  max-height: 100%;
  border: 4px solid var(--primary-color);
  border-radius: 10px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}
.close-popup:hover {
  color: var(--highlight-color);
}

/* ============================ */
/*           RESPONSIVE         */
/* ============================ */
@media (max-width: 768px) {
  .title {
    font-size: 32px;
  }
  .section-title {
    font-size: 24px;
    padding: 10px 20px;
  }
  .avis-recents-title::before,
  .meilleurs-avis-title::before {
    font-size: 60px;
  }
  .avis-item {
    max-width: 320px;
  }
  .intro-text {
    font-size: 16px;
    padding: 0 10px;
  }
}

