/* INIT & VARIABLE */

:root {
    --bg-primary: #f0f4ff;
    --bg-secondary: #eceff7;
    --bg-card: #4F46E5;
    --bg-navbar: #ffffff;
    --bg-footer: #ffffff;
    --text-primary-color: #232323;
    --text-secondary-color: #f2f2f2;
    --text-family: 'Montserrat';
    --accent: #525eff;
    --shadow: 0 4px 24px rgba(43, 43, 43, 0.1);
    --shadow-hover: 0 8px 32px rgba(67, 67, 67, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --lobby-white:  #eff0f5;
    --lobby-black:  #0d0d0d;
    --lobby-blue:   #4c58c9;
    --lobby-muted:  #4c4989;
    --lobby-border: rgba(47, 50, 131, 0.77);
    --radius-card:  14px;
    --navbar-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*{
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--lobby-white); 
    color: var(--lobby-black); 
    font-family: var(--text-family); 
    margin: 0; 
}

main{
    flex: 1;
}

/* NAVBAR */

nav{
    background-color: var(--bg-navbar);
}

img.nav{
    width: 64px;
    height: 64px;
}

div.nav{
    display: flex;
    justify-content: center;
    align-items: center;
}

a#portal{
    position: absolute;
    font-size: 18px;
    font-family: var(--text-family) ;
    color: var(--lobby-blue);
    top: 22px;
    right: 50px;
}

a#signout{
    position: absolute;
    font-size: 18px;
    font-family: var(--text-family) ;
    color: var(--lobby-blue);
    top: 22px;
    left: 50px;
}

