/* ======================================== */
/* === static/css/base_styles.css ===       */
/* ======================================== */
/* Contient les styles communs à tout le site */

/* --- Styles Globaux --- */
:root {
    --bg-color: #0d0f1a;
    --card-bg-color: #1a1c2a;
    --border-color: rgba(138, 43, 226, 0.2);
    --glow-color: rgba(138, 43, 226, 0.8);
    --accent-color1: #8A2BE2; /* Violet */
    --accent-color2: #00D1C5; /* Cyan */
    --text-color: #e0e0e0;
    --text-muted: #888da8;
    --positive-color: #00ffaa;
    --negative-color: #ff4d4d;
    --neutral-color: #4a90e2;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --border-radius: 8px;
    --card-padding: 25px; /* Padding par défaut des cartes */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s ease-out;

    /* --- Custom Cursor Variables --- */
    --cursor-outer-size: 30px;
    --cursor-inner-size: 6px;
    --cursor-outer-color: var(--accent-color1);
    --cursor-inner-color: var(--accent-color2);
    --cursor-outer-border-width: 2px;
    --cursor-transition: 0.1s ease-out; /* Faster transition for cursor */
}

/* --- Base Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background-color: var(--bg-color); color: var(--text-color);
    font-family: var(--font-secondary); line-height: 1.6;
    overflow-x: hidden; padding-top: 20px; padding-bottom: 0; /* Remove bottom padding, footer will handle it */
    display: flex; /* Use flexbox for sticky footer */
    flex-direction: column; /* Stack content and footer vertically */
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    cursor: none; /* Hide default cursor */
}
/* Ensure main content area can grow */
.page-container {
    flex-grow: 1; /* Allows this container to push the footer down */
}

a, button { cursor: none; } /* Ensure links and buttons also hide default cursor */

/* --- Utility/Layout --- */
.page-container, .header-container { /* header-container ajouté pour le scope de la navbar */
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    width: 100%; /* Ensure it takes full width within constraints */
}
h1, h2, h3, h4 {
    font-family: var(--font-primary); font-weight: 700;
    margin-bottom: 0.7em; color: #fff; letter-spacing: 1px;
}
/* Tailles de titres génériques (peuvent être surchargées) */
h1 { font-size: 2.5rem; } /* Taille par défaut */
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; color: var(--text-color); }
p { margin-bottom: 1em; color: var(--text-muted); font-size: 1rem; }
a { color: var(--accent-color2); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-color1); }

/* --- Header / Navbar (Styles communs aux deux navbars) --- */
.dashboard-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 0; margin-bottom: 35px; border-bottom: 1px solid var(--border-color);
}
.dashboard-header .logo { display: flex; align-items: center; flex-shrink: 0; }
/* Style pour le lien du logo */
.dashboard-header .logo a { display: flex; align-items: center; text-decoration: none; color: inherit;}
.dashboard-header .logo a:hover { color: inherit; } /* Empêche le changement de couleur au survol si non désiré */
.dashboard-header .logo svg {
    width: 35px; /* Ajustez la taille si nécessaire */
    height: 35px; /* Ajustez la taille si nécessaire */
    margin-right: 12px; /* Espace entre logo et texte */
    /* Retirez l'animation si elle ne s'applique pas à ce logo */
    /* animation: rotateGlow 10s linear infinite; */
}
/* @keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } */ /* Commenté si non utilisé */
.dashboard-header .logo h1 {
    font-size: 1.4rem; /* Ajustez si besoin */
    margin: 0; /* Supprime la marge par défaut du H1 */
    color: #fff; font-weight: 700; letter-spacing: 1px; white-space: nowrap;
}
.dashboard-header nav { display: flex; gap: 25px; margin: 0 20px; overflow-x: auto; padding-bottom: 5px; }
.dashboard-header nav a {
    color: var(--text-muted); font-weight: 500; padding: 5px 0; position: relative;
    transition: color var(--transition-fast); white-space: nowrap; flex-shrink: 0;
}
.dashboard-header nav a::after { /* Effet de soulignement pour la navigation active/hover */
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-color1), var(--accent-color2));
    transition: width var(--transition-medium);
}
.dashboard-header nav a:hover, .dashboard-header nav a.active { color: #fff; text-decoration: none; }
.dashboard-header nav a:hover::after, .dashboard-header nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 10px; /* Ajout d'un gap par défaut */ }

