/* Variables CSS pour la cohérence */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #8e24aa;
    --accent-color: #ff7043;
    --text-light: #666;
    --bg-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: #333;
    line-height: 1.6;
}

/* Sidebar moderne avec effet 3D */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 2rem 1.5rem;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Menu mobile toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Debug responsive - à supprimer en production */
body::before {
    content: "Desktop";
    position: fixed;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
}

.menu-toggle:hover {
    background: #34495e;
    transform: scale(1.1);
}

/* Overlay pour fermer le menu sur mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Navigation sobre */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

/* Page d'accueil */
.home-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.meduse {
    position: absolute;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.meduse:hover {
    transform: scale(1.05) rotate(5deg);
}

.meduse-gauche {
    left: 5%;
    top: 10%;
    width: 280px;
    animation: float 6s ease-in-out infinite;
}

.meduse-droite {
    right: 5%;
    top: 5%;
    width: 320px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px);     }
}

/* ===== PAGES FILMS, STORYBOARD & LAYOUT BACKGROUND (STYLES COMMUNS) ===== */
/* Styles communs pour les pages avec filtres */
/* Hero sections avec variantes de couleurs */
.gallery-hero {
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Layout & Background - thème cuivre/or */
.layout-background {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.layout-background .gallery-hero {
    background: linear-gradient(135deg, #8B5A2B 0%, #CD853F 50%, #DAA520 100%);
}

.layout-background .filter-btn:hover,
.layout-background .filter-btn.active {
    background: #CD853F;
    border-color: #CD853F;
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.3);
}

.layout-background .section-title i,
.layout-background .separator-icon,
.layout-background .separator-line {
    color: #CD853F;
    background: linear-gradient(to right, transparent, #CD853F, transparent);
}

/* Films & Storyboard - thème bleu/violet */
.films-page .gallery-hero,
.storyboard-page .gallery-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.films-page .filter-btn:hover,
.films-page .filter-btn.active,
.storyboard-page .filter-btn:hover,
.storyboard-page .filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.films-page .section-title i,
.storyboard-page .section-title i {
    color: #667eea;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.gallery-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-filters {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 2px solid transparent;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #CD853F;
    color: white;
    border-color: #CD853F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.3);
}

.gallery-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-title i {
    color: #CD853F;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.section-separator {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.separator-line {
    position: relative;
    height: 1px;
    background: linear-gradient(to right, transparent, #CD853F, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator-icon {
    background: white;
    color: #CD853F;
    padding: 10px 15px;
    font-size: 1.2rem;
}

.masonry-grid {
    display: grid;
    gap: 30px;
    padding: 0 20px;
}

.landscape-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.portrait-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

.artwork-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.artwork-image {
    position: relative;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.9) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.artwork-card:hover .artwork-overlay {
    opacity: 1;
}

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

.overlay-content {
    margin-top: auto;
    color: white;
}

.overlay-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.4;
}

.category-badge {
    display: inline-block;
    background: #CD853F;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.overlay-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: auto;
}

.btn-zoom {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-zoom:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-info {
    color: white;
    text-align: center;
    margin-top: 20px;
    max-width: 600px;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lightbox-info p {
    opacity: 0.8;
    line-height: 1.6;
}

.gallery-cta {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.gallery-cta h2 {
    margin-bottom: 15px;
    font-weight: 600;
}

.gallery-cta p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* CTA buttons avec variantes de couleurs */
.layout-background .cta-buttons .btn-primary {
    background: #CD853F;
    border: none;
}

.films-page .cta-buttons .btn-primary,
.storyboard-page .cta-buttons .btn-primary {
    background: #667eea;
    border: none;
}

.cta-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

/* ===== STYLES SPÉCIFIQUES VIDÉOS (Films & Storyboard) ===== */
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.video-actions {
    display: flex;
    justify-content: center;
}

.video-actions .btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Styles pour les badges de catégorie avec variantes */
.films-page .category-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.storyboard-page .category-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.layout-background .category-badge {
    background: #CD853F;
    color: white;
}

/* ===== STYLES SPÉCIFIQUES STORYBOARD ===== */
.storyboard-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.storyboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.category-badge-small {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f8f9fa;
}

.project-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-footer .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-color: #764ba2;
    color: #764ba2;
}

.card-footer .btn:hover {
    background: #764ba2;
    border-color: #764ba2;
    color: white;
    transform: translateY(-2px);
}

.expertise-section {
    padding: 50px 0;
    background: white;
}

.expertise-badges-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.expertise-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-width: 150px;
}

.expertise-badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.expertise-badge-item i {
    font-size: 2rem;
    color: #667eea;
}

.expertise-badge-item span {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    font-size: 0.9rem;
}

.process-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.process-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.step-icon i {
    font-size: 2rem;
    color: white;
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.process-step p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* ===== PAGE CONTACT ===== */
.contact-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.contact-page .gallery-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.contact-hero {
    padding: 60px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.contact-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.contact-name {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.contact-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 30px;
}

.education-section {
    margin-bottom: 25px;
}

.education-item {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-tagline {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

.social-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-link[data-social="vimeo"]:hover {
    background: #1ab7ea;
}

.social-link[data-social="linkedin"]:hover {
    background: #0077b5;
}

.social-link[data-social="instagram"]:hover {
    background: #e4405f;
}

.social-link i {
    font-size: 1.2rem;
}

/* Photo de profil */
.contact-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.photo-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-container:hover .profile-image {
    transform: scale(1.05);
}

.photo-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.8;
    z-index: -1;
}

/* Section compétences */
.skills-section {
    padding: 80px 0;
    background: white;
}

.skills-section .section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: white;
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
    font-size: 2rem;
}

.skill-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-item p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* CTA Contact */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3498db 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta .cta-buttons .btn-primary {
    background: var(--accent-color);
    border: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .masonry-grid,
    .landscape-grid,
    .portrait-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .expertise-badges-grid {
        gap: 20px;
    }
    
    .expertise-badge-item {
        min-width: 120px;
        padding: 15px;
    }
    
    .lightbox-content {
        padding: 20px;
    }
    
    .lightbox-content img {
        max-width: 95%;
        max-height: 70%;
    }
}

.home-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.home-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.video-container {
    margin: 2.5rem 0;
    position: relative;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.video-container iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.home-subtitle .badge {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #ab47bc);
    border: none;
}

.home-subtitle .description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1rem;
}

/* Page CV avec Bootstrap */
.cv-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 2rem;
}

.cv-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cv-left-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #455a64 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.cv-left-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    pointer-events: none;
}

.cv-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.cv-left-sidebar h2 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    position: relative;
    z-index: 2;
}

.cv-left-sidebar .list-unstyled {
    position: relative;
    z-index: 2;
}

.cv-left-sidebar .list-unstyled li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cv-logiciels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

.cv-logiciels img {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 8px;
    padding: 3px;
    transition: var(--transition);
}

.cv-logiciels img:hover {
    transform: scale(1.1) rotate(5deg);
}

.cv-right-content {
    padding: 2rem;
}

.cv-right-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cv-right-content .subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cv-right-content h2 {
    color: var(--secondary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1rem;
}

.cv-right-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #ab47bc);
    border-radius: 2px;
}

.cv-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(142, 36, 170, 0.05);
    border-left: 3px solid var(--secondary-color);
}

.cv-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.cv-section strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.cv-section em {
    color: var(--text-light);
}

/* Responsive amélioré */
/* Responsive spécifique pour iPad mini et tablettes similaires en mode paysage */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape),
       (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    
    body::before {
        content: "Tablette Paysage";
        background: rgba(0,128,0,0.7);
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .sidebar {
        position: relative !important;
        transform: translateX(0) !important;
        width: 250px;
        height: auto !important;
        z-index: auto !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .container-fluid .row .col {
        margin-left: auto !important;
        width: auto !important;
        padding-top: 0 !important;
    }
    
    .home-container,
    .films-page,
    .storyboard-page,
    .layout-background,
    .cv-page {
        padding-top: 0 !important;
    }
    
    .gallery-hero {
        padding: 80px 0 !important;
    }
}

/* Responsive pour petites tablettes et mobiles en mode portrait */
@media (max-width: 991px) and (max-height: 600px) {
    
    body::before {
        content: "Tablette Portrait";
        background: rgba(255,165,0,0.7);
    }
    
    /* Menu hamburger pour tablettes en mode portrait */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        width: 250px;
        overflow-y: auto;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .container-fluid .row .col {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .home-container,
    .films-page,
    .storyboard-page,
    .layout-background,
    .cv-page {
        padding-top: 70px;
    }
    
    .gallery-hero {
        padding: 50px 0 30px 0;
    }
}

/* Responsive pour mobiles stricts */
@media (max-width: 768px) {
    
    body::before {
        content: "Mobile";
        background: rgba(255,0,0,0.7);
    }
    
    /* Menu hamburger pour vrais mobiles */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        width: 280px;
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 3rem;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Ajustement du menu 3D sur mobile */
    .sidebar-nav .nav-item {
        margin: -6px 0;
    }
    
    .sidebar-nav .nav-link {
        width: 180px;
        height: 45px;
        line-height: 45px;
        font-size: 0.85rem;
    }
    
    /* Réduction des effets 3D sur mobile pour meilleures performances */
    .sidebar-nav .nav-item:nth-child(odd) .nav-link {
        transform: perspective(400px) rotateX(2deg) rotateZ(-1deg);
    }
    
    .sidebar-nav .nav-item:nth-child(even) .nav-link {
        transform: perspective(400px) rotateX(2deg) rotateZ(1deg);
    }
    
    .sidebar-nav .nav-link:hover {
        transform: perspective(400px) translateY(-10px) rotateX(0deg) rotateZ(0deg) scale(1.02) !important;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .container-fluid .row .col {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .home-container,
    .films-page,
    .storyboard-page,
    .layout-background,
    .cv-page {
        padding-top: 80px;
    }
    
    .gallery-hero {
        padding: 60px 0 40px 0;
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .meduse {
        width: 200px !important;
    }
    
    .cv-page {
        padding: 1rem;
    }
}



/* Animations et effets */
@media (prefers-reduced-motion: no-preference) {
    .nav-link, .cv-section, .home-content {
        animation: fadeInUp 0.6s ease-out;
    }
}

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

/* Page Films */
.films-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.films-page .text-primary {
    color: var(--primary-color) !important;
}

.films-page .border-primary {
    border-color: var(--primary-color) !important;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    overflow: hidden;
    background: #f8f9fa;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: var(--transition);
}

.video-wrapper:hover iframe {
    transform: scale(1.02);
}

.video-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.video-actions {
    margin-top: auto;
}

.video-actions .btn {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.video-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Responsive pour Films */
@media (max-width: 768px) {
    .films-page .display-4 {
        font-size: 2rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
}

/* Animation d'apparition */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }

/* Page Storyboard - Design Professionnel */
.storyboard-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: white;
}

.storyboard-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-icon {
    font-size: 4rem;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.expertise-badges {
    margin: 2rem 0;
}

.expertise-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: inline-block;
    transition: transform 0.3s ease;
}

.expertise-badge:hover {
    transform: translateY(-3px);
}

.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4a);
    border: none;
    margin: 2rem auto;
    border-radius: 2px;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Cartes Storyboard Premium */
.storyboard-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    color: #333;
}

.storyboard-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.storyboard-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.storyboard-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.storyboard-card:hover .card-header::before {
    transform: rotate(45deg) translateX(100%);
}

.project-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    opacity: 0.9;
    margin: 0;
    font-size: 0.95rem;
}

.storyboard-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.storyboard-card:hover .play-overlay {
    opacity: 1;
}

.storyboard-card .card-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Section Processus Créatif */
.process-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.process-step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.step-icon {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #333;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.process-step p {
    color: white;
    opacity: 1;
    line-height: 1.6;
    font-weight: 500;
}

.process-title {
    color: white !important;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* CTA Professionnel */
.professional-cta {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 30px;
    padding: 4rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.professional-cta h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Animations spéciales pour Storyboard */
.storyboard-card {
    animation: fadeInScale 0.8s ease-out;
    animation-fill-mode: both;
}

.storyboard-card:nth-child(1) { animation-delay: 0.1s; }
.storyboard-card:nth-child(2) { animation-delay: 0.2s; }
.storyboard-card:nth-child(3) { animation-delay: 0.3s; }
.storyboard-card:nth-child(4) { animation-delay: 0.4s; }
.storyboard-card:nth-child(5) { animation-delay: 0.5s; }
.storyboard-card:nth-child(6) { animation-delay: 0.6s; }
.storyboard-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Storyboard */
@media (max-width: 768px) {
    .storyboard-header {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .header-icon {
        font-size: 3rem;
    }
    
    .expertise-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .professional-cta {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .professional-cta h3 {
        font-size: 2rem;
    }
    
    .process-section {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    /* Contact responsive */
    .contact-page .container-fluid,
    .contact-page .main-content {
        padding-top: 70px;
    }
    
    .contact-hero {
        padding: 10px 0 30px 0;
    }
    
    .contact-name {
        font-size: 2.5rem;
    }
    
    .photo-container {
        width: 300px;
        height: 300px;
        margin-bottom: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-item {
        padding: 20px 15px;
    }
    
    .contact-cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-content {
        text-align: center;
        padding: 1rem;
    }
}

/* ===== STYLES POUR L'ACCÈS SÉCURISÉ - STORYBOARD ===== */

/* Statut d'accès */
.access-status {
    max-width: 600px;
    margin: 0 auto;
}

.access-status .alert {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.access-status-success {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 15px !important;
    background: rgba(40, 167, 69, 0.1) !important;
    border: 1px solid rgba(40, 167, 69, 0.2) !important;
}

.access-status-info {
    border-radius: 15px !important;
    background: rgba(13, 202, 240, 0.1) !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
}

/* Contenus privés */
.private-content {
    position: relative;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2) !important;
}

.private-content:hover {
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3) !important;
}

/* Badge privé */
.private-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #333;
    padding: 8px 12px;
    border-radius: 0 20px 0 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 5;
}

.private-badge i {
    margin-right: 4px;
}

/* Informations client */
.client-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    font-style: italic;
}

/* Tag privé */
.private-tag {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
    font-weight: 600;
}

/* Animation pour les cartes privées */
.private-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4a, #ffd700, #ffed4a);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: gradientMove 3s ease infinite;
    opacity: 0.6;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive pour l'accès sécurisé */
@media (max-width: 768px) {
    .private-badge {
        padding: 6px 10px;
        font-size: 0.65rem;
    }
    
    .access-status .alert {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .access-status-success {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* ========== MENU SOBRE ========== */
.sidebar-nav .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.sidebar-nav .nav-item {
    margin: 0.5rem 0;
    padding: 0;
    width: 100%;
    max-width: 200px;
}

.sidebar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 45px;
    text-align: center !important;
    color: #ecf0f1;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

/* ========== VERSION MOBILE ========== */
@media (max-width: 768px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1.5rem;
        margin: 0;
        overflow-y: auto;
        box-sizing: border-box;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        z-index: 1000;
    }
    
    .sidebar-nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
    
    .sidebar-nav .nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }
    
    .sidebar-nav .nav-item {
        margin: 0;
        padding: 0;
        width: 90%;
        max-width: 240px;
    }
    
    .sidebar-nav .nav-link {
        height: 50px;
        font-size: 1rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
