/* ------------------- FONT ------------------- */
@font-face {
    font-family: 'Amalfi Coast';
    src: url('../fonts/AmalfiCoast.woff2') format('woff2'),
         url('../fonts/AmalfiCoast.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ------------------- GLOBAL ------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #161616;
    color: #fff;
}

/* Contrainte de largeur globale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ------------------- HEADER ------------------- */
header {
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 1rem;

    width: auto;          /* supprime 100% */
    max-width: 1200px;    /* largeur comme le main */
    margin: 0 auto;       /* centre */
}

.logo-left img,
.logo-right img {
    height: 80px;
}

.header-center {
    text-align: center;
}

.header-title {
    font-family: 'Amalfi Coast', cursive;
    font-size: 2.2rem;
    color: red;
}

/* ------------------- NAV ------------------- */
nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

nav a:hover {
    color: #FF0000;
}

/* ------------------- MAIN ------------------- */
main {
    text-align: center;
    padding: 1rem;
}

h1 {
    font-weight: normal;
}

h2 {
    font-weight: normal;
    font-family: Arial, sans-serif;
}

/* ------------------- GRILLE FILMS ------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;

    justify-content: center; /* centre le contenu */
    max-width: 900px;        /* limite la largeur pour éviter un étalement excessif */
    margin-left: auto;
    margin-right: auto;
}

.film {
    background: transparent;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.film img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
}
/* ------------------- TITRE FILMS ------------------- */
.film h2 {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: bold;
    color: #FFFF00;
}

/* Bouton réservation */
.btn-reserver {
    display: inline-block;
    background-color: #c62828;
    color: white;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-reserver:hover {
    background-color: #a51313;
}

/* ------------------- FOOTER ------------------- */
footer {
    text-align: center;
    padding: 1rem;
    background: #000;
    color: white;
    margin-top: 3rem;
}
footer a {
        color: white;
        text-decoration: underline; /* facultatif */
    }

/* ------------------- RESPONSIVE ------------------- */
/* Tablettes et mobiles */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 95% !important;
        background: black !important; /* TEST visuel */
    }

    .logo-left img,
    .logo-right img {
        height: 60px;
    }

    .header-title {
        font-size: 1.8rem;
    }

    nav {
        justify-content: center;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .header-title {
        font-size: 1.4rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .logo-left img,
    .logo-right img {
        height: 50px;
    }
}
