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

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-display-latin-wght.075292b1.woff2') format('woff2');
  font-weight: 100 900;
  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: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-latin-wght.18b2a1a3.woff2') format('woff2');
  font-weight: 200 800;
  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: 'Big Shoulders Fallback';
  src: local('Arial');
  size-adjust: 80%;
  ascent-override: 123%;
  descent-override: 26.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Atkinson Fallback';
  src: local('Arial');
  size-adjust: 101%;
  ascent-override: 97.4%;
  descent-override: 31.3%;
  line-gap-override: 0%;
}

:root {
  --abyss: #0b1220;
  --night: #161f33;
  --blue: #1f6feb;
  --sky: #6aa5ff;
  --blue-deep: #1858c8;
  --mist: #e9ecef;
  --line: #cfd6de;
  --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);
  --pad: max(var(--gutter), calc((100vw - var(--width-content)) / 2));
  --section-gap: clamp(4rem, 9vw, 8rem);
  --width-content: 76rem;

  --font-display: 'Big Shoulders Display', 'Big Shoulders Fallback', sans-serif;
  --font-text: 'Atkinson Hyperlegible Next', 'Atkinson Fallback', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
  accent-color: var(--blue);
  scrollbar-color: var(--blue) var(--abyss);
  scroll-padding-top: 5rem;
  scroll-padding-bottom: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  background: #fff;
  color: var(--abyss);
  caret-color: var(--blue);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  padding-bottom: 3.5rem;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

a {
  color: var(--blue-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 0.5rem + 5.2vw, 5.5rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.5rem, 1.1rem + 3.6vw, 4.25rem);
  line-height: 0.92;
}

h3 {
  font-size: 1.75rem;
  line-height: 1;
}

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

p {
  text-wrap: pretty;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  z-index: 40;
  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: 700;
  transform: translateY(-200%);
}

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

.todo {
  background: var(--todo);
  color: var(--abyss);
  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.5rem;
  padding: var(--space-2) var(--space-6);
  border: 2px solid var(--abyss);
  border-radius: 999px;
  color: var(--abyss);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-wrap: balance;
}

.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: 2.25rem;
  height: 2.25rem;
  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.2rem 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,
.footer-cta .button.quote,
.emergency .button.quote {
  border-color: #fff;
  color: #fff;
}

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

.emergency .button.call {
  border-color: #fff;
  background: #fff;
  color: var(--abyss);
}

.emergency .button.call::before {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' 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");
}

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

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

.emergency .link-more {
  color: #fff;
}

/* En-tête : barre pleine largeur, bande d'appel fixe en bas sur mobile */

.site-header {
  --focus: var(--sky);
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-2) var(--gutter);
  background: var(--abyss);
  color: #fff;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand {
  white-space: nowrap;
}

.brand img {
  border-radius: 50%;
}

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

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

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

.nav-button {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-5);
  white-space: nowrap;
  border: 2px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  font-weight: 700;
  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: 100% 0 auto;
  padding: var(--space-3) var(--gutter) var(--space-5);
  background: var(--abyss);
}

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

.site-nav-list {
  display: grid;
  gap: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.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 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

/* Pages : sections pleine largeur, contenu aligné sur une même marge */

.page {
  display: block;
  padding-bottom: var(--section-gap);
}

.page > section:not(.page-hero) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--section-gap) var(--pad) 0;
}

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

.page > section:not(.page-hero) > h2 {
  margin-bottom: var(--space-2);
}

/* Fil d'Ariane et pages liées */

.breadcrumb {
  padding: var(--space-3) var(--pad);
  background: var(--mist);
  color: var(--slate);
  font-size: 0.875rem;
}

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

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-2);
}

.breadcrumb a {
  display: inline-block;
  min-height: 1.5rem;
  color: inherit;
}

.breadcrumb [aria-current='page'] {
  color: var(--abyss);
  font-weight: 700;
}

.related-list a {
  font-weight: 700;
}

/* 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] 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;
}

.section-figure {
  aspect-ratio: 16 / 9;
}

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

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

/* Cadran : le rayon d'intervention */

