/* Variables globales */
:root {
  --color-ebony: #2c2c2c;
  --color-anthracite: #4a4a4a;
  --color-bordeaux: #7c0a02;
  --color-powder: #e8c1c5;
  --color-cream: #f5e6da;
  --color-gold: #d4af37;
}

/* Styles de base */
body {
  font-family: "Playfair Display", serif;
  color: var(--color-anthracite);
  background-color: var(--color-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 0;
}

/* Pour ajouter le padding uniquement au contenu après le carousel */
.container.my-5 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Typographie */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--color-ebony);
  margin-bottom: 1rem;
}

#fond {
  background-color: var(--color-cream);
}
#anthracite {
  background-color: var(--color-anthracite);
  color: whitesmoke;
}
/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  background-color: var(--color-ebony);
  margin-bottom: 0;
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.navbar-toggler {
  border: 1px solid var(--color-cream);
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--color-gold);
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: var(--color-gold) !important;
  background-color: rgba(212, 175, 55, 0.1);
}

.nav-link.active {
  color: var(--color-gold) !important;
  background-color: rgba(212, 175, 55, 0.15);
}

.dropdown-menu {
  border-radius: 1rem;
  background-color: var(--color-cream);
  border: 2px solid var(--color-gold);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--color-ebony);
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.dropdown-item:hover {
  background-color: var(--color-gold);
  color: var(--color-ebony);
  transform: translateX(5px);
}

.dropdown-item.text-danger:hover {
  background-color: #dc3545;
  color: white !important;
}

.form-control {
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
}

.input-group .btn {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Footer */
.footer {
  background-color: var(--color-ebony);
  width: 100%;
  padding: 0.25rem 0;
  font-family: "Poppins", sans-serif;
  margin-top: auto;
}

.footer h5 {
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.footer p,
.footer li {
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.footer hr {
  margin: 0.25rem 0;
  opacity: 0.1;
}

.footer-link {
  color: var(--color-cream);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-link:hover {
  color: var(--color-gold);
}

.border-cream {
  border-color: var(--color-cream) !important;
  opacity: 0.2;
}

/* Liens */
a {
  color: var(--color-bordeaux);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-gold);
}

/* Utilitaires */
.text-bordeaux {
  color: var(--color-bordeaux) !important;
}

.text-gold {
  color: var(--color-gold) !important;
}

.text-cream {
  color: var(--color-cream) !important;
}

/* Cartes */
.card-base {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.card-base:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  border-color: var(--color-gold);
}

.card-base .card-body {
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--color-cream) 0%, #fff 100%);
  border-radius: 1rem;
}

/* Boutons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-bordeaux);
  border-color: var(--color-bordeaux);
  color: var(--color-cream);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--color-bordeaux);
  color: var(--color-bordeaux);
}

.btn-elegant {
  background-color: var(--color-ebony);
  border-color: var(--color-ebony);
  color: var(--color-cream);
}

.btn-elegant:hover {
  background-color: transparent;
  border-color: var(--color-ebony);
  color: var(--color-ebony);
}

.btn-outline-bordeaux {
  border-color: var(--color-bordeaux);
  color: var(--color-bordeaux);
}

.btn-outline-bordeaux:hover {
  background-color: var(--color-bordeaux);
  color: var(--color-cream);
}

.btn-cream {
  background-color: var(--color-cream);
  color: var(--color-ebony);
  border: 2px solid var(--color-cream);
  transition: all 0.3s ease;
}

.btn-cream:hover {
  background-color: transparent;
  color: var(--color-cream);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-ebony);
  border: 2px solid var(--color-gold);
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: transparent;
  color: var(--color-gold);
}

.btn-bordeaux {
  background-color: #800020;
  border-color: #800020;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-bordeaux:hover {
  background-color: #600018;
  border-color: #600018;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(128, 0, 32, 0.2);
}

.btn-bordeaux:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-bordeaux:focus {
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.badge.bg-bordeaux {
  background-color: var(--color-bordeaux) !important;
  color: var(--color-cream) !important;
  border: none;
}

.badge.bg-bordeaux i {
  color: var(--color-cream);
}

.badge.bg-gold {
  background-color: rgba(212, 175, 55, 0.1) !important;
  color: var(--color-ebony) !important;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.badge.bg-cream {
  background-color: rgba(245, 230, 218, 0.5) !important;
  color: var(--color-anthracite) !important;
  border: 1px solid rgba(245, 230, 218, 0.8);
}

/* Suppression des anciennes classes soft qui ne sont plus utilisées */
.bg-success-soft,
.bg-warning-soft,
.bg-danger-soft,
.bg-info-soft {
  display: none;
}

/* Couleurs de fond (mise à jour pour correspondre) */
.bg-bordeaux {
  background-color: rgba(124, 10, 2, 0.1);
  color: var(--color-bordeaux);
}

.bg-gold {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-ebony);
}

.bg-cream {
  background-color: rgba(245, 230, 218, 0.5);
  color: var(--color-anthracite);
}

/* Formulaires */
.form-control {
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.custom-input {
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: "Playfair Display", serif;
  background-color: white;
  transition: all 0.3s ease;
}

.custom-input:focus {
  border-color: var(--color-bordeaux);
  box-shadow: 0 0 0 0.2rem rgba(124, 10, 2, 0.1);
  outline: none;
}

/* Tableaux */
.custom-table {
  width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

.custom-table th {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.1);
  color: var(--color-ebony);
  background-color: rgba(212, 175, 55, 0.03);
}

.custom-table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  font-family: "Playfair Display", serif;
}

.card-body .custom-table tbody tr {
  background: linear-gradient(
    90deg,
    rgba(245, 230, 218, 0.3) 0%,
    rgba(245, 230, 218, 0.1) 50%,
    rgba(245, 230, 218, 0.3) 100%
  ) !important;
  transition: all 0.3s ease;
}

.card-body .custom-table tbody tr:nth-child(even) {
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(212, 175, 55, 0.05) 50%,
    rgba(212, 175, 55, 0.1) 100%
  ) !important;
}

