/* Sparta Frame — feuille de style principale
   Typographie : Archivo (SIL Open Font License), axe de chasse 62–125 %. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noir: #000000;
  --carbone: #15120d;
  --trait: #3a2f1c;
  --or: #c5a059;
  --or-clair: #e3c88e;
  --ivoire: #eee7d8;
  --cendre: #a39a8a;

  --wide: 125%;
  --narrow: 62%;

  --gutter: 16px;
  --max: 1240px;
  --section: 72px;
  --header-h: 64px;
  --quickbar-h: 64px;
  color-scheme: dark;
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --section: 120px; --header-h: 76px; --quickbar-h: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--noir);
  color: var(--ivoire);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--quickbar-h);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: var(--or-clair); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivoire); }
:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }
::selection { background: var(--or); color: var(--noir); }

h1, h2, h3 { margin: 0; font-weight: 300; font-stretch: var(--wide); line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--or); color: var(--noir); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-size: 0.98rem; font-weight: 600; font-stretch: 112%;
  text-decoration: none; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--or); color: var(--noir); }
.btn--gold:hover { background: var(--or-clair); color: var(--noir); }
.btn--line { border-color: var(--or); color: var(--or-clair); background: transparent; }
.btn--line:hover { background: var(--or); color: var(--noir); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivoire); margin-right: auto; }
.brand img { width: 30px; height: 40px; }
.brand__name { font-stretch: var(--wide); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or-clair); white-space: nowrap; }
.nav { display: none; }
.nav a { color: var(--ivoire); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--or-clair); }
.header-phones { display: none; }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  background: none; border: 1px solid var(--trait); color: var(--ivoire); font: inherit; font-size: 0.95rem; border-radius: 2px; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* menu mobile ouvert */
.nav.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--noir); padding: 16px var(--gutter) 32px;
  overflow-y: auto;
}
.nav.is-open a { font-stretch: var(--wide); font-weight: 300; font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.nav__phones { display: none; }
.nav.is-open .nav__phones { display: grid; gap: 10px; margin-top: 24px; }
.nav.is-open .nav__phones a { font-stretch: 100%; font-size: 1.15rem; font-weight: 500; border: 0; padding: 4px 0; color: var(--or-clair); }

@media (min-width: 1100px) {
  .nav { display: flex; gap: 26px; }
  .nav-toggle { display: none; }
  .header-phones { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
  .header-phones a { color: var(--or-clair); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
  .header-phones a:hover { color: var(--ivoire); }
  .header-cta { display: inline-flex; min-height: 44px; padding: 10px 18px; }
}

/* ---------- Héros : cadre cinémascope ---------- */
.hero { position: relative; }
.hero__frame {
  position: relative; width: 100%;
  aspect-ratio: 4 / 5; max-height: 72svh;
  background: var(--noir); overflow: hidden;
}
.hero__frame picture, .hero__frame video, .hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 0.8s ease; }
.hero__video.is-playing { opacity: 1; }
@media (min-width: 700px) {
  .hero__frame { aspect-ratio: 2.39 / 1; max-height: 56svh; }
  .hero__frame picture, .hero__frame video, .hero__frame img { object-position: 50% 20%; }
}
/* repères de cadrage, comme dans un viseur */
.hero__frame::before, .hero__frame::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  width: 34px; height: 34px; border: 0 solid var(--or);
}
.hero__frame::before { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.hero__frame::after { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

.hero__text { padding-block: 32px 8px; display: grid; gap: 24px; }
.hero h1 { font-size: clamp(2.05rem, 5.4vw, 4.5rem); font-weight: 250; max-width: 22ch; }
.hero__lead { color: var(--cendre); max-width: 52ch; font-size: 1.06rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__side { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .hero__text { gap: 28px; padding-block: 36px 0; }
  .hero__side { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
}

/* ---------- Bouton lecture / pause ---------- */
.video-toggle {
  position: absolute; z-index: 3; right: 12px; top: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.55); color: var(--ivoire);
  border: 1px solid rgba(238, 231, 216, 0.35); cursor: pointer; padding: 0;
}
.video-toggle:hover { border-color: var(--or); color: var(--or-clair); }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play { display: none; }
.video-toggle[data-state="paused"] .i-play { display: block; }
.video-toggle[data-state="paused"] .i-pause { display: none; }
.hero .video-toggle { top: auto; bottom: 62px; right: 16px; }
@media (min-width: 700px) { .hero .video-toggle { bottom: 64px; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid rgba(197, 160, 89, 0.14); }
.section__head { display: grid; gap: 14px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
.section__head p { color: var(--cendre); max-width: 58ch; }
@media (min-width: 900px) {
  .section__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-bottom: 56px; }
}

/* ---------- Réalisations ---------- */
.works { display: grid; gap: 40px; }
.work { margin: 0; }
.work__media { position: relative; background: var(--carbone); overflow: hidden; }
.work__media video { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.work figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-top: 14px; }
.work h3 { font-size: 1.35rem; font-weight: 400; }
.work__type { color: var(--cendre); font-size: 0.95rem; }

.works--featured .work h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (min-width: 900px) {
  .works { gap: 72px; }
  .work figcaption { padding-top: 18px; }
}

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; }
.service { display: grid; gap: 18px; padding-block: 32px; border-top: 1px solid var(--trait); }
.service:last-child { border-bottom: 1px solid var(--trait); }
.service__media { position: relative; aspect-ratio: 4 / 5; width: min(100%, 300px); background: var(--carbone); overflow: hidden; }
.service__media video, .service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  font-size: 0.75rem; line-height: 1.3; padding: 3px 7px;
  background: rgba(0, 0, 0, 0.7); color: var(--cendre);
}
.service h3 { font-size: clamp(1.45rem, 3vw, 2.2rem); margin-bottom: 12px; }
.service p { color: var(--cendre); max-width: 56ch; }
.service__link { display: inline-block; margin-top: 16px; font-weight: 500; }
@media (min-width: 900px) {
  .service { grid-template-columns: 220px 1fr; gap: 48px; align-items: center; padding-block: 36px; }
  .service__media { width: 220px; }
}

/* ---------- Photographie ---------- */
.gallery { columns: 2 160px; column-gap: 12px; }
.gallery__item { break-inside: avoid; margin: 0 0 12px; }
.gallery__item button { display: block; width: 100%; padding: 0; border: 0; background: var(--carbone); cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; }
.gallery__item button:hover img { opacity: 0.88; }
@media (min-width: 900px) { .gallery { columns: 3 260px; column-gap: 16px; } .gallery__item { margin-bottom: 16px; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94svh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox img { max-width: 96vw; max-height: 88svh; width: auto; height: auto; margin-inline: auto; }
.lightbox__close {
  position: fixed; top: 14px; right: 14px; min-height: 44px; padding: 8px 14px;
  background: var(--noir); color: var(--ivoire); border: 1px solid var(--trait); font: inherit; cursor: pointer; border-radius: 2px;
}
.lightbox__caption { color: var(--cendre); text-align: center; padding-top: 10px; font-size: 0.95rem; }

/* ---------- Devis ---------- */
.quote { display: grid; gap: 40px; }
.quote__intro h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin-bottom: 16px; }
.quote__intro p { color: var(--cendre); max-width: 46ch; }
.quote__intro p + p { margin-top: 12px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field .opt { color: var(--cendre); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ivoire);
  background: var(--carbone); border: 1px solid var(--trait); border-radius: 2px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--or) 50%), linear-gradient(135deg, var(--or) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--or); outline: none; box-shadow: 0 0 0 1px var(--or); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d9826b; }
.field__error { color: #e9a08e; font-size: 0.9rem; min-height: 0; }
.field__error:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__note { color: var(--cendre); font-size: 0.92rem; }
.form__status { color: var(--or-clair); font-size: 0.95rem; }
.form__status:empty { display: none; }
@media (min-width: 900px) { .quote { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }

/* ---------- Contact ---------- */
.lines { display: grid; gap: 16px; }
@media (min-width: 760px) { .lines { grid-template-columns: 1fr 1fr; gap: 24px; } }
.line { border: 1px solid var(--trait); padding: 24px; display: grid; gap: 18px; }
.line__number { font-stretch: var(--wide); font-weight: 400; font-size: clamp(1.55rem, 5.4vw, 2.3rem); color: var(--ivoire); text-decoration: none; white-space: nowrap; line-height: 1.1; }
.line__number:hover { color: var(--or-clair); }
.line__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.line__actions .btn { flex: 1 1 140px; }
.contact-more { display: grid; gap: 8px; margin-top: 32px; color: var(--cendre); }
.contact-more a { font-size: 1.15rem; font-weight: 500; }
@media (min-width: 760px) { .contact-more { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid rgba(197, 160, 89, 0.18); padding-block: 40px 32px; color: var(--cendre); font-size: 0.95rem; }
.site-footer__inner { display: grid; gap: 20px; }
.site-footer .brand { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--cendre); }
.site-footer nav a:hover { color: var(--or-clair); }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } .site-footer nav { justify-content: center; } }

/* ---------- Barre de contact mobile ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--trait);
  border-top: 1px solid var(--or);
  padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 6px 8px; background: var(--or);
  color: var(--noir); text-decoration: none; font-weight: 650; font-size: 0.98rem; white-space: nowrap;
}
.quickbar a:active { background: var(--or-clair); }
.quickbar svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 360px) { .quickbar a { font-size: 0.88rem; gap: 6px; } .quickbar svg { width: 17px; height: 17px; } }
@media (min-width: 900px) { .quickbar { display: none; } }

/* ---------- Pages simples (mentions légales, 404) ---------- */
.page { padding-block: 56px var(--section); }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 32px; }
.page h2 { font-size: 1.35rem; font-weight: 400; margin: 40px 0 12px; color: var(--or-clair); }
.page p, .page li { color: #d6cfc0; max-width: 72ch; }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 1.2em; }
.page address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.header-back { min-height: 40px; padding: 8px 14px; white-space: nowrap; }
@media (max-width: 380px) { .brand__name { letter-spacing: 0.14em; font-size: 0.88rem; } }
