@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/jost.woff2) format('woff2'); }

/* Couleurs reprises du logo et de la carte de visite */
:root {
  --white: #ffffff;
  --paper: #f4f4f5;
  --light: #dcdddf;
  --grey: #939598;
  --text: #55535b;
  --ink: #2e2c33;
  --slate: #524f5a;
  --slate-dark: #403d47;
  --red: #d42028;
  --red-deep: #b41e3b;
  --line: rgba(46, 44, 51, .12);
  --font: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; font-weight: 400; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 span, h2 span { color: var(--red); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); position: relative; }
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--grey); margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--red); flex: none; }

/* Lignes de construction du logo, en décor */
.hero-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700' preserveAspectRatio='none'%3E%3Cg stroke='%23d4d5d8' stroke-width='1' fill='none'%3E%3Cpath d='M-50 120 1250 860M150 -40 1250 590M-50 520 900 -20M200 760 1250 160M-50 330 600 -40'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
.hero-lines--dark { opacity: .12; filter: invert(1); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.7rem; background: var(--red); color: #fff; border: 1.5px solid var(--red); font: 500 .85rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--light); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { padding: .75rem 1.1rem; font-size: .74rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); padding-top: env(safe-area-inset-top, 0px); transition: box-shadow .3s; }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(0,0,0,.04); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: block; line-height: 0; }
.logo { height: 54px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink); position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red); transition: right .3s; }
.nav a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Accueil (inspiré de la carte de visite) ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: 40px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 500; max-width: 13ch; }
.hero-lead { max-width: 520px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-phone { margin-top: 2rem; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--grey); }
.hero-phone a { display: block; margin-top: .2rem; font-size: 1.7rem; letter-spacing: .02em; color: var(--ink); text-decoration: none; text-transform: none; }
.hero-phone a:hover { color: var(--red); }
.hero-stack { display: grid; grid-template-rows: 1.25fr 1fr 1fr; gap: 14px; height: min(calc(100vh - var(--header-h) - 80px), 760px); min-height: 460px; }
.stack-item { margin: 0; overflow: hidden; background: var(--paper); }
.stack-item img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 16s ease-out both; }
@keyframes slowZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.stack-item .ph { min-height: 0; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 10vw, 140px); overflow: hidden; }
.section--paper { background: var(--paper); }
.section--slate { background: var(--slate); color: rgba(255,255,255,.78); }
.section--slate h2, .section--slate h3 { color: #fff; }
.section--slate .eyebrow { color: rgba(255,255,255,.6); }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-lead { font-size: 1.08rem; }

.ph { width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, var(--paper) 0%, var(--light) 100%); position: relative; }
.ph::after { content: 'Photo à venir'; position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--grey); }
.section--paper .ph { background: linear-gradient(135deg, #fff 0%, var(--light) 100%); }

/* Atelier */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.facts { list-style: none; padding: 1.8rem 0 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; border-top: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.45rem; font-weight: 500; line-height: 1.1; color: var(--red); }
.facts span { font-size: .88rem; line-height: 1.4; display: block; margin-top: .35rem; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(70px, 9vw, 120px); gap: 12px; }
.mosaic-item { margin: 0; overflow: hidden; background: var(--paper); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.m1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.m2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.m3 { grid-column: 5 / 7; grid-row: 3 / 6; }
.m4 { grid-column: 1 / 3; grid-row: 4 / 6; }
.m5 { grid-column: 3 / 5; grid-row: 4 / 6; }
.mosaic-item .ph { min-height: 0; }

/* Savoir-faire */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--white); text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; border-bottom: 3px solid transparent; }
.service:hover { box-shadow: 0 14px 40px rgba(46,44,51,.1); transform: translateY(-3px); border-bottom-color: var(--red); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.service:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.service-body p { font-size: .97rem; }
.service-link { margin-top: auto; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.service--cta { justify-content: center; background: var(--red-deep); }
.service--cta h3 { color: #fff; font-size: 1.7rem; }
.service--cta p { color: rgba(255,255,255,.85); }
.service--cta .service-link { color: #fff; }
.service--cta:hover { border-bottom-color: #fff; }

/* Méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); }
.steps li { border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.4rem; }
.step-n { font-size: 2.4rem; font-weight: 300; line-height: 1; color: #ff5a62; display: block; margin-bottom: 1rem; }
.steps p { font-size: .97rem; }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.filter { background: none; border: 1.5px solid var(--light); padding: .6rem 1.2rem; font: 500 .85rem/1 var(--font); letter-spacing: .06em; cursor: pointer; color: var(--ink); transition: all .25s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.filter small { font-size: .72rem; opacity: .6; margin-left: .2rem; }
.filter--star { border-color: var(--red); color: var(--red); }
.filter--star.is-active { color: #fff; }
.cat-intro { max-width: 760px; margin-bottom: 2.2rem; min-height: 3.3em; }
.cat-intro p { margin: 0; font-size: 1.08rem; }
.tag { display: inline-block; background: var(--red); color: #fff; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .6rem; margin-right: .4rem; vertical-align: .15em; }
.cta-band { margin-top: 3rem; padding: 1.6rem 2rem; background: var(--white); border-left: 4px solid var(--red); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-band p { margin: 0; flex: 1 1 420px; }
.cta-band strong { color: var(--ink); font-weight: 600; }
.gallery { columns: 3 300px; column-gap: 14px; }
.g-item { display: block; position: relative; margin-bottom: 14px; break-inside: avoid; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.g-item img { width: 100%; transition: transform .8s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-cap { position: absolute; inset: auto 0 0; padding: 2.4rem 1.1rem 1rem; color: #fff; font-size: 1.1rem; font-weight: 500; line-height: 1.25; background: linear-gradient(transparent, rgba(30,28,34,.7)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.g-cap small { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #ff8a90; margin-bottom: .3rem; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-item.is-hidden { display: none; }
.empty { font-style: italic; }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(16px, 2.5vw, 30px); }
.member { margin: 0; }
.member-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--light); }
.member-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.member:hover .member-img img { transform: scale(1.03); }
.member figcaption { margin-top: .8rem; font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.team-banner { margin: clamp(24px, 4vw, 40px) 0 0; position: relative; overflow: hidden; }
.team-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.team-banner figcaption { position: absolute; left: 0; bottom: 0; background: var(--slate); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: .7rem 1.1rem; }

/* Contact (repris de la carte) */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-info > p { max-width: 440px; }
.people { margin: 2.2rem 0 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.2rem; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; }
.people dt { color: var(--red); font-weight: 600; }
.people dd { margin: 0 0 .5rem; display: flex; flex-direction: column; }
.people-mail, .people-note { font-size: .95rem; line-height: 1.4; }
.people-note { color: var(--grey); }
.people .people-mail { color: var(--red); }
.people a { text-decoration: none; color: var(--text); }
.people a:hover { color: var(--red); }
.address { font-size: 1.1rem; }
.address a { color: var(--red); text-decoration: none; font-size: .95rem; }
.contact-form { background: var(--paper); padding: clamp(24px, 4vw, 48px); position: relative; border-top: 4px solid var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .4rem; color: var(--grey); }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--light); background: transparent; padding: .55rem 0; font: 400 1.02rem/1.5 var(--font); color: var(--ink); border-radius: 0; transition: border-color .25s; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23524f5a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right center; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.form-note { font-size: .84rem; color: var(--grey); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: .97rem; }
.notice--ok { background: #e4efe0; color: #2c4a1e; }
.notice--err { background: #f8dfe0; color: #8a1720; }

/* Pied de page (bandeau ardoise de la carte) */
.site-footer { background: var(--slate); color: rgba(255,255,255,.65); font-size: .88rem; padding-block: 2.6rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer-top { padding-bottom: 1.6rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-mail { color: #fff; font-size: clamp(1.3rem, 3vw, 2rem); text-decoration: none; }
.footer-mail:hover { color: #ffb3b6; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(36,34,40,.97); display: flex; align-items: center; justify-content: center; padding: 60px 70px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.lb-figure figcaption { color: #eee; margin-top: 1rem; font-size: 1.1rem; text-align: center; }
.lb-figure figcaption small { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #ff8a90; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 2.8rem/1 var(--font); width: 56px; height: 56px; opacity: .7; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stack-item img { animation: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
  .lightbox { display: none; }
}

/* Pages simples */
.page { padding-block: 60px 100px; max-width: 820px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.6rem; margin-top: 2.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 50px 60px; }
  .hero-stack { height: auto; min-height: 0; grid-template-rows: none; grid-template-columns: 2fr 1fr 1fr; aspect-ratio: 16 / 7; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--white); flex-direction: column; justify-content: center; gap: 1.6rem; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav a:not(.btn) { font-size: 1.8rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 620px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .logo { height: 42px; }
  .services, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .stack-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .stack-item { aspect-ratio: 4 / 3; }
  .mosaic { grid-auto-rows: 22vw; gap: 8px; }
  .gallery { columns: 2 140px; column-gap: 8px; }
  .g-item { margin-bottom: 8px; }
  .g-cap { display: none; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-prev { left: 30%; } .lb-next { right: 30%; }
}