.card-body .custom-table tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(124, 10, 2, 0.1) 0%,
    rgba(124, 10, 2, 0.05) 50%,
    rgba(124, 10, 2, 0.1) 100%
  ) !important;
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
  }

  .navbar-nav {
    margin: 1rem 0;
  }

  .dropdown-menu {
    margin-top: 0.5rem;
    width: 100%;
  }

  .form-control {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 0.2rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
  }

  .custom-input {
    font-size: 0.95rem;
  }

  .table-responsive {
    border-radius: 0.5rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .btn {
    width: 100%;
    margin: 0.25rem 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 0.5rem;
  }
}

/* Profile */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-group {
  padding: 1rem;
  border-left: 4px solid var(--color-bordeaux);
  background-color: rgba(124, 10, 2, 0.03);
  border-radius: 0 0.5rem 0.5rem 0;
}

.info-label {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: var(--color-ebony);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--color-anthracite);
  margin-bottom: 0;
  font-weight: 500;
}

/* Autres */
.badges {
  display: flex;
  gap: 0.5rem;
}

.card-footer {
  background-color: rgba(212, 175, 55, 0.03);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 1rem;
}

.card-footer .btn-group {
  gap: 0.5rem;
}

.card-footer .btn-group .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.alert-link {
  color: var(--color-bordeaux);
  text-decoration: underline;
  font-weight: 500;
}

.alert-link:hover {
  color: var(--color-gold);
}

/* Galerie photos */
.photo-item {
  border-radius: 1rem;
  position: relative;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.photo-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 1rem 1rem 0 0;
}

.photo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-item:hover .photo-image img {
  transform: scale(1.05);
}

