:root {
    --primary: #5D3FD3;
    --primary-dark: #4B2FB8;
    --primary-light: #7B5FE8;
    --primary-lighter: #E8E2FF;
    --accent: #D93636;
    --accent-light: #FFE5E5;
    --accent-dark: #B92929;
    --dark: #0F0F1A;
    --gray-900: #1A1A2E;
    --gray-800: #2D2D44;
    --gray-700: #45455F;
    --gray-600: #5D5D7A;
    --gray-500: #7D7D95;
    --gray-400: #9D9DB0;
    --gray-300: #BDBDCA;
    --gray-200: #E0E0E8;
    --gray-100: #F2F2F6;
    --gray-50: #F8F8FB;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #5D3FD3 0%, #7B5FE8 100%);
    --gradient-light: linear-gradient(135deg, #F8F8FB 0%, #E8E2FF 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Search Results Dropdown for Homepage */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-top: none;
    border-radius: 0 0 16px 16px;
    max-height: 300px;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(93, 63, 211, 0.1);
    box-sizing: border-box;
    margin-top: -2px; /* Chevaucher légèrement pour masquer la jonction */
    overflow: hidden; /* Cache le débordement pour préserver les coins arrondis */
    transition: border-color 0.3s ease;
}

/* Wrapper interne pour le scroll sur la homepage */
.search-results-dropdown .search-results-inner {
    max-height: 298px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modifier l'input quand le dropdown est actif */
.search-input-wrapper.dropdown-active .form-input {
    border-radius: 16px 16px 0 0;
    border-bottom-color: transparent;
}

/* S'assurer que la bordure du bas reste transparente même en focus */
.search-input-wrapper.dropdown-active .form-input:focus {
    border-bottom-color: transparent;
}

/* Appliquer les mêmes styles au dropdown quand l'input est en focus */
.search-input-wrapper:has(.form-input:focus) .search-results-dropdown {
    border-color: var(--primary);
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.search-input-wrapper.input-focused .search-results-dropdown {
    border-color: var(--primary);
}

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

.search-result-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
}

.search-result-item:hover {
    background: var(--primary-lighter);
}

.search-result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 14px 14px;
}

.search-result-link {
    text-decoration: none;
    color: var(--gray-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-city {
    font-weight: 600;
    font-size: 1rem;
}

.search-result-info {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.search-result-arrow {
    color: var(--primary);
    font-size: 1.25rem;
}

.search-loading {
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
}

.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--accent) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--primary-light) 0%, transparent 50%);
    overflow: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.header.scrolled .header-container {
    padding: 0.75rem 1rem;
}

.header.scrolled .logo img {
    height: 35px !important;
}

.header.scrolled .btn-header {
    padding: 0.5rem 1.25rem;
    font-size: 14px;
}

@media (max-width: 380px) {
    .header-container {
        padding: 1rem 0.75rem;
    }
    
    .header.scrolled .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .header.scrolled .logo img {
        height: 32px !important;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-900);
}

.logo-shine-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.logo-shine {
    position: absolute;
    top: -50%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease-in-out;
}

.logo:hover .logo-shine {
    left: 150%;
}

.footer-logo-wrapper {
    width: fit-content;
}

.footer-shine {
    animation: shine-effect 4s infinite;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.15),
        transparent
    );
    opacity: 0.7;
}

@keyframes shine-effect {
    0% { left: -60%; }
    70% { left: -60%; }
    100% { left: 150%; }
}

.logo-mark {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

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

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

.nav-link.active::after {
    width: 100%;
}

.btn-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1003;
    outline: none;
}

.mobile-menu-toggle:focus,
.mobile-menu-toggle:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--gray-600);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
    }
    
    /* Ensure header stays visible when menu is open */
    .mobile-menu.active + .header,
    .header:has(+ .mobile-menu.active) {
        z-index: 1004 !important;
    }
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 0 0 2rem 0;
}

