/* ===== CSS Variables - Design System ===== */
        :root {
            /* Couleurs principales avec dégradés riches */
            --color-primary: #c79fcd;
            --color-primary-dark: #b585bb;
            --color-primary-light: #e0c9e5;
            --color-accent: #9b6ba0;
            --color-accent-light: #d4b3d9;

            /* Gradients premium */
            --gradient-primary: linear-gradient(135deg, #d4a5db 0%, #b585bb 100%);
            --gradient-hero: linear-gradient(135deg, #f3e7f5 0%, #e8d5ec 50%, #dcc3e3 100%);
            --gradient-card: linear-gradient(145deg, #ffffff 0%, #faf8fb 100%);

            /* Typographie */
            --font-display: 'Poppins', sans-serif;
            --font-body: 'Inter', 'Nunito', sans-serif;
            --font-mono: 'SF Mono', 'Fira Code', monospace;

            /* Spacing system (8px base) */
            --space-xs: 0.25rem;   /* 4px */
            --space-sm: 0.5rem;    /* 8px */
            --space-md: 1rem;      /* 16px */
            --space-lg: 1.5rem;    /* 24px */
            --space-xl: 2rem;      /* 32px */
            --space-2xl: 3rem;     /* 48px */
            --space-3xl: 4rem;     /* 64px */

            /* Shadows premium */
            --shadow-sm: 0 2px 8px rgba(199, 159, 205, 0.08);
            --shadow-md: 0 4px 16px rgba(199, 159, 205, 0.12);
            --shadow-lg: 0 8px 32px rgba(199, 159, 205, 0.16);
            --shadow-xl: 0 16px 48px rgba(199, 159, 205, 0.24);
            --shadow-2xl: 0 24px 64px rgba(199, 159, 205, 0.32);

            /* Border radius */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;

            /* Transitions */
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

            /* Theme Colors - Light Mode (default) */
            --bg-primary: #f9f7f8;
            --bg-secondary: #ffffff;
            --bg-tertiary: #faf8fb;
            --text-primary: #2d2033;
            --text-secondary: #5e544d;
            --text-tertiary: #7a6c62;
            --border-color: #e8dce8;
            --border-light: #f3eff4;
        }

        [data-theme="dark"] {
            /* Theme Colors - Dark Mode */
            --bg-primary: #1a1625;
            --bg-secondary: #252033;
            --bg-tertiary: #2d2639;
            --text-primary: #e8e0ed;
            --text-secondary: #c4b8cf;
            --text-tertiary: #a394b0;
            --border-color: #3d3348;
            --border-light: #332c3d;

            /* Adjust gradients for dark mode */
            --gradient-hero: linear-gradient(135deg, #2d2639 0%, #3d3348 50%, #4a3854 100%);
            --gradient-card: linear-gradient(145deg, #252033 0%, #2d2639 100%);

            /* Adjust shadows for dark mode */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
            --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
            --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.7);
        }

        /* ===== Reset ===== */
        *{box-sizing:border-box;margin:0;padding:0}
        html,body{height:100%; overflow-x: hidden;}
        body{
            font-family: var(--font-body);
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height:100vh;
            width: 100%;
            -webkit-font-smoothing: antialiased;
            transition: background-color var(--transition-base), color var(--transition-base);
            -moz-osx-font-smoothing: grayscale;
            position: relative;
        }

        /* ===== Animated Background Premium (Couleurs claires) ===== */
        .animated-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .bg-shape {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.3;
            will-change: transform;
        }
        .bg-shape-1 {
            width: 600px;
            height: 600px;
            background: radial-gradient(circle at center, #f5ebf7 0%, rgba(245, 235, 247, 0) 70%);
            top: -200px;
            left: -200px;
            animation: floatShape1 25s ease-in-out infinite;
            transition: background var(--transition-base);
        }
        [data-theme="dark"] .bg-shape-1 {
            background: radial-gradient(circle at center, #3d2f47 0%, rgba(61, 47, 71, 0) 70%);
        }
        .bg-shape-2 {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle at center, #f0e5f3 0%, rgba(240, 229, 243, 0) 70%);
            bottom: -150px;
            right: -150px;
            animation: floatShape2 30s ease-in-out infinite;
            transition: background var(--transition-base);
        }
        [data-theme="dark"] .bg-shape-2 {
            background: radial-gradient(circle at center, #342840 0%, rgba(52, 40, 64, 0) 70%);
        }
        .bg-shape-3 {
            width: 450px;
            height: 450px;
            background: radial-gradient(circle at center, #ead9ee 0%, rgba(234, 217, 238, 0) 70%);
            top: 40%;
            left: 45%;
            animation: floatShape3 35s ease-in-out infinite;
            transition: background var(--transition-base);
        }
        [data-theme="dark"] .bg-shape-3 {
            background: radial-gradient(circle at center, #4a3854 0%, rgba(74, 56, 84, 0) 70%);
        }
        @keyframes floatShape1 {
            0%, 100% {
                transform: translate(0, 0);
            }
            50% {
                transform: translate(100px, -80px);
            }
        }
        @keyframes floatShape2 {
            0%, 100% {
                transform: translate(0, 0);
            }
            50% {
                transform: translate(-80px, 100px);
            }
        }
        @keyframes floatShape3 {
            0%, 100% {
                transform: translate(0, 0) rotate(0deg);
            }
            50% {
                transform: translate(60px, 60px) rotate(180deg);
            }
        }

        /* Assurer que le contenu est au-dessus du background */
        .header, .page, .footer, .bottom-nav, .modal {
            position: relative;
            z-index: 1;
        }

        /* ===== Animations Premium ===== */
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }
        @keyframes shimmer {
            0% { background-position: -1000px 0; }
            100% { background-position: 1000px 0; }
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        @keyframes scaleIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        @keyframes fadeInUp {
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes glow {
            0%, 100% { box-shadow: 0 0 20px rgba(199, 159, 205, 0.3); }
            50% { box-shadow: 0 0 40px rgba(199, 159, 205, 0.6); }
        }
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        @keyframes rotate3d {
            from { transform: perspective(1000px) rotateY(0deg); }
            to { transform: perspective(1000px) rotateY(360deg); }
        }

        /* ===== Header Premium avec Glassmorphism ===== */
        /* ===== Theme Toggle Button ===== */
        .theme-toggle {
            background: var(--bg-secondary);
            border: 2px solid var(--color-primary);
            border-radius: var(--radius-full);
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-sm);
            position: relative;
            overflow: hidden;
        }
        .theme-toggle::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-primary);
            opacity: 0;
            transition: opacity var(--transition-base);
        }
        .theme-toggle:hover {
            transform: scale(1.1) rotate(15deg);
            box-shadow: var(--shadow-md);
        }
        .theme-toggle:hover::before {
            opacity: 0.1;
        }
        .theme-icon {
            font-size: 22px;
            transition: transform var(--transition-base);
            position: relative;
            z-index: 1;
        }
        .theme-toggle:active .theme-icon {
            transform: rotate(180deg) scale(0.9);
        }

        .header{
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
            padding: var(--space-md) var(--space-xl);
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(199, 159, 205, 0.2);
            gap: var(--space-md);
            box-shadow: 0 4px 30px rgba(199, 159, 205, 0.1);
            position: sticky;
            top: 0;
            z-index: 2000;
            animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            transition: all var(--transition-base);
        }
        [data-theme="dark"] .header {
            background: rgba(37, 32, 51, 0.85);
            border-bottom-color: var(--border-color);
        }
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent 0%, #e0c9e5 20%, #c79fcd 50%, #e0c9e5 80%, transparent 100%);
            opacity: 0.6;
        }
        .header::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            pointer-events: none;
        }
        .logo{
            display:flex;
            align-items:center;
            gap:10px;
            font-weight:700;
            cursor:pointer;
            transition: transform 0.3s ease;
            font-family: 'Poppins', sans-serif;
            color: var(--color-primary);
        }
        .logo:hover {
            transform: scale(1.05);
        }
        .logo-icon{
            width:36px;
            height:36px;
            border-radius:8px;
            background:linear-gradient(135deg,#f9f7f8 0%,#f9f7f8 100%); /* Warm orange gradient */
            display:flex;
            align-items:center;
            justify-content:center;
            color:#fff;
            font-weight:700;
            box-shadow: 0 4px 15px #c79fcd;
            transition: all 0.3s ease;
        }
        .logo-icon:hover {
            box-shadow: 0 6px 25px #c79fcd;
            transform: rotate(5deg);
        }
        .nav{display:flex;align-items:center;gap:16px}
        .nav a{
            cursor:pointer;
            text-decoration:none;
            color: var(--text-secondary);
            font-size:15px;
            position: relative;
            padding: 4px 0;
            transition: color 0.3s ease;
            font-family: 'Open Sans', sans-serif;
            font-weight: 600;
        }
        .nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.3s ease;
        }
        .nav a:hover {
            color: var(--color-primary);
        }
        .nav a:hover::after {
            width: 100%;
        }
        .nav-buttons{display:flex;gap:8px}
        .btn{
            padding: 10px 20px;
            border-radius: var(--radius-md);
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all var(--transition-base);
            overflow: hidden;
            font-family: var(--font-display);
            position: relative;
            font-size: 15px;
        }
        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.25);
            transform: translate(-50%, -50%);
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 0;
        }
        .btn:hover::before {
            width: 300px;
            height: 300px;
        }
        .btn > * {
            position: relative;
            z-index: 1;
        }
        .btn-outline{
            background: var(--bg-secondary);
            backdrop-filter: blur(10px);
            border: 2px solid var(--color-primary);
            color: var(--color-primary);
            box-shadow: var(--shadow-sm);
        }
        .btn-outline:hover {
            border-color: var(--color-primary-dark);
            color: white;
            background: var(--gradient-primary);
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }
        .btn-primary{
            background: var(--gradient-primary);
            background-size: 200% auto;
            color: #fff;
            box-shadow: var(--shadow-md);
            border: none;
        }
        .btn-primary:hover {
            background-position: right center;
            box-shadow: var(--shadow-xl);
            transform: translateY(-2px) scale(1.02);
        }
        .btn:active {
            transform: translateY(0) scale(0.98);
        }
        .user-bubble{
            background:linear-gradient(135deg,#c79fcd,#c79fcd); /* Warm orange gradient */
            color:white;
            padding:7px 14px;
            border-radius:999px;
            font-weight:600;
            animation: scaleIn 0.3s ease-out;
            box-shadow: 0 4px 15px #c79fcd;
            transition: all 0.3s ease;
        }
        .user-bubble:hover {
            box-shadow: 0 6px 20px #c79fcd;
            transform: scale(1.05);
        }

        /* ===== Burger (mobile) ===== */
        .burger{
            display:none;
            width:40px;
            height:40px;
            border-radius: var(--radius-md);
            flex-direction: column;
            align-items:center;
            justify-content:center;
            gap: 5px;
            cursor:pointer;
            background: var(--gradient-card);
            border: 2px solid var(--border-color);
            transition: all var(--transition-base);
            position: relative;
            z-index: 2001;
            box-shadow: var(--shadow-sm);
            backdrop-filter: blur(10px);
        }
        .burger::before,
        .burger::after,
        .burger span {
            content: '';
            display: block;
            width: 22px;
            height: 2.5px;
            background: var(--color-primary);
            border-radius: 3px;
            transition: all var(--transition-base);
            position: relative;
        }
        .burger:hover {
            background: var(--color-primary-light);
            border-color: var(--color-primary);
            box-shadow: var(--shadow-md);
            transform: scale(1.05);
        }
        .burger:hover::before,
        .burger:hover::after,
        .burger:hover span {
            background: var(--color-primary-dark);
        }
        .burger.active {
            background: var(--color-primary);
            border-color: var(--color-primary-dark);
            gap: 0;
        }
        .burger.active::before {
            transform: translateY(2.5px) rotate(45deg);
            background: white;
        }
        .burger.active span {
            opacity: 0;
            transform: scale(0);
        }
        .burger.active::after {
            transform: translateY(-2.5px) rotate(-45deg);
            background: white;
        }

        /* Menu mobile fullscreen overlay */
        .nav-mobile{
            display:none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: linear-gradient(135deg, rgba(199, 159, 205, 0.98) 0%, rgba(181, 133, 187, 0.98) 100%);
            backdrop-filter: blur(20px);
            flex-direction:column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            padding: 80px 20px 20px;
            z-index: 2000;
            opacity: 0;
            pointer-events: none;
            transition: all var(--transition-base);
            transform: translateY(-20px);
        }
        .nav-mobile.active {
            opacity: 1;
            pointer-events: all;
            transform: translateY(0);
            animation: slideDown 0.4s ease-out;
        }
        .nav-mobile a {
            color: white;
            font-size: 20px;
            font-weight: 600;
            text-decoration: none;
            padding: 16px 28px;
            border-radius: var(--radius-lg);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            width: 85%;
            max-width: 320px;
            text-align: center;
            transition: all var(--transition-base);
            font-family: var(--font-display);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        .nav-mobile a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            transition: left var(--transition-base);
        }
        .nav-mobile a:hover::before {
            left: 0;
        }
        .nav-mobile a:hover,
        .nav-mobile a:active {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }
        .nav-mobile a:nth-child(1) {
            animation-delay: 0.1s;
        }
        .nav-mobile a:nth-child(2) {
            animation-delay: 0.15s;
        }
        .nav-mobile a:nth-child(3) {
            animation-delay: 0.2s;
        }
        .nav-mobile a:nth-child(4) {
            animation-delay: 0.25s;
        }
        .nav-mobile a:nth-child(5) {
            animation-delay: 0.3s;
        }

        /* Bottom Navigation Bar pour mobile */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
            z-index: 1999;
            box-shadow: 0 -4px 20px rgba(199, 159, 205, 0.15);
            backdrop-filter: blur(10px);
            transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
        }
        .bottom-nav-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 600px;
            margin: 0 auto;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 12px;
            cursor: pointer;
            transition: all var(--transition-base);
            flex: 1;
            color: var(--text-tertiary);
            text-decoration: none;
            font-size: 11px;
            font-weight: 600;
            min-width: 60px;
            border-radius: var(--radius-sm);
        }
        .bottom-nav-item .icon {
            font-size: 22px;
            transition: transform var(--transition-bounce);
            filter: grayscale(0.3);
        }
        .bottom-nav-item.active {
            color: var(--color-primary);
        }
        .bottom-nav-item.active .icon {
            transform: scale(1.15);
            filter: grayscale(0);
        }
        .bottom-nav-item:active {
            transform: scale(0.92);
            background: var(--bg-tertiary);
        }
        .bottom-nav-item:hover {
            color: var(--color-primary-dark);
        }

        /* ===== Hero Premium avec effet wow ===== */
        .hero{
            padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
            background: var(--gradient-hero);
            background-size: 400% 400%;
            animation: heroGradientShift 15s ease infinite, fadeIn 0.8s ease-out;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: background var(--transition-base);
        }
        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(199, 159, 205, 0.15) 0%, transparent 70%);
            animation: heroRotate 30s linear infinite;
            pointer-events: none;
        }
        [data-theme="dark"] .hero::before {
            background: radial-gradient(circle, rgba(139, 107, 148, 0.15) 0%, transparent 70%);
        }
        @keyframes heroGradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes heroRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .hero h1{
            font-size: 56px;
            margin-bottom: var(--space-md);
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-accent) 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: slideUp 0.6s ease-out, gradientShift 8s ease infinite;
            font-family: var(--font-display);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -0.02em;
            position: relative;
            z-index: 1;
        }
        .hero p{
            color: var(--text-secondary);
            font-size: 20px;
            margin-bottom: var(--space-2xl);
            animation: slideUp 0.7s ease-out;
            font-family: var(--font-body);
            font-weight: 500;
            line-height: 1.6;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            position: relative;
            z-index: 1;
        }
        .hero-buttons{
            display: flex;
            gap: var(--space-lg);
            justify-content: center;
            animation: slideUp 0.8s ease-out;
            position: relative;
            z-index: 1;
        }
        .btn-trouve{
            background: var(--bg-secondary);
            backdrop-filter: blur(10px);
            border: 2px solid var(--color-primary);
            color: var(--color-primary);
            padding: 16px 32px;
            border-radius: var(--radius-lg);
            cursor: pointer;
            font-weight: 700;
            transition: all var(--transition-base);
            font-family: var(--font-display);
            font-size: 16px;
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
        }
        .btn-trouve::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: var(--gradient-primary);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
            z-index: -1;
        }
        .btn-trouve:hover::before {
            width: 300px;
            height: 300px;
        }
        .btn-trouve:hover {
            color: white;
            border-color: transparent;
            transform: translateY(-3px);
            box-shadow: var(--shadow-xl);
        }
        .btn-ajoute{
            background: var(--gradient-primary);
            background-size: 200% auto;
            color: #fff;
            padding: 16px 32px;
            border-radius: var(--radius-lg);
            border: none;
            cursor: pointer;
            font-weight: 700;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-lg);
            font-family: var(--font-display);
            font-size: 16px;
            position: relative;
            overflow: hidden;
        }
        .btn-ajoute::after {
            content: '';
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%) translateX(0);
            transition: transform var(--transition-base);
            font-size: 20px;
        }
        .btn-ajoute:hover {
            background-position: right center;
            box-shadow: var(--shadow-2xl);
            transform: translateY(-3px) scale(1.02);
        }
        .btn-ajoute:hover::after {
            transform: translateY(-50%) translateX(5px);
        }

        /* ===== Map ===== */
        .map-container{
            width:100%;
            height:450px;
            border-top:3px solid transparent;
            border-image:(#f9f7f8); /* Similaire Background */
            border-image-slice:1;
            overflow: hidden;
            /*box-shadow: 0 8px 30px rgba(0,0,0,0.1);*/
        }
        .map-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
            animation: shimmer 3s infinite;
            z-index: 10;
        }
        #map,#mapFullscreen{
            width:100%;
            height:100%;
            animation: fadeIn 1s ease-out;
        }
        .fullscreen-map{width:100%;height:calc(100vh - 60px)}

        /* ===== Pages ===== */
        .page{display:none}
        .page.active{
            display:block;
            animation: fadeIn 0.5s ease-out;
        }
        .courts-list-page{
            padding:35px 20px;
            max-width:1200px;
            margin:0 auto;
            animation: fadeIn 0.6s ease-out;
        }
        .court-list-item{
            display:flex;
            justify-content:space-between;
            align-items:center;
            padding:18px;
            border-radius:15px;
            background: var(--bg-secondary);
            border:1px solid var(--border-light);
            margin-bottom:15px;
            transition: all 0.3s ease;
            animation: slideUp 0.4s ease-out;
            animation-fill-mode: both;
            box-shadow: var(--shadow-md);
            color: var(--text-primary);
        }
        .court-list-item:hover {
            transform: translateX(8px);
            box-shadow: var(--shadow-lg);
            border-color: var(--color-primary);
        }
        .view-map-btn{
            padding:9px 16px;
            border-radius:10px;
            border:none;
            cursor:pointer;
            background: var(--gradient-primary);
            color:white;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
            font-family: 'Nunito', sans-serif;
        }
        .view-map-btn:hover {
            box-shadow: var(--shadow-lg);
            transform: scale(1.05);
        }

        /* ===== Courts Page Search Bar ===== */
        .search-container {
            margin-bottom: 30px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        #courtSearchInput {
            width: 100%;
            padding: 14px 20px;
            font-size: 16px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            font-family: 'Open Sans', sans-serif;
            color: var(--text-secondary);
            background-color: var(--bg-secondary);
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }

        #courtSearchInput::placeholder {
            color: var(--text-tertiary);
        }

        #courtSearchInput:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: var(--shadow-md);
        }

        /* ===== Chat ===== */
        .chat-page{
            display:flex;
            height:calc(100vh - 60px);
            background: var(--bg-primary);
            transition: background-color var(--transition-base);
        }
        .chat-sidebar{
            width:300px;
            background: var(--bg-secondary);
            border-right:1px solid var(--border-light);
            overflow:auto;
            animation: slideDown 0.5s ease-out;
            transition: background-color var(--transition-base), border-color var(--transition-base);
        }
        .chat-contact {
            padding: 18px;
            border-bottom: 1px solid var(--border-light);
            cursor: pointer;
            transition: background 0.3s ease;
            font-family: 'Open Sans', sans-serif;
            color: var(--text-secondary);
        }
        .chat-contact:hover {
            background: var(--bg-tertiary);
        }
        .chat-contact.active {
            background: var(--bg-tertiary);
            border-left: 3px solid var(--color-primary);
        }
        .chat-main{
            flex:1;
            display:flex;
            flex-direction:column;
            animation: fadeIn 0.6s ease-out;
        }

        .chat-header {
            padding: 20px;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-light);
            transition: background-color var(--transition-base), border-color var(--transition-base);
        }

        .chat-header h3 {
            margin: 0;
            color: var(--text-primary);
            font-size: 20px;
            font-weight: 700;
        }

        .chat-header p {
            color: var(--text-tertiary);
            font-size: 14px;
            margin-top: 4px;
            margin-bottom: 0;
        }
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
            background: var(--bg-primary);
            display: flex;
            flex-direction: column;
            gap: 15px;
            transition: background-color var(--transition-base);
        }
        .message {
            display: flex;
            flex-direction: column;
            max-width: 70%;
            animation: slideUp 0.3s ease-out;
            font-family: 'Open Sans', sans-serif;
        }
        .message-sent {
            align-self: flex-end;
            align-items: flex-end;
        }
        .message-author {
            font-size: 13px;
            color: var(--text-tertiary);
            margin-bottom: 5px;
            font-weight: 600;
        }
        .message-bubble {
            padding: 12px 16px;
            border-radius: 15px;
            background: var(--bg-secondary);
            box-shadow: var(--shadow-sm);
            word-wrap: break-word;
            color: var(--text-primary);
        }
        .message-sent .message-bubble {
            background: var(--gradient-primary);
            color: white;
        }
        .message-time {
            font-size: 12px;
            color: var(--text-tertiary);
            margin-top: 5px;
        }
        .chat-input-container {
            padding: 18px;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-light);
            transition: background-color var(--transition-base), border-color var(--transition-base);
        }

        #chatInput {
            flex: 1;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            transition: all var(--transition-base);
        }

        #chatInput:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px var(--shadow-color);
        }

        #chatForm {
            display: flex;
            gap: 8px;
            width: 100%;
        }

        /* ===== Forms, modals ===== */
        .form-page{
            padding:35px 20px;
            max-width:750px;
            margin:0 auto;
            background: var(--bg-secondary);
            min-height:calc(100vh - 60px);
            animation: fadeIn 0.5s ease-out;
            border-radius: 15px;
            box-shadow: var(--shadow-lg);
            transition: background-color var(--transition-base);
        }
        .form-group{
            margin-bottom:20px;
            animation: slideUp 0.4s ease-out;
            animation-fill-mode: both;
        }
        .form-group:nth-child(1) { animation-delay: 0s; }
        .form-group:nth-child(2) { animation-delay: 0s; }
        .form-group:nth-child(3) { animation-delay: 0s; }
        .form-group:nth-child(4) { animation-delay: 0s; }
        .form-group label{
            display:block;
            margin-bottom:10px;
            font-weight:700;
            color: var(--text-primary);
            font-family: 'Nunito', sans-serif;
            font-size: 16px;
        }
        .form-group input,.form-group select,.form-group textarea{
            width: 100%;
            padding: var(--space-lg);
            border: 2px solid var(--border-color);
            border-radius: var(--radius-md);
            font-size: 16px;
            transition: all var(--transition-base);
            font-family: var(--font-body);
            color: var(--text-primary);
            background: var(--bg-secondary);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow-sm);
        }
        .form-group input:hover,.form-group select:hover,.form-group textarea:hover{
            border-color: var(--color-primary-light);
            box-shadow: var(--shadow-md);
        }
        .form-group input:focus,.form-group select:focus,.form-group textarea:focus{
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 4px rgba(199, 159, 205, 0.15), var(--shadow-md);
            transform: translateY(-1px);
        }
        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }
        .submit-btn{
            width: 100%;
            padding: var(--space-lg);
            border-radius: var(--radius-lg);
            border: none;
            background: var(--gradient-primary);
            background-size: 200% auto;
            color: #fff;
            font-weight: 700;
            cursor: pointer;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-lg);
            font-family: var(--font-display);
            font-size: 17px;
            min-height: 52px;
            position: relative;
            overflow: hidden;
        }
        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
        }
        .submit-btn:hover::before {
            width: 400px;
            height: 400px;
        }
        .submit-btn:hover {
            background-position: right center;
            box-shadow: var(--shadow-2xl);
            transform: translateY(-3px) scale(1.01);
        }
        .submit-btn:active {
            transform: translateY(-1px) scale(0.99);
        }

        .modal{
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(61, 52, 46, 0.6);
            z-index: 2500;
            align-items: center;
            justify-content: center;
            padding: var(--space-xl);
            backdrop-filter: blur(16px) saturate(180%);
            -webkit-backdrop-filter: blur(16px) saturate(180%);
        }
        .modal.active{
            display: flex;
            animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .modal-content{
            background: var(--gradient-card);
            border-radius: var(--radius-xl);
            max-width: 780px;
            width: 100%;
            max-height: 90vh;
            overflow: auto;
            animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(199, 159, 205, 0.1);
            border: 1px solid var(--border-light);
            position: relative;
            transition: background var(--transition-base), border-color var(--transition-base);
        }
        .modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        }
        .modal-header{
            padding: var(--space-xl);
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-tertiary);
            backdrop-filter: blur(10px);
            font-family: var(--font-display);
            font-weight: 700;
            color: var(--color-primary-dark);
            font-size: 22px;
            position: sticky;
            top: 0;
            z-index: 10;
            transition: background-color var(--transition-base), border-color var(--transition-base);
        }
        .modal-header h2 {
            position: relative;
            display: inline-block;
        }
        .modal-header h2::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: var(--radius-full);
        }
        .modal-body{
            padding: var(--space-2xl);
            font-family: var(--font-body);
            color: var(--text-primary);
        }
        .close-btn{
            background: var(--bg-tertiary);
            backdrop-filter: blur(10px);
            border: 1px solid var(--border-color);
            font-size: 24px;
            cursor: pointer;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            transition: all var(--transition-base);
            color: var(--color-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-sm);
        }
        .close-btn:hover {
            background: var(--gradient-primary);
            border-color: transparent;
            transform: rotate(90deg) scale(1.1);
            color: white;
            box-shadow: var(--shadow-md);
        }
        .close-btn:active {
            transform: rotate(90deg) scale(0.95);
        }

        /* ===== About / stats ===== */
        .about-page{
            padding:35px 20px;
            max-width:950px;
            margin:0 auto;
            background: var(--bg-secondary);
            animation: fadeIn 0.5s ease-out;
            border-radius: 15px;
            box-shadow: var(--shadow-lg);
            font-family: 'Open Sans', sans-serif;
            color: var(--text-secondary);
            transition: background-color var(--transition-base), color var(--transition-base);
        }

        /* ===== Tinder-like Swipe System ===== */
        .tinder-container {
            max-width: 500px;
            margin: 0 auto;
            padding: var(--space-xl);
            min-height: calc(100vh - 60px);
            display: flex;
            flex-direction: column;
            gap: var(--space-xl);
        }

        .tinder-header {
            text-align: center;
            animation: fadeIn 0.6s ease-out;
        }

        .tinder-header h1 {
            font-size: 32px;
            font-weight: 800;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: var(--space-sm);
            font-family: var(--font-display);
        }

        .tinder-header p {
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 500;
        }

        /* Cards wrapper */
        .tinder-cards-wrapper {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 500px;
        }

        .tinder-cards {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Individual card */
        .tinder-card {
            position: absolute;
            width: 100%;
            max-width: 400px;
            height: 500px;
            background: var(--gradient-card);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-2xl);
            overflow: hidden;
            cursor: grab;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
            user-select: none;
            animation: cardAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .tinder-card:active {
            cursor: grabbing;
        }

        .tinder-card.removing {
            transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease;
        }

        @keyframes cardAppear {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(50px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .tinder-card-image {
            width: 100%;
            height: 60%;
            background: linear-gradient(135deg, #e0c9e5, #d4b3d9);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 80px;
            position: relative;
            overflow: hidden;
        }

        .tinder-card-image::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
        }

        .tinder-card-info {
            padding: var(--space-xl);
            height: 40%;
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
        }

        .tinder-card-name {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            font-family: var(--font-display);
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }

        .tinder-card-age {
            font-size: 24px;
            font-weight: 400;
            color: var(--text-tertiary);
        }

        .tinder-card-sport {
            display: inline-flex;
            align-items: center;
            gap: var(--space-xs);
            padding: 6px 12px;
            background: rgba(199, 159, 205, 0.1);
            border-radius: var(--radius-full);
            font-size: 14px;
            font-weight: 600;
            color: var(--color-primary);
        }

        .tinder-card-bio {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* Swipe indicators */
        .tinder-like-indicator,
        .tinder-nope-indicator {
            position: absolute;
            top: 50px;
            font-size: 60px;
            font-weight: 800;
            padding: 20px 30px;
            border-radius: var(--radius-lg);
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
            z-index: 10;
            text-transform: uppercase;
            font-family: var(--font-display);
        }

        .tinder-like-indicator {
            right: 30px;
            color: #4caf50;
            border: 4px solid #4caf50;
            transform: rotate(20deg);
        }

        .tinder-nope-indicator {
            left: 30px;
            color: #f44336;
            border: 4px solid #f44336;
            transform: rotate(-20deg);
        }

        /* Action buttons */
        .tinder-actions {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: var(--space-lg);
            padding: var(--space-lg) 0;
        }

        .tinder-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-base);
            box-shadow: var(--shadow-lg);
            position: relative;
            overflow: hidden;
        }

        .tinder-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: scale(0);
            transition: transform 0.4s ease;
        }

        .tinder-btn:hover::before {
            transform: scale(1);
        }

        .tinder-btn:active {
            transform: scale(0.95);
        }

        .tinder-btn-nope {
            background: linear-gradient(135deg, #ff6b6b, #f44336);
            width: 70px;
            height: 70px;
        }

        .tinder-btn-nope:hover {
            box-shadow: 0 8px 32px rgba(244, 67, 54, 0.4);
            transform: scale(1.1);
        }

        .tinder-btn-info {
            background: linear-gradient(135deg, #64b5f6, #2196f3);
            width: 55px;
            height: 55px;
        }

        .tinder-btn-info:hover {
            box-shadow: 0 8px 32px rgba(33, 150, 243, 0.4);
            transform: scale(1.1);
        }

        .tinder-btn-like {
            background: linear-gradient(135deg, #66bb6a, #4caf50);
            width: 70px;
            height: 70px;
        }

        .tinder-btn-like:hover {
            box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4);
            transform: scale(1.1);
        }

        .tinder-icon {
            font-size: 28px;
            color: white;
            font-weight: 700;
            position: relative;
            z-index: 1;
        }

        /* Matches section */
        .tinder-matches {
            padding: var(--space-lg);
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(10px);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
        }

        .tinder-matches h3 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: var(--space-md);
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            font-family: var(--font-display);
        }

        .match-badge {
            background: var(--gradient-primary);
            color: white;
            padding: 4px 12px;
            border-radius: var(--radius-full);
            font-size: 14px;
            font-weight: 600;
        }

        .matches-list {
            display: flex;
            gap: var(--space-md);
            overflow-x: auto;
            padding: var(--space-sm) 0;
        }

        .match-item {
            flex-shrink: 0;
            width: 80px;
            text-align: center;
            cursor: pointer;
            transition: transform var(--transition-base);
        }

        .match-item:hover {
            transform: scale(1.05);
        }

        .match-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            box-shadow: var(--shadow-md);
            border: 3px solid var(--bg-secondary);
            margin-bottom: var(--space-xs);
        }

        .match-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
        }
        .about-stats{
            display:grid;
            grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
            gap:20px;
            margin-top:30px;
        }
        .stat-card{
            padding:25px;
            border-radius:15px;
            background:linear-gradient(135deg,#c79fcd 0%,#c79fcd 100%); /* Warm orange gradient */
            color:#fff;
            text-align:center;
            transition: all 0.3s ease;
            animation: scaleIn 0.5s ease-out;
            animation-fill-mode: both;
            box-shadow: 0 4px 18px #c79fcd;
        }
        .stat-card:nth-child(1) { animation-delay: 0.1s; }
        .stat-card:nth-child(2) { animation-delay: 0.2s; }
        .stat-card:nth-child(3) { animation-delay: 0.3s; } /* Added for more cards */
        .stat-card:hover {
            transform: translateY(-8px) scale(1.03);
            box-shadow: 0 10px 35px #c79fcd;
        }
        .stat-number {
            font-size: 36px;
            font-weight: 800;
            margin-bottom: 10px;
            font-family: 'Poppins', sans-serif;
        }
        .stat-card p {
            font-size: 16px;
            font-weight: 600;
        }

        /* ===== Footer ===== */
        .footer{
            background: var(--bg-secondary);
            padding:35px 20px;
            border-top:1px solid var(--border-light);
            margin-top:25px;
            animation: fadeIn 1s ease-out;
            font-family: 'Open Sans', sans-serif;
            color: var(--text-tertiary);
            font-size: 14px;
            transition: background-color var(--transition-base), border-color var(--transition-base);
        }

        /* ===== GPS Loading Indicator ===== */
        .gps-loading {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 3px solid rgba(255,140,66,0.3); /* Warm orange with transparency */
            border-top-color: #c79fcd; /* Warm orange */
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ===== Accessibility focus ===== */
        a:focus,button:focus,input:focus,select:focus,textarea:focus{
            outline:3px solid rgba(255,140,66,0.35); /* Warm orange with transparency */
            outline-offset:3px;
        }

        /* ===== Responsive ===== */
        @media (max-width: 960px){
            .nav{display:none}
            .burger{display:flex}
            .nav-mobile{display:flex}
            .bottom-nav{display:block}

            /* Chat responsive sur mobile/tablette */
            .chat-page {
                flex-direction: column;
                height: calc(100vh - 60px - 70px); /* Header + Bottom nav */
            }
            .chat-sidebar {
                width: 100%;
                height: auto;
                max-height: 200px;
                border-right: none;
                border-bottom: 1px solid var(--border-light);
                overflow-y: auto;
            }
            .chat-main {
                flex: 1;
                min-height: 0; /* Important pour le flex */
            }
            .chat-messages {
                flex: 1;
                min-height: 0; /* Important pour le scroll */
            }

            .hero h1{font-size:40px}
            .map-container{height:350px}

            /* Ajuster le padding bottom pour la bottom nav */
            .page {
                padding-bottom: 80px;
            }

            /* Header plus compact sur mobile */
            .header {
                padding: 10px 16px;
                gap: 8px;
            }

            /* Zone d'authentification responsive sur mobile */
            #authArea {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                justify-content: flex-end;
                max-width: 50%;
            }

            /* Boutons auth plus compacts sur mobile */
            .btn {
                padding: 8px 12px;
                font-size: 13px;
                white-space: nowrap;
            }

            /* User bubble plus compact sur mobile */
            .user-bubble {
                padding: 6px 10px;
                font-size: 13px;
                max-width: 100px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
        }

        @media (max-width: 600px) {
            /* Header encore plus compact sur très petit écran */
            .header {
                padding: 8px 12px;
                gap: 6px;
            }

            /* Auth area ultra-compact */
            #authArea {
                max-width: 60%;
                gap: 4px;
            }

            .btn {
                padding: 6px 10px;
                font-size: 12px;
            }

            .user-bubble {
                padding: 5px 8px;
                font-size: 12px;
                max-width: 80px;
            }

            /* ===== PERFORMANCE OPTIMIZATIONS FOR MOBILE ===== */
            /* Désactive les animations gourmandes sur mobile */
            .animated-background,
            .bg-shape {
                display: none !important;
            }

            /* Réduit les effets de backdrop-filter (gourmand en GPU) */
            .header {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(255, 255, 255, 0.95);
            }

            [data-theme="dark"] .header {
                background: rgba(37, 32, 51, 0.95);
            }

            /* Désactive les transitions complexes */
            .btn::before {
                transition: none;
            }

            /* Simplifie les ombres */
            .card, .court-card, .btn {
                box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
            }

            /* Burger plus compact sur mobile */
            .burger {
                width: 36px;
                height: 36px;
                gap: 4px;
            }
            .burger::before,
            .burger::after,
            .burger span {
                width: 20px;
                height: 2px;
            }
            .burger.active {
                gap: 0;
            }
            .burger.active::before {
                transform: translateY(2px) rotate(45deg);
            }
            .burger.active::after {
                transform: translateY(-2px) rotate(-45deg);
            }

            /* Menu mobile plus compact */
            .nav-mobile {
                padding: 70px 16px 20px;
                gap: 12px;
            }
            .nav-mobile a {
                font-size: 18px;
                padding: 14px 24px;
                width: 90%;
                max-width: 280px;
            }

            /* Hero compact sur mobile */
            .hero {
                padding: 20px 12px 18px;
                text-align: center;
            }
            .hero h1 {
                font-size: 22px;
                margin-bottom: 6px;
            }
            .hero p {
                font-size: 13px;
                margin-bottom: 14px;
            }
            .hero-buttons {
                flex-direction: column;
                align-items: center;
                gap: 10px;
                padding: 0 20px;
            }
            .btn-trouve, .btn-ajoute {
                max-width: 280px;
                width: 100%;
                padding: 12px 20px;
                font-size: 14px;
                min-height: 44px;
            }

            /* Header ultra compact */
            .header {
                padding: 8px 10px;
            }
            .logo img {
                max-height: 22px !important;
            }

            /* Chat optimisé mobile */
            .chat-page {
                height: calc(100vh - 50px - 65px); /* Header réduit + Bottom nav réduite */
            }
            .chat-sidebar {
                max-height: 150px;
            }
            .chat-contact {
                padding: 12px;
                font-size: 13px;
            }
            .chat-header {
                padding: 12px;
            }
            .chat-header h3 {
                font-size: 16px;
            }
            .chat-header p {
                font-size: 12px;
            }
            .chat-messages {
                padding: 10px;
                gap: 10px;
            }
            .message {
                max-width: 90%;
                font-size: 13px;
            }
            .message-author {
                font-size: 11px;
            }
            .message-bubble {
                padding: 8px 12px;
                border-radius: 10px;
                font-size: 13px;
            }
            .message-time {
                font-size: 10px;
            }
            .chat-input-container {
                padding: 10px;
            }
            #chatInput {
                font-size: 14px !important;
                padding: 10px !important;
            }

            /* Forms optimisés mobile */
            .form-page, .about-page {
                padding: 16px 12px 70px;
                margin: 0;
                border-radius: 0;
                min-height: calc(100vh - 60px);
            }
            .form-page h1,
            .about-page h1 {
                font-size: 22px;
                margin-bottom: 14px;
            }
            .form-group {
                margin-bottom: 16px;
            }
            .form-group label {
                font-size: 13px;
                margin-bottom: 6px;
            }
            .form-group input,
            .form-group select,
            .form-group textarea {
                padding: 12px;
                font-size: 14px;
                border-radius: 10px;
            }

            /* Modals fullscreen sur mobile */
            .modal {
                padding: 0;
                align-items: flex-start;
            }
            .modal-content {
                max-width: 100%;
                max-height: 100vh;
                height: 100vh;
                border-radius: 0;
                margin: 0;
            }
            .modal-header {
                padding: 12px;
                font-size: 16px;
            }
            .modal-body {
                padding: 20px 16px;
                padding-bottom: 60px;
            }

            /* Stats cards */
            .stat-card {
                padding: 14px;
            }
            .stat-number {
                font-size: 24px;
            }

            /* Courts section */
            .courts-section {
                padding: 24px 12px 50px;
            }
            .courts-section h2 {
                font-size: 20px;
            }

            /* Courts cards */
            .court-card {
                padding: 12px;
            }
            .court-card .icon {
                font-size: 28px;
                margin-bottom: 6px;
            }
            .court-card h3 {
                font-size: 14px;
                margin-bottom: 3px;
            }
            .court-card div {
                font-size: 12px;
            }

            /* Courts list optimisée */
            .courts-list-page {
                padding: 16px 12px 70px;
            }
            .courts-list-page h1 {
                font-size: 22px;
                margin-bottom: 12px;
            }
            .search-container {
                margin-bottom: 14px;
            }
            #courtSearchInput {
                padding: 12px;
                font-size: 14px;
                border-radius: 10px;
            }
            .court-list-item {
                padding: 12px;
                margin-bottom: 10px;
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }
            .court-list-item h3 {
                font-size: 15px;
            }
            .view-map-btn, .btn-rate {
                width: 100%;
                padding: 10px;
                min-height: 40px;
                font-size: 13px;
            }

            /* Map container */
            .map-container {
                height: 250px;
            }
            .fullscreen-map {
                height: calc(100vh - 60px - 70px);
            }

            /* Tinder Cards */
            .tinder-header h1 {
                font-size: 22px;
            }
            .tinder-header p {
                font-size: 13px;
            }
            .tinder-card {
                max-width: 92%;
            }
            .tinder-card-name {
                font-size: 20px;
            }
            .tinder-card-sport {
                font-size: 12px;
                padding: 5px 10px;
            }
            .tinder-card-bio {
                font-size: 13px;
            }
        }


           /* ===== Section "Les Courts proche de toi" (grille horizontale) ===== */
