/* Bang & Olufsen Genève — feuille de style
   Palette et règles : Monobrand Website Guidelines, Bang & Olufsen, juin 2026.

   TYPOGRAPHIE : « Bang & Olufsen Web Typography Styles » (avril 2023), appliqués ci-dessous
   (desktop > 1024 px, tablette 601-1024 px, mobile <= 600 px).

   POLICE : BeoSupreme, seule police autorisée par B&O. Bang & Olufsen a confirmé le 17.11.2026
   (à Alessandro Marangoni) disposer de la licence permettant son usage sur des sites internet.
   Fichiers WOFF générés à partir des polices OpenType fournies par B&O (assets/fonts/).
*/

@font-face { font-family: "BeoSupreme"; src: url("fonts/BeoSupreme-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "BeoSupreme"; src: url("fonts/BeoSupreme-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BeoSupreme"; src: url("fonts/BeoSupreme-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "BeoSupreme"; src: url("fonts/BeoSupreme-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --beoblack: #191817;
  --beowhite: #FCFAEE;
  --white: #FFFFFF;
  --grey-10: #766E68;
  --grey-8: #8B847E;
  --grey-5: #ACA69F;
  --grey-1: #D7D2CB;
  --grey-1-5: #EBE8E5;
  --grey-1-25: #F5F4F3;
  --font: "BeoSupreme", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: .2px;
  color: var(--beoblack);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* Titres et textes : valeurs desktop, puis tablette et mobile */
h1, h2, h3, h4 { font-weight: 500; margin: 0 0 .5em; }
h1 { font-size: 64px; line-height: 72px; letter-spacing: -.5px; }               /* H1 */
h2 { font-size: 48px; line-height: 64px; letter-spacing: -.5px; }               /* H2 */
h3, .h3 { font-size: 36px; line-height: 54px; letter-spacing: -.5px; }          /* H3 */
h4, .h4 { font-size: 24px; line-height: 36px; letter-spacing: 0; }              /* H4 */
.card__name, .cat-card h3 { font-size: 16px; line-height: 26px; letter-spacing: .2px; font-weight: 700; } /* B1.A */
p { margin: 0 0 1em; }
.lead { font-size: 24px; line-height: 36px; letter-spacing: .2px; font-weight: 400; max-width: 40em; } /* B2 */
.muted { color: var(--grey-10); }
.small { font-size: 12px; line-height: 20px; letter-spacing: .1px; }           /* B3 */
@media (max-width: 1024px) {
  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 36px; line-height: 48px; }
  h3, .h3 { font-size: 26px; line-height: 40px; }
  h4, .h4 { font-size: 22px; line-height: 32px; }
  .lead { font-size: 20px; line-height: 32px; }
}
@media (max-width: 600px) {
  h1 { font-size: 40px; line-height: 48px; }
  h2 { font-size: 32px; line-height: 42px; }
  h3, .h3 { font-size: 24px; line-height: 32px; }
  h4, .h4 { font-size: 18px; line-height: 28px; }
  .lead { font-size: 18px; line-height: 28px; }
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--beoblack); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--grey { background: var(--grey-1-25); }

/* Bandeau de version de travail (à retirer en production : DRAFT=False dans build.py) */
.draft { background: var(--grey-1-5); color: var(--grey-10); font-size: 12px; line-height: 18px; text-align: center; padding: 6px var(--gutter); }

/* Majuscules : sous-titres et menu uniquement, interlettrage d'au moins 18 % */
/* H5 « Headline extra small » : 14/24, 500, +1,7 px (soit plus de 18 % de 12 px en mobile) */
.caps { text-transform: uppercase; font-size: 14px; line-height: 24px; letter-spacing: 1.7px; font-weight: 500; }
@media (max-width: 1024px) { .caps { font-size: 12px; line-height: 20px; } }
@media (max-width: 600px) { .caps { letter-spacing: 1.5px; } }
/* Menu (H6, barre de navigation desktop) : petites capitales espacées */
.nav.caps { font-size: 12px; line-height: 20px; letter-spacing: 2px; }

/* En-tête : logo en haut à gauche, pas de panier */
.header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--grey-1-5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
/* Logo de magasin : logomark officiel B&O | lieu. Assemblage PROVISOIRE d'après l'exemple
   des guidelines (page « Logo use ») ; à remplacer par le gabarit du Knowledge Centre (Retail App),
   puis à faire valider par Brand Protection. */
.logo { --logo-h: 34px; display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .41); text-decoration: none; color: var(--beoblack); }
/* Proportions du modèle B&O « logomark | Location » (Brand identity > Third party lockups) :
   espaces 0,41 × hauteur du logomark, filet 0,53 ×, corps du texte 0,42 ×. */
.logo__mark { height: var(--logo-h); width: auto; }
.logo__loc { font-size: calc(var(--logo-h) * .42); line-height: 1; font-weight: 400; letter-spacing: .2px; padding-left: calc(var(--logo-h) * .41); border-left: 1px solid currentColor; height: calc(var(--logo-h) * .53); display: inline-flex; align-items: center; }
.logo--footer { color: var(--beowhite); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--beoblack); }
.lang { color: var(--grey-10); }
.lang a { color: var(--grey-10); }
.lang a[aria-current="true"] { color: var(--beoblack); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; cursor: pointer; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  display: block; width: 22px; height: 1px; background: var(--beoblack); position: relative; content: "";
}
.nav-btn span::before { position: absolute; top: -7px; }
.nav-btn span::after { position: absolute; top: 7px; }

@media (max-width: 1240px) {
  .nav-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--white); padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--grey-1-5);
  }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* Boutons : forme pilule, casse de titre, jamais en majuscules */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 500; text-decoration: none; text-transform: none;
  border: 1px solid var(--beoblack); transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--beoblack); color: var(--white); }