/* ─── Container ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 640px; }

/* ─── HERO ─── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 80px 48px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.hero-eyebrow {
    font-size: 0.78rem;
    font-style: italic;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lobby-blue);
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.hero-title em { font-style: normal; color: var(--lobby-blue); }
.hero-sub {
    font-size: 1.05rem;
    color: #393947;
    line-height: 1.7;
    max-width: 48ch;
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-block;
    background: var(--lobby-blue);
    color: var(--lobby-white);
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.18s;
}
.btn-hero-primary:hover { opacity: 0.85; }
.btn-hero-secondary {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--lobby-black);
    font-weight: 500;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: border-color 0.18s, background 0.18s;
}

/* ─── VALUES ─── */
.section-values {
    border-top: 1px solid var(--lobby-border);
    border-bottom: 1px solid var(--lobby-border);
    padding: 40px 24px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.value-number { display: block; font-size: 2rem; font-weight: 800; color: var(--lobby-blue); }
.value-label  { display: block; font-size: 0.82rem; color: var(--lobby-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── SECTION HEADER ─── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.section-header p { color: var(--lobby-muted); font-size: 1rem; margin: 0; }
.section-header-light h2 { color: var(--lobby-white); }
.section-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lobby-blue); display: block; margin-bottom: 12px; }

/* ─── PERFORMANCES ─── */
.section-performances { padding: 80px 24px; }
.perf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.perf-card {
    background: var(--bg-primary);
    border: 1px solid var(--lobby-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.perf-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.perf-card-img { aspect-ratio: 3/2; overflow: hidden; }
.perf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perf-card-placeholder { background: #1e1c1a; display: flex; align-items: center; justify-content: center; }
.perf-card-placeholder span { font-size: 2.5rem; font-weight: 800; color: rgba(201,168,76,0.3); }
.perf-card-body { padding: 20px; }
.perf-type-badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; background: #1e11ff29; color: var(--lobby-blue); padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.perf-card-body h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.perf-artiste { font-size: 0.82rem; color: var(--lobby-muted); margin: 0 0 10px; }
.perf-desc { font-size: 0.88rem; color: #96959e; line-height: 1.55; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.perf-meta { font-size: 0.78rem; color: var(--lobby-muted); }
.empty-state-text { color: var(--lobby-muted); font-style: italic; grid-column: 1/-1; text-align: center; padding: 40px 0; }

/* ─── ARTISTES ─── */
.section-artistes { padding: 80px 24px; background: var(--bg-secondary); }
.artistes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px; }
.artist-card { text-align: center; }
.artiste-avatar { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; display: block; margin: 0 auto 14px; border: 2px solid var(--lobby-border); }
.artiste-avatar-placeholder { width: 120px; height: 120px; border-radius: 50%; background: #1e1c1a; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 2.2rem; font-weight: 800; color: rgba(201,168,76,0.4); border: 2px solid var(--lobby-border); }
.artiste-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.artiste-bio { font-size: 0.82rem; color: var(--lobby-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* ─── AGENDA ─── */
.section-agenda { padding: 80px 24px; background: #111110; }
.agenda-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.agenda-item { display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: #161614; border: 1px solid var(--lobby-border); border-radius: 10px; }
.agenda-cal { text-align: center; min-width: 48px; }
.agenda-mois { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lobby-blue); }
.agenda-jour { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.agenda-info { flex: 1; }
.agenda-info strong { display: block; font-size: 0.95rem; }
.agenda-info span { font-size: 0.82rem; color: var(--lobby-muted); }
.agenda-link { font-size: 0.8rem; color: var(--lobby-blue); text-decoration: none; white-space: nowrap; border: 1px solid rgba(201,168,76,0.3); padding: 5px 12px; border-radius: 6px; transition: background 0.15s; }
.agenda-link:hover { background: rgba(201,168,76,0.1); }

/* ─── ABOUT ─── */
.section-about { padding: 50px 24px; border-bottom: 1px solid var(--lobby-border);}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: 1100px; margin: 0 auto; }
.about-text h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 800; margin: 0 0 24px; }
.about-text p { 
    font-style: italic; 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lobby-blue); 
    line-height: 1.75;
    margin-bottom: 16px; 
    font-size: 0.98rem; 
}
p.about-body{
    font-style: normal;
    font-weight:normal;
    text-transform:none;
    letter-spacing: 0.0;
    color: var(--lobby-black);
    line-height: 1.75;
    margin-bottom: 16px; 
    font-size: 0.98rem; 
}
.about-text strong { color: var(--lobby-blue); }
.about-text em { color: #18196c; font-style: normal; }
.about-quote { border-left: 2px solid var(--lobby-blue); padding-left: 20px; margin: 28px 0 0; font-style: italic; color: #3034d5; font-size: 0.98rem; line-height: 1.7; }
.about-visual { display: flex; flex-direction: column; gap: 20px; }
.about-card-deco { background: #fcfcfcfc; border: 1px solid var(--lobby-border); border-radius: var(--radius-card); padding: 24px; }
.about-card-deco--accent { border-color: rgb(76 109 201 / 25%);background: rgb(38 37 211 / 4%); }
.about-deco-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lobby-blue); margin-bottom: 10px; font-weight: bold;}
.about-card-deco p { font-size: 0.9rem; color: #2b2b2b; line-height: 1.6; margin: 0; }

/* ─── CONTACT ─── */
.section-contact { padding: 80px 24px; background: var(--bg-primary); text-align: center; }
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact-sub { font-size: 0.88rem; color: var(--lobby-muted); margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding: 60px 24px 40px; min-height: auto; }
    .hero-visual { display: none; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .artistes-grid { 
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
		gap: 40px; 
        justify-items: center;
	}
}

/* CARD LOG IN */

#login-card{
    display: flex;
    justify-content: center;
}

.form {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2rem;
  max-width: 350px;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary-color);
}

.input-container {
  position: relative;
}

.input-container input, .form button {
  outline: none;
  border: 1px solid #e5e7eb;
  margin: 8px 0;
}

.input-container input {
  background-color: #fff;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  width: 317px;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-container span {
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  place-content: center;
}

.input-container span svg {
  color: #9CA3AF;
  width: 1rem;
  height: 1rem;
  transition: 0.5s;
}

.input-container span svg:hover {
  color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
}

.submit {
  display: block;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background-color: var(--bg-card);
  color: var(--text-secondary-color);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  width: 100%;
  border-radius: 0.5rem;
  text-transform: uppercase;
}

.signup-link {
  color: #6B7280;
  font-size: 1rem;
  line-height: 1.25rem;
  text-align: center;
}

.signup-link a {
  text-decoration: underline;
}

.alert{
    color: var(--accent);
    font-weight: bold;
}

/*  GRILLE ÉVÉNEMENTS */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.event-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.event-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e5e7eb;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.event-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
}

.event-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.event-tag {
    display: inline-block;
    background: #ede9fe;
    color: #4F46E5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 99px;
    align-self: flex-start;
    font-family: var(--text-family);
}

.event-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary-color);
    margin: 0;
}

.event-artist {
    font-size: 13px;
    color: #6b7280;
    font-family: var(--text-family);
}

.event-desc {
    font-size: 13px;
    color: #6b7280;
    font-family: var(--text-family);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CAROUSEL ARTISTE PLACEHOLDER */
.artist-carousel-placeholder {
    width: 250px;
    height: 200px;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: #4F46E5;
    font-family: var(--text-family);
}

/* EMPTY STATE */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    color: #9ca3af;
    font-family: var(--text-family);
}
.empty-icon { font-size: 40px; }

/* POPUP OVERLAY  */
#popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

#popup-overlay[hidden] { 
    display: none; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#popup-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { 
        transform: translateY(24px); 
        opacity: 0; 
    }
    to   { 
        transform: translateY(0);    
        opacity: 1; 
    }
}

#popup-close {
    position: sticky;
    top: 12px;
    float: right;
    margin: 12px 12px 0 0;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
#popup-close:hover { 
    background: #e5e7eb; 
}

