/* ========================================
   NETMOVIE - Feuille de style principale
   Design moderne, épuré et responsive
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #e50914;
    --primary-hover: #f40612;
    --secondary-color: #221f1f;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --background-lighter: #f1f3f5;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-lighter);
    border-color: var(--text-light);
}

.btn-admin {
    background: var(--secondary-color);
    color: white;
}

.btn-admin:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* Main */
.main {
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b20710 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-hover);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--background-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.see-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.see-all:hover {
    transform: translateX(4px);
}

/* Grilles */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.actors-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.actors-grid-home .card-poster {
    aspect-ratio: 1/1;
}

.actors-grid-home .no-poster {
    font-size: 2rem;
}

.movie-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.actor-card-home {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.actor-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--background-lighter);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--text-lighter);
}

.card-rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.card-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.card-info {
    padding: 1rem;
}

.card-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card-year,
.card-duration {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Page headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Filtres améliorés */
.filters-section {
    margin-bottom: 2rem;
    background: var(--background-lighter);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filters-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form-inline {
    display: flex;
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-form-inline .search-input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--background);
}

.search-form-inline .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-form-inline .search-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-options label {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.sort-options select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--background);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Cards Grid amélioré */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Movie Cards améliorées */
.movie-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--background-lighter);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.card-info {
    padding: 1rem;
    background: var(--background);
}

.card-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.card-year,
.card-duration {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.card-genre {
    font-size: 0.75rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-lighter), var(--background));
    font-size: 3rem;
    color: var(--text-light);
}

/* Badge pour les séries */
.card-badge {
    position: absolute;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.company-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.company-card .card-poster {
    aspect-ratio: 1/1;
    background: var(--background-lighter);
}

.company-card .no-poster {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--background-lighter), var(--background));
}

/* Company Detail Page */
.company-header {
    position: relative;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(108, 117, 125, 0.9));
    color: white;
    padding: 6rem 0;
    margin: 0 -2rem; /* Étire légèrement aux bords */
    border-radius: 0;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    width: 102%; /* 102% pour déborder légèrement */
    max-width: 102%; /* Empêche le débordement excessif */
}

.company-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.company-header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.company-info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.company-logo {
    width: 180px;
    height: 180px;
    border-radius: 25px;
    overflow: hidden;
    flex-shrink: 0;
    border: 5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-logo {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
    letter-spacing: -2px;
}

.company-description {
    font-size: 1.4rem;
    line-height: 1.9;
    opacity: 0.95;
    max-width: 700px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
}

.company-actions {
    margin-top: 2.5rem;
}

/* Statistiques des sociétés dans la liste */
.company-stats {
    display: flex !important;
    gap: 1.5rem !important;
    margin-top: 0.2rem !important;
    padding-top: 0.2rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.03) !important;
    opacity: 0.5 !important;
    font-size: 0.9rem !important;
}

.stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

.stat-icon {
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
    display: none !important; /* Cache les icônes */
}

.stat-number {
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

.stat-label {
    font-size: 0.75rem !important;
    text-transform: lowercase !important;
    opacity: 0.6 !important;
}

/* Contenu principal avec fond moderne */
.company-content {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
    min-height: 40vh;
}

.company-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) bottom;
    background-size: 100% 3px;
    background-repeat: no-repeat;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.section-count {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Boutons modernes */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #dc3545);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #6c757d);
    color: white;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Correction bouton connexion */
.login-link {
    background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
    color: var(--text-color) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.login-link:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    color: var(--text-color) !important;
    border-color: var(--primary-color) !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-count {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Directors List */
.directors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.director-item {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.director-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.director-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.director-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--background-lighter);
}

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

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    color: var(--text-light);
}

.director-info {
    flex: 1;
}

.director-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.director-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Companies List in Film Details */
.companies-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.company-item {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.company-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.company-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.company-logo-small {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--background-lighter);
    border: 1px solid var(--border-color);
}

.company-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-logo-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    color: var(--text-light);
}

.company-info-small {
    flex: 1;
}

