:root {
    --light-bg: #fdfdfd;
    --dark-bg: #2f2f2f;
    --border: #694e7a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: var(--light-bg);
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.08),
        0 20px 60px rgba(0,0,0,0.06);
}

header {
    padding: 10px 20px 6px;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(to bottom, #f8f8f8, #ececec);
    background-image: url("https://lavande47.fr/playlists/webplates/body-bg.png");
    background-repeat: repeat;
    border-radius: 0 0 15px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header img {
    width: 110px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.title-image {
    margin-bottom: 10px;
    text-align: center;
}

.title-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 2px solid var(--border);
    border-radius: 15px;
    margin: 0 auto;
}

.content {
    flex: 3 1 0;
    min-width: 0;
    background: #f5f3ee;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
    color: #222;
    text-align: justify;
    border-radius: 15px;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: 0.02em;
}

.content p {
    margin: 0 0 16px 0;
}

.home .content > p:first-of-type::first-letter, 
.misc .content > p:first-of-type::first-letter {
    font-size: 3.6em;
    line-height: 0.9;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--border);
    font-weight: bold;
    padding-right: 8px;
    padding-top: 4px;
    float: left;
}

.centered-italic {
    line-height: 1.7;
    text-align: center;
    font-style: italic;
    opacity: 0.75;
    color: #222;
}

.section-title {
    line-height: 1.5;
    font-family: 'El Messiri', sans-serif;
    color: #4a463f;
    border-bottom: 1px solid var(--border);
}

.centered-image {
    display: block;
    max-width: 100%;
    border-radius: 15px;
    margin: 10px auto 0;
}

.cover-centered-image {
    display: block;
    width: 250px;
    max-width: 100%;
    margin: 10px auto 0;
}

.divider-left {
        border-top: 1px solid #222; /* line color */
        width: 30%;                 /* only 30% of the container */
        margin: 0;                  /* left-aligned */
        margin: 20px 0 5px;         /* space below the line */
    }

.link-custom {
    color: #3b3f44;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.link-custom:hover {
    color: #000;
    text-decoration: none;
}

/* Spotify / playlist embed */
.playlist-embed {
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.playlist-embed iframe {
    width: 100%;
    max-width: 640px;      /* comfortable reading width */
    height: 380px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Platforms */
.platforms {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.platforms img {
    width:48px;
    height:48px;
    object-fit:contain;
    cursor:pointer;
    transition: transform 0.3s;
}

.platforms img:hover {
    transform: scale(1.1);
}

.platforms button,
.platforms a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    background:#f5f3ee;
    border-radius:14px;
    border:1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.platforms button:hover,
.platforms a:hover {
    background:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,0.12);
    transform:translateY(-2px);
}

/* Player */
.player-wrapper {
    width:100%;
    margin:10px auto 0;
    aspect-ratio:16/9;
    border-radius:15px;
    overflow:hidden;
    position:relative;
    background:url('https://lavande47.fr/playlists/2026/03/10-ans-169.jpg') center/cover no-repeat;
    transition:background 0.6s ease;
}

.player-wrapper.loaded {
    background:none;
}

#playerFrame {
    width:100%; 
    height:100%;
    border:0;
    border-radius:15px;
    opacity:0;
    transition:opacity 0.6s ease;
}

.player-wrapper.loaded #playerFrame {
    opacity:1;
}

#playerFrame[src] {
    opacity:1;
}

/* Image-grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.image-grid a {
    display: flex;              /* allows centering */
    justify-content: center;    /* center image horizontally */
}

.image-grid img {
    width: 90%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--border);
}

.image-grid a:hover img {
    transform: scale(1.03);
}

footer {
    text-align: center;
    margin-top: 10px;
    padding: 18px 10px;
    background: var(--dark-bg);
    background-image: url("https://lavande47.fr/playlists/webplates/body-bg.png");
    background-repeat: repeat;
    border-radius: 15px 15px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

footer a {
    color: #9f9f9f;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}