/* ============================================
   Yann.Art - Design System
   Palette sombre + accent turquoise
   Mobile-first, système 8px, BEM-like
   ============================================ */

/* ============================================
   VARIABLES CSS (Design Tokens)
   ============================================ */

:root {
    /* Backgrounds */
    --ya-bg-primary: #1D252D;
    --ya-bg-alt: #232B35;
    --ya-bg-dark: #161C23;

    /* Accent (Turquoise) */
    --ya-accent-400: #2EE0EF;
    --ya-accent-500: #0BCFE0;
    --ya-accent-600: #09B5C8;
    --ya-accent-700: #0899A8;

    /* Text */
    --ya-text-primary: #F0F2F5;
    --ya-text-secondary: #94A3B8;
    --ya-text-muted: #8796AB; /* WCAG AA : ratio ≥ 4.5:1 sur #1D252D et #161C23 (footer) */
    --ya-text-dark: #1D252D;

    /* Surfaces */
    --ya-surface-light: #F8FAFC;
    --ya-surface-100: #F1F5F9;
    --ya-surface-200: #E2E8F0;

    /* Borders */
    --ya-border: #2D3748;
    --ya-border-light: #3D4A5C;

    /* State */
    --ya-success: #10B981;
    --ya-error: #EF4444;
    --ya-white: #FFFFFF;

    /* Shadows */
    --ya-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --ya-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --ya-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --ya-shadow-accent: 0 4px 16px rgba(11, 207, 224, 0.25);

    /* Typography */
    --ya-font-titles: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ya-font-text: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ya-text-xs: 0.75rem;
    --ya-text-sm: 0.875rem;
    --ya-text-base: 1rem;
    --ya-text-lg: 1.25rem;
    --ya-text-xl: 1.5rem;
    --ya-text-2xl: 2rem;
    --ya-text-3xl: 2.5rem;
    --ya-text-4xl: 3.5rem;

    /* Spacing (système 8px) */
    --ya-space-xs: 8px;
    --ya-space-sm: 16px;
    --ya-space-md: 24px;
    --ya-space-lg: 32px;
    --ya-space-xl: 48px;
    --ya-space-2xl: 64px;
    --ya-space-3xl: 96px;

    /* Layout */
    --ya-container-max: 1200px;
    --ya-radius: 8px;
    --ya-radius-lg: 12px;
    --ya-radius-xl: 16px;

    /* Transitions */
    --ya-transition: 0.25s ease;
    --ya-transition-slow: 0.4s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ya-font-text);
    font-size: var(--ya-text-base);
    line-height: 1.6;
    color: var(--ya-text-primary);
    background-color: var(--ya-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ya-accent-500);
    text-decoration: none;
    transition: color var(--ya-transition);
}

a:hover {
    color: var(--ya-accent-400);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--ya-accent-500);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip to content (accessibilité) */
.ya-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--ya-accent-500);
    color: var(--ya-text-dark);
    padding: var(--ya-space-xs) var(--ya-space-sm);
    z-index: 9999;
    font-weight: 600;
    border-radius: 0 0 var(--ya-radius) 0;
    transition: top 0.2s ease;
}

.ya-skip-link:focus {
    top: 0;
    outline: 2px solid var(--ya-text-dark);
    outline-offset: -2px;
}

/* ============================================
   LAYOUT
   ============================================ */

.ya-container {
    max-width: var(--ya-container-max);
    margin: 0 auto;
    padding: 0 var(--ya-space-md);
}

.ya-section {
    padding: var(--ya-space-3xl) 0;
}

.ya-section-alt {
    background-color: var(--ya-bg-alt);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ya-font-titles);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ya-text-primary);
}

.ya-title-1 {
    font-size: var(--ya-text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ya-title-2 {
    font-size: var(--ya-text-2xl);
    font-weight: 600;
}

.ya-title-3 {
    font-size: var(--ya-text-xl);
    font-weight: 600;
}

.ya-title-4 {
    font-size: var(--ya-text-lg);
    font-weight: 600;
}

.ya-text {
    color: var(--ya-text-secondary);
    margin-bottom: var(--ya-space-sm);
    line-height: 1.7;
}

.ya-text-lead {
    font-size: var(--ya-text-lg);
    color: var(--ya-text-primary);
    line-height: 1.7;
}

.ya-highlight {
    color: var(--ya-accent-500);
    font-weight: 600;
}

.ya-text-muted {
    color: var(--ya-text-muted);
    font-size: var(--ya-text-sm);
}

@media (min-width: 768px) {
    .ya-title-1 {
        font-size: var(--ya-text-4xl);
    }
    .ya-title-2 {
        font-size: var(--ya-text-3xl);
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.ya-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(29, 37, 45, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ya-border);
    transition: background var(--ya-transition);
}

.ya-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.ya-logo {
    display: flex;
    align-items: center;
    gap: var(--ya-space-xs);
    color: var(--ya-text-primary);
    font-family: var(--ya-font-titles);
    font-weight: 700;
    font-size: var(--ya-text-lg);
    text-decoration: none;
}

.ya-logo img {
    height: 40px;
    width: auto;
}

.ya-logo:hover {
    color: var(--ya-accent-500);
    text-decoration: none;
}

.ya-nav {
    display: none;
    list-style: none;
    gap: var(--ya-space-lg);
}

.ya-nav a {
    color: var(--ya-text-secondary);
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--ya-space-xs) 0;
    position: relative;
    transition: color var(--ya-transition);
}

.ya-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ya-accent-500);
    transition: width var(--ya-transition);
}

