/* ==========================================
   DESTINATION : website/static/website/demos/construction/css/home.css
   ========================================== */

/* ==========================================
   HOME PAGE - HERO SECTION
   ========================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-color: #1E232E;

    /* ANIMATION DE FOND */
    background-image: url('../image/home/dayy.jpg');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: 0% center;

    animation: moveHeroBackground 60s linear infinite;
}

/* ANIMATION */
@keyframes moveHeroBackground {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -2000px center;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Typography --- */
.hero-section h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 0 1rem;
}

.text-orange {
    color: #FBB03B;
}

/* --- Glassmorphism Box --- */
.glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    width: 90%;
    max-width: 560px;
}

.glass-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.glass-tabs button {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.glass-tabs button.active,
.glass-tabs button:hover {
    background-color: var(--primary-color);
    color: #111;
    border-color: var(--primary-color);
}

.glass-inputs {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.input-group label {
    color: #E2E8F0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    outline: none;
}

.input-group select option {
    color: #111;
}

.glass-search-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* --- Bottom Links (pill buttons) --- */
.hero-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-bottom-links a {
    background: rgba(30, 35, 46, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-bottom-links a:hover {
    background: rgba(34, 26, 26, 0.9);
    border-color: #FBB03B;
    color: #FBB03B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 6, 6, 0.5);
}

/* --- Header fixe --- */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #0f172a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */

.dark-bg {
    background-color: #0F172A;
}

.why-choose-us {
    background-color: #0F172A;
    padding: 100px 20px;
    position: relative;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-title h2 span {
    color: #FBBF24;
}

.section-title p {
    color: #CBD5E1;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(251, 191, 36, 0.4);
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    color: #FBBF24;
    font-size: 10px;
    text-align: center;
}

.icon-wrapper img {
    display: block;
    max-width: 32px;
    max-height: 32px;
}

.feature-card h3 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #E2E8F0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 12px;
    border-left: 4px solid #FBBF24;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FBBF24;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ==========================================
   HOME PAGE PROJECT PREVIEW
   ========================================== */

.view-all-btn {
    color: #FBB03B;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #FBB03B;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #FBB03B;
    color: black;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.preview-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03) !important;
}

.preview-img-container {
    width: 100%;
    height: 100%;
}

.preview-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.preview-card:hover .preview-img-container img {
    transform: scale(1.1);
}

.preview-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.preview-text h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.preview-text p {
    color: #FBB03B;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

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

    /* --- Hero --- */
    .hero-section {
        /* On réduit le padding-top car le header mobile est moins haut */
        padding-top: 100px;
        padding-bottom: 60px;
        /* On laisse min-height: 100vh hérité mais on laisse le contenu dicter la hauteur */
        min-height: auto;
    }

    .hero-section h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        padding: 0 1rem;
    }

    /* --- Glass Box --- */
    .glass-box {
        width: 72%;
        max-width: none;
        padding: 1.2rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    /* Boutons Commercial / Residential / Industrial en ligne, scrollables */
    .glass-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        /* scrollbar discrète */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .glass-tabs::-webkit-scrollbar {
        display: none;
    }

    .glass-tabs button {
        flex-shrink: 0;
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }

    /* Inputs en colonne */
    .glass-inputs {
        flex-direction: column;
        gap: 0.8rem;
    }

    .input-group {
        min-width: 100%;
    }

    .glass-search-btn {
        width: 100%;
        padding: 0.85rem;
        font-size: 1rem;
    }

    /* --- Bottom links : en ligne, taille réduite --- */
    .hero-bottom-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .hero-bottom-links a {
        padding: 8px 14px;
        font-size: 0.78rem;
        border-radius: 50px;
    }

    /* --- Stats --- */
    .stats-banner {
        flex-direction: column;
        padding: 30px;
    }

    .stat-item {
        margin-bottom: 20px;
    }

    .stat-item:last-child {
        margin-bottom: 0;
    }

    /* --- Project preview --- */
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-card {
        height: 280px;
    }

    /* --- Floating buttons : remonter pour ne pas chevaucher les pills --- */
    .floating-buttons {
        bottom: 90px;
    }

}
