/* Jolia : feuille du site joliabatiment.fr.
   Valeurs reprises du design system Jolia (tokens.json), tirées du logo :
   les verts du logo, les surfaces métalliques et les photographies des chantiers. */

@font-face { font-family: "Barlow Condensed"; src: url("polices/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("polices/BarlowCondensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/Barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/Barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/Barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --vert-jolia: #7bb79b;
  --vert-foret: #245541;
  --vert-foret-fonce: #153d30;
  --lavis: #c3ded5;
  --brume: #edf3ef;
  --ecume: #eef6f3;
  --blanc: #ffffff;
  --encre: #192b23;
  --ardoise: #4b5752;
  --acier: #75837d;
  --trait: #c9d6d1;
  --alerte: #b3261e;

  --font-titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-texte: Barlow, "Segoe UI", Arial, sans-serif;

  --espace-1: 4px;
  --espace-2: 8px;
  --espace-3: 16px;
  --espace-4: 24px;
  --espace-5: 40px;
  --espace-6: 64px;
  --espace-7: 112px;

  --rayon-1: 4px;
  --trait-toit: 2px;
  --ombre-carte: 0 1px 0 #c9d6d1, 0 8px 24px rgba(18, 22, 20, 0.06);
  --marge: var(--espace-3);
}
@media (min-width: 768px) { :root { --marge: var(--espace-5); } }

/* Socle */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--acier) var(--ecume); scroll-padding-top: var(--espace-4); }
body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  caret-color: var(--vert-foret);
  accent-color: var(--vert-foret);
}
::selection { background: var(--lavis); color: var(--encre); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--vert-foret); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vert-foret-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
p { margin: 0 0 var(--espace-3); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--font-titre); text-wrap: balance; margin: 0; }
strong { font-weight: 600; }
sup { font-size: .7em; line-height: 0; vertical-align: .55em; }
.insecable { white-space: nowrap; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.evitement { position: absolute; left: var(--espace-3); top: -100px; z-index: 50; background: var(--encre); color: var(--blanc); padding: var(--espace-2) var(--espace-3); font-weight: 600; border-radius: var(--rayon-1); }
.evitement:focus { top: var(--espace-3); }
.evitement:hover, .evitement:focus { color: var(--blanc); }

.conteneur { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--marge); }

/* Titres */
.titre-xl { font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: 0.005em; }
.titre-l { font-weight: 700; font-size: 32px; line-height: 1.05; }
.titre-m { font-weight: 600; font-size: 24px; line-height: 1.15; }
@media (min-width: 900px) {
  .titre-xl { font-size: 64px; }
  .titre-l { font-size: 48px; }
  .titre-m { font-size: 28px; }
}
.chapo { font-size: 20px; line-height: 1.5; color: var(--ardoise); max-width: 36em; }
:is(.titre-xl, .titre-l, .titre-m) + .chapo { margin-top: var(--espace-3); }
.chapo + .titre-m, p + .titre-m { margin: var(--espace-5) 0 var(--espace-2); }
.legende { font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--ardoise); }
.surtitre { font-family: var(--font-titre); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-2);
  min-height: 48px; padding: 0 var(--espace-4);
  border: 2px solid transparent; border-radius: var(--rayon-1);
  font-family: var(--font-texte); font-size: 17px; font-weight: 600; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.bouton:hover { text-decoration: none; }
.bouton--principal { background: var(--vert-foret); color: var(--blanc); }
.bouton--principal:hover { background: var(--vert-foret-fonce); color: var(--blanc); }
.bouton--contour { background: var(--blanc); color: var(--encre); border-color: var(--encre); }
.bouton--contour:hover { background: var(--encre); color: var(--blanc); }
.bouton--principal:active { background: var(--encre); }
.bouton--contour:active { background: var(--ardoise); border-color: var(--ardoise); color: var(--blanc); }
.bouton svg { width: 18px; height: 18px; flex: none; }
.icone { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--trait); position: relative; z-index: 20; }
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-4); min-height: 80px; }
.entete__logo { flex: none; display: block; }
.entete__logo img { width: 130px; height: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav a {
  display: inline-block; padding: var(--espace-2) 0;
  font-family: var(--font-texte); font-weight: 500; font-size: 15px; letter-spacing: 0;
  color: var(--encre); text-decoration: none; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--vert-jolia); }
.entete__tel, .entete__devis { display: none; }
.entete__devis[aria-current="page"] { background: var(--ecume); }
.entete__devis[aria-current="page"]:hover { background: var(--encre); color: var(--blanc); }
.entete__menu {
  display: inline-flex; align-items: center; gap: var(--espace-2);
  min-height: 44px; padding: 0 var(--espace-3);
  background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); border-radius: var(--rayon-1);
  font: 600 15px var(--font-texte); cursor: pointer;
}
.entete__menu svg { width: 18px; height: 18px; }
.entete[data-menu="ouvert"] .nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--blanc); border-bottom: 1px solid var(--trait); box-shadow: 0 12px 24px rgba(18, 22, 20, 0.08);
  padding: var(--espace-2) var(--marge) var(--espace-4);
}
.entete[data-menu="ouvert"] .nav ul { flex-direction: column; gap: 0; }
.entete[data-menu="ouvert"] .nav li + li { border-top: 1px solid var(--trait); }
.entete[data-menu="ouvert"] .nav a { display: block; padding: 14px 0; border-bottom: 0; }
.entete[data-menu="ouvert"] .nav a[aria-current="page"] { color: var(--vert-foret); text-decoration: underline; }
/* « Nos métiers » : bouton qui déplie les six métiers (liste déroulante sur grand écran, liste en retrait dans le menu mobile) */
.nav__ouvrir {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: var(--espace-2) 0;
  background: none; border: 0; border-bottom: 3px solid transparent; appearance: none;
  font: 500 15px var(--font-texte); color: var(--encre); cursor: pointer;
}
.nav__ouvrir .icone { width: 16px; height: 16px; transition: transform .15s; }
.nav__ouvrir[aria-expanded="true"] .icone { transform: rotate(180deg); }
.nav__ouvrir:hover, .nav__ouvrir--actif { border-bottom-color: var(--vert-jolia); }
.nav .nav__sous { display: none; }
.nav .nav__ouvrir[aria-expanded="true"] + .nav__sous { display: block; }
.entete[data-menu="ouvert"] .nav__ouvrir { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 0; }
.entete[data-menu="ouvert"] .nav .nav__sous { margin: 0 0 var(--espace-2); padding-left: var(--espace-3); border-left: 2px solid var(--lavis); }
.entete[data-menu="ouvert"] .nav .nav__sous li + li { border-top: 0; }
.entete[data-menu="ouvert"] .nav .nav__sous a { padding: 10px 0; }
@media (prefers-reduced-motion: reduce) { .nav__ouvrir .icone { transition: none; } }
@media (min-width: 1000px) {
  .entete__in { min-height: 104px; }
  .entete__logo img { width: 168px; }
  .entete__tel, .entete__devis { display: inline-flex; }
  .nav__devis { display: none; }
  .entete__devis { margin-left: auto; margin-right: calc(var(--espace-2) * -1); }
}
/* Quatre rubriques (dont « Nos métiers ») : le menu tient sur une ligne à partir de 1 140 px ; en dessous, bouton Menu. */
@media (min-width: 1140px) {
  .nav, .entete[data-menu="ouvert"] .nav { display: block; position: static; padding: 0; box-shadow: none; border: 0; }
  .nav { margin-left: auto; }
  .nav > ul { align-items: center; }
  .nav a { white-space: nowrap; }
  .entete__devis { margin-left: var(--espace-2); }
  .entete__menu { display: none; }
  .nav__groupe { position: relative; }
  .entete[data-menu="ouvert"] .nav__ouvrir { width: auto; padding: var(--espace-2) 0; border-bottom: 3px solid transparent; }
  .nav .nav__sous, .entete[data-menu="ouvert"] .nav .nav__sous {
    position: absolute; top: calc(100% + 12px); left: calc(var(--espace-3) * -1); z-index: 30; min-width: 290px;
    margin: 0; padding: var(--espace-2) 0; background: var(--blanc);
    border: 1px solid var(--trait); border-radius: var(--rayon-1); box-shadow: 0 12px 24px rgba(18, 22, 20, 0.08);
  }
  .nav .nav__sous li + li { border-top: 0; }
  .nav .nav__sous a, .entete[data-menu="ouvert"] .nav .nav__sous a { display: block; padding: 10px var(--espace-3); border-bottom: 0; }
  .nav .nav__sous a:hover { background: var(--ecume); }
  .nav .nav__sous a[aria-current="page"] { color: var(--vert-foret); font-weight: 600; text-decoration: none; box-shadow: inset 3px 0 0 var(--vert-jolia); }
}