.courts-section {
  background: transparent;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.courts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.courts-section h2 {
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient-primary);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  animation: gradientShift 8s ease infinite;
}

.courts-section p {
  color: #5e544d;
  margin-bottom: var(--space-3xl);
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grille horizontale fluide */
.courts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Carte de terrain avec Glassmorphism Premium */
.court-card {
  flex: 0 1 calc(25% - 28px);
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(199, 159, 205, 0.2);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  position: relative;
  min-width: 240px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  will-change: transform;
}

.court-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(199, 159, 205, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.court-card:hover::before {
  opacity: 1;
  animation: rotate3d 20s linear infinite;
}

.court-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary-light);
}

/* Icône ballon avec effet 3D */
.court-card .icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
  color: #ff6b6b;
  background: linear-gradient(135deg, #fff0ed 0%, #ffe5e5 100%);
  padding: var(--space-lg);
  border-radius: 50%;
  box-shadow: var(--shadow-md), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: all var(--transition-bounce);
  position: relative;
  z-index: 1;
}
.court-card .icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.court-card:hover .icon::before {
  opacity: 1;
}
.court-card:hover .icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--shadow-xl), inset 0 2px 8px rgba(255, 255, 255, 0.7);
  animation: bounce 0.6s ease;
}


/* Texte */
.court-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: 'Nunito', sans-serif;
}

