/* ------------------------------------------------------------------
   Coquelle Plomberie Chauffage - Faverges (74)
   Direction artistique « Ardoise & Braise » : ardoise alpine froide,
   photographie duotone, un seul accent braise emprunte a la flamme du
   logo d'origine. Theme unique verrouille (sombre).
   Aucune ressource tierce : polices, images et icones auto-hebergees.
   ------------------------------------------------------------------ */

/* --- Police : Archivo variable (SIL Open Font License 1.1) --------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  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";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  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 {
  color-scheme: dark;

  --ink: #0e1417;
  --ink-1: #131b1f;
  --ink-2: #182126;
  --ink-3: #202b31;

  --bone: #e8edec;
  --mist: #93a4a9;
  --mist-dim: #75868c;

  --ember: #e0552b;
  --ember-hi: #f08a63;
  --ember-wash: rgba(224, 85, 43, 0.12);
  --ember-line: rgba(224, 85, 43, 0.34);

  --hair: rgba(226, 235, 235, 0.1);
  --hair-2: rgba(226, 235, 235, 0.17);

  /* Rayons : surfaces 28/22 imbriques, champs 14, interactifs = pilule */
  --r-shell: 28px;
  --r-core: 22px;
  --r-field: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --pad-y: clamp(5rem, 9vw, 8.5rem);
  --gut: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100, "wght" 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain fixe, hors flux, sans repaint sur le scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Typographie --------------------------------------------------- */
.display {
  font-variation-settings: "wdth" 112, "wght" 680;
  letter-spacing: -0.035em;
  line-height: 0.99;
  margin: 0;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(2.5rem, 4.7vw, 3.75rem);
}

h2.display {
  font-size: clamp(1.95rem, 3.9vw, 3.15rem);
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  font-variation-settings: "wdth" 105, "wght" 620;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 0;
}

.lede {
  color: var(--mist);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 34ch;
}

.body-dim {
  color: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.85rem 0.34rem 0.7rem;
  border: 1px solid var(--ember-line);
  border-radius: 999px;
  background: var(--ember-wash);
  color: #f08a63;
  font-size: 0.6875rem;
  font-variation-settings: "wdth" 100, "wght" 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.eyebrow .ico {
  width: 14px;
  height: 14px;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* --- Bandeau de previsualisation ----------------------------------- */
.preview-bar {
  position: relative;
  z-index: 40;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ember-line);
  font-size: 0.8125rem;
  color: var(--mist);
}

.preview-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  padding-block: 0.6rem;
}

.preview-bar strong {
  color: var(--bone);
  font-variation-settings: "wdth" 100, "wght" 620;
}

.preview-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ember);
  flex: none;
}

.preview-text-short {
  display: none;
}

