/* Importation de Montserrat et DM Serif Text depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');

/* Global */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f7f2; /* Beige clair */
  color: #333;
  font-weight: 400;
  line-height: 1.6;
}

/* Style pour tous les titres */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Text', serif;
  letter-spacing: 0.01em;
}

/* Style spécifique pour les grands titres */
h1 {
  font-weight: 400;
}

/* Style pour les sous-titres */
h3, h4, h5, h6 {
  font-weight: 400;
}

/* Styles pour les menus de navigation */
.nav-menu a {
  font-family: 'DM Serif Text', serif; /* Changement de police pour les menus */
  font-weight: 400;
  font-size: 1.2rem;
}

/* Autres éléments spécifiques en DM Serif Text */
.portfolio-intro h1, 
.contact-intro h1,
.etapes-projet h2,
.filter-btn,
.portfolio-filter button {
  font-family: 'DM Serif Text', serif;
}

/* Mise à jour des styles spécifiques pour les boutons de filtre */
.filter-btn {
  font-weight: 400;
  letter-spacing: 0.02em;
}
/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  background-color: #fff; /* Beige clair */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: visible; /* Évite la coupure des éléments */
  height: 60px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  z-index: 10; /* Assure que le logo passe au-dessus des autres éléments */
}

.logo img {
  height: 90px; /* Taille ajustée du logo */
}

.nav-menu {
  display: flex;
  color: #d2b48c; /* Beige foncé */
  flex-direction: row;
  align-items: center;
  position: absolute;
  right: 0;
  width: calc(50% - 100px); /* Prend presque toute la place à droite du logo */
  justify-content: space-around;
  border-top: 2px solid #181847; /* Bordure en haut */
  border-bottom: 2px solid #181847; /* Bordure en dessous des menus */
  padding-bottom: 10px;
  padding-top: 10px;
}

/* Styles pour les menus déroulants */
.nav-item {
  position: relative;
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* Ajouter un padding invisible pour créer une zone de hover continue */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 100;
  border: 2px solid #181847;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.dropdown-content a {
  color: #d2b48c;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  border-bottom: 1px solid #f8f7f2;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f8f7f2;
  color: #181847;
  padding-left: 22px;
}

.nav-menu-galerie {
  display: flex;
  color: #d2b48c; /* Beige foncé */
  flex-direction: row;
  align-items: center;
  position: absolute;
  right: 0;
  justify-content: space-around;
  border-top: 2px solid #181847; /* Bordure en haut */
  border-bottom: 2px solid #181847; /* Bordure en dessous des menus */
  padding-bottom: 10px;
  padding-top: 10px;
}

.nav-menu a, .nav-menu-galerie a {
  margin: 0 10px;
  text-decoration: none;
  color: #d2b48c; /* Beige foncé */
  font-weight: 500;
  padding: 5px 10px;
  font-size: 1.2rem; /* Texte plus grand */
  position: relative;
  transition: all 0.3s ease-in-out; /* Animation fluide */
}

.nav-menu a:hover, .nav-menu-galerie a:hover {
  color: #181847;
}

/* Icônes réseaux sociaux dans le header */
.social-links {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-links a {
  color: #d2b48c;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.social-links svg {
  width: 30px;
  height: 30px;
}

.social-links a:hover {
  color: #181847;
}

/* Bouton de menu pour le responsive */
.menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  font-size: 2rem;
  z-index: 20;
}


/* Catégories de photographie */
.photo-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes côte à côte */
  gap: 20px;
  padding: 40px;
  background-color: #f8f7f2;
  max-width: 1400px; /* Augmenté pour 4 photos */
  margin: 0 auto;
}

.category-item {
  background-color: #f8f7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px;
  height: 500px; /* Augmenter la hauteur des images */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 2s ease-in-out forwards;
}

.category-item:nth-child(1) { animation-delay: 0s; }
.category-item:nth-child(2) { animation-delay: 0.5s; }
.category-item:nth-child(3) { animation-delay: 1s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit la case sans déformation */
}

/* Style pour les liens dans les catégories - sans effets au survol */
.category-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Suppression de tout style spécial au survol */
.category-item a:hover img {
  /* Pas d'effet de zoom ou autre */
}

.category-item::after {
  /* Suppression de l'overlay au survol */
  display: none;
}

