/* ============================================
   FollowBrew — Vitrine publique (followbrew.fr/bieres)
   Inspirée des étiquettes Tag : fond noir, Gazzetta condensée, une couleur par bière.
   ============================================ */

/* Police : Barlow Condensed (Google Fonts, libre pour le web), très proche de la Gazzetta des étiquettes.
   La Gazzetta n'est pas chargée tant que sa licence web n'est pas confirmée (choix du 29/11/2026). */

.vt-body {
    --vt-font: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    margin: 0; background: #0b0b0b; color: #ffffff;
    font-family: var(--vt-font); font-weight: 400; font-size: 18px; line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}
.vt-body a { color: #ffffff; }
.vt-body a:hover { color: #d0d0d0; }
.vt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.vt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── En-tête ── */
.vt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 24px; }
.vt-logo { display: block; width: 150px; height: auto; margin-bottom: 10px; }
.vt-title { margin: 0; font-weight: 800; font-size: clamp(54px, 9vw, 104px); line-height: 0.9; text-transform: uppercase; letter-spacing: 0.005em; }
.vt-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; font-size: 22px; }
.vt-insta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.vt-updated { font-size: 16px; color: #b8b8b8; }

/* ── Sections ── */
.vt-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; border-top: 2px solid #ffffff; padding-top: 12px; margin: 0 0 22px; }
.vt-section-head h2 { margin: 0; font-weight: 800; font-size: 36px; text-transform: uppercase; letter-spacing: 0.02em; }
.vt-section-head span { font-size: 20px; color: #b8b8b8; }
.vt-main { display: flex; flex-direction: column; gap: 48px; padding-bottom: 32px; }
.vt-list { display: flex; flex-direction: column; gap: 32px; }
.vt-empty { font-size: 22px; color: #d0d0d0; }

/* ── Carte d'une bière (format étiquette) ── */
.vt-card { --vt-accent: #f5a03a; display: flex; flex-wrap: wrap; background: #000000; border: 1px solid #262626; color: #ffffff; font-family: var(--vt-font, 'Barlow Condensed', 'Arial Narrow', sans-serif); }
.vt-media { flex: 1 1 520px; position: relative; min-height: 360px; overflow: hidden; background: #000000; }
.vt-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-bw { filter: grayscale(1) contrast(1.08); }
.vt-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.vt-swoosh path { fill: none; stroke: var(--vt-accent); stroke-width: 34; stroke-linecap: round; }
/* Fond automatique : le cœur du logo agrandi (SVG + filtre d'épaisseur), sous le nom */
.vt-logo-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.vt-auto-name { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
    font-weight: 800; font-size: clamp(64px, 11vw, 150px); line-height: 0.9; text-transform: uppercase; text-shadow: 6px 6px 0 #000000; }
/* Nom vertical : taille réglable (--vt-vname-size, colonne élargie en conséquence)
   et hauteur réglable (--vt-vname-y : 0 = en haut, 1 = en bas) via deux espaces élastiques au-dessus et en dessous */
.vt-vname { flex: 0 0 calc(var(--vt-vname-size, 82px) * 1.17); display: flex; flex-direction: column; align-items: center; padding: 24px 0; box-sizing: border-box; }
.vt-vname::before { content: ''; flex: var(--vt-vname-y, 0.5) 1 0; }
.vt-vname::after { content: ''; flex: calc(1 - var(--vt-vname-y, 0.5)) 1 0; }
.vt-vname span { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: var(--vt-vname-size, 82px); line-height: 1; color: var(--vt-accent); text-transform: uppercase; white-space: nowrap; }
.vt-info { flex: 1 1 360px; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; min-width: 0; }
.vt-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.vt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vt-hops { margin: 0; font-size: 28px; line-height: 1.05; font-weight: 800; text-transform: uppercase; }
.vt-batch { flex: none; border: 1px solid #ffffff; padding: 6px 12px; font-size: 17px; line-height: 1.15; text-align: center; }
.vt-desc { margin: 0; font-size: 20px; line-height: 1.3; color: #e8e8e8; font-weight: 300; }
.vt-gauges { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.vt-gauge { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 17px; }
.vt-gauge dt span { color: #b8b8b8; font-weight: 300; }
.vt-gauge dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 12px; }
.vt-bar { height: 14px; border: 1.5px solid #ffffff; position: relative; display: block; }
.vt-bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--vt-accent); }
.vt-val { text-align: right; }
.vt-formats { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.vt-formats-title { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: #b8b8b8; }
.vt-formats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vt-formats li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1.5px solid var(--vt-accent); min-width: 120px; }
.vt-formats li strong { font-size: 19px; font-weight: 800; }
.vt-formats li > span { font-size: 16px; }
.vt-ok { color: #9fe0a8; }
.vt-few { color: #ffd27a; }

/* Mode « Ma cave » : un état (« En cave » / « Presque plus ») et les formats, sans prix ni quantités */
.vt-tagline { margin: 10px 0 0; font-size: 24px; color: #d9d9d9; font-weight: 300; }
.vt-formats.vt-cave { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.vt-state { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--vt-accent); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.vt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.vt-dot-ok { background: #9fe0a8; }
.vt-dot-few { background: #ffd27a; }
.vt-cave-formats { font-size: 18px; color: #d0d0d0; }
/* Lien privé : petit rappel en haut de la page */
.vt-private-note { text-align: center; padding: 8px 16px; font-size: 16px; color: #ffd27a; border-bottom: 1px solid #3a3320; }

/* Étiquette importée : elle porte déjà nom, houblons, description, jauges et brassin.
   Affichée en grand sur toute la largeur, suivie d'un simple bandeau formats / prix / stock (sans doublon). */
.vt-visual-etiquette .vt-media { flex: 1 1 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.vt-label-img { display: block; width: 100%; height: auto; }
.vt-visual-etiquette .vt-vname { display: none; }
.vt-visual-etiquette .vt-info { flex: 1 1 100%; padding: 16px 24px 18px; gap: 0; border-top: 1px solid #262626; }
.vt-visual-etiquette .vt-formats { margin-top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.vt-visual-etiquette .vt-formats-title { flex: none; }
.vt-visual-etiquette .vt-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Bientôt ── */
.vt-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.vt-soon li { display: flex; gap: 14px; border: 1px solid #262626; padding: 14px; }
.vt-soon-bar { flex: 0 0 8px; background: var(--vt-accent); }
.vt-soon-name { display: block; font-weight: 800; font-size: 32px; line-height: 1; color: var(--vt-accent); text-transform: uppercase; }
.vt-soon-hops { display: block; font-size: 18px; font-weight: 800; text-transform: uppercase; margin-top: 4px; }
.vt-soon-meta { display: block; font-size: 16px; color: #d0d0d0; margin-top: 2px; }

/* ── Commander ── */
.vt-order { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: #ffffff; color: #000000; padding: 28px 32px; }
.vt-order-title { display: block; font-weight: 800; font-size: 42px; line-height: 1; text-transform: uppercase; }
.vt-order-text { display: block; font-size: 20px; margin-top: 4px; }
.vt-order-links { display: flex; flex-wrap: wrap; gap: 12px; }
.vt-body .vt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font-size: 20px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.vt-body .vt-btn-dark { background: #000000; color: #ffffff; }
.vt-body .vt-btn-dark:hover { background: #262626; color: #ffffff; }
.vt-body .vt-btn-line { border: 2px solid #000000; color: #000000; }
.vt-body .vt-btn-line:hover { background: #000000; color: #ffffff; }

.vt-foot { padding-top: 8px; padding-bottom: 40px; font-size: 15px; color: #a8a8a8; }

/* Aperçu d'une page hors ligne (visible seulement par la personne connectée) */
.vt-preview-banner { background: #ffd27a; color: #1f1a0a; text-align: center; padding: 10px 16px; font-size: 18px; font-weight: 800; }
.vt-body .vt-preview-banner a { color: #1f1a0a; text-decoration: underline; }

/* ── Téléphone ── */
@media (max-width: 720px) {
    .vt-wrap { padding: 0 16px; }
    .vt-head { padding-top: 24px; }
    .vt-logo { width: 100px; }
    .vt-head-side { align-items: flex-start; text-align: left; font-size: 18px; }
    .vt-media { flex-basis: 100%; min-height: 230px; }
    .vt-vname { display: none; }
    .vt-name { position: static; width: auto; height: auto; clip: auto; white-space: normal; font-weight: 800; font-size: 54px; line-height: 1; color: var(--vt-accent); text-transform: uppercase; }
    .vt-visual-auto .vt-name { display: none; }
    .vt-info { flex-basis: 100%; padding: 18px 16px 20px; gap: 14px; }
    .vt-hops { font-size: 22px; }
    .vt-desc { font-size: 17px; }
    .vt-gauge { grid-template-columns: 92px minmax(0, 1fr); font-size: 15px; gap: 8px; }
    .vt-gauge dd { grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; }
    .vt-formats ul { flex-direction: column; width: 100%; }
    .vt-visual-etiquette .vt-info { padding: 14px 16px 16px; }
    .vt-visual-etiquette .vt-formats { flex-direction: column; align-items: stretch; }
    .vt-formats li { flex-direction: row; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; }
    .vt-section-head h2 { font-size: 28px; }
    .vt-order { padding: 20px 16px; }
    .vt-order-title { font-size: 32px; }
    .vt-order-links, .vt-body .vt-btn { width: 100%; }
}
