/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* BARRE DE PROGRESSION */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    z-index: 2000;
}

/* HEADER */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 40px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.top-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* SLOGAN */
.header-slogan {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* MENU */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-menu a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 80%;
}

/* HAMBURGER */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #222;
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MENU MOBILE */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    padding: 100px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.mobile-menu.open {
    right: 0;
}

/* HERO */
.hero {
    height: 100vh;
    background: url("img/hero-bg.jpg") center/cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-logo {
    width: 420px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SÉPARATEUR */
.section-separator {
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(122,44,255,0.08));
}

/* TITRES */
.title-anim {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.title-anim::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #7a2cff, #ff4fd8);
}

/* SERVICES */
.services {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    text-align: center;
}

.services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.glass {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.3);
}

.service-card {
    padding: 22px;
    font-size: 1.05rem;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(122,44,255,0.18);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CRÉDIT D’IMPÔT */
.credit-section {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.credit-container {
    max-width: 600px;
    margin: 0 auto;
}

.credit-logo {
    width: 180px;
    margin-bottom: 20px;
}

/* CONTACT */
.contact {
    padding: 80px 20px;
    background: #f7f7f9;
    text-align: center;
}

/* COLONNES + LIGNE VERTICALE */
.contact-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: nowrap;
    margin-bottom: 40px;
    position: relative;
}

.contact-row::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, #7a2cff, #ff4fd8);
    border-radius: 2px;
}

/* FORMULAIRE + CONTACT */
.contact-form,
.contact-info-premium {
    flex: 1;
    max-width: 30%;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    height: 520px; /* HAUTEUR FIXE */
}

/* FORMULAIRE CENTRÉ VERTICALEMENT */
.contact-form {
    justify-content: center;
}

.form-group {
    margin-bottom: 12px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-icon input,
.input-icon textarea {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.1);
    font-size: 1rem;
    transition: 0.25s;
    background: rgba(255,255,255,0.85);
}

.input-icon textarea {
    min-height: 95px;
}

.input-icon input:focus,
.input-icon textarea:focus {
    border-color: #7a2cff;
    box-shadow: 0 0 12px rgba(122,44,255,0.25);
    outline: none;
}

/* BOUTON FORMULAIRE */
.contact-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(122,44,255,0.35);
}

/* CONTACT INFO CENTRÉ VERTICALEMENT + HORIZONTAL */
.contact-info-premium {
    justify-content: center;
    align-items: center;
}

.info-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 2px solid rgba(122,44,255,0.15);
    text-align: center;
}

.info-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-line i {
    font-size: 1.6rem;
    margin-right: 8px;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-line p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* CARTE RECENTRÉE */
.contact-map-large {
    max-width: 750px;
    margin: 40px auto 0 auto;
}

.contact-map-large iframe {
    width: 100%;
    height: 340px;
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* BADGE SAP */
.sap-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.sap-badge img {
    width: 55px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

.sap-badge span {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* WHATSAPP */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.whatsapp-btn img {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.25));
}

/* FOOTER ANIMÉ */
footer {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #7a2cff, #ff4fd8);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
    animation: footerGlow 3s ease-in-out infinite;
}

/* Animation premium */
@keyframes footerGlow {
    0% {
        text-shadow: 0 0 4px rgba(255,255,255,0.4);
    }
    50% {
        text-shadow: 0 0 12px rgba(255,255,255,0.9);
    }
    100% {
        text-shadow: 0 0 4px rgba(255,255,255,0.4);
    }
}

/* MOBILE */
@media (max-width: 900px) {

    .header-slogan {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .contact-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact-row::before {
        display: none;
    }

    .contact-form,
    .contact-info-premium {
        max-width: 100%;
        height: auto;
    }

    .contact-map-large iframe {
        min-height: 300px;
    }

    .hero-logo {
        width: 260px;
    }

    .hero-title {
        font-size: 2rem;
    }
}
