/* ==========================================================================
   Marquage Ouimet inc. — Landing page
   Design source : Figma « Marquage Ouimet inc » (desktop 1920px, contenu 1280px)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --yellow: #f6b404;
  --yellow-dark: #e0a200; /* survol des boutons jaunes */
  --black: #000;
  --dark: #1a1a1a;
  --white: #fff;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-20: rgba(255, 255, 255, 0.2);
  --field-bg: rgba(202, 213, 213, 0.3);
  --field-text: #6e7191;
  --chip-bg: rgba(0, 0, 0, 0.1);
  --chip-text: #364153;
  --light-bg: #f9fbfe;
  --media-bg: #edf0f8;

  --font-inter: "Inter", system-ui, sans-serif;
  --font-poppins: "Poppins", system-ui, sans-serif;
  --font-worksans: "Work Sans", system-ui, sans-serif;
  /* Gilroy est une police commerciale : chargée si installée, sinon Urbanist (Google Fonts) */
  --font-gilroy: "Gilroy", "Urbanist", var(--font-inter);
  --font-gadugi: "Gadugi", var(--font-inter);

  --container: 1280px;
  --gutter: 24px;
  --btn-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Recadrage d'image reproduisant exactement les crops Figma (valeurs en % inline) */
.crop { position: relative; overflow: hidden; }
.crop > img { position: absolute; max-width: none; }
.cover > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Typographie commune ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-left: 2px solid currentColor;
  font-size: 20px;
  line-height: 15px;
  font-weight: 500;
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--bold { font-weight: 700; }
.eyebrow--semibold { font-weight: 600; }
.eyebrow--regular { font-weight: 400; }

.h2 {
  font-size: 38px;
  line-height: 45px;
  font-weight: 700;
}

.text { font-size: 16px; line-height: 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 58px;
  padding: 10px 24px;
  border: 0;
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--white);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.btn img { transition: transform 0.25s; }
.btn--yellow { background: var(--yellow); box-shadow: var(--btn-shadow); }
.btn--black { background: var(--black); }

