:root {
  --orange: #e94b1c;
  --encre: #11191a;
  --gouttiere: clamp(32px, 5.5vw, 108px);
  --haut-barre: max(env(safe-area-inset-top), clamp(12px,3.3vh,39px));
  --hauteur-barre: clamp(58px,11.7vh,135px);
  --espace-barre: calc(var(--haut-barre) + var(--hauteur-barre));
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--display); color: var(--encre); background: #f7f7f7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; padding: 0; border: 0; background: none; cursor: pointer; }
h1, h2, p, figure { margin: 0; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #1681cb; outline-offset: 3px; }
.accueil {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero {
  padding-top: var(--espace-barre);
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  align-items: flex-start; color: white; background: #152122;
}
.paysage, .hero::after { position: absolute; inset: 0; pointer-events: none; }
.paysage { z-index: -2; }
.paysage img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 76% 18%; }
.hero::after {
  content: ""; z-index: -1;
  background: linear-gradient(90deg, #121b1ef5 0%, #121b1eea 15%, #131c1dd1 26%, #131c1da8 33%, #11191a55 43%, transparent 57%);
}
.barre {
  position: fixed; z-index: 20; top: var(--haut-barre); inset-inline: 0;
  margin-inline: auto; width: 92.4%; height: var(--hauteur-barre);
  display: flex; align-items: center; padding: 0 clamp(12px,1.35vw,26px); background: #fff;
  color: #141d20; border-radius: clamp(12px,1vw,17px); box-shadow: 0 3px 18px #17202014;
}
.marque { align-self: stretch; width: clamp(106px,15.4vw,290px); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.marque img { display: block; height: 85%; max-width: 88%; max-height: 100%; object-fit: contain; min-height: 0; }
.marque::after, .contact-haut::before {
  content: ""; position: absolute; width: 1px; background: #d3d8d7; height: 46%; top: 27%;
}
.marque::after { right: 0; }
.navigation { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(18px,3.4vw,65px); padding: 0 1.1vw; }
.navigation :is(a, button) { font-size: clamp(14px,1.36vw,25px); letter-spacing: -.015em; white-space: nowrap; padding: .8em .22em; }
.navigation :is(a, button):hover, .tel-haut:hover { color: #bc3511; }
.contact-haut { display: flex; position: relative; height: 100%; gap: 1.95vw; align-items: center; padding-left: 1.8vw; }
.contact-haut::before { left: 0; }
.tel-haut, .numero { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; }
.tel-haut { font-size: clamp(14px,1.1vw,21px); font-weight: 700; letter-spacing: -.025em; }
.tel-haut svg { width: 1.32em; height: 1.32em; color: var(--orange); }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; border-radius: .33em; background: var(--orange);
  color: white; font-weight: 700; line-height: 1.07; padding: .72em 1em; white-space: nowrap;
}
.bouton:hover { background: #c83d14; }
.contact-haut .bouton { font-size: clamp(14px,1.33vw,24px); }
.ouvre-menu { display: none; }
.corps {
  margin: auto var(--gouttiere);
  padding-block: 0 clamp(30px,8.2vh,82px);
  display: flex; flex-direction: column; align-items: flex-start;
}
.metiers {
  display: flex; align-items: center; gap: .75em; font-weight: 700;
  font-size: var(--surtitre); line-height: 1.2; letter-spacing: .01em;
}
.toit { width: 2.45em; height: 1.24em; stroke-width: 2.5; }
h1 {
  font: 700 var(--titre-page)/1.02 var(--display);
  letter-spacing: -.045em; margin-top: clamp(10px,1.8vh,22px); text-wrap: nowrap;
}
.description {
  font-size: var(--introduction); line-height: 1.35;
  margin-top: clamp(10px,1.75vh,21px); letter-spacing: -.014em;
}
@media (min-width: 1001px) {
  .hero .description { max-inline-size: min(36vw, 42ch); }
}
.entreprise :is(a, button) { text-decoration: underline; text-underline-offset: .15em; }
.entreprise { font-size: var(--note); margin-top: clamp(11px,2vh,23px); color: #e1e6e2; }
.actions { display: flex; align-items: center; gap: clamp(18px,2vw,38px); margin-top: clamp(17px,3.5vh,42px); }
.devis { font-size: clamp(16px,min(1.45vw,2.7vh),29px); padding: .7em 1.14em; }
.horaires { font-size: clamp(13px,min(1.19vw,2.3vh),22px); line-height: 1.3; color: #e0e5e2; }
.horaires strong { font-weight: 700; color: white; }
.urgence {
  display: flex; gap: clamp(16px,2vw,38px); align-items: center; padding: .72em 1em .72em 1.26em; border-radius: .45em;
  position: relative; background: #0c1516ee; color: #fff;
  font-size: clamp(15px,min(1.15vw,2.2vh),21px); margin-top: clamp(14px,3.1vh,34px);
}
.urgence::before { content: ""; position: absolute; left: .32em; inset-block: .72em; width: .19em; background: var(--orange); border-radius: 2em; }
.urgence-message { display: grid; gap: .05em; line-height: 1.14; }
.urgence-message strong { font-size: 1.28em; font-weight: 700; letter-spacing: -.028em; }
.numero { font-weight: 700; font-family: var(--display); letter-spacing: -.018em; font-variant-numeric: tabular-nums; font-size: 1.56em; gap: .37em; }
.numero svg { height: 1.05em; width: 1.05em; }
.urgence:hover .numero { text-decoration: underline; text-underline-offset: .15em; }
.legende {
  position: absolute; right: 2.2vw; bottom: 11.6vh; text-align: right; color: white;
  text-shadow: 0 1px 5px #101818; line-height: 1.3;
}
.legende strong { display: block; font-size: clamp(15px,1.50vw,28px); }
.legende span { display: inline-block; font-size: clamp(13px,1.26vw,24px); text-decoration: underline; text-underline-offset: .2em; }
.prestations {
  margin: 0; list-style: none;
  display: grid; grid-template-columns: 1.08fr 1.14fr 1fr .99fr .96fr .98fr;
  align-items: stretch; min-height: clamp(64px,10.6vh,115px);
  background: #f7f7f8; padding: clamp(6px,1.45vh,16px) 1.6vw;
}
.prestation {
  display: flex; align-items: center; justify-content: center; gap: .65vw;
  text-align: left; padding: 0 .42vw;
}
.prestation + .prestation { border-left: 1px solid #cdd0d2; }
.prestation svg { width: clamp(26px,2.55vw,44px); height: clamp(26px,2.55vw,44px); color: var(--orange); flex-shrink: 0; stroke-width: 1.65; }
.prestation strong, .prestation small { display: block; }
.prestation strong { font-size: var(--titre-item); line-height: 1.14; letter-spacing: -.035em; }
.prestation small { margin-top: .23em; font-size: var(--legende); line-height: 1.16; letter-spacing: -.015em; }
dialog {
  width: min(94vw,680px); max-height: 86vh; max-height: 86dvh; overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: 16px; padding: clamp(20px,4vw,38px);
  background: white; color: #14201e; box-shadow: 0 22px 90px #0005;
}
dialog::backdrop { background: #0b151ab8; backdrop-filter: blur(4px); }
.entete-dialogue { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 20px; }
.entete-dialogue h2 { font: var(--style-sous-titre); letter-spacing: -.045em; }
.fermer { width: 36px; height: 36px; border-radius: 50%; background: #f2f3f2; font-size: 28px; line-height: 1; flex-shrink: 0; }
#panneau-contenu { font: var(--style-texte); }
#panneau-contenu p + .bouton, .liens-contact { margin-top: 20px; }
.liens-contact { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.liens-contact a:not(.bouton) { text-decoration: underline; }
.note-urgence { margin-top: 22px; border-left: 3px solid var(--orange); padding-left: 12px; font-weight: bold; }
.liste-menu { display: grid; }
.liste-menu :is(a, button) { text-align: left; padding: 11px 0; border-bottom: 1px solid #e4e6e5; }
.liste-menu :is(a, button):hover { color: #a53110; }
.galerie { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.galerie img { width: 100%; display: block; aspect-ratio: 1.7; object-fit: cover; border-radius: 6px; }
.galerie figcaption { margin-top: 5px; font: var(--style-titre-item); line-height: 1.24; }

@media (min-width: 1001px) and (min-height: 541px) {
  :root {
    --gouttiere: clamp(28.8px, 5.2vw, 97.2px);
    --haut-barre: max(env(safe-area-inset-top), clamp(10.8px,2.65vh,27px));
    --hauteur-barre: clamp(52.2px,8.4vh,79.2px);
  }
  .hero { --hauteur-fond: min(89.48dvh, calc(100dvh - 57px)); }
  .paysage { bottom: auto; height: var(--hauteur-fond); }
  .paysage img { object-fit: fill; }
  /* La rangée de tuiles supplémentaire se découvre sous le cadrage d’origine. */
  .hero::before {
    content: ""; pointer-events: none; position: absolute; z-index: -2;
    inset: var(--hauteur-fond) 0 0;
    background: url("./toiture-bas.webp") center top / 100% auto no-repeat;
  }
  .hero::after {
    background:
      radial-gradient(ellipse 32% calc(var(--hauteur-fond) * .30) at 98% calc(var(--hauteur-fond) * .90), #2014129e 0%, #21151166 43%, transparent 85%),
      linear-gradient(90deg, #182024ef, #182024e6 14%, #172022c4 28%, #15202180 37%, transparent 51%);
  }
  .barre {
    width: 92%;
    display: flex; align-items: center; padding: 0 clamp(10.8px,1.35vw,23.4px); background: #fff;
    color: #141d20; border-radius: clamp(10.8px,1vw,15.3px); box-shadow: 0 3px 18px #17202014;
  }
  .marque { align-self: stretch; width: clamp(95.4px,13.4vw,189px); display: grid; place-items: center; position: relative; flex-shrink: 0; }
  .marque img { display: block; width: auto; height: 85%; max-width: 88%; max-height: 100%; object-fit: contain; min-height: 0; }
  .marque::after, .contact-haut::before {
    content: ""; position: absolute; width: 1px; background: #d3d8d7; height: 46%; top: 27%;
  }
  .marque::after { right: 0; }
  .navigation { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(16.2px,3.4vw,58.5px); padding: 0 1.1vw; }
  .navigation :is(a, button) { font-size: clamp(12.6px,1.1vw,18px); letter-spacing: -.015em; white-space: nowrap; padding: .8em .22em; }
  .navigation :is(a, button):hover, .tel-haut:hover { color: #bc3511; }
  .contact-haut { display: flex; position: relative; height: 100%; gap: 1.95vw; align-items: center; padding-left: 1.8vw; }
  .contact-haut::before { left: 0; }
  .tel-haut, .numero { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; }
  .tel-haut { font-size: clamp(12.6px,1.1vw,18.9px); font-weight: 700; letter-spacing: -.025em; }
  .tel-haut svg { width: 1.32em; height: 1.32em; color: var(--orange); }
  .bouton {
    display: inline-flex; align-items: center; justify-content: center; border-radius: .33em; background: var(--orange);
    color: white; font-weight: 700; line-height: 1.07; padding: .72em 1em; white-space: nowrap;
  }
  .bouton:hover { background: #c83d14; }
  .contact-haut .bouton { font-size: clamp(12.6px,1.03vw,18px); }
  .ouvre-menu { display: none; }
  .corps {
    margin: auto var(--gouttiere);
    padding-block: clamp(16.2px,3.6vh,37.8px) clamp(21.6px,6.8vh,73.8px);
    display: flex; flex-direction: column; align-items: flex-start;
  }
  .metiers {
    display: flex; align-items: center; gap: .75em; font-weight: 700;
    font-size: var(--surtitre); line-height: 1.2; letter-spacing: .01em;
  }
  .toit { width: 2.45em; height: 1.24em; stroke-width: 2.5; }
  h1 {
    font: 700 var(--titre-page)/1.02 var(--display);
    letter-spacing: -.045em; margin-top: clamp(9px,1.8vh,19.8px); text-wrap: nowrap;
  }
  .description {
    font-size: var(--introduction); line-height: 1.35;
    margin-top: clamp(9px,1.75vh,18.9px); letter-spacing: -.014em;
  }
  .entreprise :is(a, button) { text-decoration: underline; text-underline-offset: .18em; text-decoration-color: #ffffff75; }
  .entreprise { font-size: var(--note); margin-top: clamp(7.2px,1.5vh,16.2px); color: #e1e6e2; }
  .actions { display: flex; align-items: center; gap: clamp(16.2px,2vw,34.2px); margin-top: clamp(14.4px,3.15vh,32.4px); }
  .devis { font-size: clamp(14.4px,min(1.32vw,2.6vh),22.5px); padding: .7em 1.14em; }
  .horaires { font-size: clamp(11.7px,min(1.05vw,2.1vh),18px); line-height: 1.3; color: #e0e5e2; }
  .horaires strong { font-weight: 700; color: white; }
  .urgence {
    display: flex; gap: clamp(14.4px,2vw,34.2px); align-items: center; padding: .72em 1em .72em 1.26em; border-radius: .45em;
    position: relative; background: #0c1516ee; color: #fff;
    font-size: clamp(13.5px,min(1.15vw,2.2vh),18.9px); margin-top: clamp(12.6px,2.65vh,27.9px);
  }
  .urgence::before { content: ""; position: absolute; left: .32em; inset-block: .72em; width: .19em; background: var(--orange); border-radius: 2em; }
  .urgence-message { display: grid; gap: .05em; line-height: 1.14; }
  .urgence-message strong { font-size: 1.28em; font-weight: 700; letter-spacing: -.028em; }
  .numero { font-weight: 700; font-family: var(--display); letter-spacing: -.018em; font-variant-numeric: tabular-nums; font-size: 1.56em; gap: .37em; }
  .numero svg { height: 1.05em; width: 1.05em; }
  .urgence:hover .numero { text-decoration: underline; text-underline-offset: .15em; }
  .legende {
    position: absolute; right: 4vw; bottom: 4.9vh; text-align: right; color: white;
    text-shadow: 0 1px 5px #101818; line-height: 1.3;
  }
  .legende strong { display: block; font-size: clamp(13.5px,1.18vw,19.8px); }
  .legende span { display: inline-block; font-size: clamp(11.7px,1.04vw,17.1px); text-decoration: underline; text-underline-offset: .2em; }
  .prestations {
    display: grid; grid-template-columns: 1.08fr 1.14fr 1fr .99fr .96fr .98fr;
    align-items: stretch; height: clamp(55px,8.38dvh,88px); min-height: 0;
    background: #f7f7f8; padding: clamp(5.4px,1.45vh,14.4px) 1.6vw clamp(5px,1.05vh,10px);
  }
  .prestation {
    display: flex; align-items: center; justify-content: center; gap: .65vw;
    text-align: left; padding: 0 .42vw;
  }
  .prestation + .prestation { border-left: 1px solid #cdd0d2; }
  .prestation svg { width: clamp(23.4px,2.55vw,39.6px); height: clamp(23.4px,2.55vw,39.6px); color: var(--orange); flex-shrink: 0; stroke-width: 1.65; }
  .prestation strong, .prestation small { display: block; }
  .prestation strong { font-size: var(--titre-item); line-height: 1.14; letter-spacing: -.035em; }
  .prestation small { margin-top: .23em; font-size: var(--legende); line-height: 1.16; letter-spacing: -.015em; }
}

@media (max-width: 1000px) {
  .navigation, .contact-haut::before { display: none; }
  .barre { gap: 12px; }
  .marque { width: auto; flex: 1; justify-items: start; padding-left: 6px; }
  .marque::after { display: none; }
  .ouvre-menu { display: grid; place-items: center; width: 38px; height: 38px; }
  .ouvre-menu svg { width: 23px; height: 23px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  :root { --gouttiere: 5vw; --haut-barre: max(10px,env(safe-area-inset-top)); --hauteur-barre: clamp(52px,8vh,66px); }
  .barre { width: 92%; padding: 3px 10px; }
  .contact-haut { padding: 0; }
  .tel-haut { min-height: 44px; gap: 4px; }
  .tel-haut svg { width: 1.08em; height: 1.08em; }
  .marque img { height: 100%; max-width: 100px; }
  .paysage img { object-position: 52% 33%; }
  .hero::after { background: linear-gradient(0deg,#131b1cfa 0%,#121a1ce8 37%,#101a1eb0 62%,#11181a15 92%); }
  .corps { margin: auto var(--gouttiere) 0; padding: 22px 0 0; width: calc(100% - 2 * var(--gouttiere)); }
  .metiers { font-size: var(--surtitre); }
  h1 { font-size: var(--titre-page); margin-top: 11px; }
  .description { font-size: var(--introduction); line-height: 1.27; margin-top: 9px; }
  .entreprise { font-size: var(--note); margin-top: 9px; }
  .actions { margin-top: clamp(12px,2.4vh,24px); gap: 4.0vw; }
  .devis { font-size: clamp(14px,4vw,20px); padding: .77em .85em; }
  .horaires { font-size: clamp(12px,3.25vw,16px); }
  .urgence { width: 100%; justify-content: space-between; gap: 4px; font-size: clamp(12px,3.35vw,17px); margin-top: 14px; padding: .8em .82em .8em 1.15em; }
  .urgence-message strong { font-size: 1.28em; }
  .numero { font-size: 1.24em; }
  .legende { position: static; align-self: flex-end; display: flex; align-items: baseline; gap: 8px; margin: 11px var(--gouttiere) 13px; }
  .legende strong, .legende span { font-size: 12px; }
  .prestations { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 3px 3vw max(5px,env(safe-area-inset-bottom)); }
  .prestation { justify-content: flex-start; min-height: clamp(38px,6.1vh,54px); padding: 4px 1.7vw; gap: 2vw; }
  .prestation + .prestation { border: 0; }
  .prestation:nth-child(even) { border-left: 1px solid #d5d8d8; }
  .prestation:nth-child(n+3) { border-top: 1px solid #d5d8d8; }
  .prestation svg { width: 24px; height: 24px; }
  .prestation strong { font-size: var(--titre-item); }
  .prestation small { font-size: var(--legende); margin-top: 2px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  :root { --hauteur-barre: max(37px,10.7vh); --haut-barre: max(env(safe-area-inset-top),1.8vh); }
  .corps { margin-block: auto; padding-block: 2vh; }
  .metiers, .entreprise, .horaires { font-size: var(--surtitre); }
  h1 { font-size: var(--titre-page); margin-top: 1.5vh; }
  .description { font-size: var(--introduction); margin-top: 1.3vh; }
  .entreprise { margin-top: 1.4vh; }
  .actions, .urgence { margin-top: 2.2vh; }
  .devis { font-size: clamp(12px,3.3vh,17px); }
  .urgence { font-size: clamp(10px,2.8vh,15px); }
  .prestations { min-height: 48px; padding-block: 4px; }
  .prestation { gap: 3px; }
  .prestation svg { width: 21px; height: 21px; }
  .prestation strong { font-size: var(--titre-item); }
  .prestation small { font-size: var(--legende); }
  .legende { bottom: 4vh; }
}

@media (max-width: 365px) and (orientation: portrait) {
  .corps { padding-top: 9px; }
  .metiers { gap: .45em; font-size: var(--surtitre); }
  .toit { width: 3em; }
  .description, .entreprise { margin-top: 6px; }
  .actions { margin-top: 8px; gap: 9px; }
  .devis { padding-inline: .62em; }
  .urgence { margin-top: 8px; padding-block: .6em; }
  .legende { margin-block: 6px; }
}

.navigation [aria-current="location"] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: .16em;
  text-underline-offset: .45em;
}
main :is(a, button):focus-visible {
  scroll-margin-top: calc(var(--espace-barre) + 10px);
}
