/* =========================
   STYLE GÉNÉRAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: #000;

  /* Dégradé jaune, orange et rouge */
  background: linear-gradient(
    120deg,
    #fff500,
    #ffcf00,
    #ffae00,
    #ff7500,
    #ff1e00,
    #ff7500,
    #ffae00,
    #fff500
  );

  /* Le dégradé est plus grand que l'écran pour pouvoir bouger */
  background-size: 400% 400%;

  /* Animation des couleurs en continu */
  animation: vaguesCouleurs 12s ease-in-out infinite;
}

/* Les couleurs se déplacent comme des vagues */
@keyframes vaguesCouleurs {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 0%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}


/* =========================
   HEADER / TITRE
========================= */

header {
  padding: 35px 20px 25px;
  text-align: center;
  background: transparent;
  color: #000;
}

/* Titre qui arrive depuis le haut */
header h1 {
  margin-bottom: 30px;
  color: #000;
  font-size: clamp(2rem, 5vw, 3.5rem);

  animation: titreDepuisHaut 1s ease-out both;
}

@keyframes titreDepuisHaut {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   MENU / BOUTONS DU HAUT
========================= */

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  list-style: none;
}

/* Chaque bouton arrive depuis le haut */
nav ul li {
  animation: boutonDepuisHaut 0.7s ease-out both;
}

nav ul li:nth-child(1) {
  animation-delay: 0.2s;
}

nav ul li:nth-child(2) {
  animation-delay: 0.35s;
}

nav ul li:nth-child(3) {
  animation-delay: 0.5s;
}

nav ul li:nth-child(4) {
  animation-delay: 0.5s;
}

nav ul li:nth-child(5) {
  animation-delay: 0.35s;
}

nav ul li:nth-child(6) {
  animation-delay: 0.2s;
}

@keyframes boutonDepuisHaut {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul li button {
  min-width: 180px;
  padding: 18px 28px;

  border: none;
  border-radius: 999px;

  background-color: #fff;
  color: #000;

  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

nav ul li button:hover,
nav ul li button:focus-visible {
  background-color: #f2f2f2;
  color: #000;
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  outline: none;
}

nav ul li button:active {
  transform: translateY(0) scale(0.97);
}


/* =========================
   CONTENU CENTRAL
   Pas de grande boîte blanche
========================= */

main {
  width: 100%;
  margin: 70px auto 0;
  padding: 0 20px;
  text-align: center;

  animation: contenuApparition 0.9s ease-out 0.9s both;
}

@keyframes contenuApparition {
  from {
    opacity: 0;
    transform: translateY(70px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   AFFICHAGE DES SECTIONS
========================= */

.section {
  display: none;
  animation: sectionApparition 0.45s ease both;
}

.section.active {
  display: block;
}

@keyframes sectionApparition {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   IMAGE RONDE AU CENTRE
========================= */

.photo-profil {
  display: block;

  width: 260px;
  height: 260px;
  margin: 0 auto 55px;

  object-fit: cover;
  background-color: #fff;

  border: 5px solid #fff;
  border-radius: 50%;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  animation: photoApparition 1s ease-out 1.05s both;
}

@keyframes photoApparition {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}


/* =========================
   RECTANGLE DU TEXTE
========================= */

.bloc-texte {
  width: min(100%, 750px);
  margin: 0 auto;
  padding: 28px 35px;

  background-color: #fff;
  color: #000;
  text-align: center;

  border-radius: 45px;

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);

  animation: texteDepuisBas 0.8s ease-out 1.3s both;
}

.bloc-texte h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.bloc-texte p {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.bloc-texte p:last-child {
  margin-bottom: 0;
}

.image {
  max-width: 100%;
  height: 430px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@keyframes texteDepuisBas {
  from {
    opacity: 0;
    transform: translateY(45px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   FOOTER
========================= */

footer {
  width: min(70%, 600px);
  margin: 40px auto;
  padding: 20px;

  background-color: #fff;
  color: #000;
  text-align: center;

  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);

  animation: footerApparition 0.8s ease-out 1.5s both;
}

@keyframes footerApparition {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   VERSION TÉLÉPHONE
========================= */

@media (max-width: 650px) {
  header {
    padding-top: 25px;
  }

  nav ul {
    gap: 12px;
  }

  nav ul li button {
    min-width: 135px;
    padding: 13px 16px;
    font-size: 1rem;
  }

  main {
    margin-top: 45px;
  }

  .photo-profil {
    width: 180px;
    height: 180px;
    margin-bottom: 35px;
  }

  .bloc-texte {
    padding: 22px;
  }

  .bloc-texte h2 {
    font-size: 1.6rem;
  }

  .bloc-texte p {
    font-size: 1rem;
  }

  footer {
    width: 85%;
    border-radius: 30px;
  }
}