/* ---------- Survol des boutons ---------- */
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }
.btn--yellow:hover,
.btn--yellow:focus-visible {
  background: var(--yellow-dark);
  box-shadow: 0 14px 24px -8px rgba(246, 180, 4, 0.55), 0 4px 8px -4px rgba(0, 0, 0, 0.2);
}
.btn--black:hover,
.btn--black:focus-visible {
  background: var(--yellow);
  box-shadow: 0 14px 24px -8px rgba(246, 180, 4, 0.5);
}
.btn:hover img,
.btn:focus-visible img { transform: translateX(4px); }
.btn--hero { height: 56px; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ==========================================================================
   HERO + NAVIGATION
   ========================================================================== */
.hero {
  --header-h: 108px; /* 5px + logo 103px : hauteur de l'en-tête posé sur le hero */
  position: relative;
  z-index: 20; /* garde l'en-tête collant (enfant du hero) au-dessus des sections suivantes */
  min-height: 788px;
  padding-top: var(--header-h);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

/* ---------- En-tête collant ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck {
  position: fixed;
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: header-in 0.35s ease both;
}
.site-header .nav__logo img { transition: width 0.3s, height 0.3s; }
.site-header.is-stuck .nav { padding-block: 6px; }
.site-header.is-stuck .nav__logo img { width: 84px; height: 84px; }
@keyframes header-in {
  from { transform: translateY(-100%); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.is-stuck { animation: none; }
  .site-header .nav__logo img { transition: none; }
}

/* Les ancres ne doivent pas se cacher sous l'en-tête collant */
main section[id],
#soumission { scroll-margin-top: 110px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../assets/img/hero-bg.jpg") center / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 41.878%);
}
.hero__shade {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: -1;
  width: 83.07%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.774) 0%, rgba(0, 0, 0, 0.674) 43.152%, rgba(0, 0, 0, 0.651) 52.645%, rgba(0, 0, 0, 0.305) 83.537%, rgba(0, 0, 0, 0) 100%);
}

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
}
.nav__logo { display: block; }
.nav__logo img {
  width: 103px; height: 103px;
}
.nav__right { display: flex; align-items: center; gap: 20.47px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 20.47px;
  font-size: 16.38px;
  line-height: 28.66px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__links a {
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover { color: var(--yellow); }
/* Lien de la section en cours de lecture (js/main.js) */
.nav__links a.is-active { color: var(--yellow); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8.19px;
  width: 205px;
  height: 41px;
  padding: 10.24px 24.57px 10.24px 17px;
  background: var(--yellow);
  font-size: 18.42px;
  line-height: 20.47px;
  font-weight: 900;
  letter-spacing: 0.358px;
  color: var(--white);
  white-space: nowrap;
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.nav__phone img { width: 16.38px; height: 16.38px; transition: transform 0.25s; }
.nav__phone:hover,
.nav__phone:focus-visible {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px -8px rgba(246, 180, 4, 0.6);
}
.nav__phone:hover img { transform: rotate(-12deg) scale(1.1); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: var(--yellow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s;
}
.nav__toggle:hover,
.nav__toggle:focus-visible { background: var(--yellow-dark); }
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--white);
  transition: transform 0.25s, background 0.25s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.hero__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 76px;
  padding-bottom: 103px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 637px;
  max-width: 100%;
}
.hero__heading { display: flex; flex-direction: column; gap: 13px; }
.hero__title { font-size: 38px; line-height: 45px; font-weight: 700; }
.hero__lead { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--white-80); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__actions img { width: 20px; height: 20px; }

/* ==========================================================================
   FORMULAIRE DE SOUMISSION
   ========================================================================== */
.quote-form {
  --qf-pad: 24px;
  --qf-gap: 16px;
  --qf-field-pad: 16px;
  --qf-font: 14px;
  --qf-title: 18px;
  --qf-submit-h: 60px;
  --qf-submit-w: 392px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--qf-gap);
  width: 524px;
  max-width: 100%;
  flex: none;
  padding: var(--qf-pad);
  background: var(--white);
  color: var(--black);
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.08));
}
.quote-form__title {
  width: 100%;
  font-family: var(--font-gilroy);
  font-weight: 700;
  font-size: var(--qf-title);
  line-height: 1.4;
  text-align: center;
}
.quote-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--qf-gap) * 0.75);
  width: 100%;
}
.quote-form__field {
  display: block;
  min-width: 0;
  width: 100%;
  height: calc(var(--qf-font) + 2 * var(--qf-field-pad));
  margin: 0;
  padding: var(--qf-field-pad);
  border: 0;
  border-radius: 0;
  background: var(--field-bg);
  font-family: var(--font-poppins);
  font-size: var(--qf-font);
  line-height: 1;
  color: var(--black);
  outline-offset: 0;
}
.quote-form__field::placeholder { color: var(--field-text); opacity: 1; }
.quote-form__field:focus { outline: 1px solid var(--yellow); }

select.quote-form__field {
  appearance: none;
  -webkit-appearance: none;
  padding-block: 0;
  padding-right: calc(var(--qf-field-pad) + 24px);
  background: var(--field-bg) url("../assets/icons/chevron-down.svg") no-repeat right calc(var(--qf-field-pad) + 4px) center / 10px 5.6px;
  cursor: pointer;
  text-overflow: ellipsis;
}
select.quote-form__field:invalid { color: var(--field-text); }
select.quote-form__field option { color: var(--black); }

textarea.quote-form__field {
  height: calc(var(--qf-font) * 7.143);
  resize: vertical;
  line-height: 1.3;
}

.quote-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  font-family: var(--font-poppins);
  font-size: var(--qf-font);
  line-height: 1.214;
  color: var(--field-text);
  cursor: pointer;
}
.quote-form__consent input {
  flex: none;
  width: calc(var(--qf-font) * 0.93);
  height: calc(var(--qf-font) * 0.93);
  margin: 1px 0 0;
  accent-color: var(--field-text);
}

.quote-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--qf-submit-w);
  max-width: 100%;
  height: var(--qf-submit-h);
  padding: 4px 25px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-gadugi);
  font-weight: 700;
  font-size: var(--qf-title);
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.quote-form__submit:hover,
.quote-form__submit:focus-visible {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -8px rgba(246, 180, 4, 0.55);
}
.quote-form__submit:active { transform: translateY(0); }
.quote-form__submit:disabled { transform: none; box-shadow: none; background: var(--black); }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.about { padding-block: 64px; }
.about__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.about__media { width: 632px; flex: none; aspect-ratio: 632 / 470; }
.about__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 29px;
  width: 584px;
}
.about__text p + p { margin-top: 24px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  font-family: var(--font-gilroy);
  font-size: 18px;
  line-height: 24px;
}
.check img { flex: none; width: 17.89px; height: 17.89px; margin-top: 1px; }
.check strong { font-weight: 700; }

