/* ===== HEADER STYLES ===== */

* {
  margin: 0;
  padding: 0;
}

/* Configuration principale du header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgb(2,0,36);
  background: -moz-linear-gradient(90deg, rgba(2,0,36,0.85) 0%, rgba(0,0,0,0.845617470621061) 100%);
  background: -webkit-linear-gradient(90deg, rgba(2,0,36,0.85) 0%, rgba(0,0,0,0.845617470621061) 100%);
  background: linear-gradient(90deg, rgba(2,0,36,0.85) 0%, rgba(0,0,0,0.845617470621061) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#020024",endColorstr="#000000",GradientType=1);
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100%;

  
}
header.hidden {
  top: -100%;
}

header.transparent {
  background-image: none; 
}

header.solid {
  transition: opacity 1s ease-in-out;
}

/* ===== BOUTONS DU HEADER ===== */
/* Conteneur des boutons */

.buttonheader {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
}

/* Variables pour le style des boutons */
.button--pen {
  --main_color: #4d4d4d;
  --sub_color1: #FFF;
  --sub_color2: #e9b800;
  --base_color: #e9b800;
  --border_radius1: 60px 60px 40px 40px / 48px 48px 30px 30px;
  --border_radius2: 70px 70px 40px 40px / 48px 48px 30px 30px;
  --border_radius3: 40px 40px 40px 40px / 48px 48px 30px 30px;
}

/* Style de base des boutons */
.button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(33.33% - 20px);
  height: 50px;
  box-sizing: border-box;
  text-decoration: none;
  border: solid 3px #000;
  border-radius: 40px;
  background: var(--main_color);
  font-family: 'Fredoka One', cursive;
  margin: 0;
  transition: all 0.3s ease;
}

/* Wrapper interne du bouton */
.button__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Texte du bouton */
.button__text {
  position: relative;
  z-index: 3;
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--base_color);
  transition: all 0.3s ease;
}

/* ===== ANIMATION DES CARACTÈRES ===== */
/* Boîte contenant les caractères animés */
.characterBox {
  position: absolute;
  top: -54px;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 180px;
  height: 56px;
  transition: all 0.3s ease;
}

/* Style des caractères individuels */
.character {
  position: relative;
  width: 56px;
  height: 36px;
  box-sizing: border-box;
  border: solid 3px #000;
  background: var(--main_color);
  border-radius: var(--border_radius1);
  animation: sleep 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

/* Visage des caractères */
.character__face {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 12px;
  height: 6px;
  background: var(--sub_color2);
  border-radius: 50% 50% 50% 50% / 78% 78% 22% 22%;
  transition: all 0.3s ease;
}

/* Yeux des caractères */
.character__face::before,
.character__face::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 8px;
  height: 2px;
  border-radius: 4px;
  background: #000;
  transition: all 0.3s ease;
}

/* Positions des yeux */
.character__face::before {
  left: -5px;
}

.character__face::after {
  right: -5px;
}

