/* ---------- Design tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-inverse: #ffffff;
  --color-border: #e9e9e9;
  --color-placeholder: #d9d9d9;
  --color-card-grad-start: rgb(247, 247, 247);
  --color-card-grad-end: rgb(240, 240, 240);
  --color-btn-bg: #fefefe;

  /* Heebo (loaded on Hebrew pages only): Lexend Tera and Google Sans Flex have no Hebrew letters */
  --font-display: 'Lexend Tera', 'Heebo', sans-serif;
  --font-body: 'Google Sans Flex', 'Heebo', 'Inter', -apple-system, sans-serif;

  --container-max: 1440px;
  --gutter: 40px;
  --gap: 20px;

  --section-spacing: 100px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
html, body { overflow-x: clip; }
body.nav-open-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
/* Headings that replaced plain text keep its look (sizes set by their own classes below) */
.product-heading, .about-hero-brand, .contact-sent-title, .hero-title { font: inherit; }
.product-heading { min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container {
  max-width: var(--container-max);
  margin-inline-start: auto;
  margin-inline-end: auto;
  padding: 0 var(--gutter);
}

.center { text-align: center; }

.link-underline {
  position: relative;
  text-decoration: none;
  padding-bottom: 3px;
}

/* Always-underlined links: the line retracts and redraws on hover */
.link-underline::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}

.link-underline:hover::after,
.collection-tile:hover .link-underline::after {
  animation: underline-redraw 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes underline-redraw {
  0%      { transform: scaleX(1); transform-origin: right; }
  49%     { transform: scaleX(0); transform-origin: right; }
  51%     { transform: scaleX(0); transform-origin: left; }
  100%    { transform: scaleX(1); transform-origin: left; }
}

/* Plain nav-style links: no underline until hovered, text width only */
:is(.nav-left > a, .nav-right > a, .nav-label, .footer-col a, .mobile-nav a, .nav-underline):not(.link-underline, .btn-primary) {
  position: relative;
  transition: color 0.25s ease;
}

:is(.nav-left > a, .nav-right > a, .nav-label, .footer-col a, .mobile-nav a, .nav-underline):not(.link-underline, .btn-primary)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

:is(.nav-left > a, .nav-right > a, .footer-col a, .mobile-nav a, .nav-underline):not(.link-underline, .btn-primary):hover::after,
.nav-dropdown-trigger:hover .nav-label::after,
.nav-dropdown:hover .nav-label::after,
.nav-dropdown.open .nav-label::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 1px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-text-inverse);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes media-settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* Scroll reveal (delay is set per element from JS) */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.section-title {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
}

main > section {
  margin-top: var(--section-spacing);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  justify-self: center;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 18px;
}

.nav-left { justify-self: start; }
.nav-right { justify-self: end; }

/* Language and currency, after the appointment link */
.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline-start: 8px;
  font-size: 15px;
}
.header-tools .nav-dropdown-trigger { font-size: 15px; }
.header-tools .nav-dropdown-menu { inset-inline-start: auto; inset-inline-end: 0; min-width: 130px; }
/* Header items never wrap; between the phone menu and wide screens the header gets tighter */
.nav > a, .nav-dropdown-trigger, .header-tools { white-space: nowrap; }

.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
}

.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .chevron,
.nav-dropdown:has(.nav-dropdown-trigger:focus-visible) .chevron { transform: rotate(180deg); }

@media (hover: hover) {
  .nav-dropdown:hover .chevron { transform: rotate(180deg); }
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  min-width: 200px;
  background: var(--color-bg);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  /* closing: fade out first, then hide (visibility flips after the fade) */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

/* Invisible bridge so the pointer can travel from the label to the menu without closing it */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: -12px;
  height: 12px;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:has(.nav-dropdown-trigger:focus-visible) .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
}

.nav-dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 15px;
}

.nav-dropdown-menu li a { transition: background-color 0.2s ease, padding-inline-start 0.2s ease; }

.nav-dropdown-menu li a:hover { background: var(--color-card-grad-start); padding-inline-start: 26px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 24px;
  height: 24px;
}

.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.3s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-bg);
  padding: 90px 24px 40px;
  overflow-y: auto;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 61;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  font-size: 28px;
  line-height: 1;
  width: 32px;
  height: 32px;
}

.mobile-nav-primary,
.mobile-nav-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.mobile-nav-primary a {
  padding: 6px 0;
  font-size: 22px;
}

.mobile-nav-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-nav-group a {
  padding: 6px 0;
  font-size: 17px;
}

