/* 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;
    --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-color: var(--bg-primary);
}

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(--text-primary-color);
    top: 22px;
    right: 50px;
}

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

/* MAIN VITRINE */
h1, h2, h3, h5, p, a{
    font-family: var(--text-family);
}


p.home{
    font-size: 18px;
    width: 400px;
}

li{
    margin: 10px 30px;
}

.content{
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
}

/* SECTIONS */

section{
    width: 100%;
    height: auto;
}

div.section{
    margin: 50px;
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    flex-direction: column;
}

section.home{
        background: url(../IMG/logo.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
}

div.home{
    margin: 0;
    height: 230px;
    padding: 45px;
}

/* CAROUSEL */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

ul.carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    padding: 20px 0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none; 
    animation: scroll-infinite 20s linear infinite;
}

ul.carousel::-webkit-scrollbar {
    display: none; 
}

ul.carousel:hover {
    animation-play-state: paused;
}

li.artist {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    background-color: #eeeeee;
    border: 1px solid #dddddd;
    border-radius: var(--radius-sm);
    width: 250px;
    flex-shrink: 0;
    padding-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

li.artist h3 {
    font-family: var(--text-family);
    font-size: 14px;
    margin-top: 8px;
    color: var(--text-primary-color);
}

@keyframes scroll-infinite {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

h5{
    font-size: 12px;
}

/* 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: 50%;
    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; }

@media screen and (max-width: 600px) {
    .artiste-hero-inner { flex-direction: column; align-items: flex-start; }
    .artiste-hero-text h1 { font-size: 26px; }
    .artiste-date-item { flex-wrap: wrap; }
}


/* 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; }

/* RESPONSIVE */
@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;
    }

    div.home{
        padding: 20px;
    }

    h1.home{
        width: 250px;
    }

    p.home{
        width: 250px;
    }

    /* 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; 
    }

}

@media screen and (max-width: 430px) {
    .tabs-nav { 
        gap: 2px; 
        flex-wrap: wrap;
    }
    .tab-btn { 
        padding: 8px 12px; 
        font-size: 11px; 
    }
}