/* #region Header Slider */

/* Conteneur principal */
.header {
  position: relative;
  width: 100%;
  height: 100vh;
  color: #fff;
  overflow: hidden;
}

.header-slider-wrapper {
  width: 100%;
  height: 100%;
}

.header-slider {
  display: flex;
  height: 100%;
}

.slide {
  flex: 1 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

@keyframes kenBurns {
  from {
    transform: scale(1) rotate(-1deg);
  }
  to {
    transform: scale(1.15) rotate(1deg);
  }
}

.slide.is-active .slide-bg-img {
  animation: kenBurns 12s infinite alternate ease-in-out;
}

.slide-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.header-txt {
  max-width: 800px;
  padding: 2rem;
}

.header-txt h1,
.header-txt p,
.header-txt .btn {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide.is-active .header-txt h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.slide.is-active .header-txt p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}
.slide.is-active .header-txt .btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.header-txt h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.header-txt h1 span {
  color: var(--color-accent, #e74c3c);
}

.header-txt p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.7);
}

.btn.btn-primary {
  padding: 15px 35px;
  background-color: var(--color-primary, #2c3e50);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.btn.btn-primary:hover {
  background-color: var(--color-accent, #e74c3c);
  transform: translateY(-3px);
}

.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .header-txt h1 {
    font-size: 2.5rem;
  }
  .header-txt p {
    font-size: 1rem;
  }
  .slider-nav {
    width: 100%;
    justify-content: center;
  }
  .slider-nav .slider-arrow {
    display: none;
  }
  .header::before,
  .header::after {
    content: "\276E";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .header::before {
    left: 15px;
  }
  .header::after {
    content: "\276F";
    right: 15px;
  }
}

/* #endregion */

/* #region RESET & TYPOGRAPHIE GLOBALE */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: #8a6d3b;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Marcellus", serif;
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

/* #endregion */

/* #region Carrousel de mots */

.word-services {
  width: 100%;
  overflow: hidden;
  background: #3f4f44;
  padding: 10px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  position: relative;
}

.word-services-content {
  display: flex;
  gap: 40px;
  animation: marquee 40s linear infinite;
  color: beige;
}

.word-services-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.word-services-item span {
  font-weight: bold;
  color: #a89c29;
  white-space: pre;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}

/* #endregion */

/* #region Section À propos v2 - Concept "Reflet d'Élégance" */

.about-us-v2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 85%;
  max-width: 1600px;
  margin: 7rem auto;
  position: relative;
  min-height: 650px;
}

.about-us-v2-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
}

.img-container {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-out;
}

.about-us-v2:hover .img-container {
  transform: scale(1.02);
}

.itmimg {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
}

.itmimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.itmimg:hover img {
  transform: scale(1.1);
}

.itmimg-1 {
  width: 45%;
  height: 70%;
  top: 0;
  left: 5%;
  transition-delay: 0.1s;
}
.itmimg-2 {
  width: 35%;
  height: 40%;
  bottom: 0;
  left: 0;
  transition-delay: 0.3s;
}
.itmimg-3 {
  width: 30%;
  height: 45%;
  top: 10%;
  right: 90px;
  transition-delay: 0.2s;
}
.itmimg-4 {
  width: 40%;
  height: 35%;
  bottom: 5%;
  right: -5%;
  transition-delay: 0.4s;
}

.txt-about-us-v2 {
  flex: 0 0 50%;
  text-align: left;
  position: relative;
  z-index: 10;
  padding: 3rem;
  border-radius: 12px;
  background: #2a362d;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.4s;
}

.txt-about-us-v2 h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent, #e74c3c);
  margin-bottom: 0.5rem;
}

.txt-about-us-v2 h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.txt-about-us-v2 h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #b48560;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.8s;
}

.txt-about-us-v2 p {
  font-size: 1rem;
  line-height: 1.8;
  color: white;
  margin-bottom: 1rem;
}

.txt-about-us-v2 p strong {
  color: #b48560;
  font-weight: 600;
}

.about-us-v2.is-visible .itmimg {
  opacity: 1;
}

.about-us-v2.is-visible .txt-about-us-v2 {
  opacity: 1;
  transform: translateX(0);
}

.about-us-v2.is-visible h1::after {
  transform: scaleX(1);
}

@media (max-width: 1200px) {
  .about-us-v2-background {
    width: 55%;
  }
  .txt-about-us-v2 {
    flex-basis: 55%;
  }
}

@media (max-width: 992px) {
  .about-us-v2 {
    flex-direction: column;
    width: 90%;
    margin: 4rem auto;
    min-height: auto;
  }
  .about-us-v2-background {
    position: relative;
    width: 100%;
    height: 450px;
    margin-bottom: -5rem;
  }
  .txt-about-us-v2 {
    width: 90%;
    align-self: center;
    padding: 2rem;
    flex-basis: auto;
  }
  .txt-about-us-v2 h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .about-us-v2-background {
    height: 350px;
    margin-bottom: -3rem;
  }
  .txt-about-us-v2 {
    width: 100%;
    padding: 1.5rem;
  }
  .itmimg-4 {
    display: none;
  }
  .itmimg-1 {
    width: 60%;
    height: 60%;
  }
  .itmimg-2 {
    width: 45%;
    height: 40%;
  }
  .itmimg-3 {
    width: 40%;
    height: 40%;
    right: 5%;
  }
}

