/* M-Motors — atelier sombre : grandes photos de studio, titres en serif, petites capitales espacées */
:root {
  --night: #1d1e21;        /* fond principal : gris foncé */
  --night-2: #26272b;      /* fond des sections alternées */
  --glow: #34363d;         /* haut du dégradé */
  --ivory: #efebe4;        /* texte principal, comme le blanc cassé du titre */
  --ash: #a29e97;          /* texte secondaire */
  --line: rgba(239, 235, 228, 0.14);
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(180deg, var(--glow) 0%, var(--night) 35%, #18191c 100%);
  color: var(--ivory);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }

h2 {
  font: 400 clamp(40px, 5.6vw, 76px)/1 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 em { color: var(--ash); }

.label {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 28px;
}

/* Boutons et liens */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  border: 1px solid var(--ivory);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover, .btn--light { background: var(--ivory); color: var(--night); }
.btn--light:hover { background: transparent; color: var(--ivory); }
.link {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ivory);
  padding-bottom: 6px;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px));
  transition: background .4s, padding .4s;
  animation: fade 1.2s .2s both;
}
.nav.is-solid { background: rgba(29, 30, 33, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 10px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.nav__left { display: flex; gap: 34px; }
.nav__left a, .nav__cta {
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 235, 228, 0.82);
  transition: color .2s;
}
.nav__left a:hover, .nav__cta:hover { color: var(--ivory); }
.nav__logo img { height: 58px; width: auto; transition: height .4s; }
.nav.is-solid .nav__logo img { height: 46px; }
.nav__cta { justify-self: end; display: inline-flex; align-items: center; gap: 18px; }
.nav__cta i { width: 34px; height: 1px; background: currentColor; transition: width .3s; }
.nav__cta:hover i { width: 50px; }
.nav__burger { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: var(--night);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 100px max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.menu[hidden] { display: none; }
.menu a { font: 400 42px/1.2 var(--serif); }
.menu .menu__tel { margin-top: 28px; font: 500 13px/1 var(--sans); letter-spacing: .28em; color: var(--ash); }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  background: #000;
}
.hero__media { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 60%; }
.hero__shade { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; }
.hero__title em { font-style: italic; color: var(--ivory); }
.hero__media img, .hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  animation: settle 3.2s cubic-bezier(.2, .7, .2, 1) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 58%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse 70% 60% at 50% 100%, transparent 40%, rgba(0,0,0,.5) 100%);
}
.hero__light {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -10%;
  width: min(900px, 120vw);
  height: 85%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 32% 70% at 50% 0%, rgba(255,255,255,.16), rgba(255,255,255,.04) 55%, transparent 75%);
  pointer-events: none;
  animation: light 2.6s .3s both, breathe 7s 3s ease-in-out infinite;
}
.hero__content {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 18vh 16px 6vh;
}
.hero__title {
  font: 400 clamp(52px, 8.2vw, 132px)/0.95 var(--serif);
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.hero__title span { display: block; text-wrap: balance; animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero__title span:nth-child(1) { animation-delay: .5s; }
.hero__title span:nth-child(2) { animation-delay: .75s; }
.hero__foot { display: grid; justify-items: center; gap: 26px; animation: fade 1.4s 1.5s both; }
.hero__foot p {
  font: 400 12px/2.1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 235, 228, 0.82);
}
.hero__foot i { width: 44px; height: 1px; background: rgba(239, 235, 228, 0.6); }

@keyframes settle { from { transform: scale(1.14); filter: brightness(.4); } to { transform: scale(1); filter: brightness(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes light { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 50% { opacity: .7; } }

/* ---------- Sections ---------- */
section:not(.hero) {
  padding-block: clamp(90px, 13vw, 170px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
section > * { max-width: 1320px; margin-inline: auto; }

/* L'agence */
.intro__big {
  font: 400 clamp(30px, 3.6vw, 52px)/1.15 var(--serif);
  max-width: 1100px;
  margin-left: 0;
  text-wrap: pretty;
}
.intro__big em { color: var(--ash); }
.intro .label, .intro__big, .intro__cols { margin-left: max(0px, calc((100% - 1320px) / 2)); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 72px 0 0; margin-left: max(0px, calc((100% - 1320px) / 2)); max-width: 900px; border-top: 1px solid var(--line); padding-top: 32px; }
.facts dt { font: 400 clamp(44px, 5vw, 68px)/1 var(--serif); }
.facts a:hover { color: var(--ivory); opacity: .75; }
.hero__foot a { border-bottom: 1px solid rgba(239,235,228,.4); }
.hero__foot a:hover { border-color: var(--ivory); }
.inline-link { color: var(--ivory); border-bottom: 1px solid var(--line); }
.visit__info .link + .link { margin-left: 28px; }
.facts dt span { font-size: .6em; vertical-align: .25em; }
.facts dd { margin: 10px 0 0; font: 500 11px/1.5 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ash); }
.intro__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 48px; margin-top: 64px; color: var(--ash); }

/* Véhicules */
.range { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); border-block: 1px solid var(--line); }
.range__head { display: grid; margin-bottom: 64px; }
.range__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.range figure { margin: 0; display: grid; gap: 16px; align-content: start; }
.range__ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.range__ph img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 75%; filter: brightness(.9) saturate(.95); transition: filter .6s; will-change: transform; }
.range figure:hover img { filter: none; }
.range figcaption { display: grid; gap: 6px; }
.range figcaption span { font: 400 28px/1.05 var(--serif); }
.range figcaption small { font: 400 11px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.range__note { margin-top: 36px; color: var(--ash); font-size: 15px; }

/* Dépôt-vente */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.process__head { display: grid; gap: 0; position: sticky; top: 120px; }
.process__head > p:not(.label) { color: var(--ash); max-width: 400px; margin: 32px 0 40px; }
.process__head .btn { justify-self: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 90px 1fr; column-gap: 24px; padding: 38px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { grid-row: span 2; font: italic 400 34px/1 var(--serif); color: var(--ash); }
.steps h3 { font: 400 36px/1.05 var(--serif); margin-bottom: 10px; }
.steps p { color: var(--ash); max-width: 480px; }

/* Recherche */
.search { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: flex-end; background: #000; }
.search__img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .6; will-change: transform; }
.search::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.85)); }
.search__content { position: relative; z-index: 2; width: 100%; display: grid; justify-items: start; }
.search__content > p:not(.label) { max-width: 520px; color: rgba(239,235,228,.78); margin: 28px 0 40px; }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font: 400 26px/1.2 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 1px solid var(--ash); border-bottom: 1px solid var(--ash); transform: translateY(-75%) rotate(45deg); transition: transform .3s; }
details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
details p { color: var(--ash); padding-bottom: 28px; max-width: 620px; }

