* {
    -webkit-tap-highlight-color: transparent;
}
/* ========================================
   BURGER MOBILE & RESPONSIVE
   ======================================== */

/* Burger – caché sur desktop */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--deep-ocean);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
}

/* Animation croix */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop – sous nav pour ne pas bloquer les clics sur le menu */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-backdrop.open {
    display: block;
    opacity: 1;
}


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

/* Desktop small - 1200px */
@media (max-width: 1200px) {
    .services-grid,
    .gallery-grid {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Tablet landscape - 1024px */
@media (max-width: 1024px) {
    .hero-logo {
        max-width: 300px !important;
    }

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

    .hero .tagline {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-features {
        gap: 1.5rem 2rem;
    }
}

/* Tablet portrait + Burger — 768px */
@media (max-width: 768px) {

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: translate(-50%, -50%) rotate(90deg);
        min-width: 100vh;
        min-height: 100vw;
        object-position: 0% 10%;/* décale vers la gauche et le haut */
    }
    
    /* Burger visible */
    .burger {
        display: flex;
    }

    /* Navigation */
    nav {
        padding: 1rem 2rem;
    }

    /* Menu mobile — slide depuis la droite, AU-DESSUS du backdrop */
    nav ul {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(75vw, 300px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    nav ul.open {
        transform: translateX(0);
    }

    nav ul li a {
        color: var(--deep-ocean);
        font-size: 1.2rem;
        font-weight: 500;
    }

    .logo img {
        height: 30px;
    }

    /* Hero */
    .hero-logo {
        max-width: 350px !important;
    }

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

    .hero .tagline {
        font-size: 1.3rem;
        font-weight: 501;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: 2rem 5%;
    }

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

    /* About */
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .feature-item {
        gap: 0.8rem;
    }

    .feature-icon {
        font-size: 1.3rem;
    }

    .feature-item h4 {
        font-size: 0.95rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card > p,
    .service-card ul li {
        font-size: 0.9rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.8rem;
    }

    .gallery-item {
        height: 200px;
    }

    /* Lightbox — flèches toujours visibles */
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        width: 44px;
        height: 44px;
    }

    .lightbox-nav {
        display: flex !important;
        width: 44px;
        height: 44px;
        font-size: 28px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: var(--deep-ocean);
        border: none;
        cursor: pointer;
        z-index: 9999;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Testimonials */
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Contact */
    .contact-intro {
        padding: 0 1rem;
        margin-bottom: 0.5rem;
    }

    .contact-intro p {
        font-size: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info h3 {
        margin-bottom: 0.5rem;
    }

    /* Footer — icônes en ligne */
    .footer-links {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1.5rem;
        justify-content: center;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-bottom p {
        margin: 0.5rem;
    }

    footer {
        padding: 2rem 1.5rem;
        font-size: 0.85rem;
    }
    .fade-in {
        transform : translateY(15px);
    }
}

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

    nav {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 25px;
        margin-top: 5px;
    }

    nav ul {
        width: min(85vw, 300px);
    }

    /* Hero */
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        margin-top: 5vh;
    }

    .hero-logo {
        max-width: 300px !important;
    }

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

    .hero .tagline {
        font-size: 1.1rem;
        font-weight: 510;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: 1.5rem 3%;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* About */
    .about-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-features {
        margin-top: 1.5rem;
        max-width: 100%;
        padding-left: 1rem;
    }

    /* Services */
    .service-card {
        padding: 1.2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .service-card > p {
        font-size: 0.85rem;
    }

    .service-card ul {
        margin: 0.8rem 0;
    }

    .service-card ul li {
        font-size: 0.85rem;
        padding: 0.3rem 0 0.3rem 1.2rem;
        line-height: 1.6;
    }

    .service-card ul li::before {
        left: 0.3rem;
    }

    .service-card p em {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .gallery-item {
        height: 250px;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-close {
        font-size: 30px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.2rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .testimonial-author {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-intro p {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-info {
        /* pour bien voir le formulaire de contact en bas*/
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.2rem;
        padding-top: 0;
    }

    .contact-item {
        font-size: 0.9rem;
        padding: 0.8rem;
        margin-bottom: 0;
    }

    .contact-item-icon {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .submit-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-text p {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .fade-in {
        transform : translateY(0px);
    }
}

/* Very small mobile — 360px */
@media (max-width: 360px) {
  nav {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 25px;
    }

    nav ul {
        width: min(85vw, 300px);
    }

    /* Hero */
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        margin-top: 5vh;
    }

    .hero-logo {
        max-width: 300px !important;
    }

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

    .hero .tagline {
        font-size: 1.1rem;
        font-weight: 510;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* About */
    .about-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-features {
        margin-top: 1.5rem;
        max-width: 100%;
    }

    /* Services */
    .service-card {
        padding: 1.2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .service-card > p {
        font-size: 0.85rem;
    }

    .service-card ul {
        margin: 0.8rem 0;
    }

    .service-card ul li {
        font-size: 0.85rem;
        padding: 0.3rem 0 0.3rem 1.2rem;
        line-height: 1.6;
    }

    .service-card ul li::before {
        left: 0.3rem;
    }

    .service-card p em {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .gallery-item {
        height: 250px;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-close {
        font-size: 30px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.2rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .testimonial-author {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-intro p {
        font-size: 0.95rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.2rem;
    }

    .contact-item {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .contact-item-icon {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .submit-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-text p {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Mobile landscape — hauteur réduite */
@media (max-height: 500px) and (orientation: landscape) {

    /* Hero */
    .hero {
        min-height: 100dvh;
    }

    .hero-content {
        margin-top: 4rem;
    }

    .hero-logo {
        max-width: 140px !important;
        margin-bottom: 0.5rem;
    }

    .hero .tagline {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Flèche scroll */
    .scroll-indicator {
        bottom: 12px;
    }

    .arrow-down {
        width: 28px;
        height: 28px;
    }

    /* Galerie */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 0.6rem;
    }

      .gallery-item {
        height: 160px !important; /* hauteur fixe adaptée landscape */
    }

    .gallery-item img,
    .gallery-item video {
        object-fit: cover;
        object-position: center 30%; /* remonte le cadrage */
    }

   /* Lightbox */
    .lightbox {
        padding: 2.5rem 3.5rem;
    }

    .lightbox-content {
        max-width: 90%;
        max-height: 100%;
        display: flex;
        align-items: center;
    }

    .lightbox-content img,
    .lightbox-content video {
        max-height: 85dvh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

