/* Direction artistique : documentation/DESIGN.md */

:root {
  --abyss: #0b1220;
  --night: #161f33;
  --blue: #1f6feb;
  --sky: #6aa5ff;
  --blue-deep: #1858c8;
  --mist: #e9ecef;
  --line: #d5dbe1;
  --slate: #4b5565;
  --on-dark: #b8c2d6;
  --todo: #ffe08a;
  --focus: var(--blue-deep);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-gap: clamp(3.5rem, 8vw, 6.5rem);
  --radius-block: 1.75rem;
  --radius-card: 1rem;
  --width-content: 72rem;
  --width-hero: 96rem;

  --font: ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  color-scheme: light;
  scroll-padding-top: 2rem;
  scroll-padding-bottom: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  background: #fff;
  color: var(--abyss);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  padding-bottom: 5.5rem;
}

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

a {
  color: var(--blue-deep);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p,
ul,
ol,
dl {
  margin: 0;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  z-index: 30;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: #fff;
  color: var(--abyss);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

.todo {
  background: var(--todo);
  color: var(--abyss);
  border-radius: 0.25rem;
  padding: 0 var(--space-1);
}

.note {
  color: var(--slate);
  font-size: 0.875rem;
}

/* Boutons */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.25rem;
  padding: var(--space-2) var(--space-6);
  border: 2px solid var(--abyss);
  border-radius: 999px;
  color: var(--abyss);
  font-weight: 600;
  text-decoration: none;
}

.button.call {
  padding-left: var(--space-2);
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.call::before,
.header-call::before {
  content: '';
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f6feb' d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11 11 0 0 0 3.5.56 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.2.2 2.4.56 3.5a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E")
    center / 1.1rem no-repeat;
}

.button:hover {
  background: var(--abyss);
  color: #fff;
}

.button.call:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.page-hero .button.quote:hover,
.footer-cta .button.quote:hover {
  background: #fff;
  color: var(--abyss);
}

.header-call:hover {
  background: var(--blue-deep);
}

.link-more {
  font-weight: 600;
}

/* En-tête : pilule collante dans le flux en mobile, flottante et fixe sur le hero en grand écran */

.site-header {
  --focus: var(--sky);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-3) var(--space-3) 0;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-block);
  background: var(--abyss);
  color: #fff;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.site-nav-list a {
  display: inline-block;
  padding: var(--space-1) 0;
}

@media (max-width: 63.99rem) {
  .site-header {
    position: sticky;
    z-index: 30;
    top: var(--space-3);
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  }

  .nav-toggle {
    position: absolute;
    opacity: 0;
  }

  .nav-button {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 var(--space-5);
    border: 1px solid rgb(255 255 255 / 0.24);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
  }

  .nav-button::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    margin: -0.25rem 0 0 var(--space-2);
    border: solid currentcolor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-button {
    background: #fff;
    color: var(--abyss);
  }

  .nav-toggle:checked + .nav-button::after {
    margin-top: 0.25rem;
    transform: rotate(-135deg);
  }

  .nav-toggle:focus-visible + .nav-button {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: calc(100% + var(--space-2)) 0 auto;
    padding: var(--space-3);
    border-radius: var(--radius-card);
    background: var(--abyss);
    box-shadow: 0 0.5rem 1.5rem rgb(11 18 32 / 0.35);
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav-list {
    display: grid;
    gap: var(--space-1);
    font-size: 1rem;
  }

  .site-nav-list a {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--space-3);
  }

  .site-nav-list a:hover,
  .site-nav-list a[aria-current='page'] {
    background: rgb(255 255 255 / 0.1);
    text-decoration: none;
  }
}

.site-nav a[aria-current='page'],
.footer-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-nav-list a:hover,
.footer-nav a:hover {
  text-decoration: underline;
}

.header-call {
  position: fixed;
  z-index: 20;
  inset: auto var(--space-3) var(--space-3) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0.5rem 1.5rem rgb(11 18 32 / 0.35);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Pages */

.page {
  display: block;
}

.page > section:not(.page-hero) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  width: min(100% - 2 * var(--gutter), var(--width-content));
  margin: var(--section-gap) auto 0;
}