/* Présentation */
.about-section {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* Les éléments prennent toute la hauteur */
  justify-content: center;
  padding: 60px 20px;
  background-color: #181847;
  color: #fff;
  gap: 40px; /* Espace entre la photo et le texte */
}

.about-photo {
  flex: 0 0 auto; /* Ne se réduit pas et ne s'agrandit pas */
  width: 350px; /* Largeur de la photo */
  display: flex;
  align-items: stretch;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Couvre toute la hauteur */
  object-position: center; /* Centre l'image */
  border-radius: 8px; /* Coins légèrement arrondis */
  border: 3px solid #fff;
}


.about-text {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  margin-bottom: 10px;
}

/* Logos des entreprises - Alternative horizontale */
.trust-section {
  padding: 40px 20px;
  background-color: #f8f7f2;
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.trust-content h2 {
  margin: 0;
  font-size: 24px;
  width: 30%; /* Fixed proportion */
  text-align: right;
  padding-right: 20px;
}

.logo-container {
  width: 50%; /* Fixed proportion */
}

.logo-container img {
  width: 100%;
  height: auto;
}


@media screen and (max-width: 768px) {
  .trust-content {
    flex-direction: column; /* Passe en disposition verticale */
    gap: 20px; /* Espace entre le texte et l'image */
  }
  
  .trust-content h2 {
    width: 100%; /* Pleine largeur sur mobile */
    text-align: center; /* Centre le texte */
    padding-right: 0; /* Supprime le padding */
    margin-bottom: 15px; /* Ajoute un espace sous le titre */
  }
  
  .logo-container {
	width: 100%;
  }
  
  .logo-container img {
    width: 100%; /* Pleine largeur sur mobile */
  }
}

/* Section Prestations */

.prestations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Prestations */

.prestations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style pour le texte d'introduction des prestations */
.intro-prestations {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 20px auto;
  text-align: center;
  color: #181847;
  padding: 10px 20px;
  position: relative;
  letter-spacing: 0.3px;
  border-top: 1px solid #d2b48c;
  border-bottom: 1px solid #d2b48c;
}

.intro-prestations::before,
.intro-prestations::after {
  content: "";
  position: absolute;
  height: 8px;
  width: 15%;
  background-color: #d2b48c;
}

.intro-prestations::before {
  top: -4px;
  left: 42%;
}

.intro-prestations::after {
  bottom: -4px;
  left: 42%;
}

/* Animation subtile au survol */
.intro-prestations:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

/* Style pour les paragraphes dans les éléments de prestation */
.prestation-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.prestation-item:hover p {
  color: #181847;
}

/* Style spécifique pour le prix */
/* Position le prix en bas */
.prestation-item .prix {
  font-weight: bold;
  color: #181847;
  text-align: center;
  font-size: 1.1rem;
  padding: 8px 0;
  border-top: 1px dotted #d2b48c;
  border-bottom: 1px dotted #d2b48c;
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

/* Style pour ligne horizontale avant le prix */
.prestation-item hr {
  border: none;
  border-top: 1px dotted #d2b48c;
  margin: 20px 0;
}

/* Mise en évidence des mots-clés */
.keyword {
  color: #181847;
  font-weight: 600;
}


.prestation-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative; /* Permet le positionnement absolu à l'intérieur */
  height: 100%; /* S'assure que tous les éléments ont la même hauteur */
  display: flex;
  flex-direction: column;
}

.prestation-item img {
    width: 100%;
    max-width: 400px; /* Largeur maximale */
    height: auto; /* Hauteur automatique pour garder le ratio */
    aspect-ratio: 4 / 5; /* Ratio 800x1000 = 4:5 */
    object-fit: cover; /* Remplit l'espace tout en gardant les proportions */
    object-position: center; /* Centre l'image */
    margin: 0 auto; /* Centre l'image dans le conteneur */
    display: block;
}

.prestation-item h2 {
	text-align: center;
    margin-top: 15px;
    font-size: 1.5rem;
    color: #333;
}

.prestation-item p {
    font-size: 1rem;
    color: #555;
}


/* Section LES ÉTAPES D'UN PROJET avec photo */
.process-container {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    gap: 40px;
    align-items: flex-start;
}

.process-image {
    flex: 1;
    position: sticky;
    top: 100px;
}

.process-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-image img:hover {
    transform: scale(1.02);
}

.etapes-projet {
    flex: 2;
    max-width: 100%;
    margin: 0;
}

.etapes-projet h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: left;
    color: #181847;
    position: relative;
    padding-bottom: 15px;
}

