/* AG Menuiserie : feuille de style unique */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #232326;
  --bg-deep: #1D1D20;
  --surface: #35353A;
  --field: #2A2A2D;
  --line: #5A5A61;
  --text: #F2F0ED;
  --text-soft: #D6D2CC;
  --text-muted: #B5B1AB;
  --text-faint: #9E9A94;
  --white: #fffefb;
  --accent: #D98B4E;
  --accent-dark: #C47A40;
  --shadow-ink: 32,21,21;
  --pad-x: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Public Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
picture { display: contents; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
input, textarea, button, select { font: inherit; color: inherit; }
::placeholder { color: var(--text-faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* grain léger */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0.055; mix-blend-mode: overlay; background-size: 160px 160px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  position: relative; max-width: 1280px; margin: 0 auto;
  background:
    radial-gradient(1100px 620px at 12% -4%, rgba(217,139,78,0.10), transparent 62%),
    radial-gradient(900px 700px at 96% 38%, rgba(217,139,78,0.055), transparent 60%),
    linear-gradient(180deg, #2C2C30 0%, #262629 46%, #2A2A2D 100%);
}

/* Apparition au défilement (activée seulement si JS) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms cubic-bezier(.2,.7,.3,1), transform 700ms cubic-bezier(.2,.7,.3,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; background: var(--bg-deep); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(1.05) contrast(1.06) saturate(1.04); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--shadow-ink),0.7) 0%, rgba(var(--shadow-ink),0.34) 42%, rgba(var(--shadow-ink),0) 78%); }
.brand { position: absolute; top: 24px; left: var(--pad-x); display: flex; align-items: baseline; gap: 10px; z-index: 2; font-family: "Bricolage Grotesque", sans-serif; }
.brand__ag { font-size: clamp(30px, 4vw, 56px); font-weight: 700; letter-spacing: -1px; color: var(--accent); }
.brand__name { font-size: clamp(24px, 3.2vw, 44px); font-weight: 500; color: var(--white); }
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 20px; max-width: 680px; padding: 32px var(--pad-x); background: linear-gradient(90deg, rgba(var(--shadow-ink),0.82) 0%, rgba(var(--shadow-ink),0.6) 55%, rgba(var(--shadow-ink),0) 100%); }
.hero h1 { font-size: clamp(20px, 2.7vw, 38px); line-height: 1.05; font-weight: 500; color: var(--accent); }
.hero__lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #ede8e1; max-width: 460px; }
@media (min-width: 640px) { .hero h1 { white-space: nowrap; } }

/* ---------- Services ---------- */
.services { position: relative; z-index: 1; background: linear-gradient(180deg, #34343A 0%, #303036 100%); padding: 64px var(--pad-x); }
.services__intro { font-size: 25px; line-height: 1.3; font-weight: 500; font-style: italic; max-width: 640px; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 48px; }
.service { background: rgba(26,26,29,0.72); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.service__media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 14px 30px -12px rgba(var(--shadow-ink),0.36), 0 3px 8px -3px rgba(var(--shadow-ink),0.2); }
.service__media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.service h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.6px; font-weight: 600; margin-top: 24px; text-align: center; color: var(--accent); }
.dash-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.dash-list li { display: flex; gap: 12px; font-size: 16px; line-height: 24px; color: var(--text-soft); }
.dash-list li::before { content: "—"; color: var(--accent); }

/* ---------- Réalisations ---------- */
.works { position: relative; z-index: 1; padding: 88px var(--pad-x) 96px; background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.05)); }
.works__head { display: grid; grid-template-columns: minmax(0, auto) 1fr; align-items: end; gap: clamp(16px, 4vw, 48px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent); }
.works__head h2 { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.05; margin-top: 14px; }
.works__rule { height: 1px; background: linear-gradient(90deg, rgba(217,139,78,0.75), rgba(255,255,255,0.06)); margin-bottom: 12px; }
@media (min-width: 640px) { .works__head h2 { white-space: nowrap; } }
@media (max-width: 639px) { .works__head { grid-template-columns: 1fr; } .works__rule { display: none; } }
.works__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); column-gap: clamp(20px, 3vw, 40px); row-gap: clamp(56px, 7vw, 88px); margin-top: 56px; align-items: start; }
.gallery { min-width: 0; }
.gallery h3 { font-size: 24px; line-height: 25px; letter-spacing: -0.5px; font-weight: 700; color: var(--accent); border-left: 3px solid var(--accent); padding-left: 12px; }
.carousel { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 38px -12px rgba(var(--shadow-ink),0.42), 0 4px 10px -4px rgba(var(--shadow-ink),0.24); transition: box-shadow 260ms ease, transform 260ms ease; }
.carousel:hover { box-shadow: 0 26px 52px -12px rgba(var(--shadow-ink),0.5), 0 6px 14px -4px rgba(var(--shadow-ink),0.28); transform: translateY(-3px); }
.carousel__track { display: flex; transition: transform 320ms ease; list-style: none; margin: 0; padding: 0; }
.carousel__track.no-anim { transition: none; }
.slide { position: relative; overflow: hidden; flex: 0 0 100%; width: 100%; min-width: 0; height: clamp(320px, 46vw, 560px); background: var(--surface); display: grid; grid-template-rows: 100%; place-items: center; }
.slide__blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) brightness(0.6) saturate(0.8); transform: scale(1.15); }
.slide__zoom { position: relative; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.slide__zoom img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(var(--shadow-ink),0.55); color: var(--white); font-size: 13px; padding: 4px 10px; border-radius: 9999px; font-variant-numeric: tabular-nums; }
.round-btn { background: rgba(var(--shadow-ink),0.55); border: none; padding: 0 0 4px; color: var(--white); width: 44px; height: 44px; border-radius: 9999px; font-size: 30px; line-height: 1; cursor: pointer; }
.round-btn:hover { background: var(--accent); }
.carousel .round-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.carousel .prev { left: 12px; }
.carousel .next { right: 12px; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(var(--shadow-ink),0.92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); object-fit: contain; border-radius: 12px; display: block; box-shadow: 0 40px 90px -20px rgba(0,0,0,0.75); }
.lightbox .round-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 34px; padding-bottom: 5px; z-index: 2; }
.lightbox .prev { left: clamp(12px, 3vw, 32px); }
.lightbox .next { right: clamp(12px, 3vw, 32px); }
.lightbox .close { position: fixed; top: 24px; right: 24px; width: 44px; height: 44px; border: none; border-radius: 9999px; background: #c8321e; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox .close:hover { background: #a52814; }
body.no-scroll { overflow: hidden; }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 1; padding: 64px var(--pad-x); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 48px; align-items: start; }
.label-caps { font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.contact h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.04; font-weight: 500; margin-top: 24px; }
.contact__lead { font-size: 20px; line-height: 30px; letter-spacing: -0.2px; color: var(--text-muted); margin-top: 24px; max-width: 440px; }
.contact__cards { display: grid; gap: 16px; margin-top: 32px; }
.contact-card { background: var(--surface); border-radius: 12px; padding: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-card__value { font-size: 24px; font-weight: 600; line-height: 30px; letter-spacing: -0.6px; }
.contact-card__value--small { font-size: 18px; font-weight: 400; line-height: 27px; overflow-wrap: anywhere; }

.form { background: var(--surface); border-radius: 12px; padding: clamp(24px, 3vw, 32px); display: grid; gap: 16px; }
.form h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.6px; font-weight: 600; }
.field { display: grid; gap: 8px; }
.field span { font-size: 16px; font-weight: 600; line-height: 24px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 16px; background: var(--field); border: 1px solid var(--line); border-radius: 6px; font-size: 18px; line-height: 27px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.hp { display: none !important; }
.btn { padding: 12px 24px; background: var(--accent); color: var(--white); border: none; border-radius: 12px; font-size: 18px; font-weight: 600; line-height: 27px; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.form__status { font-size: 16px; line-height: 24px; min-height: 0; }
.form__status.is-ok { color: #9fd19a; }
.form__status.is-error { color: #f0a08a; }
.form__note { font-size: 14px; line-height: 21px; color: var(--text-muted); }
.form__note a { color: var(--text-muted); text-decoration: underline; }

/* ---------- Pied de page ---------- */
.footer { position: relative; z-index: 1; background: #1B1B1E; color: #f8f4f0; padding: 48px var(--pad-x); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.footer__brand { display: flex; align-items: baseline; gap: 8px; font-family: "Bricolage Grotesque", sans-serif; }
.footer__brand b { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: var(--accent); }
.footer__brand span { font-size: 16px; font-weight: 500; color: var(--white); }
.footer p { font-size: 16px; line-height: 24px; color: var(--text-muted); }
.footer h2 { font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--white); font-family: "Public Sans", sans-serif; }
.footer__links { display: grid; gap: 8px; margin-top: 16px; }
.footer__links a, .footer__links span { font-size: 16px; color: var(--text-muted); }
.footer__links a:hover { color: var(--accent); }
.footer__legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid #45454B; font-size: 14px !important; line-height: 21px !important; color: var(--text-faint) !important; }
.footer__legal a { color: var(--text-faint); }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Page mentions légales ---------- */
.legal-page { min-height: 100vh; }
.legal-header { padding: 32px var(--pad-x) 0; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal-header .footer__brand b { font-size: 26px; }
.legal-header .footer__brand span { font-size: 20px; }
.legal-header__back { font-size: 15px; color: var(--text-muted); }
.legal { padding: clamp(40px, 7vw, 88px) var(--pad-x) clamp(56px, 8vw, 96px); max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; margin-top: 14px; }
.legal__date { font-size: 16px; line-height: 24px; color: var(--text-faint); margin-top: 16px; }
.legal section { margin-top: clamp(32px, 4vw, 44px); display: grid; gap: 12px; }
.legal h2 { font-size: 20px; line-height: 1.2; color: var(--accent); }
.legal p { font-size: 17px; line-height: 27px; color: var(--text-soft); }
.legal a { color: var(--accent); }
.todo { background: rgba(217,139,78,0.15); border: 1px dashed var(--accent); padding: 0 6px; border-radius: 4px; }
.legal-footer { padding: 0 var(--pad-x) 48px; }
.legal-footer p { padding-top: 24px; border-top: 1px solid #45454B; font-size: 14px; line-height: 21px; color: var(--text-faint); }
.legal-footer a { color: var(--text-faint); }