.page > section:not(.page-hero) > * + * {
  margin-top: var(--space-5);
}

.page > section:not(.page-hero) > h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-2);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-3);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.4;
  text-wrap: pretty;
}

.page > section:not(.page-hero) > h2::before {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
}

/* Emplacements média : visibles tant que le fichier n'existe pas */

[data-slot] {
  position: relative;
  overflow: hidden;
  margin: 0;
  background-color: #12203a;
}

[data-slot] :is(img, video) {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 0;
}

[data-slot] video {
  z-index: 2;
}

[data-slot] img::before {
  content: attr(id) ' · image à générer';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-5);
  background-color: #12203a;
  background-image:
    linear-gradient(rgb(106 165 255 / 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgb(106 165 255 / 0.14) 1px, transparent 1px);
  background-size: 2rem 2rem;
  outline: 1.5px dashed rgb(106 165 255 / 0.5);
  outline-offset: -0.75rem;
  color: var(--on-dark);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.section-figure {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
}

.section-figure[data-slot='accueil-prestations'] {
  aspect-ratio: 4 / 3;
}

.section-figure[data-slot='accueil-deroulement'] {
  aspect-ratio: 3 / 2;
}

/* Mosaïque : une image principale et deux repères vers les pages de prestation */

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.mosaic > .section-figure {
  grid-column: 1 / -1;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: #12203a;
}

.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}

.mosaic-tile span {
  position: absolute;
  inset: auto var(--space-3) var(--space-3) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(11 18 32 / 0.65);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.mosaic-tile span::after {
  content: '';
  display: none;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blue)
    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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9 8h7v7'/%3E%3C/svg%3E")
    center / 1.1rem no-repeat;
}

.mosaic-tile:hover span::after {
  background-color: var(--blue-deep);
}

/* Hero */

.page-hero {
  --focus: var(--sky);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: var(--space-6);
  min-height: clamp(26rem, 78vh, 46rem);
  margin: var(--space-3) auto 0;
  padding: var(--space-8) var(--gutter) var(--space-7);
  width: min(100% - 1.5rem, var(--width-hero));
  border-radius: var(--radius-block);
  background: var(--abyss);
  color: #fff;
}

.page-hero-text {
  display: grid;
  gap: var(--space-5);
  max-width: 46rem;
}

.page-hero .lead {
  color: var(--on-dark);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  max-width: 36rem;
}

.page-hero .button.quote {
  border-color: #fff;
  color: #fff;
}

.hero-figure img::before {
  align-items: flex-start;
  padding: var(--space-8) var(--space-5) var(--space-5);
}

.hero-figure {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
}

.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgb(11 18 32 / 0.92) 0%,
    rgb(11 18 32 / 0.6) 55%,
    rgb(11 18 32 / 0.1) 100%
  );
  pointer-events: none;
}

.hero-facts {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-card);
  background: rgb(11 18 32 / 0.6);
  backdrop-filter: blur(14px);
}

.hero-facts > div {
  display: grid;
  gap: var(--space-1);
  align-content: start;
}