.preview-bar a {
  margin-left: auto;
  color: #f08a63;
  text-decoration: none;
  border-bottom: 1px solid var(--ember-line);
  padding-bottom: 1px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.preview-bar a:hover {
  color: var(--bone);
  border-color: var(--bone);
}

/* --- Navigation ilot ------------------------------------------------ */
.nav-sentinel {
  height: 1px;
}

.nav {
  position: sticky;
  top: 0.85rem;
  z-index: 50;
  margin-top: 0.85rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 66px;
  padding: 0 0.6rem 0 1.35rem;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: rgba(19, 27, 31, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.9);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.nav.is-stuck .nav-inner {
  background: rgba(14, 20, 23, 0.9);
  border-color: var(--hair-2);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  margin-right: auto;
  line-height: 1;
}

.brand b {
  font-size: 1rem;
  font-variation-settings: "wdth" 116, "wght" 720;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--bone);
}

/* --- Boutons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.55rem 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-variation-settings: "wdth" 100, "wght" 620;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.5s var(--ease-soft), background 0.5s var(--ease),
    border-color 0.5s var(--ease), color 0.5s var(--ease);
}

.btn .cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex: none;
  transition: transform 0.5s var(--ease-soft), background 0.5s var(--ease);
}

.btn .cap .ico {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ember {
  background: var(--ember);
  color: #170a05;
}

.btn-ember .cap {
  background: rgba(23, 10, 5, 0.16);
}

.btn-ember:hover .cap {
  transform: translate(2px, -1px) scale(1.06);
  background: rgba(23, 10, 5, 0.26);
}

.btn-ghost {
  border-color: var(--hair-2);
  color: var(--bone);
  background: rgba(232, 237, 236, 0.03);
}

.btn-ghost .cap {
  background: rgba(232, 237, 236, 0.08);
}

.btn-ghost:hover {
  border-color: rgba(232, 237, 236, 0.4);
  background: rgba(232, 237, 236, 0.07);
}

.btn-ghost:hover .cap {
  transform: translate(2px, -1px) scale(1.06);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 0.45rem 0.5rem 1.05rem;
}

.btn-sm .cap {
  width: 27px;
  height: 27px;
}

.btn-sm .cap .ico {
  width: 14px;
  height: 14px;
}

/* --- Coque double bord --------------------------------------------- */
.shell {
  padding: 6px;
  border: 1px solid var(--hair);
  border-radius: var(--r-shell);
  background: rgba(232, 237, 236, 0.035);
}

.core {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-core);
  background: var(--ink-1);
  box-shadow: inset 0 1px 0 rgba(232, 237, 236, 0.07);
}

/* --- Heros ---------------------------------------------------------- */
.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: var(--pad-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}

.hero-copy h1 .accent {
  color: var(--ember);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media .core {
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(14, 20, 23, 0) 42%,
    rgba(14, 20, 23, 0.72) 100%
  );
}

/* --- Bande de reperes ----------------------------------------------- */
.facts {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--ink-1);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.fact {
  padding: 1.5rem 0.25rem;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}

.fact:nth-child(-n + 2) {
  border-top: 0;
}

.fact:nth-child(odd) {
  border-left: 0;
  padding-right: 1.25rem;
}

.fact:nth-child(even) {
  padding-left: 1.25rem;
}

.fact b {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-variation-settings: "wdth" 110, "wght" 660;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.fact span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--mist-dim);
  letter-spacing: 0.02em;
}

/* --- Sections ------------------------------------------------------- */
.section {
  padding-block: var(--pad-y);
}

.section-head {
  max-width: 58ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.section-head .display {
  max-width: 21ch;
}

.section-head p {
  max-width: 46ch;
}

/* --- Bento prestations ---------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.tile .core {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tile-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: none;
}

.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-soft);
}

.tile:hover .tile-photo img {
  transform: scale(1.06);
}

.tile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 20, 23, 0.15) 0%,
    rgba(19, 27, 31, 0.95) 100%
  );
}

.tile-body {
  padding: 1.6rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.tile-body h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tile-body h3 .ico {
  width: 19px;
  height: 19px;
  color: var(--ember);
}

.tile-body > p {
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--mist);
  line-height: 1.35;
}

/* Tuile d'urgence, sans photo, portee par l'accent */
.tile-urgence .core {
  background: linear-gradient(150deg, #23140e 0%, var(--ink-2) 62%);
  box-shadow: inset 0 1px 0 rgba(240, 138, 99, 0.16);
}

.tile-urgence .shell,
.tile-urgence.shell {
  border-color: var(--ember-line);
}

.urgence-body {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
  justify-content: center;
}

.urgence-body h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-variation-settings: "wdth" 108, "wght" 660;
  letter-spacing: -0.025em;
}

.urgence-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.tel-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-variation-settings: "wdth" 106, "wght" 640;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

.tel-line .ico {
  width: 22px;
  height: 22px;
  color: var(--ember);
}

.tel-line:hover {
  color: var(--ember);
}

/* --- Zone d'intervention -------------------------------------------- */
.zone {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.zone-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.zone-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.zone-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--ink) 4%,
    rgba(14, 20, 23, 0.82) 38%,
    rgba(14, 20, 23, 0.54) 100%
  );
}

