/* ----- RESET ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

/* ----- GLOBAL ----- */
body {
    background: linear-gradient(135deg, #0d1117, #1b2330);
    color: #e6e6e6;
}

/* ----- HEADER ----- */
header {
    background: #0f1620;
    padding: 20px 0;
    border-bottom: 1px solid #1f2a38;
}

header h1 {
    text-align: center;
    color: #4ea1ff;
}
/* ----- DROPDOWN ----- */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;        /* Le menu apparaît juste sous le parent */
    left: 0;          /* Aligné à gauche du parent */
    background: #0f1620;
    padding: 10px 0;
    border: 1px solid #1f2a38;
    border-radius: 5px;
    min-width: 180px;
    z-index: 9999;    /* Le menu passe AU-DESSUS de tout */
}

/* Le menu reste ouvert tant que la souris est sur le LI */
nav ul li:hover > ul {
    display: block;
}

/* Sous-éléments du menu */
nav ul li ul li {
    padding: 10px 20px;
    white-space: nowrap; /* Empêche le texte de casser */
}

/* ----- NAVBAR ----- */
nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li {
    position: relative;
    padding-bottom: 10px;
}

nav a {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

nav a:hover {
    color: #4ea1ff;
}

/* ----- DROPDOWN ----- */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;        /* Le menu apparaît juste sous le parent */
    left: 0;          /* Aligné à gauche du parent */
    background: #0f1620;
    padding: 10px 0;
    border: 1px solid #1f2a38;
    border-radius: 5px;
    min-width: 180px;
    z-index: 9999;    /* Le menu passe AU-DESSUS de tout */
}

/* Le menu reste ouvert tant que la souris est sur le LI */
nav ul li:hover > ul {
    display: block;
}

/* Sous-éléments du menu */
nav ul li ul li {
    padding: 10px 20px;
    white-space: nowrap; /* Empêche le texte de casser */
}


/* ----- CONTAINER ----- */
.container {
    width: 85%;
    margin: 40px auto;
}

.container h2 {
    text-align: center;
    color: #4ea1ff;
    margin-bottom: 30px;
}

/* ----- GRID ----- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ----- CARD ----- */
.card {
    background: #111a25;
    border: 1px solid #1f2a38;
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #4ea1ff;
}

/* ----- IMAGE BOX ----- */
.image-box {
    width: 100%;
    height: 160px;
    background: #0f1620;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #1f2a38;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- TEXT ----- */
.card h3 {
    color: #4ea1ff;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.4rem;
}

/* ----- FOOTER ----- */
footer {
    text-align: center;
    padding: 20px;
    color: #6f7a89;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.neon-card {
    width: 220px;
    height: 300px;
    border-radius: 20px;
    border: 3px solid #00eaff;
    box-shadow:
        0 0 10px #00eaff,
        0 0 20px rgba(0, 234, 255, 0.5),
        inset 0 0 10px rgba(0, 234, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    padding-bottom: 15px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Effet pro au survol */
.neon-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 15px #00eaff,
        0 0 30px rgba(0, 234, 255, 0.7),
        inset 0 0 15px rgba(0, 234, 255, 0.4);
}

.neon-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid rgba(0, 234, 255, 0.4);
}

.neon-card h3 {
    margin-top: 12px;
    font-size: 1.2rem;
    color: #00eaff;
    text-shadow: 0 0 6px /* -------------------- 4 CADRES NÉON PRO AVEC TEXTE -------------------- */
}
.cards-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.neon-card {
    width: 220px;
    height: 300px;
    border-radius: 20px;
    border: 3px solid #00aaff;
    box-shadow:
        0 0 10px #00aaff,
        0 0 20px rgba(0, 234, 255, 0.5),
        inset 0 0 10px rgba(0, 234, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    padding-bottom: 15px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Effet pro au survol */
.neon-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 15px #00aaff,
        0 0 30px rgba(0, 234, 255, 0.7),
        inset 0 0 15px rgba(0, 234, 255, 0.4);
}

.neon-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid rgba(0, 234, 255, 0.4);
}

.neon-card h3 {
    margin-top: 12px;
    font-size: 1.2rem;
    color: #00aaff;
    text-shadow: 0 0 6px #00aaff;
}

.neon-card p {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #d0faff;
    padding: 0 10px;
}


.neon-card p {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #d0faff;
    padding: 0 10px;
}
