/* ============================
   JCUP - MODERN DARK THEME
   ============================ */

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

body {
    background: linear-gradient(135deg, #0a0e27, #1a1f3a);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e6e6e6;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 30px; /* adaptation selon la hauteur du footer */
}

/* --- Navbar (Menu) --- */
nav img {
    height: 70px; 
    width: auto;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase
}

/* --- Utility Classes --- */
li {
    list-style: none;
}

.transp-30 {
    opacity: 0.7;
}
/* Bouton jaune avec texte bleu pour Se connecter */
.btn-outline-yellow-blue {
    color: #0d6efd !important; /* Bootstrap blue */
    background-color: #ffd600 !important; /* Bright yellow */
    border: 1px solid #ffd600 !important;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-yellow-blue:hover,
.btn-outline-yellow-blue:focus {
    background-color: #0d6efd !important;
    color: #ffd600 !important;
    border-color: #0d6efd !important;
}

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

.centrage-texte {
    text-align: center;
}

.wrap {
    flex-wrap: wrap;
}

/* --- Separators --- */
.separateur-10 { margin-top: 10px; }
.separateur-20 { margin-top: 20px; }
.separateur-30 { margin-top: 30px; }
.separateur-50 { margin-top: 50px; }
.separateur-70 { margin-top: 70px; }
.separateur-150 { margin-top: 150px; }
.separateur-300 {
    padding-top: 300px;
    padding-bottom: 300px;
}

/* --- Links --- */
a {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 20px #d4af37;
}

/* --- Titles --- */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: #d4af37;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

h3 {
    font-size: 1.8rem;
    color: #ffffff;
}

/* --- Buttons --- */
.btn {
    font-family: inherit;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc, #003d99);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    box-shadow: 0 6px 25px rgba(255, 51, 51, 0.5);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid #d4af37;
    color: #d4af37;
    background: transparent;
}

.btn-outline-light:hover {
    background: #d4af37;
    color: #1a1f3a;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Main Content Sections --- */
main {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

article {
    margin: 3rem 0;
}

/* --- Cards --- */
.card {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.2);
}

.card-body {
    padding: 2rem;
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* --- Selection --- */
::selection {
    background: #d4af37;
    color: #1a1f3a;
}

/* --- Horizontal Line --- */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 2rem 0;
}

/* --- Text --- */
p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #d0d0d0;
}

p b {
    color: #d4af37;
}

/* --- Améliorations du menu en vue mobile --- */
@media (max-width: 991px) {

    /* Centre tout le contenu du menu déroulé */
    .navbar-nav {
        text-align: center !important;
        width: 100%;
    }

    /* Agrandit les liens du menu */
    .navbar-nav .nav-link {
        font-size: 1.2rem !important;
        padding: 0.75rem 0 !important;
    }

    /* Centre la section Connexion */
    .navbar-text {
        width: 100%;
        text-align: center !important;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }

    /* Style plus élégant en collapse */
    .navbar-nav .nav-link {
        font-weight: 600;
        letter-spacing: 1px;
    }
}