/* Styles spécifiques pour l'authentification Netlify Identity */

#netlify-auth-container {
    margin: 2rem 0;
    text-align: center;
}

#user-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#user-info p {
    margin: 0 0 1rem 0;
    font-weight: 500;
    color: #28a745;
}

#login-btn, #logout-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#login-btn {
    background: #007bff;
    color: white;
}

#login-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

#logout-btn {
    background: #6c757d;
    color: white;
}

#logout-btn:hover {
    background: #545b62;
}

.intranet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.intranet-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.intranet-item:hover {
    transform: translateY(-5px);
}

.intranet-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.intranet-item .icon {
    color: #007bff;
    margin-right: 0.5rem;
}

.intranet-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Styles pour les notifications */
.auth-notification {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    text-align: center;
}

.auth-notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}


/* Masquer le widget Netlify Identity par défaut pour éviter les conflits */
div[data-netlify-identity-menu] {
    display: none !important;
}

/* Masquer le bouton Netlify Identity automatique */
[data-netlify-identity-button] {
    display: none !important;
}

/* Styles pour éviter l'affichage de contenu indésirable */
body:not(.netlify-identity-open) [data-netlify-identity-menu] {
    display: none !important;
}

/* Empêcher l'injection de contenu par Netlify Identity */
body::after {
    display: none !important;
}

/* Masquer tout contenu généré automatiquement par Netlify */
.netlify-identity-widget {
    display: none !important;
}