/* Horaires */
.visit { background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.045)); border-block: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 100px); }
address { font-style: normal; color: var(--ash); margin: 36px 0 22px; line-height: 1.8; }
.visit__status { margin-top: 48px; font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.visit__status i { width: 7px; height: 7px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 4px rgba(95,211,138,.15); }
.visit__status.is-closed i { background: var(--ash); box-shadow: none; }
.hours { width: 100%; border-collapse: collapse; margin-top: 24px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 300; text-align: left; }
.hours td { text-align: right; color: var(--ash); }
.hours tr.today th, .hours tr.today td { color: var(--ivory); font-weight: 500; }
.visit__map { min-height: 520px; background: #2a2b30; overflow: hidden; }
.visit__map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: grayscale(1) invert(.9) contrast(.85); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); }
.contact__lead { color: var(--ash); max-width: 380px; margin-top: 24px; }
.contact dl { margin: 48px 0 0; display: grid; gap: 22px; }
.contact dt { font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ash); margin-bottom: 8px; }
.contact dd { margin: 0; font: 400 28px/1.1 var(--serif); overflow-wrap: anywhere; }
.contact dd a:hover { color: var(--ash); }

.form { display: grid; gap: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form label > span, .choice legend { display: block; font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; padding: 0; }
.form input, .form textarea {
  width: 100%;
  font: 300 18px/1.4 var(--sans);
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 12px;
  transition: border-color .3s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ivory); }
