/* Liant Bâtiment : site d'exemple dsprt. Direction : chantier, béton et terre cuite. Un seul arrondi : 4px. */
:root {
  --encre: #18191B;
  --encre-2: #4A4C50;
  --gris: #6E7075;
  --ligne: #DEDBD4;
  --papier: #F7F6F2;
  --beton: #ECE9E2;
  --blanc: #FFFFFF;
  --ocre: #A85A17;        /* texte blanc dessus : 5,1:1 */
  --ocre-clair: #E9A35C;
  --r: 4px;
  --titre: "Archivo", "Arial Narrow", sans-serif;
  --texte: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--texte); font-size: 17px; line-height: 1.6; color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ocre-clair); outline-offset: 3px; }
.cadre { width: min(76rem, 100% - 2.5rem); margin-inline: auto; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--encre); color: #fff; padding: .6rem 1rem; border-radius: var(--r); }
.evitement:focus { top: 1rem; }
.surtitre { font-family: var(--titre); font-stretch: 112%; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre); }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: 0 1.35rem; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.btn-ocre { background: var(--ocre); color: #fff; }
.btn-ocre:hover { background: #8F4B11; }
.btn-clair { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-clair:hover { background: rgba(255,255,255,.2); }
.btn-ligne { background: transparent; border-color: var(--ligne); }
.btn-ligne:hover { border-color: var(--encre-2); }

/* en-tête */
.entete { position: fixed; inset: 0 0 auto; z-index: 30; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.entete.colle { background: var(--papier); color: var(--encre); box-shadow: 0 1px 0 var(--ligne); }
.entete-in { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }
.marque { display: inline-flex; flex-direction: column; line-height: .9; text-decoration: none; }
.marque-nom { font-family: var(--titre); font-weight: 800; font-stretch: 125%; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.marque-sous { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: .2rem; }
.menu { display: none; gap: 1.75rem; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; }
.menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tel { display: none; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; font-size: 15px; }
.entete-devis { margin-left: auto; min-height: 2.6rem; padding: 0 1rem; font-size: 15px; }
@media (min-width: 980px) { .menu, .tel { display: flex; } .entete-devis { margin-left: 0; } }

/* haut de page */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--encre); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,19,21,.92) 0%, rgba(18,19,21,.6) 45%, rgba(18,19,21,.45) 100%); }
.hero-in, .engagements { position: relative; z-index: 1; }
.hero-in { padding-top: 8rem; }
.hero .surtitre { color: var(--ocre-clair); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); max-width: 19ch; margin-top: 1rem; text-transform: uppercase; }
.hero-texte { max-width: 36rem; margin-top: 1.4rem; font-size: 1.15rem; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.engagements { list-style: none; padding: 0; margin-top: 3.5rem; margin-bottom: 2rem; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
@media (min-width: 760px) { .engagements { grid-template-columns: repeat(3, 1fr); } }
.engagements li { display: flex; gap: .8rem; padding: 1.25rem 0; align-items: flex-start; }
@media (min-width: 760px) { .engagements li + li { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.22); } .engagements li { padding-right: 1rem; } }
.engagements i { font-size: 24px; color: var(--ocre-clair); }
.engagements b { display: block; font-weight: 600; }
.engagements span { font-size: 15px; color: rgba(255,255,255,.75); }

/* blocs */
.bloc { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.bloc-sombre { background: var(--encre); color: #fff; }
.bloc-sombre .surtitre { color: var(--ocre-clair); }
.bloc-beton { background: var(--beton); }
.tete { max-width: 46rem; margin-bottom: 3rem; }
.tete h2, .zone h2, .devis-intro h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-top: .8rem; }
.tete-ligne { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }

/* métiers */
.metiers { display: grid; gap: 2rem; }
@media (min-width: 960px) { .metiers { grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; } }
.metiers-liste { display: grid; border-top: 1px solid var(--ligne); }
.metier { display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--ligne); padding: 1.4rem 0; }
.metier-num { font-family: var(--titre); font-weight: 600; color: var(--gris); grid-row: span 2; padding-top: .3rem; }
.metier-titre { font-family: var(--titre); font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 2.2vw, 1.6rem); text-transform: uppercase; color: var(--gris); transition: color .25s; }
.metier-texte { color: var(--encre-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .3s, margin .3s; }
.metier.actif .metier-titre, .metier:hover .metier-titre { color: var(--encre); }
.metier.actif .metier-num { color: var(--ocre); }
.metier.actif .metier-texte { max-height: 9rem; opacity: 1; margin-top: .4rem; }
.metiers-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--beton); position: sticky; top: 6rem; }
.metiers-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform 1.2s var(--ease); }
.metiers-photo img.change { opacity: 0; transform: scale(1.03); }

/* chantiers */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: var(--r); padding: .5rem 1rem; font-weight: 600; font-size: 14px; }
.filtre:hover { border-color: #fff; }
.filtre.actif { background: #fff; color: var(--encre); border-color: #fff; }
.chantiers { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .chantiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .chantiers { grid-template-columns: repeat(3, 1fr); } .chantier.grand { grid-column: span 2; grid-row: span 2; } }
.chantier { position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #222; text-align: left; aspect-ratio: 4 / 3; color: #fff; }
.chantier.grand { aspect-ratio: auto; min-height: 20rem; }
.chantier img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.chantier:hover img { transform: scale(1.04); }
.chantier::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%); }
.chantier-info { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; display: grid; gap: .15rem; }
.chantier-type { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre-clair); font-weight: 600; }
.chantier-titre { font-family: var(--titre); font-weight: 800; font-stretch: 112%; font-size: 1.2rem; }
.chantier.cache { display: none; }

