/* --- Styles de base (Mobile First) --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #121212; /* Noir élégant pour les Oscars */
    color: #f1f1f1;
}

header {
    background-color: #000;
    border-bottom: 2px solid #D4AF37; /* Ligne dorée */
    padding: 1rem;
}

header ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Menu vertical sur téléphone */
    align-items: center;
    gap: 10px;
}

header ul li a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

footer {
    margin-top: auto;
    background-color: #000;
    color: #888;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #333;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* --- Passage à l'affichage Ordinateur (Breakpoint 576px) --- */
@media screen and (min-width: 576px) {
    header ul {
        flex-direction: row; /* Menu horizontal sur ordi */
        justify-content: center;
        gap: 30px;
    }
    
    header ul li a:hover {
        color: #fff;
        text-shadow: 0 0 5px #D4AF37;
    }
}

/* --- Styles de la page d'accueil --- */

.container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/oscar-bg.jpg'); /* Prévois une image de fond si tu veux */
    background-size: cover;
    background-position: center;
}

.content-box h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.presentation {
    text-align: center;
    padding: 40px 20px;
}

.btn-gold {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #D4AF37;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-gold:hover {
    background-color: white;
}

/* --- Responsive 576px --- */
@media screen and (min-width: 576px) {
    .content-box h1 {
        font-size: 3.5rem; /* Titre plus grand sur ordi */
    }
    
    .presentation p {
        font-size: 1.2rem;
        width: 70%;
        margin: 0 auto;
    }
}

/* --- Page Listing --- */
.page-title {
    text-align: center;
    margin: 30px 0;
    text-transform: uppercase;
}

.table-wrapper {
    overflow-x: auto; /* Permet le scroll horizontal si besoin sur tablette */
    padding: 10px;
}

.oscars-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #D4AF37;
}

/* --- Responsive Mobile : Le tableau devient des blocs --- */
@media screen and (max-width: 575px) {
    .oscars-table thead {
        display: none; /* Cache les titres du tableau sur mobile */
    }

    .oscars-table tr {
        display: block;
        margin-bottom: 15px;
        border: 2px solid #D4AF37;
        padding: 10px;
    }

    .oscars-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 5px;
        border-bottom: 1px solid #333;
        text-align: right;
    }

    /* Affiche le nom de la colonne avant la donnée */
    .oscars-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #D4AF37;
        text-transform: uppercase;
        margin-right: 10px;
    }
}

/* --- Affichage Ordinateur (>= 576px) --- */
@media screen and (min-width: 576px) {
    .oscars-table th, .oscars-table td {
        padding: 15px;
        text-align: left;
        border: 1px solid #333;
    }

    .oscars-table th {
        background-color: #D4AF37;
        color: black;
        text-transform: uppercase;
    }

    .oscars-table tr:hover {
        background-color: #2a2a2a; /* Effet de survol */
    }
}

/* --- Pages Recherche --- */

.search-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.search-card {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #D4AF37;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.search-form {
    display: flex;
    flex-direction: column; /* Empilé sur mobile */
    gap: 15px;
    margin-top: 20px;
}

.search-form input {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #000;
    color: white;
}

/* Mini barre sur la page de réponse */
.search-bar-mini {
    padding: 20px 0;
}

.search-bar-mini form {
    display: flex;
    gap: 10px;
}

.search-bar-mini input {
    flex-grow: 1;
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid #D4AF37;
    color: white;
}

.gold-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
    margin-bottom: 30px;
}

/* --- Responsive 576px --- */
@media screen and (min-width: 576px) {
    .search-form {
        flex-direction: row; /* Côte à côte sur ordi */
    }
    
    .search-form input {
        flex-grow: 1;
    }
}