.zone .wrap {
  position: relative;
  z-index: 1;
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 4vw, 3.5rem);
  align-items: start;
}

.zone-figure {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-variation-settings: "wdth" 116, "wght" 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-size: clamp(5rem, 15vw, 9.5rem);
}

.zone-figure em {
  font-style: normal;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--ember);
}

.communes {
  columns: 2;
  column-gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--mist);
}

.communes li {
  position: relative;
  break-inside: avoid;
  padding: 0.3rem 0;
  padding-left: calc(12px + 0.65rem);
}

.communes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 12px;
  height: 1px;
  background: var(--ember-line);
}

/* --- Garanties ------------------------------------------------------ */
.gar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.gar-hero {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gar-hero b {
  font-size: clamp(4.5rem, 11vw, 7rem);
  font-variation-settings: "wdth" 116, "wght" 700;
  letter-spacing: -0.055em;
  line-height: 0.82;
  color: var(--ember);
}

.gar-hero strong {
  font-size: 1.15rem;
  font-variation-settings: "wdth" 105, "wght" 620;
  letter-spacing: -0.015em;
}

.gar-hero p {
  color: var(--mist);
  font-size: 0.9375rem;
  max-width: 30ch;
}

.gar-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem 2.5rem;
}

.gar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
}

.gar-item .ico {
  color: var(--ember);
  width: 22px;
  height: 22px;
  margin-bottom: 0.15rem;
}

.gar-item strong {
  font-size: 1.02rem;
  font-variation-settings: "wdth" 104, "wght" 620;
  letter-spacing: -0.012em;
}

.gar-item p {
  color: var(--mist);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Contact -------------------------------------------------------- */
.contact {
  background: var(--ink-1);
  border-top: 1px solid var(--hair);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}

.coord {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.coord-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.coord-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.coord-block address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.5;
}

.coord-block .muted {
  color: var(--mist);
  font-size: 0.95rem;
}

.form-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--ink-2);
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-head h3 {
  font-size: 1.05rem;
}

.badge-option {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8125rem;
  color: var(--bone);
  font-variation-settings: "wdth" 100, "wght" 560;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-field);
  background: rgba(14, 20, 23, 0.75);
  color: var(--bone);
  font: inherit;
  font-size: 0.9375rem;
}

.field input:disabled,
.field textarea:disabled {
  color: var(--mist-dim);
  cursor: not-allowed;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--mist);
  line-height: 1.55;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn[disabled]:active {
  transform: none;
}

