/* ============================================================
   MennAge - Premium CSS
   Inspired by centreservices.fr
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #79ab51;
    --primary-dark: #5c873a;
    --secondary: #2c87b3;
    --accent-green: #79ab51;
    --accent-yellow: #fcc000;
    --accent-pink: #fa91af;
    --accent-brown: #a39384;
    --accent-blue: #2c87b3;
    --accent-orange: #CA5800;
    
    --bg-light: #f7f8fc;
    --bg-white: #ffffff;
    --bg-dark: #0a1628;
    --bg-dark-card: #111d33;
    
    --text-primary: #1a1a2e;
    --text-secondary: #555b6e;
    --text-light: #8892a4;
    --text-white: #ffffff;
    
    --border-color: #e8ecf1;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(55,223,223,0.2);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-main: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --header-height: 80px;
    --container-max: 1200px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-light {
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(55,223,223,0.1), rgba(7,102,160,0.1));
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    flex: 1;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: var(--transition);
}

.scrolled .logo-img {
    height: 55px;
}

.site-header:not(.scrolled) .logo-img {
    filter: drop-shadow(0px 2px 10px rgba(255,255,255,0.6)) drop-shadow(0px 0px 25px rgba(255,255,255,0.3));
}

.footer-logo-img {
    height: 100px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0px 2px 10px rgba(255,255,255,0.4)) drop-shadow(0px 0px 25px rgba(255,255,255,0.2));
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    transition: var(--transition);
}

.scrolled .logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--primary);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 10px;
    transition: var(--transition);
}

.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.scrolled .nav-link:hover {
    background: rgba(55,223,223,0.1);
    color: var(--primary-dark);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.btn-header {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.scrolled .mobile-toggle span {
    background: var(--text-primary);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,22,40,0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

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

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav-link {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    opacity: 0.8;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    opacity: 1;
    color: var(--primary);
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 600;
}

.mobile-phone svg {
    width: 20px;
    height: 20px;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    justify-content: center;
}

.btn svg, .btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(55,223,223,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55,223,223,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: var(--text-white);
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(55,223,223,0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(55,223,223,0.4);
}

.btn-full {
    width: 100%;
}

.btn-cta-primary {
    background: var(--text-white);
    color: var(--secondary);
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--text-white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.btn-cta-secondary svg {
    width: 18px;
    height: 18px;
}


/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: var(--secondary);
}

.slider-logo-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 100px 5vw 0;
    gap: 16px;
}

.slider-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.slider-logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(55,223,223,0.3));
}

.slider-brand {
    flex-shrink: 0;
}

.slider-brand-text {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slider-brand-text .accent {
    color: var(--primary);
}

.slider-next-btn {
    position: absolute;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.slider-next-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-next-btn .progress-ring {
    position: absolute;
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.slider-next-btn svg:first-child {
    position: absolute;
    width: 56px;
    height: 56px;
}

.slider-next-btn .arrow-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: circle(0% at 140px 140px);
    transition: clip-path 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
    visibility: hidden;
}

.slide-active {
    clip-path: circle(150% at 140px 140px);
    z-index: 5;
    visibility: visible;
}

.slide-exiting {
    clip-path: circle(150% at 140px 140px);
    z-index: 3;
    visibility: visible;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 91, 143, 0.75) 0%, rgba(44, 162, 68, 0.75) 100%);
    z-index: 1;
}

/* Slide lines */
.slide-line {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
}

.slide-line-front {
    right: -10%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.06) 42%, transparent 42%);
    animation: lineSlide 10s linear infinite;
}

.slide-line-back {
    left: -10%;
    background: linear-gradient(135deg, transparent 55%, rgba(255,255,255,0.04) 55%, rgba(255,255,255,0.04) 57%, transparent 57%);
    animation: lineSlideReverse 12s linear infinite;
}

@keyframes lineSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes lineSlideReverse {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Slide content */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    max-width: var(--container-max);
    margin: 0 auto;
}

