@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --accent-color: #3700B3; /* Un violet sombre pour rester sobre */
    --border-color: #333333;
}

a {
    color: #f25091;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Utilitaires de base pour la structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1; /* Pousse le footer vers le bas */
}

.main-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 10px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 40px 10px 15px;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s;
    width: 250px;
}

.search-bar input:focus {
    border-color: var(--text-secondary);
}

.search-bar button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}
/* --- HEADER --- */
.main-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0; /* Un peu moins de padding vertical car la nav prend de la place */
    position: relative; 
    width: 100%;
    z-index: 1000;
}

.header-brand {
    /* Vos styles existants */
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: max-content; /* Empêche le logo de se faire écraser */
}

/* --- HEADER RESPONSIVE --- */

/* 1. Configuration de base (Desktop) */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

/* Le conteneur qui regroupe tout (Nav + Search + Auth) */
.header-menu {
    display: flex;
    align-items: center;
    gap: 30px; /* Espace entre les sections sur Desktop */
    flex: 1;
    justify-content: flex-end; /* Pousse tout vers la droite */
    margin-left: 40px;
}

/* Navigation <ul> */
.header-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Search Bar (Ajustement Desktop) */
.search-bar {
    position: relative;
    /* Largeur fixe sur desktop pour pas que ça bouge tout le temps */
    width: 250px; 
    
    margin: 0 15px;
}

/* Bouton Mobile (Caché sur Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

/* --- MEDIA QUERY : TABLETTE & MOBILE (< 992px) --- */
@media (max-width: 992px) {
    .brand-name{
        display: none;
    }
    .container {
        margin: 0;
    }
    /* On affiche le bouton burger */
    .mobile-menu-toggle {
        display: block;
        z-index: 101; /* Doit être au-dessus du menu */
    }

    /* On cache le menu par défaut et on le stylise en mode "Drawer" */
    .header-menu {
        display: none;
        position: absolute;
        
        /* Se place juste en dessous du header global */
        top: 100%;
        
        /* Force le menu à aller de tout à gauche à tout à droite */
        left: 0;
        right: 0;  /* Mieux que width: 100% pour éviter les débordements */
        width: auto; 
        
        /* Style visuel */
        background-color: var(--surface-color);
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        
        /* On garde l'arrondi Kawaii en bas seulement */
        border-radius: 0 0 25px 25px; 
        
        z-index: 999;
    }

    /* Quand on ajoute la classe .is-open via JS */
    .header-menu.is-open {
        display: flex;
    }

    /* Ajustements internes au menu mobile */
    .header-nav ul {
        flex-direction: column; /* Liens les uns sous les autres */
        gap: 15px;
        text-align: center;
    }

    /* La barre de recherche prend toute la largeur */
    .search-bar {
        width: 100%;
    }
    
    .search-bar input {
        width: 100%;
    }

    /* Les boutons d'action */
    .header-actions {
        display: flex;
        flex-direction: column; /* Boutons les uns sous les autres */
        gap: 15px;
        align-items: center;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
    }
    
    /* On enlève la marge gauche qui servait au Desktop */
    .header-menu {
        margin-left: 0;
    }
}

/* Animation simple */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NAVIGATION --- */
.main-nav {
    /* On enlève le background et la bordure car c'est maintenant DANS le header */
    background-color: transparent; 
    border-bottom: none;
    padding: 0;
    flex: 1; /* Permet à la nav de prendre l'espace disponible */
    display: flex;
    justify-content: center; /* Centre la nav au milieu du header */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; /* Espace entre les liens */
}

.main-nav a {
    display: block;
    padding: 8px 12px; /* Ajustement du padding pour un header */
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease;
    border-radius: 6px; /* Plus joli dans un header */
}

/* Effets au survol et actif */
.main-nav a:hover,
.main-nav a.active {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1); /* Fond léger au lieu de la ligne */
    border-bottom-color: transparent; /* On enlève la ligne du bas classique */
}