/* Le Havre : le chantier constitue le paysage de l'accueil. */
.heros { position: relative; isolation: isolate; background: #153d30; color: #fff; }
.heros__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.heros::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,35,27,.94), rgba(13,35,27,.76) 40%, rgba(13,35,27,.16) 80%); }
.heros__in { min-height: 650px; padding-top: 74px; padding-bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.heros__texte { max-width: 760px; }
.heros .titre-xl { font-size: clamp(58px, 6.4vw, 92px); line-height: .99; letter-spacing: -.015em; font-weight: 600; }
.heros .chapo { margin: 26px 0 0; max-width: 430px; color: #fff; font-size: 19px; line-height: 1.6; }
.heros__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 32px; }
.heros .bouton--principal { background: #c3ded5; color: #153d30; min-height: 54px; }
.heros .bouton--principal:hover { background: #fff; color: #153d30; }
.heros__lien { color: #fff; padding: 10px 0; font-size: 16px; text-decoration-color: #a8c9bc; }
.heros__lien:hover { color: #fff; text-decoration-color: #fff; }
.heros :focus-visible { outline-color: #fff; }
.heros__chantier { align-self: end; flex: 0 0 272px; margin-bottom: 5px; padding: 22px 24px; background: #fff; color: var(--encre); text-decoration: none; border-radius: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.heros__chantier > span { display: block; font-size: 14px; }
.heros__chantier strong { display: block; margin: 10px 0 16px; font-family: var(--font-titre); font-size: 28px; line-height: 1.15; }
.heros__chantier .heros__chantier-suite { display: flex; align-items: center; justify-content: space-between; color: var(--vert-foret); font-weight: 600; }
.heros__chantier .icone { width: 20px; height: 20px; }
.heros__chantier:hover .heros__chantier-suite { text-decoration: underline; }
.reperes { background: var(--ecume); border-bottom: 1px solid var(--trait); }
.reperes__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 25px; padding-bottom: 25px; }
.reperes__in > * { display: flex; align-items: center; gap: 16px; margin: 0; color: var(--encre); text-decoration: none; font-size: 14px; line-height: 1.5; }
.reperes strong { display: block; font-size: 16px; font-weight: 600; }
.reperes .icone { width: 30px; height: 30px; flex: none; color: var(--vert-foret); }
.reperes a:hover strong { text-decoration: underline; }
.acces-metiers { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 36px; padding-bottom: 4px; gap: 0 32px; }
.acces-metiers a { display: flex; align-items: center; gap: 16px; padding: 18px 0; min-height: 72px; text-decoration: none; color: var(--encre); border-bottom: 1px solid var(--trait); font-weight: 600; }
.acces-metiers .icone { flex: none; width: 32px; height: 32px; color: var(--vert-foret); }
.acces-metiers .icone--fleche { width: 20px; height: 20px; margin-left: auto; }
.acces-metiers a:hover { border-color: var(--vert-foret); color: var(--vert-foret); }
@media (max-width: 899px) {
  .heros__in { min-height: auto; padding-top: 48px; padding-bottom: 40px; align-items: start; flex-direction: column; gap: 36px; }
  .heros__texte { max-width: 560px; }
  .heros__chantier { align-self: start; flex: none; width: 272px; margin: 0; }
  .heros__photo { object-position: 65% center; }
  .heros::before { background: linear-gradient(90deg, rgba(13,35,27,.92), rgba(13,35,27,.7)); }
  .reperes__in { flex-wrap: wrap; justify-content: start; gap: 24px 40px; }
  .reperes__in > * { flex: 1 1 260px; }
  .acces-metiers { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .acces-metiers a { gap: 10px; font-size: 16px; }
}
@media (max-width: 599px) {
  .heros .titre-xl { font-size: clamp(40px, 11.6vw, 70px); }
  .heros .chapo { font-size: 17px; max-width: 30em; }
  .heros__actions { gap: 12px; flex-direction: column; align-items: start; }
  .heros__chantier { padding: 16px 20px; width: 100%; max-width: 340px; }
  .heros__chantier strong { font-size: 24px; }
  .reperes__in { gap: 20px; padding-top: 24px; padding-bottom: 24px; }
  .reperes__in > * { font-size: 13px; }
  .acces-metiers { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .acces-metiers a { min-height: 68px; }
}
/* Bandeau coordonnées : le bandeau vert du logo */
.bandeau { background: var(--vert-jolia); color: var(--encre); }
.bandeau__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--espace-2) var(--espace-4); padding-top: var(--espace-3); padding-bottom: var(--espace-3); font-weight: 600; text-align: center; }
.bandeau a { color: var(--encre); text-decoration: none; }
.bandeau a:hover { color: var(--encre); text-decoration: underline; }
.bandeau__sep { width: 1px; height: 20px; background: var(--encre); opacity: .45; }
@media (max-width: 720px) { .bandeau__sep { display: none; } .bandeau__in { flex-direction: column; } }

/* En-tête des pages intérieures */
.tete-page { position: relative; overflow: hidden; background: var(--blanc); border-bottom: 1px solid var(--trait); }
.tete-page__lavis { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: url("images/lavis.webp") left top / auto 100% no-repeat; transform: scaleX(-1); opacity: .5; pointer-events: none; }
.tete-page__in { position: relative; padding-top: var(--espace-5); padding-bottom: var(--espace-6); }
.tete-page .chapo { margin-top: var(--espace-3); }
.tete-page__actions { display: flex; flex-wrap: wrap; gap: var(--espace-3); margin-top: var(--espace-5); }
.fil { margin: 0 0 var(--espace-5); font-size: 15px; color: var(--ardoise); }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--espace-1) var(--espace-2); }
.fil li + li::before { content: "/"; margin-right: var(--espace-2); color: var(--acier); }
.fil a { display: inline-block; padding: 3px 0; color: var(--ardoise); }
@media (min-width: 900px) {
  .tete-page__lavis { opacity: .85; width: 32%; }
  .tete-page__in { padding-top: var(--espace-5); padding-bottom: var(--espace-7); }
}

/* En-tête intérieur avec une photo de chantier : à droite sur ordinateur, dessous sur mobile */
.tete-page--photo { display: grid; }
.tete-page--photo .tete-page__in { padding-bottom: var(--espace-5); }
.tete-page__photo { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--encre); }
.tete-page__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tete-page__photo figcaption { position: absolute; left: var(--espace-3); right: var(--espace-3); bottom: var(--espace-3); font-size: 14px; line-height: 1.45; }
.tete-page__photo figcaption a { display: inline-block; padding: 5px 9px; background: rgba(18, 22, 20, .82); color: var(--blanc); border-radius: var(--rayon-1); font-weight: 500; text-decoration: none; }
.tete-page__photo figcaption a:hover { text-decoration: underline; }
.tete-page__photo :focus-visible { outline-color: var(--blanc); }
@media (min-width: 900px) {
  .tete-page--photo { grid-template-columns: minmax(0, 1fr) 42%; }
  .tete-page--photo .tete-page__in { max-width: none; margin: 0; padding-left: max(var(--marge), calc((100vw - 1280px) / 2 + var(--marge))); padding-right: var(--espace-6); padding-bottom: var(--espace-7); }
  .tete-page__photo { aspect-ratio: auto; min-height: 100%; }
}

/* Sections */
.section { padding: var(--espace-6) 0; }
.section--brume { background: var(--brume); }
.section--ecume { background: var(--ecume); }
.section--lavis { background: var(--lavis); }
/* Sur lavis, le vert forêt n'atteint pas 4,5:1 (design system) : liens en vert forêt foncé, 7:1. */
.section--lavis .devis__aide a:not(.devis__tel) { color: var(--vert-foret-fonce); }
.section + .section:not([class*="--"]) { border-top: 1px solid var(--trait); }
@media (min-width: 900px) { .section { padding: var(--espace-7) 0; } }
.section__tete { max-width: 46em; margin-bottom: var(--espace-5); }
.section__tete .chapo { margin-top: var(--espace-3); }
.prose { max-width: 40em; }
.prose h2 { margin: var(--espace-5) 0 var(--espace-3); }
.prose h3 { margin: var(--espace-4) 0 var(--espace-2); }
.prose ul { margin: 0 0 var(--espace-3); padding-left: 1.2em; }
.prose li + li { margin-top: var(--espace-1); }

/* Métiers : les matériaux et les chantiers portent la composition. */
.metier__in { display: grid; gap: 32px; align-items: center; }
.metier__titre { margin-bottom: 24px; }
.metier__titre > .icone { width: 40px; height: 40px; color: var(--vert-foret); margin-bottom: 20px; }
.metier__texte > p { font-size: 18px; line-height: 1.7; max-width: 35em; color: var(--ardoise); }
.liste-trait { list-style: none; margin: 24px 0 0; padding: 0; }
.liste-trait li { position: relative; padding: 8px 0 8px 22px; }
.liste-trait li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; background: var(--vert-foret); border-radius: 50%; }
.metier__lien { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 24px; font-weight: 600; }
.metier__lien .icone { width: 20px; height: 20px; flex: none; }
.section--brume .metier__lien { color: var(--vert-foret); }
.metier__in > .metier__photo { margin: 0; }
.metier__in > .metier__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.metier__photo figcaption { max-width: 36em; margin-top: 12px; }
@media (min-width: 900px) {
  .metier__in { grid-template-columns: 1.08fr 1fr; gap: 80px; }
  /* Photo à droite une section sur deux : couverture, puis bardage (après les ombrières). */
  #couverture .metier__in, #bardage .metier__in { grid-template-columns: 1fr 1.08fr; }
  #couverture .metier__photo, #bardage .metier__photo { order: 2; }
}
/* Certificat Qualibat : présenté comme le document qu'il est */
.qualif__in { display: grid; gap: var(--espace-5); }
.certificat { background: var(--blanc); border: 1px solid var(--trait); padding: var(--espace-4); }
.certificat__titre { font-family: var(--font-titre); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0 0 var(--espace-1); }
.certificat__numero { font-variant-numeric: tabular-nums; color: var(--ardoise); margin: 0 0 var(--espace-4); }
.certificat dl { margin: 0; display: grid; gap: 0; }
.certificat dt { font-weight: 600; font-size: 15px; color: var(--ardoise); padding-top: 12px; border-top: 1px solid var(--trait); }
.certificat dd { margin: 2px 0 0; padding-bottom: 12px; }
.certificat__lien { display: inline-block; margin-top: var(--espace-3); font-weight: 600; }
@media (min-width: 600px) {
  .certificat { padding: var(--espace-5); }
  .certificat dl { grid-template-columns: 11em 1fr; }
  .certificat dt { padding: 12px var(--espace-3) 12px 0; }
  .certificat dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--trait); }
}
@media (min-width: 900px) { .qualif__in { grid-template-columns: 5fr 7fr; gap: var(--espace-6); align-items: start; } }

