/* Fichier : style.css */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Ubuntu', sans-serif;
    background: radial-gradient(circle at 50% -20%, rgba(97, 0, 255, 0.15), #000000 60%);
    background-color: #000000;
    color: #EFEDED;
    line-height: 1.6;
    padding: 2vh 20px;
    min-height: 100vh;
}

a { color: #6100FF; text-decoration: none; transition: color 0.2s; }
a:hover { color: #9b60ff; text-decoration: underline; }

h1, h2, h3 { font-weight: 700; margin-bottom: 20px; color: #ffffff; letter-spacing: 0.5px; }
h1 { font-size: 28px; border-bottom: 1px solid rgba(97, 0, 255, 0.3); padding-bottom: 15px; margin-bottom: 30px; }
h3 { font-size: 17px; margin-bottom: 20px; color: #EFEDED; font-weight: 500; }
p  { margin-bottom: 15px; color: #5F5F5F; }

/* ---- CONTENEUR ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }

/* ---- BOUTON PLEIN ---- */
.btn {
    padding: 14px 26px;
    background-color: #6100FF;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(97, 0, 255, 0.4);
    text-decoration: none;
}
.btn:hover {
    background-color: #7b2cff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(97, 0, 255, 0.8);
    text-decoration: none;
    color: #ffffff;
}
.btn:active { transform: scale(0.98); }

/* ---- BOUTON OUTLINE ---- */
.btn-outline {
    background-color: transparent;
    color: #6100FF;
    border: 2px solid #6100FF;
}
.btn-outline:hover {
    background-color: #6100FF;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(97, 0, 255, 0.4);
    text-decoration: none;
}

.btn-sm   { padding: 10px 15px; font-size: 12px; }
.btn-full { width: 100%; margin-top: 10px; }

/* ---- PANNEAUX ---- */
.home-container, .auth-container, .form-section, .qr-section {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(97, 0, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    padding: 35px;
}

.home-container { max-width: 480px; margin: 8vh auto; text-align: center; }
.auth-container  { max-width: 420px; margin: 6vh auto; }

/* ---- FORMULAIRE ---- */
.form-group { margin-bottom: 18px; text-align: left; }
label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 13px; color: #EFEDED; }
input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333333;
    border-radius: 10px;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
input:focus {
    border-color: #6100FF;
    box-shadow: 0 0 0 3px rgba(97, 0, 255, 0.15);
}

/* ---- MESSAGES ---- */
.message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.message-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
.message-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ---- DASHBOARD ---- */
.dashboard-header { margin-bottom: 10px; }
.dashboard-layout { display: flex; gap: 30px; flex-wrap: wrap; }
.form-section { flex: 1.6; min-width: 300px; }
.qr-section   { flex: 1; min-width: 280px; text-align: center; }

.qr-section img {
    margin: 20px 0;
    width: 200px;
    border-radius: 10px;
    border: 1px solid rgba(97, 0, 255, 0.3);
}

.ip-info {
    font-size: 11px;
    color: #5F5F5F;
    word-break: break-all;
    margin-top: 5px;
}

.qr-actions { margin-top: 20px; display: flex; flex-direction: column; }

/* ---- FOOTER ---- */
.main-footer { text-align: center; padding: 30px 20px; margin-top: 40px; }
.btn-logout  { color: #5F5F5F; text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.btn-logout:hover { color: #ef4444; text-decoration: none; }

/* ---- BOUTONS GROUPE ---- */
.btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ---- RESPONSIVE ---- */
@media screen and (max-width: 768px) {
    .dashboard-layout { gap: 20px; }
    .form-section, .qr-section { min-width: 100%; }
}
