main {
  width: 100%;
  height: calc(85vh - 5.5rem);
  margin-top: 0.5rem;
  background-image: url(../images/background-text.png),
    url(../images/background.png);
  background-position: center;
  background-size: 158vh, cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: bottom, center;
}

@media screen and (max-width: 1118px) {
  main {
    background-image: url(../images/background-text-mobile.png),
    url(../images/background.png);
    margin-top: 3.5rem;
    height: 45vh;
    background-position: center;
    background-size: 100%, cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: bottom, center;
  }
}

/* Wave */

.wave-1 {
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-1 svg {
  position: relative;
  display: block;
  width: calc(170% + 1.3px);
  height: 101px;
  background-color: var(--blue-color-light);
}

.wave-1 .shape-fill {
  fill: #ffffff;
}

/* Nouveau */

.badge {
  background-color: var(--green-color-light);
  color: white;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  vertical-align: super;
  margin-left: 5px;
}


/* Sections */

.notre-histoire {
  width: 100%;
  padding: 50px 0;
  background-color: var(--white-color);
}

.notre-histoire-entete {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.notre-histoire-entete h2 {
  text-align: justify;
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--blue-color-light);
}
.notre-histoire-entete h3 {
  font-family: var(--main-intro-text);
  font-size: 30px;
  color: var(--blue-color-light);
  padding: 1vh;
  align-items: baseline;
  margin-top: 1%;
  margin-bottom: 1%;
}

.notre-histoire-title {
  margin-top: 1%;
  font-family: var(--main-intro-text);
  font-size: 60px;
  text-align: center;
  color: var(--blue-color-dark);
  padding: 1vh;
  align-items: baseline;
}

.timeline {
  list-style-type: none;
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 16px;
  height: 100%;
  z-index: 2;
  top: 0;
  bottom: 0;
  border-left: 3px dashed var(--blue-color-light);
}

.timeline-item {
  margin: 3rem 2rem 3rem 5rem;
  text-align: justify;
}

.timeline-icon {
  background-color: var(--blue-color-dark);
  position: absolute;
  border-radius: 50%;
  left: 0px;
  width: 34px;
  height: 34px;
  z-index: 3;
  color: #fff;
  text-align: center;
  padding: 4px;
  font-size: 18px;
}

.timeline-item-date {
  color: var(--blue-color-dark);
  margin-bottom: 0.05rem;
  font-weight: bold;
}

.timeline-item h2 {
  font-family: var(--body-font);
  color: var(--blue-color-dark);
  margin-bottom: 0.75rem;
}

.notre-histoire-photo {
  width: 50%;
  height: auto; /* This keeps the aspect ratio */
  display: block; /* Optional: Ensures proper centering if needed */
  margin: 0 auto; /* Optional: Centers the image horizontally */
}

.notre-histoire-photo > img {
  border: solid 10px var(--green-color-light);
}



/* Compteur */

.compteur-texte {
  font-family: var(--main-intro-text);
  font-size: 60px;
  text-align: center;
  color: var(--white-color);
  align-items: baseline;
}

@media screen and (max-width: 1118px) {
  .compteur-texte {
    font-size: 4vh;
  }
}

.compteur-texte-ligne3 {
  font-family: var(--body-font);
  font-size: 20px;
  margin: 1rem 0 1rem 0;
}

.main-countdown {
  width: 100%;
  height: fit-content;
  padding: 50px 0;
}

.countdown {
  display: flex;
}

.flip-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
  border-radius: 0.1em;
  font-size: 4vh;
}

@media screen and (max-width: 1118px) {
  .flip-card {
    font-size: 2vh;
  }
}

.top,
.bottom,
.flip-card .top-flip,
.flip-card .bottom-flip {
  height: 0.75em;
  line-height: 1;
  padding: 0.25em;
  overflow: hidden;
}

.top,
.flip-card .top-flip {
  background-color: var(--blue-color-light);
  border-top-right-radius: 0.1em;
  border-top-left-radius: 0.1em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--white-color);
}

