/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #1e293b;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.logo-accent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

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

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

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}


/* Section Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.title-line {
    display: block;
    color: var(--text-dark);
}

.title-accent {
    display: block;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.geometric-shapes {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shape-1 {
    width: 120px;
    height: 120px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 80px;
    height: 80px;
    animation: float 6s ease-in-out infinite 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    animation: float 6s ease-in-out infinite 4s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Sections générales */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Gamme */
.about {
    padding: 120px 0;
    background: var(--bg-gray);
}

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

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Section Technologies */
.services {
    padding: 120px 0;
    background: var(--bg-light);
}

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

/* Cartes de jeu interactives */
.service-card {
    perspective: 1000px;
    height: 350px; /* Hauteur fixe pour les cartes */
    cursor: pointer;
    position: relative;
    border: none; /* Remplacer la bordure précédente */
    background: transparent; /* Remplacer l'arrière-plan précédent */
    box-shadow: none; /* Remplacer l'ombre précédente */
    transition: none; /* Remplacer la transition précédente */
}

.service-card.flipped .card-front {
    transform: rotateY(180deg);
}

.service-card.flipped .card-back {
    transform: rotateY(0deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
}

.card-front {
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(-180deg);
    background: var(--bg-gray);
    padding: 2rem;
    overflow-y: auto;
    align-items: flex-start;
    text-align: left;
}

.service-card:hover .card-front {
    transform: translateY(-8px) rotateY(0deg); /* Garder le recto droit au survol */
    box-shadow: var(--shadow-xl);
}

.service-card.flipped:hover .card-back {
    transform: translateY(-8px) rotateY(0deg); /* Garder le verso droit au survol */
    box-shadow: var(--shadow-xl);
}

.card-front .service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-front h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-front p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.card-stats .stat {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-back h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.model-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.detail-group h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.detail-group ul {
    list-style: none;
    padding-left: 0;
}

.detail-group ul li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.detail-group p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-open, .btn-close {
    margin-top: 1.5rem;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-open:hover, .btn-close:hover {
    background: var(--secondary-color);
}

/* Section Galerie */
.portfolio {
    padding: 120px 0;
    background: var(--bg-gray);
}

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

.portfolio-item {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Section Histoire - Timeline */
.timeline-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.timeline {
    padding: 50px 20px;
    margin: 0 auto;
    max-width: 1000px;
    color: var(--text-dark);
}

.timeline ol {
    position: relative;
    list-style: none;
}

.timeline ol::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.timeline ol li .item-inner {
    padding: 20px 180px;
    margin-bottom: 8vh;
}

.timeline ol li .time-wrapper {
    position: relative;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.9;
    color: var(--primary-color);
}

.timeline ol li .time-wrapper::before,
.timeline ol li .time-wrapper::after {
    content: "";
    position: absolute;
    background: var(--primary-color);
}

.timeline ol li .time-wrapper::before {
    top: 50%;
    left: -180px;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.timeline ol li .time-wrapper::after {
    top: calc(50% - 8px);
    left: -60px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    transform: scale(0);
    transform-origin: left center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.timeline ol li time,
.timeline ol li .details > * {
    opacity: 0;
    transition: 0.3s ease;
}

.timeline ol li time {
    display: inline-block;
    transform: translateY(-30px);
}

.timeline ol li .details > * {
    transform: translateY(30px);
}

.timeline ol li .details h3 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 15px 0;
    color: var(--text-dark);
    font-weight: 700;
}

.timeline ol li .details p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Animation de la timeline */
.timeline ol li.in-view .time-wrapper::before {
    width: 120px;
}

.timeline ol li.in-view .time-wrapper::after {
    transition-delay: 0.3s;
    transform: scale(1.5);
}

.timeline ol li.in-view time,
.timeline ol li.in-view .details > * {
    opacity: 1;
    transform: none;
}

.timeline ol li.in-view time {
    transition-delay: 0.5s;
}

.timeline ol li.in-view .details h3 {
    transition-delay: 0.6s;
}

.timeline ol li.in-view .details p {
    transition-delay: 0.7s;
}

/* Responsive pour la timeline */
@media (max-width: 700px) {
    .timeline ol li .item-inner {
        padding: 20px 40px;
    }

    .timeline ol li .time-wrapper::before {
        display: none;
    }

    .timeline ol li .time-wrapper::after {
        left: -45px;
        transform-origin: center;
    }

    .timeline ol li.in-view .time-wrapper::after {
        transition-delay: 0s;
    }

    .timeline ol li.in-view time {
        transition-delay: 0.2s;
    }

    .timeline ol li.in-view .details h3 {
        transition-delay: 0.3s;
    }

    .timeline ol li.in-view .details p {
        transition-delay: 0.4s;
    }
}

/* Filtres de la galerie */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Styles pour les cartes de la galerie */
.portfolio-item {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
}

.btn-gallery {
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gallery:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

#lightbox-img {
    max-width: 100%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
}

.lightbox-info {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
}

.lightbox-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.lightbox-info p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 99, 235, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Animation d'apparition des cartes */
.portfolio-item {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Section Contact */
.contact {
    padding: 120px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateX(8px);
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Style spécial pour le lien d'administration */
.admin-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    position: relative;
    overflow: hidden;
}

.admin-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.admin-link:hover::before {
    left: 100%;
}

.admin-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border-color: var(--accent-color) !important;
}


.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 350px;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        height: 250px;
    }

    /* Styles responsifs pour la galerie */
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .lightbox-nav {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}

/* Styles pour les cartes Clash of Clans dans la section Modèles */
.slide-container {
    margin: auto;
    width: 1200px;
    text-align: center;
}

.wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
}

.wrapper:focus {
    outline: 0;
}

.clash-card {
    background: white;
    width: 320px;
    display: inline-block;
    margin: 0 10px;
    border-radius: 19px;
    position: relative;
    text-align: center;
    box-shadow: -1px 15px 30px -12px black;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clash-card:hover {
    transform: translateY(-10px);
    box-shadow: -1px 25px 40px -12px black;
}

.clash-card__image {
    position: relative;
    height: 250px;
    margin-bottom: 35px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: hidden;
}

.clash-card__image--booster50 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.clash-card__image--booster50 img {
    width: 400px;
    position: absolute;
    top: -50px;
    left: -25px;
}

.clash-card__image--bws50 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.clash-card__image--bws50 img {
    width: 400px;
    position: absolute;
    top: -50px;
    left: -25px;
}

.clash-card__image--spirit {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.clash-card__image--spirit img {
    width: 400px;
    position: absolute;
    top: -50px;
    left: -25px;
}

.clash-card__image--aerox {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.clash-card__image--aerox img {
    width: 400px;
    position: absolute;
    top: -50px;
    left: -25px;
}

.clash-card__image--road {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.clash-card__image--road img {
    width: 400px;
    position: absolute;
    top: -50px;
    left: -25px;
}

.clash-card__image--bws125 {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.clash-card__image--bws125 img {
    width: 400px;
    position: absolute;
    top: -50px;
    left: -25px;
}

.clash-card__level {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
}

.clash-card__level--booster50 {
    color: #e74c3c;
}

.clash-card__level--bws50 {
    color: #9b59b6;
}

.clash-card__level--spirit {
    color: #3498db;
}

.clash-card__level--aerox {
    color: #e67e22;
}

.clash-card__level--road {
    color: #27ae60;
}

.clash-card__level--bws125 {
    color: #1abc9c;
}

.clash-card__unit-name {
    font-size: 26px;
    color: black;
    font-weight: 900;
    margin-bottom: 5px;
}

.clash-card__unit-description {
    padding: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.clash-card__unit-stats--booster50 {
    background: #e74c3c;
}
.clash-card__unit-stats--booster50 .one-third {
    border-right: 1px solid #c0392b;
}

.clash-card__unit-stats--bws50 {
    background: #9b59b6;
}
.clash-card__unit-stats--bws50 .one-third {
    border-right: 1px solid #8e44ad;
}

.clash-card__unit-stats--spirit {
    background: #3498db;
}
.clash-card__unit-stats--spirit .one-third {
    border-right: 1px solid #2980b9;
}

.clash-card__unit-stats--aerox {
    background: #e67e22;
}
.clash-card__unit-stats--aerox .one-third {
    border-right: 1px solid #d35400;
}

.clash-card__unit-stats--road {
    background: #27ae60;
}
.clash-card__unit-stats--road .one-third {
    border-right: 1px solid #229954;
}

.clash-card__unit-stats--bws125 {
    background: #1abc9c;
}
.clash-card__unit-stats--bws125 .one-third {
    border-right: 1px solid #16a085;
}

.clash-card__unit-stats {
    color: white;
    font-weight: 700;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.clash-card__unit-stats .one-third {
    width: 33%;
    float: left;
    padding: 20px 15px;
}

.clash-card__unit-stats sup {
    position: absolute;
    bottom: 4px;
    font-size: 45%;
    margin-left: 2px;
}

.clash-card__unit-stats .stat {
    position: relative;
    font-size: 24px;
    margin-bottom: 10px;
}

.clash-card__unit-stats .stat-value {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
}

.clash-card__unit-stats .no-border {
    border-right: none;
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.slick-prev {
    left: 50px;
    z-index: 999;
}

.slick-next {
    right: 50px;
    z-index: 999;
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    color: white;
    font-size: 12px;
}

.slick-dots li.slick-active button:before {
    color: #3498db;
}

 /* Responsive pour les cartes */
 @media (max-width: 1200px) {
     .slide-container {
         width: 100%;
         padding: 0 20px;
     }
 }
 
 @media (max-width: 900px) {
     .slide-container {
         width: 100%;
         padding: 0 20px;
     }
     
     .slick-prev {
         left: 20px;
     }
     
     .slick-next {
         right: 20px;
     }
 }
 
 /* Effet de retournement des cartes */
 .clash-card {
     perspective: 1000px;
     cursor: pointer;
     position: relative;
     height: 500px;
 }
 
 .card-back {
     position: absolute;
     width: 100%;
     height: 100%;
     backface-visibility: hidden;
     transition: transform 0.6s ease-in-out;
     border-radius: 19px;
     top: 0;
     left: 0;
     transform: rotateY(180deg);
     background: white;
     padding: 20px;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
 }
 
 .clash-card.flipped .card-back {
     transform: rotateY(0deg);
 }
 
 /* Styles pour l'arrière des cartes */
 .back-header {
     text-align: center;
     margin-bottom: 20px;
 }
 
 .back-header h3 {
     font-size: 24px;
     font-weight: 900;
     color: #333;
     margin-bottom: 8px;
 }
 
 .back-level {
     font-size: 12px;
     font-weight: 700;
     text-transform: uppercase;
     color: #666;
 }
 
 .back-content {
     flex: 1;
     margin-bottom: 20px;
 }
 
 .detail-section {
     margin-bottom: 20px;
 }
 
 .detail-section h4 {
     font-size: 16px;
     font-weight: 700;
     color: #333;
     margin-bottom: 10px;
     border-bottom: 2px solid #e0e0e0;
     padding-bottom: 5px;
 }
 
 .detail-section ul {
     list-style: none;
     padding: 0;
     margin: 0;
 }
 
 .detail-section li {
     margin-bottom: 8px;
     font-size: 14px;
     color: #555;
     line-height: 1.4;
 }
 
 .detail-section p {
     font-size: 14px;
     color: #555;
     line-height: 1.5;
     margin: 0;
 }
 
 .back-footer {
     text-align: center;
 }
 
 .btn-flip-back {
     background: linear-gradient(135deg, #2563eb, #7c3aed);
     color: white;
     border: none;
     padding: 10px 20px;
     border-radius: 25px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
 }
 
 .btn-flip-back:hover {
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
 }
 
 /* Indication pour cliquer */
 .card-hint {
     font-size: 12px;
     color: #666;
     font-style: italic;
     margin-top: 10px;
     opacity: 0.8;
 }