.hero-facts > div + div {
  padding-top: var(--space-4);
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.hero-facts dt {
  color: var(--on-dark);
  font-size: 0.875rem;
}

.hero-facts dd {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Urgence */

.page > section.emergency {
  --focus: var(--sky);
  width: min(100% - 1.5rem, var(--width-hero));
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
  border-top: 0;
  border-radius: var(--radius-block);
  background: var(--abyss);
  color: #fff;
}

.emergency > .section-figure {
  margin-top: 0;
}

.emergency a:not(.button) {
  color: var(--sky);
}

.page > section.emergency > h2 {
  border-color: rgb(255 255 255 / 0.22);
}

.page > section.emergency > h2::before {
  background: var(--sky);
}

/* Listes */

.sign-list,
.work-list,
.guarantee-list,
.info-list {
  display: grid;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.sign-list li,
.work-list li,
.guarantee-list li,
.info-list li {
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6);
  border-top: 1px solid var(--line);
}

.sign-list li::before,
.work-list li::before,
.guarantee-list li::before,
.info-list li::before {
  content: '';
  position: absolute;
  top: 1.35em;
  left: var(--space-2);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
}

.service-list {
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.service-item {
  border-top: 1px solid var(--line);
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.service-item:not(:has(a)) {
  padding: var(--space-4) 0;
  color: var(--slate);
}

.service-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  color: var(--abyss);
  text-decoration: none;
}

.service-item a::after {
  content: '';
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--abyss);
  border-radius: 50%;
  background: var(--abyss)
    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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9 8h7v7'/%3E%3C/svg%3E")
    center / 1.25rem no-repeat;
}

.service-item a:hover {
  color: var(--blue-deep);
}

.service-item a:hover::after {
  border-color: var(--blue);
  background-color: var(--blue);
}

/* Étapes : la conduite */

.process-steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-1) 0 var(--space-6) 3.75rem;
  font-size: 1.125rem;
}

.process-steps li:last-child {
  padding-bottom: 0;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  line-height: 1;
}

.process-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  bottom: 0;
  left: calc(1.25rem - 1px);
  width: 2px;
  background: var(--blue);
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.town-list li {
  padding: var(--space-1) var(--space-4);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

/* FAQ en accordéon */

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '';
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--mist);
  background-image:
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: center;
  background-repeat: no-repeat;
  background-size:
    0.875rem 2px,
    2px 0.875rem;
}

.faq-item summary:hover::before {
  background-color: var(--line);
}

.faq-item[open] summary::before {
  background-color: var(--blue);
  color: #fff;
  background-size:
    0.875rem 2px,
    2px 0;
}

.faq-item p {
  padding: 0 0 var(--space-5) calc(2.25rem + var(--space-4));
  color: var(--slate);
}

/* Mentions légales */

.identity-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1) var(--space-5);
}

.identity-list dt {
  margin-top: var(--space-3);
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 600;
}

.identity-list dd {
  margin: 0;
}

/* Contact */

.contact-details,
.contact-address address {
  font-size: 1.125rem;
}