/* ==========================================================================
   SERVICES (onglets)
   ========================================================================== */
.services {
  padding-block: 64px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  text-align: center;
}
.services .section-head { margin-bottom: 48px; }

.tabs__list { display: flex; gap: 16px; margin-bottom: 16px; }
.tabs__tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.1);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(20px);
  transition: background 0.2s, border-color 0.2s;
}
.tabs__tab:hover { background: rgba(255, 255, 255, 0.06); }
.tabs__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
}
.tabs__tab[aria-selected="true"] {
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--yellow);
}
.tabs__tab[aria-selected="true"] .tabs__icon {
  width: 37px; height: 37px;
  background: var(--yellow);
}
.tabs__label { overflow: hidden; text-overflow: ellipsis; }

.tabs__panel {
  display: flex;
  align-items: stretch;
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--yellow);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}
.tabs__panel[hidden] { display: none; }
.tabs__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  width: 552px;
  flex: none;
}
.tabs__copy h3 { font-size: 28px; line-height: 38px; font-weight: 700; margin-bottom: 12px; }
.tabs__media { flex: 1 1 0; min-width: 0; aspect-ratio: 604 / 220; align-self: center; }

/* ==========================================================================
   TRAÇAGE (liste interactive)
   ========================================================================== */
.tracage {
  position: relative;
  padding-block: 105px;
  background: var(--dark);
  color: var(--white);
  isolation: isolate;
}
.tracage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../assets/img/texture-mur.jpg") center 17% / cover no-repeat;
}
.tracage__head {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 48px;
}
.tracage__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  width: 517px;
  flex: none;
}
.tracage__head > p { flex: 1 1 0; }

.tracage__grid { display: flex; gap: 20px; }
.tracage__media {
  position: relative;
  width: 760px;
  flex: none;
  aspect-ratio: 760 / 683;
  overflow: hidden;
}
.tracage__frame {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  aspect-ratio: 760 / 692;
}
.tracage__frame .crop {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.tracage__frame .crop.is-active { opacity: 1; }

.tracage__list {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 24px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--yellow);
  opacity: 0;
  transition: opacity 0.25s;
}
.step:hover { background: rgba(255, 255, 255, 0.26); }
.step[aria-pressed="true"] { background: rgba(0, 0, 0, 0.5); cursor: default; }
.step[aria-pressed="true"]::before { opacity: 1; }
.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px; height: 41px;
  background: var(--yellow);
}
.step__icon .flip { transform: scaleX(-1); }
.step__title { display: block; font-size: 24px; line-height: 28px; font-weight: 700; margin-bottom: 8px; }
.step__desc { display: block; font-size: 18px; line-height: 26px; }

/* ==========================================================================
   SOLUTIONS
   ========================================================================== */
.solutions { padding-block: 77.5px; }
.solutions__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.solutions__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 29px;
  width: 584px;
}
.solutions__list { display: flex; flex-direction: column; gap: 7px; }
.solutions__list .check span { font-weight: 400; }
.solutions__media { width: 632px; flex: none; aspect-ratio: 632 / 592; }

/* ==========================================================================
   AVANTAGES
   ========================================================================== */
.why { padding-block: 107px; background: var(--black); color: var(--white); }
.why__grid { display: flex; align-items: center; gap: 39px; }
.why__media { width: 632px; flex: none; aspect-ratio: 632 / 536; background: var(--media-bg); }
.why__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 609px;
}
.why__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.why__title { font-size: 44px; line-height: 52px; font-weight: 700; }
.why__list { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.why__item {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 46px;
  border: 1px solid rgba(19, 60, 102, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}
.why__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--yellow);
  box-shadow: 0 2.31px 9.24px rgba(0, 0, 0, 0.04);
}
.why__item p { font-size: 16px; line-height: 24px; }
.why__item strong { font-weight: 700; }

