/* ============================================================================
 * HOME GALERIE V3 — STARK EDITORIAL (THÈME VERT ÉMERAUDE)
 * ============================================================================ */

/* Variables de couleurs spécifiques aux Galeries */
:root {
    --gal-accent: #059669; /* Vert Émeraude */
    --gal-accent-hover: #047857;
    --gal-accent-soft: rgba(5, 150, 105, 0.1);
}

html[data-theme="dark"], html.theme-dark {
    --gal-accent: #10b981; /* Vert plus lumineux pour le sombre */
    --gal-accent-hover: #34d399;
    --gal-accent-soft: rgba(16, 185, 129, 0.15);
}

/* Forcer le fond Dark/Light sur tout le body pour cette page */
body.v3-page-index {
    background-color: var(--v3-bg, #fbfaf9);
    color: var(--v3-text, #2c2c2c);
    transition: background-color 0.3s ease, color 0.3s ease;
}
html[data-theme="dark"] body.v3-page-index {
    background-color: #121212;
    color: #e0e0e0;
}

/* ----------------------------------------------------------------------------
 * LE HERO AVEC IMAGE (Inspiré des Chroniques)
 * ---------------------------------------------------------------------------- */
.v3-hero-header {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #fff;
    border-bottom: 1px solid var(--stark-border);
    overflow: hidden;
}

.v3-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.v3-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v3-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 50%, rgba(0,0,0,0.8) 100%);
}

.v3-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--v3-max-width, 1280px);
    margin: 0 auto;
    padding: 0 40px;
    margin-top: 40px;
}

/* Application du THÈME VERT sur le Hero */
.galerie-theme .v3-breadcrumbs-stark {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}
.galerie-theme .v3-breadcrumbs-stark a { color: #fff; text-decoration: none; transition: color 0.2s; }
.galerie-theme .v3-breadcrumbs-stark a:hover { color: var(--gal-accent); }
.galerie-theme .v3-bc-sep { font-size: 1.2rem; color: var(--gal-accent); line-height: 1; }

.galerie-theme .v3-kicker-stark {
    display: inline-block;
    background: var(--gal-accent);
    color: #fff;
    padding: 6px 14px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
}

.galerie-theme .v3-title-stark {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
}
.galerie-theme .v3-title-stark::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--gal-accent);
}

.galerie-theme .v3-desc-stark {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* ----------------------------------------------------------------------------
 * GRILLE ET CARTES STARK (VERTES)
 * ---------------------------------------------------------------------------- */
.v3-media-grid-section { padding: 60px 0; }
.v3-grid-container { max-width: var(--v3-max-width, 1280px); margin: 0 auto; padding: 0 20px; }
.v3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.v3-card-stark {
    display: flex;
    flex-direction: column;
    background: var(--v3-surface);
    border: 1px solid var(--stark-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
html[data-theme="dark"] .v3-card-stark { border-color: #333; background: #1e1e1e; }
.v3-card-stark:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
html[data-theme="dark"] .v3-card-stark:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.4); }

.v3-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

.v3-card-img-wrap {
    position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
    border-bottom: 1px solid var(--stark-border);
}
html[data-theme="dark"] .v3-card-img-wrap { border-bottom-color: #333; }

.v3-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.v3-card-stark:hover .v3-card-img-wrap img { transform: scale(1.05); }

.v3-card-body { padding: 25px; flex-grow: 1; }
.v3-card-title {
    font-family: var(--font-sans); font-size: 1.2rem; font-weight: 800;
    margin: 0 0 10px 0; color: var(--v3-text); text-transform: uppercase; letter-spacing: 0.5px;
}
.galerie-theme .v3-sig { color: var(--gal-accent); }
.v3-card-desc { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.5; color: var(--v3-text-mut); margin: 0; }

.v3-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; border-top: 1px solid var(--stark-border);
    font-family: var(--font-sans); font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
    color: var(--v3-text-mut); transition: color 0.2s;
}
html[data-theme="dark"] .v3-card-footer { border-top-color: #333; }

.galerie-theme .v3-card-stark:hover .v3-card-footer { color: var(--gal-accent); }

.v3-card-arrow {
    width: 30px; height: 30px; border-radius: 50%; background: var(--v3-bg);
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
html[data-theme="dark"] .v3-card-arrow { background: #121212; }

.galerie-theme .v3-card-stark:hover .v3-card-arrow { background: var(--gal-accent); color: #fff; }


/* ----------------------------------------------------------------------------
 * BLOC SÉMANTIQUE SEO SUBLIMÉ (Bas de page)
 * ---------------------------------------------------------------------------- */
.gal-v3-seo-wrapper {
    max-width: var(--v3-max-width, 1280px);
    margin: 20px auto 80px;
    padding: 0 20px;
}

.gal-v3-seo-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--v3-surface);
    padding: 40px;
    border: 1px solid var(--stark-border);
    border-left: 6px solid var(--gal-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
html[data-theme="dark"] .gal-v3-seo-block {
    border-color: #333; background: #1e1e1e; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gal-v3-seo-content {
    flex: 1;
    min-width: 300px;
}

.gal-v3-seo-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--v3-text);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.gal-v3-seo-text {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--v3-text-mut);
    margin: 0 0 10px 0;
}
.gal-v3-seo-text:last-child { margin-bottom: 0; }

/* Bouton Vert Accent */
.v3-btn-stark-accent {
    display: inline-block;
    background: var(--gal-accent);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.v3-btn-stark-accent:hover {
    background: var(--gal-accent-hover);
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .v3-hero-content { padding: 0 20px; }
    .v3-title-stark { font-size: 2.5rem; }
    .gal-v3-seo-block { flex-direction: column; text-align: center; padding: 30px 20px; }
    .v3-btn-stark-accent { width: 100%; text-align: center; }
}
