/* Réinitialisation des styles par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{scroll-behavior: smooth;}

/* Variables CSS pour les thèmes */
:root {
  --background-color: #f5f5f5;
  --logo-color: #292929;
}

body.dark {
  --background-color: #3f2c2b;
  --logo-color: #f1f1f1;
  --text-color: #ffffff;
}

/* Styles pour le body */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--background-color);
  font-family: Arial, sans-serif;
  transition: background-color 0.3s;
  cursor: url('/img/cursor.svg') 16 16, auto;
}

.mt-1 {margin-top:1rem;}
.mt-2 {margin-top: 2rem;}
.mt-3 {margin-top: 3rem;}
.mt-4 {margin-top: 4rem;}
.mb-1 {margin-bottom:1rem;}
.mb-2 {margin-bottom: 2rem;}
.mb-3 {margin-bottom: 3rem;}
.mb-4 {margin-bottom: 4rem;}

.pt-1 {padding-top:1rem;}
.pt-2 {padding-top: 2rem;}
.pt-3 {padding-top: 3rem;}
.pt-4 {padding-top: 4rem;}
.pb-1 {padding-bottom:1rem;}
.pb-2 {padding-bottom: 2rem;}
.pb-3 {padding-bottom: 3rem;}
.pb-4 {padding-bottom: 4rem;}

h1 {font-size: 2rem;}

/* Styles pour le conteneur */

.container {
  display: flex;
  flex-direction: column;
  height: 100lvh;
  width: 100%;
}

.section {
  flex: 1 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size:2rem;
}

.content{padding:0rem 2rem;}

#teaser {
  display: flex;
  flex-direction: column;
  padding-bottom:70px;
}


#art.section {
  background-color: #ede651;
  display: flex;
  justify-content: center;
  align-items: center;
}


div#line {
    width: 600px;
}

@media (max-width: 768px) {
    div#line {
        width: 400px;
    }
}

.slogan {
  font-size: 4rem;
  padding: 20px;
  color: #ffffff;
}

.small{font-size:0.8rem}
.large{font-size:2rem}

.montserrat-bolder {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}
/* Styles pour le logo */

.teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Remplacez la règle CSS actuelle pour .badge par celle-ci: */
.badge {
  position: relative; /* Ajout pour positionner correctement les éléments enfants */
  display: flex; /* Utiliser flex au lieu de contents */
  flex-direction: column;
  align-items: center; /* Pour centrer horizontalement */
  width: 100%; /* Prendre toute la largeur disponible */
  fill: var(--logo-color);
  transition: fill 0.3s;
}

/* Modifier la règle pour le badge SVG */
#badge {
  width: 150px;
  height: auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.3s forwards 0.3s;
}

.badge-wrapper {
  position: relative;
  width: 150px;
  margin: 2rem;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Corriger le positionnement de l'animation */
#badge-animation {
  position: absolute;
  top: 51%;
  left: 45%;
  transform: translateX(-50%);
  width: 88px;
  height: auto;
  object-fit: cover;
  z-index: 2;
  mix-blend-mode: screen;
  animation: fadeIn 2.5s forwards 5s; /* Apparaît en dernier (5s de délai) */
}

body.dark #badge-animation {
  filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1);
  mix-blend-mode: multiply;
}

.logo {
  width: 300px;
  height: auto;
  fill: var(--logo-color);
  transition: fill 0.3s;
  object-fit: contain; /* Assure que le logo respecte ses dimensions */
  opacity: 0; /* Logo initialement invisible */
  animation: fadeIn 0.5s forwards 0.5s; /* Animation d'apparition avec un délai de 1 seconde */
}

.logo-vert {
    height: 100dvh;
    width: auto;
    object-fit: contain;
}

.baseline {
  color: var(--text-color);
  font-size: 1.5rem;
  letter-spacing: 0.35rem;
  margin: 0.5rem 0 0 0.5rem;
  font-weight: 300;
  font-family: sans-serif;
  opacity: 0; /* Logo initialement invisible */
  animation: fadeIn 1s forwards 1s; /* Animation d'apparition avec un délai de 1 seconde */
}

/* Animation d'apparition */
@keyframes fadeIn {
  to {
    opacity: 1; /* Logo devient visible */
  }
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: fadeIn 1s forwards 2s;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}

/* Séparer l'animation bounce du centrage */
.scroll-indicator a {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bounce 2s infinite;
}

.chevron-down {
  width: 40px;
  height: 40px;
  color: var(--logo-color);
  transition: color 0.3s, transform 0.2s;
  display: block;
}

.scroll-indicator:hover .chevron-down {
  transform: translateY(5px);
  color: var(--accent-color);
}

/* Animation bounce modifiée pour ne pas interférer avec le centrage */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}


#design.section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse; 
    background-color:#511ded;
    color:#ffffff;
    
}

.auteur {
  font-style: italic;
  font-size:1rem;
}

footer.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

p.montserrat-bolder.fin {
    margin: 1rem 0rem;
    text-align:center;
}