.slide-left {
    flex: 1;
    padding-right: 40px;
    animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-title {
    font-family: var(--font-main);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.slide-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 500px;
    line-height: 1.7;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--text-white);
    color: var(--secondary);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.slide-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.slide-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-visual {
    width: 320px;
    height: 320px;
    animation: slideVisualFloat 4s ease-in-out infinite, slideUp 1s ease-out 0.5s both;
}

@keyframes slideVisualFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.slide-visual svg {
    width: 100%;
    height: 100%;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.indicator:hover {
    background: rgba(255,255,255,0.5);
}

.indicator.active {
    width: 60px;
    background: rgba(255,255,255,0.3);
}

.indicator-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--text-white);
    border-radius: 4px;
    transition: none;
}

.indicator.active .indicator-fill {
    animation: indicatorProgress 5s linear forwards;
}

@keyframes indicatorProgress {
    from { width: 0%; }
    to { width: 100%; }
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-page {
    padding-top: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover .service-card-bg {
    opacity: 1;
    transform: scale(1);
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--primary));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover .service-card-bg {
    opacity: 1;
    transform: scaleX(1);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--card-color) 10%, transparent), 
        color-mix(in srgb, var(--card-color) 5%, transparent)
    );
    border-radius: 16px;
    margin-bottom: 20px;
    color: var(--card-color, var(--primary));
    transition: var(--transition);
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--card-color) 25%, transparent);
}

.service-card-icon svg {
    width: 32px;
    height: 32px;
}

.service-card-title {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--card-color, var(--primary));
    transition: var(--transition);
}

.service-card-link:hover {
    gap: 10px;
}

.service-card-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}


/* ============================================================
   AGENCY SECTION
   ============================================================ */
.agency-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--secondary), #012a35);
    position: relative;
    overflow: hidden;
}

.agency-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55,223,223,0.08), transparent);
}

.agency-finder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
}

.agency-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.agency-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Search box */
.search-box {
    position: relative;
    max-width: 450px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-light);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 50px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    font-size: 1rem;
    color: var(--text-white);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 30px rgba(55,223,223,0.15);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Map illustration */
.agency-finder-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-illustration {
    width: 100%;
    max-width: 400px;
}

.map-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(55,223,223,0.1));
}

/* City tags */
.cities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.city-tag {
    padding: 8px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.city-tag:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-2px);
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    overflow: hidden;
}

.cta-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.1), transparent 50%);
}

.cta-banner-content {
    position: relative;
    text-align: center;
}

.cta-banner-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 20px;
}

.cta-highlight {
    position: relative;
    display: inline-block;
}

.cta-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.cta-banner-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-banner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.cta-badges {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.stars-display {
    display: flex;
    gap: 2px;
}

.star-icon {
    width: 20px;
    height: 20px;
    color: #ddd;
}

.star-icon.filled {
    color: #fbb034;
}

.rating-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-stars .star-icon {
    width: 16px;
    height: 16px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
}

.testimonial-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.testimonial-city {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
}

.testimonial-quote-icon svg {
    width: 48px;
    height: 48px;
}


/* ============================================================
   OPPORTUNITIES SECTION
   ============================================================ */
.opportunities-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.opp-card {
    position: relative;
    background: var(--opp-color, var(--primary));
    border-radius: var(--border-radius-lg);
    padding: 40px;
    overflow: hidden;
    color: var(--text-white);
    transition: var(--transition);
    min-height: 200px;
}

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

.opp-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 280px;
}

.opp-card-large .opp-card-content {
    position: relative;
    z-index: 2;
}

.opp-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.opp-card-visual svg {
    width: 200px;
    height: 200px;
    opacity: 0.6;
}

.opp-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.opp-title {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.opp-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 16px;
}

.opp-link {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: var(--transition);
}

.opp-link:hover {
    opacity: 1;
    text-decoration: underline;
}


/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}


/* ============================================================
   QUICK DEVIS SECTION
   ============================================================ */