.ya-nav a:hover,
.ya-nav a.active {
    color: var(--ya-text-primary);
    text-decoration: none;
}

.ya-nav a:hover::after,
.ya-nav a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.ya-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--ya-space-xs);
}

.ya-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ya-text-primary);
    transition: transform var(--ya-transition), opacity var(--ya-transition);
}

.ya-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ya-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.ya-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.ya-nav-mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ya-bg-primary);
    z-index: 999;
    padding: var(--ya-space-lg);
    overflow-y: auto;
}

.ya-nav-mobile.active {
    display: block;
}

.ya-nav-mobile a {
    display: block;
    color: var(--ya-text-primary);
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-lg);
    font-weight: 500;
    padding: var(--ya-space-sm) 0;
    border-bottom: 1px solid var(--ya-border);
}

.ya-nav-mobile a.active {
    color: var(--ya-accent-500);
}

@media (min-width: 768px) {
    .ya-nav {
        display: flex;
    }
    .ya-menu-toggle {
        display: none;
    }
    .ya-nav-mobile {
        display: none !important;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.ya-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ya-space-xs);
    padding: 12px 28px;
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    border-radius: var(--ya-radius);
    cursor: pointer;
    transition: all var(--ya-transition);
    text-decoration: none;
    line-height: 1.4;
}

.ya-btn:focus-visible {
    outline: 2px solid var(--ya-accent-500);
    outline-offset: 2px;
}

.ya-btn-primary {
    background: var(--ya-accent-500);
    color: var(--ya-text-dark);
    border-color: var(--ya-accent-500);
}

.ya-btn:hover {
    text-decoration: none;
}

.ya-btn-primary:hover {
    background: var(--ya-accent-400);
    border-color: var(--ya-accent-400);
    color: var(--ya-text-dark);
    box-shadow: var(--ya-shadow-accent);
}

.ya-btn-outline {
    background: transparent;
    color: var(--ya-accent-500);
    border-color: var(--ya-accent-500);
}

.ya-btn-outline:hover {
    background: var(--ya-accent-500);
    color: var(--ya-text-dark);
}

.ya-btn-lg {
    padding: 16px 36px;
    font-size: var(--ya-text-base);
}

/* ============================================
   HERO
   ============================================ */

/* ============================================
   HERO - Structure flex (split strict, sans superposition)
   - Mobile : image en haut (flex item), texte en bas (flex item)
   - Desktop : texte à gauche (flex row), image à droite, dans container centré
   ============================================ */

.ya-hero {
    position: relative;
    min-height: 500px;
    min-height: 70vh;
    min-height: 70dvh;
    overflow: hidden;
    padding-top: 72px;
    background: var(--ya-bg-primary);
}

.ya-hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--ya-container-max);
    margin: 0 auto;
    min-height: calc(500px - 72px);
    min-height: calc(70vh - 72px);
    min-height: calc(70dvh - 72px);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .ya-hero-inner {
        flex-direction: row;
        align-items: stretch;
        padding: 0 var(--ya-space-md);
    }
}

.ya-nowrap {
    white-space: nowrap;
}

/* ============================================
   HERO - MEDIA (image + overlay de transition)
   ============================================ */

.ya-hero-media {
    position: relative;
    flex: 0 0 45%;
    overflow: hidden;
    background: var(--ya-bg-primary);
}

.ya-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
}

/* Overlay de transition (mobile : fondu bas-de-média vers fond sombre) */
.ya-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(29, 37, 45, 0) 0%,
        rgba(29, 37, 45, 0) 70%,
        rgba(29, 37, 45, 0.85) 95%,
        var(--ya-bg-primary) 100%
    );
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 768px) {
    .ya-hero-media {
        flex: 0 0 55%;
        order: 2;
        max-width: 700px;
    }

    .ya-hero-media img {
        object-position: center;
        -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 12%,
            rgba(0, 0, 0, 0.85) 28%,
            black 45%,
            black 100%);
        mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 12%,
            rgba(0, 0, 0, 0.85) 28%,
            black 45%,
            black 100%);
    }

    .ya-hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(29, 37, 45, 0.15) 0%,
            rgba(29, 37, 45, 0.05) 60%,
            rgba(29, 37, 45, 0.2) 100%
        );
    }
}

/* ============================================
   HERO - CONTENU TEXTE (flex item, pas d'absolute)
   ============================================ */

