/* 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;
}

.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;
}

/* 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(3, 1fr); /* 3 colonnes côte à côte */
  gap: 20px;
  padding: 40px;
  background-color: #f8f7f2;
  max-width: 1200px;
  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: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #181847;
  color: #fff;
}

.about-photo {
  width: 200px;
  border-radius: 50%;
  margin-right: 40px;
}

.about-photo img {
  width: 100%;
  object-fit: cover;
  border-radius: 50%; /* Garde l'effet circulaire */
  border: 2px solid #fff;
}


.about-text {
  max-width: 500px;
}

.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%;
    height: 400px; /* Hauteur uniforme pour toutes les images */
    object-fit: cover; /* S'assure que l'image garde sa forme sans être déformée */
}

.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;
  }

  .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 */
  }

  
  /* Ajouter cette règle à la place */
  .photo-categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px; /* Réduire davantage 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 */
  }
  
  /* 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 */
  }
  
  /* S'assurer que la section prend presque toute la largeur */
  .photo-categories {
    width: 98%; /* Prend presque toute la largeur */
    margin: 5px auto; /* Centrer avec une mini marge */
  }

  /* About section - Photo au-dessus du texte sur mobile */
    .about-photo {
    width: 120px; /* Encore plus petit sur mobile */
    margin-right: 0; /* Enlever la marge droite sur mobile */
    margin-bottom: 20px; /* Ajouter espace sous la photo */
  }
  
  .about-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px; /* Réduire légèrement le padding vertical */
  }
  
  .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));
  gap: 20px;
  padding: 0 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background-color: #fff;
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: contain; /* Préserve les proportions naturelles */
  background-color: #f8f7f2; /* Fond léger pour les images */
}

//* 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%;
  display: block;
  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 */
    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;
  }
  
  /* Ajuster la taille des images dans la galerie */
  .gallery-item img {
    height: auto; /* Hauteur adaptative */
  }
  
  /* 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;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid #ddd;
}