/* ========================================
   GALLERY.CSS - Style de la page galerie
   ======================================== */

/* Reset et configuration de base */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales (même palette que le portfolio) */
    --bg-color: #00112e;
    --second-bg-color: #001232;
    --text-color: #fff;
    --main-color: #66ff25;
    --accent-color: #66ff25;
    --hover-color: #66ff25aa;
    --shadow-color: rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Espacements */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */

.gallery-header {
    background: linear-gradient(135deg, var(--second-bg-color) 0%, var(--bg-color) 100%);
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow-color);
    border-bottom: 2px solid var(--main-color);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--main-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.btn-back:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
    transform: translateX(-5px);
    box-shadow: 0 0 20px var(--main-color);
}

.btn-back i {
    font-size: 1.3rem;
    transition: transform var(--transition-speed) ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAVIGATION PAR CATÉGORIES
   ======================================== */

.gallery-nav {
    background-color: var(--second-bg-color);
    padding: 2rem 5%;
    position: sticky;
    top: 86px;
    z-index: 99;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.category-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.category-item::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--main-color);
    transition: width var(--transition-speed) ease;
}

.category-item:hover::before {
    width: 80%;
}

.category-item:hover {
    color: var(--main-color);
    transform: translateY(-3px);
}

.category-item.active {
    background-color: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 239, 255, 0.5);
}

.category-item.active::before {
    display: none;
}

.category-item i {
    font-size: 1.5rem;
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */

.gallery-main {
    padding: 3rem 5%;
    min-height: 70vh;
}

.gallery-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-section.active {
    display: block;
}

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

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

/* ========================================
   SOUS-SECTIONS (GRAPHISME)
   ======================================== */

.subsection {
    margin-bottom: 4rem;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-left: 1rem;
    border-left: 4px solid var(--main-color);
}

.subsection-title i {
    font-size: 2.2rem;
}

/* ========================================
   GRILLE DE GALERIE
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.gallery-card {
    background-color: var(--second-bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 239, 255, 0.3);
}

.card-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #1a1e25;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-img img {
    transform: scale(1.1);
}

.card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 0.8rem;
}

.card-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    flex: 1;
}

/* ========================================
   CARTES SITES WEB (avec bouton)
   ======================================== */

.website-card .card-info {
    gap: 1rem;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--main-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    margin-top: auto;
    align-self: flex-start;
}

.btn-visit:hover {
    background-color: var(--hover-color);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 239, 255, 0.6);
}

.btn-visit i {
    font-size: 1.2rem;
}

/* ========================================
   CARTES VIDÉOS
   ======================================== */

.video-card .card-video {
    width: 100%;
    height: 250px;
    background-color: #000;
    overflow: hidden;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   FOOTER
   ======================================== */

.gallery-footer {
    background-color: var(--second-bg-color);
    padding: 2rem 5%;
    text-align: center;
    border-top: 2px solid var(--main-color);
    margin-top: 4rem;
}

.gallery-footer p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--main-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablettes */
@media (max-width: 1024px) {
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .category-list {
        gap: 1.5rem;
    }
    
    .category-item {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .subsection-title {
        font-size: 1.7rem;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 3%;
    }
    
    .gallery-header h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .btn-back span {
        display: none;
    }
    
    .btn-back {
        padding: 0.8rem 1rem;
    }
    
    .gallery-nav {
        padding: 1.5rem 3%;
        top: 130px;
    }
    
    .category-list {
        gap: 1rem;
    }
    
    .category-item {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .category-item span {
        display: none;
    }
    
    .category-item i {
        font-size: 1.8rem;
    }
    
    .gallery-main {
        padding: 2rem 3%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .subsection-title {
        font-size: 1.4rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-img {
        height: 220px;
    }
    
    .card-info h4 {
        font-size: 1.3rem;
    }
    
    .card-info p {
        font-size: 0.95rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .gallery-header h1 {
        font-size: 1.5rem;
    }
    
    .category-item {
        padding: 0.6rem 1rem;
    }
    
    .category-item i {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.2rem;
        padding-left: 0.5rem;
    }
    
    .card-img {
        height: 200px;
    }
    
    .card-info {
        padding: 1.2rem;
    }
    
    .btn-visit {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}