:root {
    --accent: #ff6233;
    --text-main: #0f172a;
    --text-light: #64748b;
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --semantic-bg: #f8fafc;
}

/* 🌙 DARK MODE COMPLET */
html[data-theme="dark"],
html[data-pd-theme="dark"] {
    --text-main: #f8fafc;
    --text-light: #94a3b8;
    --page-bg: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --semantic-bg: #1e293b;
}

body {
    background: var(--page-bg);
    color: var(--text-main);
}

.gallery-index-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 100px 20px;
}

/* --- HEADER & BREADCRUMB --- */
.v3-spe-header {
    text-align: center;
    padding: 100px 20px 80px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.v3-hero-breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v3-hero-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.v3-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.v3-hero-breadcrumb a:hover {
    color: var(--accent);
}

.v3-hero-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

.v3-hero-breadcrumb span[aria-current="page"] {
    color: #ffffff;
}

.v3-spe-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.v3-spe-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

/* --- GRID & CARDS --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 500px;
    padding: 30px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 50%, rgba(15,23,42,0.1) 100%);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 98, 51, 0.2);
    border-color: var(--accent);
}

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

.gallery-card .card-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 10px;
}

.gallery-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.gallery-card p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px;
    background: var(--semantic-bg);
    color: var(--text-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* --- BLOC SÉMANTIQUE SEO --- */
.v3-semantic-seo-block {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--semantic-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.semantic-content h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-main);
}

.semantic-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.semantic-content strong {
    color: var(--text-main);
}

.semantic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-tag {
    padding: 6px 14px;
    background: var(--page-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
