/* Logo officiel et pages métier (chargé après main.css). */

/* ---------- logo officiel */
.logo svg { display: block; height: 46px; width: auto; }
.logo--light { color: var(--paper); }
.ft .logo svg { height: 58px; }
.intro__logo { display: block; width: min(70vw, 560px); }
.intro__logo svg { width: 100%; height: auto; display: block; }
.ft__big { font-size: 0; color: var(--paper); }
.ft__big svg { width: 100%; height: auto; display: block; opacity: .9; }
@media (max-width: 999px) { .logo svg { height: 38px; } }

/* ---------- liens d'un métier (accueil) */
.svc__links { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.svc .lnk--muted { color: rgba(244, 241, 234, .7); border-color: rgba(244, 241, 234, .3); }
.svc__txt + .svc__txt { margin-top: -6px; }

/* ---------- pages métier */
.phero--photo .eyebrow a { color: inherit; text-decoration: none; }
.phero--photo .eyebrow a:hover { color: var(--paper); }
.phero--photo .lede + .lede { margin-top: 14px; }
.mt__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.mt__side { position: sticky; top: calc(var(--hd) + 32px); }
.mt__side .eyebrow { margin-bottom: 20px; }
.mt__side .h2 { margin-bottom: 32px; }
.mt__fig { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--stone); }
.mt__fig img { width: 100%; height: 100%; object-fit: cover; }
.mt__steps { border-top: 1px solid var(--line-strong); }
.mt__step { padding: 32px 0 34px; border-bottom: 1px solid var(--line); }
.mt__k { font-size: .74rem; font-weight: 660; font-stretch: 110%; letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.mt__t { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.8rem); font-weight: 740; font-stretch: 110%; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 12px; }
.mt__step p:not(.mt__k) { color: var(--ink-3); max-width: 40rem; }
.mt__step p + p { margin-top: 10px; }
.h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.02em; margin-bottom: 24px; }
.mt__list { margin-top: clamp(56px, 7vw, 96px); }
.mt__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mt__cards li { padding: 26px 24px; background: #fff; border-radius: 20px; box-shadow: 0 20px 40px -30px rgba(18, 20, 18, .25); }
.mt__cards h3 { font-size: 1.15rem; font-weight: 720; font-stretch: 108%; margin-bottom: 8px; }
.mt__cards p { font-size: .95rem; color: var(--ink-3); }
.mt__outro { margin-top: clamp(56px, 7vw, 96px); max-width: 48rem; }
.mt__outro .h2 { margin-bottom: 20px; }
.mt__outro p { font-size: 1.12rem; color: var(--ink-3); }
.mt__outro p + p { margin-top: 14px; }
.mt__projs { background: var(--paper-2); }
.mt__projgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-bottom: 40px; }
.mt__proj .proj__t { margin-top: 18px; }
.mt__proj .ba { max-height: 78vh; width: auto; margin-inline: auto; }
.cta__p { margin-top: 14px; color: rgba(244, 241, 234, .78); max-width: 34rem; }
.mt__others .filters { margin-top: 18px; }
.mt__others .chip-btn { text-decoration: none; color: var(--ink); }

@media (max-width: 999px) {
  .mt__grid { grid-template-columns: minmax(0, 1fr); }
  .mt__side { position: static; }
  .mt__fig { aspect-ratio: 16 / 10; }
  .mt__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt__projgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .mt__cards { grid-template-columns: minmax(0, 1fr); } }

/* ---- Réalisations : grille régulière, cartes de même format ---- */
.projs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(20px, 2.6vw, 40px); align-items: start; }
.projs__list .proj { grid-column: auto; display: flex; flex-direction: column; gap: 20px; }
.projs__list .proj__media .ba { aspect-ratio: 4 / 3; width: 100%; max-height: none; margin: 0; }
.projs__list .pair { aspect-ratio: 4 / 3; }
.projs__list .pair__it { height: 100%; }
.projs__list .pair__it img { aspect-ratio: auto; height: 100%; }
.projs__list .proj__t { margin-bottom: 10px; }
@media (max-width: 760px) {
  .projs__list { grid-template-columns: 1fr; }
}

