/* Palette : cendre, rouille, signal radioactif */
:root {
  --cendre: #121110;
  --beton: #1d1b19;
  --plaque: #2a2622;
  --os: #e8e0d2;
  --poussiere: #a39a8a;
  --rouille: #c4572a;
  --rouille-sombre: #7a3417;
  --signal: #d7e34a;
  --titre: "Big Shoulders Stencil Display", "Arial Narrow", sans-serif;
  --machine: "Space Mono", "Courier New", monospace;
  --texte: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  background: var(--cendre);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(196,87,42,.18), transparent 60%),
    radial-gradient(ellipse at 90% 60%, rgba(215,227,74,.05), transparent 50%);
  color: var(--os);
  font: 400 1.25rem/1.5 var(--texte);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

.noise { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .09; pointer-events: none; z-index: 100; mix-blend-mode: overlay; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(18,17,16,.88); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(196,87,42,.35);
}
.logo { font-family: var(--titre); font-size: 1.35rem; text-decoration: none; letter-spacing: .04em; }
.menu { display: flex; gap: 1.8rem; align-items: center; }
.menu a { font-family: var(--machine); text-decoration: none; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.menu a:hover { color: var(--signal); }
.btn-mini { border: 1px solid var(--rouille); padding: .35rem .8rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 26px; height: 2px; background: var(--os); margin: 6px 0; transition: .3s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; cursor: pointer;
  font: 1rem var(--machine); text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  color: var(--cendre); background: var(--rouille);
  padding: .85rem 1.5rem; border: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 94% 100%, 0 100%);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--signal); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--os); outline: 1px solid var(--poussiere); outline-offset: -1px; }
.btn-ghost:hover { color: var(--cendre); }
.btn[aria-disabled="true"] { background: var(--plaque); color: var(--poussiere); pointer-events: none; }

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 92vh; display: grid; align-items: center; padding: 4rem clamp(1rem, 6vw, 5rem) 6rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,17,16,.3), var(--cendre) 95%),
    url("images/accueil.jpg") center/cover,
    repeating-linear-gradient(115deg, #1a1816 0 22px, #201d1a 22px 44px);
  filter: sepia(.35) contrast(1.1);
}
.tag { font-family: var(--machine); color: var(--signal); font-size: .95rem; margin-bottom: 1rem; }
.hero h1 { font-family: var(--titre); font-weight: 400; font-size: clamp(3rem, 11vw, 8.5rem); line-height: .9; text-shadow: 4px 4px 0 var(--rouille-sombre); }
.accroche { font-family: var(--machine); font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--poussiere); max-width: 38ch; margin: 1.5rem 0 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.glitch::before { color: var(--rouille); animation: glitch 6s infinite steps(1); }
.glitch::after { color: var(--signal); animation: glitch 6s infinite steps(1) reverse; }
@keyframes glitch {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: .8; transform: translate(-4px, 2px); clip-path: inset(20% 0 55% 0); }
  95% { opacity: .8; transform: translate(4px, -2px); clip-path: inset(60% 0 10% 0); }
  97% { opacity: 0; }
}

.hazard { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(-45deg, var(--signal) 0 18px, var(--cendre) 18px 36px); opacity: .85; }

/* ---------- Sections ---------- */
.bloc { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 6vw, 5rem); position: relative; }
.bloc-sombre { background: var(--beton); border-block: 1px dashed rgba(163,154,138,.25); }
h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(1.8rem, 5vw, 3.2rem); margin-bottom: 2.5rem; line-height: 1.05; }
h2 .num { font-family: var(--machine); font-size: .45em; color: var(--rouille); vertical-align: middle; margin-right: .4rem; }
h3 { font-family: var(--titre); font-weight: 400; font-size: 1.4rem; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; }

.carte { background: var(--plaque); position: relative; border: 1px solid rgba(163,154,138,.18); transition: transform .3s, border-color .3s; }
.carte:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--rouille); }
.carte .media { aspect-ratio: 4/5; overflow: hidden; cursor: zoom-in; position: relative; background: #0d0c0b; }
.carte .media img, .carte .media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .5s, filter .5s; }
.carte:hover .media img { transform: scale(1.05); filter: saturate(1.05); }
.carte .info { padding: 1rem 1.1rem 1.2rem; }
.carte .meta { font-family: var(--machine); font-size: .85rem; color: var(--poussiere); }
.carte .prix { font-family: var(--titre); color: var(--signal); font-size: 1.5rem; margin: .4rem 0 .8rem; }
.carte .badge-video { position: absolute; top: .7rem; left: .7rem; font: .75rem var(--machine); background: var(--rouille); color: var(--cendre); padding: .2rem .5rem; }
.carte .vendu {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  font-family: var(--titre); font-size: 2.4rem; color: var(--rouille);
  border: 4px solid var(--rouille); padding: .1rem 1rem; opacity: .9; pointer-events: none;
}
.carte.est-vendue .media img { filter: grayscale(1) brightness(.6); }

