/* Pages intérieures, deuxième version : bandeau encadré, grille de services, collage, projets.
   Chargée après theme-noir.css et fx.css. L'italique des titres passe à l'ivoire ; le rouge reste l'accent des boutons et des repères. */
:root { --ivoire: var(--red-hi); --trait: rgba(255, 255, 255, .11); --trait-fort: rgba(255, 255, 255, .2); }

/* ---------- Bandeau de page ---------- */
.bandeau { padding: clamp(18px, 2.4vw, 34px) 0 0; }
.bandeau__cadre { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; min-height: clamp(300px, 36vw, 470px); padding: clamp(28px, 4vw, 60px); border: 1px solid var(--trait); background: #0b0b0b; isolation: isolate; }
.bandeau__cadre::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url(hero/metier/plancher.webp) center 62% / cover no-repeat; opacity: .62; transform: scale(1.04); }
.bandeau__cadre::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 10, 10, .96) 0%, rgba(10, 10, 10, .78) 42%, rgba(10, 10, 10, .3) 100%), linear-gradient(to top, rgba(10, 10, 10, .7), rgba(10, 10, 10, 0) 46%); }
.bandeau__fil { position: absolute; top: clamp(22px, 3vw, 40px); right: clamp(28px, 4vw, 60px); display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .62); }
.bandeau__fil a { color: #fff; text-decoration: none; }
.bandeau__fil i { font-size: 14px; }
.bandeau__titre { align-self: end; }
.bandeau h1 { margin-top: 14px; max-width: 17ch; font: 400 clamp(46px, 7.4vw, 124px)/.94 var(--serif); letter-spacing: -.024em; text-wrap: balance; }
.bandeau h1 em { font-style: italic; color: var(--ivoire); }
.bandeau--texte h1 { font-size: clamp(38px, 5vw, 76px); line-height: 1; max-width: 22ch; }
.bandeau__intro { margin-top: 22px; max-width: 56ch; font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.7; color: rgba(255, 255, 255, .78); }
.bandeau__tel { align-self: end; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .03em; color: #fff; text-decoration: none; }
.bandeau__tel i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--trait-fort); font-size: 16px; }
.bandeau__bas { display: flex; align-items: center; gap: clamp(24px, 6vw, 96px); padding: 22px clamp(28px, 4vw, 60px); border: 1px solid var(--trait); border-top: 0; }
.bandeau__bas a:not(.rond) { display: grid; gap: 3px; font-size: 12px; color: var(--muted); text-decoration: none; }
.bandeau__bas a:not(.rond) b { font-weight: 500; font-size: 13.5px; color: #fff; transition: color .2s; }
.rond { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trait-fort); color: #fff; text-decoration: none; font-size: 18px; transition: background .25s var(--sortie), border-color .25s, transform .16s ease-out; }
.bandeau__bas .rond { margin-left: auto; }
.rond:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) {
  .bandeau__bas a:not(.rond):hover b { color: var(--ivoire); }
  .rond:hover { background: var(--red); border-color: var(--red); }
}
.pg .bandeau + .wrap, .pg .bandeau + .pg__grille { margin-top: clamp(48px, 6vw, 96px); }
.pg__image { margin-top: clamp(28px, 4vw, 56px); }
.interne .pg h2 .accent, .interne .accent, .titre2 em { color: var(--ivoire); }

