/* === VARIABLES & THEME === */
:root {
    --bg-body: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-body: #0f172a;
    --bg-nav: rgba(15, 23, 42, 0.95);
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border-color: #334155;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background var(--transition), color var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === TYPOGRAPHIE FLUIDE (Moderne) === */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
}

.text-center {
    text-align: center;
}

/* === RESPONSIVE & MENU MOBILE AVANCÉ === */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-left: 15px;
    z-index: 1001;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .services-grid {
        padding: 0 15px;
    }

    .slide h1 {
        font-size: 3rem;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 85%;
        max-width: 320px;
        background: var(--bg-nav);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .service-accordion summary {
        padding: 18px 15px;
        font-size: 1.05rem;
    }

    .service-details {
        padding: 0 15px 20px 15px;
    }

    .summary-content {
        gap: 12px;
    }

    .summary-content i {
        font-size: 1.3rem;
        width: 25px;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .slide h1 {
        font-size: 2.2rem;
    }

    .input-group {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modern-form {
        padding: 30px 20px;
    }
}

/* === ACCORDION SERVICES (Design Professionnel) === */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.service-accordion {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.service-accordion:hover {
    border-color: var(--accent);
}

.service-accordion summary {
    padding: 24px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.service-accordion summary::-webkit-details-marker {
    display: none;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-content i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
    text-align: center;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.service-accordion[open] .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.service-details {
    padding: 0 24px 24px 70px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    animation: fadeInDown 0.4s ease-out;
}

.service-details p {
    margin-bottom: 12px;
}

.service-details ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.service-details li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: none;
}

.service-details li::before {
    content: '✅';
    position: absolute;
    left: -25px;
    top: 0;
    font-size: 0.9rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* === UTILITAIRES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

/* === HEADER === */
header {
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 75px;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(15deg);
}

/* === SLIDER === */
.home-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    padding: 0 20px;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
    z-index: -1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 900px;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.slider-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-slider {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: var(--transition);
}

.btn-slider:hover {
    background: transparent;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid white;
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    color: #0f172a;
    transform: translateY(-3px);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.4);
}

/* === PROJETS GRIDS === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.project-link:hover {
    gap: 12px;
    color: var(--accent-hover);
}

/* === FORMULAIRE MODERNE === */
.integrated-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.modern-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.input-wrapper label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.required {
    color: #ef4444;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    appearance: none;
}

body.dark-mode .input-wrapper input,
body.dark-mode .input-wrapper select,
body.dark-mode .input-wrapper textarea {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.input-wrapper textarea {
    padding-left: 15px;
    resize: vertical;
    min-height: 120px;
}

.input-icon {
    position: absolute;
    top: 44px;
    left: 16px;
    color: var(--text-secondary);
    transition: 0.3s;
}

.select-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:focus+.input-icon {
    color: var(--accent);
}

.btn-submit-pro {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-submit-pro:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* === CONTACT SECTION === */
#contact {
    background: var(--contact-bg);
    color: var(--contact-text);
}

#contact h2 {
    color: var(--contact-text);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* === FOOTER === */
footer {
    background: var(--contact-bg);
    padding: 30px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
}

footer strong {
    color: var(--contact-text);
}

/* === SCROLL TO TOP PREMIUM === */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--accent);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    background: var(--accent);
    color: white;
}

#scrollTopBtn i {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
}

#scrollTopBtn .progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    z-index: 1;
}

#scrollTopBtn circle {
    fill: transparent;
    stroke-width: 6;
}

.progress-ring__background {
    stroke: var(--border-color);
}

.progress-ring__circle {
    stroke: var(--accent);
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 0.1s linear, stroke var(--transition);
}

#scrollTopBtn:hover .progress-ring__circle {
    stroke: white;
}

@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* === ANIMATIONS (Performantes) === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal.active-reveal {
    opacity: 1;
    transform: translateY(0);
}