/*
Theme Name: Vagao Cyclo
Theme URI: https://vagao-cyclo.local
Author: Vagao
Description: Site de petites annonces cyclomoteurs - Style Le Bon Coin avec carte de France SVG interactive
Version: 1.0
Text Domain: vagao-cyclo
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* =========================================
   STYLE RÉTRO ANNÉES 90 - VAGAO CYCLO
   Windows 95 / Netscape Navigator vibes
   ========================================= */

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

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=IBM+Plex+Mono:wght@400;600;700&display=swap');

:root {
    /* Palette 90s saturée */
    --primary: #FF6600;
    --primary-dark: #CC5200;
    --primary-light: #FFEECC;
    --secondary: #000080;
    --accent: #FF00FF;
    --neon-green: #00FF00;
    --neon-cyan: #00FFFF;
    --win95-gray: #C0C0C0;
    --win95-dark: #808080;
    --win95-light: #DFDFDF;
    --text: #000000;
    --text-light: #555555;
    --bg: #008080;
    --white: #FFFFFF;
    --border: #808080;
    --success: #008000;
    --danger: #FF0000;
    --info: #0000FF;
    --yellow: #FFFF00;

    /* Ombres 3D Windows 95 */
    --bevel-out: inset -1px -1px 0 #000, inset 1px 1px 0 #fff, inset -2px -2px 0 #808080, inset 2px 2px 0 #dfdfdf;
    --bevel-in: inset 1px 1px 0 #000, inset -1px -1px 0 #fff, inset 2px 2px 0 #808080, inset -2px -2px 0 #dfdfdf;
    --shadow: 2px 2px 0 #000;
    --shadow-hover: 3px 3px 0 #000;

    /* Pas de radius, c'est les 90s */
    --radius: 0px;
    --radius-lg: 0px;
    --transition: all 0.1s ease;
    --font: 'IBM Plex Mono', 'Courier New', monospace;
    --font-pixel: 'VT323', monospace;
    --font-title: 'Press Start 2P', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(circle, #006666 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== HEADER ===== */
.site-header {
    background: var(--win95-gray);
    border-bottom: 3px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--bevel-out);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--secondary);
    text-shadow: 1px 1px 0 var(--win95-dark);
    white-space: nowrap;
    overflow: hidden;
    max-height: 56px;
}

.vagao-header-logo {
    height: 36px;
    width: 36px;
    min-width: 36px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 1px 1px 0 #000;
    border: 1px solid var(--white);
    flex-shrink: 0;
}

.vagao-logo-text { font-size: 1rem; }
.vagao-logo-text span { color: var(--primary); }

.site-logo .logo-icon { font-size: 1.4rem; }
.site-logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 4px; align-items: center; }

.main-nav a {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    padding: 6px 12px;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    box-shadow: var(--bevel-in);
    color: var(--secondary);
}

.main-nav a::after { display: none; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--bevel-out);
    background: var(--win95-gray);
    color: var(--text);
}

.btn:hover {
    box-shadow: var(--bevel-in);
    transform: translate(1px, 1px);
}

.btn:active {
    box-shadow: var(--bevel-in);
    transform: translate(2px, 2px);
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #3333CC, inset -2px -2px 0 #000033, inset 2px 2px 0 #6666FF;
}

.btn-primary:hover {
    background: #0000AA;
    box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #3333CC, inset 2px 2px 0 #000033, inset -2px -2px 0 #6666FF;
}

.btn-outline {
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out);
}

.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-success {
    background: var(--success);
    color: var(--white);
    box-shadow: inset -1px -1px 0 #003300, inset 1px 1px 0 #00CC00, inset -2px -2px 0 #004400, inset 2px 2px 0 #00EE00;
}

.btn-success:hover { background: #006600; }

/* ===== HERO ===== */
.hero {
    background: var(--secondary);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    color: var(--white);
    padding: 40px 0 60px;
    text-align: center;
    border-bottom: 4px solid var(--primary);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 20px, var(--yellow) 20px, var(--yellow) 40px, var(--neon-green) 40px, var(--neon-green) 60px, var(--neon-cyan) 60px, var(--neon-cyan) 80px);
}

.hero h1 {
    font-family: var(--font-pixel);
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 #000;
    letter-spacing: -1px;
}

.hero h1 span { color: var(--yellow); }

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-family: var(--font-pixel);
    font-size: 1.4rem;
}

/* ===== SEARCH BAR ===== */
.search-bar-container {
    max-width: 1000px;
    margin: -30px auto 0;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.search-bar {
    background: var(--win95-gray);
    border-radius: 0;
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
    padding: 16px;
    display: flex;
    gap: 8px;
    align-items: end;
    flex-wrap: wrap;
}

.search-bar .field { flex: 1; min-width: 140px; }

.search-bar label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    text-transform: uppercase;
}

.search-bar input,
.search-bar select {
    width: 100%;
    padding: 6px 8px;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--white);
    box-shadow: var(--bevel-in);
}

.search-bar input:focus,
.search-bar select:focus {
    outline: 2px dotted var(--primary);
    outline-offset: 1px;
}

.search-bar .btn { height: 36px; min-width: 120px; }

/* ===== MAP SECTION ===== */
.map-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
}

.map-section h2 {
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 2rem;
    margin-bottom: 6px;
    color: var(--secondary);
    text-shadow: 1px 1px 0 var(--win95-light);
}

.map-section .subtitle {
    text-align: center;
    color: var(--text);
    margin-bottom: 24px;
    font-family: var(--font-pixel);
    font-size: 1.1rem;
}

.map-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.france-map {
    flex: 1;
    min-width: 350px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    background: var(--win95-gray);
    padding: 12px;
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
}

.france-map svg { width: 100%; height: auto; }

/* --- Départements SVG --- */
#france-map path {
    fill: #4A6FA5;
    stroke: var(--win95-gray);
    stroke-width: 0.8;
    cursor: pointer;
    transition: fill 0.15s ease;
}

#france-map path:hover {
    fill: var(--primary);
    filter: brightness(1.1);
}

#france-map path.active { fill: var(--primary); }
#france-map path.region-highlight { fill: #FFD700; }

#france-map .separator {
    stroke: #aaa;
    fill: none;
    stroke-width: 1.5;
    cursor: default;
}

#france-map .separator:hover { stroke: #aaa; fill: none; filter: none; }

.map-tooltip {
    position: absolute;
    background: var(--secondary);
    color: var(--yellow);
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-pixel);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
    white-space: nowrap;
    border: 2px solid var(--yellow);
    box-shadow: 2px 2px 0 #000;
}

.map-tooltip.visible { opacity: 1; }

.region-list { flex: 1; min-width: 300px; }

.region-list h3 {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--secondary);
    text-shadow: 1px 1px 0 var(--win95-light);
}

.region-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.region-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--win95-gray);
    border-radius: 0;
    border: none;
    box-shadow: var(--bevel-out);
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
}

.region-list li a:hover,
.region-list li a.active {
    box-shadow: var(--bevel-in);
    color: var(--secondary);
    background: var(--primary-light);
}

.region-list li a .count {
    background: var(--secondary);
    color: var(--yellow);
    padding: 1px 8px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-pixel);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--win95-gray);
    padding: 20px 0;
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--bevel-out);
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

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

.stat-item .stat-number {
    font-family: var(--font-pixel);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--secondary);
    display: block;
    text-shadow: 1px 1px 0 var(--win95-dark);
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== ANNONCES GRID ===== */
.annonces-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
}

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

.section-header h2 {
    font-family: var(--font-pixel);
    font-size: 1.6rem;
    color: var(--secondary);
    text-shadow: 1px 1px 0 var(--win95-light);
}

.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.annonce-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    transition: var(--transition);
    border: 2px solid var(--secondary);
}

.annonce-card:hover {
    box-shadow: var(--bevel-out), 5px 5px 0 #000;
    transform: translate(-2px, -2px);
}

.annonce-card .card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--win95-gray);
    border-bottom: 2px solid var(--secondary);
}

.annonce-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.annonce-card:hover .card-image img { transform: none; }

.annonce-card .card-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: var(--danger);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font);
    box-shadow: 2px 2px 0 #000;
}

.annonce-card .card-body { padding: 12px; }

.annonce-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.annonce-card .card-title a:hover { color: var(--info); text-decoration: underline; }

.annonce-card .card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.annonce-card .card-meta span { display: inline-flex; align-items: center; gap: 3px; }

.annonce-card .card-price {
    font-family: var(--font-pixel);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--danger);
    text-shadow: 1px 1px 0 #ffcccc;
}

.annonce-card .card-footer {
    padding: 8px 12px;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--win95-light);
}

.placeholder-img {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--win95-gray);
    color: var(--win95-dark);
    font-size: 3rem;
}

/* ===== ARCHIVE LAYOUT ===== */
.archive-layout {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--win95-gray);
    border-radius: 0;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    padding: 4px;
    position: sticky;
    top: 80px;
}

.filters-sidebar h3 {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    margin-bottom: 0;
    padding: 6px 12px;
    background: var(--secondary);
    color: var(--white);
    text-shadow: 1px 1px 0 #000;
}

.filters-sidebar form {
    padding: 12px;
}

.filter-group { margin-bottom: 12px; }

.filter-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 6px 8px;
    border: none;
    border-radius: 0;
    font-size: 0.85rem;
    font-family: var(--font);
    background: var(--white);
    box-shadow: var(--bevel-in);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: 2px dotted var(--primary);
    outline-offset: 1px;
}

/* ===== DOUBLE RANGE SLIDER - PRIX ===== */
.price-display {
    float: right;
    font-weight: 700;
    color: var(--danger);
    font-size: 0.8rem;
    font-family: var(--font-pixel);
    font-size: 1rem;
}

.range-slider-wrap { padding-top: 6px; }

.range-slider {
    position: relative;
    height: 36px;
}

.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    transform: translateY(-50%);
    background: var(--win95-dark);
    box-shadow: var(--bevel-in);
}

.range-fill {
    position: absolute;
    top: 50%;
    height: 8px;
    transform: translateY(-50%);
    background: var(--neon-green);
    pointer-events: none;
}

.range-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 24px;
    border-radius: 0;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
    cursor: pointer;
    pointer-events: auto;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--win95-light);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 24px;
    border-radius: 0;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
    cursor: pointer;
    pointer-events: auto;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text);
    margin-top: 2px;
    font-weight: 700;
}

/* ===== FILTRE RAYON GÉO ===== */
.filter-group-geo {
    background: var(--win95-light);
    margin: 0 -12px;
    padding: 10px 12px;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.geo-radius-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.geo-cp-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    box-shadow: var(--bevel-in);
    overflow: hidden;
}

.geo-cp-row:focus-within {
    outline: 2px dotted var(--primary);
    outline-offset: 1px;
}

.geo-pin-icon {
    padding: 0 0 0 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

.geo-cp-row input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 6px 8px;
    font-size: 0.85rem;
    background: transparent;
    box-shadow: none !important;
}

.geo-radius-slider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.geo-radius-slider input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--win95-dark);
    box-shadow: var(--bevel-in);
    border-radius: 0;
    outline: none;
}

.geo-radius-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 20px;
    border-radius: 0;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
    cursor: pointer;
}