/* ==========================================================================
   RÉALISATIONS (galerie + avant/après)
   ========================================================================== */
.gallery { padding-block: 86px; }
.gallery .section-head { margin-bottom: 48px; }
.gallery .h2 { max-width: 778px; }
.gallery__grid { display: flex; gap: 16px; }
.gallery__tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 632px;
  flex: none;
}
.gallery__tile { aspect-ratio: 308 / 310; background: var(--media-bg); }

.compare {
  --pos: 46.36%;
  position: relative;
  width: 632px;
  flex: none;
  aspect-ratio: 632 / 636;
  overflow: hidden;
  filter: drop-shadow(1.89px 3.78px 4.73px rgba(0, 0, 0, 0.06));
  user-select: none;
  touch-action: pan-y;
}
.compare__layer { position: absolute; inset: 0; }
/* Même cadrage pour les deux photos : elles remplissent le cadre et restent alignées. */
.compare__before img,
.compare__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.compare__after {
  clip-path: inset(0 0 0 var(--pos));
}
.compare__divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 3.78px;
  background: var(--white);
  box-shadow: 1.89px 3.78px 9.46px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%;
  left: var(--pos);
  width: 45.41px; height: 45.41px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.compare__label {
  position: absolute;
  bottom: 17.5px;
  display: flex;
  align-items: center;
  height: 36.51px;
  padding: 5.96px 17.88px;
  border-radius: 44.71px;
  background: var(--black);
  color: var(--white);
  font-size: 14.9px;
  line-height: 20.87px;
  font-weight: 700;
  pointer-events: none;
}
.compare__label--before { left: 18px; }
.compare__label--after { right: 27px; }
.compare__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ==========================================================================
   TÉMOIGNAGES
   ========================================================================== */
.reviews { padding-block: 64px; background: var(--black); color: var(--white); }
.reviews .section-head { max-width: 786px; margin: 0 auto 48px; }
.reviews__rating { display: flex; align-items: center; gap: 16px; }
.reviews__stars { display: flex; gap: 8px; }
.reviews__stars img { width: 24px; height: 24px; }
.reviews__score { font-family: var(--font-worksans); font-size: 20px; line-height: 28px; font-weight: 700; }
/* Widget Elfsight Google Reviews : réserve la hauteur pendant le chargement */
.reviews__widget { width: 100%; min-height: 240px; }

/* ==========================================================================
   ZONES DESSERVIES
   ========================================================================== */
.zones { padding-block: 60.5px; background: var(--light-bg); }
.zones__grid { display: flex; align-items: center; gap: 123px; }
.zones__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 525px;
  flex: none;
}
.zones__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.zones__head .text { line-height: 26px; max-width: 517px; }
.zones__chips { display: flex; flex-wrap: wrap; gap: 16px; max-width: 484px; }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--chip-bg);
  color: var(--chip-text);
}
.chip img { width: 20px; height: 20px; }
.chip--laval { width: 163.83px; }
.chip--wide { width: 276px; }
.zones__map {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 632 / 555;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 1.89px 3.78px 9.46px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.zones__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  position: relative;
  padding-block: 64px;
  background: var(--black);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.contact__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.19; }
.contact__inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 93px;
  min-height: 517px;
  padding-block: 30px;
}
.contact__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 35px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 643px;
  min-height: 261px;
}
.contact__title { font-size: 38px; line-height: 45px; font-weight: 700; color: var(--yellow); }
.contact__body .text { line-height: 22px; }
.contact__social img { width: 24px; height: 22.6px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding-block: 64px 36px; background: var(--black); color: var(--white); }
.footer__top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 34px; width: 375px; }
.footer__brand img { width: 157px; height: 157px; margin-bottom: -3px; }
.footer__brand p { font-size: 18px; line-height: 22px; font-weight: 500; }
.footer__cols { display: flex; gap: 212px; }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col--links { width: 193px; }
.footer__col--contact { width: 308px; }
.footer__heading {
  font-family: var(--font-worksans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 5px;
  font-family: var(--font-worksans);
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--yellow); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; font-family: var(--font-worksans); }
.footer__contact li { display: flex; align-items: center; gap: 8px; }
.footer__contact img { width: 20px; height: 20px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 33px;
  border-top: 1px solid var(--white-20);
}
.footer__bottom img { width: 67.04px; height: 21.67px; }
.footer__bottom p {
  font-family: var(--font-worksans);
  font-size: 14px;
  line-height: 20px;
  color: var(--white-70);
}

