/* ==========================================================
   Au Carrefour - Bar Brasserie à Lille
   Conception : Stratégie Média+
   ========================================================== */

/* ---------- Polices (hébergées en local) ---------- */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 200; font-display: swap; src: url('../fonts/oswald-latin-200-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/oswald-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/oswald-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2'); }

/* ---------- Variables ---------- */
:root {
    --cuivre: #dca57d;
    --cuivre-fonce: #c99872;
    --or-appel: #ddad60;
    --dore-menu: #c88a26;
    --lien: #2ea3f2;
    --noir: #000;
    --blanc: #fff;
    --titres: 'Oswald', Helvetica, Arial, sans-serif;
    --texte: 'Open Sans', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--noir);
    color: #666;
    font-family: var(--texte);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; padding-bottom: 10px; font-family: var(--titres); font-weight: 500; line-height: 1em; color: var(--blanc); }
p { margin: 0; }
#haut { position: absolute; top: 0; }

/* Fond "parallaxe" (fixe sur ordinateur, défilant sur mobile/tablette) */
.parallax { background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }

/* ---------- Bouton ---------- */
.bouton {
    display: inline-block;
    padding: .3em 1em;
    border: 10px solid var(--cuivre);
    background: var(--cuivre);
    color: var(--blanc);
    font-family: var(--titres);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.7em;
    transition: background-color .3s, border-color .3s;
}
.bouton:hover { background: var(--cuivre-fonce); border-color: var(--cuivre-fonce); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--noir);
    text-align: center;
    padding: 80px 20px 120px;
}
.hero-voile { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.hero-contenu { position: relative; z-index: 1; width: 80%; max-width: 1080px; }
.hero h1 {
    font-size: 67px;
    letter-spacing: .05em;
    line-height: 1.5em;
    text-transform: uppercase;
    padding-bottom: 10px;
}
.hero-sous-titre {
    color: var(--blanc);
    font-family: var(--titres);
    font-weight: 200;
    font-size: 20px;
    line-height: 1.9em;
    margin-bottom: 105px;
}
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--blanc);
    width: 58px;
    height: 58px;
    animation: rebond 2.2s infinite;
}
.hero-scroll svg { width: 100%; height: 100%; }
@keyframes rebond {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ==========================================================
   INTRO BIÈRES & PLATS
   ========================================================== */
.intro {
    padding: 45px 20px 100px;
    background-color: #111;
}
.intro-contenu { width: 80%; max-width: 600px; margin: 0 auto; padding: 40px 0 99px; text-align: center; }
.intro h2 {
    font-size: 40px;
    letter-spacing: 1px;
    line-height: 1.5em;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.intro-logo { width: 100%; max-width: 380px; margin: 10px auto 0; }
@media (max-width: 767px) {
    .intro-logo { max-width: 75%; }
}

/* ==========================================================
   BANDEAU COOKIES
   ========================================================== */
.cookies {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(20, 20, 20, .95);
    color: var(--blanc);
    font-family: var(--texte);
    font-size: 13px;
    line-height: 1.5;
    padding: 14px 110px 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .4);
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; }
.cookies a { color: var(--cuivre); }
.cookies-boutons { display: flex; gap: 8px; }
.cookies button {
    border: 0;
    padding: 6px 18px;
    font-family: var(--titres);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .3s;
}
.cookies .cookies-ok { background: var(--cuivre); color: var(--blanc); }
.cookies .cookies-ok:hover { background: var(--cuivre-fonce); }
.cookies .cookies-refus { background: #444; color: var(--blanc); }
.cookies .cookies-refus:hover { background: #555; }
body.cookies-visible .btn-appel { bottom: 85px; }
body.cookies-visible .btn-haut { bottom: 175px; }
.btn-appel, .btn-haut { transition: bottom .3s, opacity .4s, visibility .4s; }
@media (max-width: 767px) {
    .cookies { padding: 12px 16px 14px; }
    .intro-contenu { width: 88%; }
    body.cookies-visible .btn-appel { bottom: 120px; }
    body.cookies-visible .btn-haut { bottom: 190px; }
}

/* ==========================================================
   BANDEAU "NOTRE CARTE"
   ========================================================== */
.bandeau-titre { background: var(--noir); padding: 36px 20px 34px; text-align: center; }
.bandeau-titre h2 { font-size: 40px; letter-spacing: 2px; line-height: 1.5em; text-transform: uppercase; }

/* ==========================================================
   LA CARTE (fond ardoise)
   ========================================================== */
.carte {
    background-color: #2b2b2b;
    background-size: cover;
    background-position: center top;
    background-repeat: repeat-y;
    padding: 0 0 54px;
    color: var(--blanc);
}
.carte-logo { width: 80%; max-width: 1080px; margin: 0 auto; padding: 70px 0 60px; }
.carte-logo img { max-width: 340px; width: 100%; margin: 0 auto; }

.rangee {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    gap: 5.5%;
}
.colonne { width: 47.25%; }

.bloc-carte { margin-bottom: 40px; }
.bloc-carte:last-child { margin-bottom: 0; }
.bloc-carte h3 {
    display: inline-block;
    background: var(--dore-menu);
    color: var(--blanc);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px 5px;
    margin: 4px 0 14px;
    transform: rotate(-2deg);
    transform-origin: left center;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, .25);
}
.bloc-carte p {
    font-family: var(--titres);
    font-weight: 200;
    font-size: 23px;
    line-height: 1.2em;
    color: var(--blanc);
}
.bloc-carte p.espace { margin-top: 28px; }
.bloc-carte em { font-style: italic; }

.galerie-menus a { display: block; position: relative; overflow: hidden; background: #fff; aspect-ratio: 1.414 / 1; }
.galerie-menus img { width: 100%; height: 100%; object-fit: contain; }
.galerie-menus a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-5-5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 40px no-repeat;
    opacity: 0;
    transition: opacity .3s;
}
.galerie-menus a:hover::after { opacity: 1; }

/* ==========================================================
   NOS BIÈRES (vidéo)
   ========================================================== */
.bieres {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: #1a1a1a;
    margin-top: -1px;
}
.bieres-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.bieres-boite {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 15px;
    background: rgba(0, 0, 0, .49);
    text-align: center;
    color: var(--blanc);
    font-family: var(--titres);
    font-weight: 200;
    font-size: 22px;
    line-height: 1.3em;
}
.bieres-boite h2 { font-size: 48px; line-height: 1.2em; padding: 12px 0 22px; }
.bieres-boite p { padding-bottom: 22px; }
.bieres-boite p:last-child { padding-bottom: 0; }
.bieres-boite strong { font-weight: 500; font-size: 26px; }
.bieres-boite p.bieres-note { font-size: 18px; margin-top: -12px; }

/* ==========================================================
   BANDEAU PHOTOS
   ========================================================== */
.bandeau-photos { line-height: 0; background: var(--noir); }
.bandeau-photos img { width: 100%; filter: brightness(70%) contrast(124%); }

/* ==========================================================
   HORAIRES / CONTACT / AVIS
   ========================================================== */
.infos {
    background-color: #333;
    background-size: cover;
    background-position: center;
    padding: 0 0 60px;
}
.infos-colonnes { display: flex; }
.infos-col { width: 50%; padding: 100px 10%; font-family: var(--titres); }
.infos-col-horaires { background: rgba(0, 0, 0, .6); }
.infos-col-contact { background: var(--noir); }
.infos-col h2 {
    font-size: 40px;
    letter-spacing: 2px;
    line-height: 1.5em;
    text-transform: uppercase;
    margin-bottom: 4%;
}
.infos-col h4 {
    color: var(--cuivre);
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.5em;
    text-transform: uppercase;
}
.infos-col p {
    color: var(--blanc);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    margin-bottom: 6%;
}
.infos-col p:last-child { margin-bottom: 0; }
.infos-col a { color: var(--blanc); }
.infos-col a:hover { color: var(--cuivre); }
.reseaux { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.reseaux a { display: inline-flex; align-items: center; gap: 8px; }
.reseaux svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

/* Avis Google */
.avis { width: 90%; max-width: 1330px; margin: 0 auto; padding-top: 40px; font-family: var(--texte); }
.avis-entete { text-align: center; color: var(--blanc); margin-bottom: 26px; }
.avis-libelle { font-size: 21px; font-weight: 600; line-height: 1.3; }
.etoiles { display: inline-flex; gap: 2px; vertical-align: middle; }
.etoile { width: 18px; height: 18px; }
.etoiles-grandes { margin: 4px 0; }
.etoiles-grandes .etoile { width: 26px; height: 26px; }
.avis-nombre { font-size: 13px; margin-top: 2px; }
.avis-nombre strong { font-weight: 600; }
.avis-google {
    display: inline-block;
    font-family: 'Product Sans', Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-top: 2px;
}

.avis-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.avis-carte {
    background: #1b1b1b;
    border-radius: 14px;
    padding: 20px 20px 18px;
    color: var(--blanc);
    display: flex;
    flex-direction: column;
    min-height: 230px;
}
.avis-carte-haut { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.avis-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.avis-initiale {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-size: 18px;
    font-weight: 400;
}
.avis-auteur { flex: 1; display: flex; flex-direction: column; padding-top: 2px; }
.avis-nom { font-size: 15px; font-weight: 600; line-height: 1.3; }
.avis-date { font-size: 12px; color: #a5a5a5; line-height: 1.4; }
.avis-g { width: 20px; height: 20px; flex-shrink: 0; }
.avis-note { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.avis-note .etoile { width: 17px; height: 17px; }
.avis-verifie { width: 15px; height: 15px; }
.avis-texte {
    font-size: 14px;
    line-height: 1.6;
    color: #f2f2f2;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.avis-carte.ouvert .avis-texte { -webkit-line-clamp: unset; display: block; }
.avis-suite {
    align-self: flex-start;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #9a9a9a;
    font-family: var(--texte);
    font-size: 13px;
    cursor: pointer;
}
.avis-suite:hover { color: var(--blanc); }

/* ==========================================================
   PIED DE PAGE
   ========================================================== */
.pied { background: var(--noir); color: var(--blanc); text-align: center; padding: 22px 20px 14px; font-size: 13px; line-height: 1.6; }
.pied p { margin-bottom: 8px; }
.pied a:hover { text-decoration: underline; }

/* ==========================================================
   BOUTONS FLOTTANTS
   ========================================================== */
.btn-appel {
    position: fixed;
    z-index: 15;
    right: 25px;
    bottom: 25px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--or-appel);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    animation: sonnerie 4s infinite;
}
.btn-appel svg { width: 30px; height: 30px; fill: #111; }
@keyframes sonnerie {
    0%, 90%, 100% { transform: rotate(0); }
    92% { transform: rotate(-12deg); }
    94% { transform: rotate(12deg); }
    96% { transform: rotate(-8deg); }
    98% { transform: rotate(8deg); }
}

.btn-haut {
    position: fixed;
    z-index: 14;
    right: 0;
    bottom: 125px;
    width: 40px;
    height: 50px;
    background: rgba(0, 0, 0, .4);
    border-radius: 5px 0 0 5px;
    color: var(--blanc);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.btn-haut.visible { opacity: 1; visibility: visible; }
.btn-haut svg { width: 26px; height: 26px; }

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity .3s;
}
.lb.ouverte { opacity: 1; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .6); }
.lb-fermer {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: 0;
    color: var(--blanc);
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
}

/* ==========================================================
   POPUP D'INFORMATION
   ========================================================== */
.popup {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s;
}
.popup[hidden] { display: none; }
.popup.ouverte { opacity: 1; }
.popup-boite {
    position: relative;
    width: 100%;
    max-width: 520px;
    transform: scale(.94);
    transition: transform .35s;
}
.popup.ouverte .popup-boite { transform: scale(1); }
.popup-boite img {
    width: 100%;
    max-height: calc(100vh - 60px);
    max-height: calc(100svh - 60px);
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}
.popup-fermer {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--blanc);
    background: var(--dore-menu);
    color: var(--blanc);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.popup-fermer:hover { background: var(--cuivre-fonce); }
@media (max-width: 767px) {
    .popup-fermer { top: -12px; right: -8px; }
}

/* ==========================================================
   MENTIONS LÉGALES
   ========================================================== */
.entete-page { background: var(--noir); padding: 30px 20px; text-align: center; }
.entete-page-logo img { max-width: 220px; margin: 0 auto; }
.legal {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 50px 0 70px;
    color: #ddd;
    font-size: 15px;
}
.legal h1 { font-size: 40px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.3; margin-bottom: 25px; }
.legal h2 { font-size: 24px; text-transform: uppercase; color: var(--cuivre); margin: 35px 0 10px; line-height: 1.3; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; line-height: 1.3; }
.legal p { margin-bottom: 14px; }
.legal strong { color: var(--blanc); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
/* Le fond fixe ne fonctionne pas bien sur tablette et mobile */
@media (max-width: 1024px), (hover: none) {
    .parallax { background-attachment: scroll; }
}

@media (max-width: 980px) {
    .hero h1 { font-size: 60px; }
    .rangee { flex-direction: column; gap: 0; }
    .colonne { width: 100%; }
    .colonne + .colonne { margin-top: 40px; }
    .colonne:empty { display: none; }
    .galerie-menus .colonne + .colonne { margin-top: 30px; }
    .carte-logo img { max-width: 95%; }
    .infos-colonnes { flex-direction: column; }
    .infos-col { width: 100%; }
    .avis-liste { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .avis-carte { min-height: 0; }
}

@media (max-width: 767px) {
    .hero h1 { font-size: 40px; }
    .hero-sous-titre { margin-bottom: 60px; }
    .intro h2, .bandeau-titre h2, .infos-col h2 { font-size: 32px; }
    .bieres-boite h2 { font-size: 40px; }
    .bieres-boite { font-size: 20px; }
    .bloc-carte h3 { font-size: 23px; padding: 5px 12px 4px; }
    .bloc-carte p { font-size: 21px; }
    .infos-col { padding: 70px 10%; }
    .legal { width: 88%; }
    .legal h1 { font-size: 30px; }
    .btn-appel { width: 54px; height: 54px; right: 18px; bottom: 18px; }
    .btn-appel svg { width: 26px; height: 26px; }
    .btn-haut { bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-scroll, .btn-appel { animation: none; }
}