.ya-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--ya-space-lg) var(--ya-space-md);
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .ya-hero-content {
        flex: 1 1 45%;
        order: 1;
        padding: var(--ya-space-lg) var(--ya-space-xl);
        text-align: left;
        align-items: flex-start;
        justify-content: flex-end;
        padding-bottom: 10vh;
    }
}

@media (min-width: 1440px) {
    .ya-hero-content {
        padding-right: var(--ya-space-2xl);
    }
}

/* Ligne décorative turquoise (centrée sur mobile, alignée gauche sur desktop) */
.ya-hero-content::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--ya-accent-500);
    margin-bottom: var(--ya-space-md);
    border-radius: 2px;
    flex-shrink: 0;
    align-self: center;
}

@media (min-width: 768px) {
    .ya-hero-content::before {
        align-self: flex-start;
    }
}

/* Étiquette éditoriale au-dessus du H1 */
.ya-hero-eyebrow {
    display: inline-block;
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xs);
    font-weight: 600;
    color: var(--ya-accent-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--ya-space-sm);
}

.ya-hero-title {
    font-size: var(--ya-text-2xl);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--ya-space-md);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ya-hero-subtitle {
    font-size: var(--ya-text-lg);
    color: var(--ya-text-secondary);
    margin-bottom: var(--ya-space-lg);
}

@media (min-width: 768px) {
    .ya-hero-title {
        font-size: var(--ya-text-3xl);
    }
}

/* Flèche scroll vers le bas */
.ya-hero-scroll {
    position: absolute;
    bottom: var(--ya-space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ya-white);
    opacity: 0.7;
    transition: opacity var(--ya-transition), color var(--ya-transition);
    animation: ya-bounce 2.5s ease-in-out infinite;
}

.ya-hero-scroll:hover {
    opacity: 1;
    color: var(--ya-accent-500);
    text-decoration: none;
}

.ya-hero-scroll-chevron {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -5px;
}

@keyframes ya-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* Respect du prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ya-hero-scroll {
        animation: none;
    }
}

/* ============================================
   CARDS & WINDOWS
   ============================================ */

.ya-windows {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ya-space-md);
    /* Largeur max du groupe = 3 cards × 375px + 2 gaps. Empêche l'étirement sur
       écrans larges, garde le ratio 3/4 visuel partout. Centré horizontalement. */
    max-width: calc(375px * 3 + var(--ya-space-md) * 2);
    margin-inline: auto;
}

@media (min-width: 768px) {
    .ya-windows {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ya-window {
    position: relative;
    border-radius: var(--ya-radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    /* Format 3/4 préservé partout (mobile / tablette / desktop) :
       - max-height: 500px → limite la hauteur
       - max-width: 375px (= 500 × 3/4) → largeur proportionnelle, ratio jamais cassé
       - variant source = shortest-side 600 → 0 upscale, qualité garantie */
    max-width: 375px;
    max-height: 500px;
    min-width: 0;
    width: 100%;
    margin-inline: auto;
}

.ya-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ya-transition-slow);
}

.ya-window:hover {
    text-decoration: none;
}

.ya-window:hover img {
    transform: scale(1.05);
}

.ya-window-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29, 37, 45, 0.9) 0%, rgba(29, 37, 45, 0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--ya-space-lg);
}

.ya-window-title {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xl);
    font-weight: 600;
    color: var(--ya-white);
    margin-bottom: 4px;
}

.ya-window-subtitle {
    font-size: var(--ya-text-sm);
    color: var(--ya-accent-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Flèche indicative sur les fenêtres (turquoise simple, bas à droite) */
.ya-window-arrow {
    position: absolute;
    bottom: var(--ya-space-md);
    right: var(--ya-space-md);
    color: var(--ya-accent-500);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ya-transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.ya-window:hover .ya-window-arrow {
    transform: translateX(6px);
}

/* Section header (titre + sous-titre de section) */
.ya-section-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ya-section-header .ya-text {
    margin-top: var(--ya-space-sm);
}

.ya-card {
    background: var(--ya-bg-alt);
    border: 1px solid var(--ya-border);
    border-radius: var(--ya-radius-lg);
    overflow: hidden;
    transition: transform var(--ya-transition), box-shadow var(--ya-transition);
}

.ya-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ya-shadow-lg);
}

.ya-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ya-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ya-transition-slow);
}

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

.ya-card-body {
    padding: var(--ya-space-md);
}

/* ============================================
   GALLERY & LIGHTBOX
   ============================================ */

.ya-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ya-space-sm);
    /* Max = 3 cols × 400px (variant display landscape) + 2 gaps - empêche l'étirement
       sur écrans très larges. Centré horizontalement. */
    max-width: calc(400px * 3 + var(--ya-space-md) * 2);
    margin-inline: auto;
}

@media (min-width: 768px) {
    .ya-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--ya-space-md);
    }
}