.geo-radius-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 20px;
    border-radius: 0;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
    cursor: pointer;
    border: none;
}

.geo-radius-slider input[type="range"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.geo-radius-display {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--danger);
    white-space: nowrap;
    min-width: 55px;
    text-align: right;
}

.geo-active-hint {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 700;
}

.results-area { flex: 1; min-width: 0; }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
}

.results-count {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 700;
}

.results-count strong { color: var(--danger); }

.sort-select {
    padding: 4px 8px;
    border: none;
    border-radius: 0;
    font-family: var(--font);
    font-size: 0.85rem;
    background: var(--white);
    box-shadow: var(--bevel-in);
}

/* ===== SINGLE ANNONCE ===== */
.single-annonce-layout {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 20px;
}

.annonce-gallery {
    background: var(--win95-gray);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    padding: 4px;
}

.annonce-gallery .main-image {
    height: 400px;
    background: var(--white);
    box-shadow: var(--bevel-in);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--win95-dark);
}

.annonce-detail {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
}

.annonce-info {
    background: var(--white);
    border-radius: 0;
    padding: 24px;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    border: 2px solid var(--secondary);
}

.annonce-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.annonce-sidebar .price-box {
    background: var(--win95-gray);
    border-radius: 0;
    padding: 20px;
    text-align: center;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    border: 3px solid var(--danger);
}

.annonce-sidebar .price-box .price {
    font-family: var(--font-pixel);
    font-size: 2.4rem;
    color: var(--danger);
    display: block;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 #ffcccc;
}

.annonce-sidebar .seller-box {
    background: var(--win95-gray);
    border-radius: 0;
    padding: 20px;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
}

/* ===== FORM (DEPOSER ANNONCE) ===== */
.form-page {
    max-width: 800px;
    margin: 24px auto;
    padding: 0 20px;
}

.form-container {
    background: var(--win95-gray);
    border-radius: 0;
    padding: 4px;
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
}

.form-container h1 {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--white);
    padding: 8px 16px;
    background: var(--secondary);
    text-shadow: 1px 1px 0 #000;
}

.form-container form,
.form-container > div:not(:first-child) {
    padding: 20px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.form-group label .required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--white);
    box-shadow: var(--bevel-in);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px dotted var(--primary);
    outline-offset: 1px;
}

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

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px);
    color: var(--win95-gray);
    padding: 30px 0 0;
    margin-top: 40px;
    border-top: 4px solid var(--primary);
}

.site-footer::before {
    display: block;
    content: '';
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--neon-green) 0, var(--neon-green) 20px, var(--neon-cyan) 20px, var(--neon-cyan) 40px, var(--accent) 40px, var(--accent) 60px, var(--yellow) 60px, var(--yellow) 80px);
    margin-bottom: 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-col h4 {
    color: var(--yellow);
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-shadow: 1px 1px 0 #000;
}

.footer-col a {
    display: block;
    padding: 3px 0;
    font-size: 0.85rem;
    color: var(--win95-gray);
}

.footer-col a:hover { color: var(--neon-cyan); text-decoration: underline; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.82rem;
    font-family: var(--font-pixel);
    color: var(--win95-dark);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
}

.pagination a { color: var(--text); }
.pagination a:hover {
    box-shadow: var(--bevel-in);
    color: var(--secondary);
}

.pagination .current {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--bevel-in);
}

/* ===== ALERTS ===== */
.alert {
    padding: 10px 16px;
    border-radius: 0;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--bevel-out);
}

.alert p { margin: 2px 0; }
.alert-error { background: #FF9999; color: #990000; border: 2px solid var(--danger); }
.alert-success { background: #99FF99; color: #006600; border: 2px solid var(--success); }
.alert-info { background: #99CCFF; color: #000066; border: 2px solid var(--info); }

/* ===== AUTH LAYOUT ===== */
.auth-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.auth-layout .form-container { flex: 1; }

.auth-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.auth-promo-card {
    background: var(--win95-gray);
    border-radius: 0;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    padding: 4px;
    text-align: center;
}

.auth-promo-card .promo-icon { font-size: 2.5rem; display: block; margin: 16px 0 8px; }

.auth-promo-card h3 {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--secondary);
    padding: 0 16px;
}

.auth-promo-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; padding: 0 16px; }

.promo-features {
    text-align: left;
    margin: 0 16px 16px;
}

.promo-features li {
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--text);
    border-bottom: 1px dotted var(--border);
}

.promo-features li:last-child { border: none; }

/* ===== FORM ENHANCEMENTS ===== */
.form-container-wide { max-width: 800px; }

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 3px;
    font-style: italic;
}

.form-divider {
    border-top: 2px groove var(--win95-gray);
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.form-divider span {
    background: var(--win95-gray);
    padding: 0 12px;
    position: relative;
    top: -10px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 700;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--secondary);
}

.form-footer-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px groove var(--win95-gray);
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-footer-link a { color: var(--info); font-weight: 700; text-decoration: underline; }
.form-footer-link a:hover { color: var(--accent); }

.password-strength {
    height: 6px;
    border-radius: 0;
    margin-top: 4px;
    box-shadow: var(--bevel-in);
}

.form-fieldset {
    border: 2px groove var(--win95-gray);
    border-radius: 0;
    padding: 16px;
    margin-bottom: 20px;
}

.form-fieldset legend {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    padding: 0 8px;
    text-transform: uppercase;
}

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

.form-submit-area { padding-top: 8px; }

/* ===== FORM STEPS ===== */
.form-steps {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    background: var(--win95-dark);
    padding: 2px;
}

.form-steps .step {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
    text-transform: uppercase;
}

.form-steps .step.active {
    background: var(--secondary);
    color: var(--yellow);
    box-shadow: var(--bevel-in);
    text-shadow: 1px 1px 0 #000;
}

.form-steps .step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 0;
    background: var(--win95-dark);
    color: var(--white);
    font-size: 0.7rem;
    margin-right: 3px;
}

.form-steps .step.active .step-num {
    background: var(--yellow);
    color: var(--secondary);
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
    border: 3px dashed var(--win95-dark);
    border-radius: 0;
    padding: 30px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--bevel-in);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upload-zone .upload-text { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.upload-zone .upload-text span { color: var(--info); text-decoration: underline; }
.upload-zone small { color: var(--text-light); font-size: 0.78rem; }

.photo-preview-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.photo-preview-grid .preview-item {
    width: 90px; height: 70px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out);
}

.photo-preview-grid .preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.photo-preview-grid .preview-remove {
    position: absolute;
    top: 1px; right: 1px;
    width: 18px; height: 18px;
    background: var(--danger);
    color: var(--white);
    border: 1px solid #000;
    border-radius: 0;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-thumb {
    width: 90px; height: 70px;
    object-fit: cover;
    border-radius: 0;
    border: 2px solid var(--secondary);
}

/* ===== ACCOUNT PAGE ===== */
.account-page {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.account-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.account-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--win95-gray);
    border-radius: 0;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.account-user-card {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary);
    color: var(--white);
}

.account-avatar {
    border-radius: 0;
    border: 2px solid var(--yellow);
    box-shadow: 2px 2px 0 #000;
}

.account-user-info strong { display: block; font-size: 0.95rem; }
.account-user-info small { opacity: 0.8; font-size: 0.75rem; }

.account-nav { padding: 4px 0; }

.account-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.account-nav a:hover {
    background: var(--win95-light);
    color: var(--secondary);
}

.account-nav a.active {
    background: var(--primary-light);
    color: var(--secondary);
    font-weight: 700;
    border-left-color: var(--secondary);
}

.account-nav .nav-icon { font-size: 1rem; width: 22px; text-align: center; }

.account-nav .nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    padding: 1px 8px;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-pixel);
}

.account-nav .nav-cta {
    margin: 6px 12px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 0;
    justify-content: center;
    font-weight: 700;
    border-left: none !important;
    box-shadow: var(--bevel-out);
}

.account-nav .nav-cta:hover {
    background: var(--primary-dark);
    box-shadow: var(--bevel-in);
}

.account-nav .nav-logout {
    border-top: 2px groove var(--win95-gray);
    margin-top: 4px;
    color: var(--text-light);
}

.account-nav .nav-logout:hover { color: var(--danger); }

.account-content { flex: 1; min-width: 0; }

.account-title {
    font-family: var(--font-pixel);
    font-size: 1.6rem;
    color: var(--yellow);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 8px;
    background: var(--secondary);
    padding: 8px 14px;
    box-shadow: var(--bevel-out);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.dash-stat-card {
    background: var(--win95-gray);
    border-radius: 0;
    padding: 16px;
    text-align: center;
    box-shadow: var(--bevel-out), 2px 2px 0 #000;
}

.dash-stat-icon { font-size: 1.8rem; display: block; margin-bottom: 4px; }

.dash-stat-number {
    font-family: var(--font-pixel);
    font-size: 1.8rem;
    color: var(--secondary);
    display: block;
}

.dash-stat-label { font-size: 0.78rem; color: var(--text); font-weight: 700; text-transform: uppercase; }

/* Dashboard Actions */
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.dash-action-card {
    background: var(--win95-gray);
    border-radius: 0;
    padding: 14px;
    text-align: center;
    box-shadow: var(--bevel-out), 2px 2px 0 #000;
    transition: var(--transition);
    cursor: pointer;
}

.dash-action-card:hover {
    box-shadow: var(--bevel-in), 1px 1px 0 #000;
    transform: translate(1px, 1px);
}

.dash-action-card .action-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.dash-action-card strong { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }
.dash-action-card small { color: var(--text-light); font-size: 0.78rem; }

/* Annonces List (account) */
.account-annonces-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-annonce-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--bevel-out);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.account-annonce-row:hover { border-color: var(--secondary); }

.annonce-row-thumb { flex-shrink: 0; }
.annonce-row-thumb img { width: 70px; height: 50px; object-fit: cover; border-radius: 0; border: 2px solid var(--secondary); }

.annonce-row-info { flex: 1; min-width: 0; }
.annonce-row-info strong { display: block; font-size: 0.9rem; }
.annonce-row-info strong a:hover { color: var(--info); text-decoration: underline; }
.annonce-row-info small { color: var(--text-light); font-size: 0.78rem; }

.annonce-row-status { flex-shrink: 0; }

.status-badge {
    padding: 2px 10px;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font);
    box-shadow: var(--bevel-out);
}