/* --- Navigation Active State --- */
.main-nav a {
    /* ... tes styles existants ... */
    position: relative; /* Pour positionner des effets si besoin */
    border-bottom: 2px solid transparent; /* Prépare la bordure pour éviter le décalage */
}

/* Style quand on est sur la page */
.main-nav a.active {
    color: #FFFFFF; /* Blanc pur */
    border-bottom-color: var(--accent-color); /* Le violet (#3700B3) */
    background-color: rgba(255, 255, 255, 0.05); /* Un fond très subtil */
    font-weight: 700;
    border-radius: 4px 4px 0 0; /* Petit arrondi en haut */
}

.intouchable-icon {
    /* Taille de ton logo (ajuste selon tes besoins) */
    height: 40px; 
    width: auto;

    /* 1. Empêche de sélectionner l'image comme du texte */
    user-select: none;
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none;    /* Firefox */
    
    /* 2. Empêche le glisser-déposer (Drag & Drop) */
    -webkit-user-drag: none;
    
    /* 3. (Optionnel) Rend l'image transparente aux clics.
       C'est très utile si le logo est dans un lien <a>. 
       Le clic passera "à travers" l'image pour activer le lien, 
       ce qui empêche aussi le clic droit "Ouvrir l'image" sur certains navigateurs. */
    pointer-events: none; 
}

.main-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto; /* Combine avec flex:1 sur main pour rester en bas */
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.main-footer p {
    margin: 5px 0;
}

.main-footer a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-secondary);
}

.main-footer a:hover {
    color: #fff;
    border-bottom-style: solid;
}

/* --- Card Component --- */
.card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    
    /* --- LIGNE MAGIQUE À AJOUTER --- */
    min-width: 0; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--text-secondary);
    cursor: pointer;
}

/* Zone Image Carrée */
.card-image {
    width: 100%;
    height: 280px;
    aspect-ratio: 1 / 1;
    background-color: #2a2a2a; /* Placeholder si img charge pas */
}