/* Emplacement photo manquante */
.manque {
  width: 100%; height: 100%; display: grid; place-content: center; text-align: center; gap: .4rem; padding: 1rem;
  font-family: var(--machine); font-size: .85rem; color: var(--poussiere);
  background: repeating-linear-gradient(45deg, #1a1816 0 12px, #1f1c19 12px 24px);
  border: 2px dashed var(--rouille-sombre);
}
.manque strong { color: var(--signal); font-size: 1rem; }

.plaque { background: var(--plaque); padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid rgba(163,154,138,.2); box-shadow: inset 0 0 60px rgba(0,0,0,.45); }
.sur-mesure { margin-top: 3rem; display: grid; gap: 1rem; max-width: 760px; }
.sur-mesure .btn { justify-self: start; }

/* ---------- À propos ---------- */
.apropos { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.cadre { aspect-ratio: 4/5; background: var(--plaque); border: 6px solid var(--plaque); outline: 1px solid var(--rouille); transform: rotate(-2deg); overflow: hidden; }
.cadre img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25); }
.presentation { font-size: 1.3rem; max-width: 60ch; }
.lieu { font-family: var(--machine); color: var(--poussiere); margin: 1rem 0 1.5rem; }
.reseaux { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.form { max-width: 720px; display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-family: var(--machine); text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; color: var(--poussiere); }
.form input, .form select, .form textarea {
  font: 1.1rem var(--texte); color: var(--os); background: var(--cendre);
  border: 1px solid #4a433b; padding: .75rem .9rem; border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form-etat { font-family: var(--machine); color: var(--signal); min-height: 1.5em; }
.piege { position: absolute; left: -9999px; }

/* ---------- Pied ---------- */
.pied { position: relative; padding: 2.5rem 1rem 3rem; text-align: center; font-family: var(--machine); font-size: .9rem; color: var(--poussiere); background: #0c0b0a; }
.pied .hazard { top: 0; bottom: auto; height: 8px; }

/* ---------- Visionneuse ---------- */
.visionneuse { position: fixed; inset: 0; z-index: 200; background: rgba(8,7,6,.95); display: grid; place-items: center; padding: 3rem 1rem 1rem; }
.visionneuse[hidden] { display: none; }
.visionneuse-media img, .visionneuse-media video { max-height: 80vh; max-width: 92vw; object-fit: contain; border: 1px solid var(--rouille); }
.visionneuse-legende { font-family: var(--machine); color: var(--poussiere); margin-top: 1rem; text-align: center; }
.fermer { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.8rem; background: none; border: 0; color: var(--os); cursor: pointer; }

/* ---------- Apparition au défilement ---------- */
.revele { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.revele.vu { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .burger { display: block; }
  .menu {
    position: fixed; top: 3.6rem; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cendre); border-bottom: 2px solid var(--rouille);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .menu a { padding: 1.1rem; width: 100%; text-align: center; border-top: 1px solid #2a2622; }
  .menu.ouvert { transform: none; }
  .btn-mini { border: 0; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .apropos { grid-template-columns: 1fr; }
  .cadre { max-width: 300px; }
  .hero { min-height: 85vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; }
}

/* ===== Duo « pochoir et poésie » + titre travaillé ===== */
:root {
  --ero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='5' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 -3.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --ero-leg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='5' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 -2.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 14 0 0 0 -3.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
h2, h3, .logo { text-transform: uppercase; }
h2 { font-weight: 800; letter-spacing: .01em; -webkit-mask: var(--ero-leg) 0 0/700px; mask: var(--ero-leg) 0 0/700px; }
h3 { font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }
.carte .prix { font-weight: 800; }
.logo { font-weight: 900; font-size: 1.6rem; }
.logo em { font: italic 500 1.35rem var(--texte); color: var(--rouille); text-transform: none; margin: 0 .15em 0 .1em; }
.menu a, .btn, .form label, .tag, .carte .meta, .lieu, .pied, .visionneuse-legende, .manque { font-family: var(--machine); }
.menu a { font-size: .78rem; }
.btn { font-size: .82rem; font-weight: 700; }
.carte .meta { font-size: .75rem; letter-spacing: .04em; }
.form label { font-size: .75rem; }
.accroche { font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #cfc3ae; max-width: 32ch; line-height: 1.3; }
.presentation { font-size: 1.45rem; font-style: italic; line-height: 1.4; }
.tag { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; }

.titre { position: relative; display: inline-block; margin: 0; font-weight: 400; line-height: .8; }
.titre .sarah {
  display: block; font: 900 clamp(5.4rem, 21vw, 16.5rem)/.8 var(--titre); text-transform: uppercase; letter-spacing: -.01em;
  background: linear-gradient(175deg, #f4ecdd 0%, #d9cdb8 45%, #b9a88e 62%, #e8dcc8 70%, #a8927a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask: var(--ero) 0 0/700px, var(--grain) 0 0/300px; -webkit-mask-composite: source-in;
  mask: var(--ero) 0 0/700px, var(--grain) 0 0/300px; mask-composite: intersect;
}
.titre .sarah.ombre { position: absolute; inset: 0 auto auto 0; background: none; color: var(--rouille); opacity: .55; transform: translate(7px, 6px); }
.titre .sous { display: flex; align-items: baseline; justify-content: flex-end; gap: .3em; margin-top: -.32em; position: relative; }
.titre .cvl { font: italic 500 clamp(4.2rem, 13vw, 10.5rem)/.8 var(--texte); color: var(--rouille); text-shadow: 0 0 30px rgba(196,87,42,.35); }
.titre .art { font: 300 clamp(2.4rem, 7vw, 5.8rem)/1 var(--titre); text-transform: uppercase; letter-spacing: .42em; margin-right: -.42em; color: transparent; -webkit-text-stroke: 1.5px var(--os); }
.hero .accroche { margin-top: 1.8rem; }
.titre, .titre * { text-shadow: none; }
.titre .cvl { text-shadow: 0 0 30px rgba(196,87,42,.35); }
.accroche { font-family: var(--texte); }
@media (max-width: 760px) {
  .titre .sarah { font-size: 29vw; }
  .titre .cvl { font-size: 18vw; }
  .titre .art { font-size: 9.5vw; }
}
.titre .sarah.ombre { transform: translate(.028em, .022em); }
@media (max-width: 760px) { .hero { min-height: 72vh; } }
/* CVL et ART identiques : pochoir fin en contour, espacé */
.titre .sous { gap: .9em; margin-top: .12em; justify-content: flex-end; }
.titre .art + .art { margin-left: 0; }
@media (max-width: 760px) { .titre .sous { gap: .6em; } }
.titre .sous, .titre .sous { gap: .5em; }
/* Accueil remonté : plus de vide au-dessus du titre */
.hero { min-height: 0; align-items: start; padding-top: clamp(1.5rem, 5vh, 3rem); padding-bottom: clamp(4rem, 9vh, 6rem); }
@media (max-width: 760px) { .hero { min-height: 0; } }

/* ===== Rubans abîmés (séparateurs) ===== */
:root {
  --dechire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='60' preserveAspectRatio='none'%3E%3Cfilter id='d' x='0' y='-50%25' width='100%25' height='200%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .12' numOctaves='4' seed='2'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='11' yChannelSelector='R' xChannelSelector='G'/%3E%3C/filter%3E%3Crect x='-20' y='9' width='740' height='42' fill='%23000' filter='url(%23d)'/%3E%3C/svg%3E");
  --usure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='u'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .07' numOctaves='5' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13 0 0 0 -3.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23u)'/%3E%3C/svg%3E");
  --crasse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='4' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .16 0 0 0 0 .06 1.8 0 0 0 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
}
.ruban { position: relative; z-index: 5; height: 0; pointer-events: none; }
.ruban-in {
  position: absolute; left: -4%; right: -4%; top: -26px; height: 52px;
  transform: rotate(-1.4deg);
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  -webkit-mask: var(--dechire) 0 0/700px 100% repeat-x, var(--usure) 0 0/500px; -webkit-mask-composite: source-in;
  mask: var(--dechire) 0 0/700px 100% repeat-x, var(--usure) 0 0/500px; mask-composite: intersect;
}
.ruban::after { /* ombre portée sous le ruban */
  content: ""; position: absolute; left: -4%; right: -4%; top: -6px; height: 22px; transform: rotate(-1.4deg);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%); filter: blur(6px); z-index: -1;
}
/* plis + saleté par-dessus les couleurs */
.ruban-in::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    var(--crasse) 0 0/400px 100%,
    linear-gradient(90deg, transparent 0 7%, rgba(0,0,0,.28) 8%, transparent 10% 23%, rgba(255,255,255,.18) 24%, transparent 26% 41%, rgba(0,0,0,.32) 42.5%, transparent 44% 63%, rgba(255,255,255,.15) 64%, transparent 66% 82%, rgba(0,0,0,.25) 83%, transparent 85%),
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 30% 70%, rgba(0,0,0,.35));
  mix-blend-mode: multiply;
}
.ruban-police .ruban-in { background: #e6c62e; }
.ruban-police span {
  font: 800 22px/1 var(--titre); letter-spacing: .14em; color: #141210; padding-left: 2rem;
  border-block: 3px solid #141210; padding-block: 6px;
}
.ruban-danger .ruban-in { height: 30px; top: -15px; background: repeating-linear-gradient(-45deg, #dccb2f 0 22px, #24201c 22px 44px); transform: rotate(.8deg); }
.ruban-danger::after { transform: rotate(.8deg); top: -2px; height: 14px; }
.ruban-inverse .ruban-in { transform: rotate(-.7deg); }
.ruban-inverse::after { transform: rotate(-.7deg); }
.hero, .bloc { overflow: visible; }
.hero { overflow: clip; }
body { overflow-x: clip; }

/* ===== Publications Instagram intégrées ===== */
.carte-insta .media { aspect-ratio: auto; cursor: default; background: #0d0c0b; padding: 10px; }
.carte-insta:hover { transform: none; }
.insta { position: relative; min-height: 360px; }
.insta iframe { position: relative; z-index: 1; display: block; width: 100%; min-height: 360px; border: 0; background: transparent; border-radius: 3px; }
.insta-secours {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .4rem; text-align: center; text-decoration: none;
  font-family: var(--machine); font-size: .85rem; color: var(--poussiere);
  background: repeating-linear-gradient(45deg, #1a1816 0 12px, #1f1c19 12px 24px); border: 2px dashed var(--rouille-sombre);
}
.insta-secours strong { color: var(--signal); }
.grille-videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; }
#grille-oeuvres { align-items: start; }

/* ===== Ambiance colorée visible aussi sur mobile =====
   Le dégradé du body s'étirait sur toute la hauteur de la page (très longue sur téléphone)
   et devenait invisible : on le fixe à l'écran et chaque section a sa propre lueur. */
body { background-image: none; background-color: var(--cendre); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vmax 55vmax at 10% 0%, rgba(196,87,42,.26), transparent 70%),
    radial-gradient(60vmax 45vmax at 100% 90%, rgba(215,227,74,.08), transparent 70%),
    radial-gradient(50vmax 50vmax at 70% 40%, rgba(122,52,23,.14), transparent 70%);
}
.bloc {
  background-image:
    radial-gradient(min(900px, 120vw) min(520px, 80vw) at 0% 0%, rgba(196,87,42,.20), transparent 70%),
    radial-gradient(min(700px, 100vw) min(420px, 70vw) at 100% 100%, rgba(215,227,74,.06), transparent 70%);
}
.bloc-sombre {
  background-color: #1b1917;
  background-image:
    radial-gradient(min(800px, 110vw) min(480px, 75vw) at 100% 0%, rgba(196,87,42,.26), transparent 70%),
    radial-gradient(min(700px, 100vw) min(420px, 70vw) at 0% 100%, rgba(122,52,23,.32), transparent 70%);
}
.hero-bg {
  background:
    radial-gradient(min(900px, 140vw) min(600px, 100vw) at 85% 30%, rgba(196,87,42,.28), transparent 70%),
    linear-gradient(180deg, rgba(18,17,16,.2), var(--cendre) 98%),
    url("images/accueil.jpg") center/cover,
    repeating-linear-gradient(115deg, #1a1816 0 22px, #201d1a 22px 44px);
}