.etapes-projet h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #d2b48c;
}

.etape {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-left: 5px solid transparent;
    position: relative;
}

.etape:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #d2b48c;
}

.etape h3 {
    margin: 0;
    color: #181847;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.etape h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d2b48c;
    margin-right: 10px;
}

.etape-content {
    display: none;
    padding: 15px 0 5px 18px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    border-left: 1px dashed #d2b48c;
    margin-left: 4px;
    margin-top: 10px;
    transition: all 0.4s ease-in-out;
}

.etape-content.active {
    display: block;
    animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicateur visuel pour montrer qu'on peut cliquer */
.etape::after {
    content: "⌵";
    position: absolute;
    right: 20px;
    color: #d2b48c;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.etape.active::after {
    transform: rotate(180deg);
}

/* Style responsive pour mobile */
@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
    }
    
    .process-image {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .etapes-projet h2 {
        text-align: center;
    }
    
    .etapes-projet h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .etape {
        padding: 15px;
    }
    
    .etape-content {
        padding: 10px 0 5px 15px;
    }
}

/* Remplacer ce bloc dans style.css */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .social-links {
    position: absolute;
    left: 15px;
    border: none;
    padding: 5px;
    gap: 10px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100px;
    background-color: #fff;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #181847;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    backdrop-filter: blur(10px); /* Flou du fond */
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    color: #333;
    font-size: 1.1rem;
  }

  .nav-menu a:hover {
    color: #d2b48c; /* Beige foncé sur hover */
  }

  /* Styles pour les dropdowns sur mobile */
  .nav-item.dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid #d2b48c;
    margin-left: 20px;
    transform: none;
    background-color: #f8f7f2;
  }

  .dropdown-content a {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .nav-item.dropdown.active .dropdown-content {
    display: block;
  }


  /* Ajouter cette règle à la place */
  .photo-categories {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    gap: 8px; /* Réduire l'espace entre les images */
    padding: 8px; /* Réduire au minimum les marges extérieures */
    max-width: 100%; /* S'assurer que ça prend toute la largeur disponible */
    width: 98%; /* Prend presque toute la largeur */
    margin: 5px auto; /* Centrer avec une mini marge */
  }

  /* Ajuster les éléments individuels */
  .category-item {
    height: auto; /* Adaptation automatique de la hauteur */
    min-height: 120px; /* Hauteur minimale réduite */
    padding: 2px; /* Réduire le padding intérieur */
  }

  /* About section - Photo au-dessus du texte sur mobile */
  .about-photo {
    width: 100%; /* Prend toute la largeur sur mobile */
    max-width: 300px; /* Mais pas trop large */
    height: auto;
    margin-bottom: 30px; /* Espace sous la photo */
  }

  .about-photo img {
    height: auto; /* Hauteur automatique sur mobile */
    max-height: 400px; /* Hauteur maximale */
  }

  .about-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px; /* Réduire légèrement le padding vertical */
    gap: 0; /* Pas de gap sur mobile */
  }
  
  .prestations {
    grid-template-columns: 1fr;
  }
}