.content-card-image {
    width: 100%;
    height: 400px;
    aspect-ratio: 1 / 1;
    background-color: #2a2a2a; /* Placeholder si img charge pas */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenu Textuel */
.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-username {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    
    /* --- AJOUTS POUR COUPER LE TEXTE TROP LONG --- */
    white-space: nowrap;      /* Empêche le retour à la ligne */
    overflow: hidden;         /* Cache ce qui dépasse */
    text-overflow: ellipsis;  /* Ajoute "..." à la fin */
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Tags */
.card-tags {
    margin-top: auto; /* Pousse les tags vers le bas si la carte s'étire */
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.card:hover .tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.card-grid {
    display: flex;
    flex-wrap: wrap; /* INDISPENSABLE pour que ça passe à la ligne */
    gap: 20px;
    
    justify-content: center; /* Pour aligner les items au centre si la ligne n'est pas pleine */
    margin: 0 auto;
    margin-bottom: 20px;
}

/* --- Profile Header --- */
.profile-header {
    background-color: var(--surface-color);
    border-radius: 20px; /* Le côté "rond" demandé */
    padding: 30px;
    display: flex;
    gap: 40px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Image avatar */
.profile-avatar-wrapper {
    flex-shrink: 0; /* Empêche l'image d'être écrasée */
}

.profile-avatar {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 16px; /* Arrondi cohérent mais distinct du rond parfait */
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Infos Container */
.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Nom et Titre */
.profile-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-name, .media-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.badge {
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Conteneur de la liste */
.profile-socials-text {
    display: flex;
    flex-direction: column; /* Liste verticale */
    gap: 8px; /* Espace entre chaque ligne */
    margin-top: 10px;
}

/* Chaque ligne (Label + Lien) */
.social-row {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre "Twitter:" et le lien */
    font-size: 0.95rem;
}

/* Le Label (ex: "Twitter :") */
.social-label {
    font-weight: 700; /* Gras */
    min-width: 90px; /* Aligne tout le texte proprement si tu veux une colonne droite */
}

.social-label.onlyfans{
    color: #00b3ff; /* Ton violet #3700B3 */
    font-weight: 700; /* Gras */
    min-width: 90px; /* Aligne tout le texte proprement si tu veux une colonne droite */
}

.social-label.instagram{
    color: #ff00b7; /* Ton violet #3700B3 */
    font-weight: 700; /* Gras */
    min-width: 90px; /* Aligne tout le texte proprement si tu veux une colonne droite */
}

.social-label.tiktok{
    color: #b048ff; /* Ton violet #3700B3 */
    font-weight: 700; /* Gras */
    min-width: 90px; /* Aligne tout le texte proprement si tu veux une colonne droite */
}

.social-label.snapchat{
    color: #fbff00; /* Ton violet #3700B3 */
    font-weight: 700; /* Gras */
    min-width: 90px; /* Aligne tout le texte proprement si tu veux une colonne droite */
}

.social-label.reddit{
    color: #ff8400; /* Ton violet #3700B3 */
    font-weight: 700; /* Gras */
    min-width: 90px; /* Aligne tout le texte proprement si tu veux une colonne droite */
}


.social-label.website{
    color: #66ff00; /* Ton violet #3700B3 */
    font-weight: 700; /* Gras */
    min-width: 90px; /* Aligne tout le texte proprement si tu veux une colonne droite */
}

/* Le Lien (la valeur) */
.social-value {
    color: var(--text-primary); /* Gris clair/Blanc */
    text-decoration: none;
    transition: color 0.2s ease;
    
    /* Si l'URL est très longue, on coupe proprement */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px; /* Ajuste selon la largeur de ta colonne */
}

.social-value:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--accent-color); /* Soulignement violet au survol */
}

/* --- Media Detail Page --- */

.media-container {
    max-width: 1000px; /* On centre le contenu pour pas qu'il soit trop étiré */
    margin: 0 auto;
    padding-bottom: 60px;
}

/* 1. Hero Image */
.media-hero {
    width: 100%;
    /* On limite la taille à 500px pour un beau carré central */
    max-width: 500px; 
    
    /* Format Carré */
    aspect-ratio: 1 / 1; 
    
    /* Centrage horizontal (auto à gauche et à droite) + Marge en bas */
    margin: 0 auto 30px auto; 
    
    border-radius: 20px;
    overflow: hidden;
    
    /* On garde l'ombre portée pour l'effet "Flottant" */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.media-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important : remplit le carré sans déformer l'image */
    display: block;
}

/* 2. Header Info */
.media-header {
    margin-bottom: 20px;
}

.upload-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: monospace; /* Petit style "tech" pour la date */
}

/* 3. Tags (Réutilisation/Adaptation) */
.media-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.media-tags .tag {
    font-size: 0.9rem;
    padding: 6px 14px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

/* 4. Related Authors */
.media-related {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    font-size: 1.1rem;
}

.related-label {
    color: var(--text-secondary);
}

.authors-list {
    display: flex;
    gap: 15px;
}

.author-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.author-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* 5. Download Section (Big Box) */
.media-download-section {
    margin-top: 50px;
}

.download-box {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.box-info h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.4rem;
}

.box-info p {
    margin: 0;
    color: var(--text-secondary);
}

/* Bouton Large Spécifique */
.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .media-title {
        font-size: 2rem;
    }

    .download-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive : Sur mobile, on peut réduire la marge */
@media (max-width: 768px) {
    .profile-socials-text {
        align-items: center; /* Centre le tout sur mobile */
    }
    
    .social-row {
        justify-content: center;
        width: 100%;
    }
    
    .social-label {
        min-width: auto; /* Enlève l'alignement strict sur mobile */
        text-align: right;
    }
}

/* Bio */
.profile-bio h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.profile-bio p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 800px;
}

/* Extra Stats Box */
.profile-extra {
    margin-top: auto; /* Pousse vers le bas du container */
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 40px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Responsive Profile --- */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar {
        width: 150px;
        height: 150px;
    }
    
    .profile-title-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-socials {
        justify-content: center;
    }
    
    .profile-extra {
        justify-content: center;
    }
}

/* --- Media Section --- */
.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

.profile-medias h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
}
.download-banner {
    /* Keep the outer container logic */
    margin-top: 30px;
    background: linear-gradient(135deg, var(--surface-color) 60%, rgba(55, 0, 179, 0.15) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    
    display: flex; /* Flexbox for Left (Image) and Right (Text) */
    align-items: center; /* Center vertically */
    gap: 30px;
    
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.download-banner:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(55, 0, 179, 0.1);
}

/* Partie Gauche : Icone + Texte */
.download-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

/* --- Download Banner Image Update --- */

/* Conteneur de l'image */
.download-preview {
    flex-shrink: 0; /* Empêche l'image de s'écraser */
    width: 200px;     /* Taille fixe généreuse mais pas envahissante */
    height: 200px;
    border-radius: 12px; /* Arrondi cohérent avec le reste */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Ombre portée pour la profondeur */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Légère bordure interne */
}

/* L'image elle-même */
.download-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le carré sans déformer */
    display: block;
    transition: transform 0.3s ease;
}

/* Petit effet de zoom au survol de la bannière complète */
.download-banner:hover .download-preview img {
    transform: scale(1.1);
}

/* --- Ajustement Mobile --- */
@media (max-width: 768px) {
    .download-preview {
        width: 120px; /* Un peu plus grand sur mobile car c'est stacké */
        height: 120px;
        margin-bottom: 10px;
    }
}

.download-details {
    display: flex;
    flex-direction: column; /* Empile le texte et le bouton verticalement */
    justify-content: center; /* Centre le tout verticalement */
    gap: 25px; /* C'EST ICI : L'espace magique entre le texte et le bouton */
    flex: 1; /* Prend toute la largeur disponible restante */
}

.download-text h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #fff;
}

.download-text p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
}