@media (min-width: 1024px) {
    .ya-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ya-gallery-item {
    display: block; /* les vignettes sont des <a> (focus clavier + fallback sans JS) */
    position: relative;
    border-radius: var(--ya-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 2;
    /* Max 400px = résolution du variant "display" landscape dans ImageUploader.
       Au clic, la lightbox ouvre le variant "full" 1920px pour le HD. */
    max-width: 400px;
    width: 100%;
    margin-inline: auto;
}

.ya-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ya-transition-slow);
}

.ya-gallery-item:hover img {
    transform: scale(1.08);
}

.ya-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 37, 45, 0);
    transition: background var(--ya-transition);
}

.ya-gallery-item:hover::after {
    background: rgba(29, 37, 45, 0.2);
}

/* Barre de filtres galeries - sticky sous le header fixe (72px), même
   composant sur tous les breakpoints : chips défilables horizontalement
   sur mobile, centrées sur desktop. z-index sous le header (1000) et la
   nav mobile pour ne jamais les recouvrir. */
.ya-gallery-filters {
    position: sticky;
    top: 72px;
    z-index: 900;
    background-color: var(--ya-bg-alt);
    padding: var(--ya-space-sm) 0;
    margin-bottom: var(--ya-space-lg);
    border-bottom: 1px solid rgba(135, 150, 171, 0.15);
}

.ya-gallery-filters-list {
    display: flex;
    gap: var(--ya-space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Centré quand ça tient, scroll depuis le bord gauche quand ça déborde
       (justify-content:center + overflow rendrait les chips de gauche
       inatteignables en cas de débordement). */
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
}

.ya-gallery-filters-list::-webkit-scrollbar {
    display: none;
}

.ya-gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--ya-text-muted);
    font-size: var(--ya-text-sm);
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--ya-transition), border-color var(--ya-transition), background-color var(--ya-transition);
}

.ya-gallery-filter svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ya-gallery-filter:hover {
    color: var(--ya-text-primary);
}

.ya-gallery-filter.active {
    color: var(--ya-accent-500);
    border-color: rgba(11, 207, 224, 0.35);
    background-color: rgba(11, 207, 224, 0.08);
}

/* Lightbox */
.ya-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.ya-lightbox.active {
    display: flex;
}

.ya-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--ya-radius);
}

.ya-lightbox-close {
    position: absolute;
    top: var(--ya-space-md);
    right: var(--ya-space-md);
    background: none;
    border: none;
    color: var(--ya-white);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--ya-transition);
}

.ya-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ya-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ya-white);
    font-size: 2.5rem;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--ya-transition);
}

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

.ya-lightbox-prev {
    left: var(--ya-space-sm);
}

.ya-lightbox-next {
    right: var(--ya-space-sm);
}

/* Compteur de position dans la galerie */
.ya-lightbox-caption {
    position: absolute;
    bottom: calc(var(--ya-space-md) + 116px);
    left: 50%;
    transform: translateX(-50%);
    max-width: min(90vw, 700px);
    color: var(--ya-white);
    font-size: var(--ya-text-sm);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.ya-lightbox-counter {
    position: absolute;
    bottom: calc(var(--ya-space-md) + 88px);
    left: 50%;
    transform: translateX(-50%);
    color: var(--ya-white);
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Bande de miniatures en bas */
.ya-lightbox-thumbs {
    position: absolute;
    bottom: var(--ya-space-sm);
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    gap: var(--ya-space-xs);
    padding: var(--ya-space-xs) var(--ya-space-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ya-lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

/* Centrage des thumbs s'il y en a peu */
@media (min-width: 768px) {
    .ya-lightbox-thumbs {
        justify-content: center;
    }
}

.ya-lightbox-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--ya-radius);
    background-color: rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--ya-transition), border-color var(--ya-transition), transform var(--ya-transition);
}

.ya-lightbox-thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.ya-lightbox-thumb.is-active {
    opacity: 1;
    border-color: var(--ya-accent-500);
}

.ya-lightbox-thumb:focus-visible {
    outline: 2px solid var(--ya-accent-500);
    outline-offset: 2px;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.ya-cta {
    text-align: center;
    padding: var(--ya-space-3xl) 0;
}

.ya-cta-title {
    font-size: var(--ya-text-2xl);
    margin-bottom: var(--ya-space-lg);
}

/* ============================================
   FORMS
   ============================================ */

.ya-form-group {
    margin-bottom: var(--ya-space-md);
}

.ya-form-label {
    display: block;
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-sm);
    font-weight: 600;
    color: var(--ya-text-primary);
    margin-bottom: var(--ya-space-xs);
}

.ya-form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--ya-font-text);
    font-size: var(--ya-text-base);
    color: var(--ya-text-primary);
    background: var(--ya-bg-alt);
    border: 1px solid var(--ya-border);
    border-radius: var(--ya-radius);
    transition: border-color var(--ya-transition), box-shadow var(--ya-transition);
    appearance: none;
}