.form .invalid { border-color: #d46a6a; }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { margin-bottom: 14px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); font: 400 14px/1 var(--sans); color: var(--ash); transition: all .2s; }
.choice input:checked + span { border-color: var(--ivory); color: var(--ivory); }
.choice input:focus-visible + span { outline: 1px solid var(--ivory); outline-offset: 3px; }
.form .btn { justify-self: start; }
.form__msg { font-size: 15px; min-height: 1em; }
.form__msg.ok { color: #8fd6a8; }
.form__msg.err { color: #e08c8c; }

/* Pied de page */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  color: var(--ash);
  font-size: 14px;
}
.footer img { height: 90px; width: auto; margin-bottom: 18px; }
.footer a:hover { color: var(--ivory); }
.footer__legal { margin-top: 28px; font-size: 12px; letter-spacing: .1em; }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  .nav__left a { letter-spacing: .2em; }
  .nav__left { gap: 22px; }
  .range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process, .faq, .visit, .contact { grid-template-columns: minmax(0, 1fr); }
  .process__head { position: static; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__left, .nav__cta { display: none; }
  .nav__logo img { height: 46px; }
  .nav.is-solid .nav__logo img { height: 40px; }
  .nav__burger {
    display: block; justify-self: end; position: relative; z-index: 40;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav__burger span, .nav__burger span::before { position: absolute; left: 9px; width: 26px; height: 1px; background: var(--ivory); content: ""; transition: transform .3s, top .3s; }
  .nav__burger span { top: 18px; }
  .nav__burger span::before { left: 0; top: 8px; }
  .nav__burger[aria-expanded="true"] span { top: 22px; transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }

  .hero__content { padding-top: 22vh; }
  .hero__media img, .hero__video { object-position: 50% 55%; }
  .hero__foot p { font-size: 11px; letter-spacing: .22em; }
  .intro__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  .facts { gap: 12px; margin-top: 48px; }
  .facts dd { letter-spacing: .14em; }
  .range__grid { gap: 28px 10px; }
  .range figcaption span { font-size: 22px; }
  .steps li { grid-template-columns: 56px 1fr; padding: 30px 0; }
  .steps h3 { font-size: 30px; }
  .search { min-height: 80vh; }
  summary { font-size: 22px; }
  .visit__map, .visit__map iframe { min-height: 360px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form .btn { justify-self: stretch; justify-content: center; }
  .contact dd { font-size: 24px; }
}

/* ---------- Animations au défilement ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.anim [data-reveal].is-in { opacity: 1; transform: none; }
.anim .range__grid figure[data-reveal]:nth-child(2), .anim .steps li[data-reveal]:nth-child(2) { transition-delay: .1s; }
.anim .range__grid figure[data-reveal]:nth-child(3), .anim .steps li[data-reveal]:nth-child(3) { transition-delay: .2s; }
.anim .range__grid figure[data-reveal]:nth-child(4), .anim .steps li[data-reveal]:nth-child(4) { transition-delay: .3s; }
.anim .range__grid figure[data-reveal] { clip-path: inset(18% 0 0 0); transition-property: opacity, transform, clip-path; }
.anim .range__grid figure[data-reveal].is-in { clip-path: inset(0 0 0 0); }
.intro__big .w { transition: color .35s; }
.anim .intro__big .w { color: rgba(239, 235, 228, 0.16); }
.anim .intro__big .w.on { color: var(--ivory); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Lien d'évitement (clavier) */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ivory); color: var(--night); font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Voitures de l'agence */
.gallery__head { display: grid; margin-bottom: 48px; }
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 22%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.gallery__track figure { margin: 0; scroll-snap-align: start; display: grid; gap: 14px; }
.gallery__track img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; filter: brightness(.9) saturate(.9); transition: filter .5s; }
.gallery__track figure:hover img { filter: none; }
.gallery__track figcaption { font: 500 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 760px) {
  .gallery__track { grid-auto-columns: 72%; }
}

/* ---------- Fiche d'estimation ---------- */
.hero__cta { margin-top: 6px; }
.est {
  width: min(880px, 100% - 32px);
  max-height: min(92vh, 1100px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--night-2);
  color: var(--ivory);
  overflow: auto;
  overscroll-behavior: contain;
}
.est::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.est[open] { animation: est-in .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes est-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.est__form { display: grid; gap: 40px; padding: clamp(24px, 4vw, 48px); }
.est__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.est__top .label { margin-bottom: 14px; }
.est__top h2 { font-size: clamp(36px, 5vw, 56px); }
.est__close { background: none; border: 1px solid var(--line); color: var(--ivory); width: 44px; height: 44px; font: 300 26px/1 var(--sans); cursor: pointer; flex: none; }
.est__close:hover { border-color: var(--ivory); }
.est__block { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; }
.est__block legend { font: 400 26px/1.1 var(--serif); padding: 0; margin-bottom: 22px; }
.est__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.est__wide { grid-column: 1 / -1; }
.est label > span { display: block; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; }
.est input:not([type="file"]), .est select, .est textarea {
  width: 100%;
  font: 300 17px/1.4 var(--sans);
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 12px;
}
.est select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.est select option { background: var(--night-2); color: var(--ivory); }
.est input:focus, .est select:focus, .est textarea:focus { outline: none; border-color: var(--ivory); }
.est .invalid { border-color: #d46a6a !important; }
.est__hint { color: var(--ash); font-size: 15px; margin-top: -10px; }
.est__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.est__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.est__photo { position: relative; display: grid; gap: 10px; cursor: pointer; }
.est__photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.est__thumb { aspect-ratio: 3 / 4; border: 1px dashed rgba(239, 235, 228, .3); background: rgba(255, 255, 255, .02) center / cover no-repeat; display: grid; place-items: center; transition: border-color .2s; }
.est__thumb::after { content: "+"; font: 200 34px/1 var(--sans); color: var(--ash); }
.est__photo.has-img .est__thumb { border-style: solid; border-color: var(--line); }
.est__photo.has-img .est__thumb::after { content: none; }
.est__photo:hover .est__thumb, .est__photo input:focus-visible + .est__thumb { border-color: var(--ivory); }
.est__photo.invalid .est__thumb { border-color: #d46a6a; }
.est__photo b { font: 500 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.est__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.est__msg { font-size: 15px; color: var(--ash); max-width: 460px; }
.est__msg.err { color: #e08c8c; }
.est__foot .btn[disabled] { opacity: .5; cursor: wait; }

@media (max-width: 760px) {
  .est { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; }
  .est__form { padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
  .est__grid { grid-template-columns: minmax(0, 1fr); }
  .est__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est__foot .btn { width: 100%; justify-content: center; }
}