/* ==========================================================================
   PAGE MERCI
   ========================================================================== */
.thanks-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--black); }
.thanks {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 900px;
  padding: 48px var(--gutter);
  isolation: isolate;
  overflow: hidden;
}
.thanks__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0) 62.667%),
    linear-gradient(rgba(0, 0, 0, 0.59), rgba(0, 0, 0, 0.59)),
    url("../assets/img/stationnement-lignes.jpg") center 50% / cover no-repeat;
}
.thanks__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 33px;
  width: 576px;
  max-width: 100%;
  min-height: 461px;
  padding: 24px;
  position: relative;
  border: 2px solid var(--white);
  color: var(--white);
  text-align: center;
}
/* Le flou est porté par un pseudo-élément pour que le logo (mix-blend-mode) se fonde dans la photo */
.thanks__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.thanks__logo { width: 105px; height: 105px; }
.thanks__text { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 464px; font-family: var(--font-poppins); }
.thanks__title { font-size: 54.35px; line-height: 57.06px; font-weight: 700; }
.thanks__lead { font-size: 18px; line-height: 25.2px; color: var(--white-80); }
.thanks__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 10px 26px;
  border: 2px solid var(--white);
  background: var(--yellow);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.35px;
  color: var(--white);
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.thanks__phone:hover,
.thanks__phone:focus-visible {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -8px rgba(246, 180, 4, 0.55);
}
.thanks__phone img { transition: transform 0.25s; }
.thanks__phone:hover img { transform: rotate(-12deg) scale(1.1); }
.thanks__phone img { width: 16px; height: 16px; }

