/* ============================= */
/* RESET GLOBAL */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================= */
/* SCROLL */
/* ============================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}
/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.85);
    position: sticky;
    width: 100%;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1100;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

/* Logo */

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}
/* Navigation */

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;   /* remplace margin-left */
    z-index: 1200;
}

.nav-links a {
    text-decoration: none;
    color: #111;
    transition: 0.3s;
    margin-left: 0;
    white-space: nowrap; /* empêche À propos de casser */
}

.nav-links a:hover {
    opacity: 0.6;
}


/* BOUTONS */
.btn-nav {
    background: #111;
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    display: inline-block;
    background: #111;
    color: white;
    padding: clamp(10px, 1.2vw, 14px) clamp(20px, 2vw, 28px);
    font-size: clamp(0.9rem, 1vw, 1rem);
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Hover existant conservé */
.btn-nav:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Effet lumière premium */
.btn-primary::after,
.btn-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-primary:hover::after,
.btn-nav:hover::after {
    left: 100%;
}

/* Téléphone navbar */

.btn-phone {
    font-weight: 600;
}

/* ============================= */
/* HAMBURGER */
/* ============================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #111;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation croix propre */
.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);
}

/* ============================= */
/* OVERLAY PREMIUM */
/* ============================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 140px 10% 80px 10%; /* espace sous navbar */
    gap: 50px;
    background: linear-gradient(120deg, #f5f7fa, #ffffff);
}

/* HERO PREMIUM */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.03), transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

.hero-text,
.hero-image {
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    margin-bottom: 30px;
    color: #555;
}

/* ============================= */
/* FADE IN */
/* ============================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================= */
/* SCROLL INDICATOR */
/* ============================= */

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
}

.scroll-indicator span {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid #111;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #111;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.8s infinite;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ============================= */
/* SECTIONS */
/* ============================= */

.section {
    padding: 120px 10%;
    text-align: center;
    scroll-margin-top: 100px;
}

.bg-light {
    background: #f8f9fb;
}

/* ============================= */
/* SERVICES */
/* ============================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.card {
    padding: 35px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 15px;
    color: #111;
    transition: background 0.3s ease, color 0.3s ease;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Couleurs spécifiques services */

/* ADMINISTRATIF */
.card.admin:hover .card-icon {
    background: #fdf6d8; /* Jaune léger */
    color: #ebac25;
}

/* INFORMATIQUE */
.card.info:hover .card-icon {
    background: #e0f2fe; /* Bleu ciel */
    color: #0284c7;
}

/* EXCEL */
.card.excel:hover .card-icon {
    background: #e6f4ea; /* Vert léger */
    color: #16a34a;
}

.card ul {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.card li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* SERVICES TEXTE COMPLEMENTAIRE */
.services-text {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

/* ============================= */
/* A PROPOS */
/* ============================= */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
    text-align: left;
}

#card-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    position: relative;
}

/* FAQ */
.faq-item {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.faq-item h3 {
    margin-bottom: 10px;
}

/* ============================= */
/* ZONE INTERVENTION */
/* ============================= */
.map-container {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.map-btn {
    display: inline-block;
    margin-top: 30px;
}

/* ============================= */
/* CONTACT */
/* ============================= */
.contact-card {
    display: flex;
    gap: 60px;
    margin-top: 50px;
    padding: 50px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    text-align: left;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 1.05rem;
    transition: 0.3s;
}

.contact-item:hover {
    opacity: 0.6;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
    color: #555;
}

/* FORMULAIRE */

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    font-size: 0.9rem;
    color: #888;
    pointer-events: none;
    transition: 0.3s ease;
    background: white;
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -8px;
    font-size: 0.75rem;
    color: #111;
}

/* MESSAGE FORMULAIRE */
.form-message {
    margin-bottom: 20px;
    font-weight: 600;
    min-height: 24px; /* évite saut de layout */
}

.form-message.success {
    color: #16a34a;
}

.form-message.error {
    color: #dc2626;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    padding: 30px;
    text-align: center;
    background: #f5f5f5;
}

/* ============================= */
/* BOUTON APPEL FLOTTANT */
/* ============================= */

.btn-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    color: white;
    padding: 16px;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 1150px) {
    .logo-text {
        font-size: 1.05rem;
    }

    .navbar {
    padding: 20px 3%;
    }
}

@media (max-width: 1000px) {
    #card-container {
        display: none;
    }

    .about-content {
        justify-content: center;
    }

    .about-text {
        max-width: 750px;
        text-align: center;
    }
}

@media (max-width: 960px) {
    .btn-phone {
        display: none;
    }
}

@media (max-width: 790px) {

    /* NAVBAR */
    .navbar {
        padding: 15px 6%;
        flex-direction: row;          /* ⚠️ plus colonne */
        justify-content: space-between;
        align-items: center;
    }

    /* MENU MOBILE */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transition: right 0.4s cubic-bezier(.77,0,.18,1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    /* Animation des liens menu mobile */
    .nav-links a {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    margin-left: 0;
    font-size: 1.1rem;
    }

    /* Quand menu actif */
    .nav-links.active a {
    opacity: 1;
    transform: translateX(0);
    }

    .nav-links.active a:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.active a:nth-child(6) { transition-delay: 0.3s; }

    /* HAMBURGER */
    .hamburger {
        display: flex;
    }

    /* HERO */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px 20px;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 2.6rem);
    }

    .hero p {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
    }

    /* SERVICES */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* SECTIONS */
    .section {
        padding: 80px 20px;
        scroll-margin-top: 90px;  /* corrige problème ancres */
    }

    .btn-call {
        display: block;
    }

    /* A PROPOS */
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        text-align: center;
        max-width: 750px;
    }

    /* CONTACT */
    .contact-card {
        flex-direction: column;
        padding: 35px;
    }
}