.ya-form-control:focus {
    outline: none;
    border-color: var(--ya-accent-500);
    box-shadow: 0 0 0 3px rgba(11, 207, 224, 0.15);
}

.ya-form-control::placeholder {
    color: var(--ya-text-muted);
}

/* Champ en erreur - bordure rouge douce, focus toujours accent */
.ya-form-control--error {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.ya-form-control--error:focus {
    border-color: var(--ya-accent-500);
}

textarea.ya-form-control {
    resize: vertical;
    min-height: 150px;
}

select.ya-form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.ya-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ya-space-md);
}

@media (min-width: 768px) {
    .ya-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.ya-form-decoy-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Captcha */
.ya-captcha {
    display: flex;
    align-items: center;
    gap: var(--ya-space-sm);
}

.ya-captcha-question {
    font-family: var(--ya-font-titles);
    font-weight: 600;
    color: var(--ya-accent-500);
    white-space: nowrap;
}

.ya-captcha .ya-form-control {
    max-width: 100px;
}

/* ============================================
   ALERTS
   ============================================ */

.ya-alert {
    padding: var(--ya-space-sm) var(--ya-space-md);
    border-radius: var(--ya-radius);
    margin-bottom: var(--ya-space-md);
    font-weight: 500;
    border-left: 4px solid;
}

.ya-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--ya-success);
    color: var(--ya-success);
}

.ya-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--ya-error);
    color: var(--ya-error);
}

/* ============================================
   FOOTER
   ============================================ */

.ya-footer {
    background: var(--ya-bg-dark);
    border-top: 1px solid var(--ya-border);
    padding: var(--ya-space-2xl) 0 var(--ya-space-lg);
}

/* Desktop footer : grille 2 lignes (titres + contenu) */
.ya-footer-desktop {
    display: none;
    max-width: 800px;
    margin: 0 auto var(--ya-space-lg);
}

.ya-footer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ya-space-lg);
}

.ya-footer-row--titles {
    align-items: center;
    margin-bottom: var(--ya-space-md);
    padding-bottom: var(--ya-space-sm);
    border-bottom: 1px solid var(--ya-border);
}

.ya-footer-row--titles img {
    height: 36px;
    width: auto;
}

.ya-footer-desc {
    color: var(--ya-text-muted);
    font-size: var(--ya-text-sm);
    line-height: 1.6;
    margin-bottom: var(--ya-space-sm);
}

/* Mobile footer : empilé */
.ya-footer-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--ya-space-lg);
    margin-bottom: var(--ya-space-lg);
    align-items: center;
    text-align: center;
}

.ya-footer-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ya-space-sm);
}

.ya-footer-mobile-brand img {
    height: 36px;
    width: auto;
}

.ya-footer-mobile > div {
    width: 100%;
    text-align: left;
}

.ya-footer-mobile > .ya-footer-mobile-brand {
    text-align: center;
}

/* Switch desktop / mobile */
@media (min-width: 768px) {
    .ya-footer-desktop {
        display: block;
    }
    .ya-footer-mobile {
        display: none;
    }
}

.ya-footer-title {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-sm);
    font-weight: 600;
    color: var(--ya-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--ya-space-sm);
}

.ya-footer-links {
    list-style: none;
}

.ya-footer-links li {
    margin-bottom: var(--ya-space-xs);
}

.ya-footer-links a {
    color: var(--ya-text-muted);
    font-size: var(--ya-text-sm);
    transition: color var(--ya-transition);
}

.ya-footer-links a:hover {
    color: var(--ya-accent-500);
}

.ya-footer-social {
    display: flex;
    gap: var(--ya-space-sm);
}

.ya-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ya-bg-alt);
    color: var(--ya-text-secondary);
    transition: background var(--ya-transition), color var(--ya-transition);
}

.ya-footer-social a:hover {
    background: var(--ya-accent-500);
    color: var(--ya-text-dark);
    text-decoration: none;
}

.ya-footer-bottom {
    border-top: 1px solid var(--ya-border);
    padding-top: var(--ya-space-md);
    text-align: center;
    color: var(--ya-text-muted);
    font-size: var(--ya-text-xs);
}

/* Crédit LEDEV dans le footer - discret, hérite de la couleur muted,
   s'active en accent au hover. rel="author" porte le signal sémantique. */
.ya-footer-credit {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: color var(--ya-transition), border-color var(--ya-transition);
}

.ya-footer-credit:hover,
.ya-footer-credit:focus-visible {
    color: var(--ya-accent-500);
    border-bottom-color: var(--ya-accent-500);
    text-decoration: none;
    outline: none;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

/* Desktop : pas d'overlay (fond sombre = invisible et bloquant) */
/* Mobile : overlay plus visible pour signaler le blocage */
.ya-cookie-overlay {
    display: none;
}

@media (max-width: 767px) {
    .ya-cookie-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998;
        transition: opacity 0.3s;
    }

    .ya-cookie-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }
}