.quick-devis-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.quick-devis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.quick-devis-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.quick-devis-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.quick-devis-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qd-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.qd-feature svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Form styles */
.quick-devis-form-wrap {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(55,223,223,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}


/* ============================================================
   PAGE HERO (for inner pages)
   ============================================================ */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--hero-color, var(--primary)), color-mix(in srgb, var(--hero-color, var(--primary)) 70%, #000));
    text-align: center;
}

.page-title {
    font-family: var(--font-main);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--text-white);
}

.breadcrumb-sep {
    margin: 0 8px;
}


/* ============================================================
   SERVICE DETAIL
   ============================================================ */
.service-detail {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.service-detail-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.service-advantages h3 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.advantage-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.advantage-list li svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Sidebar */
.sidebar-cta-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.sidebar-cta-card h3 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar-cta-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.sidebar-cta-card .btn {
    margin-bottom: 10px;
}

.sidebar-testimonial {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.sidebar-testimonial h4 {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.testimonial-mini p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin: 10px 0;
}

.testimonial-mini .testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}


/* ============================================================
   DEVIS & CONTACT PAGES
   ============================================================ */
.devis-section,
.contact-section {
    padding: 80px 0;
}

.devis-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: start;
}

.devis-form-wrap,
.contact-form-wrap {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.info-card h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-card-dark {
    background: var(--secondary);
    color: var(--text-white);
    border-color: transparent;
}

.info-card-dark h3 {
    color: var(--text-white);
}

.info-card-dark p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-list li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Contact info */
.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(55,223,223,0.1);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--primary-dark);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-item h4 {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-info-item a {
    color: var(--primary-dark);
    font-weight: 500;
}


/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    text-align: center;
    padding: 40px;
}