/* fiche chantier */
.fiche { width: min(60rem, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--r); background: var(--papier); color: var(--encre); overflow: auto; }
.fiche::backdrop { background: rgba(10,10,12,.7); }
.fiche img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fiche-texte { padding: 1.75rem; display: grid; gap: .7rem; }
.fiche-texte h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; }
.fiche-duree { display: flex; align-items: center; gap: .4rem; color: var(--gris); font-weight: 600; }
.fiche-fermer { position: absolute; top: .8rem; right: .8rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: var(--r); background: rgba(24,25,27,.75); color: #fff; font-size: 20px; }

/* méthode */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .etapes { grid-template-columns: repeat(5, 1fr); } }
.etapes li { background: var(--papier); padding: 1.75rem 1.5rem 2rem; }
.etape-num { font-family: var(--titre); font-weight: 800; font-stretch: 125%; font-size: 2.6rem; line-height: 1; color: var(--ocre); }
.etapes h3 { font-size: 1.2rem; text-transform: uppercase; margin-top: 1rem; }
.etapes p { color: var(--encre-2); margin-top: .45rem; font-size: 15.5px; }

/* bandeau */
.bandeau { position: relative; min-height: 26rem; display: grid; align-items: center; color: #fff; overflow: hidden; }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.bandeau::after { content: ""; position: absolute; inset: 0; background: rgba(18,19,21,.45); }
.bandeau-in { position: relative; z-index: 1; display: grid; gap: 1.5rem; justify-items: start; padding: 4rem 0; }
.bandeau p { font-family: var(--titre); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.05; max-width: 22ch; }

/* zone */
.zone { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .zone { grid-template-columns: 1.1fr 1fr; } }
.zone-texte { color: var(--encre-2); margin-top: 1rem; max-width: 30rem; }
.communes { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.communes li { border: 1px solid var(--ligne); border-radius: var(--r); padding: .3rem .7rem; font-size: 15px; background: var(--blanc); }
.zone-carte { width: 100%; max-width: 30rem; justify-self: center; }
.z1 { fill: #F1E7DB; } .z2 { fill: #E9D6C0; } .z3 { fill: #DDBB95; }
.zc { fill: var(--ocre); } .zp { fill: var(--encre); }
.zt { font: 700 15px var(--texte); fill: var(--encre); } .zs { font: 400 13px var(--texte); fill: var(--encre-2); } .zm { fill: var(--ocre); font-weight: 700; }

/* devis */
.devis { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .devis { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.devis-intro > p:not(.surtitre) { color: var(--encre-2); margin-top: 1rem; max-width: 30rem; }
.devis-tel { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--encre) !important; }
.formulaire { background: var(--blanc); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -40px rgba(24,25,27,.45); }
.progression { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.progression li { height: 4px; background: var(--ligne); border-radius: var(--r); transition: background .3s; }
.progression li.fait { background: var(--ocre); }
.etape-form { border: 0; margin: 0; padding: 0; display: none; gap: 1rem; }
.etape-form.actif { display: grid; }
legend { font-family: var(--titre); font-weight: 800; font-stretch: 112%; font-size: 1.4rem; text-transform: uppercase; padding: 0; margin-bottom: .5rem; }
.choix { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.choix label { position: relative; }
.choix input { position: absolute; opacity: 0; }
.choix span { display: grid; gap: .4rem; justify-items: start; padding: 1rem; border: 1px solid var(--ligne); border-radius: var(--r); font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.choix i { font-size: 26px; color: var(--ocre); }
.choix input:checked + span { border-color: var(--ocre); background: #FBF3EA; }
.choix input:focus-visible + span { outline: 2px solid var(--ocre); outline-offset: 2px; }
.champ { display: grid; gap: .35rem; font-weight: 600; font-size: 15px; }
.champ input, .champ select, .champ textarea { font: inherit; font-weight: 400; font-size: 16px; padding: .75rem .85rem; border: 1px solid var(--ligne); border-radius: var(--r); background: var(--papier); color: var(--encre); width: 100%; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--ocre); background: #fff; }
.facultatif { font-weight: 400; color: var(--gris); }
.nav-form { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .5rem; }
.erreur { color: #B42318; font-size: 14px; min-height: 0; }
.erreur:empty { display: none; }
.merci { display: grid; gap: .8rem; justify-items: start; }
.merci[hidden] { display: none; }
.merci > i { font-size: 40px; color: var(--ocre); }
.merci h3 { font-size: 1.6rem; text-transform: uppercase; }
.merci p { color: var(--encre-2); }

/* questions */
.questions { max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq details:first-child { border-top: 1px solid var(--ligne); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.3rem 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--ocre); font-size: 20px; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.3rem; color: var(--encre-2); max-width: 46rem; }

/* pied de page */
.pied { background: var(--encre); color: rgba(255,255,255,.8); padding: 3rem 0 6rem; font-size: 15px; }
.pied-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-end; }
.marque-pied { color: #fff; margin-bottom: 1rem; }
.pied-note { max-width: 28rem; color: rgba(255,255,255,.6); }

/* pastille dsprt */
.pastille { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .6rem .55rem .9rem; border-radius: var(--r); background: rgba(24,25,27,.92); color: #fff; font-size: 13.5px; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pastille-point { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ocre-clair); }
.pastille-cta { display: inline-flex; align-items: center; gap: .25rem; background: #fff; color: var(--encre); font-weight: 600; padding: .3rem .6rem; border-radius: var(--r); }
.pastille:hover .pastille-cta { background: var(--ocre-clair); }

/* apparitions */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .apparait { opacity: 1; transform: none; }
}