/* --- Style spécifique Navbar Landing (Lien Login) --- */
.navbar-login-link {
    color: var(--text-muted);
    padding: 8px 15px; /* Un peu de padding */
    border-radius: var(--border-radius);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    text-decoration: none;
    font-weight: 500;
    /* margin-right: 10px; /* Espace avant le bouton principal - géré par gap sur header-actions */
}
.navbar-login-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1); /* Léger fond au survol */
    text-decoration: none;
}

/* --- Bouton Animé (Communes aux différentes pages) --- */
.animated-button {
    background: linear-gradient(90deg, var(--accent-color1), var(--accent-color2)); border: none; color: #fff;
    border-radius: 5px; font-weight: 500; font-family: var(--font-secondary); cursor: pointer;
    position: relative; overflow: hidden; transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    z-index: 1; text-align: center; display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; white-space: nowrap; padding: 10px 20px; font-size: 1rem;
}
/* Spécificités taille/padding par contexte (peuvent être mises dans les fichiers spécifiques si besoin) */
.header-actions .animated-button { padding: 8px 18px; font-size: 0.9rem; }
.animated-button span { position: relative; z-index: 2; }
.animated-button::before { /* Effet brillance */
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transition: left var(--transition-medium); z-index: 1;
}
.animated-button:hover { filter: brightness(1.1); text-decoration: none; color: #fff;}
.animated-button:hover::before { left: 100%; }
.animated-button:active { transform: scale(0.98); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); filter: brightness(0.95); }
.animated-button svg { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; }

/* --- Card Base --- */
.card {
    background: linear-gradient(145deg, var(--card-bg-color), #141621); border-radius: var(--border-radius);
    padding: var(--card-padding); border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 5px rgba(138, 43, 226, 0.1);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
    position: relative; overflow: hidden;
}
.interactive-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color), inset 0 0 8px rgba(138, 43, 226, 0.2);
    border-color: var(--accent-color1);
}

/* --- Animation Fade-In --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Transition for JS trigger */
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Custom Cursor Styles --- */
#custom-cursor-outer,
#custom-cursor-inner {
    position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%;
    z-index: 9999; opacity: 0;
    transition: transform var(--cursor-transition), opacity 0.2s ease-out, width var(--cursor-transition), height var(--cursor-transition), border-color var(--cursor-transition), background-color var(--cursor-transition);
    transform: translate(-50%, -50%);
}
#custom-cursor-outer {
    width: var(--cursor-outer-size); height: var(--cursor-outer-size);
    border: var(--cursor-outer-border-width) solid var(--cursor-outer-color);
}
#custom-cursor-inner {
    width: var(--cursor-inner-size); height: var(--cursor-inner-size);
    background-color: var(--cursor-inner-color);
}
/* Cursor Hover Effects */
body.cursor-hover #custom-cursor-outer {
    transform: translate(-50%, -50%) scale(1.5); opacity: 0.5;
    border-color: var(--accent-color2);
}
body.cursor-hover #custom-cursor-inner {
    transform: translate(-50%, -50%) scale(0.7);
    background-color: var(--cursor-outer-color);
}


/* --- Footer Styles --- */
.site-footer {
    background-color: var(--card-bg-color); /* Utilise la couleur de fond des cartes ou var(--bg-color) */
    color: var(--text-muted);
    padding: 50px 0 20px 0; /* Padding haut/bas */
    margin-top: 60px; /* Espace au-dessus du footer */
    border-top: 1px solid var(--border-color);
    width: 100%; /* Prend toute la largeur */
    flex-shrink: 0; /* Empêche le footer de rétrécir */
}

