/* Le comptoir de Fred : feuille de style du site (écrite à la main, sans outil). */

/* Titres : Prata, comme sur les affiches des soirées (licence SIL OFL, voir assets/fonts/OFL.txt) */
@font-face { font-family: "Prata"; src: url("../fonts/prata-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
    --wine: #7a1c2b;        /* le rouge de la devanture */
    --wine-dark: #5c1420;
    --cream: #f7f2ea;
    --paper: #fffdf9;
    --ink: #2b211e;
    --muted: #6b5d57;
    --line: #e6dccf;
    --gold: #a8844f;
    --serif: "Prata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --cream-text: #f3e6d3;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wine); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.small { font-size: .875rem; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--wine); text-decoration: none; font: 400 1.2rem/1 var(--serif); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--ink); text-decoration: none; font-size: .98rem; white-space: nowrap; }
.menu a:hover { color: var(--wine); }
.top-phone { color: var(--paper); background: var(--wine); padding: 8px 14px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.top-phone:hover { background: var(--wine-dark); }
.phone-short { display: none; }

/* Boutons */
.button { display: inline-block; padding: 12px 20px; border: 1.5px solid var(--wine); border-radius: 4px; background: var(--wine); color: #fff; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.button-line { background: transparent; color: var(--wine); }
.button-line:hover { background: var(--wine); color: #fff; }

/* Affiches (présentation, soirées) : photo d'un côté, panneau bordeaux de l'autre, comme sur Facebook */
.poster { display: grid; background: var(--wine); color: var(--cream-text); }
.poster-photo { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.poster-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 44px 24px 52px; }
.poster h1, .poster h2 { color: var(--cream-text); margin: 0; }
.poster h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.label { margin: 0 0 22px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.label-soft { margin: 26px 0 0; font-weight: 600; line-height: 1.9; opacity: .85; }
.bar { display: block; width: 76px; height: 7px; margin: 30px auto; background: var(--cream-text); }
.poster-text { max-width: 30em; margin: 0 0 12px; font-size: 1.08rem; color: #ead8c4; }
.poster-address { margin: 0; font-size: 1.02rem; }
.poster-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.button-cream { background: var(--cream-text); border-color: var(--cream-text); color: var(--wine); }
.button-cream:hover { background: #fff; border-color: #fff; color: var(--wine-dark); }
.button-cream-line { background: transparent; border-color: var(--cream-text); color: var(--cream-text); }
.button-cream-line:hover { background: var(--cream-text); color: var(--wine); }
/* Soirées : la photo cadrée sur les verres */
.poster-flip .poster-photo { object-position: 55% 85%; }

/* Bandeau, comme les mots écrits sur la vitrine */
.shelf { background: var(--wine-dark); color: #f6e9e4; text-align: center; padding: 18px 0; font: 1.05rem/1.7 var(--serif); letter-spacing: .03em; }
.shelf p { margin: 0; }
.shelf span { color: #d8a9a3; padding: 0 .3em; }

/* Blocs cave / épicerie / cadeaux */
.block { padding: 64px 0; }
.block-flip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-inner { display: grid; gap: 28px; align-items: center; }
.block img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.block p { color: var(--muted); max-width: 34em; }

/* Nous trouver */
.visit { padding: 64px 0 72px; }
.visit-inner { display: grid; gap: 32px; }
.address { font: 600 1.15rem/1.5 var(--sans); margin-bottom: 12px; }
.contact a { color: var(--ink); }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: 8px; background: var(--paper); border: 1px solid var(--line); }
.hours caption { text-align: left; font: 600 1.2rem/1.2 var(--serif); padding: 0 0 10px; }
.hours th, .hours td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr:last-child > * { border-bottom: 0; }
.map { min-height: 340px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 6px; background: #eae4da; }

/* Pied de page */
.bottom { background: var(--ink); color: #d9cfc9; padding: 28px 0 32px; }
.bottom a { color: #fff; }
.bottom p { margin: 0 0 6px; }

/* Téléphone : le menu passe sous le nom */
@media (max-width: 759px) {
    .top-inner { padding-top: 10px; padding-bottom: 10px; gap: 10px 16px; }
    .menu { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
    .top-phone { margin-left: auto; }
    .brand span { font-size: 1.15rem; }
    .phone-long { display: none; }
    .menu-wide { display: none; }
    .menu { gap: 14px; }
    .menu a { font-size: .92rem; }
    .phone-short { display: inline; }
}

/* Ordinateur */
@media (min-width: 860px) {
    .poster { grid-template-columns: 1fr 1fr; min-height: 560px; }
    .poster-photo { aspect-ratio: auto; }
    .poster-flip .poster-photo { order: 2; }
    .poster-panel { padding: 64px 48px; }
    .block-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
    .block-flip .block-inner img { order: 2; }
    .visit-inner { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: stretch; }
}