#popup-content { 
    padding: 24px 28px 28px; 
    clear: both; 
}

/* Popup — contenu */
.popup-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}
.popup-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    margin-bottom: 16px;
}
.popup-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #e5e7eb;
}
.popup-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #4F46E5;
    margin-bottom: 12px;
    font-family: var(--text-family);
}
.popup-tag {
    display: inline-block;
    background: #ede9fe;
    color: #4F46E5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 10px;
    font-family: var(--text-family);
}
.popup-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 4px;
    font-family: var(--text-family);
}
.popup-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 14px;
    font-family: var(--text-family);
}
.popup-desc {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 16px;
    font-family: var(--text-family);
}
.popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.popup-meta-item {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: var(--text-family);
    color: #374151;
}
.popup-meta-item strong { 
    display: block; 
    font-size: 11px; 
    color: #9ca3af; 
    text-transform: uppercase; 
    margin-bottom: 2px; 
}
.popup-video-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4F46E5;
    color: #fff;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-family: var(--text-family);
    text-decoration: none;
    margin-top: 14px;
    transition: opacity 0.2s;
}
.popup-video-link:hover { 
    opacity: 0.85; 
}


/* FOOTER */
footer{
    width: 100%;
    margin-top: auto;
}

div.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    background-color: var(--bg-footer);
    padding: 23px;
    border-top: 1px solid #e5e7eb;
}

/* PORTAL */
.portal-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

#modal-profil{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}
#modal-content{
    background:#fff;
    border-radius:12px;
    padding:32px;
    max-width:500px;
    width:90%;
}
h2.modal{
    margin-bottom:8px;
}
p.modal{
    color:#666;
    margin-bottom:20px;
}

