/* BG Services 17 – feuille de style
   Couleurs relevées sur le logo : anthracite du fond, bleu canard de la maison,
   orange tuile du toit et de l'arc, vert de la feuille et des lettres « BG ».
   Contrastes vérifiés (WCAG AA) : texte courant toujours ≥ 4.5:1. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --anthracite: #1d1d1b;
  --anthracite-2: #2b2b28;
  --anthracite-3: #3a3a36;
  --canard: #448e99;
  --canard-fonce: #2c6670;
  --canard-clair: #e3f0f1;
  --tuile: #e26628;
  --tuile-fonce: #a8461a;
  --feuille: #7ab03e;
  --calcaire: #f4f3ef;
  --encre: #22272a;
  --encre-douce: #4f585c;
  --gris-clair: #c9cdc8;
  --blanc: #ffffff;
  --rayon: 6px;
  --titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texte: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 74rem;
  --gouttiere: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--canard-fonce); text-underline-offset: .18em; }
a:hover { color: var(--tuile-fonce); }
:focus-visible { outline: 3px solid var(--tuile); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lien-evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem;
  background: var(--tuile); color: var(--anthracite); font-weight: 600; border-radius: var(--rayon); }
.lien-evitement:focus { top: 1rem; }

/* Surtitre et bande tricolore reprenant le logo */
.surtitre { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .8rem;
  font-family: var(--titre); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--canard-fonce); }