/* ---------- Titres de section centrés, en petites capitales espacées ---------- */
.sur-titre { text-align: center; font-size: 13px; font-weight: 400; letter-spacing: .42em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.bloc { padding: clamp(72px, 9vw, 150px) 0; }
.bloc--clair { background: #0f0f0f; border-block: 1px solid var(--trait); }
.titre2 { font: 400 clamp(38px, 5vw, 80px)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.titre2 em { font-style: italic; }

/* ---------- Services : la grille ---------- */
.svcg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(36px, 4.4vw, 68px); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.svcc { position: relative; grid-column: span var(--c, 4); display: flex; flex-direction: column; min-height: clamp(250px, 23vw, 330px); padding: clamp(22px, 2.2vw, 34px); border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .16s ease-out; }
.svcc:active { transform: scale(.992); }
.svcc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .5s var(--sortie), transform 1.2s var(--sortie); }
.svcc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 8, 8, .92) 0%, rgba(8, 8, 8, .62) 55%, rgba(8, 8, 8, .5) 100%); opacity: 0; transition: opacity .5s var(--sortie); }
.svcc__haut { display: flex; align-items: flex-start; justify-content: space-between; }
.svcc__haut i { font-size: 30px; color: var(--red-hi); transition: color .3s; }
.svcc__haut b { font-size: 12px; font-weight: 400; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.svcc__nom { margin-top: clamp(26px, 3vw, 44px); max-width: 14ch; font: 400 clamp(28px, 2.7vw, 42px)/1.04 var(--serif); letter-spacing: -.012em; transition: color .3s; }
.svcc__desc { margin-top: 12px; max-width: 36ch; font-size: 14px; line-height: 1.6; color: var(--muted); transition: color .3s; }
.svcc__fleche { margin-top: auto; padding-top: 22px; }
.svcc__fleche i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--trait-fort); font-size: 14px; color: rgba(255, 255, 255, .8); transition: background .3s var(--sortie), border-color .3s, color .3s, transform .5s var(--sortie); }
@media (hover: hover) and (pointer: fine) {
  .svcc:hover .svcc__img { opacity: 1; transform: none; }
  .svcc:hover::after { opacity: 1; }
  .svcc:hover .svcc__nom { color: var(--ivoire); }
  .svcc:hover .svcc__desc { color: rgba(255, 255, 255, .86); }
  .svcc:hover .svcc__haut i { color: #fff; }
  .svcc:hover .svcc__fleche i { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(6px); }
}
.svcg__note { margin-top: 28px; text-align: center; font-size: 13.5px; color: var(--muted); }
.svcg__note a { color: var(--red-hi); text-decoration: none; }

/* ---------- Le collage : quatre images décalées, un grand titre, un chiffre ---------- */
.vitrine { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1.02; }
.collage::before { content: ''; position: absolute; inset: 6% 4% 4% 30%; background-image: radial-gradient(rgba(255, 255, 255, .28) 1px, transparent 1.4px); background-size: 14px 14px; }
.collage img { position: absolute; width: var(--l); left: var(--x); top: var(--y); aspect-ratio: var(--r, 4 / 5); object-fit: cover; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.vitrine__texte { position: relative; }
.vitrine .titre2 { max-width: 13ch; }
.vitrine__p { margin-top: clamp(24px, 3vw, 44px); max-width: 44ch; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.vitrine__bas { display: flex; align-items: center; gap: 28px; margin-top: clamp(28px, 3.4vw, 52px); }
.chiffre { display: flex; align-items: center; gap: 22px; }
.chiffre b { font: 400 clamp(60px, 6.4vw, 104px)/.9 var(--serif); letter-spacing: -.03em; }
.chiffre span { padding-left: 22px; border-left: 1px solid var(--trait-fort); max-width: 15ch; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.vitrine__vignette { margin-left: auto; width: clamp(96px, 9vw, 140px); aspect-ratio: 1; object-fit: cover; }
.tampon { position: absolute; top: clamp(-120px, -8vw, -70px); right: 0; width: clamp(104px, 10vw, 150px); aspect-ratio: 1; animation: tampon-tourne 26s linear infinite; }
.tampon text { font: 500 10.6px var(--sans); letter-spacing: .34em; text-transform: uppercase; fill: var(--ivoire); }
.tampon circle { fill: none; stroke: rgba(255, 255, 255, .35); }
.tampon__coeur { position: absolute; top: clamp(-120px, -8vw, -70px); right: 0; width: clamp(104px, 10vw, 150px); aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(26px, 2.6vw, 38px); color: var(--red-hi); }
@keyframes tampon-tourne { to { transform: rotate(360deg); } }

/* ---------- Les atouts : trois cartes, une jauge à traits ---------- */
.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.atout { display: flex; flex-direction: column; min-height: clamp(300px, 26vw, 380px); padding: clamp(26px, 2.6vw, 40px); border: 1px solid var(--trait); }
.atout > i { font-size: clamp(52px, 5vw, 76px); color: #fff; }
.atout h3 { margin-top: auto; padding-top: 40px; font: 400 clamp(26px, 2.2vw, 34px)/1.06 var(--serif); }
.atout p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.jauge { margin-top: 22px; }
.jauge small { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.jauge div { position: relative; height: 14px; margin-top: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 6px); }
.jauge div::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--red-hi) 0 2px, transparent 2px 6px); clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--sortie) .2s; }
.atout.est-vu .jauge div::after { clip-path: inset(0 calc(100% - var(--v, 100%)) 0 0); }

/* ---------- L'appel final ---------- */
.appel { position: relative; overflow: hidden; padding: clamp(84px, 11vw, 190px) 0; text-align: center; isolation: isolate; }
.appel::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url(hero/metier/plancher.webp) center / cover no-repeat; }
.appel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(8, 8, 8, .62), rgba(8, 8, 8, .9)); }
.appel .titre2 { max-width: 15ch; margin-inline: auto; font-size: clamp(44px, 6.6vw, 112px); }
.appel p { margin: 22px auto 0; max-width: 48ch; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.appel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Réalisations : les projets ---------- */
.projets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px) clamp(18px, 2.4vw, 36px); margin-top: clamp(36px, 4.4vw, 68px); }
.projetc { grid-column: span 6; display: block; color: #fff; text-decoration: none; }
.projetc:nth-child(4n+1) { grid-column: span 7; }
.projetc:nth-child(4n+2) { grid-column: span 5; margin-top: clamp(40px, 7vw, 120px); }
.projetc:nth-child(4n+3) { grid-column: span 5; }
.projetc:nth-child(4n+4) { grid-column: span 7; margin-top: clamp(40px, 7vw, 120px); }
.projetc__img { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.projetc:nth-child(4n+2) .projetc__img, .projetc:nth-child(4n+3) .projetc__img { aspect-ratio: 4 / 5; }
.projetc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--sortie); }
.projetc__img b { position: absolute; top: 16px; left: 18px; font-size: 12px; font-weight: 400; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.projetc__img em { position: absolute; right: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; font-style: normal; font-size: 11.5px; letter-spacing: .04em; background: rgba(10, 10, 10, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.projetc__bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-top: 18px; border-bottom: 1px solid var(--trait); padding-bottom: 18px; }
.projetc__bas h2, .projetc__bas h3 { font: 400 clamp(26px, 2.5vw, 40px)/1.05 var(--serif); letter-spacing: -.012em; transition: color .3s; }
.projetc__bas small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.projetc__bas .rond { flex: none; }
@media (hover: hover) and (pointer: fine) {
  .projetc:hover .projetc__img img { transform: scale(1.045); }
  .projetc:hover h2, .projetc:hover h3 { color: var(--ivoire); }
  .projetc:hover .rond { background: var(--red); border-color: var(--red); }
}
.projets__vide { margin-top: 40px; padding: 34px; border: 1px dashed var(--trait-fort); font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Une page de projet ---------- */
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--trait); border-top: 0; }
.fiche div { padding: 20px clamp(18px, 2vw, 28px); border-right: 1px solid var(--trait); }
.fiche div:last-child { border-right: 0; }
.fiche small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fiche b { display: block; margin-top: 6px; font: 400 22px/1.15 var(--serif); }
.projet__texte { max-width: 64ch; margin: clamp(40px, 5vw, 80px) auto 0; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, .84); }
.projet__une { margin-top: clamp(28px, 4vw, 56px); }
.projet__une img { width: 100%; max-height: 82vh; object-fit: cover; display: block; }
.mosaique { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); margin-top: clamp(10px, 1.2vw, 18px); }
.mosaique button { grid-column: span 4; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.mosaique button:nth-child(5n+1) { grid-column: span 7; aspect-ratio: 7 / 5; }
.mosaique button:nth-child(5n+2) { grid-column: span 5; aspect-ratio: 1; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--sortie); }
@media (hover: hover) and (pointer: fine) { .mosaique button:hover img { transform: scale(1.04); } }
.avap { position: relative; margin-top: clamp(28px, 4vw, 56px); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); touch-action: pan-y; user-select: none; }
.avap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.avap__apres { clip-path: inset(0 0 0 var(--p, 50%)); }
.avap__barre { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 1px; background: #fff; }
.avap__barre::after { content: '↔'; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #111; font-size: 16px; }
.avap span { position: absolute; top: 16px; padding: 8px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; background: rgba(10, 10, 10, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.avap span:first-of-type { left: 16px; } .avap span:last-of-type { right: 16px; }
.suivant { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 7vw, 110px); padding: clamp(26px, 3vw, 44px) 0; border-block: 1px solid var(--trait); color: #fff; text-decoration: none; }
.suivant small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.suivant b { display: block; margin-top: 8px; font: 400 clamp(32px, 4.4vw, 68px)/1 var(--serif); letter-spacing: -.02em; transition: color .3s; }
@media (hover: hover) and (pointer: fine) { .suivant:hover b { color: var(--ivoire); } .suivant:hover .rond { background: var(--red); border-color: var(--red); } }

/* La visionneuse */
.visio { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vmin; background: rgba(6, 6, 6, .94); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.visio.est-ouverte { opacity: 1; pointer-events: auto; }
.visio img { max-width: 100%; max-height: 92vh; object-fit: contain; transform: scale(.97); transition: transform .3s var(--sortie); }
.visio.est-ouverte img { transform: none; }
.visio button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--trait-fort); background: rgba(10, 10, 10, .6); color: #fff; font-size: 20px; cursor: pointer; }
.visio [data-fermer] { top: 3vmin; right: 3vmin; }
.visio [data-prec] { left: 3vmin; top: 50%; margin-top: -24px; }
.visio [data-suiv] { right: 3vmin; top: 50%; margin-top: -24px; }
.visio__compte { position: absolute; bottom: 3vmin; left: 50%; transform: translateX(-50%); font-size: 12.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }

@media (max-width: 1080px) {
  .svcc { grid-column: span 6; }
  .vitrine { grid-template-columns: minmax(0, 1fr); }
  .collage { max-width: 560px; }
  .atouts { grid-template-columns: minmax(0, 1fr); }
  .atout { min-height: 0; }
  .atout h3 { padding-top: 28px; }
}
@media (max-width: 767px) {
  .bandeau__cadre { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 64px; }
  .bandeau__fil { left: 28px; right: auto; }
  .bandeau__bas { flex-wrap: wrap; gap: 16px 28px; }
  .svcg { grid-template-columns: minmax(0, 1fr); }
  .svcc { grid-column: auto; min-height: 0; }
  .svcc__nom { margin-top: 22px; }
  .vitrine__bas { flex-wrap: wrap; }
  .tampon, .tampon__coeur { position: static; margin-bottom: 18px; }
  .tampon__coeur { display: none; }
  .projets { grid-template-columns: minmax(0, 1fr); }
  .projetc:nth-child(n) { grid-column: auto; margin-top: 0; }
  .projetc:nth-child(n) .projetc__img { aspect-ratio: 4 / 3; }
  .mosaique button:nth-child(n) { grid-column: span 6; aspect-ratio: 1; }
  .mosaique button:nth-child(5n+1) { grid-column: span 12; aspect-ratio: 4 / 3; }
  .fiche div { border-right: 0; border-bottom: 1px solid var(--trait); }
}
@media (prefers-reduced-motion: reduce) { .tampon { animation: none; } .jauge div::after { transition: none; } }

/* Apparition douce des blocs marqués data-vu (pages intérieures) */
[data-vu] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--sortie), transform 1.1s var(--sortie); transition-delay: calc(var(--d, 0) * 90ms); }
[data-vu].est-vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-vu] { opacity: 1; transform: none; transition: none; } }
.mosaique button:nth-child(5n+3):last-child { grid-column: span 12; aspect-ratio: 16 / 9; }