/* Entreprise */
.entreprise__in { display: grid; gap: var(--espace-5); align-items: center; }
.entreprise__logo { background: var(--blanc); padding: var(--espace-4); border-radius: var(--rayon-1); }
.entreprise__logo img { width: 100%; max-width: 480px; margin: 0 auto; }
@media (min-width: 900px) { .entreprise__in { grid-template-columns: 7fr 5fr; gap: var(--espace-7); } }

/* Devis */
.devis__in { display: grid; gap: var(--espace-5); }
.devis__aide h3 { font-family: var(--font-titre); font-weight: 600; font-size: 22px; margin: var(--espace-5) 0 var(--espace-2); }
.devis__aide h2 + .coordonnees { margin-top: var(--espace-4); }
.devis__aide ul { margin: 0; padding-left: 1.2em; }
.devis__aide li + li { margin-top: var(--espace-2); }
.devis__tel { display: inline-block; font-family: var(--font-titre); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--encre); text-decoration: none; margin-top: var(--espace-2); font-variant-numeric: tabular-nums; }
.devis__tel:hover { color: var(--vert-foret-fonce); text-decoration: underline; }
@media (min-width: 900px) { .devis__in { grid-template-columns: 5fr 7fr; gap: var(--espace-7); align-items: start; } }

/* Formulaire */
.formulaire { background: var(--blanc); padding: var(--espace-4); border-radius: var(--rayon-1); display: grid; gap: var(--espace-3); }
.formulaire__note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ardoise); }
.champ { display: grid; gap: var(--espace-2); align-content: start; }
.champ label { font-weight: 600; font-size: 15px; }
.champ label span { font-weight: 400; color: var(--ardoise); }
.champ input:not([type="radio"]), .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 10px var(--espace-3);
  border: 1px solid var(--acier); border-radius: var(--rayon-1); background: var(--ecume);
  font: 400 17px/1.4 var(--font-texte); color: var(--encre);
}
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121614' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.champ textarea { min-height: 140px; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--ardoise); opacity: 1; }
.champ input:not([type="radio"]):focus, .champ select:focus, .champ textarea:focus { background: var(--blanc); border-color: var(--encre); outline: 2px solid var(--encre); outline-offset: 0; }
.champ--erreur input:not([type="radio"]), .champ--erreur textarea { border-color: var(--alerte); }
.champ__aide { font-size: 14px; color: var(--ardoise); }
.champ__erreur { color: var(--alerte); font-size: 14px; font-weight: 500; }
.champ__erreur:empty { display: none; }
.piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__mention { grid-column: 1 / -1; font-size: 14px; color: var(--ardoise); margin: 0; }
.formulaire__envoi { grid-column: 1 / -1; justify-self: start; }
.formulaire__etat { grid-column: 1 / -1; margin: 0; padding: var(--espace-3); border-radius: var(--rayon-1); font-weight: 500; }
.formulaire__etat:empty { display: none; }
.formulaire__ko { display: none; grid-column: 1 / -1; margin: 0; padding: var(--espace-3); border: 1px solid var(--alerte); border-radius: var(--rayon-1); color: var(--alerte); font-weight: 500; }
.formulaire__ko:target { display: block; }
.formulaire__etat[data-etat="ok"] { background: var(--ecume); border: 1px solid var(--vert-foret); }
.formulaire__etat[data-etat="ko"] { background: var(--blanc); border: 1px solid var(--alerte); color: var(--alerte); }
@media (min-width: 600px) {
  .formulaire { grid-template-columns: 1fr 1fr; padding: var(--espace-5); }
  .champ--large { grid-column: 1 / -1; }
}
.section--lavis .formulaire { box-shadow: none; }

