/* =========================================
   VARIABLES & GLOBAL
   ========================================= */
:root {
    /* LIGHT MODE */
    --primary-color: #ff914d;
    --body-overlay: rgba(255, 255, 255, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(15px);

    --text-main: #1a1a1a;
    --shadow-md: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --shadow-glow: 0 0 15px rgba(255, 145, 77, 0.3);
    --radius-lg: 20px;
}

body.dark-mode {
    /* DARK MODE */
    --body-overlay: rgba(0, 0, 0, 0.3);

    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    --text-main: #ffffff;
    --shadow-md: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

@font-face {
    font-family: 'Bruno Ace';
    src: url('police/BrunoAce-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lucidity Consended';
    src: url('police/lucidity-condensed.ttf') format('truetype');
}

/* BACKGROUND IMAGE GLOBAL SUR TOUT LE SITE */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);

    /* L'image de fond */
    background: linear-gradient(var(--body-overlay), var(--body-overlay)), url('../images/header-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    transition: color 0.3s;
}

h1,
h2,
h3 {
    font-family: 'Lucidity Consended', 'Bruno Ace', sans-serif;
    text-align: center;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* =========================================
   NAVIGATION (COPIÉE DE STYLE.CSS)
   ========================================= */
nav {
    position: sticky;
    top: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1000;

    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);

    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-main);
    font-weight: 500;
    border-radius: 30px;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

#theme-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 15px;
}

#theme-toggle:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* =========================================
   LAYOUT SPÉCIFIQUE PROJET
   ========================================= */

/* STAR - Les cartes avec effet GLASS */
#Star {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 80px auto;
    /* Marge augmentée car sous la nav */
    width: 90%;
    max-width: 1200px;
}

.lettreStar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);

    color: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 25px;
    flex: 1 1 250px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    position: relative;
}

.lettreStar:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.lettreStar::before {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Bruno Ace', sans-serif;
}

.lettreStar:nth-child(1)::before {
    content: "S";
}

.lettreStar:nth-child(2)::before {
    content: "T";
}

.lettreStar:nth-child(3)::before {
    content: "A";
}

.lettreStar:nth-child(4)::before {
    content: "R";
}

/* LISTE DES COMPÉTENCES */
body>ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    list-style: none;
}

body>ul>li {
    background-color: var(--glass-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

body>ul>li:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

body>ul>li i {
    margin-right: 8px;
}

/* BANNIERE EN TRAVAUX */
#construction-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Nav */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
        padding: 15px;
    }
}