.mobile-nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    padding: 1rem 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-cta {
    margin-top: 2rem;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--gray-50) 0%, var(--white) 100%);
}

/* Quick signup form in hero */
.hero-signup {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(93, 63, 211, 0.1),
                   0 10px 40px rgba(93, 63, 211, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(93, 63, 211, 0.2),
                   0 10px 50px rgba(93, 63, 211, 0.15);
    }
}

.hero-signup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.hero-signup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-signup-title::before {
    content: '🚀';
    font-size: 1.5rem;
    animation: rocket-bounce 2s ease-in-out infinite;
}

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-signup-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.hero-signup-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 48px;
}

.hero-signup-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.1);
}

.hero-signup-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 380px) {
    .hero-container {
        padding: 0 0.75rem;
    }
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--gray-900);
    word-wrap: break-word;
}

/* Explicit font-size for h1 in sections to prevent browser compatibility issues */
section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(93, 63, 211, 0.25);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    padding: 1rem 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px 40px;
}

.app-mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.app-mockup {
    position: absolute;
    width: 280px;
    background: #000;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: all 0.4s ease;
}

.app-mockup:first-child {
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(93, 63, 211, 0.4);
    z-index: 10;
    transform: rotate(12deg);
    letter-spacing: 0.5px;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: rotate(12deg) scale(1); }
    50% { transform: rotate(12deg) scale(1.05); }
}

.app-mockup:hover {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.app-mockup.secondary {
    transform: rotate(5deg) translateX(180px) translateY(40px);
    z-index: -1;
    opacity: 0.8;
}

.app-mockup.secondary:hover {
    transform: rotate(5deg) translateX(180px) translateY(40px) scale(1.05);
}

.mockup-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-visual {
        min-height: 450px;
        padding: 80px 20px 60px;
    }
    
    .app-mockup {
        width: 200px;
    }
    
    .app-mockup:first-child {
        transform: rotate(-3deg) translateX(-50px);
    }
    
    .app-mockup.secondary {
        transform: rotate(3deg) translateX(50px) translateY(30px);
    }
    
    .app-mockup:hover {
        transform: rotate(-3deg) translateX(-50px) scale(1.05);
    }
    
    .app-mockup.secondary:hover {
        transform: rotate(3deg) translateX(50px) translateY(30px) scale(1.05);
    }
    
    .coming-soon-badge {
        font-size: 12px;
        padding: 0.4rem 1rem;
        top: -10px;
        right: -10px;
    }
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
}

