/* ==========================================================================
   Menuiserie Bellanger, Le Pallet (44330)
   Maquette Meriova. Direction : atelier-graphite.
   Thème verrouillé sombre. Accent unique vermillon, repris des menuiseries
   et volets rouges présents dans les réalisations photographiées du client.
   Aucune dépendance distante : polices embarquées, aucun script tiers.
   ========================================================================== */

/* --- Polices embarquées (OFL, fichiers dans assets/fonts/) ---------------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/publicsans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/publicsans-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* --- Jetons -------------------------------------------------------------- */
:root {
  --ground: #16181b;
  --ground-2: #1c1f23;
  --surface: #24282d;
  --surface-hi: #2c3138;
  --line: rgba(236, 234, 230, 0.12);
  --line-strong: rgba(236, 234, 230, 0.24);
  --bone: #eceae6;
  --bone-dim: #b0b4b8;
  --bone-faint: #868b91;
  --accent: #e2503a;
  --accent-hi: #f4664e;
  --accent-ink: #16181b;

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;

  /* Échelle de rayons documentée :
     boutons et pastilles = pill, cartes et médias = 14px, champs = 10px. */
  --r-card: 14px;
  --r-field: 10px;

  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-banner: 30;
  --z-nav: 20;
  --z-grain: 40;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* --- Bandeau maquette ---------------------------------------------------- */
.preview-banner {
  position: relative;
  z-index: var(--z-banner);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
}
.preview-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding-block: 0.6rem;
}
.preview-banner strong {
  font-weight: 700;
}
.preview-banner a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* --- Navigation ---------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(22, 24, 27, 0.86);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.12;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}
.brand__kind {
  font-size: 0.6875rem;
  color: var(--bone-faint);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--bone-dim);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav a:hover {
  color: var(--bone);
}
.nav__tel {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bone) !important;
  font-variant-numeric: tabular-nums;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) {
  top: 17px;
}
.nav-toggle span:nth-child(2) {
  top: 25px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.8rem 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.985);
}
.btn__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.4s var(--ease), background-color 0.35s var(--ease);
}
.btn__icon svg {
  width: 15px;
  height: 15px;
  display: block;
}
.btn:hover .btn__icon {
  transform: translate(2px, -1px) scale(1.05);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary .btn__icon {
  background: rgba(22, 24, 27, 0.14);
}
.btn--primary:hover {
  background: var(--accent-hi);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-strong);
}
.btn--ghost .btn__icon {
  background: rgba(236, 234, 230, 0.1);
}
.btn--ghost:hover {
  border-color: var(--bone-faint);
  background: rgba(236, 234, 230, 0.05);
}

/* --- Rythme des sections ------------------------------------------------- */
.section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.section__title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  max-width: 20ch;
}
.section__lede {
  margin-top: 1.5rem;
  max-width: 62ch;
  color: var(--bone-dim);
  font-size: 1.0625rem;
}

/* --- Héros --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78svh, 720px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(4rem, 12vw, 6rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(15, 17, 19, 0.94) 0%,
      rgba(15, 17, 19, 0.82) 40%,
      rgba(15, 17, 19, 0.4) 72%,
      rgba(15, 17, 19, 0.28) 100%
    ),
    linear-gradient(to top, rgba(15, 17, 19, 0.9), rgba(15, 17, 19, 0) 55%);
}
.hero__inner {
  max-width: 54rem;
}
/* Titre calé sur la colonne : deux lignes exactement à 1440 px, le saut de
   ligne du balisage sépare les deux métiers. */
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.hero__accent {
  color: var(--accent);
}
.hero__lede {
  margin-top: 1.6rem;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--bone-dim);
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --- Bande de repères ---------------------------------------------------- */
.marks {
  border-block: 1px solid var(--line);
  background: var(--ground-2);
}
.marks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.marks__item {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  padding-right: 1.5rem;
}
.marks__item + .marks__item {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
}
.marks__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.marks__label {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--bone-faint);
  line-height: 1.4;
}

/* --- Deux savoir-faire (colonnes de texte) ------------------------------- */
.trades__head {
  max-width: 52rem;
}
.trades__cols {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.trade h3 {
  font-size: 1.375rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent);
  display: inline-block;
}
.trade p {
  margin-top: 1rem;
  color: var(--bone-dim);
}
.trade ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.trade li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--bone-dim);
  font-size: 0.9688rem;
}
.trade li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

/* --- Bento savoir-faire -------------------------------------------------- */
.crafts {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.craft {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: border-color 0.45s var(--ease);
}
.craft:hover {
  border-color: var(--line-strong);
}
.craft img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.craft:hover img {
  transform: scale(1.04);
}
.craft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(16, 18, 20, 0.94) 8%,
    rgba(16, 18, 20, 0.6) 48%,
    rgba(16, 18, 20, 0.18) 100%
  );
}
.craft__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.craft h3 {
  font-size: 1.25rem;
}
.craft p {
  margin-top: 0.55rem;
  font-size: 0.9375rem;
  color: var(--bone-dim);
  max-width: 46ch;
}
.craft--wide {
  grid-column: span 4;
  min-height: 340px;
}
.craft--tall {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 340px;
}
.craft--half {
  grid-column: span 2;
}
.craft--third {
  grid-column: span 3;
}