.mobile-nav-group-title {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.site-header .mobile-nav .mobile-nav-primary a::after,
.site-header .mobile-nav .mobile-nav-group a::after { bottom: 2px; }

.mobile-nav-cta {
  align-self: stretch;
  margin-top: 36px;
}

/* ---------- Hero (slider: slides fade into each other, the active bar fills over --hero-duration) ---------- */
.hero { margin-top: 40px; }

.hero-stage {
  position: relative;
  aspect-ratio: 1360 / 740;
  overflow: hidden;
  background: var(--color-placeholder);
  color: var(--color-text-inverse);
  animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide.is-active > img { animation: media-settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Keeps the white text readable on lighter photos */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 50%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  inset-inline-start: 47px;
  inset-inline-end: 340px;
  bottom: 55px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-subtitle { margin-top: 12px; font-size: 22px; line-height: 1.3; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  font-size: 16px;
}

.hero-bars {
  position: absolute;
  inset-inline-end: 58px;
  bottom: 41px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

/* 4 px bar inside a taller button, easier to click */
.hero-bar { width: 82px; padding: 10px 0; }

.hero-bar span {
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.hero-bar span::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--color-text-inverse);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-bar.is-active span::after { animation: hero-progress var(--hero-duration, 6s) linear forwards; }

.hero-stage:has(:focus-visible) .hero-bar span::after { animation-play-state: paused; }

@keyframes hero-progress { to { transform: none; } }

/* ---------- Catalogue / product grid ---------- */
/* min-width: 0 so a long watch name never widens its grid column */
/* Figma card: 325 × 525, photo on the gradient, white panel inset 16 px at the bottom */
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-card-grad-start) 0%, var(--color-card-grad-end) 106%);
  transition: box-shadow 0.3s ease;
}

/* Image area is a percentage of the card width so it scales with 4 or 2 columns */
.product-card-media {
  position: relative;
  aspect-ratio: 325 / 377;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14.15%;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); }
.product-card:hover .product-card-media img { transform: scale(1.06); }

.product-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0 16px 16px;
  padding: 16px 16px 11px;
  background: var(--color-bg);
  font-size: 12px;
  line-height: normal;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  text-transform: uppercase;
}

.product-brand { min-width: 0; font-size: 14px; }
.product-state { flex-shrink: 0; }
.product-heading { margin-top: 4px; }
.product-year { margin-top: 4px; }

.product-row {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 0.5px solid var(--color-text);
}

.product-price.product-price-status { font-size: 11px; }
.product-more { font-size: 14px; }

.catalogue .archive-grid { margin-top: 0; }
.catalogue .center { margin-top: 60px; font-size: 18px; }

/* ---------- Archive page (Nos montres) ---------- */
main > .archive-head {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
  align-items: start;
  line-height: normal;
}