.rings {
  pointer-events: none;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ring {
  stroke-linecap: butt;
}

.ring-outer {
  fill: var(--night);
  stroke: var(--sky);
  stroke-width: 2;
}

.ring-inner {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
}

.rings .dot {
  fill: #fff;
}

.rings text {
  fill: #fff;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
}

.rings .ring-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

/* Hero : texte à gauche, photo coupée net à droite, bande de faits dessous */

.page-hero {
  --focus: var(--sky);
  display: grid;
  background: var(--abyss);
  color: #fff;
}

.page-hero-text {
  display: grid;
  align-content: center;
  gap: var(--space-5);
  padding: var(--space-7) var(--gutter) var(--space-8);
}

.page-hero .lead {
  max-width: 34rem;
  color: var(--on-dark);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
}

.video-pause {
  position: absolute;
  z-index: 3;
  right: var(--space-3);
  bottom: var(--space-3);
  min-height: 2.75rem;
  padding: 0 var(--space-5);
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--abyss);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero-figure {
  order: -1;
  aspect-ratio: 16 / 10;
}

.hero-figure img {
  object-position: 78% 50%;
}

.hero-figure img::before {
  align-items: flex-start;
}

.hero-rings {
  order: 0;
  aspect-ratio: auto;
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-8);
}

.hero-facts {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) var(--gutter);
  background: var(--night);
}

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

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

.hero-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
}

/* Urgence : aplat bleu */

.page > section.emergency {
  --focus: #fff;
  padding-bottom: var(--section-gap);
  background: var(--blue);
  color: #fff;
}

.emergency a {
  color: #fff;
}

.emergency > .section-figure {
  margin-top: var(--space-6);
}

/* Listes */

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

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

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

/* Prestations : grandes rangées de sommaire */

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

.service-item {
  border-top: 2px solid var(--abyss);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.1rem + 1.7vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.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: 3rem;
  height: 3rem;
  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.5rem no-repeat;
}

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

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

/* Zone : fond abysse et cadran */

.page > section.area {
  --focus: var(--sky);
  padding-bottom: var(--section-gap);
  background: var(--abyss);
  color: #fff;
}

.area a {
  color: var(--sky);
}

.radius-list {
  display: grid;
  gap: var(--space-4);
}

.radius-list > div {
  display: grid;
  gap: var(--space-1);
  padding-left: var(--space-4);
  border-left: 4px solid var(--blue);
}

.radius-list dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.radius-list dd {
  margin: 0;
  color: var(--on-dark);
}

.dial {
  width: min(100%, 34rem);
  margin: var(--space-6) auto 0;
}

/* Étapes : la conduite */

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

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

.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: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.process-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 3rem;
  bottom: 0;
  left: calc(1.5rem - 2px);
  width: 4px;
  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: 2px solid var(--abyss);
  border-radius: 999px;
}

.area-towns h3 {
  margin: var(--space-7) 0 var(--space-3);
}

/* Registre : le papier d'un devis */

.ledger {
  border-bottom: 2px solid var(--abyss);
}

.ledger > div {
  display: grid;
  gap: var(--space-1) var(--space-6);
  padding: var(--space-4) 0;
  border-top: 2px solid var(--abyss);
}

.ledger dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.05;
}

.ledger dd {
  margin: 0;
}

/* Tarifs : panneau brume, juste après l'urgence */

.page > section.pricing {
  padding-bottom: var(--section-gap);
  background: var(--mist);
}

/* Avant d'appeler : bande de nuit en fin de page de prestation */

.page > section.reassurance {
  --focus: var(--sky);
  padding-bottom: var(--section-gap);
  background: var(--night);
  color: #fff;
}

.reassurance a {
  color: var(--sky);
}

.reassurance .note {
  color: var(--on-dark);
}

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

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

.fact-grid {
  display: grid;
  gap: var(--space-5);
}

.fact-grid > div {
  display: grid;
  gap: var(--space-1);
  padding-left: var(--space-4);
  border-left: 4px solid var(--blue);
}

.fact-grid dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.fact-grid dd {
  margin: 0;
  color: var(--on-dark);
}