.company-info-small h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.company-founded-small {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Special Widget - Top Directors */
.special-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.special-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)' /%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.widget-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.widget-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.widget-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.top-directors-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.top-director-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.top-director-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.rank-badge {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.rank-1 {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-2 {
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.rank-3 {
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.rank-4 {
    box-shadow: 0 0 5px rgba(205, 127, 50, 0.2);
}

.director-photo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.director-details {
    flex: 1;
}

.director-name-small {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.movie-count-small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.movie-count-small strong {
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: 700;
}

/* Layout Principal avec Sidebar */
.main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-content > section {
    flex: 1;
    min-width: 0;
}

/* Sidebar Fixe à Droite (Desktop) - SEULEMENT POUR LES WIDGETS */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

/* Conteneur principal pour éviter le layout horizontal */
.main > .main-content {
    flex-direction: column;
}

.main > .main-content > section {
    width: 100%;
}

.main > .main-content > .sidebar {
    display: none;
}

/* Empêcher la sélection de texte sur tout le site */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Autoriser la sélection pour les inputs et textareas */
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Layout spécial pour la page d'accueil avec sidebar */
.main.homepage-layout {
    display: flex;
    flex-direction: column; /* Layout vertical : widget en haut, contenu en dessous */
    gap: 0; /* Suppression du gap pour éviter l'espace blanc */
    align-items: flex-start;
    padding-top: 0; /* Suppression du grand espace blanc */
    position: relative; /* Pour le positionnement du widget */
}

.main.homepage-layout .sidebar {
    width: 320px; /* Largeur fixe */
    position: fixed; /* Position fixe pour descendre avec le scroll */
    top: 80px; /* Juste en dessous de la navigation */
    right: 20px; /* Aligné à droite avec une marge */
    height: fit-content;
    z-index: 10;
    display: block;
}

.main.homepage-layout .main-content {
    flex: 1; /* Prend le reste de l'espace */
    min-width: 0;
    margin-top: 0; /* Pas de marge en haut */
    order: 2; /* Deuxième (en dessous) */
    width: 100%; /* Prend toute la largeur */
    padding-top: 0; /* Pas de padding en haut */
}

/* Widget Spécial - Top Acteurs */
.sidebar .special-widget {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.sidebar .special-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)' /%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.sidebar .widget-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.sidebar .widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar .widget-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.sidebar .top-directors-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.sidebar .top-director-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-decoration: none; /* Pas de soulignement */
    color: inherit; /* Hérite la couleur du parent */
}

.sidebar .top-director-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none; /* Pas de soulignement même au hover */
    color: inherit; /* Hérite la couleur du parent */
}

