﻿:root {
    --creme      : #E8DDD5;
    --sable      : #C9BDB4;
    --terre      : #B8A898;
    --ardoise    : #8B9EA0;
    --prune      : #9A8A9A;
    --fond-page  : #16120F;
    --fond-carte : #231D1A;
    --fond-header: #1A1512;
    --sep        : #312820;
    --header-h   : 68px;
}

@font-face {
    font-family: 'Oi Fallback';
    src: local('Georgia');
    size-adjust: 115%;
    ascent-override: 100%;
    descent-override: 25%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Winky Fallback';
    src: local('Segoe UI'), local('sans-serif');
    size-adjust: 105%;
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Londrina Fallback';
    src: local('Georgia');
    size-adjust: 80%;
    ascent-override: 105%;
    descent-override: 25%;
    line-gap-override: 0%;
}

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

.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.28;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

html {
    overflow-x: hidden;
    scrollbar-width: none;          
}
html::-webkit-scrollbar { display: none; }  

body {
    font-family: 'Winky Sans', 'Winky Fallback', 'Segoe UI', sans-serif;
    background-color: var(--fond-page);
    color: var(--creme);
    line-height: 1.7;
    overflow-x: hidden;
    
    padding-top: var(--header-h);
}

.etoiles {
    color: var(--terre);
    letter-spacing: 3px;
    font-size: 0.9rem;
}

header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    background-color: rgba(33, 29, 30, 0.95);
    border-bottom: 1px solid var(--sep);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Oi', 'Oi Fallback', Georgia, serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--creme);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-family: 'Winky Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--sable);
    text-decoration: none;
    letter-spacing: 0.5px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-menu a:hover {
    color: var(--creme);
    border-bottom-color: var(--ardoise);
}

.page-accueil { padding-top: 0; }

.page-accueil header {
    background-color: transparent;
    border-bottom: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.page-accueil .logo,
.page-accueil .nav-menu a {
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/SiegeSeulCinema.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(22, 18, 15, 0.35) 0%,
            rgba(22, 18, 15, 0.25) 50%,
            rgba(22, 18, 15, 0.75) 85%,
            rgba(22, 18, 15, 1) 100%
        );
    z-index: 1;
}

.hero-contenu {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 30px;
    max-width: 750px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-surtitle {
    font-family: 'Winky Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--terre);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Oi', 'Oi Fallback', Georgia, serif;
    font-size: 3.8rem;
    font-weight: normal;
    color: var(--creme);
    line-height: 1.12;
    margin-bottom: 26px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    min-height: 4.3em;
}

.hero h1 em {
    color: var(--ardoise);
}

.hero-texte {
    font-size: 1.05rem;
    color: var(--sable);
    max-width: 520px;
    margin: 0 auto 42px auto;
    opacity: 0.9;
    line-height: 1.8;
    min-height: 3.8em;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-chevron {
    display: block;
    width: 28px;
    height: 28px;
    border-right: 2px solid var(--sable);
    border-bottom: 2px solid var(--sable);
    transform: rotate(45deg);
    opacity: 0.5;
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--creme);
    padding: 11px 30px;
    border-radius: 3px;
    border: 1px solid var(--ardoise);
    text-decoration: none;
    font-family: 'Winky Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
    background-color: var(--ardoise);
    color: var(--fond-page);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 60px 0;
    border-top: 1px solid var(--sep);
}

.section:first-child { border-top: none; }

.section h2 {
    font-family: 'Londrina Shadow', 'Londrina Fallback', Georgia, serif;
    font-size: 2rem;
    font-weight: normal;
    color: var(--terre);
    margin-bottom: 36px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 4px 14px 4px 0;
}

.section h2::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.grille-cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.carte {
    background-color: var(--fond-carte);
    border: 1px solid var(--sep);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
    contain: layout style paint;
}

.carte:hover { border-color: var(--ardoise); }

.carte img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--sep);
    aspect-ratio: 400 / 195;
}