/* Contact Introduction */
.contact-intro {
  text-align: center;
  padding: 40px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro h1 {
  color: #181847;
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.contact-intro h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d2b48c;
}

.contact-intro p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Contact Layout */
.contact-container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto 60px;
  gap: 40px;
  padding: 0 20px;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form {
  flex: 2;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Contact Cards */
.contact-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #181847;
}

.contact-card h3 {
  color: #181847;
  margin-bottom: 10px;
}

.contact-card p {
  color: #555;
  margin: 0;
}

.contact-card a {
  color: #d2b48c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #181847;
}

.contact-message {
  background-color: #181847;
  color: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-message p {
  font-style: italic;
  margin: 0;
}

/* Form Styling */
.contact-form h2 {
  color: #181847;
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.contact-form h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: #d2b48c;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #181847;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

input:focus, textarea:focus {
  border-color: #d2b48c;
  box-shadow: 0 0 0 2px rgba(210, 180, 140, 0.2);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  background-color: #181847;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: block;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
}

button:hover {
  background-color: #22225a;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
    margin-bottom: 30px;
  }
}

/* Styles spécifiques pour la page Portfolio */

/* Introduction du portfolio */
.portfolio-intro {
  text-align: center;
  padding: 40px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.portfolio-intro h1 {
  color: #181847;
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.portfolio-intro h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d2b48c;
}

.portfolio-intro p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Style de base pour les filtres (desktop) */
.portfolio-filter {
  margin: 40px auto;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
}

.filter-btn {
  padding: 10px 25px;
  background-color: transparent;
  border: 2px solid #d2b48c;
  color: #181847;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 5px;
}

.filter-btn:hover {
  background-color: #d2b48c;
  color: #fff;
}

.filter-btn.active {
  background-color: #181847;
  border-color: #181847;
  color: #fff;
}

/* Style pour desktop - tous les boutons alignés horizontalement */
@media (min-width: 769px) {
  .portfolio-filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .filter-buttons-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
  }
  
  /* S'assurer que le style mobile ne s'applique pas sur desktop */
  .filter-btn[data-filter="all"] {
    width: auto;
    margin-bottom: 0;
    background-color: transparent;
    color: #181847;
  }
  
  .filter-btn.active {
    background-color: #181847;
    color: #fff;
  }
}

/* Ajustements spécifiques pour les boutons sur mobile */
@media (max-width: 768px) {
  /* Conteneur des boutons */
  .filter-buttons-row {
    display: flex;
    justify-content: center;
    gap: 5px; /* Réduire l'espacement entre les boutons */
    width: 100%;
    flex-wrap: wrap; /* Permettre le retour à la ligne au besoin */
  }
  
  /* Réduire la taille et le padding des boutons de catégorie */
  .filter-btn:not([data-filter="all"]) {
    padding: 8px 12px; /* Padding plus petit */
    font-size: 0.85rem; /* Texte plus petit */
    min-width: 0; /* Permettre aux boutons de rétrécir */
    flex-shrink: 1; /* Permettre aux boutons de rétrécir */
  }
  
  /* S'assurer que le contenu du bouton s'adapte */
  .filter-btn {
    white-space: nowrap; /* Éviter que le texte ne passe à la ligne */
    overflow: hidden; /* Masquer le débordement si nécessaire */
    text-overflow: ellipsis; /* Ajouter des points de suspension si le texte est trop long */
  }
}

/* Pour les très petits écrans (moins de 375px) */
@media (max-width: 475px) {
  .filter-buttons-row {
    gap: 3px; /* Encore moins d'espace */
  }
  
  .filter-btn:not([data-filter="all"]) {
    padding: 6px 10px; /* Padding minimal */
    font-size: 0.8rem; /* Texte encore plus petit */
  }
}

/* Galerie de photos */
/* Galerie de photos avec proportions naturelles */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 400px; /* Hauteur fixe pour toutes les lignes */
  gap: 20px;
  padding: 0 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: visible; /* Permet à l'ombre de l'image de se voir */
  box-shadow: none; /* Pas d'ombre sur le conteneur */
  transition: all 0.4s ease;
  background-color: #f8f7f2; /* Même couleur que le fond de la page */
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center; /* Centre horizontalement */
  height: 100%; /* Prend toute la hauteur de la cellule de grille */
}

.gallery-item img {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Ombre directement sur l'image */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain; /* Garde l'image entière visible */
  object-position: center; /* Centre l'image */
}

//* Galerie de photos sans overlay */
/* Amélioration du design de la galerie */
.gallery-masonry {
  columns: 3;
  column-gap: 25px; /* Augmentation de l'espace entre les colonnes */
  padding: 0 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 25px; /* Augmentation de l'espace vertical */
  transition: all 0.3s ease;
}

/* Animation plus subtile et professionnelle */
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Ajout de lazy loading aux images */
/* À ajouter dans l'HTML pour chaque image: loading="lazy" */

.gallery-item img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Overlay d'information sur l'image */
.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(24, 24, 71, 0.9), transparent);
  color: #fff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  opacity: 0;
}

.gallery-item:hover .item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.item-overlay h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
}

.item-overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Animation d'apparition */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
/* Ajouter plus de délais si nécessaire pour plus d'images */