@media (min-width: 40rem) {
  .fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

/* FAQ en accordéon */

.faq-list {
  border-bottom: 2px solid var(--abyss);
}

.faq-item {
  border-top: 2px solid var(--abyss);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::before {
  content: '';
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  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:
    1rem 2px,
    2px 1rem;
}

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

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

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

.faq-item .faq-sources {
  margin-top: calc(-1 * var(--space-3));
  font-size: 0.875rem;
}

/* 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: 700;
}

.identity-list dd {
  margin: 0;
}

/* Contact */

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

.contact-phone a {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.5rem + 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Pied de page */

.site-footer {
  --focus: var(--sky);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--space-6);
  padding: var(--space-8) var(--pad) var(--space-7);
  background: var(--abyss);
  color: var(--on-dark);
}

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

.site-footer > .rings {
  position: absolute;
  z-index: -1;
  top: -9rem;
  right: -16rem;
  width: 42rem;
}

.site-footer > .rings :is(.ring, .ring-inner, .ring-outer) {
  fill: none;
  stroke: rgb(106 165 255 / 0.35);
  stroke-width: 2;
}

.site-footer > .rings .dot {
  display: none;
}

.footer-cta {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}

.footer-cta h2 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(3rem, 1.2rem + 6vw, 6.5rem);
}

.footer-cta p:not(.cta-group) {
  max-width: 34rem;
  font-size: 1.1875rem;
}

.footer-brand {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.footer-nav ul {
  display: grid;
  gap: var(--space-1);
  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;
}

.footer-credit {
  padding-top: var(--space-4);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.875rem;
}

/* Écrans moyens */

@media (min-width: 40rem) {
  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

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

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

  .ledger > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: baseline;
  }

  .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 : deux colonnes, titre collant, hero coupé en deux */

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

  body {
    padding-bottom: 0;
  }

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

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
  }

  .site-nav-list {
    display: flex;
    gap: var(--space-1) var(--space-6);
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
  }

  .site-nav-list a {
    padding: var(--space-2) 0;
  }

  .site-header {
    padding-block: var(--space-3);
  }

  .header-call {
    position: static;
    min-height: 2.75rem;
    padding: 0 var(--space-5) 0 var(--space-1);
    border-radius: 999px;
    font-size: 1rem;
  }

  .header-call::before {
    width: 2.25rem;
    height: 2.25rem;
  }

  .page-hero {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-rows: auto auto;
  }

  .page-hero-text {
    grid-column: 1;
    grid-row: 1;
    padding: var(--space-9) var(--space-7) var(--space-9) var(--pad);
  }

  .page-hero-text:last-child {
    grid-column: 1 / -1;
  }

  .hero-figure {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    min-height: min(34rem, 70vh);
  }

  .hero-rings {
    width: min(100%, 32rem);
    margin: 0;
    padding: var(--space-9) var(--pad) var(--space-9) 0;
  }

  .hero-facts {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-inline: var(--pad);
  }

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

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

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

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

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

  .page > section.emergency > .section-figure {
    grid-row: 1 / span 3;
    margin-top: 0;
    aspect-ratio: auto;
    min-height: 24rem;
  }

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

  .page > section.area > .dial {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin-top: 0;
  }

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

  .page > section.services > .section-figure {
    position: sticky;
    top: 6rem;
    grid-column: 1;
    grid-row: 2 / span 98;
    align-self: start;
    margin-top: var(--space-5);
  }

  .page > section.services > .service-list {
    grid-row: 1 / span 99;
  }

  .page > section.process:has(> .section-figure) {
    grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 4fr));
    column-gap: var(--space-7);
  }

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

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

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

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

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

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

/* Mouvement : fondu entre les pages, arrivée du hero, cercles du cadran qui se tracent */

@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.6s var(--ease-out) both;
  }

  .hero-facts {
    animation: rise 0.6s var(--ease-out) 0.15s both;
  }

  .button,
  .header-call,
  .service-item a,
  .service-item a::after,
  .faq-item summary::before {
    transition:
      background-color 0.15s,
      background-size 0.25s var(--ease-out),
      color 0.15s,
      border-color 0.15s,
      transform 0.2s var(--ease-out);
  }

  .service-item a:hover::after {
    transform: translateX(0.25rem);
  }

  @supports (animation-timeline: view()) {
    @keyframes draw {
      from {
        stroke-dashoffset: 1;
      }
    }

    .area .ring {
      stroke-dasharray: 1;
      animation: draw linear both;
      animation-timeline: view();
    }

    .area .ring-outer {
      animation-range: entry 10% cover 45%;
    }

    .area .ring-inner {
      animation-range: entry 25% cover 55%;
    }
  }
}