/* --- Bloc isolation (photo + texte) -------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__body p {
  margin-top: 1.4rem;
  color: var(--bone-dim);
}
.insulation-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.insulation-list li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
  color: var(--bone-dim);
}

/* --- Galerie ------------------------------------------------------------- */
/* Colonnes CSS plutôt qu'une grille : les photos gardent leur cadrage
   d'origine (portrait ou paysage) et aucune case ne reste vide. */
.gallery {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  column-count: 4;
  column-gap: 0.875rem;
}
.gallery figure {
  margin: 0 0 0.875rem;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  break-inside: avoid;
}
.gallery img {
  width: 100%;
  transition: transform 0.9s var(--ease);
}
.gallery figure:hover img {
  transform: scale(1.045);
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.panel {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.contact-lines {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}
.contact-lines div + div {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.contact-lines dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bone-faint);
  font-family: var(--font-display);
  font-weight: 600;
}
.contact-lines dd {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
}
.contact-lines a {
  color: var(--bone);
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: color 0.3s var(--ease);
}
.contact-lines a:hover {
  color: var(--accent-hi);
}
.contact-lines .tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Formulaire de démonstration, désactivé. */
.demo-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.demo-form__notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(226, 80, 58, 0.12);
  border: 1px solid rgba(226, 80, 58, 0.4);
  border-radius: var(--r-field);
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  color: var(--bone);
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-size: 0.8125rem;
  color: var(--bone-dim);
  font-weight: 600;
}
.field input,
.field textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--bone-dim);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.field input:disabled,
.field textarea:disabled {
  opacity: 1;
  color: var(--bone-faint);
  cursor: not-allowed;
  -webkit-text-fill-color: var(--bone-faint);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--bone-faint);
  opacity: 1;
}
.btn--disabled {
  background: var(--surface-hi);
  color: var(--bone-faint);
  border-color: var(--line-strong);
  cursor: not-allowed;
  padding-right: 1.5rem;
  justify-self: start;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
}

/* Bloc de transparence sur les informations non publiées. */
.unknowns {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: rgba(236, 234, 230, 0.02);
}
.unknowns h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}
.unknowns p {
  margin-top: 0.7rem;
  color: var(--bone-dim);
  font-size: 0.9375rem;
  max-width: 88ch;
}

/* --- Pied de page -------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ground-2);
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--bone-faint);
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: baseline;
  justify-content: space-between;
}
.site-foot a {
  color: var(--bone-dim);
  text-underline-offset: 3px;
}
.site-foot a:hover {
  color: var(--bone);
}
.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* --- Pages secondaires --------------------------------------------------- */
.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.page-head p {
  margin-top: 1.1rem;
  color: var(--bone-dim);
  max-width: 68ch;
}
.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.75rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose ul {
  margin-top: 1rem;
  color: var(--bone-dim);
}
.prose ul {
  padding-left: 1.1rem;
}
.prose li {
  margin-top: 0.45rem;
}
.prose a {
  color: var(--bone);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* Comparatif avant / après */
.compare {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.compare__col h2 {
  font-size: 1.25rem;
}
.compare__tag {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 0.6rem;
}
.compare__shot {
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  max-height: 620px;
}
.compare__shot img {
  width: 100%;
}
.compare__note {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--bone-faint);
}
.improvements {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.improvement {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ground-2);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.improvement h3 {
  font-size: 1.0625rem;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
  display: inline-block;
}
.improvement p {
  margin-top: 0.8rem;
  font-size: 0.9375rem;
  color: var(--bone-dim);
}
.mobile-pair {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.mobile-pair figure {
  margin: 0;
}
.mobile-pair img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.mobile-pair figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--bone-faint);
}

/* --- Animations d'entrée ------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Adaptations ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .crafts {
    grid-template-columns: repeat(4, 1fr);
  }
  .craft--wide,
  .craft--tall,
  .craft--half,
  .craft--third {
    grid-column: span 2;
    grid-row: auto;
    min-height: 280px;
  }
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ground-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .nav-toggle {
    display: block;
  }
  .marks__grid {
    grid-template-columns: 1fr 1fr;
  }
  .marks__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .marks__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .trades__cols,
  .split,
  .contact-grid,
  .compare,
  .improvements {
    grid-template-columns: 1fr;
  }
  .split__media {
    order: -1;
  }
  .compare__shot {
    max-height: 460px;
  }
}

@media (max-width: 640px) {
  .crafts {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    column-count: 2;
  }
  .craft--wide,
  .craft--tall,
  .craft--half,
  .craft--third {
    grid-column: span 2;
  }
  .gallery figure:nth-child(n + 9) {
    display: none;
  }
  .hero {
    min-height: auto;
    padding-block: 3.5rem 3rem;
  }
  /* Sur mobile le saut de ligne du balisage est retiré : le titre se répartit
     de lui-même sur trois lignes équilibrées plutôt que de laisser un mot
     seul. */
  .hero h1 br {
    display: none;
  }
  .hero h1 {
    font-size: 2.125rem;
  }
  .hero__scrim {
    background: linear-gradient(
      to top,
      rgba(15, 17, 19, 0.95) 30%,
      rgba(15, 17, 19, 0.78) 70%,
      rgba(15, 17, 19, 0.55) 100%
    );
  }
  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  .mobile-pair {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .site-foot__inner {
    flex-direction: column;
  }
}
