/* Import de la police Anton depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Si vous avez une version bold spécifique */


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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

a:hover {
    color: #5271FF;
}

.accent {
    color: #5271FF;
}

.btn {
    display: inline-block;
    background-color: #5271FF;
    color: #000;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 113, 255, 0.3);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 12px 5%;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5271FF;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Section Hero avec Vidéo en arrière-plan */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
    margin-top: 90px;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 1) 100%);
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Bebas neue', sans-serif; /* Police Anton remplace Horizon */
    font-size: 70px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase; /* Optionnel pour un effet plus marqué */
}

.cv-section-title h3 {
    color: #fff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ccc;
}

/* Section Featured Projects */
.featured {
    padding: 100px 5%;
}

.featured h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.featured h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #5271FF;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.5s ease;
}

.project-card:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.project-img {
    height: 220px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 20px;
}

.project-info h4 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #5271FF;
}

.project-info p {
    color: #ccc;
}

.featured .btn-container {
    text-align: center;
    margin-top: 40px;
}

.btn-container {
    text-align: center;
    margin-top: 40px;
}

/* About Section */
.about {
    padding: 100px 5%;
    background-color: rgba(255, 255, 255, 0.02);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h3 {
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
}

.about h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #5271FF;
}

.about p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Section Galerie */
.gallery {
    padding: 100px 5%;
    background-color: rgba(255, 255, 255, 0.01);
}

.gallery h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.gallery h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #5271FF;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.gallery-info h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-info p {
    color: #ccc;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-info p {
    color: #ccc;
}

.social-links {
    display: flex;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #5271FF;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 14px;
    color: #777;
}

/* ==================================================
   PERSONNALISATION LIGHTGALLERY - THÈME SOMBRE
   ================================================== */

/* Conteneur principal de LightGallery */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Barre d'outils supérieure */
.lg-toolbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
    border-bottom: none !important;
}

/* Boutons de la barre d'outils */
.lg-icon {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
}

.lg-icon:hover {
    background-color: #5271FF !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Bouton de fermeture */
.lg-close {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

.lg-close:hover {
    background-color: #ff4757 !important;
}

/* Flèches de navigation */
.lg-prev,
.lg-next {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    transition: all 0.3s ease !important;
}

.lg-prev:hover,
.lg-next:hover {
    background-color: #5271FF !important;
    transform: scale(1.1) !important;
}

.lg-prev::after,
.lg-next::after {
    color: #fff !important;
    font-size: 20px !important;
}

/* Compteur d'images */
.lg-counter {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* Miniatures */
.lg-thumb-outer {
    background-color: rgba(0, 0, 0, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.lg-thumb-item {
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.lg-thumb-item:hover {
    transform: scale(1.05) !important;
}

.lg-thumb-item.active {
    border: 2px solid #5271FF !important;
    box-shadow: 0 0 15px rgba(82, 113, 255, 0.5) !important;
}

/* Boutons des miniatures */
.lg-thumb-prev,
.lg-thumb-next {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.lg-thumb-prev:hover,
.lg-thumb-next:hover {
    background-color: #5271FF !important;
}

/* Zone d'affichage de l'image */
.lg-img-wrap {
    background-color: transparent !important;
}

/* Loader personnalisé */
.lg-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 3px solid #5271FF !important;
}

/* Sous-titre */
.lg-sub-html {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
    color: #fff !important;
    padding: 20px !important;
    font-size: 16px !important;
    text-align: center !important;
}

/* Boutons de zoom */
.lg-zoom-in,
.lg-zoom-out {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

.lg-zoom-in:hover,
.lg-zoom-out:hover {
    background-color: #5271FF !important;
}

/* Animation d'ouverture */
.lg-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Responsive pour les mobiles */
@media (max-width: 768px) {
    .lg-toolbar {
        padding: 10px !important;
    }

    .lg-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }

    .lg-prev,
    .lg-next {
        width: 40px !important;
        height: 40px !important;
    }

    .lg-counter {
        font-size: 12px !important;
        padding: 3px 10px !important;
    }

    .lg-sub-html {
        font-size: 14px !important;
        padding: 15px !important;
    }
}

/* ==================================================
   RESPONSIVE DESIGN GÉNÉRAL
   ================================================== */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 5%;
    }

    nav {
        margin-top: 15px;
        width: 100%;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        height: 70vh;
        margin-top: 120px;
    }


    .hero p {
        font-size: 18px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 20px;
        justify-content: center;
    }

    .social-icon:first-child {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-overlay {
        padding: 15px;
    }

    .gallery-info h4 {
        font-size: 14px;
    }

    .gallery-info p {
        font-size: 12px;
    }
}