/* Responsive design */
@media (max-width: 1024px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .portfolio-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn[data-filter="all"] {
    width: 80%;
    margin-bottom: 15px;
    background-color: #181847;
    color: white;
  }
  
  .filter-buttons-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  
  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 photos par ligne sur mobile */
    grid-auto-rows: 250px; /* Hauteur fixe pour mobile */
    gap: 8px; /* Réduire l'espace entre les photos */
    padding: 0 10px 40px; /* Réduire le padding horizontal */
  }

  /* Ajuster les éléments individuels si nécessaire */
  .gallery-item {
    margin-bottom: 8px;
    height: 100%; /* Prend toute la hauteur de la cellule */
  }

  /* Ajuster la taille des images dans la galerie - garder le centrage */
  .gallery-item img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  /* Pour la galerie masonry, si utilisée */
  .gallery-masonry {
    columns: 2; /* Forcer 2 colonnes */
  }
}

/* Styles pour les messages du formulaire de contact - à ajouter à votre style.css */

/* Container pour les messages de formulaire */
.form-message {
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
  display: none;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
}

/* Style pour les messages de succès */
.form-message.success {
  background-color: rgba(67, 160, 71, 0.1);
  color: #2e7d32;
  border: 1px solid #81c784;
}

/* Style pour les messages d'erreur */
.form-message.error {
  background-color: rgba(211, 47, 47, 0.1);
  color: #c62828;
  border: 1px solid #e57373;
}

/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styles pour le bouton désactivé pendant l'envoi */
button[type="submit"]:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Messages de chargement et d'erreur de la galerie */
.loading-indicator,
.error-message,
.info-message {
  text-align: center;
  padding: 40px 20px;
  font-size: 1.1rem;
  color: #666;
}

.error-message {
  color: #d32f2f;
  background-color: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 8px;
  margin: 20px;
}

.info-message {
  color: #1976d2;
  background-color: #e3f2fd;
  border: 1px solid #64b5f6;
  border-radius: 8px;
  margin: 20px;
}

.loading-indicator {
  font-style: italic;
}

/* Google Reviews Section */
.google-reviews-section {
  padding: 60px 20px;
  background-color: #fff;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-container h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #181847;
}

/* Résumé de la note */
.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f8f7f2;
  border-radius: 10px;
}

.rating-stars {
  font-size: 2rem;
}

.rating-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.2rem;
}

.rating-number {
  font-size: 2rem;
  font-weight: 600;
  color: #181847;
}

.rating-count {
  color: #666;
  font-size: 1rem;
}

/* Carousel des avis */
.reviews-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.reviews-carousel {
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 25px;
  padding: 5px; /* Un peu de padding pour éviter que l'ombre soit coupée */
}

/* 3 cartes visibles côte à côte */
.review-card {
  min-width: calc(33.333% - 17px); /* 33.33% moins le gap proportionnel */
  max-width: calc(33.333% - 17px);
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Boutons de navigation */
.carousel-btn {
  background-color: #181847;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: #2a2a6a;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Indicateurs de pagination */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
  background-color: #d2b48c;
  transform: scale(1.2);
}

.dot.active {
  background-color: #181847;
  transform: scale(1.3);
}

/* Carte d'avis */
.review-card {
  background-color: #f8f7f2;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d2b48c;
}

.review-avatar-initial {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d2b48c, #c4a57b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  border: 2px solid #d2b48c;
  flex-shrink: 0;
}

.review-author {
  display: flex;
  flex-direction: column;
}

.review-author strong {
  color: #181847;
  font-size: 1.1rem;
}

.review-date {
  color: #666;
  font-size: 0.9rem;
}

.review-rating {
  margin-bottom: 15px;
}

.star {
  font-size: 1.3rem;
  margin-right: 2px;
}

.star-full {
  color: #ffa500;
}

.star-half {
  color: #ffa500;
  opacity: 0.5;
}

.star-empty {
  color: #ddd;
}

.review-text {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer des avis */
.reviews-footer {
  text-align: center;
  margin-top: 30px;
}

.view-all-reviews {
  display: inline-block;
  padding: 15px 40px;
  background-color: #181847;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'DM Serif Text', serif;
  transition: background-color 0.3s ease;
}

.view-all-reviews:hover {
  background-color: #2a2a6a;
}

/* Messages de chargement et d'erreur */
.loading-reviews {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

.no-reviews,
.reviews-error {
  text-align: center;
  padding: 40px;
  color: #666;
}

.reviews-error a {
  color: #181847;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .review-card {
    min-width: 100%; /* 1 carte visible sur mobile */
    max-width: 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .rating-summary {
    flex-direction: column;
    gap: 10px;
  }

  .reviews-container h2 {
    font-size: 2rem;
  }

  .reviews-carousel-wrapper {
    gap: 10px;
  }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid #ddd;
}