.thanks-footer { padding-block: 17px; background: var(--black); color: var(--white-80); }
.thanks-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.thanks-footer img { width: 98.99px; height: 32px; }
.thanks-footer p { font-size: 16px; line-height: normal; font-weight: 300; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- Laptop (≤ 1328px) : les colonnes fixes deviennent fluides --- */
@media (max-width: 1328px) {
  .about__media,
  .solutions__media,
  .why__media,
  .tracage__media { width: auto; flex: 1 1 52%; min-width: 0; }
  .about__body,
  .solutions__body,
  .why__body { width: auto; flex: 1 1 46%; }
  .tabs__copy { width: auto; flex: 1 1 45%; }
  .tracage__media { flex-basis: 58%; }
  .gallery__tiles, .compare { width: auto; flex: 1 1 0; }
  .zones__grid { gap: 64px; }
  .footer__cols { gap: 96px; }
  .contact__inner { gap: 48px; padding-inline: 0; }
  .contact__body { width: auto; flex: 1 1 0; }
}

/* --- Tablette paysage (≤ 1180px) : menu burger --- */
@media (max-width: 1180px) {
  .nav__toggle { display: inline-flex; }
  .nav__right {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    background: var(--black);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open .nav__right { opacity: 1; visibility: visible; transform: none; }
  /* En-tête collant : le menu se colle sous la barre, pleine largeur */
  .site-header.is-stuck .nav__right {
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    padding-inline: calc(24px + var(--gutter));
  }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 18px; line-height: 40px; }
  .nav__phone { width: auto; justify-content: center; height: 48px; }

  .hero__content { flex-direction: column; align-items: stretch; gap: 48px; margin-top: 48px; padding-bottom: 64px; }
  .hero__text { width: 100%; max-width: 720px; }
  .hero .quote-form { align-self: flex-start; }

  .tabs__tab { font-size: 17px; }
}

/* --- Tablette (≤ 991px) : sections en une colonne --- */
@media (max-width: 991px) {
  .about__grid,
  .solutions__grid,
  .why__grid,
  .zones__grid,
  .tracage__grid,
  .gallery__grid { flex-direction: column; align-items: stretch; gap: 40px; }
  .about__media,
  .solutions__media,
  .why__media,
  .tracage__media,
  .gallery__tiles,
  .compare,
  .zones__map,
  .about__body,
  .solutions__body,
  .why__body,
  .tracage__list { width: 100%; flex: none; }
  /* Une colonne : le texte avant l'image pour À propos, Solutions et Avantages */
  .about__media,
  .solutions__media,
  .why__media { order: 1; }
  .zones__body { width: 100%; }
  .zones__chips { max-width: none; }

  .tracage { padding-block: 72px; }
  .tracage__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tracage__title-wrap { width: 100%; }
  .tracage__media { aspect-ratio: 760 / 560; }

  .tabs__list { flex-direction: column; gap: 8px; }
  .tabs__tab { flex: none; font-size: 18px; }
  .tabs__panel { flex-direction: column-reverse; gap: 32px; padding: 32px; }
  .tabs__copy { gap: 32px; width: 100%; }
  .tabs__media { width: 100%; flex: none; }

  .solutions, .why, .gallery { padding-block: 64px; }

  .contact__inner { flex-direction: column-reverse; align-items: stretch; min-height: 0; padding: 0; }
  .contact__inner { gap: 40px; }
  .contact__body { width: 100%; max-width: none; flex: none; min-height: 0; gap: 24px; }

  .footer__top { flex-direction: column; gap: 40px; }
  .footer__brand { width: auto; }
  .footer__cols { gap: 64px; }
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
  :root { --gutter: 16px; }

  .h2 { font-size: 28px; line-height: 34px; }
  .eyebrow { font-size: 16px; line-height: 13px; }
  .text { font-size: 15px; line-height: 23px; }

  .btn { height: 52px; padding-inline: 18px; font-size: 16px; letter-spacing: 0.5px; white-space: normal; text-align: center; line-height: 20px; }
  .btn--hero { height: 52px; }

  .hero { min-height: 0; }
  .hero__shade { width: 100%; }
  .hero { --header-h: 85px; }
  .nav__logo img { width: 80px; height: 80px; }
  .site-header.is-stuck .nav__logo img { width: 64px; height: 64px; }
  .hero__content { margin-top: 24px; padding-bottom: 48px; gap: 36px; }
  .hero__text { gap: 32px; }
  .hero__title { font-size: 28px; line-height: 35px; }
  .hero__lead { font-size: 16px; line-height: 23px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero .quote-form { align-self: stretch; }

  .quote-form { --qf-pad: 16px; --qf-gap: 12px; --qf-field-pad: 14px; width: 100%; }
  .quote-form__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .quote-form__field { font-size: 16px; } /* évite le zoom iOS */
  .quote-form__field:not(textarea) { height: 48px; }

  .about, .services, .solutions, .why, .reviews, .zones, .contact, .gallery { padding-block: 48px; }
  .tracage { padding-block: 48px; }
  .about__grid, .solutions__grid, .why__grid, .zones__grid, .tracage__grid, .gallery__grid { gap: 32px; }
  .about__body, .solutions__body { gap: 22px; }
  .check { font-size: 16px; line-height: 23px; gap: 12px; }
  .check img { margin-top: 2px; }

  .services .section-head,
  .gallery .section-head,
  .reviews .section-head { margin-bottom: 32px; }
  .tabs__tab { height: 52px; font-size: 16px; }
  .tabs__tab[aria-selected="true"] .tabs__icon { width: 32px; height: 32px; }
  .tabs__panel { padding: 20px; gap: 24px; }
  .tabs__copy h3 { font-size: 22px; line-height: 30px; margin-bottom: 8px; }
  .tabs__copy { gap: 24px; }
  .tabs__copy .btn { width: 100%; }

  .tracage__head { margin-bottom: 32px; }
  .tracage__media { aspect-ratio: 4 / 3; }
  .tracage__list { gap: 12px; }
  .tracage__list .btn { width: 100%; margin-top: 8px; }
  .step { padding: 18px; gap: 12px; }
  .step__icon { width: 36px; height: 36px; }
  .step__title { font-size: 20px; line-height: 26px; margin-bottom: 4px; }
  .step__desc { font-size: 16px; line-height: 23px; }

  .solutions__body .btn, .about__body .btn, .why__body .btn, .zones__body .btn { width: 100%; }

  .why__body { gap: 32px; }
  .why__title { font-size: 30px; line-height: 37px; }
  .why__item { align-items: flex-start; gap: 14px; }
  .why__item p { font-size: 15px; line-height: 22px; }

  .gallery__tiles { gap: 10px; }
  .gallery__grid { gap: 10px; }
  .compare__label { height: 32px; padding-inline: 14px; font-size: 13px; bottom: 12px; }
  .compare__label--before { left: 12px; }
  .compare__label--after { right: 12px; }

  .reviews__rating { gap: 10px; }
  .reviews__stars { gap: 4px; }
  .reviews__stars img { width: 20px; height: 20px; }
  .reviews__score { font-size: 18px; }

  .zones__chips { gap: 10px; }
  .chip { padding: 12px 14px; font-size: 15px; }
  .chip--laval, .chip--wide { width: auto; }
  .zones__map { aspect-ratio: 4 / 3.4; }

  .contact__title { font-size: 28px; line-height: 34px; }

  .footer { padding-top: 48px; }
  .footer__brand { gap: 20px; }
  .footer__brand img { width: 120px; height: 120px; }
  .footer__cols { flex-direction: column; gap: 32px; }
  .footer__col--links, .footer__col--contact { width: auto; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; padding-top: 24px; }
  .footer__bottom p { text-align: left; }

  .thanks { min-height: 0; padding-block: 64px; }
  .thanks__card { min-height: 0; padding: 40px 20px; gap: 24px; }
  .thanks__logo { width: 88px; height: 88px; }
  .thanks__title { font-size: 40px; line-height: 44px; }
  .thanks__lead { font-size: 16px; line-height: 23px; }
  .thanks-footer .container { flex-direction: column; gap: 10px; }
  .thanks-footer p { font-size: 14px; }
}

/* ==========================================================================
   PAGE POLITIQUE DE CONFIDENTIALITÉ
   ========================================================================== */
.hero--page { min-height: 0; }
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 760px;
  padding-block: 56px 88px;
}
.page-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  padding: 2px 8px;
  border-left: 2px solid var(--yellow);
  list-style: none;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--yellow);
}
.page-hero__crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--white-70); }
.page-hero__crumbs a { color: var(--white); transition: color 0.2s; }
.page-hero__crumbs a:hover { color: var(--yellow); }
.page-hero__date { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--white-70); }