.status-publish { background: #99FF99; color: #006600; }
.status-draft { background: #FFFF99; color: #666600; }
.status-pending { background: #99CCFF; color: #000066; }

.annonce-row-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-danger {
    background: var(--win95-gray);
    color: var(--danger);
    border: 2px solid var(--danger);
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: 0;
    box-shadow: var(--bevel-out);
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--white);
    box-shadow: var(--bevel-in);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 16px;
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
}

.empty-state .empty-icon { font-size: 3rem; display: block; margin-bottom: 8px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 4px; }
.empty-state p { color: var(--text-light); margin-bottom: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .search-bar { flex-direction: column; }
    .search-bar .field { min-width: 100%; }
    .map-container { flex-direction: column; }
    .france-map { min-width: 100%; max-width: 100%; }
    .region-list ul { grid-template-columns: 1fr; }
    .annonces-grid { grid-template-columns: 1fr; }
    .archive-layout { flex-direction: column; }
    .filters-sidebar { width: 100%; position: static; }
    .annonce-detail { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .header-inner { height: auto; padding: 8px 16px; flex-wrap: wrap; gap: 8px; }
    .main-nav ul { gap: 4px; flex-wrap: wrap; }
    .stats-inner { gap: 20px; }
    .auth-layout { flex-direction: column; }
    .auth-sidebar { width: 100%; }
    .account-layout { flex-direction: column; }
    .account-sidebar { width: 100%; position: static; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-actions { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .account-annonce-row { flex-wrap: wrap; }
    .annonce-row-actions { width: 100%; justify-content: flex-end; }
    .form-steps { flex-wrap: wrap; }
    .form-steps .step { min-width: 45%; }
}

/* ===== GÉOLOCALISATION ===== */
.geoloc-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--win95-light);
    border: 2px groove var(--win95-gray);
    flex-wrap: wrap;
}

.geoloc-cp-search {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.geoloc-cp-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    box-shadow: var(--bevel-in);
    overflow: hidden;
}

.geoloc-cp-input-wrap:focus-within {
    outline: 2px dotted var(--primary);
    outline-offset: 1px;
}

.geoloc-cp-input-wrap .geoloc-icon {
    font-size: 1rem;
    padding: 0 0 0 10px;
    flex-shrink: 0;
}

.geoloc-cp-field {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: transparent;
    box-shadow: none !important;
    min-width: 100px;
}

.btn-geoloc-search {
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    background: var(--secondary);
    color: var(--yellow);
    cursor: pointer;
    font-family: var(--font);
    text-transform: uppercase;
    box-shadow: var(--bevel-out);
}

.btn-geoloc-search:hover { background: #0000AA; }
.btn-geoloc-search.loading { opacity: 0.6; pointer-events: none; }

.geoloc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--secondary);
    border-top: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 3px 3px 0 #000;
}

.geoloc-suggestions.visible { display: block; }

.geoloc-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px dotted var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.geoloc-suggestion-item:last-child { border-bottom: none; }
.geoloc-suggestion-item:hover { background: var(--primary-light); }

.geoloc-suggestion-city { font-weight: 700; color: var(--text); }
.geoloc-suggestion-details { font-size: 0.75rem; color: var(--text-light); }

.geoloc-separator {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.geoloc-separator span { padding: 0 4px; }

.btn-geoloc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.78rem;
    border: 2px solid var(--border);
    color: var(--text-light);
    border-radius: 0;
    background: var(--win95-gray);
    cursor: pointer;
    box-shadow: var(--bevel-out);
    white-space: nowrap;
    font-family: var(--font);
}

.btn-geoloc:hover {
    box-shadow: var(--bevel-in);
    color: var(--secondary);
}

.btn-geoloc.loading { opacity: 0.6; pointer-events: none; }
.geoloc-gps-icon { font-size: 0.9rem; }

.geoloc-status {
    font-size: 0.8rem;
    color: var(--text-light);
    width: 100%;
    font-weight: 700;
}

.geoloc-status:empty { display: none; }
.geoloc-status.success { color: var(--success); }
.geoloc-status.error { color: var(--danger); }

.geoloc-filled {
    animation: geolocBlink 0.4s ease 3;
    outline: 2px solid var(--neon-green) !important;
}

@keyframes geolocBlink {
    0%, 100% { outline-color: var(--neon-green); }
    50% { outline-color: transparent; }
}

@media (max-width: 600px) {
    .geoloc-bar { flex-direction: column; align-items: stretch; }
    .geoloc-separator { justify-content: center; }
    .btn-geoloc { justify-content: center; }
}

/* ===== SCROLLBAR 90s ===== */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--win95-gray); box-shadow: var(--bevel-in); }
::-webkit-scrollbar-thumb { background: var(--win95-gray); box-shadow: var(--bevel-out); }
::-webkit-scrollbar-thumb:hover { background: var(--win95-light); }
::-webkit-scrollbar-button { display: block; height: 16px; background: var(--win95-gray); box-shadow: var(--bevel-out); }

/* ===== SÉLECTION TEXTE 90s ===== */
::selection { background: var(--secondary); color: var(--white); }

/* =========================================
   GROUPES / RÉSEAU SOCIAL
   ========================================= */

/* --- Page liste groupes --- */
.groupes-page {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.groupes-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.groupes-search-form {
    flex: 1;
    display: flex;
    gap: 4px;
    min-width: 300px;
    background: var(--win95-gray);
    padding: 8px;
    box-shadow: var(--bevel-out);
}

.groupes-search-form input,
.groupes-search-form select {
    padding: 6px 8px;
    border: none;
    font-family: var(--font);
    font-size: 0.85rem;
    box-shadow: var(--bevel-in);
    background: var(--white);
}

.groupes-search-form input { flex: 1; min-width: 120px; }
.groupes-search-form select { min-width: 140px; }

.groupes-stats {
    padding: 8px 12px;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out);
    margin-bottom: 16px;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.groupes-stats strong { color: var(--secondary); }

/* --- Grille groupes --- */
.groupes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.groupe-card {
    background: var(--white);
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    border: 2px solid var(--secondary);
    transition: var(--transition);
}

.groupe-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--bevel-out), 5px 5px 0 #000;
}

.groupe-card.is-member {
    border-color: var(--success);
}

.groupe-card-cover {
    height: 120px;
    overflow: hidden;
    background: var(--secondary);
    position: relative;
    border-bottom: 2px solid var(--secondary);
}

.groupe-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.groupe-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--secondary), #000066);
    color: var(--win95-gray);
}

.groupe-cat-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--yellow);
    color: var(--secondary);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font);
    box-shadow: 2px 2px 0 #000;
}

.groupe-member-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--success);
    color: var(--white);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font);
    box-shadow: 2px 2px 0 #000;
}

.groupe-card-body {
    padding: 12px;
}

.groupe-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.groupe-card-title a:hover { color: var(--info); text-decoration: underline; }

.groupe-card-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.groupe-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
}

.groupe-card-footer {
    padding: 8px 12px;
    border-top: 2px solid var(--border);
    background: var(--win95-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.groupe-card-author { color: var(--text-light); }

/* --- Page single groupe --- */
.groupe-banner {
    background: var(--secondary);
    border-bottom: 4px solid var(--primary);
}

.groupe-banner-cover {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.groupe-banner-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.groupe-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--win95-dark);
    background: linear-gradient(135deg, #000066, #000080, #000066);
}

.groupe-banner-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.groupe-banner-text h1 {
    font-family: var(--font-pixel);
    font-size: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 6px;
}

.groupe-banner-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--win95-gray);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.groupe-banner-meta strong { color: var(--yellow); }

.groupe-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* --- Layout groupe (mur + sidebar) --- */
.groupe-layout {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.groupe-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.groupe-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
}

.groupe-section {
    background: var(--win95-gray);
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    padding: 4px;
}

.groupe-section h3 {
    padding: 6px 12px;
    background: var(--secondary);
    color: var(--white);
    font-family: var(--font-pixel);
    font-size: 1rem;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 0;
}

.groupe-section h3 .wall-count {
    font-family: var(--font);
    font-size: 0.8rem;
    opacity: 0.7;
}

.groupe-about-text {
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Composer un message --- */
.wall-compose {
    display: flex;
    gap: 10px;
    padding: 12px;
}

.wall-compose-avatar img {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
}

.wall-compose-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wall-compose-input textarea {
    width: 100%;
    padding: 8px 10px;
    border: none;
    font-family: var(--font);
    font-size: 0.9rem;
    box-shadow: var(--bevel-in);
    background: var(--white);
    resize: vertical;
    min-height: 50px;
}

.wall-compose-input textarea:focus {
    outline: 2px dotted var(--primary);
}

.wall-compose-input .btn {
    align-self: flex-end;
}

/* --- Fil du mur --- */
.wall-feed {
    padding: 0 2px 2px;
}

.wall-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-light);
}

.wall-empty span { font-size: 2.5rem; display: block; margin-bottom: 8px; }

.wall-post {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px dotted var(--border);
    background: var(--white);
    transition: background 0.15s;
}

.wall-post:hover {
    background: var(--win95-light);
}

.wall-post:last-child { border-bottom: none; }

.wall-post-avatar img {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
}

.wall-post-content {
    flex: 1;
    min-width: 0;
}

.wall-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.wall-post-author {
    font-size: 0.88rem;
    color: var(--secondary);
}

.wall-post-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.wall-post-delete {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 1px 6px;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: var(--font);
    line-height: 1;
}

.wall-post-delete:hover {
    background: var(--danger);
    color: var(--white);
}

.wall-post-body {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Nouveau message animé */
.wall-post.new-post {
    animation: wallPostSlide 0.3s ease;
}

@keyframes wallPostSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
        background: var(--primary-light);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        background: var(--white);
    }
}

/* --- Membres sidebar --- */
.groupe-members-list {
    padding: 8px 12px;
    max-height: 400px;
    overflow-y: auto;
}

.groupe-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dotted var(--border);
}

.groupe-member-item:last-child { border-bottom: none; }

.groupe-member-item img {
    width: 32px;
    height: 32px;
    border: 2px solid var(--secondary);
}

.groupe-member-info strong {
    font-size: 0.85rem;
    display: block;
}

.groupe-role-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--secondary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    text-transform: uppercase;
}

.groupe-info-list {
    padding: 10px 12px;
}

.groupe-info-list li {
    padding: 4px 0;
    font-size: 0.85rem;
    border-bottom: 1px dotted var(--border);
}

.groupe-info-list li:last-child { border-bottom: none; }
.groupe-info-list strong { color: var(--secondary); }

/* --- Responsive groupes --- */
@media (max-width: 768px) {
    .groupe-layout { flex-direction: column; }
    .groupe-sidebar { width: 100%; position: static; }
    .groupes-toolbar { flex-direction: column; }
    .groupes-search-form { min-width: 100%; flex-wrap: wrap; }
    .groupe-banner-info { flex-direction: column; text-align: center; }
    .groupe-banner-actions { justify-content: center; }
    .groupes-grid { grid-template-columns: 1fr; }
    .groupe-banner-cover { height: 140px; }
    .groupe-banner-text h1 { font-size: 1.4rem; }
}

/* =============================================
   ===== ONGLETS RECHERCHE FRONT-PAGE =====
   ============================================= */
.search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    justify-content: center;
}

.search-tab {
    font-family: var(--font-pixel), monospace;
    font-size: 0.95rem;
    padding: 10px 28px;
    border: 2px solid var(--secondary);
    border-bottom: none;
    background: var(--win95-gray);
    color: var(--secondary);
    cursor: pointer;
    box-shadow: inset 1px 1px 0 #fff, inset -1px 0 0 #888;
    position: relative;
    top: 2px;
    z-index: 1;
    transition: background 0.15s, color 0.15s;
}

.search-tab:first-child {
    border-radius: 6px 0 0 0;
}

.search-tab:last-child {
    border-radius: 0 6px 0 0;
}

