/* Crimson Pro - Regular (400) */
@font-face {
    font-family: 'Crimson Pro';
    src: url('/fonts/CrimsonPro/CrimsonPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Crimson Pro - Medium (500) */
@font-face {
    font-family: 'Crimson Pro';
    src: url('/fonts/CrimsonPro/CrimsonPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Crimson Pro - SemiBold (600) */
@font-face {
    font-family: 'Crimson Pro';
    src: url('/fonts/CrimsonPro/CrimsonPro-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Crimson Pro - Italic (400) */
@font-face {
    font-family: 'Crimson Pro';
    src: url('/fonts/CrimsonPro/CrimsonPro-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Crimson Pro - Medium Italic (500) */
@font-face {
    font-family: 'Crimson Pro';
    src: url('/fonts/CrimsonPro/CrimsonPro-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Crimson Pro - SemiBold Italic (600) */
@font-face {
    font-family: 'Crimson Pro';
    src: url('/fonts/CrimsonPro/CrimsonPro-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Lora - Regular (400) */
@font-face {
    font-family: 'Lora';
    src: url('/fonts/Lora/Lora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Lora - Medium (500) */
@font-face {
    font-family: 'Lora';
    src: url('/fonts/Lora/Lora-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Lora - SemiBold (600) */
@font-face {
    font-family: 'Lora';
    src: url('/fonts/Lora/Lora-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Lora - Italic (400) */
@font-face {
    font-family: 'Lora';
    src: url('/fonts/Lora/Lora-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Lora - Medium Italic (500) */
@font-face {
    font-family: 'Lora';
    src: url('/fonts/Lora/Lora-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Lora - SemiBold Italic (600) */
@font-face {
    font-family: 'Lora';
    src: url('/fonts/Lora/Lora-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'North-Avellion';
    src: url('/fonts/North-Avellion.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-night: #0B0E11;
    --text-night: #E7E7E7;
    --bg-day: #F6F1E9;
    --text-day: #1A1A1A;
    
    /* Palette liseuse accessible */
    --text-primary: #2B2B2B;
    --text-secondary: #5F5F5F;
    --text-placeholder: #7A7A7A;
    --border-button: #CFC6B8;
    --bg-button-hover: #f8f4ed;
}

html {
    font-size: 16px;
}

body {
    /* Par défaut : thème clair */
    background: var(--bg-day);
    color: var(--text-primary);
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    min-height: 100vh;
    font-size: 1rem;
    line-height: 1.65;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Thème sombre : appliqué seulement si la classe day-mode est absente */
html:not(.day-mode) body {
    background: var(--bg-night);
    color: var(--text-night);
}

/* Logo et lien Accueil */
.musevia-home-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.home-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.home-link:hover {
    opacity: 0.8;
}

.home-logo {
    height: 2.5rem;
    width: auto;
    margin-bottom: 0.375rem;
    opacity: 0.9;
}

.home-text {
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    color: rgba(90, 82, 72, 0.6);
    letter-spacing: 0.02em;
}

html.day-mode .home-text {
    color: rgba(90, 82, 72, 0.6);
}

/* Mini-header Musevia */
.musevia-header {
    max-width: 65ch;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0.5rem;
    text-align: left;
}

.musevia-breadcrumb {
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    color: rgba(90, 82, 72, 0.8);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-panel{
    margin-top: 1rem;
}

html.day-mode .musevia-breadcrumb {
    color: rgba(90, 82, 72, 0.75);
}

.breadcrumb-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.breadcrumb-logo-link:hover {
    opacity: 0.7;
}

.musevia-breadcrumb .breadcrumb-logo {
    width: 20px;
    opacity: 0.9;
    margin-top: -3.5px;
}

.breadcrumb-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.breadcrumb-brand-link:hover {
    opacity: 0.7;
}

.musevia-breadcrumb .breadcrumb-brand {
    font-style: normal;
    letter-spacing: 0.1em;
}

.musevia-breadcrumb .breadcrumb-domain {
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.musevia-divider {
    max-width: 65ch;
    margin: 0 auto;
    padding: 0 1.5rem;
    border-top: 1px solid rgba(90, 82, 72, 0.15);
    margin-bottom: 0.9rem;
}

html.day-mode .musevia-divider {
    border-top-color: rgba(90, 82, 72, 0.2);
}

.content-container {
    margin-top: 0;
    padding-top: calc(82px + 1rem); /* Header fixe (82px) + espacement */
}

.page-title {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.page-subtitle {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .content-container {
        padding-top: calc(40px + 0.8rem); /* Header fixe (82px) + espacement */
    }
}

/* Mode jour/nuit toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(231, 231, 231, 0.08);
    border: 1px solid rgba(231, 231, 231, 0.15);
    color: rgba(231, 231, 231, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 15;
    backdrop-filter: blur(10px);
}

.theme-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

html.day-mode .theme-toggle {
    background: rgba(26, 26, 26, 0.08);
    border-color: rgba(26, 26, 26, 0.15);
    color: rgba(26, 26, 26, 0.7);
}

.theme-toggle:hover {
    background: rgba(231, 231, 231, 0.12);
    border-color: rgba(231, 231, 231, 0.25);
}

html.day-mode .theme-toggle:hover {
    background: rgba(26, 26, 26, 0.12);
    border-color: rgba(26, 26, 26, 0.25);
}

@media (min-width: 40em) {
    html {
        font-size: 17px;
    }

    body {
        font-size: 1rem;
        line-height: 1.65;
    }

    .musevia-home-link {
        top: 1.75rem;
        left: 2rem;
    }

    .musevia-header {
        max-width: 65ch;
        padding: 1.75rem 2rem 0.5rem;
    }

    .musevia-divider {
        max-width: 65ch;
        padding: 0 2rem;
    }
}

@media (min-width: 55em) {
    html {
        font-size: 18px;
    }

    body {
        font-size: 1rem;
        line-height: 1.68;
    }

    .musevia-home-link {
        top: 2rem;
        left: 2rem;
    }

    .musevia-header {
        max-width: 70ch;
        padding: 2rem 2rem 0.5rem;
    }

    .musevia-divider {
        max-width: 70ch;
        padding: 0 2rem;
    }
}

@media (min-width: 75em) {
    .musevia-home-link {
        top: 2.5rem;
        left: 3rem;
    }

    .musevia-header {
        padding: 2.5rem 3rem 0.5rem;
    }

    .musevia-divider {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .musevia-home-link {
        top: 1.2rem;
        left: 1rem;
    }

    .home-logo {
        height: 2rem;
    }

    .home-text {
        font-size: 0.7rem;
    }

    .musevia-header {
        display: none;
    }

    .musevia-breadcrumb {
        font-size: 1px;
    }

    .musevia-divider {
        max-width: 100%;
        padding: 0 1rem;
        margin-bottom: 0.7rem;
    }

    .content-container {
        padding-top: calc(40px + 0.8rem); /* Header fixe (82px) + espacement */
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .musevia-home-link {
        top: 1rem;
        left: 0.9rem;
    }

    .home-logo {
        height: 1.75rem;
    }

    .musevia-header {
        padding: 1rem 0.9rem 0.3rem;
    }

    .musevia-breadcrumb {
        font-size: 14px;
    }

    .musevia-divider {
        padding: 0 0.9rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Fil d'Ariane Micro-Typographié */
.lyreval-breadcrumb {
    max-width: 680px;
    margin: 0 auto;
    padding: 12px 1.5rem 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link {
    font-family: 'Lora', serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #8A8882;
    text-decoration: none;
    padding: 0 4px;
    transition: opacity 120ms ease;
    opacity: 0.85;
}

.breadcrumb-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.breadcrumb-item-current .breadcrumb-text {
    font-family: 'Lora', serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #A6A39E;
}

.breadcrumb-separator {
    font-family: 'Lora', serif;
    font-size: 13px;
    color: #9A9790;
    margin: 0 0.5em;
    user-select: none;
}

html.day-mode .breadcrumb-link {
    color: #8A8882;
}

html.day-mode .breadcrumb-item-current .breadcrumb-text {
    color: #A6A39E;
}

html.day-mode .breadcrumb-separator {
    color: #9A9790;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .lyreval-breadcrumb {
        padding: 16px 1.25rem 0;
        margin-bottom: 1rem;
    }

    .breadcrumb-link {
        padding: 0 4px;
        font-size: 11px;
        color: rgba(138, 136, 130, 0.6);
        opacity: 0.7;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    .breadcrumb-item-current .breadcrumb-text {
        font-size: 11px;
        color: rgba(166, 163, 158, 0.6);
    }

    .breadcrumb-separator {
        margin: 0 0.4em;
        font-size: 11px;
        color: rgba(154, 151, 144, 0.5);
    }
}

@media (min-width: 40em) {
    .lyreval-breadcrumb {
        padding: 16px 2rem 0;
    }
}

@media (min-width: 55em) {
    .lyreval-breadcrumb {
        max-width: 680px;
    }
}

/* Règles d'impression */
@media print {
    .lyreval-breadcrumb {
        display: none !important;
    }
}

