/* Styles pour Services (page En construction) - autonome */

:root {
    --primary-black: #1a1a1a;
    --primary-red: #be1622;
    --secondary-red: #be1622;
    --primary-white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #2a2a2a;
    --accent-yellow: #FFD700;
    --ani-duration: 700ms;
    --ani-ease: cubic-bezier(0.22, 0.12, 0.08, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: 'Inter', sans-serif; background: #fafafa; color: #222; margin:0; padding-top:88px; min-height:100vh; display:flex; flex-direction:column; text-align: center; }

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDownNavbar 0.8s ease-out;
}

@keyframes slideDownNavbar {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    margin-left: 12px;
    margin-right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo img {
    height: 56px;
    width: auto;
    margin-right: 0;
}

.logo:hover {
    transform: scale(1.03);
}

/* Hamburger menu button */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
    transition: all 0.35s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after {
    width: 100%;
}




.construction-hero { min-height: 70vh; display:flex; align-items:center; justify-content:center; padding:6rem 1rem; }

.construction-card { background: linear-gradient(180deg,#fff,#fff); padding:3.2rem 2rem; border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,0.08); text-align:center; max-width:980px; }

.construction-title { font-family: 'Oswald', sans-serif; font-size:3.2rem; color:var(--primary-black); margin-bottom:0.4rem; }

.construction-sub { font-size:1.1rem; color:#666; margin-bottom:1.6rem; }

.construction-badge { display:inline-block; padding:0.6rem 1rem; background:var(--primary-red); color:white; border-radius:999px; font-weight:700; }

@media (max-width:640px){ .construction-title{font-size:2rem;} }



/* ============================================
   GLOBAL LAYOUT (Indispensable pour le fix)
   ============================================ */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Force le body à faire au moins 100% de la hauteur d'écran */
    margin: 0;
}

main {
    flex: 1; /* L'élément main va s'étirer pour combler le vide et pousser le footer en bas */
}



/* ============================================
   FOOTER (Ajusté)
   ============================================ */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 1.25rem 2rem;
    border-top: 2px solid var(--primary-red);
    animation: slideInUp 0.6s ease-out;
    
    /* AJOUT : Sécurité supplémentaire si le flex du body échoue ou change */
    margin-top: auto; 
    width: 100%; /* Assure que le footer prend toute la largeur */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-left, .footer-right {
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-left { text-align: left; }
.footer-right { text-align: right; }


.about-image {
    max-width: 500px;
    width: 100%;
    display: block;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 0.25rem; }
    .footer-right { text-align: center; }
}

/* Fixed Instagram Button (global) */
.navbar .social-icon { display: none; }

.fixed-insta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    z-index: 2200;
    cursor: pointer;
    transition: transform 160ms ease;
    animation: floatBounce 3.2s ease-in-out infinite, occasionalShake 10s ease-in-out infinite;
}

.fixed-insta img { width: 40px; height: 40px; object-fit: contain; display: block; }

@keyframes floatBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes occasionalShake { 0% { transform: translateY(0) rotate(0); } 2% { transform: translateY(-2px) rotate(6deg); } 4% { transform: translateY(0) rotate(-6deg); } 6% { transform: translateY(-1px) rotate(3deg); } 8% { transform: translateY(0) rotate(0); } 100% { transform: translateY(0) rotate(0); } }

/* Footer links: force white */
.footer a { color: var(--primary-white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ============================================
    Gallery styles
    ============================================ */
.services-intro { padding: 5rem 1rem 2rem; text-align: center; }
.services-intro-inner { max-width: 1000px; margin: 0 auto; }
.services-intro .section-title { font-family: 'Oswald', sans-serif; font-size: 2.6rem; color: var(--primary-black); margin-bottom: 0.6rem; }
.services-desc { color: #555; max-width: 900px; margin: 0 auto; font-size: 1.05rem; font-weight: 300; text-align: justify; }

.photo-gallery-section { padding: 2rem; max-width: 1400px; margin: 0 auto 4rem; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { overflow: hidden; border-radius: 10px; cursor: zoom-in; position: relative; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 980px) { .photo-gallery { grid-template-columns: repeat(2,1fr); } .gallery-item img { height: 200px; } }
@media (max-width: 620px) { .photo-gallery { grid-template-columns: 1fr; } .gallery-item img { height: 180px; } }

/* Lightbox */
.gallery-lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.85); z-index: 4000; }
.gallery-lightbox[aria-hidden="false"] { display: flex; }
.gallery-lightbox .lb-stage { max-width: 95%; max-height: 90%; display:flex; align-items:center; justify-content:center; }
.gallery-lightbox .lb-image { max-width: 100%; max-height: 90vh; box-shadow: 0 20px 60px rgba(0,0,0,0.6); border-radius: 8px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); color: white; border: none; width: 64px; height: 64px; border-radius: 50%; font-size: 32px; cursor: pointer; display: flex; align-items:center; justify-content:center; }
.lb-prev { left: 28px; }
.lb-next { right: 28px; }
.lb-close { position: absolute; right: 22px; top: 22px; background: rgba(255,255,255,0.08); color: white; border: none; width: 48px; height:48px; border-radius:50%; font-size:20px; cursor:pointer; }
.lb-prev:hover,.lb-next:hover,.lb-close:hover{ background: rgba(255,255,255,0.15); }

/* Mobile gallery adjustments */
@media (max-width: 980px) {
    .lb-prev, .lb-next { width: 56px; height: 56px; font-size: 28px; left: 14px; right: 14px; }
    .lb-close { width: 44px; height: 44px; font-size: 18px; right: 14px; top: 14px; }
}

@media (max-width: 620px) {
    .photo-gallery { gap: 10px; }
    .gallery-item img { height: 180px; }
    .lb-prev, .lb-next { width: 48px; height: 48px; font-size: 22px; }
    .lb-close { width: 40px; height: 40px; font-size: 18px; }
}

/* increase hit area for controls on touch */
.lb-prev, .lb-next, .lb-close { touch-action: manipulation; }

/* Mobile tuning: navbar responsive + menu burger */
@media (max-width: 768px) {
    body { padding-top: 78px; }
    
    .navbar { padding: 0.75rem 0; }
    .nav-container { margin-left: 10px; margin-right: 10px; }
    .logo img { height: 48px; }
    
    .hamburger { display: flex; }
    
    .nav-right {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-red);
        flex-direction: column;
        padding: 2rem 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 999;
    }

    .nav-right.active { transform: translateX(0); }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-link {
        color: white;
        font-size: 18px;
        display: block;
        text-align: center;
        padding: 10px 0;
    }

    .nav-link::after { display: none; }
    .nav-link:hover { color: #fff; }

    .services-intro { padding: 4rem 1rem 1.5rem; }
    .services-intro .section-title { font-size: 2rem; }
    .services-desc { font-size: 1rem; }
}

@media (max-width: 600px) {
    body { padding-top: 68px; }
    .navbar { padding: 0.6rem 0; }
    .logo img { height: 40px; }
    .nav-right { top: 60px; }
    .services-intro { padding: 3.5rem 1rem 1rem; }
}



.about-image {
    max-width: 500px;
    width: 100%;
    display: block;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 0.25rem; }
    .footer-right { text-align: center; }
}
