/* SARL Pierre Cavallin — feuille de style */

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

:root {
  --ink: #171a12;
  --ink-2: #23271b;
  --paper: #f5f1e8;
  --paper-2: #ebe5d7;
  --line: #d8d0bd;
  --text: #2a2d22;
  --muted: #5a5e4d;
  --yellow: #f2c230;
  --clay: #9a441e;
  --green: #55722b;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; text-transform: uppercase; letter-spacing: .005em; margin: 0; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 0; }
.kicker { font: 600 .95rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); display: block; margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 62ch; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; font: 700 1.15rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffd54d; }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--clay); }
.link-arrow { font: 700 1.1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--yellow); padding-bottom: 4px; }
.link-arrow:hover { border-color: var(--clay); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: auto; height: 52px; flex: none; }
.brand-name { font: 700 1.55rem/1 var(--display); color: var(--yellow); letter-spacing: .02em; white-space: nowrap; }
.brand-name span { text-transform: uppercase; }
.brand-sub { display: block; font: 500 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #c9c6b6; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font: 600 1.08rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #e9e6da; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-color: var(--yellow); }
.nav .nav-tel { background: var(--yellow); color: var(--ink); padding: 12px 16px; border: 0; white-space: nowrap; }
.nav .nav-tel:hover { background: #ffd54d; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 48px; height: 48px; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,26,18,.72) 0%, rgba(23,26,18,.35) 45%, rgba(23,26,18,.88) 100%); }
.hero .wrap { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 120px 56px; }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 9.5vw, 7rem); line-height: .92; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .kicker { color: var(--yellow); }
.hero p { max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 22px 0 30px; color: #f1eee4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.facts { background: var(--yellow); color: var(--ink); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 20px 20px 20px 0; font-size: .98rem; line-height: 1.3; }
.facts li + li { border-left: 1px solid rgba(23,26,18,.25); padding-left: 20px; }
.facts strong { display: block; font: 700 1.5rem/1.05 var(--display); text-transform: uppercase; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin: 0; color: var(--muted); }
.dark { background: var(--ink); color: #dedbd0; }
.dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: var(--yellow); }
.dark .section-head p { color: #b9b6a8; }
.dark .link-arrow { color: #fff; }

/* Prestations */
.service { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:nth-of-type(even) .service-media { order: 2; }
.service-media { position: relative; }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-num { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--yellow); font: 700 1.3rem/1 var(--display); padding: 12px 14px; letter-spacing: .08em; }
.service h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.service ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.service li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.service li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 14px; height: 3px; background: var(--clay); }

/* Mosaïque d'accueil */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 19vw, 250px); gap: 6px; }
.tiles a { position: relative; overflow: hidden; display: block; background: var(--paper-2); }
.tiles a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tiles a:nth-child(4), .tiles a:nth-child(6) { grid-column: span 2; }
.tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tiles a:hover img { transform: scale(1.04); }
.more { margin-top: 32px; }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.zone-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.zone-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font: 600 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; break-inside: avoid; }
.zone-list small { display: block; font: 400 .85rem/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 3px; }

/* Bandeau devis */
.cta { background: var(--clay); color: #fff; padding-block: clamp(48px, 7vw, 84px); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { margin: 12px 0 0; max-width: 46ch; color: #fbe9df; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Pied de page */
.site-footer { background: var(--ink); color: #b9b6a8; padding-block: 56px 28px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 1.15rem; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e9e6da; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #343829; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* En-tête de page intérieure */
.page-head { background: var(--ink); color: #dedbd0; padding-block: clamp(48px, 7vw, 88px); }
.page-head h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); }
.page-head p { max-width: 60ch; margin: 18px 0 0; font-size: 1.15rem; }
.page-head .kicker { color: var(--yellow); }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 600 1.05rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; min-height: 46px; padding: 0 18px; background: transparent; border: 2px solid var(--ink); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.filters button:hover { background: var(--ink); color: #fff; }
.filters .count { opacity: .8; margin-left: 6px; font-weight: 600; }
.gallery { columns: 3; column-gap: 8px; }
.gallery a { display: block; margin-bottom: 8px; position: relative; break-inside: avoid; background: var(--paper-2); overflow: hidden; }
.gallery a[hidden] { display: none; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .cap { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(23,26,18,.88)); color: #fff; font-size: .92rem; line-height: 1.3; opacity: 0; transition: opacity .2s; }
.gallery a:hover .cap, .gallery a:focus-visible .cap { opacity: 1; }

.lightbox { border: 0; padding: 0; background: rgba(15,17,11,.96); color: #fff; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(15,17,11,.96); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 90px); margin: auto; object-fit: contain; }
.lb-stage { display: grid; place-items: center; padding: 16px 64px 0; min-height: 0; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 20px; }
.lb-bar p { margin: 0; font-size: .98rem; }
.lb-bar span { color: #a9a696; font: 600 1rem/1 var(--display); letter-spacing: .1em; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer; }
.lb-btn:hover { background: var(--yellow); color: var(--ink); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; translate: 0 -50%; }
.lb-next { right: 8px; top: 50%; translate: 0 -50%; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label { font: 600 .9rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); display: block; margin-bottom: 8px; }
.contact-list .big { font: 700 clamp(1.7rem, 3.4vw, 2.3rem)/1.05 var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.big:hover { color: var(--clay); }
.contact-list p { margin: 0; }
.form { background: #fff; border: 1px solid var(--line); padding: clamp(20px, 3.5vw, 40px); }
.form h2 { font-size: 2rem; margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #bdb5a0; padding: 13px 14px; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
input[type="file"] { padding: 10px; background: var(--paper); cursor: pointer; }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.opt { font-weight: 400; color: var(--muted); }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #a3261b; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

/* Pages légales */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--clay); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-top: 1px solid #343829; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid #343829; }
  .nav .nav-tel { margin-top: 16px; text-align: center; padding: 16px; }
  .section-head, .service, .zone, .contact { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service-media { order: 0; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li { padding: 14px 0; }
  .facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(23,26,18,.25); }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .tiles a:nth-child(4) { grid-column: span 1; }
  .gallery { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .lb-stage { padding-inline: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 70px; translate: none; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .row { grid-template-columns: 1fr; }
  .zone-list { columns: 1; }
  .hero .btn, .cta .btn { width: 100%; justify-content: center; }
  .gallery .cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
