/* Reset global */
* {
  box-sizing: border-box;
}

/* Police */
@font-face {
  font-family: 'MaPolice';
  src: url('/fonts/tan-nimbus.otf') format('truetype');
}
/* Application de la police au body */
body {
  font-family: 'MaPolice', sans-serif; /* Application de la police personnalisée */
  margin: 0;
  padding: 0;
  background-color: #222; /* Fond noir légèrement différent */
  color: #fff;
  line-height: 1.6;
}

/* 1. Style de l'écran de chargement */
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000; /* Fond noir pour le contraste */
display: flex;
justify-content: center;
align-items: center;
z-index: 9999; /* Pour qu'il soit toujours au-dessus du contenu */
opacity: 1;
transition: opacity 5s ease-in-out;
}

/* 2. Contenu de l'écran de chargement */
.loader-container {
text-align: center;
}

.loader-logo {
width: 100px;
height: auto;
animation: rotateLogo 1.5s linear infinite;
margin-bottom: 20px;
}

/* 3. Animation de rotation du logo */
@keyframes rotateLogo {
0% {
    transform: rotate(0deg);
}
100% {
    transform: rotate(360deg);
}
}

/* 4. Progression de la barre de chargement */
.progress-bar {
width: 100%;
height: 5px;
background-color: #ddd;
position: relative;
}

.progress-bar::after {
content: "";
width: 0;
height: 100%;
background-color: #ff6600; /* Couleur de la barre */
position: absolute;
left: 0;
top: 0;
animation: loadingProgress 3s linear infinite;
}

/* 5. Animation de la barre de progression */
@keyframes loadingProgress {
0% {
    width: 0%;
}
50% {
    width: 50%;
}
100% {
    width: 100%;
}
}

/* 6. Masquer l'écran de chargement après le chargement */
#loading-screen.loaded {
opacity: 0;
pointer-events: none;
transition: opacity 1s ease-in-out;
}

/* 7. Rendre le contenu principal invisible jusqu'à ce que l'écran de chargement disparaisse */
#content {
opacity: 0;
transition: opacity 1s ease-in-out;
}

/* 8. Afficher le contenu une fois l'écran de chargement disparu */
#content.loaded {
opacity: 1;
}