/* Tags (ZIP, GB...) */
.download-meta {
    display: flex;
    gap: 10px;
}

.meta-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
/* Button Container */
.download-action {
    display: flex;
    justify-content: flex-start; /* Align button to the left */
}

.btn-download {
    display: inline-flex; /* Make sure it doesn't take full width */
    background-color: var(--accent-color);
    background-color: #e0004e;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px; /* A bit wider */
    border-radius: 50px;
    font-weight: 700;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(55, 0, 179, 0.4);
    box-shadow: 0 4px 15px rgba(179, 0, 45, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 0, 179, 0.6);
    background-color: #4a00e0;
    box-shadow: 0 6px 20px rgba(179, 0, 90, 0.6);
    background-color: #e0004b;
}

/* Responsive : Stack vertical sur mobile */
@media (max-width: 768px) {
    .download-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .download-content {
        flex-direction: column;
        align-items: center;
    }
    
    .download-meta {
        justify-content: center;
    }
    
    .download-action {
        width: 100%;
    }
    
    .btn-download {
        justify-content: center;
        width: 100%; /* Bouton pleine largeur sur mobile */
        box-sizing: border-box; 
    }
}

/* --- Media Section Headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    background-color: rgba(255,255,255,0.05);
}

/* --- Media Grid --- */
.media-grid {
    display: grid;
    /* Slightly smaller cards than creators: min 240px */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.media-item {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Optional: Slight lift on hover */
.media-item:hover {
    transform: translateY(-4px);
}

/* Thumbnail Area */
.media-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* Standard aspect ratio for artworks */
    border-radius: 12px; /* Rounded corners on the image itself */
    overflow: hidden;
    background-color: #000;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Zoom effect on hover */
.media-item:hover .media-thumbnail img {
    transform: scale(1.05);
    opacity: 0.7; /* Dim image slightly to make buttons pop */
}

/* Overlay Actions */
.media-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease;
    background: rgba(0, 0, 0, 0.2); /* Very subtle tint */
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.btn-icon {
    background-color: rgba(30, 30, 30, 0.9);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(10px); /* Start slightly lower */
    transition: all 0.2s ease;
}

.media-item:hover .btn-icon {
    transform: translateY(0); /* Float up animation */
}

.btn-icon:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Info Below Image */
.media-info {
    padding: 12px 4px;
}

.media-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- PAGINATION --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px; /* Espace après la grille */
    padding-bottom: 20px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; 
    height: 40px;
    margin: 0 4px; /* Petit espacement horizontal */
    
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* État Hover standard */
.pagination-link:hover:not(.disabled):not(.active) {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateY(-2px);
}

/* État ACTIVE (Page courante) */
.pagination-link.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    pointer-events: none; /* On ne clique pas sur la page actuelle */
}

/* --- ÉTAT DISABLED (La nouveauté) --- */
.pagination-link.disabled {
    opacity: 0.4;           /* On le rend fantomatique */
    cursor: not-allowed;    /* Curseur "interdit" */
    pointer-events: none;   /* EMPÊCHE PHYSIQUEMENT LE CLIC */
    background-color: transparent;
    border-color: var(--border-color); /* On garde la bordure discrète */
}

/* --- REC ICON BADGE --- */

/* Définition de la couleur rouge si pas déjà fait */
:root {
    --rec-color: #FF3B30; /* Un rouge vif type "enregistrement" */
}

/* Le conteneur global "Point + Texte REC" */
.rec-badge {
    display: inline-flex;   /* Permet d'aligner le point et le texte horizontalement */
    align-items: center;    /* Centre verticalement par rapport au texte du lien */
    gap: 6px;               /* Espace entre le point rouge et le mot "REC" */
    
    font-size: 0.7rem;      /* Texte petit */
    font-weight: 700;       /* Texte gras */
    letter-spacing: 0.5px;  /* Lettrage légèrement espacé */
    color: #fff;            /* Texte blanc pur */
    
    /* Optionnel : petit fond rouge translucide pour faire un "tag" */
    /* background-color: rgba(255, 59, 48, 0.15); padding: 2px 6px; border-radius: 4px; */
}

/* Le Point Rouge (créé en pur CSS via un pseudo-élément) */
.rec-badge::before {
    content: '';            /* Obligatoire pour afficher le pseudo-élément */
    display: block;
    width: 10px;            /* Diamètre du point */
    height: 10px;
    background-color: var(--rec-color);
    border-radius: 50%;     /* Transforme le carré en rond parfait */
    box-shadow: 0 0 6px var(--rec-color); /* Petite lueur rouge autour */
    
    /* L'animation */
    animation: rec-pulse 1.5s infinite ease-in-out;
}

/* Définition de l'animation de clignotement */
@keyframes rec-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;       /* Devient semi-transparent */
        transform: scale(0.9); /* Rétrécit légèrement */
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- FORM PAGE LAYOUT --- */
.form-page-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.form-card {
    background-color: var(--surface-color);
    width: 100%;
    max-width: 600px; /* On limite la largeur pour la lisibilité */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-title {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: #fff;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* --- FORM ELEMENTS --- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Style commun Input & Textarea */
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    background-color: var(--bg-color); /* Fond plus sombre que la card */
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Important pour ne pas déborder */
}

.form-group textarea {
    resize: vertical; /* L'utilisateur peut agrandir en hauteur seulement */
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(55, 0, 179, 0.2);
}

/* --- CUSTOM FILE UPLOAD --- */
.file-upload-wrapper {
    position: relative;
}

/* On cache le vrai input moche */
.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* On style le label comme une zone de drop */
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-label:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.upload-icon {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.upload-text {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Si un fichier est sélectionné (nécessite un petit JS pour changer le style, mais optionnel) */
.file-input:focus + .file-label {
    border-color: var(--accent-color);
}

/* --- SUBMIT BUTTON --- */
.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50px; /* Pill shape */
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(55, 0, 179, 0.4);
}

.btn-submit:hover {
    background-color: #4a00e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 0, 179, 0.6);
}

/* --- FLASH MESSAGES --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 500;
}

/* Succès (Vert sobre) */
.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    color: #81c784; /* Vert clair lisible sur fond sombre */
}

/* Erreur (Rouge sobre) */
.alert-error, .alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #F44336;
    color: #e57373;
}

/* --- 404 ERROR PAGE KAWAII STYLE --- */

/* Conteneur principal qui centre tout verticalement et horizontalement */
.error-page-container {
    /* On prend une bonne hauteur pour que ça respire entre le header et footer */
    min-height: 70vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-content {
    max-width: 600px;
}

/* Le Gros Chiffre */
.error-code {
    font-size: 6rem; /* Énorme */
    font-weight: 800;
    margin: 0;
    color: var(--accent-color); /* Le violet de ton thème */
    line-height: 1;
    /* Effet Neon Glow pour le faire ressortir du fond sombre */
    text-shadow: 0 0 25px rgba(83, 109, 254, 0.6);
    font-family: monospace; /* Un petit côté digital */
}

/* Le conteneur de l'image mignonne */
.kawaii-illustration {
    margin: 30px auto;
    width: 250px;
    height: 250px;
    position: relative;
}

/* L'image elle-même */
.kawaii-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* PETITE ANIMATION FLOTTANTE KAWAII */
    animation: kawaii-float 3s ease-in-out infinite;
    /* Une légère lueur douce autour du personnage */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

/* Définition de l'animation "flottement" */
@keyframes kawaii-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); } /* Monte de 15px au milieu */
}

