/* ============================================
   ETHNOBLOG - FEUILLE DE STYLE UNIQUE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

:root {
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f5;
    --text: #212529;
    --text-light: #495057;
    --text-muted: #868e96;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --accent: #495057;
    --link-color: #495057;
    --link-hover: #212529;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.35s ease;
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 550;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 620;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 570;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 560;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

h4 {
    font-size: 1.2rem;
    font-weight: 550;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

/* ============================================
   LIENS - TOUS EN GRIS
   ============================================ */

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--text);
}

.nav-links a,
.dropdown-toggle,
.semaine-puce,
.jour-puce,
footer a {
    color: var(--text-light);
    border-bottom-color: transparent;
}

.nav-links a:hover,
.dropdown-toggle:hover,
footer a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 620;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    border-bottom: none;
}

.nav-logo:hover {
    opacity: 0.7;
    border-bottom: none;
}

#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.75rem;
}

.menu-button span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

#menu-toggle:checked + .menu-button span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
#menu-toggle:checked + .menu-button span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked + .menu-button span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a,
.nav-links .dropdown-toggle {
    font-size: 0.8rem;
    font-weight: 520;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    border-bottom: none;
    padding: 0.4rem 0;
    color: var(--text-light);
    transition: color var(--transition-fast);
    line-height: 1;
    display: inline-block;
    height: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    vertical-align: baseline;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width var(--transition-base);
    border-radius: 1px;
}

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

.nav-links a.active {
    color: var(--text);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .dropdown-toggle::after {
    content: '▼';
    font-size: 0.5rem;
    transition: transform var(--transition-fast);
    opacity: 0.6;
    display: inline-block;
    margin-left: 4px;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: -1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 0;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    border-radius: var(--radius-md);
    pointer-events: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 1.5rem;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.12s;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 480;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border-bottom: none;
    color: var(--text-light);
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width var(--transition-base);
    border-radius: 1px;
    display: block !important;
}

.dropdown-menu a:hover::after {
    width: 100%;
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    padding-left: 1.8rem;
    color: var(--text);
}

.dropdown-menu a.active {
    color: var(--text-light);
    background: transparent;
}

/* ============================================
   HEADER
   ============================================ */

.header-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
}

.lang-selector {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 0.7rem;
    font-weight: 450;
    letter-spacing: 1px;
}

.lang-selector a {
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
}

.lang-selector a:hover {
    color: var(--text-light);
    border-bottom-color: var(--text-muted);
}

.lang-selector a.active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 430;
    letter-spacing: 1px;
    margin-top: 0;
}

/* ============================================
   MAIN
   ============================================ */

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

/* ============================================
   TIMELINE - JOURNAL
   ============================================ */

.timeline-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.timeline-annee {
    margin-bottom: 2rem;
}

.timeline-annee:last-child {
    margin-bottom: 0;
}

.timeline-annee h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.timeline-mois {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mois-bloc {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.mois-bloc:last-child {
    border-bottom: none;
}

.mois-nom {
    font-size: 0.9rem;
    font-weight: 570;
    color: var(--text);
    min-width: 100px;
    text-transform: uppercase;
}

/* ============================================
   CITATION - APPAREANCE D'EXTRAIT D'ANCIEN SITE
   ============================================ */

.citation-ancien-site {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border-left: 3px solid var(--text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
}

.citation-ancien-site::before {
    content: '«';
    font-size: 2.2rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-muted);
    line-height: 0.8;
    display: block;
    margin-bottom: 0.2rem;
    opacity: 0.6;
}

.citation-ancien-site::after {
    content: '»';
    font-size: 2.2rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-muted);
    line-height: 0.8;
    display: block;
    text-align: right;
    margin-top: 0.2rem;
    opacity: 0.6;
}

.citation-ancien-site p {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.citation-ancien-site p:last-child {
    margin-bottom: 0;
}

.citation-ancien-site a {
    color: var(--link-color);
    border-bottom: 1px solid var(--border);
    font-style: normal;
}

.citation-ancien-site a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--text);
}

/* ============================================
   BOUTONS - SEMAINE (pour 2024 et +)
   ============================================ */

.semaines-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: 1;
}

.semaine-puce {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 470;
    transition: all var(--transition-fast);
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.semaine-puce:hover {
    background: var(--text);
    color: var(--bg-card);
    border-color: var(--text);
    transform: translateY(-1px);
    border-bottom: 1px solid var(--text);
}

.semaine-puce.manquant {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-light);
    cursor: default;
    opacity: 0.5;
}

