html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../IMG/BG.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center; /* Centre verticalement */
    gap: 10px; /* Espace entre l'image et le texte */
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../IMG/BG.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
}

.hero2 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../IMG/BG.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}


.hero2 h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
}

.discord-button {
    padding: 0.8rem 2rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.discord-button:hover {
    background: white;
    color: black;
}

.dark-section {
    background: rgba(0, 0, 0);
    width: 100%;
    padding: 3rem 0;
    margin: 0;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.section-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.section-card h2, .section-card p, .section-card .section-button {
    position: relative;
    z-index: 2;
}
.section-button {
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid white;
    color: white;
    text-decoration: none;
}
.required-star {
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

.police {
    background-image: url('../IMG/Gendarme.png');
    background-position: center; /* Centre l'image horizontalement et verticalement */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    background-size: cover; /* Ajuste l'image à l'intérieur de l'élément tout en préservant ses proportions */
}

.pompier {
    background-image: url('../IMG/Pompier.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Ajuste l'image à l'intérieur de l'élément tout en préservant ses proportions */

}

.Civil {
    background-image: url('../IMG/Civil.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

select {
    background-color: black;  /* Fond noir */
    color: white;             /* Texte blanc */
    border: 1px solid white;  /* Bordure blanche */
    padding: 10px;            /* Espacement interne */
    font-size: 16px;          /* Taille de la police */
    font-family: Arial, sans-serif; /* Police de caractères */
    border-radius: 5px;       /* Coins arrondis */
    appearance: none;         /* Désactive les styles natifs */
}

select option {
    background-color: black;  /* Fond noir pour chaque option */
    color: white;             /* Texte blanc */
}

select:focus {
    outline: none;            /* Enlève le contour par défaut */
    border-color: #007BFF;    /* Bordure bleue lors du focus */
}



.illegal {
    background-image: url('../IMG/Illegal.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.form-container {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

h2 {
    color: #2196F3;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
}

.step-info {
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2196F3;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #2196F3;
    color: white;
    border-radius: 4px;
    margin-bottom: 1rem;
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    padding: 1rem 2rem;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background: #1976D2;
}

button.prev {
    background: transparent;
    border: 1px solid #2196F3;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.step.active {
    background: #2196F3;
}
footer {
    background: #31435d;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto; /* Important : remplace margin-top: 4rem */
    flex-shrink: 0;
}

footer a {
    color: white;
    text-decoration: none;
}

.alert {
    position: absolute;
    top: 70px; /* Ajuste selon la hauteur de ton header */
    left: 20px;
    padding: 10px 15px;
    background-color: rgba(255, 0, 0, 0.8); /* Rouge semi-transparent */
    color: white;
    font-weight: bold;
    border-radius: 5px;
    z-index: 1000; /* Assure que l'alerte reste au-dessus des autres éléments */
    max-width: 300px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #31435d;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
}

/* Base styles remain the same until the media queries */

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        padding: 0 1rem;
    }

    .form-container {
        margin: 40px 20px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-card {
        height: 250px;
    }

    .form-container {
        padding: 1rem;
    }

    .buttons {
        flex-direction: column;
        gap: 1rem;
    }

    button {
        width: 100%;
    }

    .step-indicator {
        gap: 0.5rem;
    }

    .step {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-container {
        font-size: 1.2rem;
    }
    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .discord-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-card {
        height: 200px;
        padding: 1rem;
    }

    .section-card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .section-card p {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    input, select, textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .scroll-top {
        width: 35px;
        height: 35px;
        bottom: 1rem;
        right: 1rem;
    }

    footer {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Amélioration de l'accessibilité et de l'interactivité */
@media (hover: hover) {
    .nav-links a:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

    .section-card:hover .overlay {
        background: rgba(0, 0, 0, 0.3);
    }

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: #1976D2;
        box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
    }
}

/* Mode sombre optimisé */
@media (prefers-color-scheme: dark) {
    .form-container {
        background: rgba(0, 0, 0, 0.95);
    }

    input, select, textarea {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Réduction des animations pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.title {
    font-weight: bold;
    color: #ffffff;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* Ajoutez ces styles à votre fichier style.css */

.info-group {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.info-group label {
    font-weight: bold;
    color: #fff;
    margin-right: 0.5rem;
}

.info-group span {
    color: #ccc;
}

.histoire-text {
    white-space: pre-line;
    color: #ccc;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-weight: bold;
}

.status-badge.en.attente {
    background-color: #ffd700;
    color: #000;
}

.status-badge.attente.entretient.vocal {
    background-color: #ffd700;
    color: #000;
}

.status-badge.a.modifier.bg {
    background-color: #ffa500;
    color: #000;
}

.status-badge.whitelist {
    background-color: #4caf50;
    color: #fff;
}

.status-badge.whitelist.refusé {
    background-color: #f44336;
    color: #fff;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #357abd;
}

.button.prev {
    background-color: #666;
}

.button.prev:hover {
    background-color: #555;
}



/* Style pour le header fixe */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Technique du padding-top sur le body */
body {
    padding-top: 80px; /* Valeur initiale égale à la hauteur du header desktop */
}

/* Pour les mobiles */
@media screen and (max-width: 768px) {
    body {
        padding-top: 60px; /* Valeur égale à la hauteur du header mobile */
    }
}


.steam-login-section {
    width: 95%; /* Presque toute la largeur de l'écran */
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 400px); /* Colonnes de 400px exactement */
    gap: 20px;
    justify-content: start; /* Pas de centrage, commence à gauche */
    padding: 20px;
}

.info-card {
    max-width: 500px;
    min-width: 350px;
}


/* === LOGIN === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: rgba(44, 62, 80, 0.9);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header h2 {
    color: #f39c12;
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.login-description {
    color: #ecf0f1;
    margin-bottom: 30px;
    line-height: 1.5;
}

.steam-login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.steam-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.login-note {
    color: #bdc3c7;
    margin-top: 20px;
    font-size: 0.85em;
}

/* === DASHBOARD === */
.dashboard-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    text-align: center;
    color: white;
    position: relative;
}

.dashboard-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.6em;
    font-weight: 600;
}

.steam-id {
    opacity: 0.9;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-whitelisted {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-not-whitelisted {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* === CARTES === */
.cards-container {
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.info-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;

}

.personal-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.financial-header {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
}

.activity-header {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.card-header h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;

}

.card-body {
    padding: 0;
}

.card-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.card-item:last-child {
    border-bottom: none;
}

.card-item:hover {
    background: #f8fafc;
}

.item-icon {
    font-size: 1.5em;
    margin-right: 15px;
    width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item-label {
    font-size: 0.75em;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-value {
    font-size: 1em;
    color: #1e293b;
    font-weight: 600;
}

/* === STYLES SPÉCIAUX === */
.money-value {
    color: #059669 !important;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.total-wealth {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.total-wealth .item-icon {
    color: #d97706;
}

.total-wealth .item-label {
    color: #92400e;
}

.total-value {
    color: #d97706 !important;
    font-weight: 800 !important;
    font-size: 1.2em !important;
    font-family: 'Courier New', monospace;
}

.status-value {
    color: #059669 !important;
    font-weight: 700;
}

/* === NON WHITELIST === */
.not-whitelisted {
    text-align: center;
    padding: 40px 20px;
    background: white;
    margin: 20px;
    border-radius: 12px;
}

.not-whitelisted h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.not-whitelisted p {
    color: #64748b;
}

/* === FOOTER === */
.dashboard-footer {
    padding: 20px;
    text-align: center;
    background: #f8fafc;
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .steam-login-section {
        padding: 10px;
    }

    .dashboard-header {
        padding: 20px;
    }

    .cards-container {
        padding: 15px;
        gap: 12px;
    }

    .card-item {
        padding: 15px;
    }

    .item-icon {
        font-size: 1.3em;
        margin-right: 12px;
    }
}