/* Textes */
.error-message {
    font-size: 1.8rem;
    color: #fff;
    margin: 20px 0 10px 0;
}

.error-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Ajustement du bouton pour cette page (moins large que le formulaire) */
.btn-home {
    display: inline-flex; /* Pour qu'il ne prenne pas 100% de largeur */
    width: auto;
    padding-left: 35px;
    padding-right: 35px;
}

.form-input-tags {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif; /* Ou ta police par défaut */
    font-size: 1rem;
    transition: all 0.2s ease;
    
    /* Petite astuce pour différencier visuellement des autres champs */
    letter-spacing: 0.5px; 
}

/* TAGS */
.form-input-tags::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.form-input-tags:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(55, 0, 179, 0.05); /* Très légère teinte violette au focus */
    box-shadow: 0 0 0 3px rgba(55, 0, 179, 0.2);
}

/* Le petit message d'aide en dessous */
.tags-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tags-hint svg {
    color: var(--accent-color); /* L'icône prend la couleur du thème */
}

h1 {
    position: relative;       /* Nécessaire pour placer les décorations */
    display: inline-block;    /* Le soulignement s'adapte à la longueur du texte */
    font-size: 2.5rem;        /* Grande taille */
    font-weight: 800;         /* Bien gras pour le côté "chunky/mignon" */
    color: #fff;              /* Blanc pur (Sobre) */
    margin-bottom: 30px;
    letter-spacing: -0.5px;   /* Resserre un peu les lettres (tendance moderne) */
    z-index: 1;               /* Pour être au-dessus de la décoration */
}