/* Grille de détails (pages métiers) */
.details { display: grid; gap: var(--espace-4) var(--espace-5); }
.details h3 { font-weight: 600; font-size: 24px; line-height: 1.15; margin-bottom: var(--espace-2); }
.details p { color: var(--ardoise); }
@media (min-width: 700px) { .details { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .details--trois { grid-template-columns: repeat(3, 1fr); } }

/* Accueil : entretien et sécurisation, deux blocs côte à côte sous l'étanchéité */
.duo { display: grid; gap: var(--espace-6); }
.duo__bloc > p { font-size: 18px; line-height: 1.7; max-width: 35em; color: var(--ardoise); }
.duo__bloc .metier__lien { margin-top: var(--espace-3); }
.duo .metier__titre > .icone { width: 40px; height: 40px; color: var(--vert-foret); margin-bottom: 16px; }
.duo .metier__titre { margin-bottom: var(--espace-3); }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: var(--espace-7); } }

/* Tableau des matériaux */
.tableau { width: 100%; border-collapse: collapse; font-size: 16px; }
.tableau caption { text-align: left; font-weight: 600; margin-bottom: var(--espace-2); }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 12px var(--espace-3) 12px 0; border-bottom: 1px solid var(--trait); }
.tableau thead th { font-family: var(--font-titre); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; border-bottom: 2px solid var(--encre); }
.tableau td:last-child, .tableau th:last-child { padding-right: 0; }
.tableau-defile { overflow-x: auto; }

/* Bandeau d'appel en bas de page intérieure */
.appel { background: var(--vert-foret-fonce); color: var(--blanc); }
.appel__in { display: grid; gap: var(--espace-4); padding-top: var(--espace-6); padding-bottom: var(--espace-6); align-items: center; }
.appel h2 { color: var(--blanc); }
.appel p { color: var(--lavis); margin-top: var(--espace-2); }
.appel__actions { display: flex; flex-wrap: wrap; gap: var(--espace-3); }
.appel .bouton--contour { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.appel .bouton--contour:hover { background: var(--blanc); color: var(--encre); }
.appel .bouton--clair { background: var(--blanc); color: var(--encre); }
.appel .bouton--clair:hover { background: var(--lavis); color: var(--encre); }
.appel :focus-visible { outline-color: var(--blanc); }
@media (min-width: 900px) { .appel__in { grid-template-columns: 1fr auto; } }

/* Contact */
.coordonnees, .devis__aide .coordonnees { list-style: none; margin: 0 0 var(--espace-5); padding: 0; border-top: 1px solid var(--acier); }
.devis__aide .coordonnees li + li { margin-top: 0; }
.coordonnees li { padding: var(--espace-3) 0; border-bottom: 1px solid var(--acier); }
.coordonnees__type { display: block; font-size: 15px; font-weight: 600; color: var(--ardoise); }
.coordonnees a { display: inline-block; padding: 3px 0; font-weight: 600; }
.coordonnees__grand { font-family: var(--font-titre); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--encre); text-decoration: none; }

/* Pages légales */
.legal { padding: var(--espace-6) 0; }
.legal h2 { font-size: 28px; font-weight: 600; margin: var(--espace-5) 0 var(--espace-2); }
.legal h2:first-child { margin-top: 0; }
.legal dl { margin: 0 0 var(--espace-3); }
.legal dt { font-weight: 600; margin-top: var(--espace-2); }
.legal dd { margin: 0; }

/* 404 */
.introuvable { padding: var(--espace-6) 0 var(--espace-7); text-align: center; }
.introuvable img { width: min(420px, 100%); margin: 0 auto var(--espace-5); }
.introuvable .chapo { margin: var(--espace-3) auto 0; }

.introuvable > .conteneur > p:not(.chapo) { margin-top: var(--espace-3); }
.introuvable ul { list-style: none; padding: 0; margin: var(--espace-5) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--espace-3) var(--espace-4); font-weight: 600; }

