html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.4rem 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nom a {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    transition: width 0.3s ease;
}

.menu a:hover {
    color: #a855f7;
}

.menu a:hover::after {
    width: 100%;
}

/* --- BOUTONS GÉNÉRAUX --- */
.boutton {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.boutton a {
    color: white !important;
}

/* --- INTRO --- */
.intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.introtxt {
    max-width: 800px;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
    margin: 0 auto; /* Centrage assuré */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.introtxt h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-weight: 800;
}

.description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.bouttonDemo,
.bouttonSpec {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bouttonDemo {
    background: white;
    color: #a855f7;
}

.bouttonDemo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.bouttonSpec {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.bouttonSpec:hover {
    background: white;
    color: #a855f7;
    transform: translateY(-3px);
}

.feature-badge {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- À PROPOS & PHOTOS ÉQUIPE --- */
.about-section {
    padding: 6rem 2rem;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.5)
}

.about-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
}

.about-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.about-card-text {
    color: #666;
    line-height: 1.8;
}

.team-photos-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.team-photo-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #a855f7;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- SERVICES & CARTES IMAGES --- */
.services-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgb(230, 230, 230);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.service-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #a855f7;
    font-weight: bold;
}

/* Styles spécifiques pour les cartes avec images */
.service-img-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-img-vignette {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-vignette {
    transform: scale(1.1);
}

/* --- TÉMOIGNAGES --- */
.testimonials-section {
    padding: 6rem 2rem;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.testimonial-quote {
    font-size: 3rem;
    color: #a855f7;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: #333;
}

.testimonial-role {
    color: #a855f7;
    font-size: 0.9rem;
}

/* Centrage du bouton Voir Plus */
.center-box {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 40px !important;
    padding: 20px 0;
}

#show-more-btn {
    width: auto !important;
    min-width: 200px;
    color: #a855f7 !important;
    border: 2px solid #a855f7 !important;
    background: white !important;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    padding: 1.2rem 3rem;
    background: white;
    color: #a855f7;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- CONTACT FLOAT & FOOTER --- */
.contact-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, #003778, #0056BD);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    z-index: 999;
}

.contact-float:hover {
    transform: scale(1.1);
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: #aaa;
    line-height: 2;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-section a:hover {
    color: #a855f7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #aaa;
}

.social-link:hover {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    transform: translateY(-3px);
    color: white;
}

.privacy, .legal {
    margin: 2rem;
    padding: 4rem;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white !important;
    padding: 2rem;
    border-radius: 20px;
    width: 95%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-split {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content p,
.modal-content h2,
.modal-content label {
    color: #333 !important;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
    padding: 0.6rem;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

@keyframes floatingOU {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.modal-split .section-title u {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #a855f7 0%, #ec4899 100%) 1;
    padding-bottom: 2px;
    font-weight: 800;
    animation: floatingOU 3s ease-in-out infinite;
}

.call-box p { margin-bottom: 2rem; }
.modal-divider-container { margin: 1rem 0 !important; }
.modal-hours { margin: 2rem 0; }

#status {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

#status.success {
    display: block !important;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

#status.error {
    display: block !important;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* --- MOBILE & RESPONSIVE --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 4px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .navbar {
        padding: 1rem 1.5rem;
        flex-direction: row !important;
        justify-content: space-between;
    }

    .menu {
        position: fixed;
        left: 0;
        top: -100%;
        width: 100%;
        height: auto;
        background: white;
        z-index: 1000;
        transition: all 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        visibility: hidden;
        opacity: 0;
    }

    .menu.active {
        top: 70px;
        visibility: visible;
        opacity: 1;
    }

    .menu ul {
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .introtxt h1 { font-size: 2rem; }
    .description { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .cta-title { font-size: 2rem; }
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Alignement spécial pour les grandes cartes sur PC */
@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
        margin: 3rem auto 0;
    }

    /* Les 3 cartes avec photos (Starlink, Solaire, Bureau) s'alignent sur 3 colonnes */
    .services-grid:has(.installation-card) {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px;
        margin: 40px auto;
    }
}
