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

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: white;
}

.navbar {
    display:flex;
    justify-content:space-between;
    padding:20px 10%;
    position:fixed;
    width:100%;
    background:rgba(15,23,42,0.9);
    backdrop-filter:blur(10px);
}

.logo {
    font-weight:900;
    font-size:22px;
}

.logo span { color:#38bdf8; }

.nav-links a {
    margin-left:25px;
    text-decoration:none;
    color:white;
    font-weight:500;
}

.btn-admin {
    background:#38bdf8;
    padding:8px 15px;
    border-radius:20px;
}

.hero {
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
}

.hero h1 {
    font-size:55px;
    font-weight:900;
}

.hero span { color:#38bdf8; }

.hero p {
    margin:20px 0;
    font-size:18px;
    color:#cbd5e1;
}

.btn-primary {
    background:#38bdf8;
    padding:15px 35px;
    border-radius:30px;
    text-decoration:none;
    color:black;
    font-weight:bold;
    transition:0.3s;
}

.btn-primary:hover {
    transform:scale(1.05);
}

.stats {
    display:flex;
    justify-content:center;
    gap:40px;
    padding:80px 0;
}

.stat-card {
    background:#1e293b;
    padding:40px;
    border-radius:20px;
    text-align:center;
    width:220px;
}

.features {
    padding:100px 10%;
    text-align:center;
}

.feature-grid {
    display:flex;
    justify-content:center;
    gap:40px;
    margin-top:50px;
}

.feature {
    background:#1e293b;
    padding:40px;
    border-radius:20px;
    width:250px;
}

.ticket-section {
    display:flex;
    gap:60px;
    padding:100px 10%;
}

.ticket-form, .ticket-preview {
    flex:1;
    background:#1e293b;
    padding:40px;
    border-radius:20px;
}

input, select, textarea {
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:10px;
    border:none;
}

.ticket-card {
    background:#0f172a;
    padding:20px;
    border-radius:15px;
    margin-bottom:15px;
}

.ticket-card.en\ attente { border-left:5px solid orange; }
.ticket-card.résolu { border-left:5px solid #38bdf8; }

footer {
    background:#0f172a;
    padding:50px 10%;
}

.footer-content {
    display:flex;
    justify-content:space-between;
}

@media(max-width:1000px){
    .ticket-section { flex-direction:column; }
    .feature-grid { flex-direction:column; align-items:center; }
    .stats { flex-direction:column; align-items:center; }
}
/* ===== LOGIN PAGE ===== */

.login-body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 25px;
    width: 400px;
    text-align: center;
    box-shadow: 0 0 60px rgba(56,189,248,0.2);
    animation: fadeIn 0.8s ease;
}

.login-card h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 12px;
    color: white;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 14px;
    color: #94a3b8;
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    background: #1e293b;
    padding: 0 5px;
    color: #38bdf8;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: #38bdf8;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #38bdf8;
}

.error-msg {
    background: rgba(220,38,38,0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #f87171;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #38bdf8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ========================= */
/* 📱 RESPONSIVE DESIGN */
/* ========================= */

@media (max-width: 1100px) {

    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .feature-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .ticket-section {
        flex-direction: column;
        gap: 40px;
    }

}

@media (max-width: 768px) {

    /* NAVBAR */
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none; /* simplifie mobile */
    }

    /* HERO */
    .hero {
        padding: 0 20px;
        height: auto;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* STATS */
    .stats {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
    }

    .stat-card {
        width: 100%;
        max-width: 320px;
    }

    /* FEATURES */
    .features {
        padding: 70px 20px;
    }

    .feature-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 100%;
        max-width: 350px;
    }

    /* TICKET SECTION */
    .ticket-section {
        padding: 70px 20px;
    }

    .ticket-form,
    .ticket-preview {
        width: 100%;
        padding: 25px;
    }

    input, select, textarea {
        font-size: 14px;
    }

    /* FOOTER */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }

    .stat-card {
        padding: 25px;
    }

}
/* ========================= */
/* PAGE CONFIDENTIALITÉ et CONDITIONS */
/* ========================= */

.privacy-body, .legal-body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 80px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 700;
    color: #38bdf8;
}

.nav-links {
    float: right;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
}

.legal-section {
    padding: 80px 10% 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-container {
    max-width: 900px;
    width: 100%;
    background: #1e293b;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.last-update {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
}

.legal-card {
    background: #0f172a;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #38bdf8;
    transition: 0.3s;
}

.legal-card:hover {
    transform: translateX(5px);
}

.legal-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #38bdf8;
}

.legal-card p, .legal-card ul {
    font-size: 16px;
    line-height: 1.8;
}

ul {
    list-style: inside;
}

ul li {
    margin-bottom: 10px;
}

.contact-section {
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

footer {
    background: #0f172a;
    padding: 30px 10%;
    text-align: center;
    margin-top: 50px;
    color: #cbd5e1;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

footer p {
    font-size: 14px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 30px;
    }

    .legal-card h2 {
        font-size: 20px;
    }

    h1 {
        font-size: 28px;
    }
}
/* ========================= */
/* PAGE CREER TICKET CENTREE */
/* ========================= */

.ticket-body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 0; /* Retire l'espace supplémentaire */
    margin: 0; /* Retire les marges par défaut */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 700;
    color: #38bdf8;
}

.nav-links {
    float: right;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
}

.ticket-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.ticket-container {
    max-width: 800px;
    width: 100%;
    background: #1e293b;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.alert {
    background: #38bdf8;
    color: #1e293b;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.ticket-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 16px;
    margin-bottom: 5px;
    color: #cbd5e1;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    background: #334155;
    border: none;
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

button {
    background: #38bdf8;
    color: #1e293b;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0ea5e9;
}

footer {
    background: #0f172a;
    padding: 30px 10%;
    text-align: center;
    margin-top: 50px;
    color: #cbd5e1;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

footer p {
    font-size: 14px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .ticket-container {
        padding: 30px;
    }

    .ticket-form {
        padding: 0 20px;
    }

    h1 {
        font-size: 28px;
    }
}