/* #endregion */

/* #region Galerie CSS */

:root {
  --color-primary: #3f4f44;
  --color-secondary: #f2ede7;
  --color-accent: #b48560;
  --color-text: #333333;
  --color-background: #ffffff;
}

.gallery-section {
  width: 100%;
  padding: 5rem 0;
  background-color: var(--color-primary);
  margin: 3rem auto;
}

.gallery-section .section-header {
  width: 80%;
  max-width: 1700px;
  margin: 0 auto 3.5rem auto;
  color: white;
}

.section-header.text-center {
  text-align: center;
}

.gallery-section .section-title {
  font-size: 2.2rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 1.25rem;
  width: 80%;
  max-width: 1700px;
  margin: 0 auto;
}

.grid-item {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid-item:hover::after {
  opacity: 0.2;
}

.item-tall {
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
}

/* Tablette & petits ordinateurs portables */
@media (max-width: 1200px) {
  .section-header,
  .gallery-grid-container {
    width: 85%;
  }
  .gallery-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 1rem;
  }
}

/* Tablette verticale */
@media (max-width: 992px) {
  .section-header,
  .gallery-grid-container {
    width: 90%;
  }
  .item-wide {
    grid-column: span 1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .gallery-grid-container {
    grid-auto-rows: 220px;
  }
}

/* Petit mobile */
@media (max-width: 576px) {
  .section-header,
  .gallery-grid-container {
    width: 95%;
  }
  .gallery-grid-container {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
    gap: 0.75rem;
  }
}

/* #endregion */

/* #region SECTION - Carte & Contact */

.map-section {
  position: relative;
  width: 100%;
}

.map-container iframe {
  width: 100%;
  height: 550px;
  border: 0;
  vertical-align: middle; /* Supprime un petit espace sous l'iframe */
}

.contact-info-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  background-color: var(--color-background);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 90%;
  z-index: 10;
}

