/* ========================================
   Styles personnalisés du cinéma
   ======================================== */

:root {
    --primary-color: #003399;
    /* Bleu Royal */
    --secondary-color: #221f1f;
    --light-color: #f5f5f5;
    --dark-color: #1a1a1a;
    --accent-color: #0056b3;
}

/* ========== GÉNÉRAL ========== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: #333;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ========== NAVIGATION ========== */

.navbar {
    background-color: var(--secondary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
    /* Blanc pour contraster sur le fond sombre */
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: #4da6ff;
    /* Bleu clair pour l'iône */
}

/* ========== ACCUEIL ========== */

.hero-section {
    background: linear-gradient(135deg, #001f4d 0%, #003399 100%);
    /* Dégradé bleu */
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ========== FILMS ========== */

.film-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.film-card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background-color: #ddd;
}

.film-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.film-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.film-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.film-card-synopsis {
    font-size: 0.85rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-card-footer {
    display: flex;
    gap: 10px;
}

.film-card-footer .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* ========== FICHE FILM ========== */

.film-detail {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.film-detail-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.film-detail-poster {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.film-detail-poster img {
    width: 100%;
    height: auto;
}

.film-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.film-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.film-detail-meta-item {
    display: flex;
    flex-direction: column;
}

.film-detail-meta-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.film-detail-meta-value {
    font-size: 1rem;
    color: #333;
}

.film-detail-synopsis {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.film-detail-trailer {
    margin: 30px 0;
}

.film-detail-trailer iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

/* ========== PROGRAMME ========== */

.seances-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.seance-item {
    display: grid;
    grid-template-columns: 120px 60px 1fr 150px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.seance-poster {
    width: 60px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee;
}

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

.seance-item:last-child {
    border-bottom: none;
}

.seance-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.seance-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.seance-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.seance-action {
    text-align: right;
}

/* ========== ADMIN ========== */

.admin-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar li {
    margin-bottom: 10px;
}

.admin-sidebar a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background-color: #002266;
    /* Bleu foncé pour les entêtes */
    color: white;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.badge-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge-status.active {
    background-color: #28a745;
    color: white;
}

.badge-status.inactive {
    background-color: #6c757d;
    color: white;
}

/* ========== FORMULAIRES ========== */

.form-group {
    margin-bottom: 20px;
}

.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 153, 0.25);
    /* Ombre bleue */
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

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

.btn-secondary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

/* ========== CALENDRIER ========== */

.fc {
    font-family: inherit;
}

.fc .fc-button-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.fc .fc-button-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.fc .fc-button-primary.fc-button-active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.fc-event {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .film-detail-header {
        grid-template-columns: 1fr;
    }

    .seance-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .seance-action {
        text-align: left;
    }

    .film-detail-trailer iframe {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .film-card-image {
        height: 200px;
    }
}