.btn--primary:hover { background: var(--grey-10); border-color: var(--grey-10); }
.btn--secondary { background: transparent; color: var(--beoblack); }
.btn--secondary:hover { background: var(--grey-1-5); }
.btn--white { background: var(--white); color: var(--beoblack); border-color: var(--white); }
.btn--white:hover { background: var(--grey-1-5); border-color: var(--grey-1-5); }
.btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Emplacements réservés aux visuels officiels (brand.bang-olufsen.com) */
.ph {
  position: relative; display: flex; align-items: flex-end; justify-content: flex-start;
  background: var(--grey-1); color: var(--grey-10); overflow: hidden;
}
.ph__label { font-size: 12px; line-height: 1.4; padding: 12px 14px; max-width: 28em; }
.ph--packshot { background: var(--grey-1-25); aspect-ratio: 4 / 5; }
/* Pack shots officiels : fond BeoGrey 1.25, image entière (ni recadrée ni déformée) */
.packshot { background: var(--grey-1-25); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 8%; }
.packshot img { width: 100%; height: 100%; object-fit: contain; }
/* Fichier sur fond blanc (sans transparence) : le blanc se fond dans le BeoGrey 1.25 */
.packshot--on-white img { mix-blend-mode: multiply; }
/* Visuel B&O cadré à fond perdu (produit coupé par le bord) : pas de marge, le bord de l'image = le bord du cadre */
.packshot--bleed { padding: 0; }
.ph--wide { aspect-ratio: 16 / 10; }

/* Hero : visuel de campagne de moins d'un an, affiché en entier (B&O interdit de recadrer
   ou d'étirer les visuels) ; texte sous l'image pour ne pas masquer les produits. */
.hero__img { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--grey-1-25); }
.hero__content { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(16px, 3vw, 32px); }
.hero h1 { max-width: 14em; }
.hero .lead { max-width: 30em; }

/* Grilles */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .grid--cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid--3 { grid-template-columns: 1fr; } .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } .card__name { font-size: 15px; } .card__price { font-size: 13px; } }

/* Cartes produit : pack shot sur BeoGrey 1.25, nom, prix « à partir de » */
.card { text-decoration: none; display: block; }
.card__media { position: relative; }
.card__body { padding: 14px 2px 0; }
.card__name { font-size: 17px; font-weight: 500; margin: 0 0 2px; }
.card__price { color: var(--grey-10); font-size: 15px; margin: 0; }
.card:hover .card__name { text-decoration: underline; text-underline-offset: 3px; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--beoblack); padding: 3px 10px; font-size: 12px; }

.cat-card .ph { aspect-ratio: 4 / 5; }
.cat-card h3 { margin-top: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.crumbs { font-size: 13px; color: var(--grey-10); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Fiche produit : prix + bouton de contact, pas de panier */
.product { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 112px); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product__price { font-size: 24px; font-weight: 500; margin: 8px 0 4px; }
.product__note { font-size: 13px; color: var(--grey-10); margin-bottom: 24px; }
.product .btns { flex-direction: column; align-items: stretch; max-width: 360px; }
.product__more { margin-top: 40px; }
details { border-top: 1px solid var(--grey-1); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--grey-1); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 14px 0; border-top: 1px solid var(--grey-1); }
.hours { border-collapse: collapse; }
.hours td { padding: 4px 24px 4px 0; vertical-align: top; }

.prose { max-width: 46em; }
.prose h2 { font-size: 24px; line-height: 36px; letter-spacing: 0; margin-top: 1.8em; }

/* Pied de page : BeoBlack, logo aligné à gauche, nom de la société en bas, discrètement */
.footer { background: var(--beoblack); color: var(--beowhite); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: 14px; }
.footer a { text-decoration: none; color: var(--beowhite); }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { font-size: 12px; margin-bottom: 14px; color: var(--grey-5); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer .hours td { padding: 2px 16px 2px 0; }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2c2a28; color: var(--grey-8); font-size: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__legal a { color: var(--grey-8); }

/* Photos (showroom local, visuel de campagne B&O) : image entière, sans recadrage, largeur contenue */
.photo { margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.photo img { display: block; width: 100%; height: auto; }
/* Coordonnées en clair sous les boutons e-mail : l'adresse reste lisible si la messagerie ne s'ouvre pas */
.contact-line { margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--grey-10); }
.contact-line a { color: inherit; }
.cat-card .packshot { margin: 0; }
.split--top { align-items: start; margin-top: clamp(32px, 5vw, 64px); }
.cta { margin-top: 32px; }
.cta + .contact-line { margin-top: 12px; }
.photo--wide { max-width: none; }
.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: end; margin: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
@media (max-width: 860px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Formulaire de contact */
.form { display: grid; gap: 16px; align-content: start; }
.form h2 { margin: 0 0 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; line-height: 24px; color: var(--beoblack); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; line-height: 24px; color: var(--beoblack); background: var(--white, #fff);
  border: 1px solid var(--grey-5, #ACA69F); border-radius: 4px; padding: 10px 12px; width: 100%; min-height: 44px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--beoblack); outline-offset: 2px; }
.form__note { font-size: 14px; line-height: 24px; color: var(--grey-10, #766E68); margin: 0; }
.form__note a { color: inherit; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { scroll-margin-top: 96px; }
.form .form__title { font-size: 24px; line-height: 36px; font-weight: 500; letter-spacing: 0; margin: 0 0 4px; }
.field textarea::placeholder, .field input::placeholder { font-family: inherit; color: var(--grey-10); }