.footer-grid {
    display: grid;
    /* Crée 4 colonnes sur les grands écrans, ajuste '1fr' si besoin d'une colonne plus large */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; /* Espace entre les colonnes */
    margin-bottom: 40px;
}

.footer-column h4 {
    font-family: var(--font-primary);
    color: #fff; /* Titres en blanc */
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px; /* Espace entre les liens */
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--accent-color2); /* Changement de couleur au survol */
}

/* Styles spécifiques Newsletter */
.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column; /* Empile input et bouton par défaut */
    gap: 10px;
}

.newsletter-form input[type="email"] {
    padding: 10px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: rgba(13, 15, 26, 0.8); /* Fond un peu différent */
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-color1);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

.newsletter-form .small-footer-button {
    padding: 9px 18px; /* Taille adaptée au footer */
    font-size: 0.9rem;
    justify-content: center; /* Centre le texte/icône */
}

/* Ligne inférieure du Footer */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permet de passer à la ligne sur petit écran */
    gap: 15px; /* Espace si ça passe à la ligne */
    font-size: 0.85rem;
}

.footer-copyright {
    color: var(--text-muted);
}

.footer-social a {
    color: var(--text-muted);
    margin-left: 15px; /* Espace entre les icônes sociales */
    transition: color var(--transition-fast);
}
.footer-social a svg {
    display: inline-block; /* Assure l'alignement */
    vertical-align: middle;
}

.footer-social a:hover {
    color: #fff; /* Icônes en blanc au survol */
}


/* --- Responsive Base (appliqué globalement) --- */
@media (max-width: 992px) {
     .dashboard-header h1 { font-size: 1.3rem; }
     .dashboard-header nav { gap: 20px; }
     .header-actions .animated-button { padding: 8px 15px; font-size: 0.85rem; }
     /* Réduire taille titres globaux */
     h1 { font-size: 2.2rem; }
     h2 { font-size: 1.7rem; }
}
@media (max-width: 768px) {
      .dashboard-header { flex-wrap: wrap; justify-content: center; gap: 15px;}
      .dashboard-header .logo { margin-bottom: 0; flex-basis: 100%; justify-content: center; text-align: center;} /* Logo centré et pleine largeur */
      .dashboard-header .logo h1 { display: inline-block; font-size: 1.4rem;} /* Afficher le titre sur mobile */
      .dashboard-header nav { order: 3; width: 100%; justify-content: center; margin: 10px 0 0 0; } /* Nav en dernier */
      .header-actions { order: 2; flex-basis: 100%; justify-content: center;} /* Actions au milieu */
      .page-container { padding: 0 15px; }
      h1 { font-size: 2rem; }
      h2 { font-size: 1.6rem; }

      /* Footer Responsive */
      .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
     }
     .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-social a {
        margin: 0 8px;
    }
}
@media (max-width: 480px) {
      html { font-size: 15px; }
      .dashboard-header .logo svg {
          width: 30px;
          height: 30px;
          margin-right: 8px;
      }
      .dashboard-header .logo h1 {
          font-size: 1.2rem;
      }
      .dashboard-header nav { gap: 15px; }
      .dashboard-header nav a { font-size: 0.9rem; }
      .card { padding: 20px; }
      h1 { font-size: 1.8rem; }
      h2 { font-size: 1.5rem; }
      .header-actions .animated-button { font-size: 0.9rem; padding: 10px 20px;}
      .navbar-login-link { font-size: 0.9rem; padding: 8px 12px;}

      /* Footer Responsive */
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
      }
     .footer-column h4 {
        margin-bottom: 15px;
      }
     .footer-column ul li {
        margin-bottom: 10px;
     }
}
 /* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    #custom-cursor-outer, #custom-cursor-inner { display: none !important; }
    body, a, button { cursor: auto !important; }
}

/* --- Fin de base_styles.css --- */