.archive-title {
  font-size: 24px;
  font-weight: 400;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.archive-intro {
  margin-top: 5px;
  font-size: 16px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.archive-intro .link-underline { padding-bottom: 0; }

main > .archive { margin-top: 56px; }

.archive-toolbar {
  position: relative;
  z-index: 5; /* keep the filter menus above the product cards */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

.archive-filters {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 20px;
}

.archive-filters .nav-dropdown-trigger { font-size: 20px; padding: 0; }

.grid-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-toggle-btn {
  display: block;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 0;
}

.grid-toggle-btn rect {
  fill: #f5f5f5;
  stroke: var(--color-border);
  stroke-width: 0.6;
  transition: fill 0.25s ease;
}

.grid-toggle-btn:hover rect { fill: var(--color-placeholder); }
.grid-toggle-btn.is-active rect { fill: #292929; }
.grid-toggle-btn.is-active:hover rect { fill: #292929; }

.grid-toggle-btn:focus-visible { outline: 1px solid var(--color-text); outline-offset: 2px; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px var(--gap);
  margin-top: 52px;
}

.archive-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }

.nav-dropdown-menu li a[aria-current] { background: var(--color-card-grad-end); }

/* Reserved / sold watches show their status instead of the price */
.product-price-status { text-transform: uppercase; font-size: 0.8em; letter-spacing: 0.04em; }

/* ... and a large black badge centred on the photo (the photo itself stays untouched) */
.product-badges {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  z-index: 1;
  display: flex;
  gap: 6px;
}

/* Nouveauté on the right, Neuf (slightly larger) on the left */
.product-badge--new { margin-inline-start: auto; order: 1; }
.product-badge--brand-new { font-size: 12px; }

.product-badge {
  padding: 9px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1px;
  font-size: 11px;
  line-height: normal;
  text-transform: uppercase;
}

/* Beats the card image rules (auto width, hover zoom) */
.product-card-media img.product-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 60%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.product-card:hover .product-card-media img.product-watermark { transform: translate(-50%, -50%); }

/* Same scale as in Figma: the VENDU file is 183 px wide, RÉSERVÉE 226 px */
.product-card-media img.product-watermark-sold { width: 48.6%; }

/* Brand and watch name on one line */
.product-heading .product-name { display: block; }
.product-brand, .product-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.archive-more {
  margin-top: 60px;
  font-size: 18px;
  text-align: center;
}

/* Pre-footer: request a watch that is not in the catalogue */
.archive-cta-section { margin-top: var(--section-spacing); }
.archive-cta {
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-card-grad-start) 0%, var(--color-card-grad-end) 106%);
}
.archive-cta-title { font-size: 24px; font-weight: 400; }
.archive-cta p { max-width: 560px; font-size: 18px; line-height: 1.5; white-space: pre-line; }
.archive-cta .link-underline { font-size: 18px; }

.archive-more.is-loading { opacity: 0.4; pointer-events: none; }

.archive-empty {
  margin-top: 52px;
  padding: 80px 0;
  font-size: 18px;
  text-align: center;
}

/* ---------- Product page ---------- */
main > .product-detail {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  align-items: center;
  line-height: normal;
}

.product-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 669 / 770;
  background: #f5f5f5;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.product-gallery img {
  width: 65.3%;
  height: auto;
  animation: media-settle 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-gallery:hover img { transform: scale(1.04); }

.product-info {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.info-label {
  font-size: 14px;
  text-transform: uppercase;
}

.product-title {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 400;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 171px);
  row-gap: 42px;
  margin: 0;
}

.product-specs dd {
  margin: 10px 0 0;
  font-size: 24px;
}

.product-price-lg { font-size: 32px; }

.product-ctas {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
}

.wa-icon { margin-inline-end: 0.4em; vertical-align: -0.1em; }

.product-cta {
  display: inline-block;
  margin-top: 11px;
  font-size: 24px;
}

.related .section-title { line-height: normal; }
.br-mobile { display: none; }

.product-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}


.product-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-thumb {
  flex: 0 0 auto;
  width: 88px;
  aspect-ratio: 669 / 770;
  padding: 6px;
  border: 1px solid var(--color-border);
  background: #f5f5f5;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb:hover, .product-thumb.is-active { opacity: 1; }
.product-thumb.is-active { border-color: var(--color-text); }
.product-thumb:focus-visible { outline: 1px solid var(--color-text); outline-offset: 2px; }

/* Cut-out photos sit on #f6f6f6: "darken" lets the card or gallery background show through
   that flat backdrop, so no rectangle appears on the #f7f7f7 → #f0f0f0 gradient */
.product-card-media img.is-cutout,
.product-gallery img.is-cutout,
.product-thumb img.is-cutout { mix-blend-mode: darken; }

/* ---------- About page ---------- */
main > .about-hero { margin-top: 26px; }

.about-hero-inner {
  position: relative;
  aspect-ratio: 1360 / 740;
  overflow: hidden;
  background: #3c0d0d;
  color: var(--color-text-inverse);
  font-size: 16px;
  line-height: normal;
  text-transform: uppercase;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.about-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: media-settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.about-hero-brand,
.about-hero-address,
.about-hero-rating {
  position: absolute;
  animation: fade-in 0.9s ease 0.5s both;
}

.about-hero-brand { top: 29px; inset-inline-start: 35px; }
.about-hero-address { bottom: 30px; inset-inline-start: 35px; }

.about-hero-rating {
  inset-inline-end: 35px;
  bottom: 29px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-hero-rating img { width: 110px; height: 22px; }

/* One to three cards (a card with an empty title is hidden in the back-office): always a third wide, centred */
.services-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  justify-content: center;
  gap: var(--gap);
}

.service-card {
  --overlay: 0.25;
  --overlay-hover: 0.4;
  position: relative;
  display: block;
  aspect-ratio: 440 / 508;
  overflow: hidden;
  background: #000;
  color: var(--color-text-inverse);
  line-height: normal;
}

.service-card-buy { --overlay: 0.4; --overlay-hover: 0.55; }

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-card-buy img { object-position: 50% 0%; }
.service-card-resell img { object-position: 47% 42%; }
.service-card-revision img { object-position: 50% 50%; }

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--overlay);
  transition: opacity 0.4s ease;
}

.service-card:hover img { transform: scale(1.06); }
.service-card:hover::after { opacity: var(--overlay-hover); }

.service-card-content {
  position: absolute;
  z-index: 1;
  inset-inline-start: 18px;
  inset-inline-end: 31px;
  bottom: 37px;
}

.service-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
}

.service-card-content p {
  margin-top: 6px;
  font-size: 16px;
}

.founder-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  align-items: center;
  line-height: normal;
}

.founder-photo {
  aspect-ratio: 670 / 740;
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% 21%;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.founder-photo:hover img { transform: scale(1.03); }

.founder-text {
  max-width: 669px;
  font-size: 24px;
}

.founder-text p + p { margin-top: 28px; }

/* ---------- Service pages (révision / vente / rachat template) ---------- */
main > .service-hero {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
  align-items: start;
  line-height: normal;
}

.service-hero-text {
  /* Follows the scroll along the whole height of the hero picture, then stops with it */
  position: sticky;
  top: 88px;
  padding-top: 31px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.service-title {
  font-size: 32px;
  font-weight: 400;
  text-transform: capitalize;
}

.service-hero-text p {
  white-space: pre-line;
  max-width: 668px;
  margin-top: 59px;
  font-size: 16px;
}

.service-hero-cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 18px;
}

.service-hero-media {
  aspect-ratio: 670 / 740;
  overflow: hidden;
  background: var(--color-placeholder);
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: media-settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* One wide picture cut into four tiles: each tile shows its own slice of the same image */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.service-strip-tile {
  position: relative;
  aspect-ratio: 325 / 374;
  overflow: hidden;
  background: #e2e2e2;
}

.service-strip-tile img {
  position: absolute;
  top: calc(50% + 9.2%);
  left: calc(var(--i) * (-100% - var(--gap)));
  width: calc(400% + 3 * var(--gap));
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  transition: filter 0.5s ease;
}

.service-strip-tile:hover img { filter: brightness(0.94); }

.service-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
  align-items: start;
}

.service-steps-media {
  position: sticky;
  top: 112px;
  aspect-ratio: 670 / 740;
  overflow: hidden;
}

.service-steps-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acc-item {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
  line-height: normal;
}

.acc-head { margin: 0; font-weight: 400; }

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  text-align: start;
  font-size: 24px;
  text-transform: uppercase;
}

