/* ========================================
   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); }

/* ── Mobile ── */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(75vw, 300px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.10);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

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

    nav ul li a {
        font-size: 1.2rem;
        font-weight: 500;
    }

    /* Overlay sombre derrière le menu */
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1040;
        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-title {
		font-size: 2.5rem;
	}

	.services-grid {
		gap: 1.5rem;
	}

	.service-card {
		padding: 1.5rem;
	}

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

/* Tablet portrait - 768px */
@media (max-width: 768px) {
	/* Navigation */
	nav {
		padding: 1rem 2rem;
	}

	nav ul {
		display: none;
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background: var(--deep-ocean);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 2rem;
		transition: right 0.3s ease;
		z-index: 9998;
	}

	nav ul.active {
		right: 0;
	}

	nav ul li a {
		color: white;
		font-size: 1.2rem;
	}

	.logo img {
		height: 50px;
	}

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

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

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

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

	/* Section spacing */
	section {
		padding: 4rem 1.5rem;
	}

	.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 */
	.lightbox-content {
		max-width: 95%;
		max-height: 80%;
	}

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

	.lightbox-nav {
		width: 45px;
		height: 45px;
		font-size: 30px;
	}

	.lightbox-prev {
		left: 5px;
	}

	.lightbox-next {
		right: 5px;
	}

	.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;
	}

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

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

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

	/* Footer */
	.footer-links {
		flex-direction: column;
		gap: 1.5rem;
		align-items: center;
	}

	footer {
		padding: 2rem 1.5rem;
		font-size: 0.85rem;
	}
}

/* Mobile - 480px */
@media (max-width: 480px) {
	/* Navigation */
	nav {
		padding: 0.8rem 1rem;
	}

	.logo img {
		height: 40px;
	}

	nav ul {
		width: 85%;
	}

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

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

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

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

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

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

	/* Section spacing */
	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 mobile optimization */
	.lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 25px;
	}

	.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;
	}
}

/* Very small mobile - 360px */
@media (max-width: 360px) {
	.hero-logo {
		max-width: 150px !important;
	}

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

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

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

	.gallery-item {
		height: 220px;
	}
}