.carte-contenu {
    padding: 20px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.carte-contenu h3 {
    font-family: 'Londrina Shadow', 'Londrina Fallback', Georgia, serif;
    font-weight: normal;
    font-size: 1.2rem;
    color: var(--creme);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.carte-contenu p {
    font-size: 0.87rem;
    color: var(--sable);
    display: flex;
    align-items: center;
    gap: 6px;
}

.carte-contenu strong {
    color: var(--ardoise);
    font-weight: 500;
    min-width: 90px;
    flex-shrink: 0;
}

.recherche-bandeau {
    position: relative;
    height: 280px;
    overflow: hidden;
    
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 50px;
    
    margin-top: calc(-1 * var(--header-h));
}

.recherche-bandeau-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    filter: brightness(0.4);
}

.recherche-bandeau-contenu {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.recherche-bandeau-contenu h2 {
    font-family: 'Londrina Shadow', 'Londrina Fallback', Georgia, serif;
    font-size: 2.4rem;
    font-weight: normal;
    color: var(--creme);
    margin-bottom: 10px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.recherche-bandeau-contenu h2::before {
    content: '';
    position: absolute;
    inset: -4px -10px;
    opacity: 0.15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.recherche-bandeau-texte {
    font-size: 0.95rem;
    color: var(--sable);
    opacity: 0.85;
}

.recherche-bandeau-texte strong { color: var(--terre); }

.recherche-section { border-top: none; }

.formulaire {
    max-width: 520px;
    margin: 0 auto;
    background-color: var(--fond-carte);
    border: 1px solid var(--sep);
    border-radius: 3px;
    padding: 38px 40px;
}

.formulaire-erreur {
    font-size: 0.88rem;
    color: #c0756a;
    background-color: rgba(192, 117, 106, 0.1);
    border: 1px solid rgba(192, 117, 106, 0.3);
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.formulaire-intro {
    font-size: 0.9rem;
    color: var(--sable);
    margin-bottom: 24px;
    line-height: 1.6;
}

.formulaire label {
    display: block;
    font-size: 0.88rem;
    color: var(--sable);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.formulaire input[type="text"],
.formulaire input[type="number"] {
    width: 100%;
    padding: 11px 15px;
    background-color: #1a1617;
    border: 1px solid var(--sep);
    border-radius: 3px;
    color: var(--creme);
    font-family: 'Winky Sans', sans-serif;
    font-size: 0.93rem;
    margin-bottom: 22px;
    transition: border-color 0.2s;
}

.formulaire input[type="text"]::placeholder,
.formulaire input[type="number"]::placeholder { color: #5a5558; }

.formulaire input[type="number"]::-webkit-inner-spin-button,
.formulaire input[type="number"]::-webkit-outer-spin-button { opacity: 0.3; }

.formulaire input[type="text"]:focus,
.formulaire input[type="number"]:focus { outline: none; border-color: var(--ardoise); }

.connexion-info {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--creme);
    padding: 12px 0;
    border-bottom: 1px solid var(--sep);
}

.connexion-info:last-of-type { border-bottom: none; }

.connexion-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ardoise);
    min-width: 80px;
    flex-shrink: 0;
}

.tableau-resultats {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 34px;
    border: 1px solid var(--sep);
    border-radius: 3px;
    overflow: hidden;
}

.tableau-resultats th,
.tableau-resultats td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--sep);
    font-size: 0.88rem;
}

.tableau-resultats th {
    background-color: var(--fond-carte);
    color: var(--ardoise);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tableau-resultats td { color: var(--sable); }
.tableau-resultats tr:last-child td { border-bottom: none; }
.tableau-resultats tr:hover td { background-color: rgba(255,255,255,0.03); }
.tableau-resultats td[colspan] {
    text-align: center;
    color: var(--terre);
    font-style: italic;
    padding: 40px 20px;
}

footer {
    background-color: var(--fond-header);
    border-top: 1px solid var(--sep);
    text-align: center;
    padding: 26px 20px;
    content-visibility: auto;
    contain-intrinsic-size: auto 72px;
}

footer p { color: var(--prune); font-size: 0.86rem; }

@media screen and (max-width: 576px) {
    :root { --header-h: 110px; }
    header { height: auto; padding: 12px 20px; }
    .navbar { flex-direction: column; gap: 10px; }
    .nav-menu { gap: 22px; }
    .hero h1 { font-size: 2.1rem; }
    .hero-texte { font-size: 0.93rem; }
    .hero { min-height: 500px; background-attachment: scroll; }
    .scroll-indicator { bottom: 20px; }
    main { padding: 0 20px; }
    .section h2 { font-size: 1.6rem; }
    .grille-cartes { grid-template-columns: 1fr; }
    .formulaire { padding: 24px 20px; }
    .recherche-bandeau { height: 200px; }
    .recherche-bandeau-contenu h2 { font-size: 1.6rem; }
    .tableau-resultats { display: block; overflow-x: auto; white-space: nowrap; }
}