.surtitre::before { content: ""; width: 2rem; height: 3px; background: var(--tuile); }
.bande { height: 6px; background: linear-gradient(90deg, var(--canard) 0 50%, var(--tuile) 50% 85%, var(--feuille) 85%); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: var(--rayon); border: 2px solid transparent;
  font-family: var(--titre); font-weight: 700; font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.bouton svg { width: 1.2em; height: 1.2em; flex: none; }
.bouton-principal { background: var(--tuile); color: var(--anthracite); }
.bouton-principal:hover { background: #f07a3e; color: var(--anthracite); }
.bouton-contour { border-color: currentColor; color: var(--blanc); }
.bouton-contour:hover { background: var(--blanc); color: var(--anthracite); border-color: var(--blanc); }
.bouton-facebook { background: var(--blanc); color: var(--canard-fonce); }
.bouton-facebook:hover { background: var(--anthracite); color: var(--blanc); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--anthracite); color: var(--blanc); border-bottom: 1px solid var(--anthracite-3); }
.entete .conteneur { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.marque { display: flex; align-items: center; gap: .7rem; color: var(--blanc); text-decoration: none; margin-right: auto; }
.marque img { width: 3.4rem; height: auto; }
.marque span { font-family: var(--titre); font-weight: 700; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.marque small { display: block; font-family: var(--texte); font-weight: 400; font-size: .8rem; letter-spacing: .02em; text-transform: none; color: #c4c9c6; margin-top: .25rem; }
.navigation ul { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.navigation a { color: #e6e8e6; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.navigation a:hover { color: var(--blanc); border-bottom-color: var(--tuile); }
.tel-entete { display: inline-flex; align-items: center; gap: .45rem; color: var(--anthracite); background: var(--tuile);
  padding: .5rem .9rem; border-radius: var(--rayon); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tel-entete:hover { background: #f07a3e; color: var(--anthracite); }
.tel-entete svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 960px) { .navigation { display: none; } }
@media (max-width: 520px) { .marque small { display: none; } .tel-entete span { display: none; } .tel-entete { padding: .6rem; } }

/* Ouverture */
.ouverture { position: relative; overflow: hidden; background: var(--anthracite); color: var(--blanc); }
.ouverture::before { /* pignon de toit discret, en écho au logo */
  content: ""; position: absolute; right: -8rem; top: -2rem; width: 38rem; height: 38rem;
  border-top: 10px solid var(--tuile); border-left: 10px solid var(--tuile); transform: rotate(45deg); opacity: .12; pointer-events: none; }
.ouverture .conteneur { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.ouverture .surtitre { color: var(--feuille); }
.ouverture h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); text-transform: uppercase; margin-bottom: .35em; }
.ouverture h1 em { font-style: normal; color: var(--tuile); }
.accroche { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: #dfe3e1; max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.atouts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0; padding: 0; list-style: none; color: #dfe3e1; font-weight: 600; }
.atouts li { display: flex; align-items: center; gap: .45rem; }
.atouts svg { width: 1.15rem; height: 1.15rem; color: var(--feuille); flex: none; }
.photo-ouverture { margin: 0; position: relative; }
.photo-ouverture img { border-radius: var(--rayon); box-shadow: 0 1.5rem 3rem rgba(0,0,0,.45); aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-ouverture figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(29,29,27,.88); color: var(--blanc); padding: .45rem .8rem; border-radius: var(--rayon); font-size: .92rem; border-left: 4px solid var(--feuille); }
@media (max-width: 860px) { .ouverture .conteneur { grid-template-columns: 1fr; } .photo-ouverture { max-width: 30rem; } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-calcaire { background: var(--calcaire); }
.section-sombre { background: var(--anthracite); color: var(--blanc); }
.section-sombre .surtitre { color: var(--feuille); }
.intro-section { max-width: 44rem; margin-bottom: 2.5rem; }
.intro-section p { color: var(--encre-douce); font-size: 1.12rem; }
.section-sombre .intro-section p { color: #d5d9d7; }

/* Qui suis-je */
.qui { display: grid; grid-template-columns: minmax(0, 24rem) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; border-radius: var(--rayon); background: var(--blanc); border: 1px solid #e3e3df; }
.portrait-cadre { position: relative; z-index: 0; }
.portrait-cadre::after { content: ""; position: absolute; z-index: -1; inset: 1.2rem -1.2rem -1.2rem 1.2rem; background: var(--canard); border-radius: var(--rayon); }
.portrait figcaption { margin-top: 2rem; font-family: var(--titre); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }
.portrait figcaption span { display: block; font-family: var(--texte); font-weight: 400; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--encre-douce); }
.qui-texte p { font-size: 1.12rem; }
.citation { margin: 1.8rem 0; padding: 1.1rem 1.4rem; border-left: 5px solid var(--tuile); background: var(--calcaire); border-radius: 0 var(--rayon) var(--rayon) 0;
  font-family: var(--titre); font-weight: 600; font-size: 1.55rem; line-height: 1.2; }
.qui-texte .citation p { margin: 0; font-size: inherit; }
.reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.reperes li { border-top: 4px solid var(--canard); padding-top: .7rem; }
.reperes li:nth-child(2) { border-color: var(--tuile); }
.reperes li:nth-child(3) { border-color: var(--feuille); }
.reperes strong { display: block; font-family: var(--titre); font-size: 2.3rem; line-height: 1; }
.reperes span { color: var(--encre-douce); font-size: .98rem; }
@media (max-width: 760px) { .qui { grid-template-columns: 1fr; } .portrait { max-width: 20rem; } }
@media (max-width: 460px) { .reperes { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.service { background: var(--blanc); border-radius: var(--rayon); padding: 1.5rem 1.4rem 1.3rem; border-top: 5px solid var(--canard); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.service:nth-child(3n+2) { border-top-color: var(--tuile); }
.service:nth-child(3n) { border-top-color: var(--feuille); }
.service svg { width: 2.4rem; height: 2.4rem; color: var(--canard-fonce); margin-bottom: .8rem; }
.service h3 { margin-bottom: .35rem; }
.service p { margin: 0; color: var(--encre-douce); }
.service-complet { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--anthracite); color: var(--blanc); border-top-color: var(--tuile); }
.service-complet h3 { color: var(--blanc); }
.service-complet p { color: #d5d9d7; max-width: 40rem; }

/* Réalisations */
.sous-titre { font-size: 1.7rem; text-transform: uppercase; margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem; }
.sous-titre::after { content: ""; flex: 1; height: 1px; background: #dcdcd7; }
.avant-apres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.1rem; }
.avant-apres .large { grid-column: 1 / -1; }
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(9rem, 17vw, 14rem); grid-auto-flow: dense; gap: .8rem; margin-bottom: 3rem; }
.galerie .haut { grid-row: span 2; }
.galerie .large { grid-column: span 2; }
.galerie .grand { grid-column: span 2; grid-row: span 2; }
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--rayon); background: #e6e6e1; }
.photo a { display: block; height: 100%; color: inherit; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo a:hover img { transform: scale(1.03); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .75rem; color: var(--blanc);
  background: linear-gradient(transparent, rgba(20,20,18,.85)); font-size: .95rem; line-height: 1.35; }
.photo figcaption strong { display: block; font-family: var(--titre); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
.avant-apres .photo { aspect-ratio: 900 / 1234; }
.avant-apres .photo.large { aspect-ratio: 1400 / 565; }
.avant-apres .photo img { object-fit: contain; background: var(--anthracite); }
@media (max-width: 900px) { .avant-apres { grid-template-columns: 1fr 1fr; } .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .avant-apres { grid-template-columns: 1fr; } .avant-apres .photo.large { aspect-ratio: auto; } .galerie { grid-auto-rows: 9rem; } }
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } }

.facebook { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 1.8rem; align-items: center;
  background: var(--canard-fonce); color: var(--blanc); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.2rem); }
.facebook > svg { width: 3.4rem; height: 3.4rem; }
.facebook h3 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: .2rem; }
.facebook p { margin: 0; color: #e8f1f2; }
@media (max-width: 760px) { .facebook { grid-template-columns: 1fr; } }

/* Méthode */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { counter-increment: etape; padding-top: 1rem; border-top: 2px solid var(--anthracite-3); }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: var(--titre); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--tuile); margin-bottom: .6rem; }
.etapes h3 { color: var(--blanc); }
.etapes p { color: #d5d9d7; margin: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }
.garanties { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.garanties li { display: flex; align-items: center; gap: .5rem; background: var(--anthracite-2); border: 1px solid var(--anthracite-3); padding: .6rem 1rem; border-radius: var(--rayon); font-weight: 600; }
.garanties svg { width: 1.2rem; height: 1.2rem; color: var(--feuille); }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.communes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.communes li { background: var(--canard-clair); color: var(--canard-fonce); font-weight: 600; padding: .4rem .85rem; border-radius: 99px; }
.communes li.base { background: var(--canard-fonce); color: var(--blanc); }
@media (max-width: 760px) { .zone { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { background: var(--blanc); border-radius: var(--rayon); margin-bottom: .7rem; border-left: 4px solid var(--canard); }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-family: var(--titre); font-size: 1.8rem; color: var(--tuile-fonce); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1rem; color: var(--encre-douce); }
.faq details > div p:last-child { margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.coordonnees { font-style: normal; background: var(--anthracite-2); border: 1px solid var(--anthracite-3); border-radius: var(--rayon); padding: 1.6rem; }
.coordonnees a { color: var(--blanc); }
.coordonnees a:hover { color: var(--tuile); }
.coordonnees .grand { display: inline-block; font-family: var(--titre); font-weight: 700; font-size: clamp(2.1rem, 5vw, 2.7rem); line-height: 1.1; text-decoration: none; color: var(--tuile); }
.coordonnees dl { margin: 1.2rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.coordonnees dt { color: #b9bfbc; font-size: .92rem; padding-top: .1rem; }
.coordonnees dd { margin: 0; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Pied de page */
.pied { background: #141413; color: #c4c9c6; padding: 2.5rem 0 6rem; font-size: .95rem; }
.pied .conteneur { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: start; }
.pied img { width: 5rem; }
.pied p { margin: 0 0 .5rem; }
.pied a { color: var(--blanc); }
.pied nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .6rem 0 0; padding: 0; list-style: none; }
@media (min-width: 761px) { .pied { padding-bottom: 2.5rem; } }
@media (max-width: 520px) { .pied .conteneur { grid-template-columns: 1fr; } }

/* Barre d'appel mobile */
.appel-mobile { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; justify-content: center; gap: .5rem; min-height: 3.2rem;
  background: var(--tuile); color: var(--anthracite); border-radius: var(--rayon); box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.35);
  font-family: var(--titre); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; text-decoration: none; }
.appel-mobile svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 760px) { .appel-mobile { display: flex; } }

/* Visionneuse photo */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.visionneuse::backdrop { background: rgba(10,10,9,.9); }
.visionneuse img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--rayon); margin: 0 auto; }
.visionneuse p { color: var(--blanc); text-align: center; margin: .7rem 0 0; }
.visionneuse button { position: fixed; top: 1rem; right: 1rem; width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blanc); color: var(--anthracite); font-size: 1.8rem; line-height: 1; }

/* Pages légales */
.page-texte main { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.page-texte main .conteneur { max-width: 50rem; }
.page-texte h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); text-transform: uppercase; }
.page-texte h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.page-texte dl { display: grid; grid-template-columns: minmax(10rem, auto) 1fr; gap: .4rem 1.2rem; }
.page-texte dt { font-weight: 600; }
.page-texte dd { margin: 0; }
@media (max-width: 560px) { .page-texte dl { grid-template-columns: 1fr; } .page-texte dd { margin-bottom: .6rem; } }
.a-completer { background: #fff1a8; outline: 2px dashed #c9a400; padding: 0 .25rem; }