.legal { padding-block: 86px; background: var(--white); }
.legal__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* Sommaire */
.legal__toc {
  position: sticky;
  top: 120px;
  padding: 24px;
  background: var(--light-bg);
  border-left: 4px solid var(--yellow);
}
.legal__toc-toggle { display: none; }
.legal__toc-title { margin-bottom: 20px; }
.legal__toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.legal__toc-list li { counter-increment: toc; }
.legal__toc-list a {
  display: flex;
  gap: 10px;
  padding: 6px 8px;
  font-size: 15px;
  line-height: 21px;
  color: var(--chip-text);
  transition: background 0.2s, color 0.2s;
}
.legal__toc-list a::before {
  content: counter(toc) ".";
  flex: none;
  min-width: 22px;
  font-weight: 700;
  color: var(--black);
}
.legal__toc-list a:hover { background: var(--chip-bg); color: var(--black); }
.legal__toc-list a.is-active { background: var(--black); color: var(--white); }
.legal__toc-list a.is-active::before { color: var(--yellow); }

/* Contenu */
.legal__section {
  padding-block: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scroll-margin-top: 120px;
}
.legal__section:first-child { padding-top: 0; }
.legal__section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
}
.legal__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  background: var(--yellow);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.legal__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 57px;
}
.legal__content a:not(.btn) {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.legal__content a:not(.btn):hover { color: #b78600; }
.legal__list { display: flex; flex-direction: column; gap: 10px; }
.legal__list .check { font-family: var(--font-inter); font-size: 16px; line-height: 24px; }
.legal__list .check img { margin-top: 3px; }
.legal__note {
  padding: 14px 18px;
  border-left: 4px solid var(--yellow);
  background: var(--light-bg);
  font-weight: 600;
}
.legal__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-worksans);
}
.legal__card li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal__card img { flex: none; width: 20px; height: 20px; }
.legal__card-label { min-width: 84px; color: var(--white-70); }
.legal__content .legal__card a { color: var(--white); text-decoration: none; font-weight: 500; }
.legal__content .legal__card a:hover { color: var(--yellow); }