.contact-info-overlay h3 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info-overlay p,
.contact-info-overlay li {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-info-overlay .address {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-info-overlay strong {
  font-weight: 600;
}

.contact-info-overlay .hours ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.directions-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.directions-btn:hover {
  background-color: #2a362d;
}

/* ----------- Responsivité ----------- */
@media (max-width: 992px) {
  .contact-info-overlay {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .map-section {
    position: static; /* Annule la position relative */
    padding-bottom: 2rem; /* Espace pour l'ombre du bloc */
  }

  .map-container iframe {
    height: 400px;
  }

  .contact-info-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
  }
}
/* #endregion */

/* #region Section Services Détaillés */

section.services-detailed.container.section-padding {
  max-width: 1700px;
  margin: auto;
  width: 80vw;
}

.services-detailed-txt {
  margin: 4rem 0; /* J'ai retiré la marge latérale pour un meilleur centrage */
  text-align: center;
}

.services-grid {
  display: grid;
  /* CHANGEMENT 1 : La largeur minimale passe de 280px à 250px.
    C'est le changement principal qui rendra les cartes plus petites.
    */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card-service {
  position: relative;
  /* CHANGEMENT 2 (Optionnel mais recommandé) : J'ai ajusté le ratio pour
    que la carte soit un peu moins haute, ce qui la rend plus compacte. 
    */
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-service:hover img {
  transform: scale(1.1);
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem; /* Léger ajustement du padding */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 50%
  );
}

.card-content h3 {
  color: white;
  /* CHANGEMENT 3 : Police légèrement réduite pour s'adapter à la nouvelle taille */
  font-size: 1.5rem;
  font-family: "Playfair Display", serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* La partie détaillée qui apparaît au survol */
.card-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(12px) brightness(0.8);
  -webkit-backdrop-filter: blur(12px) brightness(0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.card-service:hover .card-details {
  opacity: 1;
  pointer-events: auto;
}

.card-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  color: white;
}

.card-details li {
  /* CHANGEMENT 4 : Police et espacement de la liste réduits pour l'harmonie */
  font-size: 0.95rem;
  padding: 0.4rem 0;
  font-weight: 400;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* L'animation en cascade se joue au survol de la carte parente */
.card-service:hover .card-details li {
  opacity: 1;
  transform: translateY(0);
}

/* Décalage de la transition pour chaque item de la liste */
.card-service:hover .card-details li:nth-child(1) {
  transition-delay: 0.1s;
}
.card-service:hover .card-details li:nth-child(2) {
  transition-delay: 0.2s;
}
.card-service:hover .card-details li:nth-child(3) {
  transition-delay: 0.3s;
}
.card-service:hover .card-details li:nth-child(4) {
  transition-delay: 0.4s;
}
.card-service:hover .card-details li:nth-child(5) {
  transition-delay: 0.5s;
}

/* #endregion */

/* #region Section Héros v2 - Concept "Héros Animé Cross-Fade" */

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-1%, 1%);
  }
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-image.active {
  opacity: 1;
  animation: kenburns 15s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: 800px;
}

.hero-text {
  position: absolute;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-text.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text h1 span {
  color: var(--color-accent, #e74c3c);
  display: block;
}

.hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  padding: 12px 30px;
  background-color: var(--color-accent, #e74c3c);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
}

@media (min-width: 768px) {
  .hero-text h1 span {
    display: inline;
  }
}

/* #endregion */

/* #region Section Témoignages Complète */

.testimonials-section {
  padding: 5rem 0;
  background-color: var(--color-background, #fdfaf6);
  position: relative;
  text-align: center;
  overflow-x: hidden;
}

.testimonials-carousel-wrapper:hover .testimonial-slider {
  animation-play-state: paused;
}

.testimonials-header {
  width: 90%;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.testimonials-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 450px; /* Hauteur fixe pour aligner les cartes */
  perspective: 2000px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.testimonial-slider {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  will-change: transform;
  animation: marquee 90s linear infinite;
}

.testimonials-carousel-wrapper:hover .testimonial-slider {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex: 0 0 auto;
  width: 380px;
  margin: 0 20px;
  box-sizing: border-box;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  transform: rotateY(-6deg) scale(0.9);
}

.testimonial-card:hover {
  transform: rotateY(0deg) scale(1.05) translateZ(40px);
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testimonial-content {
  background-color: var(--color-secondary, #ffffff);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  border: 1px solid #e0d9d1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.testimonial-content::before {
  content: "\201C";
  font-family: "Georgia", serif;
  position: absolute;
  top: 5px;
  left: 15px;
  font-size: 8rem;
  color: var(--color-primary);
  opacity: 0.05;
  z-index: 1;
}

.client-info,
.testimonial-rating,
.testimonial-text,
.testimonial-date-wrapper {
  position: relative;
  z-index: 2;
}

.client-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.client-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid var(--color-accent, #ae7e59);
}

.client-details {
  text-align: left;
}

.client-details h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin: 0;
}

.client-details p {
  color: var(--color-text);
  margin: 0;
  font-size: 0.9rem;
}

.testimonial-rating {
  margin-bottom: 1rem;
  color: #f39c12;
  text-align: left;
}

.testimonial-text {
  text-align: left;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  flex-grow: 1;
}

.testimonial-date-wrapper {
  text-align: right;
  margin-top: 1rem;
}

.testimonial-date {
  font-size: 0.85rem;
  color: var(--color-text);
  opacity: 0.7;
}

.testimonials-footer {
  text-align: center;
  margin-top: 3rem;
}

#share-experience-btn {
  padding: 0.9rem 2rem;
  background-color: var(--color-accent, #ae7e59);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#share-experience-btn:hover {
  background-color: var(--color-primary, #3e4a40);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px var(--color-accent, #ae7e59);
}

.testimonial-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.testimonial-modal .modal-content {
background-color: #fff;
    margin: auto;
    margin-top: 8%;
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 800px;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
}

/* Style pour la zone de glisser-déposer */
.upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  position: relative;
}

.upload-area:hover,
.upload-area.active { /* Style quand on survole avec un fichier */
  border-color: var(--color-accent, #b48560);
  background-color: #f9f9f9;
}

.upload-instructions i {
  font-size: 2.5rem;
  color: var(--color-accent, #b48560);
  margin-bottom: 1rem;
}

.upload-instructions p {
  margin: 0.25rem 0;
  color: #666;
}

.upload-instructions span {
  color: var(--color-accent, #b48560);
  font-weight: bold;
  text-decoration: underline;
}

.visually-hidden { /* Pour cacher l'input original */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Style pour l'aperçu de l'image */
.preview-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#imagePreview {
  max-width: 120px;
  max-height: 120px;
  border-radius: 6px;
  object-fit: cover;
}

.remove-image-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.add-testimonial h3 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 600;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(180, 133, 96, 0.3);
}

.rating-group {
  display: flex;
  align-items: center;
}

.rating-group span {
  font-weight: 600;
  margin-right: 1rem;
}

.rating-group .stars i {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.rating-group .stars i:hover,
.rating-group .stars i.fas {
  color: #f39c12;
}

.upload-area {
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
}

.upload-area.active,
.upload-area:hover {
  border-color: var(--color-accent);
}

.upload-instructions i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.preview-container {
  position: relative;
  display: inline-flex;
}

#imagePreview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 6px;
}

.remove-image-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#testimonial-form .submit-btn {
  width: 100%;
  padding: 0.9rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#testimonial-form .submit-btn:hover {
  background-color: #2a362d;
}

/* #endregion */
