
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&display=swap');

body{
    background-color: #FAF8F3;
    margin: 0 auto;
    height: 100vh;
     margin: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .wrapper {
  max-width: 1200px;      /* largeur maximale du contenu */
  margin: 0 auto;         /* centre horizontalement */
  padding: 0 ;        /* marges internes gauche/droite */
  box-sizing: border-box; /* pour éviter le débordement */

 
}

body{
  text-align: center;
  margin: 0 auto;
}
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}



h2{
font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
header{
    background-color: #D6C6B8;
    display: flex;
    height: 14vh;
    font-family: "Playfair Display", serif;
    font-size: medium;
    color: #1E3D58;
    align-items: center;
    position: static;
}
header a{
    font-family: "Playfair Display", serif;
    font-size: 18pt;
    text-decoration: none;
    color: #1E3D58;
    margin: 2vw 0vw 2vw 4vw;
    font-weight: bold;

}
header h1{
 font-size: 2.2rem; /* Ajuste pour tenir sur 2 lignes */
  line-height: 1.2;  /* Espacement vertical plus compact */
  max-width: 450px;  /* Ajuste pour limiter la largeur */
  white-space: normal; /* Permet le retour à la ligne automatique */
  padding-left: 2vw;

}
menu{

}
#photo1{
    height: 80vh;
    background-color: #1E3D58;
}


.carousel {
  position: relative;
  max-width: 100%;
  max-height: 80vh;
  height: 80vh;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  background-color: #000;
}

/* Conteneur des slides */
.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

/* Chaque slide */
.slide {
  min-width: 100%;
  height: 100%;
  display: none;
}

.slide.active {
  display: block;
}

/* Image en mode COVER */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Boutons flèches */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  user-select: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Texte centré au milieu du carrousel */
.carousel-text {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  z-index: 20;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  padding: 0 20px;
  max-width: 90%;
}
#photo1 h2{
    font-style: italic;
    color: #1E3D58;
  font-size: 40px;
  text-shadow:
}
#loca{
    display: flex;
    margin: 4vh;
    justify-content: center;
}
.split-section {
  display: flex;
  height: 80vh;
  width: 100%;
}

.left-content,
.right-map {
  flex: 1; /* prend 50% chacun */
  padding: 40px;
  box-sizing: border-box;
}

.left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.right-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}
h5{
  text-align: center;
}

h6{
 
   font-family: "Libertinus Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1em;
  line-height: 1.6;
  margin-right: 16px;

}




@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
    height: auto;
  }

  .left-content,
  .right-map {
    width: 100%;
    padding: 20px;
    height: 300px;
  }
}
p{
    font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}
#presentation{
    font-family: "Playfair Display", serif;
    font-size: 20pt;
    color: #1E3D58;
    width: 100vw;}



#calendar {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
  color: #1E3D58;
  font-family: "Playfair Display", serif;
    font-size: 26px;

}

#calendar iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


#calendar h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 20px;
  font-optical-sizing: auto;
  font-style: normal;
  color: #1E3D58;
    font-size: 1.2em;

}

#presentation {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* deux colonnes égales */
  gap: 10px 40px; /* espace entre lignes et colonnes */
  max-width: 800px;
  margin: auto;
}

#presentation h2 {
  grid-column: 1 / -1; 
  text-align: center;
  margin-bottom: 20px;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  fill: currentColor; /* permet au SVG de prendre la couleur du texte */
    color: #1E3D58; /* tu peux changer la couleur */

}
#presentation i {
  margin-right: 10px;
  color: #1E3D58; /* tu peux changer la couleur */
  font-size: 1.2em;
}
#piece{
  font-family: "Playfair Display", serif;
    font-size: 20pt;
    color: #1E3D58;
    width: 100vw;
      text-align: center;

}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 300px 300px;
  gap: 10px;
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* Styles communs */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Placement personnalisé */
.grid-item.vertical:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.grid-item.horizontal:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