.semaine-puce.manquant:hover {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-light);
    transform: none;
}

/* ============================================
   BOUTONS - JOUR (pour 2023)
   ============================================ */

.jour-puce {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 470;
    transition: all var(--transition-fast);
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.jour-puce:hover {
    background: var(--text);
    color: var(--bg-card);
    border-color: var(--text);
    transform: translateY(-1px);
    border-bottom: 1px solid var(--text);
}

.jour-puce.manquant {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-light);
    cursor: default;
    opacity: 0.5;
}

.jour-puce.manquant:hover {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-light);
    transform: none;
}

/* ============================================
   NAVIGATION ENTRE SEMAINES
   ============================================ */

.nav-semaines {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-semaines.nav-bas {
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    border-bottom: none;
}

.nav-fleche {
    font-size: 0.8rem;
    font-weight: 480;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-fleche:hover {
    color: var(--text);
}

.nav-inactif {
    color: var(--text-muted);
    cursor: default;
    opacity: 0.5;
}

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

.hero-lien {
    text-decoration: none;
    color: inherit;
    display: block;
    border-bottom: none;
}

.hero-lien:hover {
    border-bottom: none;
}

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

.hero-journal:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

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

.hero-journal:hover .hero-image img {
    transform: scale(1.02);
}

.hero-content {
    padding: 2rem 2.5rem;
}

.hero-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 520;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-lieu {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-extrait {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    font-style: italic;
}

/* ============================================
   PHOTOS
   ============================================ */

.photo-lien {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-top: 3rem;
    border-bottom: none;
}

.photo-lien:hover {
    border-bottom: none;
}

/* Supprimer la bordure des liens contenant les photos dans la grille */
.photo-carte {
    text-decoration: none;
    color: inherit;
    display: block;
    border-bottom: none;
}

.photo-carte:hover {
    border-bottom: none;
}

.latest-photo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.photo-lien:hover .latest-photo {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.photo-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 520;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.photo-frame {
    width: 100%;
    height: 420px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

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

.photo-lien:hover .photo-frame img {
    transform: scale(1.02);
}

.photo-figure figcaption {
    text-align: center;
}

.photo-lieu {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.photo-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 430;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.photo-desc {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    text-align: left;
    font-style: normal;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.photo-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.photo-carte:hover .photo-item {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.photo-thumb {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.photo-carte:hover .photo-thumb img {
    transform: scale(1.02);
}

.photo-item figcaption {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.photo-titre {
    font-size: 1.1rem;
    font-weight: 580;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* ============================================
   LETTRES - CORRESPONDANCE
   ============================================ */

.lettre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.lettre:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.details-lettre {
    cursor: pointer;
}

.details-lettre[open] {
    cursor: default;
}

.lettre-resume {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem 2rem;
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: background var(--transition-fast);
    border-radius: var(--radius-lg);
}

.lettre-resume::-webkit-details-marker {
    display: none;
}

.lettre-resume::before {
    content: '▶';
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 0.75rem;
    transition: transform var(--transition-base);
    display: inline-block;
}

.details-lettre[open] .lettre-resume {
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.details-lettre[open] .lettre-resume::before {
    transform: rotate(90deg);
}

.lettre-resume:hover {
    background: var(--bg-hover);
}

.lettre-corps {
    overflow: hidden;
    transition: opacity var(--transition-base),
                visibility var(--transition-base),
                transform var(--transition-base),
                padding var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    padding: 0 1.5rem;
}

.details-lettre[open] .lettre-corps {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 1.5rem;
}

.lettre-date {
    font-size: 0.7rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
}

.lettre-destinataire {
    font-size: 0.85rem;
    font-weight: 550;
    color: var(--text);
    min-width: 160px;
}

.lettre-sujet {
    font-size: 0.85rem;
    font-weight: 440;
    color: var(--text-light);
    font-style: italic;
}

.message {
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-light);
}

.message:last-child {
    margin-bottom: 0;
}

.message.reponse {
    margin-top: 1.2rem;
    border-left-color: var(--text-muted);
}

.message-entete {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.message-entete .de {
    font-weight: 600;
    color: var(--text);
}

.message-entete .a {
    font-weight: 400;
}

.message-entete .message-date {
    font-size: 0.65rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.message-texte {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-light);
}

.message-texte p {
    margin-bottom: 0.75rem;
}

.message-texte p:last-child {
    margin-bottom: 0;
}

.lettre-note {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.note-icon {
    font-weight: 500;
    margin-right: 0.3rem;
}

/* ============================================
   INVITATION
   ============================================ */

.invitation-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.invitation-button {
    display: inline-block;
    background: var(--text);
    color: var(--bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
    transition: background var(--transition-fast);
}

.invitation-button:hover {
    background: var(--link-hover);
    color: var(--bg-card);
    border-bottom: none;
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.content-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.content-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 2rem;
    width: 40px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.section-header h3 {
    font-size: 1.4rem;
    font-weight: 580;
    margin-bottom: 0.3rem;
}

.section-header .subtitle {
    font-size: 0.75rem;
    font-weight: 430;
    color: var(--text-muted);
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-square {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2.5rem auto 0;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    max-width: 320px;
    width: 100%;
}

.newsletter-square:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.newsletter-square h3 {
    font-size: 1rem;
    font-weight: 580;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.newsletter-square p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.newsletter-square-button {
    display: inline-block;
    background: var(--text);
    color: var(--bg-card);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
    transition: background var(--transition-fast);
}

.newsletter-square-button:hover {
    background: var(--link-hover);
    color: var(--bg-card);
    border-bottom: none;
}

.newsletter-square-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ============================================
   BLOC EPISTULAE AD CATACOMBAS (page contact)
   ============================================ */

.encre-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0;
    padding: 1.2rem 1.2rem;
    max-width: 300px;
    width: 100%;
    background: #0d0b0a;
    color: #e3dcd5;
    text-decoration: none;
    border-bottom: none;
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 70% 30% 60% 40% / 50% 60% 40% 70%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(40, 20, 10, 0.25);
    transform: rotate(-0.5deg) scale(1);
    animation: encre-border 14s ease-in-out infinite alternate, encre-float 8s ease-in-out infinite alternate;
    cursor: pointer;
    border: none;
}

@keyframes encre-border {
    0% {
        border-radius: 70% 30% 60% 40% / 50% 60% 40% 70%;
    }
    25% {
        border-radius: 40% 70% 30% 60% / 60% 40% 70% 50%;
    }
    50% {
        border-radius: 60% 40% 70% 30% / 40% 70% 50% 60%;
    }
    75% {
        border-radius: 30% 60% 40% 70% / 70% 50% 60% 40%;
    }
    100% {
        border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    }
}

@keyframes encre-float {
    0% {
        transform: rotate(-0.5deg) scale(1);
    }
    100% {
        transform: rotate(0.5deg) scale(1.02);
    }
}

.encre-link:hover {
    transform: rotate(0.5deg) scale(1.04);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(60, 30, 15, 0.35);
    background: #0f0c0a;
    color: #f0e6dc;
    animation-play-state: paused;
}

.encre-link::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: radial-gradient(circle at 20% 30%, rgba(60, 30, 15, 0.2), transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    filter: blur(12px);
    animation: lueur-encre 8s ease-in-out infinite alternate;
}

@keyframes lueur-encre {
    0% {
        opacity: 0.2;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1) rotate(3deg);
    }
}

.encre-link > * {
    position: relative;
    z-index: 1;
}

.encre-link h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: #d9cdc0;
    text-shadow: 0 0 16px rgba(180, 120, 80, 0.15);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    text-transform: uppercase;
    line-height: 1.2;
}

.encre-link h2 .line-break {
    display: block;
}

/* ============================================
   BLOCS BOTTOM : EMPILÉS (page contact)
   ============================================ */

.bottom-blocks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* ==========================================================
   PAGE POST-MORTEM - STYLES SOMBRES
   ========================================================== */

body.post-mortem {
    background: #0a0807;
}

body.post-mortem .nav-main {
    background: rgba(10, 8, 7, 0.92);
    border-bottom: 1px solid #2f241e;
}

body.post-mortem .nav-logo {
    color: #e6ddd6;
}

body.post-mortem .nav-logo:hover {
    opacity: 0.7;
}

body.post-mortem .nav-links a {
    color: #8a7a6e;
}

body.post-mortem .nav-links a:hover {
    color: #e6ddd6;
    border-bottom-color: #e6ddd6;
}

body.post-mortem .nav-links a.active {
    color: #e6ddd6;
}

body.post-mortem .nav-links a.active::after {
    background: #e6ddd6;
}

body.post-mortem .dropdown-toggle {
    color: #8a7a6e;
}

body.post-mortem .dropdown-toggle:hover {
    color: #e6ddd6;
}

body.post-mortem .dropdown-menu {
    background: #14100e;
    border: 1px solid #2f241e;
}

body.post-mortem .dropdown-menu::before {
    background: #14100e;
    border-left: 1px solid #2f241e;
    border-top: 1px solid #2f241e;
}

body.post-mortem .dropdown-menu a {
    color: #8a7a6e;
}

body.post-mortem .dropdown-menu a:hover {
    background: #1f1815;
    color: #e6ddd6;
}

body.post-mortem .header-content {
    padding: 8rem 1.5rem 3rem;
}

body.post-mortem .titre-epistulae {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    letter-spacing: 6px;
    color: #d9cdc0;
    text-shadow: 0 0 30px rgba(180, 120, 80, 0.15), 0 4px 20px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    display: inline-block;
    padding: 0.2rem 1.5rem;
    border-radius: 60% 30% 50% 40% / 40% 60% 30% 50%;
    background: rgba(13, 11, 10, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(60, 40, 30, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(40, 20, 10, 0.15);
    animation: titre-ondulation 12s ease-in-out infinite alternate;
}

@keyframes titre-ondulation {
    0% {
        border-radius: 60% 30% 50% 40% / 40% 60% 30% 50%;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(40, 20, 10, 0.15);
    }
    50% {
        border-radius: 40% 60% 30% 50% / 50% 30% 60% 40%;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), inset 0 0 50px rgba(60, 30, 15, 0.25);
    }
    100% {
        border-radius: 50% 40% 60% 30% / 30% 50% 40% 60%;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(40, 20, 10, 0.15);
    }
}

body.post-mortem .tagline-sombre {
    font-size: 0.8rem;
    color: #8a7a6e;
    font-weight: 430;
    letter-spacing: 3px;
    margin-top: 0.75rem;
    text-transform: uppercase;
}

body.post-mortem .content-section {
    background: #14100e;
    border: 1px solid #2f241e;
    box-shadow: var(--shadow-sm);
}

body.post-mortem .content-section::before {
    background: #8a7a6e;
}

body.post-mortem .section-header h3 {
    color: #e6ddd6;
}

body.post-mortem .section-header .subtitle {
    color: #8a7a6e;
}

body.post-mortem .content-section p {
    color: #c4b8ae;
}

body.post-mortem .lettre-post-mortem {
    background: #14100e;
    border: 1px solid #2f241e;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

body.post-mortem .lettre-destinataire-header {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: #8a7a6e;
    border-bottom: none;
}

body.post-mortem .lettre-destinataire-header .destinataire-mort {
    font-weight: 600;
    color: #e6ddd6;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

body.post-mortem .lettre-destinataire-header .date-envoi {
    font-size: 0.7rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: #8a7a6e;
    margin-left: 1rem;
}

body.post-mortem .lettre-galerie {
    display: grid;
    gap: 0.25rem;
    padding: 0.25rem;
    background: transparent;
    border-bottom: 1px solid #2f241e;
}

body.post-mortem .lettre-galerie .photo-item {
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
}

body.post-mortem .lettre-galerie .photo-item a {
    display: block;
    width: 100%;
    height: 100%;
    border-bottom: none;
    line-height: 0;
}

body.post-mortem .lettre-galerie .photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: filter var(--transition-slow);
    background: transparent;
    border: none;
    outline: none;
}

body.post-mortem .lettre-galerie .photo-item a:hover img {
    filter: brightness(0.85);
}

body.post-mortem .lettre-galerie.single {
    grid-template-columns: 1fr;
    max-height: 460px;
    padding: 0;
    gap: 0;
}

body.post-mortem .lettre-galerie.single .photo-item {
    max-height: 460px;
    aspect-ratio: auto;
    border: none;
}

body.post-mortem .lettre-galerie.single .photo-item img {
    object-fit: contain;
    max-height: 460px;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: none;
    outline: none;
    background: transparent;
}

body.post-mortem .lettre-galerie.two {
    grid-template-columns: 1fr 1fr;
}

body.post-mortem .lettre-galerie.two .photo-item {
    aspect-ratio: 1/1;
}

body.post-mortem .lettre-galerie.three {
    grid-template-columns: 1fr 1fr;
}

body.post-mortem .lettre-galerie.three .photo-item {
    aspect-ratio: 1/1;
}

body.post-mortem .lettre-galerie.three .photo-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 2/1;
    max-height: 260px;
}

body.post-mortem .lettre-galerie.three .photo-item:first-child img {
    object-fit: cover;
}

body.post-mortem .lettre-galerie.three .photo-item:not(:first-child) {
    aspect-ratio: 1/1;
}

body.post-mortem .lettre-galerie.four {
    grid-template-columns: 1fr 1fr;
}

body.post-mortem .lettre-galerie.four .photo-item {
    aspect-ratio: 1/1;
}

body.post-mortem .lettre-galerie.five {
    grid-template-columns: 1fr 1fr 1fr;
}

body.post-mortem .lettre-galerie.five .photo-item {
    aspect-ratio: 1/1;
}

body.post-mortem .lettre-galerie.five .photo-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 3/1;
    max-height: 200px;
}

body.post-mortem .lettre-galerie.five .photo-item:first-child img {
    object-fit: cover;
}

body.post-mortem .lettre-galerie.five .photo-item:not(:first-child) {
    aspect-ratio: 1/1;
}

body.post-mortem .lettre-galerie.six {
    grid-template-columns: 1fr 1fr 1fr;
}

body.post-mortem .lettre-galerie.six .photo-item {
    aspect-ratio: 1/1;
}

body.post-mortem .lettre-contenu {
    padding: 1.8rem 2rem 1.5rem;
}

body.post-mortem .lettre-entete {
    display: none;
}

body.post-mortem .lettre-texte {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #c4b8ae;
}

body.post-mortem .lettre-texte p {
    margin-bottom: 0.9rem;
}

body.post-mortem .lettre-texte p:last-child {
    margin-bottom: 0;
}

body.post-mortem .lettre-texte .signature {
    margin-top: 1.2rem;
    font-style: italic;
    color: #8a7a6e;
    font-size: 1rem;
    border-top: 1px dashed #3f322a;
    padding-top: 0.8rem;
    text-align: left;
}

body.post-mortem .retour-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.6rem 1.5rem;
    background: #14100e;
    border: 1px solid #2f241e;
    border-radius: var(--radius-md);
    color: #8a7a6e;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    border-bottom: none;
}

body.post-mortem .retour-link:hover {
    background: #1f1815;
    color: #e6ddd6;
    border-color: #8a7a6e;
}

body.post-mortem .footer-enriched {
    border-top: 1px solid #2f241e;
}

body.post-mortem .footer-nav a {
    color: #8a7a6e;
}

body.post-mortem .footer-nav a:hover {
    color: #e6ddd6;
}

body.post-mortem .footer-sep {
    color: #2f241e;
}

body.post-mortem .footer-info {
    color: #8a7a6e;
}

body.post-mortem .footer-identity {
    color: #8a7a6e;
}

body.post-mortem .footer-links a {
    color: #8a7a6e;
}

body.post-mortem .footer-links a:hover {
    color: #e6ddd6;
}

body.post-mortem .footer-copyright {
    color: #8a7a6e;
    border-top: 1px solid #2f241e;
}

body.post-mortem .back-to-top {
    background: #14100e;
    border: 1px solid #2f241e;
    color: #8a7a6e;
}

body.post-mortem .back-to-top:hover {
    background: #e6ddd6;
    color: #0a0807;
    border-color: #e6ddd6;
}

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

.footer-enriched {
    max-width: 880px;
    margin: 3rem auto 0;
    padding: 2rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 450;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--text);
    color: var(--bg-card);
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.back-to-top svg {
    transition: transform var(--transition-fast);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.footer-nav {
    margin: 1.5rem 0 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: none;
    margin: 0 0.25rem;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-sep {
    color: var(--border);
    font-size: 0.6rem;
    margin: 0 0.25rem;
}

.footer-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-identity {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: none;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copyright {
    font-size: 0.65rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   VIDEOS
   ============================================ */

/* Supprimer la bordure des liens contenant les vidéos */
.video-lien {
    text-decoration: none;
    color: inherit;
    display: flex;
    border-bottom: none;
}

.video-lien:hover {
    border-bottom: none;
}

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.video-thumb {
    width: 280px;
    height: 170px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.video-item:hover .video-thumb img {
    transform: scale(1.02);
}

.video-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info h3 {
    font-size: 1.25rem;
    font-weight: 580;
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   AUDIO
   ============================================ */

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.audio-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.8rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.audio-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.audio-header h3 {
    font-size: 1.3rem;
    font-weight: 580;
    margin: 0;
}

.audio-header time {
    font-size: 0.7rem;
    font-weight: 430;
    color: var(--text-muted);
}

.audio-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 90%;
}

.audio-player-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.audio-player-wrapper audio {
    flex: 1;
    height: 36px;
}

.audio-duration {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

/* ============================================
   MAP
   ============================================ */

.map-section {
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.map-header {
    margin-bottom: 1rem;
    text-align: center;
}

.map-header h3 {
    font-size: 1.1rem;
    font-weight: 560;
    margin-bottom: 0.25rem;
}

.map-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

#map,
#map-current {
    width: 100%;
    height: 280px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    z-index: 1;
}

.custom-marker-current {
    background: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.custom-marker-current:hover {
    transform: rotate(-45deg) scale(1.1);
}

.custom-marker-current::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-radius: 50%;
}

/* ============================================
   JOURNAL - PAGES DE SEMAINES
   ============================================ */

.journal-entry .jour p {
    text-indent: 1.5em;
}

.journal-entry .important {
    background: var(--bg);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 3px solid var(--text);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.journal-entry .important p {
    text-indent: 0;
    margin: 0;
}

.journal-entry .meta {
    font-weight: 600;
    color: var(--text-light);
    text-indent: 0;
}

.journal-entry .absent {
    color: var(--text-muted);
    font-style: italic;
    text-indent: 0;
}

.journal-entry .lien-original {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-indent: 0;
}

.journal-entry .lien-original a {
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.journal-entry .lien-original a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

.journal-entry .media-container {
    margin: 1.5rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.journal-entry .media-container video,
.journal-entry .media-container img {
    display: block;
    width: 100%;
    height: auto;
}

.journal-entry .media-container video {
    background: #1a1a1a;
}

.journal-entry .media-caption {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    text-align: left;
}

.journal-entry .media-caption p {
    text-indent: 0;
    margin: 0;
}

.media-jour {
    margin: 1.75rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.media-jour audio,
.media-jour video {
    width: 100%;
    display: block;
}

.media-jour video {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
    background: #1a1a1a;
}

.media-jour {
    text-align: center;
}

.media-jour img {
    width: 100%;
    height: auto;
    display: block;
}

.media-jour figcaption {
    padding: 0.9rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 420;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    text-align: left;
}

.journal-entry {
    margin-bottom: 2rem;
}

.jour {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.jour:last-child {
    border-bottom: none;
}

.jour h3 {
    font-size: 1.7rem;
    font-weight: 590;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.jour p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* ============================================
   A PROPOS
   ============================================ */

.author-section {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.portrait-frame {
    position: relative;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.portrait-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.portrait-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0.15);
    transition: filter var(--transition-base);
    border-radius: var(--radius-md);
}

.portrait-frame:hover img {
    filter: grayscale(0);
}

.author-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.8rem;
    font-weight: 470;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.author-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.meta-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.method-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.method-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
}

.method-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text);
    font-size: 0.7rem;
    opacity: 0.7;
}

.timeline {
    margin-top: 1.5rem;
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--text);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.timeline-item:hover::before {
    background: var(--text);
}

.timeline-year {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.timeline-content {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.quote-block {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--text);
    background: var(--bg);
    border-radius: var(--radius-md);
}

.quote-block p {
    font-size: 1.15rem;
    font-weight: 440;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.quote-block cite {
    font-size: 0.7rem;
    font-weight: 450;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
    color: var(--text-muted);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.75rem;
        transition: right var(--transition-base);
        border-left: 1px solid var(--border);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
    }

    #menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-toggle {
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0.75rem;
        display: none;
        width: 100%;
        pointer-events: auto;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu a {
        text-align: center;
        padding: 0.5rem;
    }

    .header-content {
        padding: 7rem 1rem 3rem;
    }

    .hero-image {
        height: 240px;
    }

    .hero-content {
        padding: 1.25rem;
    }

    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .photo-thumb {
        height: 260px;
    }

    .photo-frame {
        height: 300px;
    }

    .video-lien {
        flex-direction: column;
    }

    .video-thumb {
        width: 100%;
        height: 200px;
    }

    .audio-item {
        padding: 1.25rem;
    }

    .audio-desc {
        max-width: 100%;
    }

    .audio-player-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .audio-player-wrapper audio {
        width: 100%;
    }

    .author-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .author-portrait {
        max-width: 220px;
        margin: 0 auto;
    }

    .content-section {
        padding: 1.5rem;
    }

    .nav-semaines {
        flex-direction: column;
        gap: 0.75rem;
    }

    #map,
    #map-current {
        height: 240px;
    }

    .media-jour video {
        max-height: 50vh;
    }

    .mois-bloc {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .mois-nom {
        min-width: auto;
    }

    .citation-ancien-site {
        font-size: 0.9rem;
        padding: 1rem 1.2rem;
    }

    .citation-ancien-site::before,
    .citation-ancien-site::after {
        font-size: 1.8rem;
    }

    /* Mobile correspondance */
    .lettre-resume {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }

    .lettre-resume::before {
        position: absolute;
        left: 0.5rem;
        top: 1rem;
    }

    .lettre-date,
    .lettre-destinataire,
    .lettre-sujet {
        padding-left: 1.2rem;
    }

    .lettre-date {
        min-width: auto;
    }

    .lettre-destinataire {
        min-width: auto;
    }

    .details-lettre[open] .lettre-corps {
        padding: 1rem;
    }

    .lettre-corps {
        padding: 0 1rem;
    }

    .message-entete {
        flex-direction: column;
        gap: 0.2rem;
    }

    .message-entete .message-date {
        margin-left: 0;
    }

    .message-texte {
        font-size: 0.85rem;
    }

    /* Mobile footer */
    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-nav .footer-sep {
        display: none;
    }

    .footer-nav a {
        margin: 0;
        padding: 0.2rem 0.5rem;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-identity .footer-sep {
        display: none;
    }

    .back-to-top {
        padding: 0.4rem 1rem;
    }

    .back-to-top span {
        display: none;
    }

    .back-to-top svg {
        margin: 0;
    }

    /* Journal améliorations mobile */
    .journal-entry .important {
        padding: 0.75rem 1rem;
    }

    /* ==========================================================
       RESPONSIVE POST-MORTEM
       ========================================================== */
    body.post-mortem .titre-epistulae {
        font-size: clamp(2rem, 8vw, 2.8rem);
        letter-spacing: 3px;
        padding: 0.2rem 0.8rem;
    }

    body.post-mortem .lettre-contenu {
        padding: 1.2rem 1.2rem 1rem;
    }

    body.post-mortem .lettre-texte {
        font-size: 0.95rem;
    }

    body.post-mortem .lettre-galerie {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.25rem;
        padding: 0.25rem;
    }

    body.post-mortem .lettre-galerie .photo-item {
        aspect-ratio: 1/1 !important;
        max-height: none;
    }

    body.post-mortem .lettre-galerie.three .photo-item:first-child,
    body.post-mortem .lettre-galerie.five .photo-item:first-child {
        grid-column: auto;
        aspect-ratio: 1/1 !important;
        max-height: none;
    }

    body.post-mortem .lettre-galerie.single {
        grid-template-columns: 1fr !important;
        max-height: 300px;
        padding: 0;
        gap: 0;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    body.post-mortem .lettre-galerie.single .photo-item {
        max-height: 300px;
        max-width: 100%;
        aspect-ratio: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body.post-mortem .lettre-galerie.single .photo-item a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: auto;
        height: auto;
    }

    body.post-mortem .lettre-galerie.single .photo-item img {
        max-height: 300px;
        width: auto;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }

    body.post-mortem .lettre-galerie.five {
        grid-template-columns: 1fr 1fr !important;
    }

    body.post-mortem .lettre-galerie.six {
        grid-template-columns: 1fr 1fr !important;
    }

    body.post-mortem .lettre-destinataire-header {
        padding: 0.75rem 1rem 0.25rem 1rem;
        font-size: 0.7rem;
    }

    body.post-mortem .lettre-destinataire-header .destinataire-mort {
        font-size: 0.85rem;
    }

    body.post-mortem .lettre-destinataire-header .date-envoi {
        font-size: 0.6rem;
        margin-left: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}