/* Pied de page */
.pied { background: var(--vert-foret-fonce); color: var(--blanc); padding: var(--espace-6) 0 var(--espace-4); font-size: 16px; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--lavis); }
.pied :focus-visible { outline-color: var(--blanc); }
.pied__grille { display: grid; gap: var(--espace-5); }
@media (min-width: 900px) { .pied__grille { grid-template-columns: 2fr 1fr 1fr; } }
.pied__logo { display: inline-block; max-width: 100%; padding: 12px; margin-bottom: 20px; background: var(--blanc); border-radius: var(--rayon-1); }
.pied__logo img { display: block; width: 240px; max-width: 100%; height: auto; }
.pied__titre { color: var(--lavis); margin: 0 0 var(--espace-3); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pied li a { display: inline-block; padding: 10px 0; }
.pied__qualif { margin-top: var(--espace-3); color: var(--lavis); }
.pied__bas { margin-top: var(--espace-5); padding-top: var(--espace-3); border-top: 1px solid rgba(255, 255, 255, .25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--espace-2) var(--espace-4); color: var(--lavis); font-size: 14px; }
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 0 var(--espace-4); }
.pied__bas { align-items: center; }
.pied__bas a { color: var(--lavis); }

/* Barre d'appel mobile : téléphone, WhatsApp et devis toujours sous le pouce.
   Le pied de page passe dessous (fond vert jusqu'en bas), plutôt qu'une marge blanche sous la page. */
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--espace-2); padding: var(--espace-2) var(--espace-3) calc(var(--espace-2) + env(safe-area-inset-bottom)); background: var(--blanc); border-top: 1px solid var(--trait); box-shadow: 0 -6px 18px rgba(18, 22, 20, 0.06); }
.barre-mobile .bouton { flex-direction: column; gap: 3px; min-height: 54px; padding: 4px var(--espace-1); font-size: 14px; line-height: 1.1; }
.barre-mobile .bouton svg { width: 20px; height: 20px; }
.pied { padding-bottom: calc(var(--espace-4) + 72px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) {
  .barre-mobile { display: none; }
  .pied { padding-bottom: 104px; }
}
/* Au clavier, l'élément actif ne doit jamais finir sous la barre (WCAG 2.2, critère 2.4.11) :
   le défilement garde la hauteur de la barre (72 px) plus une marge au-dessus. */
@media (max-width: 999px) {
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
/* Sur ordinateur, même réserve pour le bouton WhatsApp flottant (54 px, à 24 px du bas). */
@media (min-width: 1000px) {
  html { scroll-padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .entete__menu, .barre-mobile, .whatsapp-flottant, .entete__devis, .heros__photo, .heros__legende, .tete-page__lavis, .formulaire, .appel__actions { display: none !important; }
  .heros { background: none; color: var(--encre); }
  .heros::before { display: none; }
  body { padding: 0; }
  .pied { background: none; color: var(--encre); }
  .pied a, .pied__bas, .pied__bas a, .pied__titre, .pied__qualif { color: var(--encre); }
}

/* Chantiers publiés sur Instagram (@jolia_batiment) : photos tirées des vidéos, lecteur, galerie */
[hidden] { display: none !important; }

.metier__photo { margin: var(--espace-5) 0 0; }
.metier__photo img { width: 100%; border-radius: var(--rayon-1); }
.metier__photo figcaption { margin-top: var(--espace-2); }

.chantiers__tete { display: grid; gap: var(--espace-3) var(--espace-5); margin-bottom: var(--espace-5); }
.chantiers__liens { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-2) var(--espace-5); margin: 0; }
.chantiers__liens .metier__lien { margin: 0; color: var(--encre); }
.chantiers__instagram, .chantiers__linkedin, .pied li a.pied__instagram, .pied li a.pied__linkedin { display: inline-flex; align-items: center; gap: var(--espace-2); font-weight: 600; }
.chantiers__instagram, .chantiers__linkedin { color: var(--encre); }
.chantiers__instagram svg, .chantiers__linkedin svg, .pied__instagram svg, .pied__linkedin svg, .bouton .icone { width: 18px; height: 18px; flex: none; }
@media (min-width: 900px) { .chantiers__tete { grid-template-columns: 1fr auto; align-items: end; } }

.vignettes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--espace-4) var(--espace-3); }
@media (min-width: 900px) { .vignettes { grid-template-columns: repeat(4, 1fr); gap: var(--espace-4); } }
.vignette { display: block; color: var(--encre); text-decoration: none; }
.vignette img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon-1); transition: filter .2s; }
.vignette:hover img { filter: brightness(.92); }
.vignette__lieu { display: block; margin-top: var(--espace-3); font-size: 15px; font-weight: 500; color: var(--ardoise); }
.vignette__titre { display: block; margin-top: 2px; font-family: var(--font-titre); font-weight: 600; font-size: 20px; line-height: 1.3; }
.vignette:hover .vignette__titre { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Macaron Qualibat dans le certificat */
.certificat > img:first-child { float: right; width: 72px; height: auto; margin: 0 0 var(--espace-3) var(--espace-3); }
@media (min-width: 600px) { .certificat > img:first-child { width: 96px; } }
.certificat dl { clear: both; }

.entreprise__photo { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.entreprise__photo img { width: 100%; border-radius: var(--rayon-1); }
.entreprise__photo figcaption { margin-top: var(--espace-2); }
.suivre { display: flex; flex-wrap: wrap; gap: var(--espace-3); margin: var(--espace-4) 0 0; }

/* Protections d'étanchéité, avec la photo de chacune */
.protections { display: grid; gap: var(--espace-5) var(--espace-5); }
.protection img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon-1); margin-bottom: var(--espace-3); }
.protection h3 { font-weight: 600; font-size: 24px; line-height: 1.15; margin-bottom: var(--espace-2); }
.protection p { color: var(--ardoise); }
@media (min-width: 700px) { .protections { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .protections { grid-template-columns: repeat(3, 1fr); } }
/* Photovoltaïque (demande de Jolia, 09/10/2026) : septième finition, sur toute la largeur, photo à gauche. */
@media (min-width: 700px) {
  .protection--large { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--espace-5); align-items: center; }
  .protection--large img { grid-row: 1 / span 2; margin-bottom: 0; }
  .protection--large h3 { align-self: end; }
  .protection--large p { align-self: start; max-width: 34em; }
}
@media (min-width: 1000px) { .protection--large { grid-template-columns: 1fr 2fr; } }