/* --- Pied de page ---------------------------------------------------- */
.foot {
  border-top: 1px solid var(--hair);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.875rem;
  color: var(--mist);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-brand b {
  display: block;
  color: var(--bone);
  font-size: 1rem;
  font-variation-settings: "wdth" 116, "wght" 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 2px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.foot-links a:hover {
  color: var(--bone);
  border-color: var(--bone);
}

.foot-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  font-size: 0.8125rem;
  color: var(--mist-dim);
  max-width: 70ch;
}

/* --- Menu mobile ----------------------------------------------------- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: rgba(232, 237, 236, 0.04);
  cursor: pointer;
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--bone);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.55s var(--ease-soft), opacity 0.3s var(--ease);
}

.burger span:nth-child(1) {
  top: 17px;
}

.burger span:nth-child(2) {
  top: 25px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateX(-50%) translateY(-4px) rotate(-45deg);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 5rem var(--gut) 3rem;
  background: rgba(14, 20, 23, 0.86);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.sheet.is-open {
  opacity: 1;
  visibility: visible;
}

.sheet a {
  font-size: 2rem;
  font-variation-settings: "wdth" 110, "wght" 660;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 0.4rem 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.sheet.is-open a {
  opacity: 1;
  transform: none;
}

.sheet.is-open a:nth-child(1) {
  transition-delay: 0.06s;
}
.sheet.is-open a:nth-child(2) {
  transition-delay: 0.12s;
}
.sheet.is-open a:nth-child(3) {
  transition-delay: 0.18s;
}
.sheet.is-open a:nth-child(4) {
  transition-delay: 0.24s;
}

.sheet .sheet-tel {
  margin-top: 1.75rem;
  align-self: flex-start;
  font-size: 1rem;
}

/* --- Page avant / apres ---------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.shot .core {
  background: var(--ink);
}

.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--hair);
}

.shot-head b {
  font-size: 0.9375rem;
  font-variation-settings: "wdth" 106, "wght" 620;
}

.shot-head span {
  font-size: 0.75rem;
  color: var(--mist-dim);
  letter-spacing: 0.06em;
}

.shot-frame img {
  width: 100%;
  display: block;
}

.gains {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.gain {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair-2);
}

.gain .ico {
  width: 22px;
  height: 22px;
  color: var(--ember);
  margin-bottom: 0.2rem;
}

.gain strong {
  font-size: 1.15rem;
  font-variation-settings: "wdth" 106, "wght" 620;
  letter-spacing: -0.018em;
}

.gain p {
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Page mentions legales ------------------------------------------- */
.prose {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.prose section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prose h2 {
  margin: 0;
  font-size: 1.1rem;
  font-variation-settings: "wdth" 106, "wght" 640;
  letter-spacing: -0.015em;
}

.prose p,
.prose li {
  color: var(--mist);
  font-size: 0.9688rem;
  line-height: 1.7;
}

.prose ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prose a {
  color: #f08a63;
  text-decoration: none;
  border-bottom: 1px solid var(--ember-line);
}

.prose a:hover {
  color: var(--bone);
  border-color: var(--bone);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

.back-link:hover {
  color: var(--bone);
}

.back-link .ico {
  width: 15px;
  height: 15px;
  transform: rotate(-135deg);
}

/* --- Points de rupture ------------------------------------------------ */
@media (max-width: 699px) {
  .fact b {
    font-size: clamp(1.05rem, 4.6vw, 1.4rem);
  }

  .zone-bg::after {
    background: linear-gradient(
      100deg,
      var(--ink) 4%,
      rgba(14, 20, 23, 0.82) 38%,
      rgba(14, 20, 23, 0.75) 100%
    );
  }

  .preview-bar {
    font-size: 12px;
  }

  .preview-bar .wrap {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .preview-text-full {
    display: none;
  }

  .preview-text-short {
    display: inline;
  }

  .preview-bar a {
    margin-left: 0.4rem;
  }
}

@media (min-width: 700px) {
  .facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fact {
    padding: 1.75rem 1.5rem;
    border-top: 0;
  }

  .fact:nth-child(odd),
  .fact:nth-child(even) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-left: 1px solid var(--hair);
  }

  .fact:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .communes {
    columns: 3;
    font-size: 0.9375rem;
  }

  .gar-list {
    grid-template-columns: 1fr 1fr;
  }

  .compare {
    grid-template-columns: 1fr 1fr;
  }

  .gains {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.32fr 0.68fr;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .hero-media .core {
    aspect-ratio: 3 / 4;
  }

  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .tile-photo {
    aspect-ratio: auto;
    height: 218px;
  }

  .tile-sanitaire {
    grid-column: span 7;
  }

  .tile-chauffage {
    grid-column: span 5;
  }

  .tile-urgence {
    grid-column: span 12;
  }

  .urgence-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .urgence-copy {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 46ch;
  }

  .urgence-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
  }

  .zone-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .gar-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(3rem, 6vw, 4.5rem);
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .lede {
    max-width: 38ch;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-desktop-cta {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .nav-inner {
    padding-right: 0.5rem;
  }
}

@media (min-width: 768px) {
  .sheet {
    display: none;
  }
}

/* --- Reveal au scroll -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
  }

  [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