.ya-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--ya-bg-alt);
    border-top: 1px solid var(--ya-border);
    padding: var(--ya-space-md) var(--ya-space-lg);
    box-shadow: var(--ya-shadow-lg);
    transition: transform 0.3s, opacity 0.3s;
}

.ya-cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.ya-cookie-banner-inner {
    max-width: var(--ya-container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--ya-space-sm);
}

@media (min-width: 768px) {
    .ya-cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.ya-cookie-text {
    color: var(--ya-text-secondary);
    font-size: var(--ya-text-sm);
    line-height: 1.6;
    flex: 1;
}

.ya-cookie-text a {
    color: var(--ya-accent-500);
    text-decoration: underline;
}

.ya-cookie-actions {
    display: flex;
    gap: var(--ya-space-xs);
    flex-shrink: 0;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .ya-cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .ya-cookie-actions .ya-cookie-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.ya-cookie-btn {
    padding: 8px 20px;
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-sm);
    font-weight: 600;
    border: 1px solid var(--ya-border);
    border-radius: var(--ya-radius);
    cursor: pointer;
    transition: all var(--ya-transition);
    white-space: nowrap;
}

.ya-cookie-btn-outline {
    background: transparent;
    color: var(--ya-text-secondary);
}

.ya-cookie-btn-outline:hover {
    border-color: var(--ya-text-secondary);
    color: var(--ya-text-primary);
}

.ya-cookie-btn-primary {
    background: var(--ya-accent-500);
    color: var(--ya-text-dark);
    border-color: var(--ya-accent-500);
}

.ya-cookie-btn-primary:hover {
    background: var(--ya-accent-400);
    border-color: var(--ya-accent-400);
}

/* Cookie settings panel */
.ya-cookie-settings {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.ya-cookie-settings.active {
    display: flex;
}

.ya-cookie-settings-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.ya-cookie-settings-panel {
    position: relative;
    background: var(--ya-bg-alt);
    border: 1px solid var(--ya-border);
    border-radius: var(--ya-radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.ya-cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ya-space-md) var(--ya-space-lg);
    border-bottom: 1px solid var(--ya-border);
}

.ya-cookie-settings-title {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-lg);
    font-weight: 600;
}

.ya-cookie-settings-close {
    background: none;
    border: none;
    color: var(--ya-text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--ya-transition);
}

.ya-cookie-settings-close:hover {
    color: var(--ya-text-primary);
}

.ya-cookie-settings-body {
    padding: var(--ya-space-md) var(--ya-space-lg);
}

.ya-cookie-category {
    padding: var(--ya-space-sm) 0;
    border-bottom: 1px solid var(--ya-border);
}

.ya-cookie-category:last-child {
    border-bottom: none;
}

.ya-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ya-space-sm);
}

.ya-cookie-category-title {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-base);
    font-weight: 600;
}

.ya-cookie-category-desc {
    color: var(--ya-text-muted);
    font-size: var(--ya-text-sm);
    margin-top: 4px;
}

/* Toggle switch */
.ya-cookie-toggle input {
    display: none;
}

.ya-cookie-toggle label {
    display: block;
    width: 48px;
    height: 26px;
    background: var(--ya-border);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background var(--ya-transition);
}

.ya-cookie-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--ya-white);
    border-radius: 50%;
    transition: transform var(--ya-transition);
}

.ya-cookie-toggle input:checked + label {
    background: var(--ya-accent-500);
}

.ya-cookie-toggle input:checked + label::after {
    transform: translateX(22px);
}

.ya-cookie-toggle-disabled label {
    opacity: 0.5;
    cursor: not-allowed;
}

.ya-cookie-settings-footer {
    display: flex;
    gap: var(--ya-space-xs);
    justify-content: flex-end;
    padding: var(--ya-space-md) var(--ya-space-lg);
    border-top: 1px solid var(--ya-border);
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.ya-legal {
    padding-top: calc(72px + var(--ya-space-2xl));
}

.ya-legal h2 {
    color: var(--ya-accent-500);
    margin-top: var(--ya-space-xl);
    margin-bottom: var(--ya-space-sm);
}

.ya-legal h3 {
    margin-top: var(--ya-space-lg);
    margin-bottom: var(--ya-space-xs);
}

.ya-legal p, .ya-legal li {
    color: var(--ya-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--ya-space-sm);
}

.ya-legal ul {
    list-style: none;
    padding-left: var(--ya-space-md);
}

.ya-legal ul li::before {
    content: '-';
    color: var(--ya-accent-500);
    margin-right: var(--ya-space-xs);
}

.ya-legal a {
    color: var(--ya-accent-500);
    text-decoration: underline;
}

/* ============================================
   PORTRAIT SERIES BLOCKS
   ============================================ */

.ya-series {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ya-space-lg);
    margin-bottom: var(--ya-space-2xl);
}

@media (min-width: 768px) {
    .ya-series {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.ya-series-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ya-space-sm);
    /* Max = 2 cols × 600px (variant display project) + 1 gap - empêche l'étirement
       sur écrans très larges. Le clic ouvre la lightbox avec le variant "full" 1920px. */
    max-width: calc(600px * 2 + var(--ya-space-sm));
}