.photo-footer {
  position: relative;
  background: white;
  padding: 1rem;
  border-radius: 0 0 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.photo-footer .gallery-name {
  color: var(--color-ebony);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  display: -moz-box;
  display: box;
  -webkit-line-clamp: 1;
  -moz-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

.photo-footer .gallery-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.photo-footer .action-buttons {
  display: flex;
  gap: 0.5rem;
}

.photo-footer .badge {
  padding: 0.5em 0.8em;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.private-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bordeaux);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour la modal */
.modal-fullscreen .modal-content {
  background: rgba(0, 0, 0, 0.95);
}

.photo-container {
  position: relative;
  max-height: 90vh;
  max-width: 90vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-photo {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 4px;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 20px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.watermark-text {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.5vw;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transform: rotate(-30deg);
  white-space: nowrap;
}

.modal-validation-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 500px;
}

.modal-validation-container:hover {
  opacity: 1;
}

.modal-validation-container .validation-status {
  margin-bottom: 0;
  font-size: 1rem;
  width: 220px;
  text-align: right;
  white-space: nowrap;
}

.modal-validation-container .validate-button {
  padding: 10px 20px;
  font-size: 0.9rem;
  width: 180px;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .modal-validation-container {
    flex-direction: column;
    gap: 10px;
    width: 90%;
  }

  .modal-validation-container .validation-status,
  .modal-validation-container .validate-button {
    width: 100%;
    text-align: center;
  }
}

/* Carousel */
.carousel {
  margin-top: 0;
  position: relative;
}

.carousel-item {
  height: 60vh;
  min-height: 300px;
  max-height: 600px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  bottom: 5%;
  z-index: 2;
  padding: 1rem;
  max-width: 80%;
  margin: 0 auto;
}

.carousel-caption h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.5);
}

.carousel-caption p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  opacity: 0.8;
  z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .carousel-item {
    height: 40vh;
    min-height: 250px;
  }

  .carousel-caption {
    bottom: 10%;
    padding: 1.5rem;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 30vh;
    min-height: 200px;
  }

  .carousel-caption {
    bottom: 5%;
    padding: 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.875rem;
  }
}

/* Page d'accueil */
.features-list li {
  padding: 0.5rem 1rem;
  background: rgba(124, 10, 2, 0.05);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.features-list li:hover {
  transform: translateX(10px);
  background: rgba(124, 10, 2, 0.1);
}

.featured-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.featured-image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}

.featured-image-container:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .carousel-item {
    height: 40vh;
    min-height: 250px;
  }

  .carousel-caption {
    bottom: 10%;
    padding: 1rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 30vh;
    min-height: 200px;
  }

  .carousel-caption {
    bottom: 5%;
    padding: 0.75rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }
}

/* Styles pour le formulaire d'édition de galerie */
.form-card {
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, var(--color-cream) 0%, #fff 100%);
  backdrop-filter: blur(10px);
}

.form-card .card-header {
  background-color: rgba(212, 175, 55, 0.03);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
}

.form-card .card-header h1 {
  color: var(--color-ebony);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

.form-card .card-body {
  padding: 1.5rem;
}

.form-label {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: var(--color-ebony);
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: "Playfair Display", serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-bordeaux);
  box-shadow: 0 0 0 0.2rem rgba(124, 10, 2, 0.1);
}

.form-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  color: var(--color-anthracite);
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 0.5rem;
}

.preview-item .remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #dc3545;
  transition: all 0.2s ease;
}

.preview-item .remove:hover {
  background-color: #dc3545;
  color: white;
}

.preview-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--color-bordeaux);
  border-color: var(--color-bordeaux);
}

.btn-group-vertical {
  gap: 0.5rem;
}

.existing-photos {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.existing-photos h4 {
  color: var(--color-ebony);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Styles pour le tableau de bord administrateur */
.card-base {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-card {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.carousel-preview {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.carousel-preview-item {
  flex: 0 0 200px;
  position: relative;
}

.carousel-preview-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.featured-preview {
  text-align: center;
}

.featured-preview img {
  max-height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Styles pour les tableaux du tableau de bord */
.table {
  margin-bottom: 0;
}

.table th {
  border-top: none;
  font-weight: 600;
}

.badge {
  font-weight: 500;
  padding: 0.5em 1em;
}

@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 1rem;
  }
}

/* Styles spécifiques aux galeries */
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card-image {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
}

.gallery-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.05);
}

.placeholder-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color-powder), var(--color-cream));
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image i {
  font-size: 3rem;
  color: var(--color-bordeaux);
  opacity: 0.5;
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.gallery-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  max-height: 3em;
}

.gallery-card-content {
  padding: 1.5rem;
  background: white;
}

.gallery-card-actions {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-create {
  background-color: var(--color-gold);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.btn-create:hover {
  background-color: #c19b2c;
  color: white;
}

.btn-action {
  background-color: transparent;
  border: 2px solid var(--color-bordeaux);
  color: var(--color-bordeaux);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background-color: var(--color-bordeaux);
  color: var(--color-cream);
}

.btn-action-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-container {
    padding: 0 1rem;
  }

  .gallery-card-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
  }

  .gallery-title {
    font-size: 1.25rem;
  }

  .gallery-description {
    font-size: 0.85rem;
  }
}