/* Second visage des caractères */
.charactor__face2 {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 30px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: face_pen 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

/* ===== ANIMATIONS ===== */
/* Animation de sommeil */
@keyframes sleep {
  0% {
    height: 36px;
    border-radius: var(--border_radius1);
  }
  100% {
    height: 32px;
    border-radius: var(--border_radius2);
  }
}

/* Animation du visage */
@keyframes face_pen {
  0% {
    height: 14px;
  }
  100% {
    height: 10px;
  }
}

/* Animations au survol */
.button:hover .wakeup {
  animation: wakeup 0.3s ease forwards;
}

.button:hover .wakeup .character__face {
  top: 20px;
  transition: all 0.3s ease;
}

.button:hover .wakeup .character__face::before,
.button:hover .wakeup .character__face::after {
  animation: eye 5s ease-in-out infinite;
}

/* Animation de réveil */
@keyframes wakeup {
  0% {
    height: 32px;
    border-radius: var(--border_radius2);
  }
  100% {
    height: 56px;
    border-radius: var(--border_radius3);
  }
}

/* Animation des yeux */
@keyframes eye {
  0%, 30%, 55%, 90%, 100% {
    top: -6px;
    width: 6px;
    height: 6px;
  }
  10%, 40%, 70% {
    top: -4px;
    width: 8px;
    height: 2px;
  }
}
@media (max-width: 1200px) {

  header {
    padding-top: 10px;
    margin: 0;
    height: 20%;
    background-image: none;
  }
  /* Texte adaptatif dans les boutons */
  .button__text {
    font-size: clamp(1rem, 2vw + 1vh, 1.5rem);
    letter-spacing: 2px;
  }

  /* Organisation verticale */
  .buttonheader {
    display: flex;
    flex-direction: column;
    align-items:center;
    gap: 12px;
    padding: 20px;
    margin-right: 10vh;
  }

  /* Style du pingouin */
  .characterBox {
    display: none;

  }
  /* Réduction des boutons */
  .button {
    width: 90%;
    max-width: 300px;
  }
  /* reduction des images */
  img {
    max-width: 450px;
    max-height: 450px;
    justify-self: center;
    align-self: center;
  }
  .section {
    height: 10vh;
  }
}

/* ===Main=== */ 

body {
    margin: auto;
    padding: auto;
    font-family: Arial, sans-serif;
    background-color: #333;
  }


  .backgroundMain, .backgroundPassions, .backgroundProjets{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    background-repeat: no-repeat;
    background-origin: border-box;
    background-size: cover;
    width: 100%;
    height: 100vh;
    margin-bottom: 5vh;
  }

  /* Style du fond de la section Background */
  .backgroundMain{
    background-image: url(../images/background.jpg);
   background-position: center;
  }

  .backgroundPassions {
    background-image: url(../images/passion.webp) ;
  }

  .backgroundProjets {
    background-image: url(../images/projet.webp);
  }
  
  /* Style des titres principaux */
  h1 {
    text-align: center;
    justify-items: center;
    font-size: 15vh;
    color: white;
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    box-sizing: border-box;
  }

  @media (max-width: 1200px) {
    h1 {
      font-size: 3rem;
    }
  }
  
  /* Style des titres secondaires */
  h2 {
    text-align: center;
    font-size: 5vh;
    color: #cecece;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
  }
  
  /* ===== CARROUSEL ===== */
  /* Configuration de la section du carrousel */
  .section {
    margin: 0;
    padding: 0;
    height: 95vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Container du slider */
  .slider {
    width: 100%;
    height: 100%;
    border-radius: 5vh;
    overflow: hidden;
    position: relative;
  }
  
  /* Container des slides */
  .slides {
    display: flex;
    width: 400%;
    height: 100%;
    transition: 0.7s ease;
  }
  
  /* Style des slides individuels */
  .st {
    width: 100%;
    height: 100%;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Style des images dans les slides */
  .st img {
    width: 95vh;
    height: 95vh;
    object-fit: contain;
  }
  
  /* Masquage des boutons radio */
  input[name="radio-btn"] {
    display: none;
  }
  
  /* Navigation du carrousel */
  .nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
  }
  
  /* Style des boutons de navigation */
  .nav-btn {
    border: 0.5vh solid #fff;
    padding: 1vh;
    border-radius: 50%;
    transition: 1s;
    cursor: pointer;
    margin: 0 1vh;
  }
  
  /* Contrôle du déplacement des slides */
  #radio1:checked ~ .slides { margin-left: 0; }
  #radio2:checked ~ .slides { margin-left: -100%; }
  #radio3:checked ~ .slides { margin-left: -200%; }
  #radio4:checked ~ .slides { margin-left: -300%; }
  
  /* Mise en évidence du bouton actif */
  #radio1:checked ~ .nav .nav-btn:nth-child(1),
  #radio2:checked ~ .nav .nav-btn:nth-child(2),
  #radio3:checked ~ .nav .nav-btn:nth-child(3),
  #radio4:checked ~ .nav .nav-btn:nth-child(4),
  .nav-btn:hover {
    background-color: #111;
  }
  
  /* ===== SECTION PRÉSENTATION ===== */
.pharagraphes, .pharagraphes a{
    display: flex;
    flex-direction: column;
    height: 50%;
    width: 75%;
    margin: auto;
    align-items: center;
    padding-top: auto;
    padding-bottom: 5vh;
    color: #cecece;
    font-family: "Comic Neue", cursive;
    font-style: normal;
    font-size: 2.5vh;
    text-align: center;
    word-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
  }

.pharagraphes a:hover {
  text-decoration: underline;
  color: black;
}

.somaire {
  height: 100vh;
  display: flex;
}

.somaire, .somaire a {
  display: flex;
  flex-direction: column;
  color: #cecece;
  padding-left: 2.5vh;
  text-decoration: none;
}

.somaire a{
  padding-top: 5vh;
}

.somaire a:hover{
  text-decoration: underline;
  color: #d9b636c3;
}

.somaire h3 {
  font-size: 5vh;
}

.somaire ul {
  justify-items: center;
}

.block, .block1 {
  display: flex;
  gap: 5vh; /* permet d'espacer les éléments*/
  justify-content: center;
  align-items: center;

  flex-wrap: nowrap;
  padding-bottom: 10vh;
  }

  /* formaatage des ancres ce sont des réctangles qui s'adaptes selon la taille de l'écran */
.block a, .block1 a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50vh;
  height: 50vh;
  gap: 5vh;
  background-color: #333;
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  border: black;
  border-radius: 5px;
  font-size: 4rem;
  text-align: center;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px black;
  text-decoration: none;
  transition: all 0.5s; /*pour que le hover soit plus fluide*/
}

.block a:hover, .block1 a:hover {
  transform: scale(1.1);
  opacity: 0.7;
  border-radius: 5%;
 }

 .block1 {
  justify-content: space-around;
  flex-wrap: wrap;
 }

 .parcour {
  background-image: url(../images/parcour.webp);
 }

 .activité {
  background-image: url(../images/activité.jpg);
 }

 .projet {
  background-image: url(../images/projet.webp);
 }

 .passion {
  background-image: url(../images/passion.webp);
 }

 .EVE_defense {
  background-image: url(../images/EVE.webp);
 }

 .Sister {
  background-image: url(../images/Sisterofeve.jpg);
 }
  
 .general .bouton {
  width: 100%; /* Assure que le conteneur prend toute la largeur */
  max-width: 800px; /* Largeur maximale */
  margin: 0 auto; /* Centrage */
}

.general .bouton a {
  align-self: center;
  display: block; /* Permet de prendre toute la largeur */
  width: 100%;
  background-color: #cecece;
  color: #111;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap; /* Empêche le texte de se diviser */
  overflow: hidden; /* Cache le débordement */
  text-overflow: ellipsis; /* Ajoute des points de suspension si trop long */
  margin-top: 10vh;
}

.texte_hidden {
  width: 100%; /* Même largeur que le parent */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  background-color: #f9f9f9;
  opacity: 0;
  word-wrap: break-word; /* Coupe les mots trop longs */
  overflow-wrap: break-word; /* Alternative pour certains navigateurs */
}

.general .bouton a.active + .texte_hidden {
  max-height: fit-content; /* Hauteur adaptable */
  opacity: 1;
  padding: 15px;
  border: 1px solid #ddd;
}

.texte_hidden p, 
.texte_hidden li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  height: auto;
  width: 100%;
  margin-bottom: auto;
  margin-top: auto;
  background-color: #3333331f;
}

/* Style des éléments du footer */
.ElementFooter { 
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* Style des liens dans le footer */
.ElementFooter a {
  border-radius: 2.5px;
  padding-left: 5vh;
  text-decoration: none;
  align-items: center;
  padding-top: auto;
}

/* Animation au survol des liens du footer */
.ElementFooter a:hover {
  transform: scale(1.1);
}

.contacte {
    display: flex;
    margin-top: 20vh;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    flex-wrap: wrap;
    font-size: 2vh;
}

.portrait {
  background-image: url(../images/avatar.webp);
  width: 20vh;
  height: 20vh;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.contacte a {
  height: 5vh;
  width: 25vh;
  border-radius: 10px;
  background-color: #e9b800;
  margin-top: 5vh;
  transition: transform 0.5s;
  text-align: center;
  border-color: #000 15px;
  text-decoration: none;
  color: #000;
}

.contacte p {
  align-self: center;
  margin-top: 1vh;
}

.contacte a:hover {
  transform: scale(1.1);
}