.contact-phone a {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Pied de page */

.site-footer {
  --focus: var(--sky);
  display: grid;
  gap: var(--space-6);
  width: min(100% - 1.5rem, var(--width-hero));
  margin: var(--section-gap) auto var(--space-3);
  padding: var(--space-7) var(--gutter);
  border-radius: var(--radius-block);
  background: var(--abyss);
  color: var(--on-dark);
}

.site-footer a {
  color: #fff;
}

.footer-cta {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.footer-cta h2 {
  max-width: 26ch;
  color: #fff;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.footer-cta p:not(.cta-group) {
  max-width: 36rem;
}

.footer-cta .button.quote {
  border-color: #fff;
  color: #fff;
}

.footer-brand {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer-nav ul {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: var(--space-1) 0;
  text-decoration: none;
}

.footer-contact {
  line-height: 1.8;
}

/* Écrans moyens */

@media (min-width: 40rem) {
  .site-header {
    margin-inline: var(--space-5);
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: var(--space-5) 0;
  }

  .hero-facts > div {
    padding: 0 var(--space-5);
  }

  .hero-facts > div + div {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }

  .mosaic {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 16 / 10;
  }

  .mosaic > .section-figure {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: auto;
  }

  .mosaic-tile {
    aspect-ratio: auto;
  }

  .mosaic-tile span {
    padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  }

  .mosaic-tile span::after {
    display: block;
  }

  .sign-list,
  .work-list,
  .guarantee-list,
  .info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .identity-list dt,
  .identity-list dd {
    margin: 0;
    padding: var(--space-2) 0;
    border-top: 1px solid var(--line);
  }
}

/* Grands écrans : menu flottant, sections en deux colonnes */

@media (min-width: 64rem) {
  html {
    scroll-padding-top: 7rem;
  }

  .nav-toggle,
  .nav-button {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .site-header {
    position: fixed;
    z-index: 10;
    inset: var(--space-5) 0 auto;
    width: min(100% - 4 * var(--gutter), 60rem);
    margin: 0 auto;
    flex-wrap: nowrap;
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6);
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 999px;
    background: rgb(11 18 32 / 0.55);
    backdrop-filter: blur(18px);
  }

  .header-call {
    position: static;
    inset: auto;
    min-height: 2.75rem;
    padding: 0 var(--space-4) 0 var(--space-1);
    box-shadow: none;
    font-size: 0.9375rem;
  }

  .hero-figure img::before {
    padding: 7rem var(--space-6) var(--space-5);
  }

  .page-hero {
    padding-top: calc(var(--space-9) + var(--space-6));
  }

  .page > section:not(.page-hero) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--space-7);
  }

  .page > section:not(.page-hero) > h2 {
    position: sticky;
    top: 6.5rem;
    grid-column: 1;
    grid-row: 1 / span 99;
    align-self: start;
  }

  .page > section:not(.page-hero) > :not(h2) {
    grid-column: 2;
  }

  /* Urgence : texte à gauche, image à droite */

  .page > section.emergency {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-content: start;
  }

  .page > section.emergency > h2 {
    position: static;
    grid-row: 1;
  }

  .page > section.emergency > .section-figure {
    grid-row: 1 / span 3;
  }

  .page > section.emergency > :is(p, .cta-group) {
    grid-column: 1;
  }

  /* Déroulement : image et étapes côte à côte */

  .page > section.process {
    grid-template-columns: minmax(0, calc((100% - var(--space-7)) / 3)) repeat(2, minmax(0, 1fr));
  }

  .page > section.process > h2 {
    grid-row: 1 / span 2;
  }

  .page > section.process > .section-figure {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    min-height: 20rem;
  }

  .page > section.process > .process-steps {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }

  .page > section.process > .note {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .site-footer {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: start;
  }

  .footer-cta {
    grid-column: 1 / -1;
  }
}

/* Mouvement : fondu entre les pages, défilement doux, arrivée sur le hero */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  html {
    scroll-behavior: smooth;
  }

  @keyframes fade-out {
    to {
      opacity: 0;
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }

  ::view-transition-old(root) {
    animation: fade-out 0.2s ease-in both;
  }

  ::view-transition-new(root) {
    animation: fade-in 0.2s ease-out both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
  }

  .page-hero-text {
    animation: rise 0.5s ease-out both;
  }

  .hero-facts {
    animation: rise 0.5s ease-out 0.15s both;
  }

  .button,
  .header-call,
  .service-item a,
  .service-item a::after,
  .faq-item summary::before {
    transition:
      background-color 0.2s,
      background-size 0.25s,
      color 0.2s,
      border-color 0.2s;
  }

  .mosaic-tile img {
    transition: transform 0.5s ease-out;
  }

  .mosaic-tile span,
  .mosaic-tile span::after {
    transition:
      background-color 0.2s,
      transform 0.3s ease-out;
  }

  .mosaic-tile:is(:hover, :focus-visible) img {
    transform: scale(1.06);
  }

  .mosaic-tile:is(:hover, :focus-visible) span {
    background-color: rgb(11 18 32 / 0.85);
  }

  .mosaic-tile:is(:hover, :focus-visible) span::after {
    transform: rotate(45deg);
  }

  /* Arrivée des médias et des rangées dans le viewport, sans script. Sans support, tout reste visible */

  @supports (animation-timeline: view()) {
    @keyframes reveal {
      from {
        opacity: 0;
        transform: translateY(2rem);
      }
    }

    @keyframes reveal-image {
      from {
        transform: scale(1.12);
      }
    }

    .page > section:not(.page-hero) :is(.section-figure, .mosaic-tile, .town-list),
    .service-item,
    .process-steps li,
    .faq-item,
    .guarantee-list li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    .section-figure img {
      animation: reveal-image linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