/* ---------- Pages de contenu (services, villes, conseils) : un texte qui se lit ---------- */
.pg__image { border-radius: 0; width: 100%; max-height: 72vh; object-fit: cover; }
.pg__corps > p:first-of-type { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.55; color: #fff; }
.pg__corps h2 { margin-top: clamp(44px, 5vw, 80px); padding-top: clamp(22px, 2.4vw, 34px); border-top: 1px solid var(--trait); font: 400 clamp(32px, 3.4vw, 52px)/1.04 var(--serif); letter-spacing: -.016em; text-wrap: balance; }
.pg__corps h3 { margin-top: 36px; font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
.pg__corps figure { margin: clamp(28px, 3.4vw, 52px) 0; }
.pg__corps figure img { border-radius: 0; width: 100%; }
.pg__corps ul { padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.pg__corps ul li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--trait); }
.pg__corps ul li::before { content: ''; position: absolute; left: 4px; top: 1.45em; width: 12px; height: 1px; background: var(--red-hi); }
.pg__carte, .card.pg__carte { border-radius: 0; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--trait); }
.pg__carte h2 { font: 400 30px/1.05 var(--serif); }
.autres { margin-top: clamp(64px, 8vw, 130px); }
.autres .svcg { margin-top: clamp(28px, 3vw, 44px); }
.autres + .appel, .pg__grille + .appel { margin-top: clamp(64px, 8vw, 130px); }
.pg { padding-bottom: 0; }

/* ---------- Services regroupés : le nom porte le lien (étiré sur la carte), les sous-pages sont de petits liens par-dessus ---------- */
.svcc__nom { color: #fff; text-decoration: none; }
.svcc__nom::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.svcc__sous { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.svcc__sous a { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--trait-fort); font-size: 12px; letter-spacing: .03em; color: rgba(255, 255, 255, .86); text-decoration: none; background: rgba(10, 10, 10, .35); transition: background .2s, border-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .svcc__sous a:hover { background: #fff; border-color: #fff; color: #0a0a0a; } }
.pg__boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
