/* Réinitialisation de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: #4b5563; /* text-gray-600 */
  line-height: 1.5;
}

/* Section principale */
.gallery-section {
  padding: 6rem 1.25rem; /* py-24 px-5 */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* En-tête */
.header {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5rem; /* mb-20 */
  width: 100%;
}

.title-wrapper {
  width: 100%;
  margin-bottom: 1.5rem;
}

.title-wrapper h1 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 500;
  color: #111827; /* text-gray-900 */
  margin-bottom: 0.5rem;
}

.divider {
  height: 0.25rem; /* h-1 */
  width: 5rem; /* w-20 */
  background-color: #6366f1; /* bg-indigo-500 */
  border-radius: 0.25rem;
}

.description {
  width: 100%;
  color: #6b7280; /* text-gray-500 */
  line-height: 1.625;
}

/* Design Responsif pour l'en-tête (Bureau) */
@media (min-width: 1024px) {
  .title-wrapper {
    width: 50%;
    margin-bottom: 0;
    padding-right: 1.5rem;
  }
  .title-wrapper h1 {
    font-size: 1.875rem; /* sm:text-3xl */
  }
  .description {
    width: 50%;
  }
}

.grid {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem;
  justify-content: center;
}

.card-wrapper {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
}

/* Optionnel : Supprime le contour bleu au clic pour l'esthétique */
.card-wrapper:focus {
  outline: none;
}

/* Design Responsif pour la grille (Tablette) */
@media (min-width: 768px) {
  .card-wrapper {
    width: 50%; /* md:w-1/2 */
  }
}

/* Design Responsif pour la grille (Grand écran) */
@media (min-width: 1280px) {
  .card-wrapper {
    width: 33%; /* xl:w-1/4 */
  }
}

/* Styles individuels des cartes */
.card {
  background-color: #f3f4f6; /* bg-gray-100 */
  padding: 1.5rem; /* p-6 */
  border-radius: 0.5rem; /* rounded-lg */
  height: 100%;
  transition:
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.card:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.card img {
  height: 10rem;
  width: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

.card-subtitle {
  color: #6366f1; /* text-indigo-500 */
  font-size: 0.75rem; /* text-xs */
  font-weight: 500;
  letter-spacing: 0.1em; /* tracking-widest */
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.125rem; /* text-lg */
  color: #111827; /* text-gray-900 */
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1rem; /* text-base */
  line-height: 1.625;
}

.carousel-container {
  width: 100%;
  height: 100vh;
  position: relative;
  top: 0;
  z-index: 1;
}

#carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}
