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

:root {
    --primary: #ff1493;
    --secondary: #9b59b6;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --accent: #00d9ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.3);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.5));
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.8)); }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.6);
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary), transparent);
    opacity: 0.3;
}

.circle1 { width: 300px; height: 300px; top: 10%; left: 10%; animation: float 4s ease-in-out infinite; }
.circle2 { width: 200px; height: 200px; bottom: 20%; right: 15%; animation: float 5s ease-in-out infinite reverse; }
.circle3 { width: 150px; height: 150px; top: 50%; left: 80%; animation: float 3.5s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.about, .content, .galerie {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.galerie {
    min-height: 100vh;
    padding-top: 120px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--accent);
    margin-top: 0.5rem;
}

.social {
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.social-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

.social-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.4);
}

.content-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.content-info {
    padding: 1.5rem;
}

.content-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.upload-zone {
    background: rgba(255, 255, 255, 0.05);
    border: 3px dashed var(--primary);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-zone input[type="file"] {
    display: none;
}

.upload-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}

.upload-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.delete-button {
    background: rgba(255, 20, 147, 0.9);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.delete-button:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--accent);
}

footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-content { grid-template-columns: 1fr; }
    .nav-links { gap: 1rem; }
    .stats { grid-template-columns: 1fr; }
}

.social-icon-img {
    height: 40px;        /* Forcer la même hauteur pour tous */
    width: auto;         /* Garder les proportions */
    margin-bottom: 0.8rem;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 6px rgba(255, 20, 147, 0.4));
    transition: transform 0.2s ease;
}

.social-card:hover .social-icon-img {
    transform: scale(1.05);
}

@media (max-width: 500px) {
    .social-icon-img {
        height: 32px;
    }
}

.hero-logo {
    max-width: 600px;
    width: 90%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.6));
    animation: glow 2s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 350px;
    }
}

/* --- MENU BURGER (Responsive) --- */
.burger {
    display: none;
    font-size: 2.2rem;
    color: var(--light);
    cursor: pointer;
    user-select: none;
}

/* Mobile */
@media (max-width: 900px) {

    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -250px;
        width: 250px;
        height: auto;
        padding: 2rem 1.5rem;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        gap: 1.5rem;
        border-left: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
        transition: right 0.3s ease;
        z-index: 9999;
    }

    .nav-links.open {
        right: 0;
    }
}

/* Avatar Silly sur la page d'accueil */
.hero-avatar {
    position: absolute;
    bottom: 0;
    right: 5%;
    height: 70vh;
    max-height: 800px;
    width: auto;
    z-index: 3;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 40px rgba(255, 20, 147, 0.5));
}

@media (max-width: 1200px) {
    .hero-avatar {
        height: 60vh;
        right: 2%;
    }
}

@media (max-width: 900px) {
    .hero-avatar {
        height: 50vh;
        right: 0;
        opacity: 0.7;
    }
}

@media (max-width: 600px) {
    .hero-avatar {
        height: 40vh;
        opacity: 0.5;
    }
}