.sidebar .rank-badge {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar .rank-1 {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.sidebar .rank-2 {
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.sidebar .rank-3 {
    box-shadow: 0 0 5px rgba(205, 127, 50, 0.3);
}

.sidebar .rank-4 {
    box-shadow: 0 0 2px rgba(205, 127, 50, 0.2);
}

.sidebar .director-photo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .director-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre tout le conteneur */
}

.sidebar .no-photo-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .director-details {
    flex: 1;
}

.sidebar .director-name-small {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.sidebar .movie-count-small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.sidebar .movie-count-small strong {
    font-size: 1rem;
    color: #FFD700;
    font-weight: 700;
}

/* Responsive pour Sidebar */
@media (max-width: 1200px) {
    .main.homepage-layout .sidebar {
        width: 280px;
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .main.homepage-layout {
        flex-direction: column; /* Reste en colonne sur tablette */
        position: static; /* Retour en position normale */
    }
    
    .main.homepage-layout .sidebar {
        width: 100%;
        position: static; /* Retour en position normale */
        top: auto;
        right: auto;
        margin-bottom: 2rem;
        order: 1;
    }
    
    .main.homepage-layout .main-content {
        order: 2;
        margin-top: 0;
    }
    
    .sidebar .widget-title {
        font-size: 1.3rem;
    }
    
    .sidebar .widget-subtitle {
        font-size: 0.85rem;
    }
    
    .sidebar .top-directors-list {
        gap: 0.5rem;
    }
    
    .sidebar .top-director-item {
        padding: 0.5rem;
    }
    
    .sidebar .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .sidebar .director-photo-small {
        width: 40px;
        height: 40px;
    }
    
    .sidebar .director-name-small {
        font-size: 0.9rem;
    }
    
    .sidebar .movie-count-small {
        font-size: 0.75rem;
    }
    
    .sidebar .movie-count-small strong {
        font-size: 0.85rem;
    }
}

/* Mobile : Widget caché */
@media (max-width: 768px) {
    .main.homepage-layout {
        flex-direction: column;
        padding-top: 60px; /* Navigation plus petite sur mobile */
    }
    
    .main.homepage-layout .sidebar {
        display: none; /* Widget caché sur mobile */
    }
    
    .main.homepage-layout .main-content {
        order: 1;
    }
    
    .sidebar .special-widget {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .sidebar .widget-title {
        font-size: 1.2rem;
    }
    
    .sidebar .widget-subtitle {
        font-size: 0.8rem;
    }
    
    .sidebar .top-directors-list {
        gap: 0.75rem;
    }
    
    .sidebar .top-director-item {
        padding: 0.75rem;
    }
    
    .sidebar .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .sidebar .director-photo-small {
        width: 35px;
        height: 35px;
    }
    
    .sidebar .director-name-small {
        font-size: 0.85rem;
    }
    
    .sidebar .movie-count-small {
        font-size: 0.7rem;
    }
    
    .sidebar .movie-count-small strong {
        font-size: 0.8rem;
    }
}

/* Responsive pour Widget Spécial */
@media (max-width: 768px) {
    .special-widget {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .widget-title {
        font-size: 1.5rem;
    }
    
    .widget-subtitle {
        font-size: 0.9rem;
    }
    
    .top-directors-list {
        gap: 0.75rem;
    }
    
    .top-director-item {
        padding: 0.75rem;
    }
    
    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .director-photo-small {
        width: 50px;
        height: 50px;
    }
    
    .director-name-small {
        font-size: 1rem;
    }
    
    .movie-count-small {
        font-size: 0.8rem;
    }
    
    .movie-count-small strong {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .special-widget {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }
    
    .widget-title {
        font-size: 1.3rem;
    }
    
    .widget-subtitle {
        font-size: 0.85rem;
    }
    
    .top-director-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .director-photo-small {
        width: 40px;
        height: 40px;
    }
    
    .director-name-small {
        font-size: 0.9rem;
    }
    
    .movie-count-small {
        font-size: 0.75rem;
    }
    
    .movie-count-small strong {
        font-size: 0.9rem;
    }
}

/* Responsive Design pour Films et Séries */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-form-inline {
        max-width: 100%;
    }
    
    .sort-options {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filters-section {
        padding: 1rem;
    }
    
    .card-info {
        padding: 0.75rem;
    }
    
    .card-info h3 {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .card-year,
    .card-duration {
        font-size: 0.75rem;
    }
    
    .card-rating {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .filters-section {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .search-form-inline .search-input {
        padding: 0.6rem 1rem 0.6rem 2.2rem;
        font-size: 0.85rem;
    }
    
    .sort-options select {
        padding: 0.6rem 2rem 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .card-info {
        padding: 0.5rem;
    }
    
    .card-info h3 {
        font-size: 0.8rem;
    }
    
    .card-year,
    .card-duration {
        font-size: 0.7rem;
    }
    
    .card-genre {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .no-poster {
        font-size: 2rem;
    }
}

/* Responsive Design pour les Sociétés */
@media (max-width: 1024px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
    
    .company-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .directors-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .company-header {
        padding: 1.5rem;
    }
    
    .company-logo {
        width: 100px;
        height: 100px;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .company-description {
        font-size: 0.95rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .directors-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .company-header {
        padding: 1rem;
    }
    
    .company-logo {
        width: 80px;
        height: 80px;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .company-founded {
        font-size: 1rem;
    }
    
    .company-description {
        font-size: 0.9rem;
    }
    
    .section-count {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .director-link {
        padding: 0.75rem;
    }
    
    .director-photo {
        width: 50px;
        height: 50px;
    }
    
    .director-name {
        font-size: 1rem;
    }
    
    .director-count {
        font-size: 0.8rem;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    background: var(--background);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    font-weight: 500;
    transition: var(--transition);
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-btn.prev,
.pagination-btn.next {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-btn.prev:hover,
.pagination-btn.next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.no-results .btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.no-results .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Pagination Dots */
.pagination-dots {
    padding: 0 0.5rem;
    color: var(--text-light);
}

/* Page de détails des films - Style moderne */
.movie-backdrop {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 calc(-50vw + 50%);
    width: 99.6vw;
    display: flex;
    align-items: flex-end;
}

.backdrop-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    width: 100%;
    padding: 4rem 0 2rem;
}

.backdrop-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    color: white;
    margin-bottom: 300px;
}

.movie-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
}

.movie-original-title {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.movie-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.movie-year, .movie-duration, .movie-rating {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    transition: all 0.3s ease;
}

.movie-year:hover, .movie-duration:hover, .movie-rating:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.movie-details {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: -20rem;
    position: relative;
    z-index: 10;
}

.movie-poster-section {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.movie-poster {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--background-lighter), var(--background));
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-poster-large {
    font-size: 5rem;
    opacity: 0.5;
}

.movie-info-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section informations principales regroupées */
.movie-main-info {
    background: linear-gradient(135deg, var(--primary-color), #dc3545);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.movie-main-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movie-main-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.movie-main-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.movie-main-info-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.movie-main-info-value {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.movie-main-info-value a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.movie-main-info-value a:hover {
    border-bottom-color: white;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-lighter);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 700;
    color: var(--text-color);
}

.people-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.companies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.person-link {
    background: var(--background-lighter);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.company-link {
    background: linear-gradient(135deg, var(--primary-color), #dc3545);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.company-link:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.person-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Synopsis moderne */
.synopsis-block {
    background: linear-gradient(135deg, var(--background-lighter), var(--background));
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.synopsis-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.synopsis-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    .movie-details {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: -2rem;
    }
    
    .movie-poster-section {
        position: relative;
        top: 0;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .movie-title {
        font-size: 2.5rem;
    }
    
    .movie-meta {
        gap: 1rem;
    }
    
    .movie-main-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Actors section */
.actors-section {
    margin-bottom: 3rem;
}

.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.actor-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

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

.actor-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.actor-link:hover {
    transform: translateY(-4px);
}

.actor-photo {
    width: 120px;
    height: 120px;
    margin: 1.5rem auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-lighter);
}

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

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    color: var(--text-lighter);
}

.actor-info {
    padding: 0 1rem 1.5rem;
}

.actor-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.actor-birth,
.actor-nationality {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* Actors grid */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.actor-card {
    text-align: center;
}

.actor-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.actor-link:hover {
    transform: translateY(-4px);
}

.actor-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-lighter);
}

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

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: var(--text-lighter);
}

.actor-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.actor-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Interaction section */
.interaction-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.rating-section,
.comment-section {
    margin-bottom: 3rem;
}

.rating-section h3,
.comment-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rating-form {
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.3;
}

.star-btn:hover,
.star-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.rating-display {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.user-rating {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--radius-md);
}

/* Comments */
.comments-list {
    margin-top: 2rem;
}

.comments-list h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-content {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.delete-comment-form {
    display: inline-block;
}

.delete-form {
    display: inline-block;
}

/* Person pages */
.person-header {
    background: var(--background-light);
    padding: 3rem 0;
}

.person-header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.person-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-lighter);
    flex-shrink: 0;
}

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

.no-photo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: var(--text-lighter);
}

.person-info {
    flex: 1;
}

.person-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.person-birth,
.person-nationality {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.person-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    font-weight: 600;
    color: var(--primary-color);
}

.biography-section {
    margin-bottom: 3rem;
}

.biography {
    line-height: 1.8;
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.filmography-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.filmography-subsection {
    margin-bottom: 3rem;
}

.filmography-subsection h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.filmography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filmography-item {
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.filmography-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.filmography-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.filmography-poster {
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--background-lighter);
}

.filmography-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filmography-info {
    padding: 1rem;
}

.filmography-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.filmography-role,
.filmography-year,
.filmography-rating {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.no-filmography {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
}

/* Authentication */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-light);
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results p {
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Search results */
.search-results {
    margin-bottom: 3rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Profile */
.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.profile-section {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.profile-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.profile-info {
    display: grid;
    gap: 1rem;
}

.profile-form {
    display: grid;
    gap: 1.5rem;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-user {
    background: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.role-admin {
    background: var(--primary-color);
    color: white;
}

/* Administration */
.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.admin-stats {
    margin-bottom: 3rem;
}

.admin-stats h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: black;
    font-weight: 700;
}

.admin-actions {
    margin-bottom: 3rem;
}

.admin-actions h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
    color: white;
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-recent {
    margin-bottom: 3rem;
}

.admin-recent h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.recent-comments {
    display: grid;
    gap: 1rem;
}

.comment-item {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.users-table {
    width: 100%;
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.users-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-color);
}

.users-table tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 1.2rem;
}

.footer-section h4 {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-form {
        flex-direction: column;
        margin: 0 15px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .movie-details {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: -50px;
    }
    
    .movie-poster-section {
        position: static;
        margin-bottom: 2rem;
    }
    
    .movie-poster {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .person-header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .person-stats {
        justify-content: center;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form-inline {
        max-width: 100%;
    }
    
    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .directors-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .filmography-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .movie-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1rem;
    }
    
    .stats-grid,
    .actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .comment-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .movie-title {
        font-size: 2rem;
    }
    
    .person-name {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 0 15px;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .stat-card,
    .action-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card,
.actor-card,
.filmography-item,
.stat-card,
.action-card {
    animation: fadeIn 0.6s ease-out;
}

/* Focus states for accessibility */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .rating-section,
    .comment-section {
        display: none;
    }
    
    .main {
        padding-top: 0;
    }
    
    .movie-details {
        grid-template-columns: 1fr;
    }
}

/* Formulaire d'ajout/modification de société */
.company-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: white;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Messages d'erreur */
.error-messages {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.error-message {
    margin-bottom: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
}
