/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
    --primary-color: #000000;
    --text-color: #ffffff;
}

/* =========================================================
   RESET / BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* =========================================================
   SCROLLBAR CUSTOM
========================================================= */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(51, 51, 51, 0.1); /* couleur de fond du track */
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6633FF, #3399FF); /* violet → bleu */
    border-radius: 5px;
    box-shadow: inset 0 0 3px rgba(102,0,255,0.5);
}

/* =========================================================
   SCROLL PROGRESS BAR
========================================================= */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    width: 0%;
    z-index: 99999;
    transition: width 0.25s ease;
}

/* =========================================================
NAVBAR STYLE TEAM FINAL (Liens à droite)
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo à gauche, liens à droite */
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 0, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Effet scroll */
.navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 20px rgba(51, 153, 255, 0.5);
}

/* Logo à gauche */
.nav-brand {
    display: flex; /* plus besoin de position absolute */
    align-items: center;
    gap: 0.0rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-brand i {
    color: #3399ff;
}

/* Liens alignés à droite */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end; /* liens à droite */
    position: relative;
}

/* Style des liens */
.nav-links a {
    position: relative;
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6600FF, #3399ff);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #3399ff;
}

.nav-links a.active::after {
    width: 100%;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    user-select: none;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
    color: #33ffff;
}

/* =========================================================
NAVBAR RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
        position: fixed;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 1.5rem 0.5rem;
        border-radius: 12px;
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 400px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 9999;
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
        border-radius: 12px;
        width: 95%;
        max-width: 350px;
        text-align: center;
        color: #fff;
        background: rgba(51, 153, 255, 0.1);
        transition: all 0.3s ease;
        box-sizing: border-box;
        min-height: 44px;
    }

    .nav-links a:hover {
        background: rgba(51, 153, 255, 0.3);
        color: #33ffff;
        transform: translateY(-2px);
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 18px;
        right: 20px;
    }

    .nav-brand img.logo {
        max-height: 30px;
    }
}

/* =========================================================
   HERO – RESPONSIVE (DESKTOP + MOBILE)
========================================================= */

.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.85)),
        url("https://r2.fivemanage.com/ZoSR7TklbKs6LKQicbSAe/boutique.gif")
        center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 120px 20px 60px;
    color: #fff;
}

/* ====================
   CONTENU HERO
==================== */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
}

