body {
  background-color: black;
  color: white;
}

/* Pour que le carrousel prenne toute la page */
.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  transform: translateZ(0);
}

/* Toujours garder toutes les images visibles en superposition */
.carousel-inner {
  position: relative;
  height: 100vh;
}

.carousel-item.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.carousel-item-next,
.carousel-item-prev {
  opacity: 1;
}

/* Centrer l'image du logo en haut */
.logo {
  text-align: center;
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  max-width: 350px;
}

/* Style pour les boutons */
.navbar {
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  background-color: transparent;
}

.navbar a {
  margin: 0 15px;
  padding: 10px 20px;
  text-decoration: none;
  background-color: transparent;
  color: white;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Style pour l'icône home */
.navbar a i {
  margin-right: 5px;
}

/* Style pour le lien actif */
.navbar a.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Style pour l'effet hover sur les liens de navigation */
.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Suppression de la marge pour que le carrousel commence en haut */
.main-content {
  margin-top: 0;
}

/* Header non fixe */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* Style pour les sections */
.container {
  background-color: black;
  color: white;
}

/* Style pour le footer */
footer {
  background-color: black;
  color: white;
  padding: 50px 0 20px;
}

.footer-logo img {
  max-width: 200px;
}

.social-icons a {
  color: white;
  font-size: 24px;
  margin: 0 10px;
  text-decoration: none;
}

.social-icons a:hover {
  color: #888;
}

.copyright {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
}

/* Nouveau style pour le slider des partenaires */
.partners-slider {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 20px 0;
}

.partners-track {
  display: flex;
  transition: transform 0.5s ease-out;
  gap: 40px;
  padding: 0 20px;
}

.partner-logo {
  flex: 0 0 auto;
  padding: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logo img {
  height: 80px;
  width: auto;
}

/* Style pour les cartes du portfolio */
.portfolio-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 30px;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  color: white;
  font-size: 2em;
  margin-bottom: 10px;
  text-align: center;
}

.portfolio-subtitle {
  color: #ddd;
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.portfolio-btn:hover {
  background: white;
  color: black;
}

/* Style pour l'image de présentation */
.presentation-img {
  aspect-ratio: 4/5;
  width: 50%;
  object-fit: cover;
  border-radius: 8px;
}

/* Styles spécifiques pour category.html */
.gallery-container {
  padding-top: 150px;
  min-height: calc(100vh - 400px);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.gallery-item {
  position: relative;
  flex: 0 1 auto;
  min-width: 300px;
  max-width: 800px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* Ajout de classes pour différents formats */
.gallery-item.portrait {
  width: 300px;
}

.gallery-item.landscape {
  width: 600px;
}

.gallery-item.panorama {
  width: 800px;
}

.category-header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(to right, #000000, #1a1a1a);
  margin-bottom: 40px;
  border-radius: 10px;
}

.category-title {
  font-size: 3em;
  margin: 0;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.back-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 1);
  color: white;
  transform: translateY(-2px);
}

.no-images {
  text-align: center;
  padding: 50px;
  font-size: 1.2em;
  color: #666;
}

/* Style pour la vue en plein écran */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fullscreen-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-image {
  max-width: 95%;
  max-height: 95vh;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.fullscreen-overlay.active .fullscreen-image {
  transform: scale(1);
  opacity: 1;
}

.close-button {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2em;
  cursor: pointer;
  z-index: 10000;
}

/* Style pour l'indicateur de chargement */
.loading-indicator {
  color: white;
  font-size: 2em;
}

.loading-indicator i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Style pour le message de chargement */
.loading-message {
  text-align: center;
  padding: 40px;
}

.loading-message.hidden {
  display: none;
}

/* Styles pour la page contact */
.contact-container {
  padding-top: 150px;
  min-height: calc(100vh - 400px);
  max-width: 800px;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 300;
  letter-spacing: 1px;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.9em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px;
  border-radius: 0;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: #fff;
  box-shadow: none;
  outline: none;
}

.contact-form .submit-btn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 30px;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form .submit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.error-message {
  color: #ff3333;
  font-size: 0.9em;
  margin-top: 5px;
  min-height: 20px;
}

.form-control.error {
  border-bottom-color: #ff3333;
  background: rgba(255, 51, 51, 0.05);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Style pour Turnstile */
.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.turnstile-wrapper iframe {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
} 