/* Filtre par métier (page Réalisations) */
.filtre { display: flex; flex-wrap: wrap; gap: var(--espace-2); margin: 0 0 var(--espace-5); }
.filtre button {
  display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 44px; padding: 0 var(--espace-3);
  background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); border-radius: var(--rayon-1);
  font: 600 16px/1 var(--font-texte); cursor: pointer;
}
.filtre button span { font-weight: 500; color: var(--ardoise); font-variant-numeric: tabular-nums; }
.filtre button:hover { background: var(--ecume); }
.filtre button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.filtre button[aria-pressed="true"] span { color: var(--lavis); }

/* Galerie de chantiers : colonnes à hauteur libre, les images gardent leur format */
.galerie { columns: 1; column-gap: var(--espace-5); }
@media (min-width: 700px) { .galerie { columns: 2; } }
@media (min-width: 1100px) { .galerie { columns: 3; } }
.chantier { break-inside: avoid; margin: 0 0 var(--espace-6); }
.chantier__media { position: relative; display: block; overflow: hidden; border-radius: var(--rayon-1); background: var(--encre); }
.chantier__media img { width: 100%; max-height: 500px; object-fit: cover; transition: opacity .2s; }
.chantier__media:hover img { opacity: .88; }
.chantier__media:focus-visible { outline-offset: 3px; }
.chantier__video {
  position: absolute; left: var(--espace-3); bottom: var(--espace-3);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px;
  background: var(--encre); color: var(--blanc); border-radius: var(--rayon-1);
  font-size: 14px; font-weight: 600; line-height: 1;
}
.chantier__video svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.chantier__media:hover .chantier__video { background: var(--vert-foret); }
.chantier__titre { font-weight: 600; font-size: 24px; line-height: 1.15; margin-top: var(--espace-3); }
.chantier__lieu { margin: var(--espace-1) 0 var(--espace-2); font-size: 15px; font-weight: 500; color: var(--ardoise); }
.chantier__texte { font-size: 16px; line-height: 1.55; }
.chantier__avant { display: flex; align-items: center; gap: var(--espace-3); margin: var(--espace-3) 0 0; }
.chantier__avant img { width: 140px; border-radius: var(--rayon-1); }
.chantier__avant figcaption { font-size: 15px; font-weight: 500; color: var(--ardoise); }
.chantier__plus { margin-top: var(--espace-2); }
.chantier__plus a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; font-weight: 600; }
.chantier__plus svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.section--brume .chantier__media { background: var(--encre); }
.section--brume .chantier__plus a, .section--brume .galerie__suite a { color: var(--encre); }
.galerie__suite { margin: 0; }
.protections__video { margin: var(--espace-5) 0 0; }
.lien-video { display: inline-flex; align-items: center; gap: var(--espace-2); min-height: 44px; font-weight: 600; }
.lien-video svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.galerie__suite .metier__lien { margin-top: 0; }

/* Avant, après (page Bardage) : deux vues à la même hauteur */
.avant-apres { margin: 0 0 var(--espace-6); }
.avant-apres__paire { display: grid; gap: var(--espace-2); }
@media (min-width: 700px) { .avant-apres__paire { grid-template-columns: 2.628fr 1.333fr; } }
.avant-apres__vue { position: relative; }
.avant-apres__vue img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon-1); }
.avant-apres__etiquette {
  position: absolute; left: var(--espace-3); top: var(--espace-3); padding: 4px 10px;
  background: var(--blanc); color: var(--encre); border-radius: var(--rayon-1);
  font-family: var(--font-titre); font-weight: 600; font-size: 18px; line-height: 1.2;
}
.avant-apres figcaption { margin-top: var(--espace-2); }

/* Lieux des chantiers (page Réalisations) */
.lieux__in { display: grid; gap: var(--espace-5); }
.lieux { margin: 0; border-top: 1px solid var(--acier); }
.lieux dt { font-weight: 600; padding-top: 12px; }
.lieux dd { margin: 2px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--acier); color: var(--encre); }
@media (min-width: 600px) {
  .lieux { display: grid; grid-template-columns: 13em 1fr; }
  .lieux dt { padding: 12px var(--espace-3) 12px 0; border-bottom: 1px solid var(--acier); }
  .lieux dd { margin: 0; padding: 12px 0; }
}
@media (min-width: 900px) { .lieux__in { grid-template-columns: 5fr 7fr; gap: var(--espace-5) var(--espace-7); align-items: start; } }

/* Lecteur vidéo */
.lecteur { padding: 0; border: 0; border-radius: var(--rayon-1); background: var(--blanc); color: var(--encre); max-width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.lecteur::backdrop { background: rgba(18, 22, 20, 0.86); }
.lecteur__in { position: relative; display: grid; }
.lecteur__video { display: block; width: 100%; max-height: 72vh; background: var(--encre); aspect-ratio: 9 / 16; }
.lecteur__texte { padding: var(--espace-4); padding-right: 72px; }
.lecteur__titre { font-weight: 700; font-size: 26px; line-height: 1.1; }
.lecteur__lieu { margin: var(--espace-2) 0 var(--espace-3); color: var(--ardoise); font-weight: 500; }
.lecteur__detail { margin-bottom: var(--espace-3); }
.lecteur__detail:empty { display: none; }
.lecteur__source { font-size: 15px; }
.lecteur__fermer {
  position: absolute; top: var(--espace-2); right: var(--espace-2); z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); border-radius: var(--rayon-1); cursor: pointer;
}
.lecteur__fermer svg { width: 20px; height: 20px; }
.lecteur__fermer:hover { background: var(--encre); color: var(--blanc); }
@media (min-width: 800px) {
  .lecteur__in { grid-template-columns: auto 1fr; }
  .lecteur__video { width: auto; height: min(78vh, 720px); max-height: none; }
  .lecteur__texte { align-self: end; padding: var(--espace-5) var(--espace-5) var(--espace-5) var(--espace-5); }
}
@media (prefers-reduced-motion: reduce) {
  .vignette img, .chantier__media img { transition: none; }
}