/* La petite ligne "Mignonne" en dessous */
h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;              /* Collé au bas du texte */
    z-index: -1;              /* Passe DERRIÈRE le texte */
    
    width: 40%;               /* Ne souligne pas tout, c'est plus stylé */
    height: 12px;             /* Assez épais pour faire "marqueur" */
    
    /* Le dégradé Kawaii : Violet du thème vers un Rose bonbon */
    background: linear-gradient(90deg, var(--accent-color), #ff9a9e); 
    
    border-radius: 10px;      /* Bords très ronds (Pill shape) */
    opacity: 0.7;             /* Légèrement transparent pour ne pas agresser */
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animation rebondissante */
}

/* Le petit point "Pop" à la fin (Optionnel mais très kawaii) */
h1::before {
    content: '';
    position: absolute;
    right: -15px;             /* Juste après le texte */
    top: 15px;
    width: 8px;
    height: 8px;
    background-color: #ff9a9e; /* Rose */
    border-radius: 50%;       /* Rond parfait */
    box-shadow: 0 0 10px rgba(255, 154, 158, 0.6); /* Petit glow */
}

/* Animation au survol : La ligne grandit un peu de façon élastique */
h1:hover::after {
    width: 100%;              /* Souligne tout le texte */
    opacity: 1;               /* Devient plus vif */
}

