/*
==========================================================
Fichier : pages/home.css
Projet  : Logiique
Rôle    : Styles spécifiques à la page d’accueil
Auteur  : Thibault Chassagne

Description :
- Centrage du contenu, ambiance “immersive”.
- Grille vivante plus lumineuse.
- Renforce l'identité visuelle d’introduction.

==========================================================
*/

/* ⚙️ Import unique : tout passe par main.css */
@import url("../main.css");

/* --- Structure principale --- */
body.home {
  --grid-opacity: 0.75;
  --grid-border-opacity: 0.06;
  --grid-active-opacity: 0.6;
  --grid-hue: 210;
}
/*ATTENTION A BIEN METTRE main. /!\ -Thib*/
main.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
}

/* --- Contenu central --- */
.home-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeIn 1.2s var(--transition-smooth) both;
  padding: 20px;
}

.home-logo {
  width: 120px;
  height: auto;
  margin-bottom: 25px;
  animation: float 5s ease-in-out infinite;
}

.home-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.home-subtitle {
  color: var(--color-text-light);
  margin-bottom: 45px;
  font-size: 1.05rem;
}

/* --- Bouton de connexion --- */
.home-login {
  @extend .btn;
  @extend .btn-gradient;
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  text-transform: none;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-light);
}

.home-login:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .home-logo {
    width: 90px;
    margin-bottom: 15px;
  }

  .home-title {
    font-size: 1.6rem;
  }

  .home-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .home-login {
    font-size: 0.95rem;
    padding: 12px 28px;
  }
}

/* --- Mode sombre (préparé) --- */
body.theme-dark {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.theme-dark .grid-cell {
  border-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .grid-cell.active {
  background: var(--color-accent4);
  opacity: 0.45;
}

body.theme-dark .home-title {
  color: #e2e8f0;
}

body.theme-dark .home-subtitle {
  color: #94a3b8;
}