/* Finitions communes */
html { scroll-padding-top: 28px; }
[id] { scroll-margin-top: 28px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: rgba(123,183,155,.25); }
button, .bouton { touch-action: manipulation; }
.bouton .icone--fleche { margin-left: 8px; }
.page-icone { display: block; margin-bottom: 22px; color: var(--vert-foret); }
.page-icone .icone { width: 42px; height: 42px; }
.tete-page__lavis { display: none; }
.tete-page:not(.tete-page--photo) { background: var(--ecume); }
.tete-page .titre-xl { max-width: 12em; letter-spacing: -.01em; }
.tete-page .chapo { max-width: 30em; }
.certificat { border-radius: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.06); }
.certificat__titre { max-width: 15em; }
.entreprise__photo { max-width: 460px; }
.entreprise__photo img { aspect-ratio: 5 / 4; object-fit: cover; }
.chantiers__liens { flex-direction: column; align-items: start; gap: 12px; }
#chantiers .chapo { max-width: 38em; font-size: 18px; }
.vignettes { gap: 32px 24px; }
.vignette__titre { font-size: 24px; }
.vignette__lieu { font-size: 14px; }
.section--lavis { background: #e5eee8; }
.formulaire { border: 1px solid var(--trait); border-radius: 6px; }
.formulaire .champ input, .formulaire .champ select, .formulaire .champ textarea { background-color: #fff; }
.pied { background: var(--vert-foret-fonce); color: var(--blanc); }
.pied__titre { font-family: var(--font-texte); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.lecteur { overscroll-behavior: contain; }
/* Visionneuse des photos LinkedIn : même cadre que le lecteur vidéo, photo en paysage */
.visionneuse { padding: 0; border: 0; border-radius: var(--rayon-1); background: var(--blanc); color: var(--encre); width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; }
.visionneuse::backdrop { background: rgba(18, 22, 20, 0.86); }
.visionneuse__in { position: relative; display: grid; }
.visionneuse__photo { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: var(--encre); }
.visionneuse__texte { padding: var(--espace-4); }
.visionneuse__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-2) var(--espace-3); margin: var(--espace-3) 0; }
.visionneuse__nav [hidden] { display: none; }
.visionneuse__compte { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .visionneuse__compte { order: -1; flex-basis: 100%; } }
@media (max-width: 599px) {
  :root { --marge: 22px; }
  .titre-l { font-size: 36px; }
  .metier__titre > .icone { width: 34px; height: 34px; margin-bottom: 16px; }
  .metier__texte > p { font-size: 17px; }
  .metier__in { gap: 28px; }
  .chapo { font-size: 18px; }
  .vignettes { gap: 28px 16px; }
  .vignette__titre { font-size: 21px; }
  .formulaire { padding: 22px 18px; }
  .bouton { white-space: normal; text-align: center; }
  .pied__bas { padding-bottom: 16px; }
}

/* WhatsApp : le même mobile que le téléphone. Vert WhatsApp et texte encre (7,5:1),
   pour que le bouton se reconnaisse sans sacrifier la lisibilité. */
.icone-plein { fill: currentColor; stroke: none; }
.bouton--whatsapp { background: #25d366; color: var(--encre); }
.bouton--whatsapp:hover { background: #1fb457; color: var(--encre); }
.bouton--whatsapp:active { background: #1aa34f; color: var(--encre); }
.bouton--whatsapp svg { width: 20px; height: 20px; }
.appel .bouton--whatsapp:focus-visible { outline-color: var(--blanc); }

.whatsapp-flottant { display: none; }
@media (min-width: 1000px) {
  .whatsapp-flottant {
    position: fixed; right: 24px; bottom: 24px; z-index: 25;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 22px 0 16px;
    background: #25d366; color: var(--encre); border-radius: 27px;
    font-weight: 600; font-size: 16px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(18, 22, 20, .22);
    transition: background-color .15s, box-shadow .15s, opacity .2s, transform .2s, visibility .2s;
  }
  .whatsapp-flottant svg { width: 26px; height: 26px; }
  .whatsapp-flottant:hover { background: #1fb457; color: var(--encre); box-shadow: 0 8px 26px rgba(18, 22, 20, .28); }
  .whatsapp-flottant:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
  .whatsapp-flottant[data-discret] { opacity: 0; visibility: hidden; transform: translateY(12px); }
}

.pied li a.pied__whatsapp { display: inline-flex; align-items: center; gap: var(--espace-2); }
.pied__whatsapp svg { width: 18px; height: 18px; flex: none; }

/* Repères de l'accueil : le numéro, et WhatsApp au même numéro */
.reperes__lien { color: var(--encre); text-decoration: none; }
.reperes__lien:hover strong { text-decoration: underline; }
.reperes__whatsapp { color: var(--vert-foret); font-weight: 600; }

.devis__autres { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-3) var(--espace-4); margin: var(--espace-4) 0 0; }
.devis__autres .metier__lien { margin: 0; color: var(--vert-foret-fonce); }
.section--lavis .devis__aide a.bouton--whatsapp { color: var(--encre); }

/* Contact : WhatsApp dans les coordonnées */
.coordonnees .bouton--whatsapp { margin-top: var(--espace-2); color: var(--encre); }

/* Page Demande de devis : le formulaire d'abord, l'aide à côté */
.devis-complet__in { display: grid; gap: var(--espace-5); align-items: start; }
.devis-complet__aside .titre-m { margin: var(--espace-5) 0 var(--espace-2); }
.devis-complet__aside .titre-m:first-child { margin-top: 0; }
.devis-complet__aside .devis__tel { margin: var(--espace-1) 0 0; }
.devis-complet__aside .bouton { margin-top: var(--espace-2); }
.devis-complet__aside .liste-trait { margin-top: var(--espace-2); }
.devis-complet__aside .liste-trait li { padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 1000px) {
  .devis-complet__in { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--espace-6); }
  .devis-complet__aside { position: sticky; top: var(--espace-4); padding-top: var(--espace-4); }
}

/* Formulaire détaillé : deux groupes (le chantier, vos coordonnées) */
.formulaire.formulaire--devis { grid-template-columns: 1fr; gap: var(--espace-4); }
.etape { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--espace-4) var(--espace-3); }
.etape + .etape { padding-top: var(--espace-5); border-top: 1px solid var(--trait); }
.etape__titre { float: left; grid-column: 1 / -1; width: 100%; padding: 0; font-family: var(--font-titre); font-weight: 700; font-size: 28px; line-height: 1.1; }
@media (min-width: 600px) { .etape { grid-template-columns: 1fr 1fr; } }

.groupe { margin: 0; padding: 0; border: 0; min-width: 0; }
.groupe > legend { float: left; width: 100%; padding: 0; font-weight: 600; font-size: 15px; }
.groupe > legend span { font-weight: 400; color: var(--ardoise); }

.tuiles { display: grid; gap: var(--espace-2); grid-template-columns: 1fr; }
@media (min-width: 480px) { .tuiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tuiles { grid-template-columns: repeat(3, 1fr); } }
.tuile, .option {
  display: flex; align-items: center; gap: var(--espace-3);
  min-height: 56px; padding: 10px var(--espace-3);
  background: var(--blanc); border: 1px solid var(--acier); border-radius: var(--rayon-1);
  font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.tuile input, .option input { flex: none; width: 18px; height: 18px; margin: 0; }
.tuile .icone { flex: none; width: 28px; height: 28px; color: var(--vert-foret); }
.tuile:hover, .option:hover { border-color: var(--vert-foret); }
.tuile:has(input:checked), .option:has(input:checked) { border-color: var(--vert-foret); background: var(--ecume); box-shadow: inset 0 0 0 1px var(--vert-foret); }
.tuile:has(input:focus-visible), .option:has(input:focus-visible) { outline: 2px solid var(--encre); outline-offset: 2px; }
.tuile input:focus-visible, .option input:focus-visible { outline: none; }
.champ--erreur .tuile { border-color: var(--alerte); }
.options { display: flex; flex-wrap: wrap; gap: var(--espace-2); }
.option { min-height: 48px; }

/* Photos et plans */
.pieces { position: relative; }
.pieces__zone { display: none; }
.pieces[data-pret] .pieces__champ { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pieces[data-pret] .pieces__zone {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px var(--espace-3);
  min-height: 84px; padding: var(--espace-3) var(--espace-4);
  background: var(--blanc); border: 2px dashed var(--acier); border-radius: var(--rayon-1);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.pieces[data-pret] .pieces__zone[hidden] { display: none; }
.pieces__zone .icone { grid-row: span 2; width: 32px; height: 32px; color: var(--vert-foret); }
.pieces__action { font-weight: 600; color: var(--vert-foret); }
.pieces__detail { font-size: 14px; color: var(--ardoise); }
.pieces__zone:hover, .pieces__zone[data-survol] { border-color: var(--vert-foret); background: var(--ecume); }
.pieces__champ:focus-visible + .pieces__zone { outline: 2px solid var(--encre); outline-offset: 2px; }
.pieces__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-2); }
.pieces__liste:empty { display: none; }
.piece { display: flex; align-items: center; gap: var(--espace-3); padding: var(--espace-2); background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-1); }
.piece img, .piece__type { flex: none; width: 56px; height: 56px; border-radius: 2px; object-fit: cover; }
.piece__type { display: grid; place-items: center; background: var(--ecume); font-family: var(--font-titre); font-weight: 700; font-size: 15px; color: var(--vert-foret); }
.piece__texte { flex: 1; min-width: 0; display: grid; }
.piece__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.piece__taille { font-size: 14px; color: var(--ardoise); font-variant-numeric: tabular-nums; }
.piece__retirer { flex: none; min-height: 44px; padding: 0 var(--espace-3); background: none; border: 0; border-radius: var(--rayon-1); color: var(--encre); font: 600 15px var(--font-texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.piece__retirer:hover { background: var(--ecume); }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-flottant, .tuile, .option, .pieces__zone { transition: none; }
}

/* >>> signature Odratta — ne pas éditer ici, source : ~/.odratta/signature/signature.css */
a.odratta-signature{display:inline-flex;align-items:baseline;gap:.4em;font:400 .8125rem/1.2 inherit;font-family:inherit;color:inherit;text-decoration:none;text-transform:none;letter-spacing:normal;padding:.45em 0;white-space:nowrap}
a.odratta-signature svg{height:.8em;width:auto;flex:none}
a.odratta-signature:hover,a.odratta-signature:focus-visible{text-decoration:underline;text-underline-offset:.3em}
a.odratta-signature:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:3px;text-decoration:none}
/* <<< fin signature Odratta */

/* Recherche dans les références, avec filtres accessibles. */
.recherche-chantiers { max-width: 520px; margin-bottom: 24px; }
.recherche-chantiers label { display: block; font-weight: 600; margin-bottom: 8px; }
.recherche-chantiers input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--acier); border-radius: 4px; font: inherit; color: var(--encre); background: var(--blanc); }
.recherche-chantiers input::placeholder { color: var(--ardoise); }
.filtre__etat { margin: 16px 0 32px; color: var(--ardoise); }
.visionneuse__photo { object-fit: contain; }