/* Lien légal (footer + consentement) */
.footer__legal { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal:hover { color: var(--yellow); }
.quote-form__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.quote-form__consent a:hover { color: var(--black); }
.thanks-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .page-hero { padding-block: 40px 72px; }
}

@media (max-width: 991px) {
  .legal { padding-block: 56px; }
  .legal__grid { grid-template-columns: 1fr; gap: 40px; }
  .legal__toc { position: static; padding: 0; }
  .legal__toc-title { display: none; }
  .legal__toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .legal__toc-toggle::-webkit-details-marker { display: none; }
  .legal__toc-toggle::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s;
  }
  .legal__toc[open] .legal__toc-toggle::after { transform: rotate(-135deg) translateY(-3px); }
  .legal__toc-list { padding: 0 12px 16px; }
}

@media (max-width: 600px) {
  .page-hero { padding-block: 24px 48px; }
  .page-hero__crumbs { font-size: 14px; }
  .legal { padding-block: 40px; }
  .legal__section { padding-block: 32px; }
  .legal__heading { align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 21px; line-height: 28px; }
  .legal__num { width: 34px; height: 34px; font-size: 16px; margin-top: -3px; }
  .legal__content { padding-left: 0; gap: 14px; }
  .legal__list .check { font-size: 15px; line-height: 23px; gap: 12px; }
  .legal__card { padding: 20px 16px; }
  .legal__card-label { min-width: 0; width: 100%; order: -1; font-size: 14px; }
  .legal__content .btn { width: 100%; }
}

/* Formulaire : états de validation et message d'envoi (js/formulaire.js) */
.quote-form__field.is-invalid {
  outline: 1px solid #d93025;
  background-color: #fdecea;
}
.quote-form__field.is-invalid::placeholder,
select.quote-form__field.is-invalid:invalid { color: #b3261e; }
.quote-form__consent.is-invalid { color: #b3261e; }
.quote-form__consent.is-invalid input { outline: 1px solid #d93025; outline-offset: 1px; }
.quote-form__status {
  width: 100%;
  font-family: var(--font-poppins);
  font-size: var(--qf-font);
  line-height: 1.4;
}
.quote-form__status:empty { display: none; }
.quote-form__status.is-error {
  padding: 10px 14px;
  border-left: 4px solid #d93025;
  background: #fdecea;
  color: #8a1c13;
}
.quote-form__status.is-ok {
  padding: 10px 14px;
  border-left: 4px solid var(--yellow);
  background: var(--light-bg);
  color: var(--black);
}

/* Pas de déplacement au survol si le visiteur limite les animations */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn img, .nav__phone, .nav__phone img, .quote-form__submit, .thanks__phone, .thanks__phone img { transition: background-color 0.2s, color 0.2s; }
  .btn:hover, .btn:focus-visible, .nav__phone:hover, .quote-form__submit:hover, .thanks__phone:hover,
  .btn:hover img, .nav__phone:hover img, .thanks__phone:hover img { transform: none; }
}

/* ==========================================================================
   GALERIE : vignettes cliquables + visionneuse (js/main.js)
   ========================================================================== */
a.gallery__tile { display: block; cursor: zoom-in; }
a.gallery__tile > img { transition: transform 0.4s ease; }
a.gallery__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}
a.gallery__tile::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  background: var(--yellow) no-repeat center / 24px 24px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}
a.gallery__tile:hover > img,
a.gallery__tile:focus-visible > img { transform: scale(1.06); }
a.gallery__tile:hover::before,
a.gallery__tile:focus-visible::before,
a.gallery__tile:hover::after,
a.gallery__tile:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 72px 88px 32px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
/* visible tout de suite à l'ouverture pour que le bouton Fermer puisse recevoir le focus */
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s, visibility 0s; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  max-height: calc(100svh - 120px);
  object-fit: contain;
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.25s;
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  background: var(--yellow);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible { background: var(--yellow-dark); transform: translateY(-2px); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
.lightbox__prev:hover, .lightbox__next:hover { transform: none; background: var(--yellow-dark); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .lightbox { padding: 64px 12px 96px; }
  .lightbox__img { max-height: calc(100svh - 170px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) {
  a.gallery__tile > img, .lightbox, .lightbox__img, a.gallery__tile::after { transition: none; }
}