.court-card div {
  font-size: 15px;
  color: var(--text-secondary);
  font-family: 'Open Sans', sans-serif;
}

/* Animation d'apparition */
.court-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s forwards;
}
.court-card:nth-child(1) { animation-delay: 0.1s; }
.court-card:nth-child(2) { animation-delay: 0.2s; }
.court-card:nth-child(3) { animation-delay: 0.3s; }
.court-card:nth-child(4) { animation-delay: 0.4s; }
.court-card:nth-child(5) { animation-delay: 0.5s; }
.court-card:nth-child(6) { animation-delay: 0.6s; }
.court-card:nth-child(7) { animation-delay: 0.7s; }
.court-card:nth-child(8) { animation-delay: 0.8s; }


/* ===== Responsive Courts Grid ===== */
@media (max-width: 1080px) {
  .courts-grid {
    gap: 20px;
  }
  .court-card {
    flex: 0 1 calc(33.33% - 20px); /* 3 cartes par ligne */
    min-width: 200px;
  }
}
@media (max-width: 768px) {
  .courts-section {
    padding: 30px 12px;
  }
  .courts-section h2 {
    font-size: 24px;
  }
  .courts-section p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .courts-grid {
    gap: 12px;
  }
  .court-card {
    flex: 0 1 calc(33.33% - 12px); /* 3 cartes par ligne */
    padding: 16px 12px;
    min-width: unset;
  }
  .court-card .icon {
    font-size: 34px;
    padding: 14px;
  }
  .court-card h3 {
    font-size: 14px;
  }
  .court-card div {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .courts-section h2 {
    font-size: 20px;
  }
  .courts-section p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .courts-grid {
    gap: 10px;
    padding: 0 8px;
  }
  .court-card {
    flex: 0 1 calc(50% - 10px); /* 2 cartes par ligne sur très petit écran */
    min-width: unset;
    padding: 14px 10px;
  }
  .court-card .icon {
    font-size: 32px;
    padding: 12px;
    margin-bottom: 8px;
  }
  .court-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .court-card div {
    font-size: 11px;
  }
}

/* ======================================= */
/* ===== NOUVEAUX STYLES POUR LES AVIS ===== */
/* ======================================= */

/* Conteneur pour l'affichage des ballons de notation */
.rating-display {
    display: flex;
    gap: 2px;
    font-size: 16px; /* Taille des ballons */
    margin-top: 5px;
    align-items: center;
}

/* Style pour un ballon de notation */
.rating-ball {
    transition: all 0.2s ease;
    filter: grayscale(0);
}

/* Style pour un ballon vide (non rempli) */
.rating-ball.empty {
    opacity: 0.25;
    filter: grayscale(1);
}

/* Style pour un ballon de notation "rempli" */
.rating-ball.filled {
    opacity: 1;
    filter: grayscale(0);
    text-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

/* Texte à côté des ballons (ex: "(4.5) 12 avis") */
.rating-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: 600;
}

/* Conteneur pour la saisie de la note dans le modal */
.rating-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

/* Style des ballons cliquables dans le modal */
.rating-input .rating-ball {
    font-size: 40px;
    cursor: pointer;
    transition: all var(--transition-base);
}

/* États des ballons dans le modal */
.rating-input .rating-ball.empty {
    opacity: 0.3;
    filter: grayscale(1);
}

.rating-input .rating-ball.filled {
    opacity: 1;
    filter: grayscale(0);
    text-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

/* Effet au survol : le ballon grossit */
.rating-input .rating-ball:hover {
    transform: scale(1.25);
}

/* Effet de survol intelligent : tous les ballons jusqu'à celui survolé deviennent filled */
.rating-input .rating-ball:hover,
.rating-input .rating-ball:hover ~ .rating-ball {
    opacity: 1;
    filter: grayscale(0);
}
.rating-input .rating-ball:hover ~ .rating-ball {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Style pour le bouton "Noter" sur la liste des terrains */
.btn-rate {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #c79fcd;
    background: transparent;
    color: #c79fcd;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-rate:hover {
    background: #c79fcd;
    color: white;
    box-shadow: 0 4px 12px rgba(199, 159, 205, 0.4);
}

/* Styles pour les popups Leaflet personnalisés */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.6;
}

/* ===== Attribution (watermark) stylisée et discrète ===== */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    opacity: 0.5 !important;
    transition: opacity 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-attribution:hover {
    opacity: 1 !important;
}

.leaflet-control-attribution a {
    color: var(--color-text-secondary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

/* Mode sombre pour l'attribution */
[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(40, 35, 50, 0.7) !important;
}

[data-theme="dark"] .leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

/* Si vous voulez vraiment la cacher complètement (non recommandé légalement) */
/* Décommentez la ligne ci-dessous */
/* .leaflet-control-attribution { display: none !important; } */

/* Animation hover pour le bouton Google Maps dans le popup */
.leaflet-popup-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5) !important;
}

