/* OBENIERE · nouveau design v2 : habillage des pages boutique (catalogue, fiches produit, services, informations)
   Principe : on garde la mise en page éprouvée de css/base.css (copie de nouveau-design) et on applique ici
   - la police des titres (Saira Condensed) et des boutons,
   - le bandeau d'infos, l'en-tête et le pied de page du nouveau design,
   - le bordeaux sur les boutons principaux, un fond clair en tête des pages de catégorie.
   Les couleurs sont celles de la marque (css/couleurs.css). */

:root {
  --display: "Saira Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --on-2: rgba(255, 255, 255, .74);
  --on-3: rgba(255, 255, 255, .52);
  --rule: rgba(255, 255, 255, .16);
  --pad: clamp(20px, 3.4vw, 50px); /* même marge latérale que l'accueil : en-tête, contenu et pied de page alignés */
}
html { overflow-x: hidden; }
body { border-top: 0; width: 100%; overflow-x: hidden; }

/* ── Titres : Saira Condensed en capitales ── */
h1, h2, .sec__title, .page-head h1 { font-family: var(--display); text-transform: uppercase; font-weight: 300; letter-spacing: .01em; line-height: 1.02; text-wrap: balance; }
.kick { margin: 0 0 14px; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-2); }

/* ── Boutons : mêmes que l'accueil (bordeaux, capitales Saira) ── */
.btn { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.btn--solid { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn--solid:hover { background: var(--navy); border-color: var(--navy); }

/* ── En-tête et filtres du catalogue ── */
#app .page-head {
  position: relative; isolation: isolate; max-width: none;
  background: #f4f6f9; color: var(--night); border-bottom: 1px solid #dce2eb;
  padding-bottom: 28px;
}
#app .page-head::before { content: none; }
#app .page-head .kick { color: var(--wine); }
#app .page-head :is(.crumbs, .bar__meta, .linkbtn, p:not(.kick)) { color: #465064; }
#app .page-head :is(.crumbs a, .linkbtn):hover { color: var(--navy); }
#app .page-head .bar { box-shadow: none; }
#app .page-head .bar__search input { background: var(--paper); }
#app .page-head .bar__search input:focus { border-color: var(--navy); }
#app .page-head .chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }

/* Le document reste à la largeur de l’écran ; seuls les rails internes défilent. */
#app { width: 100%; min-width: 0; max-width: 100%; background: var(--paper); }
#app > *, .grid > *, .versions__grid > *, .bar, .bar__row, .bar__f,
.hero__title, .hero__foot, .technical, .technical [role="tabpanel"] { min-width: 0; max-width: 100%; }
.grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid .card { width: 100%; min-width: 0; }
.card__btns .btn { white-space: normal; overflow-wrap: anywhere; }
.versions__grid, .svc-body { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.gallery, .gallery__track { width: 100%; min-width: 0; max-width: 100%; }
.gallery__track { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.technical { width: 100%; background: #fff; }
.technical__tabs { min-width: 0; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.technical [role="tabpanel"] { width: 100%; overflow-x: auto; }
.technical table { width: 100%; table-layout: fixed; background: #fff; }
.technical th, .technical td { overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); padding-inline: var(--pad); gap: 20px; }
  #app .page-head { padding: 28px var(--pad) 24px; }
  .page-head h1 { font-size: 32px; overflow-wrap: anywhere; }
  .page-head p { max-width: 100%; }
  .bar__row, .bar__row:first-child .bar__f { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .bar__search, .bar__f { width: 100%; min-width: 0; }
  .bar__search input, .bar__f select, .bar__row:first-child .bar__f select { min-width: 0; max-width: 100%; width: 100%; font-size: 16px; }
  .chips { min-width: 0; max-width: 100%; }
  .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.35; }
  .bar__meta { flex-wrap: wrap; gap: 12px; }
  .hero--reference > .ph { width: 100%; height: clamp(220px, 65vw, 320px); flex-basis: 100%; }
  .hero--reference .hero__title { flex: 0 0 100%; width: 100%; padding: 22px var(--pad) 16px; }
  .hero--reference .hero__foot { flex: 0 0 100%; width: 100%; padding: 0 var(--pad) 24px; justify-content: flex-start; }
  .hero--reference .hero__ctas { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero--reference .hero__ctas .btn { width: 100%; min-width: 0; min-height: 44px; white-space: normal; }
  .gallery__item { flex: 0 0 100%; height: 66vw; max-height: 360px; }
  .gallery__ctrl button.round { width: 44px; height: 44px; }
  .technical { padding: 28px var(--pad) 36px; }
  .technical > h2 { font-size: 30px; }
  .technical th, .technical td { padding: 12px 10px; font-size: 14px; line-height: 1.4; }
  .technical__tabs button { min-height: 44px; padding: 12px; }
  .pill { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: none; max-width: calc(100vw - 92px); }
  .pill a { display: grid; place-items: center; min-width: 76px; min-height: 38px; font-size: 12px; padding: 5px 10px; white-space: normal; text-align: center; }
  .is-product .wafloat { right: 14px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .is-product #app { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Bouton « Partager cette fiche sur WhatsApp », sous le titre de la fiche produit. */
.share-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 0; min-height: 44px; font: inherit; font-size: 14px; font-weight: 600; color: inherit; background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.share-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-link:hover { opacity: .7; }

/* Pagination du catalogue (12 produits par page). */
.pager { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.pager__b { min-width: 44px; height: 44px; padding: 0 14px; font: inherit; font-weight: 600; color: var(--night, #0b1633); background: #fff; border: 1px solid #c9d1de; border-radius: 0; cursor: pointer; }
.pager__b:hover { border-color: var(--wine, #7a0c16); color: var(--wine, #7a0c16); }
.pager__b[aria-current="page"] { background: var(--wine, #7a0c16); border-color: var(--wine, #7a0c16); color: #fff; cursor: default; }
.pager__b:focus-visible { outline: 2px solid var(--navy, #12306b); outline-offset: 2px; }
.pager__gap { min-width: 24px; text-align: center; color: #566278; }
@media (max-width: 480px) { .pager { gap: 6px; } .pager__b { min-width: 40px; height: 44px; padding: 0 10px; } }

/* « Tout pour rouler et construire » : cartes des quatre univers, en bas de chaque fiche produit. */
.univ { padding: clamp(44px, 5.8vw, 76px) var(--pad); background: #f4f6f9; color: var(--night, #0b1633); }
.univ__kick { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine, #7a0c16); }
.univ__title { margin: 0 0 28px; font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4vw, 56px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.univ__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.univ__card { position: relative; display: block; min-height: clamp(260px, 26vw, 380px); overflow: hidden; isolation: isolate; background: var(--night, #0b1633); color: #fff; text-decoration: none; }
.univ__card img, .univ__ph { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.univ__card img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.univ__ph { background: linear-gradient(135deg, var(--night, #0b1633), var(--navy, #12306b)); }
.univ__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 22, 51, .15) 0%, rgba(11, 22, 51, .55) 45%, rgba(10, 10, 10, .94) 100%); }
.univ__card:hover img { transform: scale(1.06); }
.univ__txt { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 22px; }
.univ__txt b { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.univ__txt small { font-size: 14px; color: rgba(255, 255, 255, .86); line-height: 1.4; }
.univ__txt i { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-style: normal; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.univ__txt i .arr { transition: transform .2s; }
.univ__card:hover .univ__txt i .arr { transform: translateX(5px); }
@media (max-width: 1000px) { .univ__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .univ__grid { grid-template-columns: minmax(0, 1fr); } .univ__card { min-height: 220px; } }

/* Choix de la couleur posé sur l'image du haut de la fiche produit (la photo change avec la pastille). */
.hero--reference > .ph .hero__colors { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 8px 18px; background: rgba(255, 255, 255, .94); border-radius: 999px; box-shadow: 0 8px 24px rgba(11, 22, 51, .2); }
.hero__colors .swatches { margin: 0; gap: 8px; flex-wrap: nowrap; justify-content: flex-start; }
.hero__colors .sw { flex: 0 0 auto; width: 38px; height: 38px; padding: 3px; }
.hero__colors b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--night, #0b1633); white-space: nowrap; }
.hero--reference > .ph--cut { background: radial-gradient(70% 60% at 50% 60%, #ffffff 0%, #e9edf5 60%, #dde3ee 100%); }
.hero--reference > .ph--cut::before, .hero--reference > .ph--cut::after { display: none; }
.hero--reference > .ph--cut > img { object-fit: contain; padding: 3% 4% 9%; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .22)); transition: opacity .25s; }
.model--slim { padding-top: clamp(28px, 4vw, 56px); }
.model--slim h2 { margin: 0 0 6px; }
@media (max-width: 560px) { .hero--reference > .ph .hero__colors { gap: 10px; padding: 6px 12px; bottom: 10px; } .hero__colors .sw { width: 32px; height: 32px; } .hero__colors b { font-size: 14px; } }

/* Bouton « Commander » au niveau du prix, et image du haut dimensionnée pour que prix et boutons soient visibles dès l'arrivée. */
.hero--reference .hero__ctas .hero__order { background: var(--wine, #7a0c16); border-color: var(--wine, #7a0c16); color: #fff; }
.hero--reference .hero__ctas .hero__order:hover { background: #fff; color: var(--wine, #7a0c16); }
@media (min-width: 861px) { .hero--reference > .ph { height: clamp(300px, min(43.5vw, calc(100svh - 300px)), 670px); } }

/* Lien « Une pièce à trouver ? » sous le titre du bloc « Tout pour rouler et construire ». */
.univ__find { display: inline-flex; align-items: flex-start; gap: 10px; max-width: 100%; margin: -14px 0 24px; padding: 8px 0; min-height: 44px; font: inherit; font-size: 14px; line-height: 1.35; color: var(--wine, #7a0c16); text-align: left; background: none; border: 0; cursor: pointer; }
.univ__find .arr { flex: 0 0 auto; margin-top: 2px; transition: transform .2s; }
.univ__find:hover .arr { transform: translateX(4px); }
.univ__find:focus-visible { outline: 2px solid var(--navy, #12306b); outline-offset: 2px; }

/* Aperçu de la fiche technique téléchargée. */
.spec-sheet { max-width: 960px; margin: clamp(36px, 6vw, 80px) auto; padding: 0 var(--pad); }
.spec-sheet__version { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0; }
.spec-sheet__version select { max-width: 100%; min-height: 44px; padding: 8px 12px; color: inherit; background: #fff; border: 1px solid var(--line, #e4e4e2); font: inherit; }
.spec-sheet__paper { margin-top: 16px; padding: clamp(14px, 3vw, 30px); background: #fff; border: 1px solid var(--line, #e4e4e2); box-shadow: 0 6px 22px #0b163312; }
.spec-sheet__head { display: grid; gap: 3px; margin-bottom: 14px; color: var(--night, #0b1633); overflow-wrap: anywhere; }
.spec-sheet__head strong { font: 600 clamp(19px, 3vw, 26px)/1.2 var(--display); }
.spec-sheet__paper table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: clamp(13px, 2vw, 15px); }
.spec-sheet__paper td, .spec-sheet__paper th { border: 1px solid var(--line, #e4e4e2); padding: 6px 10px; text-align: left; overflow-wrap: anywhere; }
.spec-sheet__paper thead th { background: var(--wine, #7a0c16); color: white; }
.spec-sheet__paper tbody tr:nth-child(even) { background: var(--mist, #f5f5f4); }
.spec-sheet__logo { display: block; width: 112px; height: 48px; object-fit: contain; margin: 14px auto 0; }
.spec-sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.spec-sheet__actions .btn { min-height: 44px; }
.spec-sheet__status:empty { display: none; }

.spec-equipment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.spec-equipment li { border: 1px solid var(--line, #e4e4e2); padding: 6px 10px; overflow-wrap: anywhere; }

.customs-request { max-width: 780px; margin: 42px auto; padding: 0 var(--pad); scroll-margin-top: 110px; }
.customs-request .form { margin-top: 20px; }
.customs-request .form p { margin: 0; }
.customs-request [data-customs-status]:empty { display: none; }
.customs-product-link { margin: 24px var(--pad); }
.customs-product-link a { color: var(--wine, #7a0c16); text-decoration: underline; }
.is-customs .wafloat, .is-customs #footer .place--cta { display: none; }

.customs-request fieldset { min-width: 0; margin: 6px 0; padding: 14px; border: 1px solid var(--line, #e4e4e2); }
.customs-request legend { padding: 0 6px; color: var(--night, #0b1633); font-weight: 600; }
.customs-request__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.customs-request input { min-width: 0; }

.customs-request [data-customs-whatsapp][hidden] { display: none; }

.customs-gallery { max-width: 1240px; margin: 42px auto; padding: 0 var(--pad); }
.customs-gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 20px; }
.customs-gallery figure { margin: 0; border: 1px solid var(--line, #e4e4e2); }
.customs-gallery figure a { display: block; background: var(--mist, #f5f5f4); }
.customs-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.customs-gallery figcaption { padding: 10px 12px; overflow-wrap: anywhere; }

.customs-gallery__video { display: block; width: 100%; max-width: 780px; margin-top: 20px; aspect-ratio: 16 / 9; background: var(--night, #0b1633); }