/* En-tête - ajout du fond noir froissé */
header {
  text-align: center;
  padding: 2rem;
  background-image: url('/assets/img/paper-crumpled-black.jpg'); /* Fond papier froissé (à remplacer avec le bon fichier) */
  background-size: cover;
  background-position: center;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Logo dans l'en-tête */

.logo {
  width: 250px; /* Ajuste la taille du logo */
  height: auto;
}

/* Titre et description */
header h1 {
  font-size: 3rem;
  color: #ffffff;/* Couleur orange */
  margin-bottom: 1rem;
}

header p {
  font-size: 1.5rem;
  color: #f17d5a /* Couleur rubis */;
}

/* Section des redirections */
.redirections {
  background-color: #222; /* Fond noir légèrement différent */
  text-align: center;
  margin-top: 5rem;
}

.redirections h2 {
  font-size: 2.5rem;
  color: #ffffff /* Orange */
}

.redirections p {
  font-size: 1.2rem;
}

/* Flexbox pour organiser les cartes */
.redirection-cards {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Style des cartes */
.card {
  margin-top: 5rem;
  background-color: #333;
  border-radius: 10px;
  padding: 2rem;
  width: 30%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}


.card i {
  font-size: 3rem;
  color: #fd8d6b; /* Orange */
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.card .cta-btn {
  padding: 1rem 2rem;
  background-color: #f17d5a;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.card .cta-btn:hover {
  background-color: #f17d5a;
}

/* Animation des icônes */
.fab, .fas {
  transition: transform 0.3s ease;
}

.card:hover i {
  transform: rotate(20deg);
}

/* Style général des boutons streetwear */
.cta-btn {
display: inline-block;
padding: 12px 30px;
background-color: #ff5733; /* Orange vif pour un look urbain dynamique */
color: white;
text-decoration: none;
font-weight: bold;
text-transform: uppercase; /* Lettres en majuscule pour un look plus "street" */
font-size: 1.1rem;
border-radius: 5px;
letter-spacing: 2px; /* Espacement des lettres pour donner un style plus audacieux */
transition: all 0.3s ease-in-out; /* Transition fluide pour l'animation */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre légère pour un effet 3D */
}

/* Effet au survol */
.cta-btn:hover {
background-color: #222; /* Change la couleur de fond en noir pour l'effet contraste */
color: #ff5733; /* Le texte devient orange */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Ombre plus marquée pour un effet 3D */
border: 2px solid #ff5733; /* Bordure orange pour la touche street */
}

/* Effet au clic (active) */
.cta-btn:active {
transform: translateY(5px); /* Le bouton semble "appuyé" au clic */
box-shadow: none; /* Enlève l'ombre pour un effet "pression" */
}

/* Effet de focus pour la navigation au clavier */
.cta-btn:focus {
outline: none; /* Retire le contour par défaut */
box-shadow: 0 0 10px 2px rgba(255, 87, 51, 0.7); /* Ombre orange pour le focus */
}


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

  .card {
    width: 80%;
    margin-bottom: 2rem;
  }
}

/* Style du Footer */
footer {

  background-color: #222; /* Fond noir légèrement différent */
  color: #fff; /* Texte blanc pour contraster avec le fond */
  text-align: center;
  font-family: 'MaPolice', sans-serif; /* Police de caractère */
  box-shadow: 0 5px 50px rgba(0, 0, 0, 0.3);
}

footer .footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Si l'écran est trop petit, les sections se réorganisent */
}

footer .footer-section {
  flex: 1 1 300px; /* Chaque section occupe un maximum de 300px */
  margin: 1rem;
  padding: 1rem;
}

footer .footer-section h3, footer .footer-section h4 {
  font-size: 1.5rem;
  color: #f17d5a; /* Couleur rubis pour les titres */
  margin-bottom: 1rem;
}

footer .footer-section p, footer .footer-section ul {
  font-size: 1rem;
  color: #ccc; /* Couleur des textes secondaires */
  line-height: 1.6;
}

footer .footer-section ul {
  list-style-type: none; /* Supprimer les puces des listes */
  padding-left: 0;
}

footer .footer-section ul li {
  margin: 0.5rem 0;
}

footer .footer-section ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer .footer-section ul li a:hover {
  color: #fd8d6b; /* Couleur au survol */
}

footer .footer-bottom {
  background-color: #1a1a1a;
  padding: 0,5rem;
}

footer .footer-bottom p {
  font-size: 0.9rem;
}

footer .coloraa {
  color: #ffffff;
  text-decoration: none;
}

footer .coloraa:hover {
  color:#fd8d6b;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  footer .footer-content {
    flex-direction: column;
    align-items: center;
  }
}

.sneaker-gallery {
  text-align: center;
  background: #111;
  padding: 50px 0;
  color: white;
}

.sneaker-gallery h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.sneaker-gallery p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* 🎯 GRID AVEC MARGE ENTRE LES CARTES */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: auto;
  height: auto;
  gap: 20px; /* Légère marge entre les cartes */
  padding: 0 20px; /* Marge horizontale autour de la galerie */
}

/* 💎 Sneakers Cards avec hauteur augmentée */
.sneaker-card {
  position: relative;
  width: 100%;
  height: 600px; /* Augmenter la hauteur de la carte */
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3); /* Ombre légère pour un effet de profondeur */
}

/* Zoom léger à l'intérieur de la carte */
.sneaker-card:hover {
  transform: scale(1.03);
}

/* 🖼️ Images Sneakers avec ajustement */
.sneaker-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* S'assure que l'image couvre tout le conteneur sans déformation */
  transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
  display: block;
  object-position: center; /* Centre l'image à l'intérieur de la carte */
}

/* 🎯 Zoom sur image lors du hover */
.sneaker-card:hover img {
  filter: brightness(70%);
  transform: scale(1.05);
}

/* 🔥 Overlay Description */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.sneaker-card:hover .overlay {
  transform: translateY(0);
}

/* 🏷️ Texte Overlay */
.overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overlay p {
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

/* 🛒 Bouton Acheter */
.btn-buy {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: linear-gradient(45deg, orangered, red);
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.btn-buy:hover {
  background: linear-gradient(45deg, red, orangered);
  transform: scale(1.1);
}

/* 🎯 RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .gallery-container {
      grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }
}

@media (max-width: 768px) {
  .gallery-container {
      grid-template-columns: repeat(1, 1fr); /* 1 colonne sur mobile */
  }
}