.search-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3), 3px -3px 0 rgba(0,0,0,0.15);
    z-index: 2;
    border-bottom: 2px solid var(--primary);
}

.search-tab:hover:not(.active) {
    background: var(--yellow);
    color: var(--secondary);
}

.search-panel {
    display: none !important;
}

.search-panel.active {
    display: flex !important;
}

.search-bar-container .search-bar {
    border-radius: 0 0 6px 6px;
}

/* =============================================
   ===== SECTION GROUPES FRONT-PAGE =====
   ============================================= */
.groupes-home-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
}

.groupes-home-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.groupes-home-section .section-header h2 {
    font-family: var(--font-pixel), monospace;
    font-size: 1.3rem;
    color: var(--secondary);
    text-shadow: none;
    margin: 0;
}

.groupes-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.groupe-home-card {
    background: #fff;
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out);
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.groupe-home-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bevel-out), 4px 4px 0 rgba(0,0,0,0.25);
}

.groupe-home-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.groupe-home-cover {
    height: 110px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.groupe-home-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.groupe-home-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.5;
    color: #fff;
}

.groupe-home-cat {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-family: var(--font-pixel), monospace;
    border: 1px solid #000;
}

.groupe-home-body {
    padding: 10px 12px;
}

.groupe-home-body h3 {
    font-family: var(--font-pixel), monospace;
    font-size: 0.95rem;
    color: var(--secondary);
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.groupe-home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: #555;
}

.groupe-home-meta span {
    background: #f0f0f0;
    padding: 1px 6px;
    border: 1px solid var(--border);
}

.groupe-home-region {
    background: var(--teal) !important;
    color: #fff !important;
    font-weight: bold;
}

.groupes-home-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 2px dashed var(--border);
}

.groupes-home-empty p {
    font-family: var(--font-pixel), monospace;
    color: var(--secondary);
    margin-bottom: 12px;
}

/* Tag région sur les cartes groupes */
.groupe-region-tag {
    background: var(--teal) !important;
    color: #fff !important;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-family: var(--font-pixel), monospace;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Responsive groupes front-page */
@media (max-width: 768px) {
    .groupes-home-grid { grid-template-columns: 1fr 1fr; }
    .search-tabs { flex-wrap: wrap; }
    .search-tab { font-size: 0.8rem; padding: 8px 16px; }
}

@media (max-width: 480px) {
    .groupes-home-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ===== TYPE D'ANNONCE (Véhicule / Pièces) =====
   ============================================= */
.annonce-type-toggle {
    display: flex;
    gap: 12px;
}

.annonce-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 3px solid var(--border);
    background: #fff;
    cursor: pointer;
    box-shadow: var(--bevel-out);
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
    user-select: none;
}

.annonce-type-option input[type="radio"] {
    display: none;
}

.annonce-type-option:hover {
    border-color: var(--primary);
    background: #fff8f0;
}

.annonce-type-option.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5ee, #ffe8d6);
    box-shadow: var(--bevel-in);
    transform: scale(0.98);
}

.annonce-type-icon {
    font-size: 2rem;
    line-height: 1;
}

.annonce-type-label {
    font-family: var(--font-pixel), monospace;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--secondary);
}

.annonce-type-option.active .annonce-type-label {
    color: var(--primary);
}

/* Badge pièce sur les cartes */
.card-badge-piece {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--secondary);
    color: var(--yellow);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-family: var(--font-pixel), monospace;
    border: 1px solid #000;
    z-index: 2;
}

/* Type de pièce affiché sur single */
.piece-type-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--yellow);
    padding: 4px 12px;
    font-family: var(--font-pixel), monospace;
    font-size: 0.85rem;
    border: 2px solid #000;
    box-shadow: var(--bevel-out);
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .annonce-type-toggle { flex-direction: column; }
    .annonce-type-icon { font-size: 1.5rem; }
}

/* =============================================
   ===== MESSAGERIE PRIVÉE (CHAT) =====
   ============================================= */
.messagerie-page {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 80px);
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
    overflow: hidden;
}

/* --- Sidebar conversations --- */
.msg-sidebar {
    width: 320px;
    min-width: 320px;
    border-right: 2px solid var(--secondary);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.msg-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--secondary);
    color: #fff;
    border-bottom: 2px solid #000;
}

.msg-sidebar-header h2 {
    font-family: var(--font-pixel), monospace;
    font-size: 1rem;
    margin: 0;
    color: var(--yellow);
}

.msg-conv-list {
    flex: 1;
    overflow-y: auto;
}

.msg-conv-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    align-items: flex-start;
}

.msg-conv-item:hover {
    background: #f0f0f0;
}

.msg-conv-item.active {
    background: linear-gradient(135deg, #fff5ee, #ffe8d6);
    border-left: 4px solid var(--primary);
}

.msg-conv-item.has-unread {
    background: #fffbe6;
    font-weight: bold;
}

.msg-conv-avatar img {
    border-radius: 50%;
    border: 2px solid var(--secondary);
    width: 44px;
    height: 44px;
}

.msg-conv-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.msg-conv-name {
    font-family: var(--font-pixel), monospace;
    font-size: 0.85rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.msg-unread-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.msg-conv-annonce {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-conv-preview {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.msg-conv-time {
    font-size: 0.65rem;
    color: var(--text-light);
    white-space: nowrap;
    padding-top: 2px;
}

.msg-empty-list {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
}

.msg-empty-list p {
    font-family: var(--font-pixel), monospace;
    margin-bottom: 6px;
}

/* --- Zone de chat --- */
.msg-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #e8e8e8;
}

.msg-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--secondary);
    color: #fff;
    border-bottom: 2px solid #000;
    min-height: 56px;
}

.msg-back-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}

.msg-chat-header-avatar img {
    border-radius: 50%;
    border: 2px solid var(--yellow);
    width: 36px;
    height: 36px;
}

.msg-chat-header-info {
    flex: 1;
}

.msg-chat-header-info strong {
    font-family: var(--font-pixel), monospace;
    font-size: 0.9rem;
    color: var(--yellow);
    display: block;
}

.msg-annonce-link {
    font-size: 0.7rem;
    color: #aaa;
    text-decoration: none;
}

.msg-annonce-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.msg-role-badge {
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-family: var(--font-pixel), monospace;
    border: 1px solid #000;
}

/* --- Messages (bulles) --- */
.msg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: repeating-linear-gradient(
        0deg,
        #e8e8e8 0px,
        #e8e8e8 28px,
        #ddd 28px,
        #ddd 29px
    );
}

.msg-chat-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.msg-chat-empty span {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.msg-bubble {
    display: flex;
    gap: 8px;
    max-width: 75%;
    animation: msgSlideIn 0.2s ease-out;
}

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

.msg-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-other {
    align-self: flex-start;
}

.msg-bubble-avatar img {
    border-radius: 50%;
    border: 2px solid var(--secondary);
    width: 32px;
    height: 32px;
}

.msg-bubble-content {
    padding: 8px 12px;
    border: 2px solid #000;
    position: relative;
}

.msg-other .msg-bubble-content {
    background: #fff;
    box-shadow: var(--bevel-out);
}

.msg-mine .msg-bubble-content {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--bevel-out);
}

.msg-bubble-text {
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.msg-bubble-time {
    font-size: 0.65rem;
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
}

/* --- Zone de saisie --- */
.msg-chat-compose {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: var(--win95-gray);
    border-top: 2px solid var(--secondary);
}

.msg-chat-compose textarea {
    flex: 1;
    resize: none;
    padding: 8px 12px;
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-in);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: #fff;
    outline: none;
}

.msg-chat-compose textarea:focus {
    border-color: var(--primary);
}

.msg-chat-compose .btn {
    align-self: flex-end;
    white-space: nowrap;
}

/* --- Aucune conversation sélectionnée --- */
.msg-no-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
    text-align: center;
    padding: 40px;
}

.msg-no-icon {
    font-size: 4rem;
    display: block;
}

.msg-no-selection h3 {
    font-family: var(--font-pixel), monospace;
    color: var(--secondary);
}

/* --- Badge messages dans le header --- */
.nav-msg-link {
    position: relative;
    font-size: 1.2rem;
}

.nav-msg-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    border: 1px solid #fff;
    line-height: 1.3;
}

/* Badge non lu dans mon-compte */
.nav-badge-unread {
    background: var(--primary) !important;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Bouton chat sur single annonce */
.btn-start-chat {
    font-family: var(--font-pixel), monospace;
    animation: pulseBadge 2s infinite;
}

/* --- Responsive messagerie --- */
@media (max-width: 768px) {
    .messagerie-page {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 80px);
    }

    .msg-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 50vh;
        border-right: none;
        border-bottom: 2px solid var(--secondary);
    }

    .msg-chat-area {
        min-height: 50vh;
    }

    .msg-back-btn {
        display: inline-block;
    }

    .msg-bubble {
        max-width: 90%;
    }
}

/* =============================================
   ===== ESTIMATION DE PRIX =====
   ============================================= */
.price-estimate-panel {
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    margin-bottom: 16px;
    overflow: hidden;
}

.pe-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--secondary);
    color: var(--yellow);
    font-family: var(--font-pixel), monospace;
    font-size: 0.9rem;
    border-bottom: 2px solid #000;
}

.pe-icon {
    font-size: 1.2rem;
}

.pe-title {
    font-weight: bold;
}

.pe-source {
    margin-left: auto;
    font-size: 0.7rem;
    color: #ccc;
    font-family: var(--font-body);
}

.pe-body {
    padding: 14px;
}

/* Stats en ligne */
.pe-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.pe-stat {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    background: #fff;
    border: 2px solid var(--border);
    box-shadow: var(--bevel-in);
}

.pe-stat-label {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-pixel), monospace;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.pe-stat-value {
    display: block;
    font-family: var(--font-pixel), monospace;
    font-size: 1rem;
    font-weight: bold;
}

