/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #050b14;
    color: white;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
}

.header-container {
    background: white;
    border-radius: 20px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    height: 130px;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: #2563eb;
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-select {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 8px 30px 8px 12px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: 
        url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.lang-select:hover {
    background-color: #e2e8f0;
}

.right-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 20px;
}

.right-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.right-buttons .cta-btn,
.right-buttons .cart-btn {
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    color: white !important;
    padding: 12px 22px !important;
    border-radius: 50px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    border: none !important;
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    background: #22c55e;
    color: white !important;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    border-radius: 50px;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none; /* Masqué par défaut, affiché par JS */
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}

.cta-btn {
    display: inline-flex; /* Alignement flexible pour l'icône et le texte */
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.cta-btn svg {
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
    filter: brightness(1.1);
}

/* Animation de l'icône au survol */
.cta-btn:hover svg {
    transform: translateX(4px) translateY(-4px);
}
/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #0f172a;
    border-radius: 2px;
    transition: 0.3s;
}

#menu-checkbox {
    display: none;
}

/* Sections */
section {
    padding: 160px 8% 120px 8%;
    min-height: calc(100vh - 96px);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h1, .section-title h2 { /* Use h1 for main page title, h2 for sub-sections */
    font-size: clamp(32px, 5vw, 54px);
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 20px;
    opacity: 0.85;
}

/* Cards (for About, Solutions, Projects, Client, Services) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.4s;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card h3 {
    font-size: 30px;
    margin-bottom: 18px;
}

.card p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 17px;
}

/* Projects Section & Contact */
#projects {
    position: relative;
    background: linear-gradient(rgba(5,11,20,0.6), rgba(5,11,20,0.8)), url('eolien.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-box {
    max-width: 750px;
    margin: auto;
    background: rgba(255, 255, 255, 0.04);
    padding: 40px;
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ajustement pour l'intégration HubSpot */
.hs-form-frame {
    min-height: 400px;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 16px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(5, 11, 20, 0.5);
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: 0.3s;
}

/* Stats (Centralisées depuis index.html) */
.stats {
    position: relative;
    margin-top: -50px;
    padding: 0 8%;
    z-index: 10;
}

.stats-container {
    background: rgba(10,15,25,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    text-align: center;
}

.stat h2 {
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 5px;
    color: #ffbf00;
}

.stat p {
    opacity: 0.85;
    font-size: 16px;
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
    background: #030811;
    opacity: 0.8;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Social Links */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    opacity: 0.7;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    opacity: 1;
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
    border-color: #2563eb;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* WhatsApp Button */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 90px; /* Above WhatsApp button */
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 998;
    cursor: pointer;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media(max-width:950px) {
    .floating-box {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 40px;
        width: 100%;
    }

    .info {
        width: calc(33.33% - 15px);
        min-width: 260px;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 160px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    section {
        padding: 120px 5% 60px 5%;
        min-height: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .logo img {
        height: 80px;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        gap: 15px;
        display: none;
        border-top: 1px solid #f1f5f9;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    .right-buttons {
        display: none !important;
    }

    #menu-checkbox:checked~nav {
        display: flex;
        animation: fadeUp 0.3s ease;
    }

    #menu-checkbox:checked~.menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #menu-checkbox:checked~.menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #menu-checkbox:checked~.menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    nav .cta-btn-mobile {
        display: block !important;
        background: #2563eb;
        color: white !important;
        padding: 12px 20px;
        border-radius: 50px;
        font-weight: 700;
        margin-top: 5px;
        text-align: center;
        text-decoration: none;
        border: none;
    }

    nav .cart-btn-mobile {
        display: block !important;
        background: #22c55e;
        color: white !important;
        padding: 12px 20px;
        border-radius: 50px;
        font-weight: 700;
        margin-top: 5px;
        text-align: center;
        text-decoration: none;
        position: relative;
        border: none;
    }

    nav .cart-btn-mobile .cart-badge {
        position: static;
        display: inline-flex;
        margin-left: 10px;
    }
}

@media(max-width:700px) {
    footer div:first-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        line-height: 1.4;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 25px;
        gap: 20px;
    }

    .stats {
        margin-top: -30px;
    }

    .cta-btn, .btn-primary, .btn-secondary, .cart-btn {
        width: 100%;
        justify-content: center;
        min-height: 50px; /* Meilleure zone de clic */
    }

    .login-box, .contact-box, .card {
        padding: 30px 20px;
    }

    /* Désactiver l'effet parallax sur mobile pour la performance */
    section, #projects, .hero {
        background-attachment: scroll !important;
    }
}

@media(max-width:480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Specific overrides for mobile buttons */
@media(max-width:700px) {
    .pro-text .cta-btn,
    .content-container .cta-btn {
        display: block;
        text-align: center;
        font-size: 15px !important;
        padding: 15px 20px !important;
        line-height: 1.4;
    }
}

/* Masquer définitivement le bouton "Nous contacter" sur la Home */
[data-key="hero-btn-secondary"],
a:has([data-key="hero-btn-secondary"]),
.hero-buttons .btn-secondary {
    display: none !important;
}

/* Hide the "Nous contacter" button on the homepage */
[data-key="hero-btn-secondary"],
a:has([data-key="hero-btn-secondary"]),
.hero-buttons .btn-secondary {
    display: none !important;
}

/* Styles spécifiques à la page About */
.hero-about {
    text-align: center;
    padding-bottom: 60px;
}
.hero-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.vision-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #2563eb;
    padding: 30px;
    border-radius: 0 20px 20px 0;
}
.vision-box blockquote {
    font-style: italic;
    font-size: 18px;
    color: #ffbf00;
}
.val-card {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
}
.val-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}
.val-icon {
    font-size: 32px;
    margin-bottom: 15px;
}
.promise-list {
    list-style: none;
    margin-top: 30px;
}
.promise-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.04);
}
.check-icon {
    color: #22c55e;
    font-weight: 800;
}
.cta-section {
    margin-top: 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(5, 11, 20, 0.5));
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Responsive pour la page About */
@media (max-width: 950px) {
    .two-col { grid-template-columns: 1fr; }
}