/* Parcourir les chantiers dans l'ordre, par séries de douze. */
.galerie--parcours { columns: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 32px; align-items: start; }
.galerie--parcours .chantier { margin: 0; min-width: 0; }
.galerie--parcours .chantier__media img { aspect-ratio: 4 / 3; object-fit: cover; max-height: none; }
@media (min-width: 700px) { .galerie--parcours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .galerie--parcours { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.galerie__pagination { display: flex; justify-content: center; padding-top: 48px; }
.recherche-chantiers { position: relative; }
.recherche-chantiers__effacer { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font: 600 16px/1.4 var(--font-texte); color: var(--vert-foret); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.recherche-chantiers__effacer:hover { color: var(--encre); }
/* La série reste à portée de main, sans rogner les images de la visionneuse. */
.visionneuse__cadre { touch-action: pan-y pinch-zoom; }
.visionneuse__miniatures { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 12px 16px; background: var(--ecume); scrollbar-width: thin; }
.visionneuse__miniatures button { flex: 0 0 76px; padding: 2px; border: 2px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; }
.visionneuse__miniatures button[aria-pressed="true"] { border-color: var(--vert-foret); }
.visionneuse__miniatures button:hover { background: var(--lavis); }
.visionneuse__miniatures img { width: 68px; height: 50px; object-fit: cover; border-radius: 2px; }
.visionneuse__photo { max-height: 56vh; max-height: 56svh; }
.visionneuse__texte { padding-top: 16px; }
.visionneuse__nav { margin-bottom: 0; }
/* Sur téléphone, le chantier est visible plus tôt. */
@media (max-width: 699px) {
  .tete-page__in { padding-top: 24px; padding-bottom: 24px; }
  .tete-page--photo .tete-page__in { padding-bottom: 24px; }
  .tete-page .fil { margin-bottom: 20px; font-size: 14px; }
  .tete-page .page-icone { display: none; }
  .tete-page .titre-xl { font-size: clamp(32px, 8.7vw, 44px); line-height: 1.06; }
  .tete-page .chapo { font-size: 17px; line-height: 1.5; margin-top: 12px; }
  .tete-page__actions { margin-top: 20px; gap: 8px 12px; align-items: center; }
  .tete-page__actions .bouton { min-height: 44px; padding: 10px 14px; font-size: 15px; }
  .tete-page__photo { aspect-ratio: 16 / 10; }
  .tete-page__photo figcaption { font-size: 12px; bottom: 12px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .filtre { gap: 8px; }
  .filtre button { padding: 10px 12px; font-size: 15px; }
  .visionneuse__texte { padding: 16px; }
  .visionneuse__texte .lecteur__titre { font-size: 23px; }
  .visionneuse__photo { max-height: 43vh; max-height: 43svh; }
  .visionneuse__miniatures { padding: 8px 12px; }
  .visionneuse__nav { gap: 8px; margin-top: 12px; }
  .visionneuse__nav .bouton { flex: 1; padding: 10px 12px; }
  .visionneuse__lieu, .lecteur__lieu { margin-bottom: 8px; }
}

.acces-metiers { padding-bottom: 36px; }
@media (max-width: 599px) {
  .acces-metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-bottom: 24px; }
  .acces-metiers a { font-size: 14px; gap: 8px; min-height: 76px; }
  .acces-metiers .icone { width: 24px; height: 24px; }
  .acces-metiers .icone--fleche { display: none; }
  .vignette__titre { font-size: 22px; }
}
