/**
 * Francedantan - Styles principaux
 * Site public
 */

/* =====================================================
   VARIABLES & RESET
   ===================================================== */
:root {
    /* Mode sombre par défaut */
    --color-bg: #0a0a0b;
    --color-bg-elevated: #141416;
    --color-bg-card: #1a1a1e;
    --color-border: #2a2a2e;
    --color-text: #f5f5f7;
    --color-text-muted: #8e8e93;
    --color-accent: #d4a853;
    --color-accent-hover: #e6bc6a;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Mode clair - Spécificité renforcée pour Chrome avec !important */
html[data-theme="light"],
:root[data-theme="light"] {
    --color-bg: #ffffff !important;
    --color-bg-elevated: #f5f5f7 !important;
    --color-bg-card: #ffffff !important;
    --color-border: #e5e5e7 !important;
    --color-text: #1d1d1f !important;
    --color-text-muted: #6e6e73 !important;
    --color-accent: #c4973b !important;
    --color-accent-hover: #d4a853 !important;
}

/* Détection préférence système - DÉSACTIVÉ temporairement pour debug Chrome
@media (prefers-color-scheme: light) {
    html:not([data-theme]),
    :root:not([data-theme]) {
        --color-bg: #ffffff;
        --color-bg-elevated: #f5f5f7;
        --color-bg-card: #ffffff;
        --color-border: #e5e5e7;
        --color-text: #1d1d1f;
        --color-text-muted: #6e6e73;
        --color-accent: #c4973b;
        --color-accent-hover: #d4a853;
    }
}
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-theme);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    background: var(--color-bg);
    backdrop-filter: blur(20px);
    transition: var(--transition-theme);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: var(--color-bg-elevated);
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-text);
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-theme), transform 0.2s ease;
    position: relative;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 168, 83, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(212, 168, 83, 0.08), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-accent), #f0d78c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-elevated);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), #c9963f);
    color: var(--color-bg);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.2);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.4);
}

.btn-accent svg {
    animation: spin 2s linear infinite;
    animation-play-state: paused;
}

.btn-accent:hover svg {
    animation-play-state: running;
}

/* =====================================================
   SECTIONS
   ===================================================== */
section {
    padding: 6rem 2rem;
    transition: var(--transition-theme);
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* =====================================================
   COMPARISON SLIDER
   ===================================================== */
#comparaison {
    background: var(--color-bg-elevated);
}

.comparison-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-card);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transition: var(--transition-theme);
}

.comparison-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.img-before {
    z-index: 1;
}

.img-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    z-index: 10;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--color-text);
    cursor: ew-resize;
    transform: translateX(-50%);
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--color-text);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.comparison-slider::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    color: var(--color-bg);
    font-weight: 600;
}

.comparison-labels {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.comparison-label {
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: #f5f5f7;
}

/* Comparison Info Panel */
.comparison-info {
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-theme);
}

