/* ── Variables ── */
:root {
    --gold:    #ffc107;
    --gold-dk: #e6a800;
    --dark:    #111111;
    --dark2:   #1a1a1a;
    --light:   #f8f8f8;
    --text:    #333;
    --radius:  10px;
    --shadow:  0 4px 20px rgba(0,0,0,0.12);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
}

.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gold-text { color: var(--gold) !important; }

/* ── Navbar ── */
.navbar {
    background: var(--dark) !important;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.navbar-brand {
    color: var(--gold) !important;
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    max-height: clamp(30px, 5vw, 50px);
    width: auto;
}

.nav-link {
    color: #ccc !important;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem clamp(0.5rem, 2vw, 1rem) !important;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
}

.navbar-toggler {
    border-color: var(--gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Slider ── */
.carousel-item img {
    height: clamp(200px, 50vh, 600px);
    object-fit: cover;
    filter: brightness(0.85);
    width: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.65);
    border-radius: var(--radius);
    padding: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2.5rem);
    backdrop-filter: blur(4px);
    left: clamp(0.5rem, 5vw, 2rem);
    right: clamp(0.5rem, 5vw, 2rem);
}

.carousel-caption h5 {
    color: var(--gold);
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    color: #eee;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
}

/* ── Cards Albums ── */
.card {
    border: none !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
}

.card-img-top {
    height: clamp(150px, 30vw, 250px);
    object-fit: cover;
    transition: transform 0.4s;
    width: 100%;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.card-title {
    color: var(--dark);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.card-text {
    color: #666;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* ── Boutons ── */
.btn-gold {
    background: var(--gold);
    color: #000;
    font-weight: 600;
    border: none;
    padding: clamp(0.4rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 30px;
    transition: background 0.2s, transform 0.15s;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-dk);
    transform: scale(1.03);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    border-radius: 30px;
    padding: clamp(0.4rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    background: transparent;
    transition: all 0.2s;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    cursor: pointer;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

/* ── Album Hero ── */
.album-hero {
    min-height: clamp(200px, 40vh, 400px);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.album-hero h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: clamp(1.5rem, 5vw, 3rem);
}

/* ── Photo Grid ── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 25vw, 200px), 1fr));
    gap: clamp(0.5rem, 2vw, 1.5rem);
    margin: clamp(1rem, 3vw, 2rem) 0;
}

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

@media (min-width: 481px) and (max-width: 768px) {
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) {
    .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

.photo-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1/1;
    background: #ddd;
    cursor: pointer;
}

.photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s, filter 0.3s;
    display: block;
}

.photo-item:hover .photo-thumb {
    transform: scale(1.08);
    filter: brightness(0.88);
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    width: auto;
    height: auto;
}

.lightbox-close {
    position: absolute;
    top: clamp(10px, 2vw, 20px);
    right: clamp(10px, 2vw, 20px);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: clamp(1.5rem, 4vw, 2rem);
    cursor: pointer;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: clamp(1.2rem, 3vw, 2rem);
    padding: clamp(0.5rem, 1vw, 1rem);
    cursor: pointer;
    transition: background 0.2s;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev { left: clamp(10px, 2vw, 20px); }
.lightbox-next { right: clamp(10px, 2vw, 20px); }

/* ── Commentaires ── */
.comment-section {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(1rem, 3vw, 2rem);
    margin: clamp(1rem, 3vw, 2rem) 0;
    box-shadow: var(--shadow);
}

.comment-section h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.comment-item {
    border-left: 3px solid var(--gold);
    background: #fafafa;
    border-radius: var(--radius);
    padding: clamp(0.75rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.comment-text {
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.comment-date {
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: #999;
    margin-top: 0.3rem;
}

/* ── Réactions ── */
.btn-reaction {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    padding: clamp(0.3rem, 1vw, 0.6rem) clamp(0.7rem, 2vw, 1.2rem);
    border-radius: 50px;
    border: 2px solid #ddd;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-reaction:hover { border-color: var(--gold); }

.btn-reaction.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 600;
}

/* ── Footer ── */
.footer-dark {
    background: var(--dark);
    border-top: 2px solid var(--gold);
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    margin-top: clamp(2rem, 5vw, 3rem);
}

.footer-dark p {
    color: #aaa;
    margin: 0;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* ── Admin Sidebar ── */
.admin-sidebar {
    background: var(--dark2);
    min-height: 100vh;
    padding: clamp(1rem, 2vw, 2rem) 0;
    width: clamp(200px, 20vw, 300px);
}

.admin-sidebar .nav-link {
    color: #bbb !important;
    padding: clamp(0.5rem, 1vw, 1rem) clamp(1rem, 2vw, 1.5rem) !important;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,193,7,0.15);
    color: var(--gold) !important;
    border-left: 3px solid var(--gold);
}

.admin-sidebar .nav-link i { font-size: 1.1rem; }

.admin-brand {
    color: var(--gold);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
}

/* ── Admin Content ── */
.admin-content {
    background: #f5f5f5;
    min-height: 100vh;
    padding: clamp(1rem, 2vw, 2rem);
}

/* ── Stats Cards Admin ── */
.stat-card {
    border-radius: var(--radius);
    padding: clamp(1rem, 2vw, 1.5rem);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    opacity: 0.2;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card .stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    opacity: 0.9;
}

/* ── Responsive Mobile First ── */
@media (max-width: 480px) {
    .navbar { padding: 0.5rem 0; }
    .carousel-item img { height: 200px; }
    .admin-sidebar { width: 100%; min-height: auto; margin-bottom: 1rem; }
    .card-body { padding: 1rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .carousel-item img { height: 300px; }
}

@media (min-width: 769px) {
    .carousel-item img { height: 500px; }
}
