/* Styles pour le projet Dualtron Thunder 3 - Léo K 2nd1 */
/* J'ai essayé de faire quelque chose de cool ! */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #000;
    color: #ffffff;
    line-height: 1.6;
}


/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Titre principal */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-transform: uppercase;
}

h1 span {
    color: #ff0000; /* rouge comme les feux du scooter */
}
/* Conteneur pour l'image du scooter */
.scooter-container {
    position: relative;
    height: 60vh;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scooter {
    max-height: 100%;
    max-width: 100%;
}


/* Points d'information interactifs */
.info-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ff0000;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.info-box {
    position: absolute;
    background-color: #000;
    border: 1px solid #ff0000;
    padding: 1rem;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 10;
}

.info-dot:hover .info-box {
    opacity: 1;
    visibility: visible;
}

.info-box h3 {
    color: #ff0000;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}


/* Section des caractéristiques */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 7rem;
}

.feature {
    background-color: #111;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #333;
}

.feature h3 {
    color: #ff0000;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Animations pour les points d'info */
.info-dot {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-dot:hover {
    transform: scale(1.5);
    box-shadow: 0 0 15px #ff0000;
}

/* Animations pour les cartes de caractéristiques */
.feature {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: 0.5s;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.feature:hover::before {
    left: 100%;
}


/* Animation pour le titre */
h1 {
    position: relative;
    display: inline-block;
    margin: 2rem auto;
}

h1::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -10px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

h1:hover::after {
    width: 100%;
}

/* Animation pour l'image du scooter */
.scooter {
    transition: transform 0.5s ease;
}

.scooter:hover {
    transform: scale(1.05);
}
/* Section vidéo */
.video {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.video iframe {
    flex: 0 0 auto;
}

.video h3 {
    flex: 1;
    margin: 0;
    color: #fff;
}

.video a {
    color: #ff0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video :hover {
    color: #ffffff;
    text-decoration: underline;
}


/* Flocons de neige pour l'ambiance */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  color: white;
  font-size: 20px;
  animation: fall linear infinite;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Bouton GitHub */
.github-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.github-btn:hover {
    color: #ff0000;
    transform: scale(1.1);
}

.github-btn svg {
    fill: currentColor;
}

/* Section remerciements */
.thanks {
    color: red;
}

/* Positions des flocons de neige */
.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: -5s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: -2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: -7s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: -3s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: -1s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: -4s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 8s; animation-delay: -6s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 13s; animation-delay: -3s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 9s; animation-delay: -2s; }
.snowflake:nth-child(10) { left: 5%; animation-duration: 11s; animation-delay: -4s; }

/* Tailles différentes pour les flocons */
.snowflake:nth-child(2n) { font-size: 16px; }
.snowflake:nth-child(3n) { font-size: 24px; }

/* Animation de balancement pour les flocons impairs */
.snowflake:nth-child(odd) {
  animation-name: fall, swing;
  animation-timing-function: linear, ease-in-out;
}

/* Animations keyframes */
@keyframes fall {
  from { transform: translateY(-100px); }
  to { transform: translateY(100vh); }
}

@keyframes swing {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(0) translateX(50px); }
}

/* Positions des boîtes d'information */
.info-dot:nth-child(1) .info-box { top: 100%; left: 50%; }
.info-dot:nth-child(2) .info-box { top: 100%; left: 0; }

/* Signature personnelle */
.signature {
    font-style: italic;
    opacity: 0.8;
}