.error-code {
    font-family: var(--font-main);
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.error-title {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-text {
    color: var(--text-secondary);
    margin-bottom: 32px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    position: relative;
}

.footer-wave {
    color: var(--bg-light);
    line-height: 0;
    margin-bottom: -1px;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-content {
    padding: 60px 24px 30px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-logo .logo-text {
    font-size: 1.4rem;
    color: var(--text-white);
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}


/* ============================================================
   FLOATING TOOLBAR
   ============================================================ */
.floating-toolbar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
    transform: translateY(120px);
    opacity: 0;
    transition: var(--transition-slow);
}

.floating-toolbar.visible {
    transform: translateY(0);
    opacity: 1;
}

.toolbar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.toolbar-item span {
    position: absolute;
    right: 100%;
    margin-right: 8px;
    padding: 4px 10px;
    background: var(--secondary);
    color: var(--text-white);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.toolbar-item:hover span {
    opacity: 1;
}

.toolbar-item:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: scale(1.1);
}

.toolbar-item svg {
    width: 22px;
    height: 22px;
}


/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-message {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    border-radius: var(--border-radius);
    animation: flashSlide 0.4s ease-out;
}

@keyframes flashSlide {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.flash-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
}

.flash-success .flash-content {
    background: rgba(61,181,0,0.95);
    color: var(--text-white);
}

.flash-error .flash-content {
    background: rgba(220,53,69,0.95);
    color: var(--text-white);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    padding: 0 4px;
}

.flash-close:hover {
    opacity: 1;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agency-finder {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .agency-finder-visual {
        display: none;
    }
    
    .quick-devis {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    /* Header mobile */
    .main-nav {
        display: none;
    }
    
    .btn-header {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-slider {
        max-height: 100vh;
    }
    
    .slider-logo-area {
        padding: 90px 20px 0;
    }
    
    .slider-logo {
        width: 50px;
        height: 50px;
    }
    
    .slider-brand-text {
        font-size: 1.4rem;
    }
    
    .slider-next-btn {
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .slide-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 20px;
    }
    
    .slide-left {
        padding-right: 0;
    }
    
    .slide-right {
        display: none;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-indicators {
        bottom: 24px;
    }
    
    /* Sections */
    .services-section,
    .testimonials-section,
    .opportunities-section,
    .quick-devis-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .opp-card-large {
        grid-column: 1;
        grid-template-columns: 1fr;
    }
    
    .opp-card-visual {
        display: none;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .cta-banner {
        padding: 60px 0;
    }
    
    .cta-banner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-badges {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .devis-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* Floating toolbar */
    .floating-toolbar {
        bottom: 16px;
        right: 16px;
    }
    
    .toolbar-item {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .slide-title {
        font-size: 1.6rem;
    }
    
    .quick-devis-form-wrap,
    .devis-form-wrap,
    .contact-form-wrap {
        padding: 24px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
}

/* ============================================================
   EXTRA MOBILE FIXES (Added for responsiveness)
   ============================================================ */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-slider {
        min-height: 100vh;
        height: 100vh;
    }
    
    /* Hide duplicate logo inside the slider on mobile since it's already in the header */
    .slider-logo, .slider-brand {
        display: none !important;
    }
    
    .slider-logo-area {
        padding: 0;
        pointer-events: none; /* Let clicks pass through if empty */
    }
    
    /* Reposition the Next Button so it doesn't overlap the text */
    .slider-next-btn {
        top: auto;
        bottom: 80px;
        right: 20px;
        transform: none;
        width: 50px;
        height: 50px;
        pointer-events: auto;
    }
    
    .slider-next-btn svg:first-child {
        width: 46px;
        height: 46px;
    }
    
    .slider-next-btn .arrow-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Center the text properly */
    .slide-content {
        justify-content: center;
        padding: 0 15px;
        height: 100%;
        padding-bottom: 80px; /* space for next button and indicators */
    }
    
    .slide-left {
        flex: none !important;
        width: 100%;
    }
    
    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .slide-desc {
        margin-bottom: 25px;
    }
    
    .slide-actions {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .slide-actions .btn {
        width: auto !important;
        min-width: 200px;
        margin-bottom: 0;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .slide-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .services-grid, 
    .testimonials-grid, 
    .opportunities-grid,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 10px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .toolbar-item {
        width: 50px;
        height: 50px;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* ============================================================
   AUTH PAGES STYLE (Login / Register)
   ============================================================ */
.auth-section {
    padding: 140px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-wrapper {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   CLIENT DASHBOARD STYLE
   ============================================================ */
.dashboard-section {
    padding: 140px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

.profile-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(44, 162, 68, 0.2);
}

.profile-name {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.profile-details {
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-bottom: 24px;
}

.profile-detail-item {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-detail-item strong {
    color: var(--text-primary);
}

.profile-detail-item span {
    color: var(--text-secondary);
}

.logout-btn {
    margin-top: 10px;
}

.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.dashboard-header-bar h2 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard-header-bar p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.empty-dashboard-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    margin: 0 auto 20px;
    opacity: 0.7;
}

.empty-dashboard-card h3 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-dashboard-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.subscriptions-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.subscription-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 24px 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.subscription-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.sub-service-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-service-name {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-plan-badge {
    padding: 4px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-active {
    background: rgba(44, 162, 68, 0.1);
    color: var(--primary-dark);
}

.status-canceled {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.sub-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.sub-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-info-item strong {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-info-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sub-info-item .sub-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.sub-card-footer {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: right;
}

.cancel-link {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.cancel-link:hover {
    text-decoration: underline;
}

/* ============================================================
   SUBSCRIBE PAGE STYLE (Form)
   ============================================================ */
.subscribe-section {
    padding: 140px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.subscribe-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.subscribe-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.subscribe-header h2 {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.service-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.service-option {
    cursor: pointer;
    position: relative;
}

.service-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-option-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-primary);
}

.service-option input:checked + .service-option-content {
    border-color: var(--option-color, var(--primary));
    background: rgba(44, 162, 68, 0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.option-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hidden-options {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 91, 143, 0.03);
    border: 1px dashed var(--secondary);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 40px;
    gap: 20px;
    animation: fadeIn 0.4s ease-in-out;
}

.summary-details h4 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.summary-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.summary-total {
    text-align: right;
    flex-shrink: 0;
}

.total-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.total-amount {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.subscribe-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* ============================================================
   RESPONSIVE DESIGN FOR CLIENT SPACE
   ============================================================ */
@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .dashboard-header-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-header-bar .btn {
        text-align: center;
    }
    
    .pricing-summary {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .summary-total {
        text-align: center;
    }
}

.hidden {
    display: none !important;
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS
   ============================================================ */
@media (max-width: 900px) {
    /* Layout & Spacing */
    section {
        padding: 60px 0 !important;
    }
    
    .container {
        padding: 0 15px !important;
    }

    /* Typography */
    .section-title, h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }

    /* Grids & Flex */
    .features-grid, .pricing-grid, .dashboard-grid, .grid, .services-grid, .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Auth Forms */
    .auth-container {
        padding: 20px 15px !important;
    }

    .auth-card {
        width: 100% !important;
        padding: 30px 20px !important;
        border-radius: 15px !important;
    }

    /* Tables */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    /* Forms */
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }

    /* Subscribe Layout */
    .service-select-grid {
        grid-template-columns: 1fr !important;
    }

    /* Admin specific fixes if they bleed here */
    .admin-card {
        padding: 1rem !important;
    }
}

/* ============================================================
   CLIENT DASHBOARD PREMIUM STYLES
   ============================================================ */

.client-dashboard-section {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

.client-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .client-dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Offset for header */
}

.client-profile-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.client-profile-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #37dfdf 100%);
    padding: 40px 20px 60px;
    text-align: center;
    color: var(--text-white);
    position: relative;
}

.client-avatar {
    width: 100px;
    height: 100px;
    background: var(--bg-white);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--bg-white);
}

.client-profile-body {
    padding: 70px 30px 30px;
    text-align: center;
}

.client-profile-body h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.client-profile-body p {
    color: var(--text-secondary);
    margin: 0 0 25px 0;
    font-size: 0.95rem;
}

.client-details-list {
    text-align: left;
    margin-bottom: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.client-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.client-detail-icon {
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-detail-text strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.client-detail-text span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #e74c3c;
    color: var(--text-white);
}

/* Main Area */
.client-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.client-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

@media (max-width: 600px) {
    .client-header-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

.client-header-bar h2 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 1.6rem;
}

.client-header-bar p {
    margin: 0;
    color: var(--text-secondary);
}

.btn-subscribe-new {
    background: var(--secondary);
    color: var(--text-white);
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 135, 179, 0.3);
}

.btn-subscribe-new:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Subscription Cards */
.premium-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* For animation */
}

.premium-card.animate-in {
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .premium-card {
        transition: none;
        opacity: 1;
        animation: none !important;
    }
    .premium-card:hover {
        transform: none;
    }
    .btn-subscribe-new {
        transition: none;
    }
    .btn-subscribe-new:hover {
        transform: none;
    }
    .btn-logout {
        transition: none;
    }
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.sub-card-header-v2 {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .sub-card-header-v2 {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.sub-title-wrapper h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.sub-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge {
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
}
.badge-active {
    background: #d1fae5;
    color: #065f46;
}
.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.sub-card-body-v2 {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

@media (max-width: 900px) {
    .info-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.info-block i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-content strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-content span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.sub-card-footer-v2 {
    background: #f8fafc;
    padding: 15px 30px;
    text-align: right;
    border-top: 1px solid var(--border-color);
}

.btn-cancel-sub {
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.btn-cancel-sub:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Empty State */
.empty-state-premium {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.empty-state-premium i {
    font-size: 4rem;
    color: #e0e6ed;
    margin-bottom: 20px;
}

/* Modal Premium */
.modal-backdrop {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Fallback */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content-premium {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin: auto;
    box-sizing: border-box;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-backdrop.show {
    display: flex;
}

.modal-backdrop.show .modal-content-premium {
    transform: scale(1);
    opacity: 1;
}
