/* =============================================================
   Brozerei® — feuille de style unique
   Ordre : tokens · base · utilitaires · boutons · hero ·
           produit · story · footer · modale · responsive
   ============================================================= */

/* -------------------------------------------------------------
   Tokens
   Couleurs et rythme relevés sur la maquette.
   Les gris de texte ont été assombris par rapport au prototype
   afin d'atteindre un contraste suffisant (>= 4.5:1 sur blanc).
   ------------------------------------------------------------- */
:root {
  --color-bg: #ffffff;
  --color-ink: #111111;
  --color-muted: #6b6b6b;
  --color-panel: #f4f3f0;   /* fond clair du visuel produit */
  --color-line: #dedbd6;    /* filets des encarts caractéristiques */
  --color-dark: #1c1c1c;    /* fond du footer */
  --color-on-dark: #ffffff;
  --color-focus: #1b2b5e;   /* bleu encre de l'illustration */
  /* Erreurs : brique sombre, assez foncée pour rester lisible sur blanc
     (contraste ≈ 6:1) et pour ne pas jurer avec la palette monochrome. */
  --color-error: #8f2417;
  --color-error-soft: #fbf4f3;

  /* Aucune police n'est fournie dans les assets : pile système,
     sans requête réseau, cohérente avec la grotesque de la maquette. */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --max-width: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-space: clamp(4.5rem, 12vw, 9rem);
}

/* -------------------------------------------------------------
   Base
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

/* -------------------------------------------------------------
   Accessibilité : focus visible sur tous les éléments interactifs
   ------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Contenu réservé aux lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------
   Boutons
   Rectangle noir, libellé en capitales espacées (maquette vue 02).
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--color-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

.btn--primary:hover {
  background-color: #333333;
}

.btn--primary:active {
  background-color: #000000;
}

/* Envoi indisponible tant qu'aucune taille n'est choisie. L'attribut
   `disabled` porte l'information (annoncée par les technologies d'assistance
   et doublée par le texte d'aide), la couleur ne fait que la refléter. */
.btn[disabled] {
  background-color: #767676;
  border-color: #767676;
  color: var(--color-on-dark);
  cursor: not-allowed;
}

/* -------------------------------------------------------------
   1. Hero — vue 01
   ------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
}

.hero__inner {
  width: 100%;
  max-width: 34rem;
}

.hero__logo {
  margin: 0;
  font-size: 0; /* le h1 est porté par le logotype fourni */
}

