/* ================================================
   Le Cri Du Slip — Site archive 2003-2006
   Style fidèle à l'original, adapté mobile
   ================================================ */

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

body {
    background-color: #FFE800;
    text-align: center;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000;
}

a { color: #aa0000; text-decoration: none; border: 0; }
a:visited { color: #aa0000; }
a:hover { color: red; }

hr {
    border: none;
    border-top: 1px solid #FFFFFF;
    height: 1px;
    margin: 8px 0;
}

h1 { font-size: 16px; font-weight: bold; color: #CC0000; }
ul { padding-left: 18px; }
li { margin-bottom: 4px; }
p { margin-bottom: 8px; }

/* ---- Wrapper ---- */
.wrapper {
    max-width: 820px;
    margin: 0 auto;
    background-color: #FFCC00;
    border: 2px solid #FFFFFF;
    text-align: left;
}

/* ---- Header ---- */
.header-top {
    display: flex;
    align-items: flex-end;
    background-color: #FFCC00;
}

.header-top .logo { display: block; flex-shrink: 0; }

.member-photos-top { display: flex; flex: 1; overflow: hidden; }

.nav-row {
    display: flex;
    background-color: #FFCC00;
}

/* ---- Member hover buttons ---- */
.member-btn {
    position: relative;
    display: inline-block;
    border: 1px solid #FFCC00;
    border-top: 0;
    border-right: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.member-btn .img-normal { display: block; }
.member-btn .img-hover  { display: none; }
.member-btn:hover .img-normal { display: none; }
.member-btn:hover .img-hover  { display: block; }
.member-btn:hover { border-color: #FFFFFF; }

/* ---- Nav buttons ---- */
.nav-btn {
    display: block;
    border: 1px solid #FFCC00;
    border-top: 0;
    border-right: 0;
    position: relative;
    top: 0;
    flex-shrink: 0;
}

.nav-btn:hover {
    top: 3px;
    border-color: #FFFFFF;
}

/* ---- Content area ---- */
.content {
    padding: 10px;
    background-color: #FFCC00;
    text-align: left;
}

/* ---- Typography ---- */
.titre {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 32px;
    font-weight: bold;
    color: #A00000;
    text-align: center;
    padding: 10px 0;
}

.stitre {
    font-size: 16px;
    font-weight: bold;
    color: #A00000;
    margin-bottom: 6px;
}

.sous_titre { font-size: 14px; font-weight: bold; color: #CC0000; }
.texte_normal { font-size: 12px; }
.texte_petit { font-size: 11px; }

.normal { font-size: 14px; color: #C00000; }
.normal_red_bold { font-size: 14px; color: #A00000; font-weight: bold; }
.mp3 { font-size: 16px; color: #C00000; }

.petit_plain { font-size: 12px; color: #500000; }

.petit {
    font-size: 12px;
    color: #500000;
    background-color: #FFEE00;
    padding: 10px;
}

/* ---- Boxes ---- */
.encadre {
    border: 1px solid #FFDD00;
    background-color: #FFCC00;
    padding: 10px;
    margin-bottom: 8px;
}

.edito {
    border: 1px solid #FFDD00;
    background-color: #FFCC00;
    color: #000;
    padding: 10px;
    margin-bottom: 8px;
}

.edito_photo {
    border: 1px solid #FFDD00;
    background-color: #FFCC00;
    padding: 0;
}

.messages {
    border: 1px solid #FFFFFF;
    background-color: #FBE800;
    font-size: 10px;
    color: #000;
    margin: 10px;
    padding: 10px;
}

/* ---- Images ---- */
.img_photo { border: 1px solid #FFFFFF; display: block; }

/* ---- Member page ---- */
.membre-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.membre-photos { flex-shrink: 0; display: flex; gap: 0; }
.membre-bio { flex: 1; min-width: 0; }
.membre-bio img { margin-bottom: 6px; }

.membre-likes { margin-top: 10px; }
.membre-likes strong { color: #A00000; }

/* ---- Photo gallery ---- */
.galerie-titre {
    border: 1px solid #FFDD00;
    padding: 8px 10px;
    text-align: center;
    color: #CC0000;
    font-size: 14px;
    font-weight: bold;
    background-color: #FFCC00;
    margin-top: 14px;
}

.photo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    background-color: #FFCC00;
    padding: 5px;
}

.photo-cell {
    background-color: #FFCC00;
    border: 1px solid #FFFFFF;
    padding: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.photo-cell:hover { opacity: 0.8; }
.photo-cell img { border: 1px solid #FFFFFF; display: block; }

/* ---- Lightbox ---- */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#lightbox.open { display: flex; }

#lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border: 3px solid #FFE800;
    cursor: default;
    display: block;
}

#lightbox-close {
    position: absolute;
    top: 12px; right: 20px;
    color: #FFE800;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 0 6px #000;
}

#lightbox-caption {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFE800;
    font-size: 13px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 3px;
    max-width: 80%;
}

/* ---- Concerts ---- */
.concerts-future { margin-bottom: 20px; }
.concerts-past { margin-top: 10px; }
.concerts-past ul { list-style: disc; padding-left: 20px; }

.concert-item {
    border-bottom: 1px solid #FFDD00;
    padding: 8px 0;
    margin-bottom: 2px;
}

.concert-date { font-weight: bold; color: #CC0000; font-size: 13px; }
.concert-lieu { font-weight: bold; }
.concert-info { font-size: 11px; color: #500000; margin-top: 3px; }

/* ---- Liens ---- */
.liens-qui {
    font-weight: bold;
    margin: 14px 0 4px 0;
    color: #A00000;
    font-size: 13px;
}

.liens-liste { list-style: none; padding: 0; }
.liens-liste li { margin-bottom: 8px; padding-left: 8px; }

/* ---- Contact ---- */
.contact-box {
    background-color: #FBE800;
    border: 1px solid #FFFFFF;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
}

.contact-email {
    font-size: 18px;
    font-weight: bold;
    color: #A00000;
    margin: 12px 0;
}

/* ---- Paroles ---- */
.paroles-back { margin-bottom: 10px; font-size: 12px; color: #500000; }

.paroles-text {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: #000;
    white-space: pre-wrap;
}

.paroles-credit {
    font-style: italic;
    color: #A00000;
    margin-bottom: 12px;
    font-size: 14px;
}

/* ---- MP3 / Média ---- */
.media-columns {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.media-col { flex: 1; min-width: 0; }

.song-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    padding: 4px 6px;
}

.song-item img { flex-shrink: 0; }
.song-item span { font-size: 12px; }

.song-link {
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid #FFDD00;
    font-size: 13px;
    color: #A00000;
}

.song-link:hover { color: red; }

audio {
    width: 100%;
    max-width: 280px;
    height: 32px;
    display: block;
    margin-top: 4px;
}

/* ---- Video list ---- */
.video-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #FFDD00;
}

.video-icon { flex-shrink: 0; text-align: center; font-size: 10px; color: #500000; }
.video-desc { flex: 1; font-size: 12px; }
.video-desc em { color: #500000; }

/* ---- Footer ---- */
.site-footer { background-color: #FFCC00; }

.footer-top {
    display: flex;
    align-items: flex-end;
    background-color: #FFCC00;
}

.footer-top .logo2 { display: block; flex-shrink: 0; }

.footer-right { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }

.footer-btn-row { display: flex; }

.footer-btn {
    display: block;
    border: 1px solid #FFCC00;
    border-bottom: 0;
    border-right: 0;
}

.footer-btn:hover { border-color: #FFFFFF; }

.footer-slips { display: flex; }

.footer-slip-btn {
    position: relative;
    display: inline-block;
    border: 1px solid #FFCC00;
    border-top: 0;
    border-right: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-slip-btn:hover { border-color: #FFFFFF; }
.footer-slip-btn .img-normal { display: block; }
.footer-slip-btn .img-hover  { display: none; }
.footer-slip-btn:hover .img-normal { display: none; }
.footer-slip-btn:hover .img-hover  { display: block; }

.copyright {
    text-align: center;
    font-size: 11px;
    padding: 6px 4px;
    color: #500000;
    background-color: #FFCC00;
}

/* ---- Quotes ---- */
.quotes { font-size: 11px; color: #500000; margin-top: 14px; }
.quotes blockquote { margin: 6px 0 2px 0; font-style: italic; }
.quotes .auteur { font-weight: bold; font-style: normal; margin-left: 8px; }

/* ---- Archive banner ---- */
.archive-notice {
    background-color: #A00000;
    color: #FFE800;
    text-align: center;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
}

.archive-notice .visit-counter {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: normal;
    color: #FFE800;
    opacity: 0.7;
    letter-spacing: 0;
}

/* ---- Totem ---- */
.totem-left {
    position: absolute;
    top: 40px;
    left: 0;
    width: 225px;
    z-index: 5;
}

.totem-left img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
}

.page-frame {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 1320px) {
    .totem-left { display: none; }
}

/* ---- Liens morts / désactivés (non cliquables, URL visible) ---- */
.lien-mort > a,
.lien-mort > .lien-mort-url,
.lien-off {
    color: #888 !important;
    text-decoration: line-through;
    cursor: not-allowed;
}
.lien-mort > .lien-mort-url strong,
.lien-off strong { color: #888; }

.lien-mort .lien-mort-badge {
    display: inline-block;
    background-color: #A00000;
    color: #FFE800;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    margin-left: 6px;
    border-radius: 2px;
    text-decoration: none;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

/* ---- Bandeau home (page contact) ---- */
.contact-banner {
    margin: 12px 0 0 0;
    line-height: 0;
    background-color: #FFCC00;
}

.contact-banner img {
    display: block;
    width: 100%;
    max-width: 820px;
    height: auto;
    margin: 0 auto;
}

/* ---- Jukebox EP ---- */
.ep-section {
    background-color: #FFCC00;
    border: 1px solid #FFDD00;
    padding: 12px;
    margin-bottom: 10px;
}

.ep-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ep-cover {
    flex-shrink: 0;
    width: 180px;
}

.ep-cover img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #A00000;
    box-shadow: 2px 2px 0 #500000;
}

.ep-meta { flex: 1; min-width: 0; }
.ep-meta h1 { margin-bottom: 4px; }
.ep-meta .ep-year { color: #500000; font-size: 11px; margin-bottom: 8px; }
.ep-meta .ep-blurb { font-size: 12px; color: #000; }

.ep-tracklist {
    border-top: 2px solid #A00000;
    margin-top: 8px;
    padding-top: 6px;
}

.track-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-bottom: 1px dotted #A00000;
    cursor: pointer;
    transition: background-color 0.15s;
}

.track-row:hover { background-color: #FFE800; }

.track-row.track-playing {
    background-color: #FFE800;
    box-shadow: inset 3px 0 0 #A00000;
}

.track-num {
    flex-shrink: 0;
    width: 22px;
    font-weight: bold;
    color: #A00000;
    font-size: 14px;
    text-align: center;
}

.track-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #A00000;
    color: #FFE800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.track-icon::before { content: "\25B6"; }
.track-row.track-playing .track-icon::before { content: "\25A0"; font-size: 11px; }

.track-title {
    flex: 1;
    font-size: 13px;
    color: #000;
    font-weight: bold;
}

.track-row.track-playing .track-title { color: #A00000; }

.track-dur {
    flex-shrink: 0;
    font-size: 11px;
    color: #500000;
    font-variant-numeric: tabular-nums;
}

.track-lyrics-link {
    flex-shrink: 0;
    font-size: 11px;
    color: #A00000;
    padding: 2px 6px;
    border: 1px solid #A00000;
    text-decoration: none;
}

.track-lyrics-link:hover {
    background-color: #A00000;
    color: #FFE800;
}

.jukebox-bar {
    margin-top: 10px;
    padding: 10px;
    background-color: #A00000;
    color: #FFE800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jukebox-play {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 2px solid #FFE800;
    background-color: #A00000;
    color: #FFE800;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.1s;
}

.jukebox-play:hover { transform: scale(1.08); }
.jukebox-play::before { content: "\25B6"; font-size: 14px; margin-left: 2px; }
.jukebox-play.is-playing::before { content: "\23F8"; margin-left: 0; font-size: 16px; }

.jukebox-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#jukebox-title {
    font-size: 12px;
    font-weight: bold;
    color: #FFE800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jukebox-progress {
    height: 6px;
    background-color: #500000;
    cursor: pointer;
    position: relative;
}

.jukebox-progress-fill {
    height: 100%;
    background-color: #FFE800;
    width: 0%;
    transition: width 0.1s linear;
}

.jukebox-times {
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    color: #FFE800;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ep-header { flex-direction: column; align-items: center; text-align: center; }
    .ep-cover { width: 140px; }
    .track-lyrics-link { display: none; }
}

/* ---- Modale paroles ---- */
#lyrics-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#lyrics-modal.open { display: flex; }

.lyrics-modal-box {
    background-color: #FFCC00;
    border: 3px solid #FFE800;
    box-shadow: 4px 4px 0 #500000;
    width: 100%;
    max-width: 540px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lyrics-modal-header {
    background-color: #A00000;
    color: #FFE800;
    padding: 10px 40px 10px 14px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.lyrics-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    color: #FFE800;
    font-size: 26px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    user-select: none;
}

.lyrics-modal-close:hover { color: #fff; }

.lyrics-modal-body {
    padding: 14px 16px 16px 16px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: #000;
    white-space: pre-wrap;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

.lyrics-modal-body em {
    color: #A00000;
    font-style: italic;
}

@media (max-width: 640px) {
    .lyrics-modal-box { max-height: 92vh; }
    .lyrics-modal-body { font-size: 12px; line-height: 1.6; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .wrapper { border: none; }

    .header-top { flex-direction: column; align-items: center; }
    .header-top .logo { text-align: center; }
    .member-photos-top { justify-content: center; flex-wrap: wrap; }

    .nav-row { flex-wrap: wrap; justify-content: center; }
    .nav-btn img { max-width: 100%; height: auto; }

    .media-columns { flex-direction: column; }

    .membre-layout { flex-direction: column; }

    .footer-top { flex-direction: column; align-items: center; }
    .footer-right { align-items: center; }
    .footer-btn-row { flex-wrap: wrap; justify-content: center; }
    .footer-slips { flex-wrap: wrap; justify-content: center; }

    .photo-row { justify-content: center; }
}
