/* Import de la police */
@import url("https://use.typekit.net/fhe4xql.css");

/* Base */
html, body {
  margin: 0;
  padding: 0;
  font-family: "ff-din-paneuropean", sans-serif;
  color: #333;
  background: #fff;
  overflow: hidden;
  height: 100vh;
}

/* Animation Intro */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  animation: fadeOut 0.5s ease-in-out 2s forwards;
}







#intro.fade-out,
#curtain.open {
  pointer-events: none;
}


#logo {
  opacity: 0;
  width: 200px;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Rideau d'ouverture */
#curtain {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9;
  display: flex;
  flex-direction: row;
}

.half {
  flex: 1;
  background: black;
  transition: transform 1s ease-in-out;
}

.open .left {
  transform: translateX(-100%);
}

.open .right {
  transform: translateX(100%);
}

/* Contenu principal */
#main-content {
  display: none;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

/* Hero header */

header.hero {
  background-image: url('https://static.wixstatic.com/media/6d5a33_a7e45a6ce27e41209d4ebec4b02103fe~mv2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}




@media screen and (max-width: 768px) {
  header.hero {
    background-attachment: scroll;
    height: 60vh;
  }

  .hero-text h1 {
    font-size: 2em;
    font-family: "ff-din-paneuropean", sans-serif;
  }

  .hero-text p {
    font-size: 1.2em;
    font-family: "ff-din-paneuropean", sans-serif;
  }
}

.text-background {
  background-color: rgba(250, 247, 247, 0.5);
  padding: 1em 2em;
  border-radius: 8px;
  display: inline-block;
}

.img1 {
  height: 150px;
  width: 300px;
}

.P1 {
  text-align: center;
  flex: 1;
  min-width: 300px;
  font-size: 2em;
  font-family: "futura-pt", sans-serif;
  color: #000000;
}

/* Section intro */
section.intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 4em 2em;
  gap: 2em;
}

.portrait, .text {
  flex: 1 1 400px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
}

.text {
  flex-direction: column;
  text-align: justify;
  font-size: 1em;
  font-family: "futura-pt", sans-serif;
}

.text h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  text-align: center;
}

/* Galerie */
section.gallery {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  animation: slide 36s infinite;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
}

.caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 1em;
  border-radius: 5px;
  font-size: 1.2em;
  text-align: center;
}

@keyframes slide {
  0% { transform: translateX(0); }
  16.6% { transform: translateX(-100%); }
  33.2% { transform: translateX(-200%); }
  49.8% { transform: translateX(-300%); }
  66.4% { transform: translateX(-400%); }
  83% { transform: translateX(-500%); }
  100% { transform: translateX(0); }
}

.gallery-text {
  text-align: center;
  padding: 2em;
  font-style: italic;
}

/* Événement */
section.event, section.form-section {
  padding: 3em 2em;
  text-align: center;
}

section.event h2, section.form-section h2 {
  font-size: 2em;
  margin-bottom: 1em;
}

.event h2 {
  line-height: 1.4;
}

.event h2 .highlighted {
  text-transform: uppercase;
  font-size: 150%;
  display: inline-block;
  margin: 0.2em 0;
}

.event h2 .event-date {
  font-size: 0.9em;
  white-space: nowrap;
  display: inline-block;
}

@media screen and (max-width: 600px) {
  .event h2 {
    font-size: 1.5em;
    text-align: center;
  }

  .event h2 .highlighted {
    font-size: 150%;
  }
}

/* Formulaire */
form#invitation-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 400px;
  margin: auto;
}

form input, form button {
  padding: 0.8em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: #333;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #555;
}

/* Footer */
.footer-contact {
  background-color: #222;
  color: #eee;
  padding: 20px;
  text-align: center;
}

.footer-contact a {
  color: #ccc;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

.intro-paragraphe {
  padding: 40px 20px;
  background-color: #f9f9f9; /* Couleur douce pour démarquer la section */
  font-family: inherit; /* Utilise la même police que le reste de la page */
  color: #333;
  text-align: center;
}

.intro-paragraphe p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

.section-titre {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin: 40px auto 20px;
  font-family: inherit;
}