.acc-trigger span { transition: opacity 0.25s ease; }
.acc-trigger:hover span { opacity: 0.6; }
.acc-trigger:focus-visible { outline: 1px solid var(--color-text); outline-offset: 6px; }

.acc-trigger .chevron { flex: none; }
.acc-item.is-open .chevron { transform: rotate(180deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.acc-panel-inner {
  min-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.acc-panel-inner p {
  white-space: pre-line;
  padding-top: 58px;
  font-size: 20px;
}

.acc-item:not(.is-open) .acc-panel { grid-template-rows: 0fr; }

.acc-item:not(.is-open) .acc-panel-inner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.45s;
}

.service-cta {
  text-align: center;
  font-size: 24px;
}

/* ---------- Contact page ---------- */
main > .contact {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
  align-items: start;
  line-height: normal;
}

.contact-body {
  position: relative;
  z-index: 2; /* the calendar opens over the footer */
  padding-top: 31px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.contact-title {
  font-size: 32px;
  font-weight: 400;
  text-transform: capitalize;
}

.contact-lead {
  max-width: 668px;
  margin-top: 11px;
  font-size: 16px;
}

.contact-lead-form {
  max-width: 607px;
  margin-top: 56px;
}

fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 13px; }

.field.contact-subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 20px; }
.contact-subjects legend { grid-column: 1 / -1; }

/* Both choices look equally active: white card, black ring + filled dot on the chosen one */
.contact-subject {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #d8d8d8;
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-subject:hover { border-color: var(--color-text); }
.contact-subject input { position: absolute; opacity: 0; pointer-events: none; }
.contact-subject::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-text);
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-text) 0 4.5px, transparent 5.5px) no-repeat center / 0 0;
  transition: background-size 0.2s ease;
}
.contact-subject:has(input:checked) { border-color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); }
.contact-subject:has(input:checked)::before { background-size: 100% 100%; }
.contact-subject:has(input:focus-visible) { outline: 2px solid var(--color-text); outline-offset: 2px; }
.contact-subject span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-subject strong { font-weight: 400; }
.contact-subject small { font-size: 13px; opacity: 0.6; white-space: nowrap; }

/* Photo field: only for an estimation */
.field.field-estimate { display: none; }
.contact-form:has(input[name="sujet"][value="estimation"]:checked) .field.field-estimate { display: flex; }

