:root {
    --bg: #1a1010;
    --bg-mid: #2a1a1a;
    --bg-card: #231515;
    --border: rgba(222, 200, 191, 0.12);
    --accent: #DEC8BF;
    --accent2: #b89080;
    --warm: #8c6060;
    --warm-dark: #5c3838;
    --text: #f0e8e4;
    --muted: #a89090;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* WRAPPER */
.details-wrapper {
    padding: 60px 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARD */
.details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ════════════════════════════
   FORMAT PORTRAIT
════════════════════════════ */
.details-card:has(.details-left.portrait) {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.details-left.portrait {
    flex: 0 0 35%;
    max-width: 35%;
    background: var(--bg-mid);
    border-right: 1px solid var(--border);
    padding: 32px;
    display: flex;
    justify-content: center;
}

.details-left.portrait img {
    width: 600px;
    max-width: 100%;
    border-radius: 12px;
}

.details-left.portrait .img-title {
    display: none;
}

.details-card:has(.details-left.portrait) .details-right {
    flex: 1;
    min-width: 350px;
    padding: 40px 48px;
}

.details-right {
  padding: 40px 48px 60px; /* ajoute 20px en bas */
}

/* ════════════════════════════
   FORMAT PAYSAGE
════════════════════════════ */
.details-card:has(.details-left.landscape) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-left.landscape {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border);
    padding: 36px 40px 28px;
    gap: 20px;
}

.details-left.landscape img {
    width: 600px;
    max-width: 100%;
    border-radius: 12px;
}

.details-left.landscape .img-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    color: var(--accent);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.details-left.landscape~.details-right {
    padding: 56px 64px;
    max-width: 900px;
    margin: 0 auto;
}

/* ════════════════════════════
   TYPOGRAPHIE COMMUNE
════════════════════════════ */
.details-right {
    line-height: 1.9;
    letter-spacing: 0.25px;
    word-spacing: 0.6px;
}

.details-right h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 20px;
    line-height: 1.25;
}

.details-left.landscape~.details-right h1 {
    display: none;
}

.details-right h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 32px 0 18px;
}

.description {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--muted);
    max-width: 80ch;
    text-align: justify;
    margin-bottom: 36px;
    hyphens: auto;
}

.tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--warm-dark);
    border: 1px solid var(--warm);
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

/* RELATIONS*/
.relations {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.relations>li {
    background: var(--bg-mid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 0.95rem;
    line-height: 1.8;
    word-break: break-word;
    transition: border-color 0.2s, transform 0.2s;
}

.relations>li:hover {
    border-color: var(--warm);
    transform: translateY(-1px);
}

.relations>li strong {
    color: var(--accent);
}

.sub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-list li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.85rem;
    line-height: 1.75;
    word-break: break-word;
}

.sub-list li strong {
    color: var(--accent);
}

/* BOUTON RETOUR */
.back-lien{
  text-decoration: underline;
  text-underline-offset: 3px;  
  text-decoration-thickness: 1px; 
  color: inherit;   
  margin-top: 20px;        
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .details-wrapper {
        padding: 24px 16px 60px;
    }

    .details-card {
        flex-direction: column;
    }

    .details-left.portrait,
    .details-left.landscape {
        max-width: 100%;
        padding: 24px;
    }

    .details-right {
        padding: 28px 24px;
    }

    .description {
        max-width: 100%;
        text-align: left;
    }
}