.comparison-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.comparison-info .location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.comparison-info .description {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Sélecteurs de photos multiples */
.photo-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selector-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.selector-group label svg {
    color: var(--color-accent);
}

.photo-select {
    padding: 0.75rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-select:hover {
    border-color: var(--color-accent);
}

.photo-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.date-item {
    padding: 1rem;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
}

.date-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.date-item strong {
    font-size: 1.1rem;
}

/* Random Button in Comparison */
.btn-random-comparison {
    margin-top: 1.5rem;
    width: 50%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
}

/* Lieu Navigation */
.lieu-nav-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.lieu-nav-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.lieu-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lieu-btn {
    padding: 0.75rem 1.25rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lieu-btn:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.lieu-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

/* =====================================================
   MAP SECTION
   ===================================================== */
#carte {
    background: var(--color-bg);
}

.map-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Search Bar */
.search-container {
    margin-bottom: 1rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}

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

.search-result-item:hover,
.search-result-item.selected {
    background: var(--color-bg-elevated);
}

.search-result-name {
    font-weight: 500;
    color: var(--color-text);
}

.search-result-details {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.search-loading {
    padding: 1rem;
    text-align: center;
    color: var(--color-text-muted);
}

#map {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

/* Leaflet Custom Styles */
.leaflet-container {
    background: var(--color-bg-card);
    font-family: var(--font-body);
}

.leaflet-popup-content-wrapper {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content {
    margin: 0;
    color: var(--color-text);
}

.leaflet-popup-tip {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-top: none;
    border-left: none;
}

.popup-content {
    padding: 1rem;
    min-width: 250px;
}

.popup-content img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.popup-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.popup-content .popup-location {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.popup-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.popup-content .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Cluster Styles */
.marker-cluster {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 50%;
}

.marker-cluster div {
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: 50%;
    margin: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-small {
    background: rgba(212, 168, 83, 0.4);
}

.marker-cluster-medium {
    background: rgba(212, 168, 83, 0.5);
}

.marker-cluster-large {
    background: rgba(212, 168, 83, 0.6);
}

/* Custom Marker */
.custom-marker {
    background: var(--color-accent);
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
    border: 3px solid var(--color-text);
}

.custom-marker::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-bg);
    border-radius: 50%;
}

/* Leaflet Tiles - pas de filtre pour OSM France */
.leaflet-tile-pane {
    /* filter: none; */
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
#apropos {
    background: var(--color-bg-elevated);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.stat-item {
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.stat-item .number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =====================================================
   LOADING & EMPTY STATES
   ===================================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--color-text-muted);
}

.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    margin-left: 1rem;
    animation: spin 1s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

/* =====================================================
   RECENT ADDITIONS SECTION
   ===================================================== */
.recent-section {
    padding: 6rem 2rem;
    background-color: var(--color-bg-secondary);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-card {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.recent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.recent-card:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.recent-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.recent-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.recent-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recent-card-content {
    padding: 1.5rem;
}

.recent-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.recent-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.recent-card-location svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.recent-card-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.recent-card-dates {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.recent-card-dates svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.recent-card-dates .date-old {
    color: var(--color-text-muted);
}

.recent-card-dates .date-new {
    color: var(--color-text);
    font-weight: 500;
}

/* =====================================================
   PAGE SUGGESTION
   ===================================================== */
.suggestion-hero {
    min-height: 40vh;
}

.suggestion-form-section {
    padding: 4rem 2rem;
    background-color: var(--color-bg);
}

.suggestion-container {
    max-width: 900px;
    margin: 0 auto;
}

.suggestion-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.suggestion-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

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

.step-card {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--color-accent), #c9963f);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.suggestion-form {
    background-color: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.form-section-intro {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.required {
    color: #e74c3c;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn svg {
    margin-right: 0.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert svg {
    flex-shrink: 0;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #c62828;
}

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

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

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

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
}

/* Tablet et Mobile */
@media (max-width: 768px) {

    /* Navigation mobile */
    .nav {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-bg-card);
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero section mobile */
    .hero {
        min-height: 90vh;
        padding: 2rem 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

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

    /* Sections mobile */
    section {
        padding: 3rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Recent cards mobile */
    .recent-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recent-card-image {
        height: 200px;
    }

    .recent-section {
        padding: 3rem 1.5rem;
    }

    /* Comparaison mobile */
    .comparison-container {
        height: 400px;
    }

    .comparison-slider {
        width: 4px;
    }

    .comparison-slider::before {
        width: 36px;
        height: 36px;
    }

    .comparison-labels {
        flex-direction: row;
        gap: 0.5rem;
        align-items: flex-start;
        padding: 1rem 1rem 0.5rem;
        bottom: 0.1rem;
    }

    .comparison-info {
        padding: 1.5rem;
    }

    .comparison-info h3 {
        font-size: 1.5rem;
    }

    .dates-row {
        flex-direction: column;
        gap: 1rem;
    }

    .photo-selectors {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    /* Carte mobile */
    #map {
        height: 800px;
    }

    .search-container {
        padding: 0 1rem 1rem;
    }

    /* Stats mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item .number {
        font-size: 2.5rem;
    }

    /* Navigation lieux mobile */
    .lieu-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .lieu-btn {
        width: 100%;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .comparison-container {
        height: 300px;
    }

    #map {
        height: 600px;
    }

    .stat-item .number {
        font-size: 2rem;
    }
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 85vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
    color: #fff;
}

.lightbox-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.lightbox-counter {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Bouton fermer */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* Loading spinner */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: lightboxSpin 0.8s linear infinite;
}

@keyframes lightboxSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {

    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    .lightbox-nav.prev {
        left: 1rem;
    }

    .lightbox-nav.next {
        right: 1rem;
    }

    .lightbox-close svg,
    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-date {
        font-size: 1.1rem;
    }

    .lightbox-counter {
        font-size: 0.85rem;
    }

    .lightbox-image {
        max-height: 80vh;
    }
}