.map-header {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.map-dot:nth-child(1) { background: #FF5F57; }
.map-dot:nth-child(2) { background: #FFBD2E; }
.map-dot:nth-child(3) { background: #28CA42; }

.map-content {
    padding: 2rem;
    height: calc(100% - 60px);
    position: relative;
    background: linear-gradient(to bottom, var(--gray-50) 0%, var(--white) 100%);
}

.map-points {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(93, 63, 211, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.map-point:nth-child(1) { top: 30%; left: 40%; }
.map-point:nth-child(2) { top: 50%; left: 60%; }
.map-point:nth-child(3) { top: 20%; left: 70%; }
.map-point:nth-child(4) { top: 70%; left: 30%; }
.map-point:nth-child(5) { top: 60%; left: 80%; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

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

.map-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.map-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Community Badge */
.community-badge {
    background: var(--accent-light);
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    font-weight: 500;
}

.community-badge-icon {
    font-size: 20px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 380px) {
    .section-container {
        padding: 0 0.75rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    border: 1px solid var(--accent-dark);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 14px;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--gray-900);
}

.section-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background: var(--gradient-light);
    position: relative;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.newsletter-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

.input-group {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    color: var(--gray-900);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form-input::placeholder {
    color: var(--gray-500);
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(93, 63, 211, 0.25);
}

.privacy-note {
    margin-top: 1.5rem;
    font-size: 14px;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.4;
}

.privacy-note a {
    white-space: nowrap;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Cities Grid */
.cities {
    padding: 100px 0;
    background: var(--white);
}

/* App Demo Section */
.app-demo {
    padding: 100px 0;
    background: var(--gray-50);
}

.demo-grid {
    margin-top: 4rem;
}

.demo-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.demo-feature:last-child {
    margin-bottom: 0;
}

.demo-feature.reverse {
    direction: rtl;
}

.demo-feature.reverse .demo-content {
    direction: ltr;
}

.demo-phone {
    display: flex;
    justify-content: center;
}

.demo-screenshot {
    width: 280px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: 12px solid #000;
    transition: all 0.3s ease;
}

.demo-phone {
    display: flex;
    justify-content: center;
    position: relative;
}

.demo-screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.demo-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.demo-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.demo-points {
    list-style: none;
    space-y: 1rem;
}

.demo-points li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.beta-notice {
    background: var(--accent-light);
    border: 1px solid var(--accent-dark);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.beta-notice span {
    font-size: 1.5rem;
}

.beta-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--accent-dark);
}

.beta-signup {
    background: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.beta-signup p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--primary);
}

.beta-signup p:first-child {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .demo-feature,
    .demo-feature.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }
    
    .demo-feature.reverse .demo-content {
        direction: ltr;
    }
    
    .demo-screenshot {
        width: 200px;
    }
    
    .demo-points {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Problems Section */
.problems {
    padding: 100px 0;
    background: var(--gray-50);
    position: relative;
}

/* Search Section */
.search-section {
    padding: 60px 0;
    background: var(--gradient-light);
    position: relative;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 0;
}

/* Style spécial pour l'input de recherche de commune */
.search-input-wrapper .form-input {
    padding-left: 3rem;
    font-size: 1.125rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    pointer-events: none;
}

.search-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .search-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 380px) {
    .search-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Display Spots Section */
.display-spots {
    padding: 100px 0;
    background: var(--white);
}

.spots-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 3rem auto;
    max-width: 900px;
    position: relative;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .spots-gallery {
        max-width: 100%;
        padding: 1rem 0.5rem;
    }
}

.spot-card {
    background: var(--white);
    border: 4px solid var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    width: 200px;
    height: 200px;
    position: relative;
    margin: -10px;
}

.image-shine-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-shine {
    position: absolute;
    top: -50%;
    left: -60%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease-in-out;
    z-index: 10;
    pointer-events: none;
}

.spot-card:hover .image-shine {
    left: 150%;
}

@media (max-width: 768px) {
    .spot-card {
        width: 150px;
        height: 150px;
        margin: -5px;
    }
}

.spot-card:nth-child(1) { 
    transform: rotate(-3deg); 
    z-index: 1;
}
.spot-card:nth-child(2) { 
    transform: rotate(2deg); 
    z-index: 2;
}
.spot-card:nth-child(3) { 
    transform: rotate(-2deg); 
    z-index: 3;
}
.spot-card:nth-child(4) { 
    transform: rotate(3deg); 
    z-index: 4;
}
.spot-card:nth-child(5) { 
    transform: rotate(-1deg); 
    z-index: 5;
}
.spot-card:nth-child(6) { 
    transform: rotate(2deg); 
    z-index: 6;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.spot-card:hover {
    transform: rotate(0deg) scale(1.1) !important;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    z-index: 10 !important;
}

.spot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spot-more {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    user-select: none;
}

.spot-more-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    user-select: none;
}

@media (max-width: 768px) {
    .spots-gallery {
        padding: 1rem;
    }
    
    .spot-card {
        width: 150px;
        height: 150px;
        margin: -10px;
    }
    
    .spot-card:nth-child(6) {
        padding: 1rem;
    }
    
    .spot-more {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .spot-more-text {
        font-size: 0.875rem;
    }
}

.spots-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 380px) {
    .spots-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.info-block {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.info-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.info-block p {
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .spots-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .spot-image {
        height: 150px;
    }
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.problem-description {
    color: var(--gray-600);
    line-height: 1.6;
}

.solution-banner {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .solution-banner {
        padding: 1.5rem;
    }
}

.solution-banner h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.solution-banner p {
    font-size: 1.125rem;
    opacity: 0.95;
}

.cities-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.city-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.city-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.city-icon {
    font-size: 2rem;
}

.city-stats {
    text-align: right;
}

.city-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.city-label {
    font-size: 12px;
    color: var(--gray-600);
}

.city-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.city-region {
    font-size: 14px;
    color: var(--gray-600);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--gray-600);
    line-height: 1.8;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-link-disabled {
    color: var(--gray-700);
    cursor: not-allowed;
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--gray-600);
}

.footer-copyright a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===================== COMMUNE PAGES STYLES ===================== */

/* Commune Header */
.commune-header {
    padding: 100px 0 40px;
    background: linear-gradient(to bottom, var(--gray-50) 0%, var(--white) 100%);
}

.commune-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.commune-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.commune-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: var(--gray-900);
}

.commune-location {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    color: var(--gray-600);
    justify-content: center;
    flex-wrap: wrap;
}

.location-separator {
    width: 4px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 50%;
}

.location-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.location-link:hover {
    color: var(--primary);
}

.location-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.location-link:hover::after {
    width: 100%;
}

/* Stats Bar */
.commune-stats-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: var(--gray-200);
    align-self: stretch;
}

/* Main Content */
.commune-content {
    padding: 60px 0;
    background: var(--white);
}

.commune-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Database Info Component */
.database-info {
    background: var(--gradient-light);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.database-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(93, 63, 211, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.database-number {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    animation: number-pulse 2s ease-in-out infinite;
}

@keyframes number-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.database-text {
    text-align: left;
}

.database-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.database-source {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.database-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    position: relative;
    z-index: 1;
}

.database-cta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.database-cta a:hover {
    text-decoration: underline;
}

/* Map Section */
.map-section {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin-bottom: 3rem;
}

.map-header {
    background: var(--gray-50);
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.map-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.map-description {
    font-size: 0.875rem;
    color: var(--gray-600);
}

#commune-map {
    width: 100%;
    height: 500px;
    background: var(--gray-100);
}

.overlay-content {
    text-align: left;
}

.overlay-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.overlay-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.2;
}

.overlay-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.813rem;
}

.overlay-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
}

.overlay-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.legend-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.legend-dot {
    width: 15px;
    height: 20px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-right: 5px;
}

.legend-dot::before {
    content: "📍";
    filter: hue-rotate(240deg) saturate(1.5);
}

/* Info Section */
.info-section {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

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

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.info-highlight {
    background: var(--primary-lighter);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
}

.info-highlight .info-value {
    color: var(--primary);
}

/* Access Banner */
.access-banner {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.access-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.access-banner-content {
    position: relative;
    z-index: 1;
}

.access-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.access-text {
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.access-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Precursor Benefits */
.precursor-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    font-size: 1.25rem;
}

.benefit-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Signup Form */
.signup-form {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(93, 63, 211, 0.1),
                   0 10px 40px rgba(93, 63, 211, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(93, 63, 211, 0.2),
                   0 10px 50px rgba(93, 63, 211, 0.15);
    }
}

.signup-form-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.signup-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.signup-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.1);
}

.signup-button {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.signup-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

.alternative-text {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.alternative-text p {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.faq-answer {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.faq-answer code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.813rem;
    color: var(--primary);
    display: inline-block;
    margin: 0.5rem 0;
}

.surface-table {
    margin-top: 1rem;
    overflow-x: auto;
}

.surface-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.813rem;
}

.surface-table th,
.surface-table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid var(--gray-200);
}

.surface-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.surface-table tr.highlight {
    background: var(--primary-lighter);
    font-weight: 600;
}

.surface-table tr.highlight td {
    color: var(--primary);
}

.coverage-table {
    margin: 1rem 0;
    overflow-x: auto;
}

.coverage-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.813rem;
}

.coverage-table th,
.coverage-table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid var(--gray-200);
}

.coverage-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.coverage-table td {
    color: var(--gray-600);
}

.faq-note {
    font-size: 0.75rem;
    color: var(--gray-700);
    margin-top: 0.75rem;
    font-style: italic;
}

/* CTA Section */
.commune-cta {
    padding: 80px 0;
    background: var(--gray-50);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    border: 1px solid var(--accent-dark);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 14px;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--gray-900);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Custom marker styles */
.leaflet-marker-icon {
    width: 30px !important;
    height: 40px !important;
    margin-left: -15px !important;
    margin-top: -40px !important;
    background: none !important;
    border: none !important;
    filter: none;
    opacity: 0.9;
}

.leaflet-marker-icon::before {
    content: "📍";
    font-size: 30px;
    display: block;
    filter: hue-rotate(240deg) saturate(1.5);
}

/* Mobile unlock card */
.mobile-unlock-card {
    display: none;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.desktop-only {
    display: block;
}

/* Responsive Commune Pages */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-unlock-card {
        display: block;
    }
    
    .map-section {
        margin-bottom: 0;
    }
    
    #commune-map {
        height: 350px;
    }
    
    .mobile-unlock-card .overlay-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-unlock-card .overlay-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-unlock-card .overlay-text {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .mobile-unlock-card .overlay-button {
        padding: 0.75rem 1.5rem;
    }
    
    .commune-stats-bar {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .database-info {
        padding: 1.5rem;
    }
    
    .database-text {
        text-align: center;
    }
    
    .database-number {
        font-size: 3rem;
    }
    
    .database-label {
        font-size: 1.125rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
    
    .faq-title {
        font-size: 1.25rem;
    }
    
    .surface-table,
    .coverage-table {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .commune-location {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .location-separator {
        display: none;
    }
    
    .location-link {
        font-size: 1rem;
    }
    
    #commune-map {
        height: 400px;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Wrapper for controlling width */
.page-wrapper {
    min-width: 320px;
    max-width: 100%;
    overflow-x: hidden;
}

@media screen and (min-width: 1200px) {
    .page-wrapper {
        min-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav .btn-header {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Explicit font-size for h1 in sections (responsive) */
    section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .newsletter-container {
        padding: 0 0.75rem;
    }
    
    /* Carousel functionality for mobile */
    .carousel-container {
        position: relative;
        margin: 0 -1rem;
        padding: 0.5rem 0 0.5rem 1rem;
    }
    
    .problems-grid,
    .features-grid,
    .cities-showcase {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0.75rem 1rem 0.75rem 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .problems-grid::-webkit-scrollbar,
    .features-grid::-webkit-scrollbar,
    .cities-showcase::-webkit-scrollbar {
        display: none;
    }
    
    .problem-card,
    .feature-card,
    .city-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        margin-bottom: 0;
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 2rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gray-300);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .dot.active {
        background: var(--primary);
        transform: scale(1.2);
    }
    
    .dot:hover {
        background: var(--primary-light);
    }
}

/* Hide carousel dots on desktop */
@media (min-width: 769px) {
    .carousel-dots {
        display: none;
    }
}

.leaflet-container .leaflet-tile {
    mix-blend-mode: normal !important;
}

/* Mobile styles for hero signup form */
@media (max-width: 768px) {
    .hero-signup-form {
        flex-direction: column;
    }
    
    .hero-signup-input {
        width: 100%;
        min-width: unset;
    }
    
    .hero-signup-input[name="code_postal"] {
        flex: 1;
        max-width: unset !important;
        width: 100%;
    }
    
    .hero-signup-btn {
        width: 100%;
    }
}

/* Custom Checkbox Styles */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.checkbox-wrapper:hover .custom-checkbox {
    border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    margin-right: 0.75rem;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 0;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .custom-checkbox:after {
    display: block;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-700);
    text-align: start;
}

.checkbox-wrapper:hover .checkbox-text {
    color: var(--gray-900);
}