/**
 * @fileoverview Styles principaux de l'application Todo List
 * @author flozze
 * @version 2.0.0
 * @description Feuille de style principale qui importe et organise tous les styles de l'application
 * Harmonisé avec le style du site principal
 */

/* Import des fichiers CSS nécessaires */
@import "./root/color.css";
@import "./root/font.css";
@import "./task/add-task.css";
@import "./task/task.css";
@import "./language-selector.css";
@import "./media-query/media-handler.css";

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

/* Style du corps de la page */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 2rem 1rem;
}

/* Particules animées en arrière-plan */
.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  background: var(--particle-color);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-100px) translateX(50px) rotate(180deg);
    opacity: 0.8;
  }
}

/* Conteneur principal */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  position: relative;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  animation: fadeInDown 1s ease-out;
}

/* Section Flozze avec image animée */
.flozze-container {
  margin-bottom: 2rem;
  position: relative;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flozze-image {
  max-width: 180px;
  max-height: 180px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite ease-in-out;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  padding: 10px;
}

.flozze-image:hover {
  transform: scale(1.1) rotate(5deg);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style du titre principal */
h1 {
  font-family: var(--font-police);
  font-size: 3.5rem;
  color: white;
  text-align: center;
  margin: 20px 0 2rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style du formulaire */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  max-width: 100%;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Style de la liste des tâches */
ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 2rem auto;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 1s ease-out 0.9s both;
}

/* Style du footer */
.footer {
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  text-align: center;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  border-radius: 50px;
  padding: 12px 20px;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.footer-text:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Style du bouton de retour */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  color: white;
}

.back-button:hover {
  transform: translateX(-3px) scale(1.05);
  background: var(--glass-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-arrow {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}