html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #C0BDBD; /* Bleu pastel doux */
  color: #30243A; /* Rouge foncé pour le texte principal */
  font-family: Arial, sans-serif;
}

header {
  background-color: #464155;
  color: #FACCBC;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  
}

.menu-item {
  margin-right: 50px;
}

.menu-item a {
  display: block;
  font-size: 22px;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #DB8D77;
  color: #30243A;
  border-radius: 10px;
  padding: 14px 22px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.4s ease;
}

.menu-item a:hover {
  background-color: #FACCBC;
  color: #30243A;
}

.red-button a {
  background-color: #7B665B;
}

.red-button a:hover {
  background-color: #DB8D77;
  color: #30243A;
}

a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 10px;
  }

  .menu-item {
    width: 45%; /* 2 éléments par ligne avec un petit espace */
    margin: 10px 2.5%;
    display: flex;
    justify-content: center;
  }

  .menu-item a {
    font-size: 18px;
    width: 100%;
    text-align: center;
  }
}



h1 {
  padding-top: 90px;
  text-align: center;
  font-size: 40px;
  text-transform: uppercase;
  line-height: 1.5;
}

h2 {
  text-align: center;
  font-weight: normal;
  font-size: 28px;
}

section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.presentation p {
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
}

/* Phase section */
.phases {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  gap: 30px;
}

.phase {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.phase:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.phase-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
  color: white; /* Contraste élevé pour le texte sur l’image */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Lisibilité renforcée */
  transition: transform 0.3s ease;
}

.phase:hover .phase-content {
  transform: translateY(-5px); /* petit effet de "remontée" au survol */
}

.phase img {
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 10px;
}

/* Listes */
.conditions ul,
.regles ul,
.recompenses ul {
  list-style-type: disc;
  padding-left: 40px;
  font-size: 18px;
}

.conditions h2,
.regles h2,
.recompenses h2 {
  margin-bottom: 20px;
}

/* Appel à l'inscription */
.inscription-final {
  border-radius: 20px;
  text-align: center;
  padding: 80px 0;
  background-color: #f8f8f8;
  margin-bottom: 20px;
}

.cta-button {
  background-color: #e81515;
  color: white;
  padding: 16px 30px;
  border-radius: 12px;
  font-size: 20px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #c91414;
}

/* Footer */
footer {
  background-color: #464155;
  color: #FACCBC;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #DB8D77;
  margin: 0 10px;
  text-decoration: underline;
}

footer a:hover {
  color: #FACCBC; /* Rouge vif */
}
/* Section image de fond */
.image {
  width: 100vw;
  background-image: url('../images/iut.jpg'); /* ou 'bg.jpeg' selon où se trouve l’image */
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  
}

.image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.image h1, .image h2 {
  position: relative;
  z-index: 1;
  margin: 0;
}
.phases {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap; /* permet de passer à la ligne sur petits écrans */
  gap: 20px;
  padding: 60px 20px;
}

.phase {
  flex: 1 1 30%; /* base 30%, ajuste sur petits écrans */
  min-width: 280px;
  height: 250px;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.phase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* filtre sombre */
  z-index: 0;
}
.phase-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 10px;
}

.phase-content h2 {
  font-size: 22px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.infos-layout {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 60px auto;
  gap: 40px;
  padding: 0 20px;
  align-items: flex-start;
}

.infos-left {
  flex: 1 1 30%;
}

.infos-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: #30243A; /* violet foncé */
  line-height: 1.2;
  margin: 0;
}

.infos-right {
  flex: 1 1 65%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.info-card {
  flex: 1 1 calc(33% - 20px);
  background-color: #FACCBC; /* couleur douce, pêche clair */
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(48, 36, 58, 0.15);
  transition: transform 0.3s ease;
  color: #30243A; /* texte foncé */
  font-family: 'Arial', sans-serif;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(48, 36, 58, 0.3);
}

.info-card h2 {
  color: #464155; /* gris foncé */
  margin-bottom: 15px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.info-card ul {
  padding-left: 20px;
  margin: 0;
  list-style-type: disc;
}

.info-card li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
  .infos-layout {
    flex-direction: column;
  }

  .infos-left, .infos-right {
    flex: 1 1 100%;
  }

  .infos-right {
    justify-content: center;
  }

  .info-card {
    flex: 1 1 80%;
    margin-bottom: 20px;
  }
}

@media (max-width: 500px) {
  .info-card {
    flex: 1 1 100%;
  }
}


/* participer */

form {
    background-color: rgba(46,41,55,0.8);
    padding: 2vw;
    border-radius: 3vw;
    width: 50%;
    margin: 0 auto;
    box-shadow: 0px 2vw 4vw rgba(0, 0, 0, 0.5);
    color: #FACCBC;
}
input, select, textarea {
    width: 100%;
    padding: 1.5vw;
    margin: 1.5vw 0;
    border: 0.5vw solid #DB8D77;
    border-radius: 1vw;
    box-sizing: border-box;
    font-size: 1.5vw;
}

input:focus, textarea:focus, select:focus {
    border-color: #FACCBC;
    outline: none;
}
button {
    background-color: #DB8D77;
    color: white;
    border: none;
    border-radius: 1vw;
    padding: 1vw 2vw;
    font-size: 2vw;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #FACCBC;
}

.titre {
    padding-bottom: 1vw;
    text-align: center;
    font-size: 3vw;
}

.label-text {
    font-size: 3vw;
}


/* Pop-up */
.popup {
    display: none;  /* cache le popup */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    color: black;
    padding: 2vw;
    border-radius: 1vw;
    text-align: center;
    font-size: 2vw;
}

.popup button {
    background-color: #DB8D77;
    color: white;
    border: none;
    padding: 1vw 2vw;
    border-radius: 1vw;
    font-size: 2vw;
    cursor: pointer;
}

.popup button:hover {
    background-color: #FACCBC;
}

/* Bouton menu hamburger - caché par défaut */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  margin-right: auto;
  color: #FACCBC;
}

@media (max-width: 768px) {
  h1 {
    font-size: 25px;
  }
}

