/* Variables et Reset */
:root {
    /* Mode clair par défaut */
    --primary-color: #3b82f6;
    --secondary-color: #1d4ed8;
    --text-color: #ffffff;
    --shadow: 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);
    --nav-background: rgba(15, 23, 42, 0.9);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Menu déroulant pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: var(--text-color);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .menu.active {
        display: flex;
    }
}

/* Navigation */
header {
    background-color: var(--nav-background);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out; /* Ajout de la transition */
  }

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

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
}

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.logo::after {
    content: none;
}

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

nav a:hover::after {
    width: 100%;
}



#hidden-video-1, #hidden-video-2, #hidden-video-3 {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-content {
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 img.logo {
    width: 80px;
    height: auto;
    margin-right: 20px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #ff4d4d;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: #ff4d4d;
    color: #fff;
}

.cta-button.primary:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 25px;
    margin-bottom: 0.5rem;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: #fff;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Services Section */
.services {
    padding: 8rem 2rem;
    background: #f9f9f9;
}

.services h2, .gallery h2, .equipment h2, .pricing h2, .contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

.services h2::after, .gallery h2::after, .equipment h2::after, .pricing h2::after, .contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ff4d4d;
}

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

.service-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: #ff4d4d;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card ul {
    list-style: none;
    text-align: left;
    padding: 0 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.service-card ul li::before {
    content: '✓';
    color: #ff4d4d;
    position: absolute;
    left: 0;
    top: 0.1rem;
}

/* Gallery Section */
.gallery {
    padding: 8rem 2rem;
    background: #fff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item img,
.gallery-item video,
.gallery-item canvas {
  /* Durée de 0.5s, fonction d’accélération ease-in-out */
  transition: transform 0.5s ease-in-out;
}

.gallery-item:hover img,
.gallery-item:hover video,
.gallery-item:hover canvas {
    transform: scale(1.1);
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox img,
.lightbox video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close, .prev, .next {
    position: absolute;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    padding: 1rem;
    transition: color 0.3s;
}

.close {
    top: 1rem;
    right: 1rem;
}

.prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.close:hover, .prev:hover, .next:hover {
    color: #ff4d4d;
}

#lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
}

.lightbox-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img,
.gallery-item video,
.gallery-item canvas {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

#hidden-video {
    display: none;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #f9f9f9, #e0e0e0);
    text-align: center;
}

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

.contact h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.contact-info {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-transform: uppercase;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-direction: column;
}

.info-item i {
    font-size: 1.8rem;
    color: #ff4d4d;
}

.info-item p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #ff4d4d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 4rem 2rem 2rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ff4d4d;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff4d4d;
}

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

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

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

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 10px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

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

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

    .contact-info {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .info-item p {
      overflow-wrap: anywhere;
    }
    .info-item {
      flex-wrap: wrap;
    }
  }
