/* Import de la police Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --bg-dark: #0a0a1a;          /* Fond très sombre */
    --primary-blue: #1e88e5;    /* Bleu principal */
    --accent-blue: #81d4fa;     /* Bleu pâle */
    --text-light: #e0e0e0;      /* Texte clair */
    --text-muted: #aaaaaa;      /* Texte secondaire */
    --card-bg: #1a1a2e;         /* Fond du conteneur */
    --hover-bg: #222244;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark); 
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-y: auto;
}

.container {
    background-color: var(--card-bg); 
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 40px;
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

/* --- Navigation du haut --- */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--hover-bg);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 400;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: var(--primary-blue);
}

.action-link.logout:hover {
    color: #ef4444; /* Rouge pour la déconnexion */
}

.user-info {
    font-size: 0.9em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
}

.admin-link {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85em;
    transition: background 0.3s;
}

.admin-link:hover {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
}

/* --- Contenu Principal --- */
.portal-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.logo-overlay {
    position: absolute;
    bottom: -5px;
    right: -10px;
    color: var(--accent-blue);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.main-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.secondary-message {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 40px;
}

.tools-grid-visual {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 20px;
    flex-wrap: wrap;
}

.visual-tool-link {
    display: block;
    max-width: 350px; 
    min-width: 250px; 
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-tool-link:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.5);
}

.visual-tool-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.footer-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--hover-bg);
    color: var(--text-muted);
    font-size: 0.85em;
}

.footer-info a {
    color: var(--primary-blue);
    text-decoration: none;
}
/* --- Styles de la Modale Profil --- */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fond noir semi-transparent */
    backdrop-filter: blur(3px); /* Effet de flou sur l'arrière-plan */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.profile-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--hover-bg);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .profile-card {
    transform: translateY(0);
}

/* Le bouton X */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ef4444;
}