/* --- KAWAII NAV ICON --- */

/* On s'assure que le texte et l'icône sont bien alignés */
.nav-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Espace entre le texte et l'icône */
}

/* Le dessin en lui-même */
.kawaii-nav-icon {
    width: 16px;
    height: 16px;
    color: #ff9a9e; /* Le rose pastel Kawaii */
    
    /* Effet "Glow" très léger */
    filter: drop-shadow(0 0 4px rgba(255, 154, 158, 0.6));
    
    /* L'animation mignonne */
    animation: kawaii-sparkle 3s ease-in-out infinite;
}

/* L'animation : Tourne doucement et grandit un tout petit peu */
@keyframes kawaii-sparkle {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.15); /* Penche un peu et grossit */
        color: #fff; /* Devient blanc au milieu de l'animation pour l'effet "brillant" */
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* --- FOCUS HYPNOTIC PAGE --- */

.hypnotic-wrapper {
    position: relative;
    height: calc(100vh - 80px); /* Ajuste selon ton header */
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La Spirale (identique) */
.spiral-bg {
    position: absolute;
    top: -100%; left: -100%; 
    width: 300%; height: 300%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 15deg,
        rgba(255, 154, 158, 0.03) 15deg 30deg 
    );
    animation: spinSpiral 60s linear infinite;
    z-index: 0;
}
@keyframes spinSpiral { 100% { transform: rotate(360deg); } }

/* --- LE CADRE CENTRAL --- */
.central-showcase {
    position: relative;
    width: 90vw;
    max-width: 500px; /* Taille max de l'image */
    height: 70vh;
    max-height: 700px;
    z-index: 10;
    
    /* Effet verre dépoli autour de l'image */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Un petit cadre */
}

/* Les éléments (images) empilés les uns sur les autres */
.showcase-item {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    opacity: 0; /* Caché par défaut */
    pointer-events: none; /* On ne peut pas cliquer sur les images cachées */
    
    /* La transition magique : le fondu est rapide (1s), le zoom est continu */
    transition: opacity 1.5s ease-in-out;
}

/* L'état ACTIF (l'image visible) */
.showcase-item.active {
    opacity: 1;
    pointer-events: auto; /* Rend le bouton cliquable */
    z-index: 2;
}

/* Le wrapper de l'image pour gérer le zoom intérieur sans déborder */
.image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s linear; /* Le zoom très lent */
}

/* Quand l'image est active, elle commence à zoomer très lentement */
.showcase-item.active .image-wrapper img {
    transform: scale(1.1);
}

/* --- LE BOUTON COEUR --- */
.btn-heart {
    position: absolute;
    bottom: 20px; right: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    z-index: 15;
}
.btn-heart:hover { transform: scale(1.1); }
.btn-heart.liked {
    background: #ff9a9e;
    border-color: #ff9a9e;
    color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 154, 158, 0.6);
}
.btn-heart.liked svg { fill: currentColor; }

/* La vignette (ombre autour) et Particules (Identiques à avant) */
.hypnotic-vignette {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
    pointer-events: none; z-index: 20;
}
.kawaii-particle {
    position: absolute; color: #ff9a9e;
    filter: drop-shadow(0 0 5px rgba(255, 154, 158, 0.5));
    animation: floatUp 6s linear infinite; pointer-events: none; z-index: 5;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) scale(0.5) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1.2) rotate(360deg); opacity: 0; }
}