.ya-series-images img {
    border-radius: var(--ya-radius);
    object-fit: cover;
    width: 100%;
    max-width: 600px; /* garde-fou par image : jamais au-delà du variant display */
    display: block;
    transition: transform var(--ya-transition);
}

.ya-series-image-link {
    display: block;
    overflow: hidden;
    border-radius: var(--ya-radius);
    cursor: zoom-in;
    position: relative;
}

.ya-series-image-link:hover {
    text-decoration: none;
}

.ya-series-image-link:hover img {
    transform: scale(1.03);
}

/* Format affiche A1 (portrait vertical, ratio 1:√2) */
.ya-series-images--a1 img {
    aspect-ratio: 1 / 1.414;
    object-fit: contain;
    background: var(--ya-bg-alt);
}

/* Format photo 3:2 horizontal */
.ya-series-images--landscape img {
    aspect-ratio: 3 / 2;
}

/* Layout inversé pour Div On Est (photo à droite devient gauche sur desktop) */
@media (min-width: 768px) {
    .ya-series--reversed .ya-series-content {
        order: 1;
    }
    .ya-series--reversed .ya-series-images {
        order: 2;
    }
}

.ya-series-content {
    padding: var(--ya-space-md) 0;
}

/* ============================================
   BOUTON LIEN EXTERNE (animation flèche diagonale)
   ============================================ */

.ya-btn-external {
    gap: var(--ya-space-xs);
}

.ya-btn-external-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ya-transition);
    will-change: transform;
}

.ya-btn-external:hover .ya-btn-external-icon {
    transform: translate(4px, -4px);
}

@media (prefers-reduced-motion: reduce) {
    .ya-btn-external-icon {
        transition: none;
    }
}

/* Bouton avec flèche droite (liens internes) */
.ya-btn-arrow {
    gap: var(--ya-space-xs);
}

.ya-btn-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ya-transition);
    will-change: transform;
}

.ya-btn-arrow:hover .ya-btn-arrow-icon {
    transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
    .ya-btn-arrow-icon {
        transition: none;
    }
}

/* ============================================
   EXHIBITIONS
   ============================================ */

.ya-expo {
    background: var(--ya-bg-alt);
    border: 1px solid var(--ya-border);
    border-radius: var(--ya-radius-lg);
    padding: var(--ya-space-lg);
    margin-bottom: var(--ya-space-md);
    transition: border-color var(--ya-transition);
}

.ya-expo:hover {
    border-color: var(--ya-border-light);
}

.ya-expo-dates {
    color: var(--ya-accent-500);
    font-size: var(--ya-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--ya-space-xs);
}

.ya-expo-title {
    font-size: var(--ya-text-xl);
    margin-bottom: var(--ya-space-xs);
}

.ya-expo-location {
    color: var(--ya-text-secondary);
    margin-bottom: var(--ya-space-sm);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.ya-about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ya-space-xl);
}

@media (min-width: 768px) {
    .ya-about-layout {
        grid-template-columns: 2fr 1fr;
    }

    .ya-about-layout--photo-left {
        grid-template-columns: 1fr 2fr;
    }
}

.ya-about-photo img {
    display: block;
    border-radius: var(--ya-radius-lg);
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin: 0 auto;
}

.ya-about-text p {
    color: var(--ya-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--ya-space-md);
}

/* Signature de fin de bio - signoff discret aligné à droite, séparé par
   un filet hairline. Montserrat pour la structure, lettrage espacé sur le
   rôle pour le rappel élégant d'une carte de visite. */
.ya-about-signature {
    margin-top: var(--ya-space-xl);
    padding-top: var(--ya-space-md);
    border-top: 1px solid rgba(135, 150, 171, 0.25);
    text-align: right;
    font-family: var(--ya-font-titles);
    line-height: 1.3;
}

.ya-about-signature-name {
    display: block;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ya-text-secondary);
}

.ya-about-signature-role {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ya-text-muted);
}

/* Panorama horizontal sous le texte - bande de clôture visuelle.
   Ratio 17/3 ≈ 35% de la hauteur du portrait. Le panorama est rendu DANS un
   `.ya-container` (cf. about.php) → alignement strict avec le titre et le
   portrait au-dessus. Le crop est compensé par le focal point géré côté admin
   (admin/about) - l'overlay admin utilise le même ratio 17/3 pour afficher
   exactement la zone visible côté front. */
.ya-about-panorama-section {
    padding-bottom: var(--ya-space-3xl);
}

.ya-about-panorama {
    border-radius: var(--ya-radius-lg);
    overflow: hidden;
}

.ya-about-panorama img {
    display: block;
    width: 100%;
    aspect-ratio: 17 / 3;
    min-height: 140px;              /* floor mobile pour rester lisible */
    object-fit: cover;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.ya-contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ya-space-xl);
}