.pe-min  { color: #2e7d32; }
.pe-median { color: var(--primary); }
.pe-avg  { color: var(--secondary); }
.pe-max  { color: #c62828; }

/* Barre de prix horizontale */
.pe-bar-container {
    margin-bottom: 12px;
}

.pe-bar {
    position: relative;
    height: 28px;
    background: linear-gradient(90deg, #2e7d32, #66bb6a 25%, #ffc107 50%, #ef5350 75%, #c62828);
    border: 2px solid #000;
    box-shadow: var(--bevel-in);
}

.pe-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-left: 2px dashed rgba(0,0,0,0.4);
    border-right: 2px dashed rgba(0,0,0,0.4);
    z-index: 1;
}

.pe-bar-marker {
    position: absolute;
    top: -2px;
    width: 3px;
    height: 32px;
    z-index: 2;
    transform: translateX(-1px);
}

.pe-marker-q1 {
    background: #fff;
    border: 1px solid #000;
}

.pe-marker-median {
    background: var(--primary);
    border: 1px solid #000;
    width: 4px;
}

.pe-marker-q3 {
    background: #fff;
    border: 1px solid #000;
}

.pe-bar-user {
    position: absolute;
    top: -22px;
    z-index: 5;
    transform: translateX(-50%);
    text-align: center;
    transition: left 0.3s ease;
}

.pe-user-arrow {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1;
}

.pe-user-label {
    display: block;
    font-size: 0.6rem;
    font-family: var(--font-pixel), monospace;
    color: var(--secondary);
    background: var(--yellow);
    border: 1px solid #000;
    padding: 1px 5px;
    white-space: nowrap;
}

.pe-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-family: var(--font-pixel), monospace;
    color: var(--text-light);
    margin-top: 2px;
}

/* Histogramme (5 colonnes) */
.pe-histogram {
    display: flex;
    gap: 4px;
    height: 60px;
    align-items: flex-end;
    margin-bottom: 10px;
    padding: 0 2px;
}

.pe-histo-bar {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.pe-histo-fill {
    background: var(--primary);
    border: 1px solid #000;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
    min-height: 2px;
    transition: height 0.4s ease;
}

.pe-histo-label {
    display: block;
    text-align: center;
    font-size: 0.5rem;
    font-family: var(--font-pixel), monospace;
    color: var(--text-light);
    margin-top: 2px;
    line-height: 1.1;
    overflow: hidden;
    white-space: nowrap;
}

/* Message de positionnement */
.pe-position {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    box-shadow: var(--bevel-out);
    font-family: var(--font-pixel), monospace;
    font-size: 0.8rem;
}

.pe-position-icon {
    font-size: 1.2rem;
}

.pe-pos-low {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}

.pe-pos-good {
    background: #e8f5e9;
    border-color: #43a047;
    color: #2e7d32;
}

.pe-pos-fair {
    background: #fff8e1;
    border-color: var(--primary);
    color: #e65100;
}

.pe-pos-high {
    background: #fff3e0;
    border-color: #ef6c00;
    color: #bf360c;
}

.pe-pos-very-high {
    background: #ffebee;
    border-color: #c62828;
    color: #b71c1c;
}

/* Pas assez de données */
.pe-nodata {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

.pe-nodata span {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

.pe-nodata p {
    font-family: var(--font-pixel), monospace;
    font-size: 0.85rem;
}

/* Loading */
.pe-loading {
    padding: 16px;
    text-align: center;
    font-family: var(--font-pixel), monospace;
    font-size: 0.85rem;
    color: var(--secondary);
    animation: pulseBadge 1.5s infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .pe-stats { flex-wrap: wrap; }
    .pe-stat { min-width: 45%; }
    .pe-source { display: none; }
    .pe-histo-label { font-size: 0.4rem; }
}

/* =============================================
   ===== CHECKBOX PERSONNALISÉE =====
   ============================================= */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: var(--font-body);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--secondary);
    background: #fff;
    box-shadow: var(--bevel-in);
    flex-shrink: 0;
    position: relative;
}

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

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Numéro masqué sur single-annonce */
.tel-masque {
    text-align: center;
    padding: 10px 14px;
    margin-top: 10px;
    background: var(--win95-gray);
    border: 2px solid var(--border);
    box-shadow: var(--bevel-in);
    color: var(--text-light);
}

.tel-masque span {
    display: block;
    font-family: var(--font-pixel), monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

.tel-masque small {
    display: block;
    font-size: 0.7rem;
    margin-top: 4px;
    color: #999;
}

/* =============================================
   ===== CARTE DES RASSEMBLEMENTS =====
   ============================================= */
.rass-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

.rass-hero {
    text-align: center;
    padding: 30px 20px;
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
    margin-bottom: 24px;
}

.rass-hero h1 {
    font-family: var(--font-pixel), monospace;
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
    margin-bottom: 8px;
}

.rass-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.rass-success-msg {
    background: #d4edda;
    border: 2px solid #155724;
    color: #155724;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: var(--bevel-out);
    font-size: 0.9rem;
}

.rass-success-msg a {
    color: var(--primary);
    font-weight: 700;
    margin-left: 8px;
}

/* Layout carte + sidebar */
.rass-map-layout {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.rass-map-container {
    flex: 1;
    min-width: 0;
}

.rass-france-map {
    position: relative;
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-in);
    padding: 10px;
}

.rass-france-map svg {
    width: 100%;
    height: auto;
}

.rass-france-map svg path[data-num] {
    fill: var(--bg);
    stroke: var(--border);
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.15s;
}

.rass-france-map svg path[data-num]:hover {
    fill: var(--primary-light);
    stroke: var(--primary);
    stroke-width: 1;
}

.rass-france-map svg path[data-num].rass-has-events {
    fill: #b8e6b8;
    stroke: #2d8a2d;
}

.rass-france-map svg path[data-num].rass-has-events:hover {
    fill: #8fd68f;
}

.rass-france-map svg path[data-num].rass-has-many {
    fill: #ffda6b;
    stroke: #b38600;
}

.rass-france-map svg path[data-num].rass-has-many:hover {
    fill: #ffc107;
}

.rass-france-map svg path[data-num].rass-active {
    fill: var(--primary) !important;
    stroke: var(--secondary) !important;
    stroke-width: 1.5;
}

/* Légende */
.rass-map-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid var(--border);
}

.legend-0 { background: var(--bg); }
.legend-1 { background: #b8e6b8; }
.legend-3 { background: #ffda6b; }

/* Sidebar événements */
.rass-sidebar {
    flex: 0 0 380px;
    max-height: 600px;
    overflow-y: auto;
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
}

.rass-sidebar-default,
.rass-sidebar-loading,
.rass-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.rass-sidebar-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.rass-sidebar-default h3,
.rass-sidebar-empty h3 {
    font-family: var(--font-pixel), monospace;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.rass-loader {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rassLoader 0.8s linear infinite;
    margin-bottom: 12px;
}

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

/* Sidebar header */
.rass-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--secondary);
    color: var(--yellow);
    position: sticky;
    top: 0;
    z-index: 2;
}

.rass-sidebar-header h3 {
    font-family: var(--font-pixel), monospace;
    font-size: 0.95rem;
    margin: 0;
}

.rass-event-count {
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Event cards dans la sidebar */
.rass-events-list {
    padding: 8px;
}

.rass-event-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--bevel-out);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}

.rass-event-card:hover {
    background: var(--primary-light);
}

.rass-event-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
}

.rass-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rass-event-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.8rem;
    color: var(--text-light);
}

.rass-event-info {
    flex: 1;
    min-width: 0;
}

.rass-event-info h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rass-event-detail {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

/* Section prochains rassemblements */
.rass-upcoming-section {
    margin-top: 40px;
}

.rass-upcoming-section h2 {
    font-family: var(--font-pixel), monospace;
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 16px;
    text-align: center;
}

.rass-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.rass-upcoming-card {
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    overflow: hidden;
    transition: transform 0.15s;
}

.rass-upcoming-card:hover {
    transform: translateY(-3px);
}

.rass-upcoming-link {
    text-decoration: none;
    color: var(--text);
}

.rass-upcoming-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--bg);
}

.rass-upcoming-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rass-upcoming-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--text-light);
}

.rass-upcoming-date-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.rass-upcoming-body {
    padding: 12px;
}

.rass-upcoming-body h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.rass-upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.rass-upcoming-lieu {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Single rassemblement */
.single-rass-layout {
    display: flex;
    gap: 24px;
}

.single-rass-main {
    flex: 1;
    min-width: 0;
}

.single-rass-main h1 {
    font-family: var(--font-pixel), monospace;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.rass-past-badge {
    display: inline-block;
    background: #f0ad4e;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.single-rass-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.rass-meta-item {
    background: var(--win95-gray);
    border: 1px solid var(--border);
    padding: 4px 12px;
    font-size: 0.82rem;
    box-shadow: var(--bevel-out);
}

.rass-meta-date {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

.single-rass-flyer {
    margin-bottom: 24px;
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    overflow: hidden;
}

.single-rass-flyer img {
    width: 100%;
    height: auto;
    display: block;
}

.single-rass-lieu {
    background: var(--win95-gray);
    border: 2px solid var(--border);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--bevel-out);
}

.single-rass-lieu h3 {
    font-family: var(--font-pixel), monospace;
    font-size: 0.95rem;
    color: var(--secondary);
    margin: 0 0 8px 0;
}

.single-rass-content {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.single-rass-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
}

.single-rass-author img {
    border-radius: 50%;
    vertical-align: middle;
}

.single-rass-actions {
    margin-bottom: 20px;
}

.single-rass-sidebar {
    flex: 0 0 300px;
}

.rass-info-card {
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    margin-bottom: 16px;
}

.rass-info-card h3 {
    background: var(--secondary);
    color: var(--yellow);
    padding: 8px 12px;
    font-family: var(--font-pixel), monospace;
    font-size: 0.9rem;
    margin: 0;
}

.rass-info-card ul {
    list-style: none;
    padding: 12px 16px;
    margin: 0;
}

.rass-info-card li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.82rem;
}

.rass-info-card li:last-child {
    border-bottom: none;
}

/* Section rassemblements front-page */
.rass-home-section {
    margin: 30px 0;
}

.rass-home-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rass-home-section h2 {
    font-family: var(--font-pixel), monospace;
    font-size: 1.3rem;
    color: var(--secondary);
}

/* Formulaire ajout rassemblement */
.rass-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

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

.rass-form-header h1 {
    font-family: var(--font-pixel), monospace;
    font-size: 1.5rem;
    color: var(--primary);
}

.rass-form-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rass-form .form-group {
    margin-bottom: 16px;
}

.rass-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.rass-form input[type="text"],
.rass-form input[type="date"],
.rass-form input[type="time"],
.rass-form select,
.rass-form textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    border: 2px solid var(--border);
    box-shadow: var(--bevel-in);
    background: #fff;
}

.rass-form input[type="file"] {
    padding: 8px;
    border: 2px dashed var(--border);
    background: #fff;
    width: 100%;
    cursor: pointer;
}

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

.rass-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.rass-current-flyer {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.rass-current-flyer img {
    max-width: 120px;
    margin-top: 6px;
}

.rass-login-msg {
    text-align: center;
    padding: 60px 20px;
    background: var(--win95-gray);
    border: 2px solid var(--secondary);
    box-shadow: var(--bevel-out);
}

.rass-login-msg h2 {
    font-family: var(--font-pixel), monospace;
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .rass-map-layout {
        flex-direction: column;
    }

    .rass-sidebar {
        flex: none;
        max-height: 400px;
    }

    .single-rass-layout {
        flex-direction: column;
    }

    .single-rass-sidebar {
        flex: none;
    }

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

    .rass-upcoming-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FEEDBACK POPUP — BOÎTE À IDÉES
   ========================================= */

/* --- Bouton flottant --- */
.vagao-feedback-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 28px;
    font-family: var(--font-pixel);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--bevel-out), 5px 5px 0 #000;
    transition: all 0.15s ease;
    animation: vagao-fab-glow 2s ease-in-out infinite alternate;
    letter-spacing: 1px;
}

.vagao-feedback-fab:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--bevel-out), 6px 6px 0 #000, 0 0 20px rgba(255, 102, 0, 0.5);
}

.vagao-feedback-fab:active {
    transform: translateY(0) scale(1);
    box-shadow: var(--bevel-in), 2px 2px 0 #000;
}

