/* pierrefroger.fr : style « Cinéma » (noir, photos plein cadre, Big Shoulders + Inter Tight) */

@font-face { font-family: "Big Shoulders Display"; font-weight: 500; font-display: swap; src: url(/assets/fonts/big-shoulders-display-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url(/assets/fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url(/assets/fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-tight-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-tight-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-tight-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #000000;
  --ink: #EDEDEA;
  --ink-2: #D6D8D9;
  --ink-3: #B9BDBF;
  --mute: #9A9FA2;
  --line: #2A2C2E;
  --field: #111213;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Inter Tight", system-ui, sans-serif;
  --gut: clamp(20px, 4vw, 56px);
  --gap: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--ink-3); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip:focus { top: 12px; }

/* Animations d'ouverture */
.iris { animation: iris 1.8s cubic-bezier(.7, 0, .2, 1) .3s both; }
.lift { animation: lift 1s ease-out 1.6s both; }
.hero--page .iris { animation-duration: 1.4s; animation-delay: .1s; }
.hero--page .lift { animation-delay: 1s; }
@keyframes iris { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(80% at 50% 50%); } }
@keyframes lift { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .iris, .lift { animation: none; } html { scroll-behavior: auto; } }

/* En-tête */
.site-header { position: relative; z-index: 3; padding: 28px var(--gut); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.site-header--overlay { position: absolute; left: 0; right: 0; top: 0; }
.brand { font-family: var(--display); font-size: 28px; font-weight: 800; text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink-3); }
.nav__devis { background: var(--ink); color: var(--bg); padding: 10px 16px; line-height: 1; font-weight: 600; }
.nav__devis:hover { background: var(--ink-3); }
.nav a.nav__devis[aria-current="page"] { color: var(--bg); }
.nav__client { opacity: .8; }
@media (max-width: 700px) {
  .site-header { padding-top: 20px; }
  .nav { gap: 10px 16px; font-size: 14px; }
  .nav__devis { padding: 8px 12px; }
}

/* Grand visuel */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--bg); }
.hero--page { height: 78vh; height: 78svh; min-height: 560px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 18%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%), linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 55%); }
.site-header--overlay a, .crumbs { text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.site-header--overlay .nav__devis { text-shadow: none; }
.hero__text { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.hero__main { max-width: 960px; }
.hero__caption { margin: 0; font-size: 13px; color: var(--ink-3); }
.display { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8.4vw, 132px); line-height: .88; text-wrap: balance; }
.display--m { font-size: clamp(48px, 6.6vw, 104px); }
.lede { margin: 20px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 600px; color: var(--ink-2); }
.crumbs { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

/* En-tête de page sans photo */
.head { padding: clamp(48px, 8vw, 120px) var(--gut) clamp(40px, 5vw, 72px); max-width: 1440px; }
.head--small .display { font-size: clamp(44px, 6vw, 88px); }
.head--center { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.head--center p { margin: 20px 0 0; }

/* Tuiles métiers */
.tiles { padding: var(--gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tiles--small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tile { position: relative; display: block; min-height: 520px; overflow: hidden; text-decoration: none; color: var(--ink); background: #0B0C0D; }
.tiles--small .tile { min-height: 190px; }
.tiles--small .tile__text { left: 18px; right: 18px; bottom: 16px; gap: 2px; }
.tiles--small .tile__line { font-size: 13px; }
.tile--wide { grid-column: span 2; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile__img { transform: scale(1.03); }
.tile:hover { color: var(--ink); }
.tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.7) 100%); }
.tile__text { position: absolute; left: 32px; right: 32px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.tile__title { font-family: var(--display); font-size: clamp(44px, 4.6vw, 76px); font-weight: 700; line-height: .92; }
.tiles--small .tile__title { font-size: clamp(24px, 2vw, 32px); }
.tile__line { font-size: 16px; color: var(--ink-2); }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 420px; }
  .tile__text { left: 20px; right: 20px; bottom: 20px; }
  .tiles--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--small .tile { min-height: 150px; }
  .tiles--small .tile__line { display: none; }
}

/* Mosaïque */
.terrain { padding: clamp(72px, 9vw, 128px) var(--gap) var(--gap); }
.section-title { margin: 0 0 32px; padding: 0 clamp(12px, 4vw, 48px); font-family: var(--display); font-size: clamp(44px, 4.6vw, 72px); font-weight: 700; line-height: .95; }
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--gap); }
.mosaic--pad { padding: 0 var(--gap); margin: var(--gap) 0; }
.mosaic__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #0B0C0D; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .mosaic--pad { padding: 0 3px; }
  .mosaic__img { aspect-ratio: 1; }
}
.terrain__foot { margin: 0; padding: 40px clamp(12px, 4vw, 48px) 64px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--mute); }