/* Styles pour le content-wrapper (utilisé sur plusieurs pages) */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.06);
    line-height: 1.8;
    backdrop-filter: blur(10px);
}

/* Ajustement pour les cartes de valeurs sur mobile */
@media (max-width: 700px) {
    .cards { grid-template-columns: 1fr; } /* Pour les val-card */
}

/* ── SECTION PROMO ── */
.promo-section { padding: 80px 8%; background: linear-gradient(135deg, #050b14 0%, #0a1628 100%); }
.promo-wrapper { max-width: 1200px; margin: 0 auto; }
.promo-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,191,0,0.12); border: 1px solid rgba(255,191,0,0.35); color: #ffbf00; font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 50px; margin-bottom: 30px; letter-spacing: 0.5px; text-transform: uppercase; }
.promo-card {
    background: linear-gradient(135deg, rgba(15,25,50,0.95) 0%, rgba(10,18,38,0.98) 100%);
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 28px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    min-height: 350px;
}
.promo-card::before { content:''; position:absolute; top:-60px; right:-60px; width:300px; height:300px; background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%); pointer-events:none; }
.promo-card::after { content:''; position:absolute; bottom:-40px; left:-40px; width:200px; height:200px; background: radial-gradient(circle, rgba(255,191,0,0.07) 0%, transparent 70%); pointer-events:none; }
.promo-badge { position: absolute; top: 24px; right: 24px; background: linear-gradient(135deg, #ef4444, #dc2626); color: white; font-size: 13px; font-weight: 800; padding: 8px 18px; border-radius: 50px; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(239,68,68,0.4); }
.promo-top {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.promo-img-box {
    flex: 0 0 240px; /* Fixed width for the image container, no grow/shrink */
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-img-box img { width: 100%; border-radius: 18px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
.promo-img-box img:hover { transform: scale(1.05); }
.promo-content-group { /* New style for the wrapper */
    display: flex;
    flex-direction: column; /* Stack info and pricing vertically */
    flex: 1 1 auto; /* Allow content group to take remaining space, but also shrink */
    min-width: 250px; /* Ensure content group has a minimum readable width */
}
.promo-info {
    flex-grow: 1; /* Allow info to take available space */
    margin-bottom: 20px; /* Space between info and pricing */
}
.promo-info h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; }
.promo-info h2 span { color: #2563eb; }
.promo-info p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.6; }
.promo-pricing { text-align: right; flex-shrink: 0; }
.price-old { font-size: 18px; color: rgba(255,255,255,0.4); text-decoration: line-through; margin-bottom: 4px; }
.price-new { font-size: clamp(36px, 5vw, 52px); font-weight: 800; color: #ffbf00; line-height: 1; }
.price-new span { font-size: 20px; font-weight: 600; }
.price-mention { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 5px; }
.promo-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 35px; }
.promo-feature { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 13px 16px; font-size: 14px; font-weight: 500; }
.promo-feature .icon { width: 28px; height: 28px; background: rgba(37,99,235,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.promo-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 30px; }
.promo-spots { display: flex; align-items: center; gap: 12px; }
.spots-bar-wrap { display: flex; flex-direction: column; gap: 5px; }
.spots-bar { width: 180px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.spots-fill { height: 100%; width: 22%; background: linear-gradient(90deg, #2563eb, #ffbf00); border-radius: 10px; }
.spots-text { font-size: 13px; color: rgba(255,255,255,0.55); }
.spots-text strong { color: #ffbf00; }
.promo-cta { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; padding: 16px 36px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; box-shadow: 0 8px 25px rgba(37,99,235,0.4); }
.promo-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(37,99,235,0.5); }
.promo-urgency { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 10px; }
.dot-live { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: pulse-dot 1.5s infinite; }
.price-pulse {
    animation: pulse-price 2s infinite ease-in-out;
}

@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
@keyframes pulse-price {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@media(max-width:950px){
    .promo-card { padding: 30px 22px; }
    .promo-top { flex-direction: column; gap: 20px; }
    .promo-img-box { flex: 0 0 auto; width: 100%; max-width: 300px; margin: 0 auto; }
    .promo-pricing { text-align: left; }
    .promo-content-group {
        width: 100%; /* Full width for content group on mobile */
        flex-direction: column; /* Ensure stacking on mobile */
        align-items: center; /* Center content when stacked */
    }
    .promo-info {
        text-align: center; /* Center text on mobile */
        min-width: unset; /* Remove min-width on mobile */
    }
    .promo-pricing {
        text-align: center; /* Center pricing on mobile */
    }
    .promo-bottom { flex-direction: column; align-items: flex-start; }
    .promo-cta { width: 100%; justify-content: center; }
}

.promo-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-top: 20px;
}

.promo-grid .promo-card {
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.promo-inner-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 30px;
}

.promo-img-full {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-img-full img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.promo-img-full img:hover {
    transform: scale(1.03);
}

@media(max-width:950px) {
    .promo-grid {
        flex-direction: column;
        gap: 40px;
    }
}

@media(max-width:1200px) and (min-width:951px) {
    .promo-inner {
        flex-direction: column;
        gap: 25px;
    }
    .promo-img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media(max-width:750px) {
    .promo-inner {
        flex-direction: column;
        gap: 25px;
    }
    .promo-img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}