@keyframes vagao-fab-glow {
    0% { box-shadow: var(--bevel-out), 5px 5px 0 #000, 0 0 8px rgba(255, 102, 0, 0.3); }
    100% { box-shadow: var(--bevel-out), 5px 5px 0 #000, 0 0 22px rgba(255, 102, 0, 0.6); }
}

/* --- Overlay fond semi-transparent --- */
.vagao-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.vagao-feedback-overlay.active {
    display: flex;
}

/* --- Fenêtre modale --- */
.vagao-feedback-modal {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 8px 8px 0 #000, 0 0 60px rgba(255, 102, 0, 0.25);
}

/* --- Barre de titre Win95 --- */
.vagao-feedback-modal .win95-titlebar {
    background: linear-gradient(90deg, var(--secondary) 0%, #0000CC 50%, var(--secondary) 100%);
    color: var(--white);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-pixel);
    font-size: 18px;
    user-select: none;
}

.vagao-feedback-modal .win95-titlebar-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vagao-feedback-modal .win95-close-btn {
    background: var(--win95-gray);
    border: none;
    box-shadow: var(--bevel-out);
    width: 26px;
    height: 26px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}

.vagao-feedback-modal .win95-close-btn:hover {
    background: var(--danger);
    color: var(--white);
}

.vagao-feedback-modal .win95-close-btn:active {
    box-shadow: var(--bevel-in);
}

/* --- Corps de la fenêtre --- */
.vagao-feedback-modal .win95-body {
    background: var(--win95-gray);
    padding: 20px;
    border: 3px solid;
    border-color: #dfdfdf #000 #000 #dfdfdf;
}

.vagao-feedback-intro {
    font-size: 14px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: var(--primary-light);
    border: 2px solid var(--primary);
    font-family: var(--font);
    line-height: 1.5;
}

/* --- Champs du formulaire --- */
.vagao-feedback-field {
    margin-bottom: 14px;
}

.vagao-feedback-field label {
    display: block;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.vagao-feedback-field input,
.vagao-feedback-field select,
.vagao-feedback-field textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 14px;
    padding: 8px 10px;
    border: none;
    box-shadow: var(--bevel-in);
    background: var(--white);
    color: var(--text);
    outline: none;
    resize: vertical;
    transition: outline 0.15s ease;
}

.vagao-feedback-field input:focus,
.vagao-feedback-field select:focus,
.vagao-feedback-field textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.vagao-feedback-field textarea {
    min-height: 100px;
}

/* --- Boutons d'action --- */
.vagao-feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.vagao-feedback-submit {
    flex: 1;
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--white);
    transition: all 0.12s ease;
}

.vagao-feedback-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
}

.vagao-feedback-submit:active {
    transform: translateY(0);
    box-shadow: var(--bevel-in), 1px 1px 0 #000;
}

.vagao-feedback-submit.loading {
    opacity: 0.6;
    pointer-events: none;
}

.vagao-feedback-cancel {
    padding: 10px 20px;
    background: var(--win95-gray);
    border: none;
    box-shadow: var(--bevel-out), 3px 3px 0 #000;
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.12s ease;
}

.vagao-feedback-cancel:hover {
    background: var(--win95-light);
    transform: translateY(-1px);
}

.vagao-feedback-cancel:active {
    box-shadow: var(--bevel-in);
    transform: translateY(0);
}

/* --- Messages de statut --- */
.vagao-feedback-status {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font);
    font-weight: 700;
}

.vagao-feedback-status.success {
    background: #c3e6c3;
    border: 2px solid var(--success);
    color: #005500;
}

.vagao-feedback-status.error {
    background: #f5c6c6;
    border: 2px solid var(--danger);
    color: #880000;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .vagao-feedback-modal {
        max-width: 100%;
    }
    .vagao-feedback-fab {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 15px;
    }
    .vagao-feedback-modal .win95-body {
        padding: 14px;
    }
}

/* ========================================== */
/* ===== SECTIONS PERSONNALISEES ===== */
/* ========================================== */

/* --- Articles : Section cadre gris sur la homepage --- */
.vagao-articles-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: var(--win95-gray);
    box-shadow: var(--bevel-out), 4px 4px 0 #000;
}
.vagao-articles-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.vagao-articles-section .section-header h2 {
    font-family: var(--font-pixel);
    font-size: 1.6rem;
    color: var(--secondary);
    text-shadow: 1px 1px 0 var(--win95-light);
    margin: 0;
}
.vagao-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.vagao-article-card {
    background: var(--win95-bg);
    border: 2px solid var(--win95-dark);
    border-radius: 6px;
    box-shadow: 3px 3px 0 #000;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
a.vagao-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 #000, 0 0 20px rgba(255, 102, 0, 0.15);
}
.vagao-article-card-empty {
    opacity: 0.4;
    pointer-events: none;
}
.vagao-article-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--dark);
    overflow: hidden;
}
.vagao-article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
a.vagao-article-card:hover .vagao-article-card-cover img {
    transform: scale(1.05);
}
.vagao-article-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
}
.vagao-article-card-date {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #000;
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
}
.vagao-article-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vagao-article-card-title {
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    color: var(--white);
    margin: 0 0 6px;
    line-height: 1.35;
}
.vagao-article-card-excerpt {
    font-size: 0.82rem;
    color: #B0B0B0;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}
.vagao-article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 8px;
    margin-top: auto;
}
.vagao-article-card-author {
    font-size: 0.7rem;
    color: #888;
    font-family: var(--font-pixel);
}
.vagao-article-card-readmore {
    font-size: 0.72rem;
    color: var(--primary);
    font-family: var(--font-pixel);
    font-weight: bold;
    transition: color 0.2s;
}
a.vagao-article-card:hover .vagao-article-card-readmore {
    color: var(--secondary);
}

/* --- Article complet : page dédiée --- */
.vagao-full-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.vagao-full-article-inner {
    width: 100%;
}
.vagao-full-article-back {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 20px;
    padding: 6px 14px;
    background: var(--win95-bg);
    border: 2px solid var(--win95-dark);
    border-radius: 4px;
    box-shadow: 2px 2px 0 #000;
    transition: background 0.2s, color 0.2s;
}
.vagao-full-article-back:hover {
    background: var(--primary);
    color: #000;
}
.vagao-full-article-meta {
    display: flex;
    gap: 18px;
    font-family: var(--font-pixel);
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.vagao-full-article-title {
    font-family: var(--font-pixel);
    font-size: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 0 var(--win95-dark);
    margin: 0 0 14px;
    line-height: 1.35;
}
.vagao-full-article-excerpt {
    font-size: 1.05rem;
    color: #bbb;
    line-height: 1.6;
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    margin: 0 0 24px;
}
.vagao-full-article-cover {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 2px solid var(--win95-dark);
    border-radius: 8px;
    box-shadow: 6px 6px 0 #000;
    margin-bottom: 28px;
}
.vagao-full-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vagao-full-article-card {
    background: var(--win95-bg);
    border: 2px solid var(--win95-dark);
    border-radius: 8px;
    box-shadow: 4px 4px 0 #000;
    padding: 40px 36px;
}
.vagao-full-article-content {
    color: #eee;
    font-size: 1.1rem;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: break-word;
}
.vagao-full-article-content p {
    margin: 0 0 22px;
}
.vagao-full-article-content h2 {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    color: var(--white);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 102, 0, 0.3);
}
.vagao-full-article-content h3 {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--white);
    margin: 28px 0 12px;
}
.vagao-full-article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.vagao-full-article-content a:hover {
    color: var(--secondary);
}
.vagao-full-article-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--win95-dark);
    border-radius: 6px;
    box-shadow: 3px 3px 0 #000;
    margin: 14px 0;
}
.vagao-full-article-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 24px 0;
    padding: 18px 24px;
    background: rgba(255, 102, 0, 0.06);
    border-radius: 0 6px 6px 0;
    color: #ddd;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
}
.vagao-full-article-content ul, .vagao-full-article-content ol {
    margin: 0 0 22px 24px;
    color: #eee;
}
.vagao-full-article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.vagao-full-article-content pre, .vagao-full-article-content code {
    background: #1a1a2e;
    border: 1px solid var(--win95-dark);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9rem;
    color: var(--primary);
}
.vagao-full-article-content pre {
    padding: 14px;
    overflow-x: auto;
    margin: 14px 0;
}
.vagao-full-article-bottom {
    margin-top: 36px;
    text-align: center;
}
@media (max-width: 768px) {
    .vagao-articles-grid {
        grid-template-columns: 1fr;
    }
    .vagao-full-article-card {
        padding: 24px 18px;
    }
    .vagao-full-article-content {
        font-size: 1rem;
    }
    .vagao-full-article-title {
        font-size: 1.4rem;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .vagao-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Bloc Texte --- */
.vagao-section-texte {
    max-width: var(--max-w);
    margin: 36px auto;
    padding: 32px 20px;
}
.vagao-section-texte-inner {
    background: var(--win95-bg);
    border: 2px solid var(--win95-dark);
    border-radius: 8px;
    box-shadow: 4px 4px 0 #000;
    padding: 30px;
}
.vagao-section-title {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    color: var(--secondary);
    text-shadow: 2px 2px 0 var(--win95-dark);
    margin: 0 0 16px;
}
.vagao-section-content {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.7;
}
.vagao-section-content p { margin: 0 0 14px; }
.vagao-section-content a { color: var(--primary); }

/* --- Image + Texte --- */
.vagao-section-imgtxt {
    max-width: var(--max-w);
    margin: 36px auto;
    padding: 0 20px;
}
.vagao-imgtxt-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: var(--win95-bg);
    border: 2px solid var(--win95-dark);
    border-radius: 8px;
    box-shadow: 4px 4px 0 #000;
    overflow: hidden;
}
.vagao-imgtxt-reverse .vagao-imgtxt-inner {
    direction: rtl;
}
.vagao-imgtxt-reverse .vagao-imgtxt-inner > * {
    direction: ltr;
}
.vagao-imgtxt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}
.vagao-imgtxt-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    font-size: 64px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
}
.vagao-imgtxt-content {
    padding: 30px;
}

/* --- Call to Action --- */
.vagao-section-cta {
    margin: 36px 0;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}
.vagao-cta-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.vagao-cta-title {
    font-family: var(--font-pixel);
    font-size: 1.6rem;
    color: #000;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
    margin: 0 0 10px;
}
.vagao-cta-subtitle {
    font-size: 1.05rem;
    color: rgba(0,0,0,0.7);
    margin: 0 0 24px;
}
.vagao-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: var(--primary);
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.vagao-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
    color: var(--secondary);
}

