/* assets/css/style.css */

:root {
    --bg-color: #0d0d12; /* Fond très sombre (presque noir) */
    --surface-color: rgba(25, 20, 20, 0.75); /* Glassmorphism surface sombre */
    --surface-border: rgba(255, 255, 255, 0.05);
    --primary-color: #d90429; /* Rouge Arès */
    --accent-color: #ffb703; /* Doré / Jaune épique */
    --text-main: #f8f9fa;
    --text-muted: #8d99ae;
    --font-family: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Ajout d'un background dynamique rouge/sombre */
    background-image: radial-gradient(circle at 15% 50%, rgba(217, 4, 41, 0.1), transparent 30%),
                      radial-gradient(circle at 85% 30%, rgba(255, 183, 3, 0.05), transparent 30%);
    background-attachment: fixed;
}

/* --- NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: linear-gradient(rgba(13, 13, 18, 0.85), rgba(13, 13, 18, 0.95)), url('../../IMG/esport_header_bg.png') center/cover no-repeat;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
}

.logo img {
    filter: drop-shadow(0 0 8px rgba(217, 4, 41, 0.6));
    transition: filter var(--transition-speed);
}

.logo:hover img {
    filter: drop-shadow(0 0 12px rgba(255, 183, 3, 0.8));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101; /* Above mobile menu */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

/* --- LAYOUT --- */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--text-main), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CARDS (GLASSMORPHISM) --- */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(123, 44, 191, 0.3);
    border-color: var(--primary-color);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s;
}

.card:hover::before {
    left: 200%;
}

.role-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--surface-border);
    margin-top: auto;
    color: var(--text-muted);
}

/* --- PLANNING CALENDAR --- */
.planning-container {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    overflow-x: auto;
}

.planning-grid {
    display: grid;
    grid-template-columns: 100px repeat(7, minmax(120px, 1fr));
    gap: 10px;
    min-width: 900px;
}

.planning-header {
    font-weight: 800;
    text-align: center;
    padding: 10px;
    background: rgba(123, 44, 191, 0.2);
    border-radius: 8px;
    color: var(--accent-color);
}

.planning-time {
    font-weight: 600;
    text-align: right;
    padding-right: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--text-muted);
}

.planning-slot {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.planning-slot:hover {
    background: rgba(123, 44, 191, 0.4);
    transform: scale(1.05);
    cursor: pointer;
}

.planning-slot.active {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.6), rgba(0, 245, 212, 0.4));
    border: 1px solid var(--accent-color);
    font-weight: bold;
    color: white;
}

.planning-slot.unavailable {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px dashed rgba(255, 0, 0, 0.3);
}

/* --- COMPOSITIONS --- */
.compo-section {
    margin-bottom: 4rem;
}

.compo-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 245, 212, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.compo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.compo-card {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.compo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(123, 44, 191, 0.2);
}

.compo-role {
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.champ-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 5px;
}

.player-name {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-style: italic;
}

.synergy-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- CHAMPION BANS --- */
.champ-ban {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #ef233c;
    font-weight: bold;
    text-align: center;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    width: 100%;
    background: rgba(20, 20, 25, 0.95);
    border-top: 1px solid var(--primary-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.cookie-accept {
    background-color: var(--primary-color);
    color: #fff;
}

.cookie-accept:hover {
    background-color: #ef233c;
    box-shadow: 0 0 10px rgba(217, 4, 41, 0.5);
}

.cookie-decline {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.cookie-btn.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .grid-5, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100%;
        overflow-y: auto;
        background: rgba(20, 20, 25, 0.98);
        border-left: 1px solid var(--primary-color);
        padding-top: 80px;
        padding-bottom: 30px;
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8);
    }

    nav ul.open {
        right: 0;
    }

    nav ul li {
        text-align: center;
        margin: 1rem 0;
    }

    .grid-5, .grid-4, .compo-grid {
        grid-template-columns: 1fr;
    }

    .planning-grid {
        min-width: unset;
        grid-template-columns: 80px repeat(7, minmax(60px, 1fr));
        font-size: 0.8rem;
    }
    
    .planning-slot {
        min-height: 40px;
        padding: 5px;
        font-size: 0.75rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}