/* Introduction des pages */
.intro { padding: clamp(56px, 6vw, 96px) var(--gut) clamp(36px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px 48px; max-width: 1440px; }
.intro__label { margin: 6px 0 0; font-size: 14px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.intro__text { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; max-width: 980px; text-wrap: pretty; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; gap: 16px; align-content: start; font-size: 15px; }
.facts dt { color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; }

/* Texte courant */
.prose { padding: clamp(48px, 6vw, 96px) var(--gut); max-width: 1440px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.prose > * { max-width: 680px; }
.prose h2 { margin: 56px 0 16px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3vw, 48px); line-height: 1; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; font-size: 20px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; }
.prose li { padding: 10px 0; border-top: 1px solid var(--line); }
.prose li:last-child { border-bottom: 1px solid var(--line); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose--split > * { max-width: none; }
.sec { padding: 40px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec h2 { margin: 0 0 16px; }
.sec__body > * { max-width: 680px; }
.sec__body > :last-child { margin-bottom: 0; }
@media (min-width: 1000px) {
  .sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; }
  .sec h2 { margin: 0; }
}

/* Réalisations */
.projects { padding: clamp(64px, 8vw, 112px) var(--gap) var(--gap); }
.projects--top { padding-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px var(--gap); }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 10px; background: #0B0C0D; }
.card__title { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; padding: 0 12px; }
.card__meta { font-size: 14px; color: var(--mute); padding: 0 12px; }
.wall { padding: clamp(48px, 6vw, 88px) var(--gap) 0; }
.wall__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 0 clamp(12px, 4vw, 48px) 24px; }
.wall__head .section-title { padding: 0; margin: 0; }
.wall__head a { font-size: 15px; color: var(--ink-3); }
.quote { margin: 0; padding: clamp(64px, 8vw, 120px) var(--gut); max-width: 1100px; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "« "; }
.quote blockquote p::after { content: " »"; }
.quote figcaption { margin-top: 20px; color: var(--mute); }

/* Vidéo sans cookie */
.video-wrap { padding: 0 var(--gap) var(--gap); }
.video { position: relative; aspect-ratio: 16 / 9; background: #0B0C0D center / cover no-repeat; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.35); color: var(--ink); font: 600 18px var(--text); cursor: pointer; }
.video__play::before { content: ""; display: block; margin: 0 auto 14px; width: 0; height: 0; border-left: 30px solid var(--ink); border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
.video__play:hover { background: rgba(0,0,0,.15); }

/* FAQ */
.faq { padding: clamp(64px, 8vw, 112px) var(--gut); max-width: 1440px; }
.faq .section-title { padding: 0; }
.faq__list { max-width: 900px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-size: 19px; font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--display); font-size: 32px; font-weight: 500; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 0 22px; color: var(--ink-2); max-width: 720px; }
.faq__a p { margin: 0 0 12px; }

/* Bandeau devis */
.band { position: relative; overflow: hidden; margin-top: var(--gap); }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.band__in { position: relative; max-width: 1440px; margin: 0 auto; padding: clamp(80px, 10vw, 160px) var(--gut); }
.band__title { margin: 0 0 20px; font-family: var(--display); font-size: clamp(48px, 6vw, 96px); font-weight: 800; line-height: .9; max-width: 820px; }
.band__text { margin: 0 0 32px; font-size: 18px; line-height: 1.6; max-width: 520px; color: var(--ink-2); }
.band__actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.band__tel { font-size: 20px; font-weight: 500; text-decoration: none; }
.btn { display: inline-block; background: var(--ink); color: var(--bg); border: 0; text-decoration: none; font: 600 16px var(--text); padding: 16px 28px; cursor: pointer; }
.btn:hover { background: var(--ink-3); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* Formulaires */
.devis { padding: 0 var(--gut) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px 80px; max-width: 1440px; }
@media (max-width: 900px) { .devis { grid-template-columns: 1fr; } }
.devis__side { font-size: 16px; color: var(--ink-2); }
.devis__label { margin: 28px 0 4px; font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.devis__label:first-child { margin-top: 0; }
.devis__side p { margin-top: 0; }
.devis__tel { font-family: var(--display); font-weight: 700; font-size: 40px; text-decoration: none; }
.form { display: grid; gap: 20px; max-width: 820px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea { width: 100%; background: var(--field); color: var(--ink); border: 1px solid #6E7377; border-radius: 0; padding: 14px 16px; font: 400 17px var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form [aria-invalid="true"] { border-color: #E07A5F; }
.form textarea { resize: vertical; min-height: 160px; }
.form .btn { justify-self: start; }
.form__intro { margin: 0; color: var(--ink-2); max-width: 640px; }
.form__note { margin: 0; font-size: 14px; color: var(--mute); }
.form__err { font-size: 14px; color: #F0A08A; }
.form__error { margin: 0; padding: 14px 16px; border: 1px solid #E07A5F; color: #F0A08A; }
.form--inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.form--inline .form__err { grid-column: 1 / -1; }
.narrow { padding: 0 var(--gut) clamp(80px, 10vw, 140px); max-width: 860px; display: grid; gap: 24px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--gap); }
.site-footer__in { max-width: 1440px; margin: 0 auto; padding: 40px var(--gut); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; font-size: 14px; color: var(--mute); }
.site-footer p { margin: 0 0 6px; }
.site-footer__name { color: var(--ink-2); }
.site-footer a { text-decoration: none; color: var(--mute); }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }

/* Photos cliquables et visionneuse */
.zoom { display: block; overflow: hidden; cursor: zoom-in; }
.zoom .mosaic__img { transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.zoom:hover .mosaic__img { transform: scale(1.03); }
.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050506; color: #EDEDEA; }
.lb::backdrop { background: #050506; }
html.lb-open, html.lb-open body { overflow: hidden; }
html.lb-open body > :not(.lb) { visibility: hidden; }
.lb[open] { display: grid; place-items: center; animation: lb-in .2s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__fig { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 80px 20px; box-sizing: border-box; }
.lb__img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb__cap { padding-top: 14px; font-size: 14px; color: #A9ABAD; text-align: center; max-width: 70ch; }
.lb__btn, .lb__close { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; transition: background .2s; font: 300 34px/1 system-ui, sans-serif; }
.lb__btn:hover, .lb__close:hover { background: rgba(255,255,255,.2); }
.lb__btn { top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; }
.lb__prev { left: 18px; }
.lb__next { right: 18px; }
.lb__close { top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 30px; }
.lb__count { position: absolute; top: 18px; left: 22px; margin: 0; font-size: 13px; letter-spacing: .08em; color: #8D9093; }
.lb--single .lb__btn, .lb--single .lb__count { display: none; }
@media (max-width: 700px) {
  .lb__fig { padding: calc(64px + env(safe-area-inset-top)) 8px calc(76px + env(safe-area-inset-bottom)); grid-template-rows: auto auto; align-content: center; }
  .lb__img { max-height: calc(100dvh - 230px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .lb__cap { padding: 14px 12px 0; font-size: 13px; }
  .lb__btn { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; width: 48px; height: 48px; }
  .lb__close { top: calc(12px + env(safe-area-inset-top)); }
  .lb__count { top: calc(24px + env(safe-area-inset-top)); }
}

/* Pages métier : texte sur deux colonnes, sans encadré, plus compact */
.prose--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 80px); padding-top: clamp(40px, 5vw, 72px); font-size: 16.5px; }
.prose--cards > * { max-width: none; }
.prose--cards .sec, .prose--cards .sec:first-child { display: block; padding: 22px 0 0; border-top: 1px solid var(--line); }
.prose--cards .sec h2 { margin: 0 0 14px; font-size: clamp(26px, 2.2vw, 34px); }
.prose--cards .sec__body > * { max-width: none; }
.prose--cards li { padding: 7px 0; }


/* Boutons d'action dans le premier écran */
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero__tel { font-size: 16px; font-weight: 500; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.hero__tel:hover { text-decoration: underline; }

/* Formulaire devis */
.form__quick { margin: 0; font-size: 15px; color: var(--ink-2); }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__send .form__note { margin: 0; }
@media (min-width: 900px) { .form__quick { display: none; } }

/* Barre de contact fixe sur téléphone */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
  .callbar a:hover { color: var(--ink); }
  .callbar .callbar__devis { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.32); }
  .callbar svg { width: 17px; height: 17px; flex: none; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-header .nav a:not(.nav__devis):not([href="/#metiers"]) { display: none; }
}