.hero__logo img {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

.hero__tagline {
  margin-top: 1.25rem;
  font-size: clamp(0.75rem, 1.6vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__scroll {
  display: inline-flex;
  margin-top: clamp(3rem, 9vw, 5.5rem);
  padding: 0.5rem;
  color: var(--color-ink);
  transition: transform 0.15s ease;
}

.hero__scroll:hover {
  transform: translateY(3px);
}

.hero__scroll:active {
  transform: translateY(5px);
}

/* -------------------------------------------------------------
   2. Bloc produit — vue 02
   ------------------------------------------------------------- */
.product {
  padding: 0 var(--gutter) var(--section-space);
}

.product__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* Panneau clair reprenant le cadrage du visuel produit de la maquette */
.product__media {
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: var(--color-panel);
}

/* -------------------------------------------------------------
   Carrousel produit
   La piste est nativement défilable (glisser / molette / clavier),
   les flèches et vignettes sont un enrichissement JavaScript.
   ------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 0.75rem;
  max-width: 26rem;
  margin-inline: auto;
}

.gallery__viewport {
  position: relative;
}

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;             /* la navigation se fait par les contrôles */
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

/* Les trois visuels n'ont pas le même ratio : un cadre commun évite
   que la hauteur du carrousel change d'un visuel à l'autre. */
.gallery__link {
  /* Bloc conteneur des éléments en position absolue de la diapositive, en
     particulier le libellé `.visually-hidden`. Sans cela il se positionne
     par rapport à `.gallery__viewport`, échappe au défilement de la piste
     et étire la largeur du document sur petit écran. */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1149 / 1369;
  background-color: #ffffff;
  cursor: zoom-in;
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Flèches superposées à l'image */
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-line);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gallery__nav--prev {
  left: 0.5rem;
}

.gallery__nav--next {
  right: 0.5rem;
}

.gallery__nav:hover {
  border-color: var(--color-ink);
  background-color: #ffffff;
}

.gallery__nav:active {
  background-color: var(--color-panel);
}

.gallery__nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Vignettes */
.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.gallery__thumb {
  display: block;
  width: 4rem;
  padding: 0;
  border: 1px solid var(--color-line);
  background-color: #ffffff;
  cursor: pointer;
  /* L'opacité complète l'épaisseur de bordure : l'état actif n'est
     jamais signalé par la seule couleur. */
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1149 / 1369;
  object-fit: contain;
}

.gallery__thumb:hover {
  opacity: 1;
}

.gallery__thumb[aria-current="true"] {
  border-width: 2px;
  border-color: var(--color-ink);
  opacity: 1;
}

.product__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product__title {
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

/* Prix : lisible au premier coup d'œil, sans concurrencer le titre produit */
.product__price {
  margin-top: 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product__description {
  margin-top: 1.5rem;
  max-width: 30ch;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

/* Caractéristiques : encarts filetés (maquette vue 02).
   Empilés sur petit écran — avec un descriptif dans chaque encart, trois
   colonnes de ~85 px rendraient les notes illisibles. */
.product__specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 2.25rem;
  max-width: 26rem;
  border: 1px solid var(--color-line);
}

.product__spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.product__spec:first-child {
  border-top: 0;
}

.product__spec-title {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Précision de matière : lisible mais nettement en retrait du titre —
   ni capitales, ni graisse, ni interlettrage. */
.product__spec-note {
  color: var(--color-muted);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.4;
}

/* Réassurance : le plus petit niveau typographique de la colonne produit */
.product__reassurance {
  margin-top: 1rem;
  max-width: 26rem;
  color: var(--color-muted);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product__cta {
  width: 100%;
  max-width: 26rem;
  margin-top: 1.75rem;
}

/* -------------------------------------------------------------
   Panneau dépliant « Détails & entretien »
   Ouverture pilotée par `aria-expanded` : l'attribut d'accessibilité
   est la seule source de vérité, le CSS s'y accroche.
   ------------------------------------------------------------- */
.details {
  max-width: 26rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--color-line);
}

.details__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.875rem 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.details__toggle:hover .details__sign,
.details__toggle:active .details__sign {
  opacity: 0.55;
}

/* Signe + / − dessiné en deux filets de 1px, au trait du reste de la page */
.details__sign {
  position: relative;
  flex: none;
  width: 0.6875rem;
  height: 0.6875rem;
  transition: opacity 0.15s ease;
}

.details__sign::before,
.details__sign::after {
  content: "";
  position: absolute;
  background-color: currentColor;
}

.details__sign::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  transform: translateY(-50%);
}

/* La barre verticale disparaît à l'ouverture : le + devient − */
.details__sign::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%) scaleY(1);
  transition: transform 0.22s ease;
}

.details__toggle[aria-expanded="true"] .details__sign::after {
  transform: translateX(-50%) scaleY(0);
}

/* Ouverture : la grille passe de 0fr à 1fr, ce qui anime la hauteur
   sans avoir à la mesurer en JavaScript. */
.details__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.details__toggle[aria-expanded="true"] + .details__panel {
  grid-template-rows: 1fr;
}

/* `visibility` retire aussi le contenu replié du parcours clavier et des
   lecteurs d'écran ; le délai la maintient visible pendant la fermeture. */
.details__inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.22s;
}

.details__toggle[aria-expanded="true"] + .details__panel .details__inner {
  visibility: visible;
  transition-delay: 0s;
}

.details__heading {
  margin: 1.25rem 0 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details__heading:first-child {
  margin-top: 0.25rem;
}

.details__text,
.details__list {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.details__list li + li {
  margin-top: 0.125rem;
}

/* Respiration sous le dernier bloc replié */
.details__inner > :last-child {
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------
   3. Bloc « Why it exists » — vue 03
   ------------------------------------------------------------- */
.story {
  padding: 0 var(--gutter) var(--section-space);
  text-align: center;
}

.story__inner {
  max-width: 46rem;
  margin-inline: auto;
}

.story__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story__title {
  margin-top: 1.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.story__text {
  margin-top: 2rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------
   4. Footer — vue 04
   ------------------------------------------------------------- */
.footer {
  padding: clamp(3rem, 8vw, 4.5rem) var(--gutter);
  background-color: var(--color-dark);
  color: var(--color-on-dark);
  /* Le focus doit rester visible sur fond sombre */
  --color-focus: #ffffff;
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

.footer__name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer__slogan {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__contact {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer__contact a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer__contact a:hover,
.footer__contact a:active {
  text-decoration-thickness: 2px;
}

/* -------------------------------------------------------------
   Modale de commande
   ------------------------------------------------------------- */
.modal {
  width: min(100% - 2rem, 27rem);
  /* Le formulaire allonge la modale : elle défile plutôt que de déborder */
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--color-ink);
  background-color: var(--color-bg);
  color: var(--color-ink);
}

.modal::backdrop {
  background-color: rgba(17, 17, 17, 0.6);
}

.modal__panel {
  position: relative;
  padding: clamp(1.75rem, 5vw, 2.5rem);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.modal__close:hover {
  background-color: var(--color-panel);
}

.modal__close:active {
  background-color: var(--color-line);
}

.modal__title {
  padding-right: 2.5rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.modal__note {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Action unique en pied de modale (ex. : lien Instagram) */
.modal__cta {
  width: 100%;
  margin-top: 1.75rem;
}

/* Récapitulatif article + prix, en tête de modale */
.modal__summary {
  margin-top: 0.625rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.modal__price {
  color: var(--color-ink);
  font-weight: 700;
}

/* Sélecteur de taille */
.sizes {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
}

.sizes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size {
  display: block;
}

/* L'input reste dans le flux du clavier, seule sa présentation est masquée */
.size__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.size__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-line);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.size__label:hover {
  border-color: var(--color-ink);
}

.size__input:active + .size__label {
  background-color: var(--color-line);
}

/* Sélection : inversion complète du bouton, pas une simple nuance de couleur */
.size__input:checked + .size__label {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

/* Le focus clavier doit rester visible malgré l'input masqué */
.size__input:focus-visible + .size__label {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.modal__hint {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

/* -------------------------------------------------------------
   Formulaire de commande (envoi Formspree, sans script)
   ------------------------------------------------------------- */
.order-form {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.order-form > .sizes,
.order-form > .modal__hint {
  margin: 0;
}

.order-form__fields {
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Marqueur « facultatif ». L'italique le distingue aussi bien du libellé en
   capitales du téléphone que du texte de consentement, déjà en gris. */
.field__optional {
  color: var(--color-muted);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
}

.field__input {
  /* Les champs texte ont une largeur intrinsèque : sans ces deux règles ils
     refusent de se réduire et débordent de la modale en deux colonnes. */
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
}

.field__input:hover {
  border-color: var(--color-ink);
}

/* -------------------------------------------------------------
   États d'erreur du formulaire
   L'information est portée par le message texte ; l'épaisseur de
   bordure et le fond la doublent. La couleur n'est jamais seule.
   ------------------------------------------------------------- */
.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
  border-width: 2px;
  background-color: var(--color-error-soft);
}

.field__error {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 0.375rem;
  color: var(--color-error);
  font-size: 0.75rem;
  line-height: 1.45;
}

.field__error[hidden] {
  display: none;
}

/* Repère non coloré : le message d'erreur est le seul texte du formulaire
   introduit par ce signe. */
.field__error::before {
  content: "!";
  flex: none;
  font-weight: 700;
}

/* Groupe de tailles en erreur : les encarts non sélectionnés reprennent
   l'épaisseur et la teinte d'erreur. */
.sizes[aria-invalid="true"] .size__label {
  border-color: var(--color-error);
  border-width: 2px;
  background-color: var(--color-error-soft);
}

.sizes[aria-invalid="true"] .size__input:checked + .size__label {
  background-color: var(--color-ink);
}

/* Case à cocher obligatoire non validée */
.consent__input[aria-invalid="true"] {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

/* Consentement obligatoire */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent__input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.125rem 0 0;
  accent-color: var(--color-ink);
  cursor: pointer;
}

/* Message global : erreurs de saisie ou échec d'envoi. Le filet à gauche
   et le texte portent l'information, elle ne repose pas sur la couleur. */
.order-form__error {
  padding: 0.75rem 0 0.75rem 0.875rem;
  border-left: 2px solid var(--color-error);
  background-color: var(--color-error-soft);
  color: var(--color-error);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Rappel du caractère obligatoire des champs */
.order-form__legend {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.order-form__error[hidden] {
  display: none;
}

.order-form__submit {
  width: 100%;
}

/* Prénom et nom côte à côte dès que la modale est assez large */
@media (min-width: 30rem) {
  .order-form__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--wide {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------------
   Page de confirmation (merci.html)
   Reprend le cadrage et la typographie du hero.
   ------------------------------------------------------------- */
.thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
}

.thanks__inner {
  width: 100%;
  max-width: 30rem;
}

.thanks__logo {
  width: 100%;
  max-width: 16rem;
  margin-inline: auto;
}

.thanks__title {
  margin-top: clamp(2.5rem, 8vw, 4rem);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.thanks__text {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.thanks__back {
  margin-top: clamp(2rem, 6vw, 3rem);
}

/* -------------------------------------------------------------
   Visionneuse (zoom sur un visuel)
   ------------------------------------------------------------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
}

.lightbox::backdrop {
  background-color: rgba(17, 17, 17, 0.85);
}

.lightbox__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem clamp(0.75rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--color-line);
}

.lightbox__bar--footer {
  justify-content: center;
  border-top: 1px solid var(--color-line);
  border-bottom: 0;
}

.lightbox__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lightbox__button {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-line);
  background-color: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lightbox__button:hover {
  border-color: var(--color-ink);
  background-color: var(--color-panel);
}

.lightbox__button:active {
  background-color: var(--color-line);
}

/* L'état « zoom actif » est porté par aria-pressed, pas par la seule couleur */
.lightbox__button[aria-pressed="true"] {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  color: var(--color-on-dark);
}

.lightbox__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background-color: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.lightbox__close:hover {
  background-color: var(--color-panel);
}

.lightbox__close:active {
  background-color: var(--color-line);
}

/* Zone défilable : permet de se déplacer dans l'image agrandie */
.lightbox__viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 1rem;
  background-color: var(--color-panel);
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-in;
  object-fit: contain;
}

.lightbox__viewport.is-zoomed {
  align-items: start;
  justify-content: start;
}

.lightbox__viewport.is-zoomed .lightbox__image {
  max-width: none;
  max-height: none;
  width: 220%;
  height: auto;
  cursor: zoom-out;
}

.lightbox__counter {
  min-width: 4rem;
  font-size: 0.8125rem;
  text-align: center;
}

/* -------------------------------------------------------------
   Responsive : deux colonnes à partir de la tablette large
   ------------------------------------------------------------- */
@media (min-width: 48rem) {
  .product {
    padding-top: 0;
  }

  /* Image sur 50 % de la largeur du bloc, texte sur l'autre moitié */
  .product__grid {
    grid-template-columns: 1fr 1fr;
  }

  .product__cta,
  .product__specs,
  .product__reassurance,
  .details {
    max-width: 24rem;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer__contact {
    text-align: right;
  }
}

/* -------------------------------------------------------------
   Caractéristiques : retour aux trois encarts côte à côte de la
   maquette. Le palier est plus haut que celui de la mise en page
   produit : entre 48 et 64 rem, la colonne de texte ne laisse que
   ~106 px par encart, ce qui casserait les descriptifs sur 4 lignes.
   ------------------------------------------------------------- */
@media (min-width: 64rem) {
  .product__specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product__spec {
    border-top: 0;
    border-left: 1px solid var(--color-line);
  }

  .product__spec:first-child {
    border-left: 0;
  }
}

/* -------------------------------------------------------------
   Préférence utilisateur : mouvement réduit
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    /* Le délai doit tomber aussi : sans cela, la `visibility` du panneau
       de détails resterait décalée après une fermeture instantanée. */
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }
}