/* Brand and model: only for a watch request */
.field.field-wanted { display: none; }
.contact-form:has(input[name="sujet"][value="demande"]:checked) .field.field-wanted { display: flex; }
.field-wanted select.control {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px;
  border: 1px dashed #bdbdbd;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.dropzone:hover, .dropzone.is-over { background: var(--color-bg); border-color: var(--color-text); }
.dropzone:has(input:focus-visible) { outline: 2px solid var(--color-text); outline-offset: 2px; }
.dropzone-icon { flex: none; width: 22px; height: 22px; }
.dropzone-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dropzone-text u { text-underline-offset: 3px; }
.dropzone-text small { font-size: 13px; opacity: 0.6; overflow-wrap: anywhere; }
.dropzone-thumbs { display: flex; gap: 8px; flex: none; }
.dropzone-thumb { position: relative; display: block; width: 44px; height: 44px; }
.dropzone-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dropzone-thumb button {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.dropzone-thumb button:hover { border-color: var(--color-text); }
.dropzone.has-file { border-style: solid; }
.dropzone.has-file .dropzone-icon { display: none; }

/* Availability: date and slot styled like the other fields */
.contact-availability-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.contact-availability-row select.control,
.datepicker-btn {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}
.contact-availability-row select.control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.contact-availability-row .control:hover { background-color: #ebebeb; }
.contact-availability-row .control:focus-visible { background-color: var(--color-bg); }

/* Without JS the native date field stays; with JS it is replaced by this button and calendar */
.contact-availability-row input[type="date"] { text-align: start; }
.datepicker { position: relative; min-width: 0; }
.datepicker-btn {
  display: block;
  width: 100%;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}
.datepicker-btn.is-empty { color: rgba(0, 0, 0, 0.55); }
.datepicker-btn:first-letter { text-transform: uppercase; }

.datepicker-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  width: 300px;
  max-width: 100%;
  padding: 16px;
  background: var(--color-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}
.datepicker-pop[hidden] { display: none; }
.datepicker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.datepicker-head strong { font-weight: 400; font-size: 15px; text-transform: capitalize; }
.datepicker-head button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.datepicker-head button:hover:not(:disabled) { background: #f0f0f0; }
.datepicker-head button:disabled { opacity: 0.2; cursor: default; }
.datepicker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.datepicker-grid span { padding-bottom: 6px; font-size: 12px; opacity: 0.5; }
.datepicker-grid button {
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.datepicker-grid button:hover:not(:disabled) { background: #f0f0f0; }
.datepicker-grid button:disabled { opacity: 0.25; cursor: default; }
.datepicker-grid button.is-today { text-decoration: underline; text-underline-offset: 4px; }
.datepicker-grid button.is-selected { background: var(--color-text); color: var(--color-text-inverse); }
.datepicker-pop button:focus-visible { outline: 2px solid var(--color-text); outline-offset: -2px; }
.datepicker-clear {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.datepicker-clear[hidden] { display: none; }

.contact-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  margin-top: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.field-wide { grid-column: 1 / -1; }

.field-label {
  font-size: 14px;
  text-transform: uppercase;
}

.control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: #f5f5f5;
  color: var(--color-text);
  font: inherit;
  font-size: 16px;
  line-height: normal;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.control::placeholder { color: rgba(0, 0, 0, 0.55); opacity: 1; }

.control:focus { outline: none; }
.control:focus-visible { background: var(--color-bg); border-color: var(--color-text); }

textarea.control {
  height: 102px;
  min-height: 102px;
  padding: 10px;
  resize: vertical;
}

.control-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.control-link:hover { background: #ebebeb; border-color: #d2d2d2; }

.form-submit {
  height: 39px;
  border: 1px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-text-inverse);
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--color-bg);
  color: var(--color-text);
}

.contact-media {
  aspect-ratio: 670 / 740;
  overflow: hidden;
  background: #111;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: media-settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.form-notice {
  max-width: 607px;
  margin-top: 26px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  background: #f5f5f5;
  font-size: 16px;
}

/* Shown instead of the form once sent (anchor target, below the sticky header) */
.contact-sent {
  max-width: 607px;
  margin-top: 26px;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  background: #f5f5f5;
  font-size: 16px;
  display: grid;
  gap: 10px;
  justify-items: start;
  scroll-margin-top: 140px;
}

.contact-sent-title { font-size: 20px; }
.contact-sent .link-underline { margin-top: 8px; }

#contact-form { scroll-margin-top: 140px; }

/* Watch the request is about (« Prendre rendez-vous » from a product page) */
.contact-watch {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
}

.contact-watch-media {
  flex-shrink: 0;
  width: 72px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-card-grad-start) 0%, var(--color-card-grad-end) 106%);
}

.contact-watch-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.contact-watch-media img.is-cutout { mix-blend-mode: darken; }

.contact-watch-text {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 16px;
}

.contact-watch-name { width: fit-content; max-width: 100%; overflow-wrap: anywhere; }

.contact-watch-remove {
  margin-inline-start: auto;
  align-self: flex-start;
  padding: 4px 8px;
  line-height: 1;
}

.form-notice-error { border-color: #d9a3a3; background: #fbf1f1; }

/* Anti-spam field, hidden from people and assistive tech */
.field-hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.not-found { min-height: 40vh; }

/* ---------- Mission ---------- */
.mission-text {
  white-space: pre-line;
  max-width: 1015px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 32px;
  line-height: 1.35;
}

/* ---------- Collections ---------- */
.collections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* Layout by tile count on a 6-column grid: 1 = full width, 2 and 4 = pairs,
   3 = one row of three, 5 = two large tiles then three smaller ones */
.collections-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.collection-tile { grid-column: span 3; }
.has-1 .collection-tile { grid-column: span 6; aspect-ratio: 1340 / 560; }
.has-3 .collection-tile,
.has-5 .collection-tile:nth-child(n + 3) { grid-column: span 2; aspect-ratio: 440 / 560; }
.has-3 .collection-caption,
.has-5 .collection-tile:nth-child(n + 3) .collection-caption { inset-inline-start: 20px; bottom: 28px; }
.has-3 .collection-name,
.has-5 .collection-tile:nth-child(n + 3) .collection-name { font-size: 20px; }

.collection-tile {
  position: relative;
  display: block;
  aspect-ratio: 670 / 740;
  overflow: hidden;
  background: #1a1a1a; /* no image: dark tile, the name stays readable */
}

.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.collection-tile:hover img { transform: scale(1.03); }

.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.collection-caption {
  position: absolute;
  inset-inline-start: 25px;
  bottom: 40px;
  z-index: 1;
  color: var(--color-text-inverse);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.collection-name {
  font-size: 24px;
  text-transform: uppercase;
}

.collection-caption .link-underline { font-size: 20px; }

/* ---------- Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.category-tile {
  position: relative;
  aspect-ratio: 325 / 374;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-card-grad-start) 0%, var(--color-card-grad-end) 106%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-tile:hover {
  border-color: #cfcfcf;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.category-tile:hover::before { opacity: 1; }

.category-tile img {
  position: relative;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.category-tile:hover img { transform: scale(1.1); }

/* ---------- About ---------- */
.about-text {
  white-space: pre-line;
  max-width: 1015px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
}

.about-actions {
  max-width: 670px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pill-button {
  position: relative;
  height: 48px;
  border: 1px solid var(--color-text);
  background: var(--color-btn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  z-index: 0;
  transition: color 0.35s ease;
}

.pill-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.pill-button:hover {
  color: var(--color-bg);
}

.pill-button:hover::before {
  transform: scaleX(1);
}

/* ---------- RDV banner ---------- */
.rdv-banner-inner {
  position: relative;
  aspect-ratio: 1360 / 740;
  overflow: hidden;
  background: #000;
}

.rdv-banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.rdv-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  color: var(--color-text-inverse);
  padding: 40px;
}

.rdv-banner-content p {
  white-space: pre-line;
  max-width: 613px;
  font-size: 20px;
  line-height: 1.5;
}

.rdv-banner-content .link-underline { font-size: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-spacing);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr auto;
  gap: 24px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
}

.footer-brand {
  font-size: 24px;
  margin-bottom: 4px;
}

.footer-col-title { font-size: 14px; }

.footer-copyright { margin-top: 24px; font-size: 16px; }

.footer-cookies { padding: 0; font-size: 14px; color: rgba(0, 0, 0, 0.55); }
.footer-cookies:hover, .footer-cookies:focus-visible { color: var(--color-text); }

/* Cookie banner (Google Analytics consent), bottom left like a card */
.cookie-banner {
  position: fixed;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 70;
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cookie-banner[hidden], body.nav-open-lock .cookie-banner { display: none; }

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
}

.cookie-banner-text { margin-top: 14px; font-size: 15px; line-height: 1.5; }

.cookie-banner-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 22px;
}

/* Same size and weight for both choices (CNIL: refusing as easy as accepting) */
.cookie-banner-btn {
  height: 44px;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-banner-btn:hover,
.cookie-banner-btn.is-primary { background: var(--color-text); color: var(--color-text-inverse); }
.cookie-banner-btn.is-primary:hover { background: var(--color-bg); color: var(--color-text); }
.cookie-banner-btn:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }

.footer-social img { width: 38px; height: 38px; }

.footer-payments {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 40px;
}

.footer-payments img { height: 38px; width: auto; }

/* ---------- Newsletter (footer form and pop-up) ---------- */
.newsletter-form { width: 100%; }

.newsletter-row {
  display: flex;
  gap: 5px;
}

.newsletter-input,
.newsletter-submit {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  text-transform: uppercase;
}

/* Typed address keeps its case, only the placeholder and the button are in capitals */
.newsletter-input { text-transform: none; }
.newsletter-input::placeholder { color: var(--color-text); text-transform: uppercase; }
.newsletter-submit { padding: 0 10px; white-space: nowrap; }
.newsletter-submit:disabled { opacity: 0.6; cursor: wait; }

.newsletter-message:empty { display: none; }
.newsletter-message { margin-top: 10px; font-size: 14px; }
.newsletter-form.is-error .newsletter-message { color: #a33; }
.newsletter-form.is-done .newsletter-row { display: none; }
.newsletter-form.is-done .newsletter-message { margin-top: 0; }

.footer-newsletter {
  width: min(395px, 100%);
  margin-top: 26px;
}

.footer-newsletter-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-newsletter :is(.newsletter-input, .newsletter-submit) {
  height: 34px;
  font-size: 12px;
}

/* Footer: the field must read as a field, not as a second button (white, left-aligned, lighter placeholder) */
/* Narrow first column (900–1300 px): the button goes under the field instead of squeezing it */
.footer-newsletter .newsletter-row { flex-wrap: wrap; }
.footer-newsletter .newsletter-submit { flex: 1 1 100px; }

.footer-newsletter .newsletter-input {
  flex: 1.6 1 180px;
  padding: 0 12px;
  border-color: #d2d2d2;
  background: var(--color-bg);
  text-align: start;
  font-size: 14px;
}

.footer-newsletter .newsletter-input::placeholder { color: rgba(0, 0, 0, 0.45); text-transform: none; }

.newsletter-modal {
  width: min(1056px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  background: var(--color-bg);
  color: var(--color-text);
  overflow: auto;
}

.newsletter-modal::backdrop { background: rgba(24, 24, 22, 0.88); }

.newsletter-modal[open] { animation: fade-up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.newsletter-modal[open]::backdrop { animation: newsletter-fade 0.4s ease both; }

@keyframes newsletter-fade { from { opacity: 0; } }

.newsletter-modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(632px, calc(100vh - 32px));
}

.newsletter-modal-media { position: relative; background: #111; }

.newsletter-modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-modal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}

.newsletter-modal-close {
  position: absolute;
  top: 40px;
  inset-inline-end: 40px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.25s ease, transform 0.35s ease;
}

.newsletter-modal-close:hover,
.newsletter-modal-close:focus-visible { color: var(--color-text); transform: rotate(90deg); }
.newsletter-modal-close svg { display: block; width: 100%; height: 100%; }

.newsletter-modal-brand {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
}

.newsletter-modal-title {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 400;
}

.newsletter-modal-text {
  max-width: 451px;
  margin-top: 30px;
  white-space: pre-line;
}

.newsletter-modal .newsletter-form {
  max-width: 325px;
  margin-top: 46px;
}

.newsletter-modal .newsletter-row { flex-direction: column; gap: 12px; }

.newsletter-modal :is(.newsletter-input, .newsletter-submit) {
  flex: none;
  height: 56px;
}

/* ---------- Legal pages (mentions légales, CGV) ---------- */
main > .legal {
  margin-top: 20px;
  margin-bottom: var(--section-spacing);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: start;
}

.legal-head {
  position: sticky;
  top: 120px;
}

.legal-intro {
  margin-top: 5px;
  max-width: 460px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.legal-part {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}

.legal-part:first-child { border-top: 0; padding-top: 0; }

.legal-part-title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-part p { max-width: 668px; line-height: 1.6; }
.legal-part p + p { margin-top: 10px; }

/* ---------- Responsive ---------- */
/* Below 1100 px the menus, language and currency do not fit: burger and side menu (as on phones) */
@media (max-width: 1099px) {
  .header-inner { display: flex; align-items: center; justify-content: space-between; }
  .nav-left, .nav-right { display: none; }
  .burger { display: flex; }
  .mobile-nav-backdrop { display: block; }
  .mobile-nav { display: flex; }
  .site-header.menu-open .mobile-nav-backdrop { opacity: 1; pointer-events: auto; }
  .site-header.menu-open .mobile-nav { transform: translateX(0); }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .header-inner { gap: 12px; }
  .nav { gap: 16px; font-size: 15px; }
  .nav-dropdown-trigger, .header-tools .nav-dropdown-trigger { font-size: 15px; }
  .header-tools { gap: 12px; margin-inline-start: 0; font-size: 13px; }
  .header-tools .nav-dropdown-trigger { font-size: 13px; gap: 4px; }
  .logo { font-size: 15px; }
  .chevron { width: 12px; height: 12px; }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --section-spacing: 72px;
  }

  .header-inner { height: 68px; }

  .logo { font-size: 12px; }

  .hero { margin-top: 24px; }

  .hero-stage { aspect-ratio: auto; height: min(75svh, 600px); }
  .hero-caption { inset-inline-start: 20px; inset-inline-end: 20px; bottom: 52px; }
  .hero-title { font-size: 22px; }
  .hero-subtitle { margin-top: 8px; font-size: 16px; }
  .hero-links { margin-top: 14px; gap: 8px 16px; font-size: 14px; }
  .hero-bars { inset-inline-start: 20px; inset-inline-end: auto; bottom: 14px; gap: 6px; }
  .hero-bar { width: 48px; }

  .section-title { font-size: 20px; margin-bottom: 32px; }

  main > .archive-head {
    margin-top: 32px;
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .archive-title { font-size: 20px; }

  main > .legal { margin-top: 32px; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .legal-head { position: static; }
  .archive-intro { margin-top: 0; }
  .archive-intro p + p { margin-top: 19px; }

  main > .archive { margin-top: 44px; }

  .archive-filters { gap: 20px; font-size: 18px; }
  .archive-filters .nav-dropdown-trigger { font-size: 18px; }  /* Menus anchor to the filter row (not to each trigger) so they never poke out of the viewport */
  .archive-filters { position: relative; }
  .archive-filters .nav-dropdown { position: static; }

  .grid-toggle { display: none; }

  .archive-grid[data-cols] {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }

  /* Product page */
  main > .product-detail {
    margin-top: var(--section-spacing);
    grid-template-columns: 1fr;
    row-gap: 32px;
    align-items: stretch;
  }

  .product-gallery {
    aspect-ratio: 350 / 403;
    background: linear-gradient(180deg, var(--color-card-grad-start) 0%, var(--color-card-grad-end) 106%);
  }

  .product-gallery img { width: 71.4%; }

  .product-info { gap: 34px; }

  .product-title { font-size: 24px; }

  .product-specs {
    grid-template-columns: 1fr;
    row-gap: 33px;
  }

  /* Single-column order from the mobile mockup */
  .spec-reference { order: 1; }
  .spec-state { order: 2; }
  .spec-year { order: 3; }
  .spec-diameter { order: 4; }
  .spec-papers { order: 5; }
  .spec-box { order: 6; }

  .product-specs dd { font-size: 20px; }

  .product-buy { margin-top: 16px; }
  .product-price-lg { font-size: 25px; }
  .product-cta { margin-top: 12px; font-size: 20px; }

  .br-mobile { display: inline; }
  .related .section-title { text-align: center; }

  /* The mobile mockup only lists four related watches */
  .related-grid .product-card:nth-child(n + 5) { display: none; }

  /* Contact page */
  main > .contact {
    margin-top: 32px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--section-spacing);
    max-width: 600px;
  }

  .contact-body { padding-top: 0; }
  .contact-title { font-size: 20px; }
  .contact-lead { margin-top: 17px; }
  .field.contact-subjects { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact-availability-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact-lead-form { margin-top: 48px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 50px; }
  .field { gap: 18px; }
  textarea.control { height: 208px; min-height: 208px; }
  .contact-media { aspect-ratio: 350 / 633; }

  /* Service pages */
  main > .service-hero,
  .service-strip,
  .service-steps {
    max-width: 600px;
  }

  main > .service-hero {
    margin-top: 0;
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .service-hero-media { order: -1; aspect-ratio: 350 / 633; }
  .service-hero-text { position: static; padding-top: 0; }
  .service-title { font-size: 24px; }
  .service-hero-text p { margin-top: 20px; }
  .service-hero-cta { margin-top: 20px; font-size: 16px; }

  .service-strip { grid-template-columns: 1fr; }
  .service-strip-tile { aspect-ratio: 350 / 405; }
  .service-strip-tile:not(:nth-child(2)) { display: none; }
  .service-strip-tile img { top: 50%; left: -104.3%; width: 308.6%; }

  .service-steps { grid-template-columns: 1fr; }
  .service-steps-media { position: static; aspect-ratio: 350 / 387; margin-top: 8px; }

  .acc-item { padding: 40px 0; }
  .acc-trigger { align-items: flex-start; font-size: 20px; }
  .acc-trigger .chevron { margin-top: 5px; }
  .acc-panel-inner p { padding-top: 20px; font-size: 16px; }

  .service-cta { display: none; }

  /* About page */
  main > .about-hero { margin-top: 0; }

  .services-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline-start: auto;
    margin-inline-end: auto;
  }

  .service-card { aspect-ratio: 350 / 405; --overlay: 0.25; --overlay-hover: 0.4; }
  .service-card-buy { --overlay: 0.32; --overlay-hover: 0.5; }
  .service-card-revision { --overlay: 0.24; }

  .service-card-content { inset-inline-start: 24px; inset-inline-end: 24px; bottom: 28px; }
  .service-card-title { font-size: 20px; }
  .service-card-content p { margin-top: 8px; font-size: 14px; }

  .founder-inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
    max-width: 560px;
    margin-inline-start: auto;
    margin-inline-end: auto;
  }

  .founder-photo { aspect-ratio: 350 / 405; }
  .founder-text { font-size: 20px; }
  .founder-text p + p { margin-top: 24px; }

  .mission-text { font-size: 22px; }

  .collections-grid { grid-template-columns: 1fr; }
  .collections-grid .collection-tile { grid-column: auto; aspect-ratio: 670 / 740; }
  .collections-grid .collection-caption { inset-inline-start: 25px; bottom: 40px; }
  .collections-grid .collection-name { font-size: 24px; }

  .categories-grid { grid-template-columns: 1fr 1fr; }

  .about-text { font-size: 16px; }

  .about-actions { grid-template-columns: 1fr; max-width: 100%; }

  .rdv-banner-inner {
    aspect-ratio: auto;
    height: min(650px, 167vw);
  }

  .rdv-banner-content { padding: 28px; }
  .rdv-banner-content p { font-size: 16px; }
  .rdv-banner-content .link-underline { font-size: 16px; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-col { align-items: center; }

  .footer-payments { justify-content: center; order: 1; }

  /* Copyright goes last, below the payment icons, as in the mobile mockup:
     the first column is flattened so its copyright can be reordered on its own */
  .footer-inner > .footer-col:first-child { display: contents; }
  .footer-brand { margin-bottom: -10px; }
  .footer-cookies { order: 2; }
  .footer-copyright { order: 3; margin-top: 0; }
  .cookie-banner { inset-inline-start: 16px; bottom: 16px; padding: 24px 20px 20px; }
}

/* Phone: hero switches to the tall portrait layout with centred captions */
@media (max-width: 600px) {
  .about-hero-inner { aspect-ratio: 350 / 633; }

  .about-hero-brand,
  .about-hero-address,
  .about-hero-rating {
    inset-inline-start: 16px;
    inset-inline-end: 16px;
    text-align: center;
  }

  .about-hero-brand { top: 27px; }
  .about-hero-address { bottom: auto; top: 45.6%; }

  .about-hero-rating {
    bottom: 26px;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }
}

/* Tablet: two cards per row (the 4/2 switch is desktop only) */
@media (min-width: 600px) and (max-width: 900px) {
  .archive-grid[data-cols] {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px var(--gap);
  }
}

/* Newsletter pop-up on tablets and phones: text only */
@media (max-width: 900px) {
  .newsletter-modal { width: min(528px, calc(100% - 32px)); }
  .newsletter-modal-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .newsletter-modal-media { display: none; }
  .newsletter-modal-body { padding: 72px 24px 48px; }
  .newsletter-modal-close { top: 20px; inset-inline-end: 20px; }
  .newsletter-modal-brand { font-size: 22px; }
  .newsletter-modal-title { margin-top: 18px; font-size: 22px; }
  .newsletter-modal-text { margin-top: 20px; }
  .newsletter-modal .newsletter-form { margin-top: 32px; }
  .footer-newsletter { margin-top: 0; }
}

/* ---------- Right-to-left languages (html[dir="rtl"], e.g. Hebrew) ----------
   Spacing and positions above use logical properties (inline-start / inline-end), flex and grid mirror by themselves.
   What cannot be logical is mirrored here: slide-in menu, select arrows, animated underlines. */
[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
[dir="rtl"] .site-header.menu-open .mobile-nav { transform: translateX(0); }
[dir="rtl"] .field-wanted select.control,
[dir="rtl"] .datepicker-btn { background-position: left 14px center; }
[dir="rtl"] .link-underline::after,
[dir="rtl"] .nav-underline::after,
[dir="rtl"] .nav-label::after,
[dir="rtl"] .pill-button::before { transform-origin: right; }
[dir="rtl"] .hero-bar span::after { transform-origin: right; }
[dir="rtl"] .chevron { margin-inline-start: 0; }
/* Hebrew has no capitals: the spaced-out capitals of the French design would only make Hebrew harder to read
   (the logo and other translate="no" Latin texts keep their spacing) */
[lang="he"] :not([translate="no"], [translate="no"] *) { letter-spacing: normal; }
/* Numbers, e-mails and phone numbers inside Hebrew text keep their own direction (see also <bdi dir="ltr"> in the footer) */
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[name="prix"] { direction: ltr; text-align: end; }
