* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0f0f14;
    color: #ffffff;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

html {
    width: 100%;
    overflow-x: hidden;
}

main {
    min-height: calc(100vh - 200px);
    padding: 0;
    margin-top: 70px;
    width: 100%;
}

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #222;
    border-bottom: 3px solid #d4af37;
    width: 100%;
}

.navbar {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #d4af37;
    font-weight: 700;
    font-size: 24px;
    transition: 0.3s;
}

.logo:hover {
    color: #d4af37;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    letter-spacing: 2px;
}

/* MENU DESKTOP */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #d4af37;
}

.btn-explorer {
    background-color: #d4af37;
    color: black !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-explorer:hover {
    background-color: #ffd700;
    color: black !important;
}

/* MENU BURGER MOBILE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.menu-toggle:hover {
    color: #d4af37;
}

/* ============ FOOTER ============ */
footer {
    background-color: #222;
    border-top: 3px solid #d4af37;
    padding: 40px 20px;
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #ccc;
    font-size: 12px;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 12px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #d4af37;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid #d4af37;
    padding-top: 20px;
    color: #666;
    font-size: 11px;
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #d4af37;
    color: black;
}

.btn-primary:hover {
    background-color: #ffd700;
}

.btn-secondary {
    background-color: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background-color: #d4af37;
    color: black;
}

/* ============ PRIMARY CONTENT ============ */
.primary-content {
    padding: 80px 20px;
    background-color: #0f0f14;
    border-bottom: 1px solid #333;
    width: 100%;
}

.primary-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: #ccc;
    margin-bottom: 60px;
    font-size: 16px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.feature {
    padding: 40px;
    background-color: #333;
    border: 1px solid #555;
    border-left: 4px solid #d4af37;
    border-radius: 5px;
    transition: 0.3s;
}

.feature:hover {
    border-color: #d4af37;
    background-color: #444;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature p {
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}

/* ============ SECONDARY CONTENT ============ */
.secondary-content {
    padding: 80px 20px;
    background-color: #0f0f14;
    border-bottom: 1px solid #333;
    width: 100%;
}

.secondary-content h2 {
    font-size: 36px;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    text-align: center;
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.card {
    background-color: #333;
    border: 1px solid #555;
    border-left: 4px solid #d4af37;
    padding: 40px;
    border-radius: 5px;
    transition: 0.3s;
    position: relative;
}

.card:hover {
    border-color: #d4af37;
    background-color: #444;
    transform: translateY(-8px);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    color: rgba(212, 175, 55, 0.2);
    font-weight: bold;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 14px;
}

.card-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-link:hover {
    color: #ffd700;
}

/* ============ LISTING RÉALISATEURS ============ */

h2 {
    text-align: center;
    color: #d4af37;
    margin: 30px 0;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ SEARCH BOX ============ */
.search-box {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 14px;
    border: 2px solid #d4af37;
    background-color: #333;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: 0.3s;
}

.search-box input:focus {
    outline: none;
    background-color: #444;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.search-box input::placeholder {
    color: #999;
}

/* ============ GRID RÉALISATEURS ============ */
.realisateurs-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.realisateur-card {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.realisateur-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #222;
}

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

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

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content p {
    color: #ccc;
    font-size: 13px;
    margin: 8px 0;
}

.card-content .annee {
    color: #999;
}

.card-content .nationalite {
    color: #999;
}

.card-content .oscars {
    margin-top: 15px;
}

.oscar-badge {
    display: inline-block;
    background-color: #d4af37;
    color: black;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

#no-results {
    text-align: center;
    color: #d4af37;
    margin-top: 40px;
    font-size: 18px;
    display: none;
}


/* ============ RESPONSIVE MOBILE (576px) ============ */
@media (max-width: 576px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    main {
        padding: 0;
        margin-top: 70px;
    }

    .nav-container {
        padding: 12px 20px;
    }

    .logo {
        font-size: 18px;
        gap: 8px;
    }

    .logo-icon {
        font-size: 18px;
    }

    /* MENU MOBILE */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #333;
        border-bottom: 3px solid #d4af37;
        padding: 20px;
        gap: 0;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 0;
        border-bottom: 1px solid #555;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .btn-explorer {
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-top: 10px;
    }

    /* HERO MOBILE */
    .hero {
        height: 400px;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    /* PRIMARY CONTENT MOBILE */
    .primary-content {
        padding: 50px 20px;
    }

    .primary-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .section-intro {
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0;
    }

    .feature {
        padding: 25px;
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature h3 {
        font-size: 16px;
    }

    .feature p {
        font-size: 12px;
    }

    /* SECONDARY CONTENT MOBILE */
    .secondary-content {
        padding: 50px 20px;
    }

    .secondary-content h2 {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .card {
        padding: 25px;
    }

    .card-number {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 12px;
    }

    /* FOOTER MOBILE */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    /* TABLES MOBILE */
    h2 {
        font-size: 20px;
        padding: 0 20px;
    }

    .search-box {
        max-width: 100%;
        margin: 20px 0;
        padding: 0 20px;
    }

    .search-box input {
        padding: 10px;
        font-size: 12px;
    }

    .table-container {
        margin: 20px 0;
        padding: 0 15px;
        overflow-x: visible;
    }

    table {
        display: block;
        margin-top: 0;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: block;
    }

    table tr {
        display: block;
        background-color: #333;
        border: 2px solid #d4af37;
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 15px;
    }

    table td {
        display: block;
        border: none;
        padding: 8px 0;
        text-align: left;
        font-size: 12px;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #d4af37;
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
    }

    #no-results {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* ============ FORM RECHERCHE ============ */
.search-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.search-hero-content h1 {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.search-hero-content p {
    font-size: 18px;
    color: #ccc;
}

.search-section {
    padding: 60px 20px;
    background-color: #0f0f14;
    min-height: 60vh;
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: #333;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid #555;
}

.search-form-wrapper h2 {
    text-align: center;
    color: #d4af37;
    margin-bottom: 30px;
    font-size: 28px;
    text-transform: uppercase;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #d4af37;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #d4af37;
    background-color: #444;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group input:focus {
    outline: none;
    background-color: #555;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.form-group input::placeholder {
    color: #999;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-search,
.btn-reset {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.btn-search {
    background-color: #d4af37;
    color: black;
}

.btn-search:hover {
    background-color: #ffd700;
}

.btn-reset {
    background-color: #555;
    color: white;
}

.btn-reset:hover {
    background-color: #666;
}

.search-info {
    background-color: #444;
    padding: 25px;
    border-radius: 5px;
    border-left: 4px solid #d4af37;
}

.search-info h3 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
}

.search-info ul {
    list-style: none;
    padding: 0;
}

.search-info li {
    color: #ccc;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

.search-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* ============ REPONSE RECHERCHE ============ */
.results-hero {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.results-hero-content h1 {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.results-hero-content p {
    font-size: 18px;
    color: #ccc;
}

.results-hero-content strong {
    color: #d4af37;
    font-size: 24px;
}

.results-section {
    padding: 60px 20px;
    background-color: #0f0f14;
    min-height: 60vh;
}

.results-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #333;
    border-left: 4px solid #d4af37;
    border-radius: 5px;
}

.results-info p {
    color: #d4af37;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.table-container {
    overflow-x: auto;
    margin: 40px auto;
    max-width: 1200px;
}

table {
    width: 100%;
    background-color: #333;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background-color: #d4af37;
    color: black;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #555;
    font-size: 13px;
    color: #ccc;
}

table tr:hover {
    background-color: #444;
}

table tr:nth-child(even) {
    background-color: #2a2a2a;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-block;
    padding: 14px 32px;
    background-color: #d4af37;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 14px;
}

.btn-back:hover {
    background-color: #ffd700;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: #333;
    border-radius: 5px;
    border: 1px solid #555;
    max-width: 600px;
    margin: 0 auto;
}

.no-results h2 {
    color: #d4af37;
    font-size: 28px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.no-results p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.no-results strong {
    color: #d4af37;
}

.no-results .btn-back {
    margin-top: 30px;
}

/* ============ RESPONSIVE MOBILE (576px) ============ */
@media (max-width: 576px) {
    /* FORM */
    .search-hero {
        height: 300px;
    }

    .search-hero-content h1 {
        font-size: 32px;
    }

    .search-hero-content p {
        font-size: 14px;
    }

    .search-section {
        padding: 40px 20px;
    }

    .search-form-wrapper {
        padding: 25px;
    }

    .search-form-wrapper h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

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

    .form-group input {
        padding: 12px;
        font-size: 12px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-search,
    .btn-reset {
        padding: 12px;
        font-size: 12px;
    }

    .search-info {
        padding: 20px;
    }

    .search-info h3 {
        font-size: 14px;
    }

    .search-info li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* REPONSE */
    .results-hero {
        height: 300px;
    }

    .results-hero-content h1 {
        font-size: 32px;
    }

    .results-hero-content p {
        font-size: 14px;
    }

    .results-hero-content strong {
        font-size: 18px;
    }

    .results-section {
        padding: 40px 20px;
    }

    .results-info {
        margin-bottom: 30px;
        padding: 15px;
    }

    .results-info p {
        font-size: 14px;
    }

    .table-container {
        margin: 30px auto;
        padding: 0 15px;
        overflow-x: visible;
    }

    table {
        display: block;
        margin-top: 0;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: block;
    }

    table tr {
        display: block;
        background-color: #333;
        border: 2px solid #d4af37;
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 15px;
    }

    table td {
        display: block;
        border: none;
        padding: 8px 0;
        text-align: left;
        font-size: 12px;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #d4af37;
        display: block;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .back-link {
        margin-top: 30px;
    }

    .btn-back {
        padding: 12px 24px;
        font-size: 12px;
        width: 100%;
        max-width: 300px;
    }

    .no-results {
        padding: 40px 20px;
    }

    .no-results h2 {
        font-size: 22px;
    }

    .no-results p {
        font-size: 12px;
    }
}