body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #7b9a7d;
  color: #fff;
  padding: 0;
  overflow-x: hidden;
}

/* En tête */

header {
  padding: 2rem 1rem;
  text-align: center;
}

.header-center {
  display: inline-block;
}

header h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  margin: 0;
  display: flex;           /* aligne texte + logo horizontalement */
  justify-content: center; /* centre le contenu horizontalement */
  align-items: center;     /* centre verticalement */
  gap: 0.5rem;             /* espace entre texte et logo */
}

.logo-inline {
  height: 2em;          /* la hauteur égale à la hauteur de la ligne du texte */
  width: auto;          /* largeur automatique pour garder les proportions */
  vertical-align: middle;
}

.subtitle {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.phrase_question {
  background-color: #fce9a3;
  color: #444;
  margin: 2rem auto;
  padding: 2.5rem;
  max-width: 700px;
  text-align: center;
  border-radius: 1rem;
}

.phrase_question h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.phrase_question p {
  font-size: 1rem;
  margin: 0;
}

.services-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 800px;
}

.services {
  background-color: #fce9a3;
  color: #444;
  padding: 1rem;
  border-radius: 1rem;
  width: 200px;
}

.services h2 {
  font-family: 'Great Vibes', cursive;
  text-align: center;
  margin-bottom: 1rem;
}

.services ul {
  list-style: none;
  padding: 0;
}

.services li {
  margin-bottom: 0.5rem;
}

.service-image img {
  width: 220px;
  border-radius: 0.5rem;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
}

/* Projets */
.projets2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.projets2img {
  transition: transform 0.3s ease;
  cursor: pointer;
  width: 250px;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.projets1 {
  display: flex;
  gap: 1rem; /* espace entre les images */
  justify-content: center;
  align-items: flex-start; /* pas nécessaire, mais évite les alignements bizarres */
}

.projets1img_hor {
  transition: transform 0.3s ease;
  cursor: pointer;
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.projets1img_hor:hover,
.projets2img:hover  {
  transform: scale(1.05); /* Grossissement au survol */
}

@media (max-width: 600px) {
  .projets1 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projets1img_hor {
    height: 50%;  /* prend presque toute la largeur */
    max-width: 80%;
    margin-bottom: 1rem; /* un peu d’espace entre les affiches */
  }
}

/* ------------------------------------------------- PIED DE PAGE  --------------------------------------------------*/

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}



/* ------------------------------------------------- CONTACTS  --------------------------------------------------*/

.contact {
  text-align: center;
  padding: 2rem 1rem;
}

.contact p {
  margin: 0.3rem 0;
}

.contactez_moi {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin-top: 2rem;
}

.contact table {
  margin: 0 auto; /* Centre le tableau */
  text-align: center;
  border-spacing: 1rem; /* Espacement entre les colonnes */
  
}

.contact div {
  display: inline-block; /* Adaptation à la taille de son contenu */
  padding: 20px;
  border-radius: 15px;
  background-color: #68826a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 2);
}

.contact td {
  vertical-align: middle;
  padding: 0.5rem;
}

.contact img {
  width: 35px;
  height: auto;
  margin-right: 0.5rem;
  vertical-align: middle; /* ✅ aligne le logo avec le texte */
}

/* ------------------------------------------------- LIENS  --------------------------------------------------*/

a{
  color: #fff;
}

a:hover{
  color: #fce9a3;
}

/* ----------------------------------------------- APPARITIONS -----------------------------------------------*/

.apparition {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 1.2s ease-out;
}

.apparition.show {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------- IMAGES EN GRAND -----------------------------------------------*/

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

#lightbox-img {
  max-width: 100vw;      /* Ne dépasse jamais la largeur de l'écran */
  max-height: 100vh;     /* Ne dépasse pas la hauteur de l'écran */
  width: auto;
  height: auto;
  object-fit: contain;   /* Garde l'image entière visible */
  box-sizing: border-box;
  padding: 1rem;         /* Ajoute un peu de marge si besoin */
  transition: transform 0.4s ease;
}

@media (max-width: 600px) {
  #lightbox-img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 1rem;
  }
}


    .parchemin-container {
      overflow: hidden;
      border: 2px solid #c4a66b;
      border-radius: 15px;
      box-shadow: inset 0 0 20px #d9c097, 5px 5px 15px rgba(0,0,0,0.3);
      animation: derouler 1.5s ease-out forwards;
    }

    .parchemin-content {
      width: 600px;
      height: 100%;
      display: flex;
      justify-content: center;
      flex-direction: column;
      text-align: center;
      align-items: center;
      font-size: 1.2em;
      box-sizing: border-box;
    }

    .services_parchemin{
      overflow: hidden;
      border: 2px solid #c4a66b;
      border-radius: 15px;
      box-shadow: inset 0 0 20px #d9c097, 5px 5px 15px rgba(0,0,0,0.3);
    }

    @keyframes derouler {
      from {
        width: 0;
        opacity: 0;
      }
      to {
        width: 600px;
        opacity: 1;
      }
    }

@media (max-width: 768px) {
  .parchemin-content {
    width: 80%;
    padding: 1rem;
  }

  .phrase_question {
    padding: 2rem 1rem;
    border-radius: 0.5rem;
    max-width: 100%;
  }

  @keyframes derouler {
    from {
      width: 0;
      opacity: 0;
    }
    to {
      width: 80%;
      opacity: 1;
    }
  }
}

/* EFFET REBOND */

.contactez_moi.show {
  animation: slideInleft 2s forwards;
}

/* Animation de rebond depuis la gauche */
@keyframes slideInleft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  60% {
    transform: translateX(5%);
    opacity: 1;
  }
  100% {
    transform: translateX(0%);
  }
}

.contact_table.show {
  animation: slideInRight 2s forwards;
}

/* Animation de rebond depuis la gauche */
@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  60% {
    transform: translateX(-5%);
    opacity: 1;
  }
  100% {
    transform: translateX(0%);
  }
}