.admin-badge {
    background: #4F46E5;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
    font-family: var(--text-family);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.artist-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.artist-card:hover {
    box-shadow: var(--shadow-hover);
}

.artist-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-photo-placeholder {
    font-size: 48px;
    font-weight: bold;
    color: #4F46E5;
    font-family: var(--text-family);
}

.artist-email {
    font-size: 13px;
    color: #888;
}

/* ARTISTE */

/* === PAGE ARTISTE PUBLIQUE === */
.artiste-page { max-width: 960px; margin: 0 auto; padding: 0 20px 60px; }

.artiste-hero { padding: 50px 0 40px; border-bottom: 1px solid #e5e7eb; margin-bottom: 40px; }
.artiste-hero-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }

.artiste-avatar-wrap { flex-shrink: 0; }
.artiste-avatar {
    width: 180px; height: 180px; border-radius: 10px;
    object-fit: cover; border: 4px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.artiste-avatar-initial {
    width: 180px; height: 180px; border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 72px; font-weight: 700; color: #4F46E5;
    font-family: var(--text-family);
}
.artiste-tag {
    display: inline-block; background: #ede9fe; color: #4F46E5;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; padding: 4px 12px; border-radius: 99px;
    margin-bottom: 10px; font-family: var(--text-family);
}
.artiste-hero-text h1 {
    font-size: 36px; font-weight: 800;
    color: var(--text-primary-color); margin-bottom: 12px;
    font-family: var(--text-family);
}
.artiste-bio-courte {
    font-size: 16px; color: #6b7280; line-height: 1.7;
    max-width: 560px; font-family: var(--text-family);
}

.artiste-section { padding: 40px 0; border-bottom: 1px solid #e5e7eb; }
.artiste-section-alt {
    background: #fafafa; padding: 40px 20px;
    border-radius: 12px; margin: 20px -20px;
    border-bottom: none;
}
.artiste-section-inner h2 {
    font-size: 22px; font-weight: 700; margin-bottom: 20px;
    color: var(--text-primary-color); font-family: var(--text-family);
}
.artiste-bio-longue {
    font-size: 15px; line-height: 1.8;
    color: #374151; max-width: 680px; font-family: var(--text-family);
}

/* Grille performances */
.artiste-perfs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.artiste-perf-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden; }
.artiste-perf-img { height: 160px; overflow: hidden; background: #e5e7eb; }
.artiste-perf-img img { width: 100%; height: 100%; object-fit: cover; }
.artiste-perf-placeholder {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center; font-size: 40px;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
}
.artiste-perf-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.artiste-perf-body h3    { font-size: 15px; font-family: var(--text-family); color: var(--text-primary-color); }
.artiste-perf-body p     { font-size: 13px; color: #6b7280; font-family: var(--text-family); }
.artiste-perf-body small { font-size: 12px; color: #9ca3af; font-family: var(--text-family); }

/* Dates */
.artiste-dates-list { display: flex; flex-direction: column; gap: 10px; }
.artiste-date-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 10px;
}
.artiste-date-cal {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-card); color: #fff; border-radius: 8px;
    width: 52px; height: 52px; flex-shrink: 0; font-family: var(--text-family);
}
.date-mois { font-size: 10px; font-weight: 700; opacity: .85; }
.date-jour  { font-size: 20px; font-weight: 700; line-height: 1; }
.artiste-date-info { flex: 1; display: flex; flex-direction: column; gap: 3px; font-family: var(--text-family); font-size: 14px; }
.artiste-date-info strong { color: var(--text-primary-color); }
.artiste-date-info span   { color: #6b7280; font-size: 13px; }
.artiste-date-btn {
    background: var(--bg-card); color: #fff; text-decoration: none;
    border-radius: 6px; padding: 8px 14px; font-size: 13px;
    font-family: var(--text-family); white-space: nowrap; transition: opacity .2s;
}
.artiste-date-btn:hover { opacity: .85; }

/* Empty + back */
.artiste-empty { padding: 40px 0; text-align: center; color: #9ca3af; font-family: var(--text-family); }
.artiste-back  { padding: 24px 0; }
.artiste-back a { color: var(--accent); font-family: var(--text-family); text-decoration: none; font-size: 14px; }
.artiste-back a:hover { text-decoration: underline; }

/* UPLOAD FORM */
.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.upload-label {
    cursor: pointer;
    font-size: 13px;
    color: var(--accent);
    font-family: var(--text-family);
}

.upload-input {
    display: none;
}

.upload-btn {
    background: var(--bg-card);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-family: var(--text-family);
    font-size: 13px;
    transition: var(--transition);
}

.upload-btn:hover {
    opacity: 0.85;
}

.upload-status {
    font-size: 12px;
    font-family: var(--text-family);
    min-height: 18px;
}

.upload-status.success { 
    color: #22c55e; 
}
.upload-status.error   
{ 
    color: #ef4444; 
}
.upload-status.loading { 
    color: #888; 
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ===================== PORTAL LAYOUT ===================== */
.portal-container { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 0 20px; 
}
.portal-header { 
    display: flex;
    align-items: center;
    gap: 16px; 
    margin-bottom: 28px; 
    flex-wrap: wrap; 
}

.portal-header h1 { 
    font-size: 22px; 
}

/* ===================== ONGLETS ===================== */
.tabs-nav {
    display: flex; 
    gap: 8px;
    border-bottom: 2px solid #e5e7eb; 
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 28px; 
    padding-bottom: 0;
    justify-content: space-between;
}
.tab-btn {
    background: none; 
    border: none; 
    padding: 10px 18px; 
    cursor: pointer;
    font-family: var(--text-family); 
    font-size: 13px; 
    color: #777;
    border-bottom: 2px solid transparent; 
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab-btn:hover { 
    color: var(--accent); 
}
.tab-btn.active { 
    color: var(--bg-card); 
    border-bottom-color: var(--bg-card); 
    font-weight: 600;
}
.tab-content { 
    display: none;
}
.tab-content.active { 
    display: block; 
}

/* ===================== FORMULAIRES ===================== */
.form-section { 
    max-width: 780px; 
}
.form-desc { 
    color: #666; 
    margin-bottom: 24px; 
    font-family: var(--text-family); 
    font-size: 14px; 
}
.portal-form { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
}
.form-group { 
    display: flex; 
    flex-direction: column;
    gap: 6px; 
}
.form-group label { 
    font-family: var(--text-family); 
    font-size: 13px; font-weight: 600; 
    color: #333; 
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    padding: 10px 14px; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px;
    font-family: var(--text-family); 
    font-size: 14px; background: #fff;
    transition: border-color 0.2s;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent); 
    outline: none;
}
.radio-group, 
.checkbox-group { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-top: 4px; 
}
.radio-group label, 
.checkbox-group label {
    font-weight: 400; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    cursor: pointer;
}
.section-subtitle { 
    font-size: 15px; 
    color: var(--bg-card); 
    margin: 8px 0 4px; 
    font-family: var(--text-family); 
}
.conditional-section { 
    background: #f8f9ff; 
    border-radius: 10px; 
    padding: 20px; 
    border: 1px solid #e0e4f8; 
}
.btn-primary {
    background: var(--bg-card); 
    color: #fff; 
    border: none; 
    padding: 12px 28px;
    border-radius: 8px; 
    font-family: var(--text-family); 
    font-size: 14px;
    cursor: pointer; 
    transition: opacity 0.2s; 
    align-self: flex-start;
}
.btn-primary:hover { 
    opacity: 0.85; 
}
.btn-submit { 
    margin-top: 8px; 
}
.confirmation-box {
    background: #f0fdf4; 
    border: 1px solid #bbf7d0; 
    color: #166534;
    padding: 18px 22px; 
    border-radius: 10px; 
    font-family: var(--text-family);
    font-size: 14px; 
    line-height: 1.6;
}

/* ===== BANNIÈRE ALERTE PROFIL ===== */
.profil-alert {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}
.profil-alert-icon { 
    font-size: 18px; 
    flex-shrink: 0; 
}
.profil-alert span  { 
    flex: 1; 
    min-width: 200px; 
}
.profil-alert-btn {
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.35s;
}
.profil-alert-btn:hover  {
    background: #d97706; 
}
.profil-alert-close {
    background: none;
    border: none;
    color: #92400e;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 4px;
}

/* ===== CHAMP DÉSACTIVÉ ===== */
.input-disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}
.form-group small {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

/* ===== CHAMP REQUIS ===== */
.required { 
    color: #ef4444; 
    margin-left: 2px; 
}

/* ===== BARRE DE COMPLÉTUDE ===== */
.profil-completude {
    margin: 20px 0 10px;
}
.completude-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}
.completude-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.completude-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 99px;
    transition: width 0.6s ease;
}

/* ===== UPLOAD ZONE IMAGE PERFORMANCE ===== */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    background: #fafafa;
}
.upload-zone:hover { 
    border-color: #6366f1; 
    background: #f5f3ff; 
}
.upload-zone.dragover { 
    border-color: #6366f1; 
    background: #ede9fe;
}

.upload-input-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.upload-zone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.upload-zone-icon { 
    font-size: 32px; 
}
.upload-zone-text { 
    font-weight: 600; 
    color: #374151; 
    font-size: 14px; 
}
.upload-zone-sub  { 
    font-size: 12px; 
    color: #9ca3af; 
}

.upload-preview {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.upload-preview img {
    border-radius: 8px;
    object-fit: cover;
    max-height: 160px;
    width: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.remove-preview {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}
.remove-preview:hover { 
    background: #fecaca; 
}

/* ADMIN */

/* Table admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 12px;
}
.admin-table thead tr {
    background: #f3f4f6;
}
.admin-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}
.admin-table tbody tr:hover {
    background: #f9fafb;
}

/* Carte admin (performances, offres, contrats, questions) */
.admin-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.admin-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
}
.admin-card-header strong {
    font-size: 0.95rem;
    color: #111827;
}
.admin-card-meta {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}
.admin-card-detail {
    padding: 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}
.admin-card-footer {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Grille de détails */
.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 16px;
    margin-bottom: 12px;
}
.admin-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-detail-grid label,
.admin-detail-block label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}
.admin-detail-grid span,
.admin-detail-grid a {
    font-size: 0.88rem;
    color: #111827;
}
.admin-detail-block {
    margin-bottom: 10px;
}
.admin-detail-block p {
    font-size: 0.88rem;
    color: #374151;
    margin-top: 4px;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Badges */
.admin-badge-type {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: #ede9fe;
    color: #5b21b6;
    white-space: nowrap;
}
.admin-badge-statut {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    white-space: nowrap;
}

/* Boutons */
.btn-toggle-detail {
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-toggle-detail:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.btn-danger-sm {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-danger-sm:hover {
    background: #fef2f2;
    border-color: #f87171;
}


/* RESPONSIVE */


@media screen and (max-width: 768px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .artist-photo-wrapper {
        width: 90px;
        height: 90px;
    }

    .artist-photo-placeholder {
        width: 90px;
        height: 90px;
        font-size: 1.8rem;
    }

    .artist-card {
        padding: 12px 8px;
    }

    .artist-card h2 {
        font-size: 11px;
    }

    .artiste-avatar{
        width: 140px;
        height: 140px;
    }
}

@media screen and (max-width: 750px) {

    /* NAVBAR */
    a#portal{
        font-size: 16px;
        top: 22px;
        right: 22px;
    }

    a#signout{
        font-size: 16px;
        top: 24px;
        left: 22px;
    }

    /* SECTIONS */
    div.section{
        margin: 10px;
    }

    /* CARD LOG IN */
    .form{
        padding: 1rem;
        align-items: center;
        max-width: 310px;
    }
    .input-container input {
        width: 272px;
    }

    div.home{
        padding: 20px;
    }

    h1.home{
        width: 250px;
    }

    p.home{
        width: 250px;
    }

    /* ARTSITE */
    .artiste-hero-inner { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .artiste-hero-text h1 { 
        font-size: 26px; 
    }
    .artiste-date-item { 
        flex-wrap: wrap; 
    }

    /* PORTAL */
    .form-row { 
        grid-template-columns: 1fr; 
    }
    .tabs-nav { 
        gap: 4px; 
        flex-wrap: nowrap;
        justify-content: center;
    }
    .tab-btn { 
        padding: 8px 12px; font-size: 12px; 
    }

     /* ADMIN */
    .admin-table { 
        display: block; 
        overflow-x: auto;
     }
    .admin-card-header {
        flex-direction: column; 
    }
    .admin-detail-grid { 
        grid-template-columns: 1fr 1fr; 
    }

}

@media screen and (max-width: 430px) {
    .tabs-nav { 
        gap: 2px; 
        flex-wrap: wrap;
    }
    .tab-btn { 
        padding: 8px 12px; 
        font-size: 11px; 
    }
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .artist-photo-wrapper {
        width: 70px;
        height: 70px;
    }

    .artist-photo-placeholder {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }

    .artist-card h2 {
        font-size: 10px;
    }
}