@media (min-width: 768px) {
    .ya-contact-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.ya-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--ya-space-md);
}

.ya-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--ya-space-sm);
}

.ya-contact-info-icon {
    color: var(--ya-accent-500);
    font-size: var(--ya-text-lg);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.ya-contact-card {
    background: var(--ya-bg-alt);
    border: 1px solid var(--ya-border);
    border-radius: var(--ya-radius-lg);
    padding: var(--ya-space-lg);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.ya-text-center { text-align: center; }
.ya-mb-0 { margin-bottom: 0; }
.ya-mb-sm { margin-bottom: var(--ya-space-sm); }
.ya-mb-md { margin-bottom: var(--ya-space-md); }
.ya-mb-lg { margin-bottom: var(--ya-space-lg); }
.ya-mb-xl { margin-bottom: var(--ya-space-xl); }
.ya-mt-lg { margin-top: var(--ya-space-lg); }

/* Content padding for pages (below fixed header) */
.ya-page-content {
    padding-top: 72px;
}

/* ============================================
   EXPOSITIONS INLINE (sous chaque projet)
   Design compact, sobre, contextuel
   ============================================ */

.ya-expos-inline {
    margin-top: var(--ya-space-lg);
    padding-top: var(--ya-space-md);
    border-top: 1px solid var(--ya-border);
}

.ya-expos-inline-title {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ya-accent-500);
    margin-bottom: var(--ya-space-sm);
}

.ya-expos-inline-title--past {
    color: var(--ya-text-muted);
    margin-top: var(--ya-space-md);
}

.ya-expos-inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--ya-space-sm);
}

/* Vignette discrète, harmonisée avec `.ya-now-item` (homepage) - même langage
   visuel (bg, cadre, accent left, radius) mais plus compact car secondaire dans
   le contexte de la page Portraits. Le bg de la vignette est INVERSÉ par
   rapport à celui de la section parent (alt si parent primary, primary si
   parent alt) pour garantir un contraste visible dans les deux configurations
   de section que la page peut produire. */
.ya-expos-inline-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--ya-space-sm) var(--ya-space-md);
    background: var(--ya-bg-alt);
    border: 1px solid var(--ya-border);
    border-left: 2px solid var(--ya-border);
    border-radius: var(--ya-radius);
    transition: border-color var(--ya-transition);
}

.ya-section-alt .ya-expos-inline-item {
    background: var(--ya-bg-primary);
}

.ya-expos-inline-item--current {
    border-left-color: var(--ya-accent-500);
    border-left-width: 3px;
}

@media (min-width: 600px) {
    .ya-expos-inline-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--ya-space-md);
    }
}

.ya-expos-inline-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ya-expos-inline-dates {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xs);
    font-weight: 600;
    color: var(--ya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ya-expos-inline-name {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-base);
    font-weight: 600;
    color: var(--ya-text-primary);
    line-height: 1.3;
}

.ya-expos-inline-location {
    font-size: var(--ya-text-sm);
    color: var(--ya-text-secondary);
    line-height: 1.4;
}

.ya-expos-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xs);
    font-weight: 600;
    color: var(--ya-accent-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: color var(--ya-transition), transform var(--ya-transition);
}

.ya-expos-inline-link:hover {
    color: var(--ya-accent-400);
    transform: translateX(2px);
    text-decoration: none;
}

/* ============================================
   BLOC "EN CE MOMENT" (homepage)
   Liste sobre, même langage visuel que .ya-expos-inline
   ============================================ */

.ya-now-eyebrow {
    display: inline-block;
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xs);
    font-weight: 600;
    color: var(--ya-accent-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--ya-space-xs);
}

.ya-now-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: var(--ya-space-sm);
}

.ya-now-item {
    display: flex;
    flex-direction: column;
    gap: var(--ya-space-xs);
    padding: var(--ya-space-md);
    background: var(--ya-bg-primary);
    border: 1px solid var(--ya-border);
    border-left: 3px solid var(--ya-accent-500);
    border-radius: var(--ya-radius);
    transition: border-color var(--ya-transition), transform var(--ya-transition);
}

.ya-now-item:hover {
    transform: translateX(2px);
}

@media (min-width: 600px) {
    .ya-now-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--ya-space-md);
    }
}

.ya-now-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ya-now-dates {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xs);
    font-weight: 600;
    color: var(--ya-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ya-now-title {
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-lg);
    font-weight: 600;
    color: var(--ya-text-primary);
    line-height: 1.3;
}

.ya-now-location {
    font-size: var(--ya-text-sm);
    color: var(--ya-text-secondary);
    line-height: 1.4;
}

.ya-now-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ya-font-titles);
    font-size: var(--ya-text-xs);
    font-weight: 600;
    color: var(--ya-accent-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: color var(--ya-transition), transform var(--ya-transition);
}

.ya-now-link:hover {
    color: var(--ya-accent-400);
    transform: translateX(2px);
    text-decoration: none;
}