/* Styles pour les boutons de positionnement du carrousel */
.position-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.position-controls .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.position-controls .btn:hover {
  background-color: var(--color-bordeaux);
  border-color: var(--color-bordeaux);
  color: white;
  transform: translateY(-2px);
}

.position-controls .btn:active {
  transform: translateY(0);
}

.position-controls .badge {
  min-width: 30px;
  font-weight: 600;
  background-color: var(--color-cream);
  color: var(--color-ebony);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.photo-validation {
  padding: 0.75rem;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.validation-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-anthracite);
}

.validation-status.validated {
  color: #28a745;
}

.validation-status i {
  font-size: 1.1rem;
}

.validate-button {
  background: transparent;
  border: 1px solid #6c757d;
  color: #6c757d;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 100%;
}

.validate-button:hover {
  background: #6c757d;
  color: white;
}

.validate-button.validated {
  background: transparent;
  border-color: #28a745;
  color: #28a745;
}

.validate-button.validated:hover {
  background: #28a745;
  color: white;
}

.photo-item {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-item img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
}

.photo-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* Styles pour la modal */
.modal-xl .modal-body img {
  max-height: 70vh;
  width: auto;
  margin: 0 auto;
  display: block;
}

.photo-validation {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 5px;
  margin-top: 1rem;
}

.validation-status {
  font-size: 1.1em;
  margin-bottom: 0.5rem;
}

.validate-button {
  background: transparent;
  border: 2px solid #ffc107;
  color: #000;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  width: auto;
  min-width: 200px;
}

.validate-button:hover {
  background: #ffc107;
  color: #000;
}

.validate-button.validated {
  border-color: #28a745;
}

.validate-button.validated:hover {
  background: #28a745;
  color: #fff;
}

/* Styles pour la modal photo */
.modal-dialog {
  max-width: 100%;
  margin: 0;
  height: 100vh;
}

.modal-content {
  height: 100vh;
  border: none;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.modal-photo {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border: none;
  color: var(--color-ebony);
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1050;
  border-radius: 0.5rem;
}

.modal-prev {
  left: 1rem;
}

.modal-next {
  right: 1rem;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.9);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: none;
  color: var(--color-ebony);
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1050;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.9);
}

.modal-validation {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-validation .validation-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: static;
  background: none;
  padding: 0;
}

.modal-validation .validate-button {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: auto;
}

.modal-validation .validate-button:hover {
  background: white;
  color: black;
}

.modal-validation .validate-button.validated {
  border-color: #28a745;
  color: #28a745;
}

.modal-validation .validate-button.validated:hover {
  background: #28a745;
  color: white;
}

@media (max-width: 768px) {
  .modal-nav {
    font-size: 1.5rem;
    padding: 0.75rem;
  }

  .modal-close {
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
  }
}

/* Styles pour la modale photo */
.photo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
}

.modal-photo {
  max-height: 100vh;
  max-width: 100vw;
  object-fit: contain;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 1;
}

.watermark-text {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.5vw;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transform: rotate(-30deg);
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000;
  font-size: 1.5rem;
  z-index: 1050;
  opacity: 0.75;
}

.modal-prev {
  left: 1.5rem;
}

.modal-next {
  right: 1.5rem;
}

.modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000;
  font-size: 1.5rem;
  z-index: 1050;
  opacity: 0.75;
}

.modal-nav:hover,
.modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-prev:hover {
  transform: scale(1.1) translateY(-50%);
}

.modal-next:hover {
  transform: scale(1.1) translateY(-50%);
}

.modal-content {
  border: none;
}

.modal-dialog {
  margin: 0;
}

/* Styles pour les galeries privées */
.gallery-card-image.private-gallery img {
  filter: blur(8px);
}

@media (max-width: 768px) {
  .photo-image img {
    max-height: 300px;
  }
}