/* --- Galerie --- */
.vagao-section-galerie {
    max-width: var(--max-w);
    margin: 36px auto;
    padding: 0 20px;
}
.vagao-galerie-inner {
    text-align: center;
}
.vagao-galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.vagao-galerie-item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid var(--win95-dark);
    border-radius: 6px;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.2s;
}
.vagao-galerie-item:hover {
    transform: scale(1.03);
}
.vagao-galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Séparateur --- */
.vagao-section-sep {
    max-width: var(--max-w);
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}
.vagao-sep-line span {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.vagao-sep-space {
    height: 40px;
}
.vagao-sep-space span { display: none; }
.vagao-sep-dots span {
    display: block;
    height: 2px;
    border-bottom: 3px dotted var(--primary);
}

/* --- HTML libre --- */
.vagao-section-html {
    max-width: var(--max-w);
    margin: 36px auto;
    padding: 0 20px;
}
.vagao-html-inner {
    color: var(--white);
    line-height: 1.6;
}

/* --- Sections custom responsive --- */
@media (max-width: 768px) {
    .vagao-imgtxt-inner {
        grid-template-columns: 1fr;
    }
    .vagao-imgtxt-image img {
        min-height: 200px;
    }
    .vagao-cta-title {
        font-size: 1.2rem;
    }
    .vagao-galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   MODERN RETRO UI LAYER (90s + 2026)
   Non destructif: surcharge visuelle globale
   ========================================= */

:root {
    --surface: #d3d3d3;
    --surface-2: #e8e8e8;
    --panel-dark: #1d2333;
    --ink-soft: #2f3240;
    --ring: rgba(255, 102, 0, 0.35);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,0.12), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(0,0,0,0.14), transparent 30%),
        var(--bg);
    background-attachment: fixed;
}

.site-header {
    backdrop-filter: blur(5px) saturate(120%);
    background: linear-gradient(180deg, #dbdbdb 0%, #bfbfbf 100%);
    box-shadow: var(--bevel-out), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.main-nav a {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    box-shadow: var(--bevel-out), 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn {
    border-radius: 8px;
    box-shadow: var(--bevel-out), 0 6px 14px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--bevel-in), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(1px);
}

.search-bar {
    border-radius: 10px;
    background: linear-gradient(180deg, #d8d8d8 0%, #c3c3c3 100%);
    box-shadow: var(--bevel-out), var(--shadow-soft);
}

.search-bar input,
.search-bar select,
.form-group input,
.form-group select,
.form-group textarea,
.filter-group select,
.sort-select,
.rass-form input[type="text"],
.rass-form input[type="date"],
.rass-form input[type="time"],
.rass-form select,
.vagao-feedback-field input,
.vagao-feedback-field select,
.vagao-feedback-field textarea {
    border-radius: 8px;
    border: 1px solid #8e8e8e;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(0,0,0,0.06);
}

.search-bar input:focus,
.search-bar select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-group select:focus,
.sort-select:focus,
.vagao-feedback-field input:focus,
.vagao-feedback-field select:focus,
.vagao-feedback-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring), inset 0 1px 0 rgba(255,255,255,0.7);
}

.annonce-card,
.vagao-article-card,
.vagao-galerie-item,
.account-annonce-row {
    border-radius: 12px;
    box-shadow: var(--bevel-out), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.annonce-card:hover,
a.vagao-article-card:hover,
.account-annonce-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--bevel-out), 0 14px 28px rgba(0, 0, 0, 0.3);
}

.vagao-articles-section,
.form-container,
.account-sidebar,
.account-content {
    border-radius: 12px;
    box-shadow: var(--bevel-out), var(--shadow-soft);
}

.account-nav a {
    border-radius: 8px;
}

.hero {
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12), 0 18px 30px rgba(0,0,0,0.28);
}

.hero h1,
.vagao-cta-title,
.section-header h2 {
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .site-header {
        backdrop-filter: none;
    }
    .annonce-card,
    .vagao-article-card,
    .form-container,
    .account-sidebar,
    .account-content {
        border-radius: 10px;
    }
}

/* =========================================
   MARKETPLACE UI LAYER (LeBonCoin-like)
   Moderne, clair, lisible - avec touches rétro
   ========================================= */

:root {
    --primary: #ff6e14;
    --primary-dark: #e85f0a;
    --secondary: #2e3a59;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f5f6f8;
    --win95-gray: #ffffff;
    --win95-dark: #d1d5db;
    --win95-light: #f3f4f6;
    --border: #d9dde5;
    --ring: rgba(255, 110, 20, 0.22);
}

body {
    color: var(--text);
    background: var(--bg);
    background-image: none;
    font-size: 15px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.site-logo {
    color: var(--secondary);
    text-shadow: none;
}

.main-nav a {
    background: transparent;
    box-shadow: none;
    border: 1px solid transparent;
    color: #3b4457;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 10px;
    padding: 8px 12px;
}

.main-nav a:hover {
    background: #fff2ea;
    border-color: #ffd7c1;
    color: var(--primary-dark);
    box-shadow: none;
    transform: none;
}

.btn {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(255, 110, 20, 0.28);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: #fff;
    color: var(--secondary);
    border-color: #ced4df;
}

.hero {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: var(--secondary);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
}

.hero::before {
    height: 3px;
    background: linear-gradient(90deg, #ffd4bd, var(--primary), #ffd4bd);
}

.hero h1 {
    text-shadow: none;
    color: var(--secondary);
}

.hero p {
    color: var(--text-light);
}

.search-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.search-bar label,
.form-group label {
    color: #4b5563;
    letter-spacing: 0;
}

.search-bar input,
.search-bar select,
.form-group input,
.form-group select,
.form-group textarea,
.filter-group select,
.sort-select,
.rass-form input[type="text"],
.rass-form input[type="date"],
.rass-form input[type="time"],
.rass-form select,
.vagao-feedback-field input,
.vagao-feedback-field select,
.vagao-feedback-field textarea {
    border: 1px solid #d4d9e3;
    background: #fff;
    border-radius: 10px;
    box-shadow: none;
}

.search-bar input:focus,
.search-bar select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-group select:focus,
.sort-select:focus,
.vagao-feedback-field input:focus,
.vagao-feedback-field select:focus,
.vagao-feedback-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
}

.section-header h2,
.vagao-cta-title,
.vagao-article-card-title,
.annonce-card .card-title {
    letter-spacing: 0;
}

.annonce-card,
.vagao-article-card,
.vagao-galerie-item,
.account-annonce-row,
.form-container,
.account-sidebar,
.account-content,
.vagao-articles-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.annonce-card:hover,
a.vagao-article-card:hover,
.account-annonce-row:hover,
.vagao-galerie-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.13);
}

.annonce-card .card-price,
.vagao-article-card-readmore {
    color: var(--primary-dark);
}

.account-nav a {
    border-radius: 10px;
    border: 1px solid transparent;
}

.account-nav a:hover {
    background: #fff5ef;
    border-color: #ffd7c1;
}

.account-nav a.active {
    background: #ffe8dc;
    color: #af4600;
    border-color: #ffc6a2;
}

.footer,
footer.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .search-bar {
        border-radius: 12px;
    }
}

/* =========================================
   ULTRA MARKETPLACE UI (conversion oriented)
   ========================================= */

:root {
    --primary: #ff6e14;
    --primary-dark: #de5d0f;
    --secondary: #1f2a44;
    --text: #101828;
    --text-light: #667085;
    --bg: #f4f6fb;
    --white: #ffffff;
    --border: #e3e8ef;
}

body {
    background: linear-gradient(180deg, #f7f8fb 0%, #f1f4fa 100%);
    color: var(--text);
    line-height: 1.55;
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.header-inner {
    height: 68px;
}

.site-logo {
    font-family: var(--font-pixel);
    font-size: 1.15rem;
    color: var(--secondary);
}

.main-nav ul {
    gap: 8px;
}

.main-nav a {
    background: transparent;
    border: 1px solid transparent;
    padding: 9px 14px;
    border-radius: 10px;
    color: #344054;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: none;
}

.main-nav a:hover {
    background: #fff2ea;
    border-color: #ffd8c2;
    color: var(--primary-dark);
}

.btn {
    border-radius: 12px;
    border: 1px solid #d6deea;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.12);
}

.btn-primary {
    background: linear-gradient(180deg, #ff7f2d 0%, #ff6e14 100%);
    border-color: #ff6e14;
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 110, 20, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #ff7520 0%, #e55f0f 100%);
    border-color: #e55f0f;
}

.btn-outline {
    border-color: #ced5e3;
    color: #344054;
}

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    padding: 48px 0 64px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    color: var(--secondary);
    text-shadow: none;
}

.hero p {
    color: var(--text-light);
    font-family: var(--font);
    font-size: 1rem;
    max-width: 760px;
    margin: 0 auto 26px;
}

.search-bar-container {
    margin-top: -26px;
}

.search-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 22px 40px rgba(16, 24, 40, 0.1);
    padding: 18px;
}

.search-bar input,
.search-bar select,
.form-group input,
.form-group select,
.form-group textarea,
.filter-group select,
.sort-select {
    background: #fff;
    border: 1px solid #d4dbe7;
    border-radius: 11px;
    min-height: 42px;
    color: #1d2939;
    box-shadow: none;
}

.search-bar input:focus,
.search-bar select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-group select:focus,
.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 110, 20, 0.18);
}

.annonce-card,
.vagao-article-card,
.rass-upcoming-card,
.account-annonce-row,
.form-container,
.account-sidebar,
.account-content,
.vagao-articles-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.annonce-card:hover,
a.vagao-article-card:hover,
.rass-upcoming-card:hover,
.account-annonce-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(16, 24, 40, 0.14);
}

.section-header h2,
.rass-upcoming-section h2,
.vagao-articles-section .section-header h2 {
    font-family: var(--font-pixel);
    color: var(--secondary);
}

.account-nav a {
    border-radius: 12px;
    border: 1px solid transparent;
}

.account-nav a:hover {
    background: #fff4ee;
    border-color: #ffd8c2;
}

.account-nav a.active {
    background: #ffe8dc;
    border-color: #ffc39f;
    color: #af4706;
}

/* Carte rassemblements + encarts pub latéraux */
.rass-map-layout {
    gap: 26px;
}

.rass-map-container {
    flex: 1;
}

.rass-map-with-ads {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    gap: 14px;
    align-items: stretch;
}

.rass-france-map {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
    padding: 14px;
}

.rass-france-map svg path[data-num] {
    fill: #f0f4fb;
    stroke: #c9d3e5;
}

.rass-france-map svg path[data-num]:hover {
    fill: #ffe7d8;
    stroke: var(--primary);
}

.rass-ad-slot {
    display: block;
}

.rass-ad-slot-inner {
    height: 100%;
    min-height: 420px;
    border: 1px dashed #cfd8e6;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    gap: 10px;
}

.rass-ad-badge {
    display: inline-block;
    font-size: 0.72rem;
    background: #fff1e8;
    color: #b34b08;
    border: 1px solid #ffd8c1;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
}

.rass-ad-slot-inner h4 {
    margin: 0;
    color: var(--secondary);
    font-family: var(--font-pixel);
    font-size: 1.2rem;
}

.rass-ad-slot-inner p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.4;
}

.rass-sidebar {
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
}

footer.site-footer,
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
}

@media (max-width: 1200px) {
    .rass-map-with-ads {
        grid-template-columns: 1fr;
    }
    .rass-ad-slot {
        display: none;
    }
}

/* =========================================
   SINGLE ANNONCE: slider + watermark
   ========================================= */

.annonce-gallery .main-image.annonce-slider {
    position: relative;
    min-height: 440px;
    height: auto;
    display: block;
    padding: 10px;
    overflow: hidden;
}

.annonce-slides {
    position: relative;
    width: 100%;
    min-height: 420px;
}

