/* DESTINATION : website/static/website/demos/construction/css/layout.css */

/* --- Reusable Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #1A1A1A;
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #1A1A1A;
    transform: translateY(-2px);
}

/* --- Header fixe --- */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #1E232E;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 999999 !important;
}

.dark-header {
    background-color: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed !important;
    top: 0;
    z-index: 999999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
}

.dark-header .logo h2 {
    color: #FFFFFF;
}

.dark-header .nav-list li a {
    color: #E2E8F0;
}

.dark-header .nav-list li a:hover,
.dark-header .nav-list li a.active {
    color: var(--primary-color);
}

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

.logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.main-nav {
    margin-left: auto;
    padding-right: 2rem;
}

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

.nav-list a {
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* --- Mobile Menu (Hamburger) --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    /* zone de clic un peu plus large */
}

.mobile-toggle .bar {
    width: 25px;
    height: 3px;
    /* CORRECTION : blanc pour être visible sur fond sombre */
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all var(--transition-speed);
}

/* --- Footer --- */
.site-footer {
    background-color: #000000;
    color: #fff;
    padding: 4rem 2rem 1rem;
}

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

.footer-brand h2 {
    color: var(--primary-color);
}

.footer-links h3,
.footer-legal h3 {
    color: #fff;
    margin-bottom: 1rem;
}

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

.footer-container ul li {
    margin-bottom: 0.5rem;
}

.footer-container a {
    color: #aaa;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 1rem;
    color: #777;
    font-size: 0.9rem;
}

/* --- Floating Buttons --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform var(--transition-speed);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #1A1A1A;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    z-index: 100;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* --- Top Bar Socials --- */
.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: color 0.3s ease, transform 0.3s ease;
}

.top-bar-socials a:hover {
    color: #FBBF24;
    transform: translateY(-2px);
}

.top-bar-socials a svg {
    display: block;
}

/* ==========================================
   SERVICES HERO
   ========================================== */
.services-hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.text-yellow {
    color: #efb70d;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.226);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 800px;
}

.panel-subtitle {
    color: #E2E8F0;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pill-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pill-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFC107;
    color: #FFC107;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(30, 35, 46, 0.4) 0%,
            rgba(30, 35, 46, 0.8) 60%,
            #1E232E 100%);
    z-index: 1;
}

/* ==========================================
   DETAILED SERVICES
   ========================================== */
.detailed-services {
    background-color: #ffffff;
    padding: 100px 0;
    color: #FFFFFF;
}

.service-row {
    width: 85%;
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 0 0 45%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(24, 24, 24, 0.4);
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-info,
.service-content {
    flex: 0 0 50%;
}

.service-info h2,
.service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-info p {
    color: #060607;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #10c50d;
    font-size: 1.05rem;
}

.service-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #FFC107;
    font-size: 0.8rem;
    top: 4px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.tilt-3d {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-3d:hover {
    box-shadow: -10px 30px 50px rgba(10, 10, 10, 0.6);
    z-index: 10;
}

/* ==========================================
   TERMS / LEGAL PAGES
   ========================================== */
.terms-main {
    background: radial-gradient(circle at top right, #1e232e, #0f1115) !important;
    min-height: 100vh;
    color: #ffffff !important;
    display: block !important;
}

.terms-main .glass-panel {
    background: rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px;
    padding: 60px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    visibility: visible !important;
    opacity: 1 !important;
}

.terms-heading {
    color: #FBB03B !important;
    font-size: 1.6rem;
    margin-bottom: 15px;
    margin-top: 35px;
    font-weight: 700;
    display: block !important;
}

.terms-main p {
    color: #e0e0e0 !important;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
    display: block !important;
}

.terms-main .container {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* ==========================================
   PROJECTS PAGE
   ========================================== */
.projects-main {
    background: radial-gradient(circle at top right, #212e4b, #000000ef);
    min-height: 100vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.project-card {
    background: rgba(46, 46, 46, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, border 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #FBB03B !important;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.project-overlay .category {
    background: #FBB03B;
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-info p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.text-yellow {
    color: #FBB03B !important;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    .service-row,
    .service-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

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

@media screen and (max-width: 768px) {

    /* --- Hamburger visible --- */
    .mobile-toggle {
        display: flex;
        /* S'assure qu'il est affiché */
        order: 3;
        /* Pousse-le après le bouton Get Estimate dans le flex */
    }

    /* --- Menu nav caché par défaut, révélé au clic --- */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1E232E;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        padding-right: 0;
        margin-left: 0;
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    /* --- Bouton Get Estimate réduit sur mobile --- */
    .header-actions .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    /* --- Nav container : logo | Get Estimate | hamburger --- */
    .nav-container {
        padding: 0.75rem 1rem;
        position: relative;
    }

    /* --- Services page --- */
    .service-row {
        width: 90%;
        flex-direction: column;
        gap: 30px;
        margin: 40px auto;
    }

    .service-image {
        flex: none;
        width: 100%;
        margin-left: 0;
    }

    .service-content {
        width: 100%;
        padding-right: 0;
    }

    .service-content h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
}

/* ==========================================
   MOBILE CTA — Get Estimate dans le menu hamburger
   Ajout : 2026-04-29
   ========================================== */

/* Par defaut (desktop), le nouvel item dans le menu est cache
   car le bouton existe deja dans .header-actions a droite */
.nav-cta-item {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Cacher le bouton "Get Estimate" du header en mobile */
    .header-actions {
        display: none;
    }

    /* Afficher le nouvel item CTA dans le menu hamburger */
    .nav-cta-item {
        display: block;
        margin-top: 1rem;
    }

    /* Styler le lien CTA comme un bouton jaune */
    .nav-cta-item .nav-cta-link {
        display: inline-block;
        background-color: var(--primary-color);
        color: #1A1A1A !important;
        padding: 0.7rem 1.8rem;
        border-radius: 100px;
        font-family: var(--font-heading);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.85rem;
        transition: all var(--transition-speed);
    }

    .nav-cta-item .nav-cta-link:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
    }

    /* Neutraliser le soulignement (::after) du nav-list sur le CTA */
    .nav-cta-item .nav-cta-link::after {
        display: none;
    }
}

/* ==========================================
   PROJECTS PAGE — titre "Masterpieces" responsive
   Ajout : 2026-04-29
   ========================================== */

@media screen and (max-width: 768px) {
    /* Le style inline force 3.5rem, on l'ecrase avec !important pour mobile */
    .projects-main .header-section .hero-title {
        font-size: 2.8rem !important;
        line-height: 1.2;
        padding: 0 1rem;
    }

    .projects-main .header-section p {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
}