/* ---- Photos entières : aucune photo de chantier n'est rognée ni agrandie ---- */
.ba img, .pair__it img, .steps__it img, .svc__pic img, .svc__fig img, .mt__fig img, .about__media img, .gal__btn img { object-fit: contain; transform: none !important; }
.ba, .pair__it, .steps__it, .svc__stick, .svc__fig, .mt__fig, .gal__it { background: #E6E1D6; }
.hero__slide.is-on img { animation: none; }
/* avant / après côte à côte : deux cadres identiques, chaque photo en entier */
.pair { aspect-ratio: 4 / 3; }
.pair__it { height: 100%; }
.pair__it img, .steps__it img { aspect-ratio: auto; height: 100%; }
.mt__proj .ba, .projs__list .proj__media .ba { aspect-ratio: 4 / 3; width: 100%; max-height: none; margin: 0; }
/* l'entreprise : deux photos l'une sous l'autre, sans chevauchement */
.about__media { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.about__main, .about__sub { position: static; width: 100%; aspect-ratio: var(--ar); box-shadow: none; transform: none !important; }
.about__main img { object-position: center; }
/* savoir-faire : cadre adapté aux photos, photo entière */
.svc__stick { aspect-ratio: 5 / 4; }
.svc__fig, .mt__fig { aspect-ratio: var(--ar) !important; }
/* galerie : mosaïque en colonnes, chaque photo dans ses proportions */
.gal__grid { display: block; columns: 3; column-gap: 10px; }
.gal__it { break-inside: avoid; margin-bottom: 10px; grid-column: auto !important; grid-row: auto !important; }
.gal__btn { height: auto; }
.gal__btn img { height: auto; }
@media (max-width: 999px) { .gal__grid { columns: 2; } }
@media (max-width: 520px) { .gal__grid { columns: 1; } .about__media { grid-template-columns: 1fr; } }
.about__media figure img, .gal__btn img, .pair__it img, .steps__it img, .svc__fig img, .work__pane .ba img, .proj__media .ba img, .svc__pic img { scale: none !important; }
.svc__stick, .svc__fig { background: #1C1F1C; }

/* ---- Menu « Prestations » (onglets) ---- */
.nav ul { align-items: center; }
.nav__dd { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: .3em; padding: 6px 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 540; font-stretch: 104%;
}
.nav__btn.is-cur { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav__chev { width: .95em; height: .95em; transition: transform .3s var(--ease); }
.nav__dd.is-open .nav__chev { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 60; width: 340px;
  padding: 10px; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(18, 20, 18, .35), 0 0 0 1px rgba(18, 20, 18, .06);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__dd.is-open .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) { .nav__dd:hover .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; } .nav__dd:hover .nav__chev { transform: rotate(180deg); } }
.nav .nav__panel ul { display: grid; gap: 2px; }
.nav .nav__panel a { display: block; padding: 11px 14px; border-radius: 10px; font-size: .96rem; font-weight: 600; color: var(--ink); }
.nav .nav__panel a::after { display: none; }
.nav .nav__panel a:hover, .nav .nav__panel a[aria-current="page"] { background: var(--paper-2); color: var(--green-deep); }
.nav .nav__panel .nav__all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 13px; font-size: .88rem; font-weight: 560; color: var(--ink-3); display: flex; align-items: center; gap: .4em; }
.menu__sub > a { padding-bottom: 8px !important; }
.menu__sub ul { padding: 0 0 16px; }
.menu__sub ul li { border: 0; }
.menu__sub ul a { padding: 8px 0 8px 2px !important; font-size: 1.1rem !important; font-weight: 580 !important; letter-spacing: 0 !important; color: var(--ink-3); }

/* ---- Liens « En savoir plus » sous les chantiers ---- */
.more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: .95rem; }
.work__cap + .more { margin-top: 10px; }
.nav a, .nav__btn, .hd__cta { white-space: nowrap; }
.nav .nav__panel a { white-space: normal; }
.nav__panel { width: 380px; }
.hd.is-hidden .nav__panel { visibility: hidden; opacity: 0; }
@media (max-width: 1500px) { .hd__act .status { display: none; } }
@media (max-width: 1240px) { .hd__tel span { display: none; } .hd__tel { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; } }
/* l'entreprise : grande photo puis seconde photo, chacune entière */
.about__media { grid-template-columns: 1fr; max-width: 640px; }
.about__sub { width: 72%; justify-self: end; margin-top: -2px; }
/* avant / après côte à côte : même hauteur, chaque photo entière, sans bandes vides */
.pair, .projs__list .pair { display: flex; aspect-ratio: auto; align-items: flex-start; }
.pair__it, .projs__list .pair__it { flex: var(--r, 1) 1 0; min-width: 0; height: auto; }
.pair__it img, .projs__list .pair__it img { width: 100%; height: auto; aspect-ratio: auto; }
/* comparateur : dans ses propres proportions */
.mt__proj .ba, .projs__list .proj__media .ba { aspect-ratio: var(--ar); }

/* ---- Prestations (accueil) : une photo à côté de chaque prestation ---- */
.svc__list--fig .svc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; padding: clamp(36px, 4.5vw, 64px) 0; opacity: 1 !important; }
.svc__list--fig .svc__row:nth-child(even) .svc__fig { order: 2; }
.svc__list--fig .svc__fig { display: block; grid-row: auto; margin: 0; aspect-ratio: auto !important; background: none; overflow: visible; }
.svc__pic1 { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ar); max-height: 72vh; }
.svc__pic1 img { width: 100%; height: 100%; object-fit: contain; }
.svc__fig .ba { max-height: 72vh; width: auto; max-width: 100%; margin-inline: auto; }
.svc__list--fig .svc__row .svc__t { color: var(--paper); }
.svc__list--fig .svc__row:hover .svc__t { color: var(--green-bright); }
@media (max-width: 999px) {
  .svc__list--fig .svc__row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .svc__list--fig .svc__row:nth-child(even) .svc__fig { order: 0; }
}

/* ---- Garantie décennale ---- */
.dec { display: inline-flex; align-items: center; gap: .7em; margin: 0; padding: .55rem 1rem .55rem .7rem; border-radius: 999px; background: rgba(124, 194, 78, .14); border: 1px solid rgba(124, 194, 78, .45); font-size: .92rem; line-height: 1.25; }
.dec .i { width: 1.6em; height: 1.6em; flex: none; color: var(--green-bright); }
.dec strong { font-weight: 720; font-stretch: 108%; }
.dec--hero { margin: 26px 0 0; color: var(--paper); background: rgba(18, 20, 18, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; width: fit-content; }
.hero__text .dec--hero + .rating { margin-top: 18px; }
.dec--quote, .dec--cta { margin-top: 22px; color: var(--paper); }
.dec--ft { color: var(--paper); }
.ft__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.facts__in { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 999px) { .facts__in { grid-template-columns: repeat(2, 1fr); } }
/* rubriques : deux vues côte à côte, légende libre */
.pair__it--n figcaption { background: rgba(18, 20, 18, .72) !important; color: #fff !important; }
@media (max-width: 999px) { .facts li:nth-child(5) { grid-column: span 2; border-left: 0; } }
.dec--hero { margin: 22px 0 0; }