/* Boutons outline */
.btn-outline-elegant {
  color: var(--color-ebony);
  border: 1px solid var(--color-ebony);
  background: transparent;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.btn-outline-elegant:hover {
  background: var(--color-ebony);
  color: var(--color-cream);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-bordeaux {
  color: var(--color-bordeaux);
  border: 1px solid var(--color-bordeaux);
  background: transparent;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.btn-outline-bordeaux:hover {
  background: var(--color-bordeaux);
  color: var(--color-cream);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-gold {
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  background: transparent;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-ebony);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ajustement de la taille des boutons */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  line-height: 1.2;
  border-radius: 4px;
}

/* Style commun pour les boutons dans la barre d'actions */
.d-flex.gap-2 .btn-sm {
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.d-flex.gap-2 .btn-sm i {
  font-size: 0.9rem;
}

/* Animation commune pour tous les boutons */
.btn-sm:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Style pour le formulaire de verrouillage dans la barre d'actions */
.gallery-toggle-lock-form {
  margin: 0;
  display: inline-flex;
}

/* Styles de gallery-grid.css */
.page-content {
  display: flex;
  gap: 1rem;
}

.sidebar-container {
  flex: 0 0 250px;
}

.main-content {
  flex: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 550px));
  gap: 3rem;
  margin-top: 5em;
  justify-content: center;
}

.gallery-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: #fff;
  font-size: 0.9rem;
  width: 100%;
}

.gallery-card:hover {
  transform: translateY(-2px);
}

.gallery-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  overflow: hidden;
}

.gallery-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card-image.private-gallery {
  position: relative;
}

.gallery-card-image.private-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.gallery-card-image.private-gallery::after {
  content: "\f023";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--color-bordeaux);
  z-index: 2;
  background: none;
  width: auto;
  height: auto;
  pointer-events: none;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.05);
}

.gallery-card-body {
  padding: 0.75rem;
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: var(--color-ebony);
}

.gallery-card-content {
  padding: 0.5rem;
  background-color: var(--color-cream);
  border-radius: 0 0 6px 6px;
  font-size: 0.8rem;
}

.gallery-card .badge {
  font-size: 0.75rem;
  padding: 0.2em 0.4em;
}

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 450px));
    gap: 0.4rem;
  }
}

@media (max-width: 768px) {
  .page-content {
    flex-direction: column;
  }

  .sidebar-container {
    flex: none;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 450px));
    gap: 0.4rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 450px);
  }
}

/* Styles pour le tableau de bord admin */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background-color: var(--color-cream);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  color: var(--color-bordeaux);
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-ebony);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-anthracite);
}

.card-base {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour la barre latérale */
.gallery-sidebar {
  background-color: var(--color-cream);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  color: var(--color-ebony);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-bordeaux);
  padding-bottom: 0.5rem;
}