.bottom,
.flip-card .bottom-flip {
  background-color: var(--blue-color-light);
  display: flex;
  align-items: flex-end;
  border-bottom-right-radius: 0.1em;
  border-bottom-left-radius: 0.1em;
  color: var(--white-color);
}

.flip-card .top-flip {
  position: absolute;
  width: 100%;
  animation: flip-top 250ms ease-in;
  transform-origin: bottom;
}

@keyframes flip-top {
  100% {
    transform: rotateX(90deg);
  }
}

.flip-card .bottom-flip {
  position: absolute;
  bottom: 0;
  width: 100%;
  animation: flip-bottom 250ms ease-out 250ms;
  transform-origin: top;
  transform: rotateX(90deg);
}

@keyframes flip-bottom {
  100% {
    transform: rotateX(0deg);
  }
}

.container-countdown {
  display: flex;
  gap: 2em;
  justify-content: center;
}

@media screen and (max-width: 1118px) {
  .container-countdown {
    gap: 0.5em;
  }
}

.container-segment {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  align-items: center;
}

.segment {
  display: flex;
  gap: 0.25em;
}

.segment-title {
  font-size: 1.25rem;
  padding: 10px;
  font-weight: var(--font-semi-regular);
  font-family: var(--body-font);
  color: var(--white-color);
}

@media screen and (max-width: 1118px) {
  .segment-title {
    font-size: 0.75rem;
  }
}

.container > h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 25px 0;
  font-family: var(--main-intro-text);
  font-size: 56px;
  color: var(--white-color);
}

/* RSVP */
.rsvp {
  width: 100%;
  padding: 20px 0;
  background-color: #fff;
  text-align: center;
}

#rsvp-title {
  font-family: var(--main-intro-text);
  font-size: 60px;
  color: var(--blue-color-dark)
}

.rsvp-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 1118px) {
  .rsvp-main {
    flex-direction: column;
  }
}

@media screen and (max-width: 1118px) {
  .rsvp-photo {
    width: 100%;
    padding: 0;
  }
}

.rsvp-photo img {
  border: inset 5px var(--gold-color);
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.rsvp-wrapper {
  width: 60%;
  padding: 25px;
  border: double var(--gold-color);
}

@media screen and (max-width: 1118px) {
  .rsvp-wrapper {
    width: 100%;
    padding-top: 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
}

.rsvp-invite1 label {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  font-family: var(--body-font);
}

#nom,
#prenom,
#email,
#enfants,
#adultes,
#regime-alimentaire {
  border-bottom: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  width: 100%;
}

.rsvp-presence {
  margin-bottom: 15px;
}

#events {
  margin-bottom: 15px;
}

#presence,
#evenements,
#regime {
  font-weight: bold;
  font-size: var(--normal-font-size);
}

input#oui, 
#non {
  all: revert;
}

input#enfant0dob,
#enfant1dob,
#enfant2dob,
#enfant3dob,
#enfant4dob {
  color: gray;
}

#adulteFields,
#enfantFields {
  margin-bottom: 15px;
}

.rsvp-evenements,
.rsvp-regime {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.checkbox {
  margin-right: 5px;
  all: revert-layer;
  margin-bottom: 15px;
}

.checkbox input {
  margin-right: 5px;
}

.envoyer {
  transition-duration: 0.4s;
  background-color: var(--blue-color-light);
  color: var(--white-color);
  padding: 10px;
  border-radius: 7px;
  cursor: pointer;
}

.envoyer:hover {
  background-color: var(--gold-color);
}

/* Wave */
.wave-2 {
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-2 svg {
  position: relative;
  display: block;
  width: calc(170% + 1.3px);
  height: 101px;
  background-color: var(--white-color);
}

.wave-2 .shape-fill {
  fill: var(--blue-color-light);
}

/* Footer */

footer {
  background-color: var(--blue-color-light);
  padding: 10px 0;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 14px;
  font-family: var(--body-font);
  color: #ffffff;
}