/* ====================
   TITRE
==================== */
.gradient-title {
    font-size: clamp(2.2rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;

    color: transparent;
    background: linear-gradient(135deg, #6633FF, #3399FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====================
   TEXTE INTRO
==================== */
.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    margin: 0;
}

/* Bloc texte mis en valeur */
.hero-content [data-i18n="boutique_intro"] {
    display: inline-block;
    position: relative;
    padding: 0.6rem 1.2rem 0.6rem 1.6rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #3399ff28, #6633ff2c);
    color: #fff;
    font-weight: 600;
    margin-top: 0.8rem;
}

/* Barre verticale à gauche */
.hero-content [data-i18n="boutique_intro"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #6633ff, #3399ff);
    border-radius: 10px 0 0 10px;
}

/* =========================================================
   MOBILE (Téléphone)
========================================================= */
@media (max-width: 768px) {
    .hero {
        padding: 70px 15px 40px;
    }

    .hero-content {
        gap: 1rem;
    }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */
@media (max-width: 400px) {
    .gradient-title {
        font-size: 2rem;
    }
}

/* ==================== BOUTIQUE VIP – AMÉLIORÉ ==================== */
.vip-shop {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    background: transparent;
}

.vip-shop-wrapper {
    width: 100%;
    max-width: 1400px;
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    transition: all 0.3s ease;
}

.vip-shop-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==================== VIP CARD ==================== */
.vip-card {
    background: linear-gradient(135deg, #202020, #111);
    border-radius: 20px;
    padding: 50px 25px 30px 25px; /* ✅ plus de padding en haut pour le badge */
    text-align: center;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s, background 0.3s;
}

/* Animation delays pour effet cascade */
.vip-card:nth-child(1) { animation-delay: 0.1s; }
.vip-card:nth-child(2) { animation-delay: 0.2s; }
.vip-card:nth-child(3) { animation-delay: 0.3s; }
.vip-card:nth-child(4) { animation-delay: 0.4s; }

.vip-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5) inset;
    background: linear-gradient(135deg, #1a1a1a, #111111cc);
}

/* ==================== VIP CARD COLORS ==================== */
.vip-card.golden {
    border-color: #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}
.vip-card.platinum {
    border-color: #33ccff;
    box-shadow: 0 5px 20px rgba(51, 204, 255, 0.3);
}
.vip-card.diamond {
    border-color: #aa33ff;
    box-shadow: 0 5px 20px rgba(170, 51, 255, 0.3);
}

/* ==================== VIP BADGE ==================== */
.vip-badge {
    position: absolute;
    top: 15px;   /* ✅ Espace suffisant pour ne pas chevaucher le titre */
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #111;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vip-card:hover .vip-badge {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.9);
}

/* Badge colors by VIP */
.vip-card.golden .vip-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #111;
}
.vip-card.platinum .vip-badge {
    background: linear-gradient(135deg, #33ccff, #3399ff);
    color: #111;
}
.vip-card.diamond .vip-badge {
    background: linear-gradient(135deg, #aa33ff, #cc66ff);
    color: #fff;
}

/* ==================== TITRE ET PRIX ==================== */
.vip-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #fff;
}

.vip-card .vip-price {
    font-weight: 700;
    color: #ff3333;
    margin-bottom: 15px;
    font-size: 1.35rem;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
}

/* ==================== RÉCOMPENSES ==================== */
.vip-card .vip-rewards {
    list-style: none;
    padding: 0;
    font-size: 1rem;
    margin-bottom: 15px;
}

.vip-card .vip-rewards li {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.vip-card .vip-rewards li:hover {
    background: rgba(255,215,0,0.1);
}

/* Icônes spécifiques */
.vip-card .vip-rewards li.cash::before {
    content: "💰";
    color: #FFD700;
}

.vip-card .vip-rewards li.token::before {
    content: "🎫";
    color: #33ccff;
}

.vip-card .vip-rewards li.coin::before {
    content: "💎";
    color: #ff33cc;
}

.vip-card .vip-rewards li.salary::before {
    content: "💵";
    color: #33ff33;
}

/* ==================== ANIMATION ==================== */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .vip-shop-wrapper { padding: 25px; }
    .vip-shop-title { font-size: 2.2rem; }
    .vip-card { padding: 40px 20px 25px 20px; }
    .vip-card h3 { font-size: 1.8rem; }
    .vip-card .vip-price { font-size: 1.2rem; }
    .vip-card .vip-rewards li { font-size: 0.95rem; }
}

/* ==================== BOUTIQUE ARMES ==================== */
.weapon-shop {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    background: transparent;
}

.weapon-shop-wrapper {
    width: 100%;
    max-width: 1400px;
    border-radius: 20px;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    box-shadow: 0 10px 30px rgba(102, 51, 255, 0.5);
    border: 3px solid #FFD700;
}

/* ==== Title ==== */
.weapon-shop-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #6633FF, #3399FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==== PACK CARD REVISITÉ ==== */
.pack-card {
    background: linear-gradient(135deg, #222, #111);
    border: 2px solid #FF9933;
    border-radius: 20px;
    padding: 50px 20px 20px 20px; /* ✅ padding-top augmenté pour badge */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    box-shadow: 0 5px 20px rgba(255, 153, 51, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.pack-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 153, 51, 0.7);
}

/* Badge */
.pack-badge {
    position: absolute;
    top: 15px; /* ✅ espace suffisant pour ne pas chevaucher le titre */
    right: 15px;
    background: linear-gradient(135deg, #FF9933, #FF6600);
    color: #111;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(255, 153, 51, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pack-card:hover .pack-badge {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255, 153, 51, 0.9);
}

/* Image du pack */
.pack-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    border-radius: 15px;
}

.pack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pack-card:hover .pack-image img {
    transform: scale(1.05);
}

/* Titre & prix */
.pack-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fff;
}

.pack-price {
    font-weight: 700;
    color: #ff3333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
}

/* Liste des items */
.pack-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pack-items li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    flex: 1 1 45%;
}

.pack-items li img.item-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* Bouton d'achat pack */
.buy-pack-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #FF9933, #FF6600);
    color: #111;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-pack-btn:hover {
    background: linear-gradient(135deg, #FF6600, #FF9933);
    box-shadow: 0 5px 20px rgba(255,153,51,0.5);
}

/* ==== ITEMS GRID ==== */
.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* ==== ITEM CARD ==== */
.item-card {
    background: linear-gradient(135deg, #202020, #111);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #6633FF;
    box-shadow: 0 5px 20px rgba(102, 51, 255, 0.3);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.item-card:hover {
    transform: translateY(-10px);
    border-color: #ffcc33;
    box-shadow: 0 15px 30px rgba(102, 51, 255, 0.5);
}

.item-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.item-card:hover img {
    transform: scale(1.05);
}

.item-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.item-card p {
    margin: 5px 0;
    color: #ccc;
}

.item-price {
    font-weight: 700;
    color: #ff3333;
    margin-top: 10px;
    display: inline-block;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 10px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .weapon-shop-wrapper { padding: 25px; }
    .weapon-shop-title { font-size: 2.2rem; }
    .pack-card { padding: 40px 15px 20px 15px; }
    .pack-card h3 { font-size: 1.5rem; }
    .pack-price { font-size: 1.2rem; }
    .pack-items li { font-size: 0.85rem; flex: 1 1 100%; }
    .pack-image { width: 100px; height: 100px; }
    .item-card { padding: 15px; }
    .item-card h4 { font-size: 1rem; }
    .item-price { font-size: 0.9rem; padding: 4px 8px; }
}

/* ==================== BOUTIQUE VEHICULES ==================== */
/* ==== Car Shop ==== */
.car-shop {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.car-shop-wrapper {
    width: 100%;
    max-width: 1400px;
    border: 3px solid #6633FF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

/* ==== Title ==== */
.car-shop-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #6633FF, #3399FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==== Filters ==== */
.car-shop-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Search input */
#searchCar {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid #6633FF;
    background: #111;
    color: #fff;
    outline: none;
    font-size: 1rem;
}

#searchCar::placeholder {
    color: #aaa;
}

/* ==== Brand Buttons ==== */
.brand-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 16px;
    border-radius: 25px;
    border: 2px solid #6633FF;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: #6633FF;
    box-shadow: 0 0 15px rgba(102, 51, 255, 0.7);
}

.filter-btn.active {
    background: linear-gradient(135deg, #6633FF, #3399FF);
    border-color: #ffcc33;
    color: #fff;
    box-shadow: 0 0 20px rgba(102, 51, 255, 0.9);
}

/* ==== Car Grid ==== */
.car-shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ==== Car Card ==== */
.car-card {
    background: linear-gradient(135deg, #202020, #111);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border: 2px solid #6633FF;
    position: relative;
    overflow: hidden;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102, 51, 255, 0.5);
    border-color: #ffcc33;
}

/* ==== Image ==== */
.car-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.car-card:hover img {
    transform: scale(1.05);
}

/* ==== Badge prix SOUS l'image ==== */
.car-card .car-price {
    display: inline-block;
    background: linear-gradient(135deg, #ff3333, #ff6666);
    color: #fff;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5);
}

/* ==== Text ==== */
.car-card h3 {
    font-size: 1.5rem;
    margin: 5px 0;
    color: #fff;
}

.car-card p {
    margin: 5px 0;
    color: #ccc;
}

/* ==== Label ==== */
.car-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff3333;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 5px;
    z-index: 10;
}

/* ==== Filtrage ==== */
.car-card.hidden {
    display: none !important;
}

/* ==== Animation ==== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .car-shop-wrapper {
        padding: 25px;
    }

    .car-shop-title {
        font-size: 2.2rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .car-card .car-price {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

/* ==== Classe pour masquer les voitures filtrées ==== */
.hidden {
    display: none !important;
}

/* ===================== BOUTON QUICK VIEW ===================== */
.quick-view {
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.quick-view:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

/* ===================== MODAL ===================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px; /* pour respirer sur mobile */
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative; /* pour que la croix soit bien positionnée */
    background: #111;
    padding: 25px;
    border-radius: 24px; /* arrondi prononcé */
    border: 3px solid violet; /* bordure violette */
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* IMAGE DANS LA MODAL */
.modal-content img {
    width: 95%; /* un peu plus grand */
    max-height: 450px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 15px;
}

/* TITRE ET MARQUE */
.modal-content h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 22px;
}

.modal-content p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 16px;
}

/* CROIX DE FERMETURE */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 32px; /* plus visible */
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: color 0.2s, background 0.2s;
}

.close-modal:hover {
    color: #ff4b5c;
    background: rgba(0, 0, 0, 0.6);
}

/* =========================================================
LOGO
========================================================= */
.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(51, 153, 255, 0.5));
    border-radius: 20px; /* logo arrondi */
}

/* =========================================================
FOOTER ÉPURÉ – STRUCTURÉ GAUCHE / CENTRE / DROITE
========================================================= */
footer {
    background: linear-gradient(to right, rgba(51,153,255,0.05), rgba(102,0,255,0.05));
    padding: 0.8rem 2rem;
    border-radius: 25px;
    display: flex;
    justify-content: space-between; /* gauche / centre / droite */
    align-items: center;
    font-size: 0.85rem;
    color: #fff;
    flex-wrap: wrap; /* permet l’adaptation mobile */
    gap: 0.5rem;
}

/* =========================================================
Zone gauche : liens légaux
========================================================= */
.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-left a {
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(51,153,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid rgba(102,0,255,0.3);
    transition: all 0.3s ease;
}

.footer-left a:hover {
    background: rgba(51,153,255,0.25);
    color: #33ffff;
    transform: translateY(-1px);
}

/* =========================================================
Zone centre : copyright
========================================================= */
.footer-center {
    text-align: center;
    color: #aaa;
}

/* =========================================================
Zone droite : W_Dev + logo
========================================================= */
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.footer-right img {
    height: 18px; /* logo discret */
    width: auto;
    border-radius: 10px;
    filter: drop-shadow(0 0 3px rgba(102,0,255,0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-right img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(51,153,255,0.7));
}

.footer-right span {
    color: #aaa;
}

.footer-right strong {
    color: #33ffff;
}

/* =========================================================
FOOTER RESPONSIVE – MOBILE
========================================================= */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        width: 100%;
    }

    .footer-left {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .footer-right {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .footer-left a {
        width: auto;
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* =========================================================
   BACK TO TOP BUTTON
========================================================= */
#backToTop {
    position: fixed;
    bottom: 60px;
    right: 10px;
    padding: 0.5rem 0.7rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(51,153,255,0.3);
    color: #fff;
    font-size: 1.4rem;
    display: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

#backToTop.show {
    display: block;
}

#backToTop:hover {
    background: rgba(51,153,255,0.6);
    transform: translateY(-3px);
}