.grid-item.horizontal:nth-child(3) {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.grid-item.vertical:nth-child(4) {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 300px 300px;
  gap: 10px;
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "img1 img4"
    "img2 img4"
    "img3 img4";
  gap: 12px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 10px;
  box-sizing: border-box;
}

.image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-full {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.photo-full img {
  height: 65vh;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}
.portrait-pair {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  flex-wrap: wrap; /* utile pour mobile */
}

.portrait {
  flex: 1 1 300px;
  max-width: 400px;
}

.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4; /* format portrait */
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
h4{
   font-family: "Libertinus Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.2em;
  line-height: 1.6;

}


@media (max-width: 768px) {
  body {
  }

  header {
    flex-direction: column;
    justify-content: center;
    height: auto;
    text-align: center;
  }

  header a {
    display: block;
  }

  #photo1 {
    height: auto;
  }

  .carousel {
    height: auto;
  }

  .carousel img {
    height: auto;
    max-height: 60vh;
  }

  .split-section {
    flex-direction: column;
    height: auto;
  }

  .left-content,
  .right-map {
    width: 100%;
    height: auto;
  }

  #presentation {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  #calendar {
    max-width: 100%;
    padding: 20px 0;
  }

  #calendar iframe {
    height: 400px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "img1"
      "img2"
      "img3"
      "img4";
  }

  .photo-full img {
    width: 100%;
    height: auto;
  }

  .portrait-pair {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .portrait {
    max-width: 90%;
  }

  h2, h4, p {
    padding-left: 8px;
    padding-right: 8px;
  }

  iframe {
    max-width: 100%;
  }

  #piece {
  }
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50%;
}

.burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #1E3D58;
}

.nav-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #D6C6B8;
    position: absolute;
    top: 14vh;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 99;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 18px;
  }
}
.gallery-vertical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  background-color: #FAF8F3;
}

.gallery-vertical img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sdp img{
  width: 30vw;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}



.lang-switcher {
  padding-left: 8vw;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.lang-switcher img {
  width: 35px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lang-switcher img:hover {
  transform: scale(1.2);
}
@media (max-width: 768px) {
  body {
    text-align: center;
    margin: 0 auto;
  }

  header {
    flex-direction: column;
    justify-content: center;
    height: auto;
    text-align: center;
    margin: 0; /* header sans marge */
    width: 100%;
    box-sizing: border-box;
  }

  header a {
    display: block;
    margin: 8px 0;
  }

  #photo1 {
    height: auto;
  }

  .carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-color: #000;
  }

  .carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    box-sizing: border-box;
  }

  .slide {
    min-width: 100%;
    height: 100%;
    display: none;
  }

  .slide.active {
    display: block;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .carousel-text {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    z-index: 20;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    max-width: 90%;
  }

  .split-section {
    flex-direction: column;
    height: auto;
  }

  .left-content,
  .right-map {
    width: 100%;
    height: auto;
  }

  #presentation {
    grid-template-columns: 1fr;
    padding: 0 10px;
    text-align: center;
  }

  #calendar {
    max-width: 100%;
    padding: 20px 0;
  }

  #calendar iframe {
    height: 400px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "img1"
      "img2"
      "img3"
      "img4";
  }

  .photo-full img {
    width: 100%;
    height: auto;
  }

  .portrait-pair {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .portrait {
    max-width: 90%;
  }

  h2, h4, p {
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
  }

  iframe {
    max-width: 100%;
  }

  #piece {
    text-align: center;
  }

  .navbar {
    justify-content: center;
  }

  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #D6C6B8;
    position: absolute;
    top: 14vh;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 99;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 18px;
  }
  .sdp img{
    width: 90vw;
  }
  h6{
    margin: 0 8px 0 8px;
  }
 .photo-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* centre horizontalement les éléments */
    gap: 20px;
    padding: 0 10px; /* optionnel, pour un peu d’espace sur les côtés */
  }

  .grid-item {
    width: 90%; /* ou max-width: 400px; par exemple */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Optionnel, si tu veux que les images prennent toute la largeur de leur container */
  .grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  #calendar h4{
      font-size: 1em;

  }

}