.annonce-slide {
    display: none;
    position: relative;
    width: 100%;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.annonce-slide.is-active {
    display: flex;
}

.annonce-slide img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center center;
    background: #f5f7fb;
    border-radius: 10px;
}

.annonce-no-image {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #9aa3b2;
}

.annonce-watermark {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 700;
    pointer-events: none;
}

.annonce-watermark img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.75;
}

.annonce-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.65);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
}

.annonce-slider-nav.prev { left: 14px; }
.annonce-slider-nav.next { right: 14px; }

.annonce-slider-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.58);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 4;
}

.annonce-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.annonce-thumb {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    width: 84px;
    height: 60px;
    cursor: pointer;
    flex: 0 0 auto;
    overflow: hidden;
}

.annonce-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.annonce-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 110, 20, 0.18);
}

@media (max-width: 768px) {
    .annonce-gallery .main-image.annonce-slider,
    .annonce-slides,
    .annonce-slide {
        min-height: 300px;
    }
    .annonce-slide img {
        max-height: 300px;
    }
}

/* =========================================
   SINGLE ANNONCE - fine tuning UX galerie
   ========================================= */

.annonce-gallery .main-image.annonce-slider {
    background: linear-gradient(180deg, #eef2f8 0%, #e8edf5 100%);
    border-radius: 14px;
    min-height: 520px;
    padding: 14px;
}

.annonce-slides,
.annonce-slide {
    min-height: 492px;
}

.annonce-slide {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
}

.annonce-slide img {
    width: 100%;
    height: 492px;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    background: #fff;
}

.annonce-watermark {
    left: 16px;
    bottom: 14px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    color: rgba(16, 24, 40, 0.34);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: lowercase;
}

.annonce-watermark img {
    display: none;
}

.annonce-slider-counter {
    right: 14px;
    bottom: 14px;
    font-size: 0.72rem;
    padding: 4px 8px;
    background: rgba(17, 24, 39, 0.44);
}

.annonce-thumbs {
    margin-top: 12px;
    padding: 2px 2px 4px;
}

.annonce-thumb {
    width: 92px;
    height: 68px;
    border-radius: 10px;
    border-color: #d8deea;
}

.annonce-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 110, 20, 0.17);
}

.annonce-thumb img {
    object-fit: cover;
    object-position: center center;
}

/* Lightbox zoom */
.annonce-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 24px;
}

.annonce-lightbox.is-open {
    display: flex;
}

.annonce-lightbox img {
    max-width: min(92vw, 1500px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.annonce-lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.annonce-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

.annonce-lightbox-nav.prev {
    left: 20px;
}

.annonce-lightbox-nav.next {
    right: 20px;
}

.annonce-lightbox-counter {
    position: absolute;
    bottom: 18px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,0.16);
}

@media (max-width: 768px) {
    .annonce-gallery .main-image.annonce-slider {
        min-height: 320px;
        padding: 8px;
    }
    .annonce-slides,
    .annonce-slide {
        min-height: 304px;
    }
    .annonce-slide img {
        height: 304px;
    }
    .annonce-watermark {
        font-size: 0.95rem;
        left: 10px;
        bottom: 8px;
    }
    .annonce-lightbox {
        padding: 12px;
    }
}

/* =========================================
   SINGLE ANNONCE - Carte localisation
   ========================================= */

.annonce-location-card {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcff;
}

.annonce-location-map {
    height: 290px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d7ddeb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.annonce-location-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.annonce-route-infos {
    font-size: 0.86rem;
    color: #3a465c;
    font-weight: 700;
}

.annonce-location-note {
    display: block;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 0.78rem;
}

.annonce-location-empty {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* =========================================
   RESPONSIVE MASTER (mobile + tablette)
   ========================================= */

/* Tablette */
@media (max-width: 1024px) {
    .header-inner {
        height: auto;
        min-height: 62px;
        padding-top: 10px;
        padding-bottom: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-logo {
        max-width: 100%;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .main-nav ul {
        width: max-content;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .search-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .search-bar .field {
        min-width: 0;
    }

    .search-bar .btn {
        width: 100%;
    }

    .annonces-grid,
    .rass-upcoming-grid,
    .vagao-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    /* Section articles avec styles inline legacy */
    section[style*="max-width:1200px"] > div[style*="grid-template-columns:repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .single-annonce-layout {
        padding: 0 14px;
    }

    .annonce-detail {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .annonce-sidebar {
        order: 2;
    }

    .annonce-info {
        order: 1;
    }

    .annonce-gallery .main-image.annonce-slider {
        min-height: 420px;
    }

    .annonce-slides,
    .annonce-slide {
        min-height: 390px;
    }

    .annonce-slide img {
        height: 390px;
    }

    .annonce-location-map {
        height: 250px;
    }

    .rass-map-layout {
        flex-direction: column;
        gap: 14px;
    }

    .rass-sidebar {
        max-height: none;
    }

    .account-layout {
        grid-template-columns: 1fr;
        display: grid;
        gap: 12px;
    }

    .account-sidebar {
        position: static;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .hero {
        padding: 28px 0 38px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        line-height: 1.2;
        padding: 0 10px;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 12px;
    }

    .search-bar-container {
        margin-top: -16px;
        padding: 0 12px;
    }

    .search-bar {
        grid-template-columns: 1fr;
        border-radius: 12px;
        padding: 12px;
    }

    .btn,
    .main-nav a {
        min-height: 42px;
    }

    .annonces-section,
    .rass-home-section,
    .vagao-section-galerie,
    .vagao-section-html {
        padding-left: 12px;
        padding-right: 12px;
    }

    .annonces-grid,
    .rass-upcoming-grid,
    .vagao-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    section[style*="max-width:1200px"] > div[style*="grid-template-columns:repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .annonce-card .card-image,
    .rass-upcoming-thumb,
    .vagao-article-card-cover {
        aspect-ratio: 16/10;
        height: auto;
    }

    .single-annonce-layout {
        margin: 14px auto;
        padding: 0 10px;
    }

    .annonce-gallery {
        margin-bottom: 10px;
    }

    .annonce-gallery .main-image.annonce-slider {
        min-height: 300px;
        padding: 8px;
    }

    .annonce-slides,
    .annonce-slide {
        min-height: 286px;
    }

    .annonce-slide img {
        height: 286px;
    }

    .annonce-slider-nav {
        width: 34px;
        height: 34px;
    }

    .annonce-thumb {
        width: 76px;
        height: 58px;
    }

    .annonce-info,
    .annonce-sidebar .price-box,
    .annonce-sidebar .seller-box,
    .annonce-location-card,
    .form-container,
    .account-sidebar,
    .account-content {
        border-radius: 12px;
        padding: 14px;
    }

    /* blocs inline dans single-annonce */
    .annonce-info > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .annonce-location-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .annonce-location-actions .btn {
        width: 100%;
    }

    .annonce-location-map {
        height: 220px;
    }

    .rass-france-map {
        padding: 8px;
    }

    .rass-sidebar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .account-annonce-row {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 8px 10px;
        align-items: start;
    }

    .annonce-row-actions {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .annonce-row-actions .btn {
        flex: 1;
        min-width: 110px;
    }
}

/* Très petits écrans */
@media (max-width: 420px) {
    .header-inner {
        padding-left: 10px;
        padding-right: 10px;
    }

    .vagao-logo-text {
        font-size: 0.9rem;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

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

    .annonce-slide img {
        height: 250px;
    }

    .annonce-lightbox-nav {
        width: 38px;
        height: 38px;
    }
}

/* =========================================
   MENU LATERAL (drawer)
   ========================================= */

/* Desktop: menu horizontal classique */
.nav-drawer-toggle,
.nav-drawer-overlay,
.site-header .main-nav .main-nav-head {
    display: none;
}

.site-header .main-nav {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: auto;
    transform: none;
    transition: none;
    overflow: visible;
    padding: 0;
}

.site-header .main-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
}

.site-header .main-nav li {
    width: auto;
}

.site-header .main-nav a {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile/tablette: activer le drawer */
@media (max-width: 1024px) {
    .nav-drawer-toggle {
        display: inline-flex;
    }

    .site-header .main-nav .main-nav-head {
        display: flex;
    }

    .site-header .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 86vw);
        height: 100vh;
        background: #fff;
        border-left: 1px solid #e2e8f0;
        box-shadow: -14px 0 30px rgba(16, 24, 40, 0.14);
        z-index: 10001;
        transform: translateX(105%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        padding: 12px;
    }

    .site-header .main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .site-header .main-nav li {
        width: 100%;
    }

    .site-header .main-nav a {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid #e5eaf3;
        border-radius: 10px;
        background: #fff;
        color: #2f3b52;
        box-shadow: none;
    }

    .site-header .main-nav a.btn {
        justify-content: center;
    }

    .nav-drawer-overlay {
        display: block;
    }
}

.nav-drawer-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid #d8dbe3;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.nav-drawer-toggle span {
    width: 18px;
    height: 2px;
    background: #2f3a54;
    border-radius: 2px;
    display: block;
}

.site-header .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 86vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -14px 0 30px rgba(16, 24, 40, 0.14);
    z-index: 10001;
    transform: translateX(105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    padding: 12px;
}

.site-header .main-nav .main-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 2px 2px 8px;
    border-bottom: 1px solid #edf1f7;
}

.site-header .main-nav .main-nav-head strong {
    font-size: 1.05rem;
    color: #1f2a44;
}

.nav-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid #dde2ec;
    border-radius: 8px;
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.site-header .main-nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.site-header .main-nav li {
    width: 100%;
}

.site-header .main-nav a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e5eaf3;
    border-radius: 10px;
    background: #fff;
    color: #2f3b52;
    box-shadow: none;
}

.site-header .main-nav a.btn {
    justify-content: center;
}

.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.nav-drawer-open .site-header .main-nav {
    transform: translateX(0);
}

body.nav-drawer-open .nav-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .nav-drawer-toggle {
        width: 42px;
        height: 42px;
    }
    .site-header .main-nav {
        width: min(340px, 92vw);
    }
}

/* Sécurité: sur desktop, forcer le menu horizontal */
@media (min-width: 1025px) {
    .nav-drawer-toggle,
    .nav-drawer-overlay,
    .site-header .main-nav .main-nav-head {
        display: none !important;
    }

    .site-header .main-nav {
        position: static !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .site-header .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        gap: 8px !important;
    }

    .site-header .main-nav li {
        width: auto !important;
    }

    .site-header .main-nav a {
        width: auto !important;
        min-height: 0 !important;
        display: inline-flex !important;
        justify-content: center !important;
    }
}

/* =========================================
   VIGNETTES: recadrage auto plus propre
   ========================================= */

.annonce-card .card-image img,
.rass-upcoming-thumb img,
.rass-event-thumb img,
.vagao-article-card-cover img,
.annonce-row-thumb img {
    object-fit: cover;
    object-position: center 28%;
}

/* Prévisualisation upload: éviter la coupe brutale */
.photo-preview-grid .preview-item {
    background: #f4f7fb;
}

.photo-preview-grid .preview-item img,
.preview-thumb {
    object-fit: contain;
    object-position: center center;
    background: #f4f7fb;
    padding: 2px;
}
