/* ============================================
   TSIHATAHORA — Style principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&display=swap');

:root {
    --ink: #171310;
    --wine: #6E1E22;
    --wine-deep: #4A1418;
    --paper: #EFE6D3;
    --brass: #B78A4A;
    --line: rgba(239,230,211,0.16);
    --green: #2d6a4f;
    --green-deep: #1b4332;
    --red: #9b2226;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--ink);
    color: var(--paper);
    font-family: 'Fraunces', serif;
    line-height: 1.6;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Flash messages ---- */
.flash {
    padding: 14px 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-align: center;
}
.flash-success { background: var(--green); color: var(--paper); }
.flash-error { background: var(--red); color: var(--paper); }

/* ============================================
   HEADER
   ============================================ */
header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(23,19,16,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
header .wrap {
    display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.brand {
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.02em;
}
.brand span { color: var(--brass); }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a {
    font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 500;
    letter-spacing: 0.03em; opacity: 0.75; transition: opacity .2s, color .2s;
}
nav a:hover, nav a.active { opacity: 1; color: var(--brass); }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 30px; height: 24px; position: relative; z-index: 30;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--paper);
    position: absolute; left: 0; transition: .3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative; overflow: hidden;
    padding: 100px 0 90px;
    background:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(110,30,34,0.55), transparent 60%),
        var(--ink);
    border-bottom: 1px solid var(--line);
}
.hero .wrap {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
/* Hero avec image du groupe en fond (photo artiste via --hero-bg) */
.hero.has-bg {
    background:
        linear-gradient(rgba(23,19,16,0.82), rgba(23,19,16,0.68)),
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(110,30,34,0.55), transparent 60%),
        var(--hero-bg) center / cover no-repeat,
        var(--ink);
}
.kicker {
    font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.14em;
    color: var(--brass); margin-bottom: 18px;
}
h1.title {
    font-size: clamp(42px, 6vw, 72px); font-weight: 600; line-height: 0.98;
    letter-spacing: -0.01em; max-width: 14ch;
}
.hero p.lead {
    margin-top: 24px; max-width: 46ch; font-size: 18px;
    color: rgba(239,230,211,0.78); font-style: italic;
}
.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px;
    letter-spacing: 0.02em; padding: 14px 26px; display: inline-block;
    border: 1px solid var(--paper); transition: .25s;
}
.btn.primary { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.btn.primary:hover { background: var(--wine-deep); }
.btn.ghost:hover { background: var(--paper); color: var(--ink); }
.btn.sm { padding: 10px 18px; font-size: 13px; }
.btn.danger { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn.danger:hover { opacity: .85; }

/* Waveform */
.waveform {
    height: 210px; display: flex; align-items: flex-end; gap: 4px; padding: 20px;
    background: linear-gradient(180deg, rgba(110,30,34,0.25), transparent);
    border: 1px solid var(--line);
}
.waveform i { flex: 1; background: var(--brass); opacity: 0.85; display: block; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.eyebrow {
    font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.08em;
    color: var(--brass); margin-bottom: 10px;
}
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; max-width: 22ch; margin-bottom: 14px; }
.section-lead { max-width: 56ch; color: rgba(239,230,211,0.72); font-size: 17px; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px;
}
.portfolio-card {
    border: 1px solid var(--line); overflow: hidden; transition: border-color .3s;
}
.portfolio-card:hover { border-color: var(--brass); }
.portfolio-card .card-image {
    aspect-ratio: 16/10; display: flex; align-items: flex-end; padding: 18px;
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px;
    background: linear-gradient(155deg, var(--wine), var(--wine-deep));
    color: var(--paper); position: relative; overflow: hidden;
}
.portfolio-card .card-image.img-1 { background: linear-gradient(155deg, #6E1E22, #2B0C0E); }
.portfolio-card .card-image.img-2 { background: linear-gradient(155deg, #3B2B12, #171310); }
.portfolio-card .card-image.img-3 { background: linear-gradient(155deg, #241417, #4A1418); }
.portfolio-card .card-image.img-4 { background: linear-gradient(155deg, #1a3a2a, #0d1f15); }
.portfolio-card .card-image.img-5 { background: linear-gradient(155deg, #2a1a3a, #150d1f); }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.portfolio-card .card-body { padding: 18px 20px 22px; }
.portfolio-card .card-category {
    font-family: 'Oswald', sans-serif; font-size: 12px; color: var(--brass);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.portfolio-card h3 { font-size: 19px; margin: 6px 0 8px; font-weight: 400; }
.portfolio-card p { font-size: 14px; color: rgba(239,230,211,0.6); line-height: 1.5; }

/* ============================================
   EVENTS
   ============================================ */
.events-list { margin-top: 44px; }
.event-card {
    display: grid; grid-template-columns: 100px 1fr auto; gap: 28px; align-items: center;
    padding: 28px 0; border-bottom: 1px solid var(--line);
}
.event-date {
    text-align: center; border: 1px solid var(--line); padding: 14px 10px;
}
.event-date .day {
    font-family: 'Oswald', sans-serif; font-size: 32px; font-weight: 600;
    color: var(--brass); line-height: 1;
}
.event-date .month {
    font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.06em;
    text-transform: uppercase; opacity: 0.7;
}
.event-info h3 { font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.event-info .venue {
    font-family: 'Oswald', sans-serif; font-size: 14px; color: rgba(239,230,211,0.65);
}
.event-info .venue .city { color: var(--brass); }
.event-info .description { font-size: 14px; color: rgba(239,230,211,0.55); margin-top: 6px; }
.event-actions { text-align: right; }
.badge {
    font-family: 'Oswald', sans-serif; font-size: 12px; padding: 6px 12px;
    letter-spacing: 0.04em;
}
.badge-free { background: var(--green); color: var(--paper); }
.badge-ticket { background: var(--wine); color: var(--paper); }

/* ============================================
   ABOUT / BIO
   ============================================ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 44px; align-items: center;
}
.about-photo {
    aspect-ratio: 3/4; background: linear-gradient(155deg, var(--wine), var(--wine-deep));
    display: flex; align-items: flex-end; padding: 24px;
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-bottom: 18px; color: rgba(239,230,211,0.75); font-size: 17px; }
.about-text .social-links { display: flex; gap: 16px; margin-top: 28px; }
.about-text .social-links a {
    font-family: 'Oswald', sans-serif; font-size: 13px; color: var(--brass);
    border-bottom: 1px solid transparent; transition: .2s;
}
.about-text .social-links a:hover { border-bottom-color: var(--brass); }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: rgba(110,30,34,0.08); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 44px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block; font-family: 'Oswald', sans-serif; font-size: 13px;
    letter-spacing: 0.06em; color: var(--brass); margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
    width: 100%; padding: 12px 16px; background: var(--ink); border: 1px solid var(--line);
    color: var(--paper); font-family: 'Fraunces', serif; font-size: 15px;
    transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brass); }
.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info-block { padding-top: 20px; }
.contact-info-block h3 {
    font-family: 'Oswald', sans-serif; font-size: 18px; margin-bottom: 16px; color: var(--brass);
}
.contact-info-block p { color: rgba(239,230,211,0.7); margin-bottom: 8px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--line);
}
.footer-top {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start;
    padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
/* Nom du groupe mis en avant et centré */
.footer-brand-centered { text-align: center; }
.brand-xl { font-size: 32px; letter-spacing: 0.03em; }
.brand-xl span { color: var(--brass); }
/* Réseaux sociaux en icônes only */
.footer-social { text-align: center; }
.footer-social h4 { text-align: center; }
.social-icons {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-top: 4px;
}
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid var(--line);
    color: rgba(239,230,211,0.75); transition: .25s;
}
.social-icons a:hover { border-color: var(--brass); color: var(--brass); }
.social-icons svg { display: block; }
.footer-tagline { margin-top: 10px; font-size: 14px; color: rgba(239,230,211,0.5); font-style: italic; }
.footer-links h4, .footer-contact h4 {
    font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.08em;
    color: var(--brass); margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(239,230,211,0.65); transition: color .2s; }
.footer-links a:hover { color: var(--brass); }
.footer-contact p { font-size: 14px; color: rgba(239,230,211,0.65); }
.footer-bottom {
    padding-top: 28px; text-align: center;
    font-family: 'Oswald', sans-serif; font-size: 12px; opacity: 0.4;
}

/* ============================================
   ADMIN
   ============================================ */
.admin-login {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--ink);
}
.admin-login .login-box {
    width: 100%; max-width: 400px; padding: 40px;
    border: 1px solid var(--line); background: rgba(239,230,211,0.03);
}
.admin-login h1 {
    font-size: 24px; margin-bottom: 8px;
}
.admin-login .subtitle { font-size: 14px; color: rgba(239,230,211,0.5); margin-bottom: 32px; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: rgba(239,230,211,0.04);
    border-right: 1px solid var(--line); padding: 24px 0; flex-shrink: 0;
}
.admin-sidebar .sidebar-brand {
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px;
    padding: 0 24px 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.admin-sidebar .sidebar-brand span { color: var(--brass); }
.admin-sidebar nav a {
    display: block; padding: 12px 24px; font-family: 'Oswald', sans-serif;
    font-size: 14px; color: rgba(239,230,211,0.65); transition: .2s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
    color: var(--brass); background: rgba(239,230,211,0.05);
}
.admin-sidebar .sidebar-footer {
    position: absolute; bottom: 24px; left: 0; right: 0;
    padding: 0 24px; font-size: 13px;
}
.admin-sidebar .sidebar-footer a { color: rgba(239,230,211,0.4); }

.admin-main { flex: 1; padding: 32px 40px; overflow-x: auto; }
.admin-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
}
.admin-header h1 { font-size: 28px; }

/* Tables */
.admin-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
.admin-table th {
    text-align: left; padding: 12px 16px;
    font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 0.06em;
    color: var(--brass); border-bottom: 1px solid var(--line);
    text-transform: uppercase;
}
.admin-table td {
    padding: 14px 16px; border-bottom: 1px solid var(--line);
    color: rgba(239,230,211,0.75);
}
.admin-table tr:hover td { background: rgba(239,230,211,0.03); }
.admin-table .actions { display: flex; gap: 10px; }
.admin-table .actions a {
    font-family: 'Oswald', sans-serif; font-size: 12px;
    padding: 6px 12px; border: 1px solid var(--line); transition: .2s;
}
.admin-table .actions a:hover { border-color: var(--brass); color: var(--brass); }
.admin-table .actions .delete-btn { color: var(--red); border-color: var(--red); }
.admin-table .actions .delete-btn:hover { background: var(--red); color: var(--paper); }

/* Forms */
.admin-form { max-width: 640px; }
.admin-form .form-group { margin-bottom: 22px; }
.admin-form label {
    display: block; font-family: 'Oswald', sans-serif; font-size: 13px;
    letter-spacing: 0.06em; color: var(--brass); margin-bottom: 8px;
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="date"],
.admin-form input[type="time"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select {
    width: 100%; padding: 12px 16px; background: var(--ink);
    border: 1px solid var(--line); color: var(--paper);
    font-family: 'Fraunces', serif; font-size: 15px; transition: border-color .2s;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus { outline: none; border-color: var(--brass); }
.admin-form textarea { min-height: 120px; resize: vertical; }
.admin-form select { cursor: pointer; }
.admin-form .checkbox-group {
    display: flex; align-items: center; gap: 10px;
}
.admin-form .checkbox-group input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--brass);
}
.admin-form .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.admin-form .form-actions {
    display: flex; gap: 12px; margin-top: 28px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero .waveform { display: none; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .event-card { grid-template-columns: 80px 1fr; }
    .event-actions { grid-column: 1 / -1; }
    nav ul { display: none; }
    .nav-toggle { display: block; }
    nav.open ul {
        display: flex; flex-direction: column; position: fixed;
        top: 76px; left: 0; right: 0; bottom: 0;
        background: rgba(23,19,16,0.97); padding: 40px 28px; gap: 24px;
    }
    .admin-sidebar { display: none; }
    .admin-main { padding: 20px; }
    .admin-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    section { padding: 56px 0; }
    .hero { padding: 60px 0 50px; }
}