.gallery-sidebar .accordion-button {
  background-color: white;
  color: var(--color-ebony);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.gallery-sidebar .accordion-button:hover {
  background-color: rgba(124, 10, 2, 0.05);
  color: var(--color-bordeaux);
  transform: translateX(5px);
}

.gallery-sidebar .accordion-button.active {
  background-color: rgba(124, 10, 2, 0.1);
  color: var(--color-bordeaux);
  font-weight: 700;
}

.gallery-sidebar .accordion-button::after {
  display: none;
}

.gallery-sidebar .accordion-button:not(.collapsed)::after {
  display: none;
}

.gallery-sublist {
  padding: 0.5rem 0 0.5rem 1rem;
  margin-left: 1rem;
  border-left: 2px solid var(--color-bordeaux);
}

.gallery-item-container {
  position: relative;
  margin-bottom: 0.3rem;
}

.gallery-item-container:last-child {
  margin-bottom: 0;
}

.gallery-controls {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.gallery-item-container:hover .gallery-controls {
  opacity: 1;
}

.gallery-controls .btn-link {
  color: var(--color-bordeaux);
  padding: 0.125rem 0.25rem;
  font-size: 0.8rem;
}

.gallery-controls .btn-link:hover {
  color: var(--color-gold);
}

.gallery-subitem {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-anthracite);
  font-size: 0.95rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
  margin-bottom: 0.3rem;
  background-color: white;
}

.gallery-subitem:hover {
  background-color: rgba(124, 10, 2, 0.05);
  color: var(--color-bordeaux);
  transform: translateX(5px);
}

.gallery-subitem.active {
  background-color: rgba(124, 10, 2, 0.1);
  color: var(--color-bordeaux);
  font-weight: 600;
}

.gallery-photo-count {
  color: var(--color-anthracite);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Styles pour la page de modification du profil */
.profile-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--color-cream);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.profile-form .form-group {
  margin-bottom: 1.5rem;
}

.profile-form .form-control {
  border: 1px solid rgba(124, 10, 2, 0.1);
}

.profile-form .form-control:focus {
  border-color: var(--color-bordeaux);
  box-shadow: 0 0 0 0.2rem rgba(124, 10, 2, 0.1);
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .profile-form {
    padding: 1rem;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn {
    width: 100%;
  }
}

.photo-select {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.photo-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 0.25rem;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.photo-checkbox:checked {
  background-color: var(--color-bordeaux);
  border-color: var(--color-bordeaux);
}

.photo-checkbox:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: white;
  font-size: 0.8rem;
}

.photo-checkbox:hover {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: white;
}

.photo-checkbox:checked:hover {
  background-color: var(--color-bordeaux);
  opacity: 0.9;
}

.d-flex.justify-content-between.align-items-center.mb-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem !important;
}

.d-flex.justify-content-between.align-items-center.mb-4 .btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.d-flex.justify-content-between.align-items-center.mb-4 .btn {
  white-space: nowrap;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: fit-content;
}

@media (max-width: 768px) {
  .d-flex.justify-content-between.align-items-center.mb-4 {
    flex-direction: column;
    align-items: stretch !important;
  }

  .d-flex.justify-content-between.align-items-center.mb-4 .btn-group {
    width: 100%;
  }

  .d-flex.justify-content-between.align-items-center.mb-4 .btn {
    flex: 1;
  }
}

.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transform: rotate(-45deg);
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.btn-bordeaux-outline {
  color: #7c0a02;
  border-color: #7c0a02;
  background-color: transparent;
  transition: all 0.3s ease;
}
.btn-bordeaux-outline:hover {
  color: #fff;
  background-color: #7c0a02;
  border-color: #7c0a02;
}

.position-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.position-controls .btn {
  padding: 0.2rem 0.4rem;
}

.card-header {
  background-color: #f8f9fa;
}
.existing-photo-item {
  position: relative;
  margin-bottom: 1rem;
}
.existing-photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.photo-delete-form {
  position: absolute;
  top: 10px;
  right: 10px;
}
.photo-delete-form button {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(220, 53, 69, 0.9);
  border: none;
}
.photo-delete-form button:hover {
  background-color: #dc3545;
}
.position-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.position-controls .btn {
  padding: 0.2rem 0.4rem;
}

.table-sm td {
  padding: 0.3rem;
  vertical-align: middle;
}

.accordion-button {
  padding: 0.75rem 1rem;
}

.gallery-sidebar .table {
  margin-bottom: 0;
  background-color: #f8f9fa;
}

.gallery-sidebar .table td {
  border-color: #dee2e6;
}

.gallery-sidebar .table thead th {
  background-color: #e9ecef;
  border-bottom: 2px solid #dee2e6;
  padding: 0.5rem;
  font-size: 0.9rem;
}
/* Styles pour les photos de la galerie */
.gallery-photo {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: #f8f9fa;
}

.gallery-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

.photo-select-check {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  z-index: 2;
}

.photo-select-check .form-check-input {
  margin: 0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.2);
}

.photo-select-check .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Styles pour les previews de photos */
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  width: calc(33.333% - 0.67rem);
  aspect-ratio: 1;
  border-radius: 0.25rem;
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  color: #dc3545;
}

.preview-item .remove:hover {
  background: rgba(255, 255, 255, 1);
}

/* Styles pour les autorisations */
.model-release-card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
}

.model-release-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1.25rem;
  border-radius: 8px 8px 0 0;
}

.model-release-card .card-header h1,
.model-release-card .card-header h3 {
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

.model-release-table {
  margin-top: 1rem;
}

.model-release-table th {
  background-color: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.model-release-table td {
  vertical-align: middle;
  color: #2c3e50;
}

.model-release-table .btn-group {
  gap: 0.5rem;
}

.model-release-form .form-label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.model-release-form .form-control {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.model-release-form .form-control:focus {
  border-color: #800020;
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25);
}

.model-release-form .form-text {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.model-release-actions {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

/* Style pour le select des autorisations existantes */
.model-release-select {
  border-radius: 6px 0 0 6px !important;
}

.model-release-select + .btn {
  border-radius: 0 6px 6px 0;
}

/* Animation hover sur les lignes du tableau */
.model-release-table tbody tr {
  transition: background-color 0.3s ease;
}

.model-release-table tbody tr:hover {
  background-color: rgba(128, 0, 32, 0.05);
}
