@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff") format("woff");
  font-weight: 400 800;
  font-stretch: 72% 100%;
  font-style: normal;
  font-display: swap;
}
/* PERRET SA — refonte (Créalution) */
:root {
  --steel: #22303a;
  --steel-2: #2e3e49;
  --steel-3: #3c4f5b;
  --paper: #f6f7f7;
  --zinc: #e7eaeb;
  --white: #ffffff;
  --line: #cfd5d8;
  --text: #1e272d;
  --muted: #55636b;
  --on-dark: #dfe5e8;
  --on-dark-muted: #a9b5bc;
  --orange: #e7792b;      /* orange du logo PERRET SA */
  --orange-hi: #f08a42;
  --rust: #a64d17;        /* orange foncé lisible sur fond clair */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); font-stretch: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--orange); color: var(--steel); padding: 8px 14px; font-weight: 700; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .display { font-stretch: 72%; font-weight: 800; line-height: 1.02; letter-spacing: -.005em; margin: 0 0 .45em; color: var(--steel); }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
strong { font-weight: 700; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.3em; font: 700 1rem/1 var(--font); font-stretch: 85%; text-decoration: none; border: 2px solid var(--orange); background: var(--orange); color: var(--steel); border-radius: 3px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--orange-hi); border-color: var(--orange-hi); }
.btn-line { background: transparent; color: var(--steel); border-color: var(--steel); }
.btn-line:hover { background: var(--steel); color: var(--white); border-color: var(--steel); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* En-tête */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { flex: none; }
.logo img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.menu { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a, .sub-toggle { display: block; padding: 10px 14px; font: 600 1rem/1.2 var(--font); font-stretch: 88%; color: var(--steel); text-decoration: none; background: none; border: 0; cursor: pointer; }
.menu a:hover, .sub-toggle:hover { color: var(--rust); }
.menu a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: var(--rust); box-shadow: inset 0 -3px 0 var(--orange); }
.sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); box-shadow: 0 14px 28px rgba(34,48,58,.14); display: none; }
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 1001px) { .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; } }
.sub a { padding: 10px 18px; font-weight: 500; }
.call { margin-left: 8px; padding: .7em 1em; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; width: 26px; height: 3px; background: var(--steel); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--white); overflow-y: auto; display: none; margin: 0; padding: 12px var(--gutter) 40px; }
  body.nav-open .nav { display: block; }
  body.nav-open { overflow: hidden; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu a, .sub-toggle { padding: 15px 4px; font-size: 1.2rem; width: 100%; text-align: left; border-bottom: 1px solid var(--zinc); }
  .menu a[aria-current="page"], .has-sub.is-active > .sub-toggle { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  .sub { position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .call-li { margin-top: 18px; }
  .call { margin: 0; justify-content: center; width: 100%; }
  body.nav-open .menu-toggle span:nth-child(2) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(3) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
}

/* Haut de page (accueil et pages intérieures) : photo toujours entière */
.top { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.top.no-photo .wrap { grid-template-columns: 1fr; }
.top figure { margin: 0; }
.top figure img { width: 100%; height: auto; border-radius: 3px; }
.top figcaption, .figure-note { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.crumbs { font-size: .95rem; margin: 0 0 18px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.home-top h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
@media (max-width: 860px) { .top .wrap { grid-template-columns: 1fr; } }

/* Bandeau d'infos pratiques */
.rail { background: var(--steel); color: var(--on-dark); }
.rail .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rail-item { padding: 22px 24px 22px 0; display: flex; gap: 14px; align-items: flex-start; }
.rail-item + .rail-item { padding-left: 24px; border-left: 1px solid var(--steel-3); }
.rail-item svg { width: 26px; height: 26px; flex: none; color: var(--orange); margin-top: 2px; }
.rail-item b { display: block; color: var(--white); font-stretch: 85%; font-size: 1.1rem; }
.rail-item span, .rail-item a { color: var(--on-dark-muted); font-size: .98rem; }
.rail-item a { color: var(--on-dark); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-dark-muted); }
.status.is-open::before { background: #5cc87a; }
.status.is-closed::before { background: var(--orange); }
@media (max-width: 860px) {
  .rail .wrap { grid-template-columns: 1fr; }
  .rail-item { padding: 18px 0; }
  .rail-item + .rail-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--steel-3); }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.zinc { background: var(--zinc); }
.section.white { background: var(--white); }
.section.dark { background: var(--steel); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark p { color: var(--on-dark); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: baseline; margin-bottom: 44px; }
.head h2 { margin: 0; }
.head p { margin: 0; color: var(--muted); }
.section.dark .head p { color: var(--on-dark-muted); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Liste des services (accueil) */
.services { border-top: 2px solid var(--steel); }
.service { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 18px 40px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.service h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0; transition: color .15s; }
.service p { margin: 0; color: var(--muted); }
.service .go { font-weight: 700; font-stretch: 85%; color: var(--rust); white-space: nowrap; }
.service:hover h3 { color: var(--rust); }
.service:hover .go { text-decoration: underline; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 8px; } }

/* Colonnes de texte et listes */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cols, .cols-3 { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); position: relative; }
.list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 3px; background: var(--orange); }
.section.dark .list, .section.dark .list li { border-color: var(--steel-3); }
.block h3 { margin-bottom: 14px; }
.note { border-left: 4px solid var(--orange); background: var(--white); padding: 16px 20px; margin: 28px 0 0; max-width: none; }
.zinc .note, .section.white .note { background: var(--paper); }

/* Photos : jamais recadrées (colonnes, hauteur naturelle) */
.photos { columns: 3 260px; column-gap: 16px; }
.photos.two { columns: 2 280px; }
.photos figure { margin: 0 0 16px; break-inside: avoid; }
.photos a { display: block; }
.photos img { width: 100%; height: auto; border-radius: 3px; }
.photos figcaption { font-size: .92rem; color: var(--muted); padding-top: 8px; }
.section.dark .photos figcaption { color: var(--on-dark-muted); }

/* Références */
.refs { columns: 3 300px; column-gap: 24px; }
.ref { break-inside: avoid; margin: 0 0 28px; }
.ref .ref-imgs { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ref .ref-imgs a:first-child { grid-column: 1 / -1; }
.ref img { width: 100%; height: auto; border-radius: 3px; }
.ref h3 { margin: 12px 0 2px; }
.ref p { margin: 0; color: var(--muted); font-size: .98rem; }
.ref-list { columns: 2 280px; column-gap: 48px; }
.ref-list li { break-inside: avoid; }

/* Métaux */
.metals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--steel); border-left: 1px solid var(--line); }
.metal { padding: 24px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.metal h3 { font-size: 1.7rem; margin: 0 0 6px; }
.metal .sym { display: block; font-stretch: 72%; font-weight: 800; font-size: 1rem; color: var(--rust); margin-bottom: 14px; }
.metal p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .metals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .metals { grid-template-columns: 1fr; } }

/* Bennes à l'échelle */
.scale { background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.scale svg { width: 100%; height: auto; display: block; }
.scale-ground { stroke: var(--steel); stroke-width: 2; }
.benne-shape { fill: var(--orange); stroke: #9c4e15; stroke-width: 1.2; stroke-linejoin: round; }
.benne-shape.ghost { fill: #f6d3b9; stroke: #d39a70; }
.benne-detail { fill: none; stroke: #9c4e15; stroke-width: 1.2; }
.person { fill: var(--steel-3); }
.scale-label { font: 800 15px var(--font); font-stretch: 75%; fill: var(--steel); }
.scale-sub { font: 500 12px var(--font); fill: var(--muted); }
.scale-caption { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); margin: 0; max-width: none; }

.picker { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); border-radius: 3px; }
.picker-list { border-right: 1px solid var(--line); max-height: 640px; overflow-y: auto; }
.picker-group { margin: 0; padding: 14px 18px 6px; font: 800 1rem var(--font); font-stretch: 75%; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.picker-list button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--zinc); background: none; font: 500 1rem var(--font); color: var(--text); text-align: left; cursor: pointer; }
.picker-list button b { font-stretch: 75%; font-size: 1.3rem; font-weight: 800; color: var(--steel); }
.picker-list button:hover { background: var(--paper); }
.picker-list button[aria-pressed="true"] { background: #fdf0e6; box-shadow: inset 4px 0 0 var(--orange); }
.picker-view { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.picker-view h3 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0; }
.picker-view .stage { border: 1px solid var(--zinc); border-radius: 3px; background: var(--paper); }
.picker-view .stage svg { width: 100%; height: auto; display: block; }
.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.dims div { padding: 12px 14px 4px 0; }
.dims dt { font-size: .9rem; color: var(--muted); }
.dims dd { margin: 0; font-stretch: 75%; font-weight: 800; font-size: 1.45rem; color: var(--steel); }
.picker-view p { margin: 0; color: var(--muted); }
@media (max-width: 820px) {
  .picker { grid-template-columns: 1fr; }
  .picker-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 300px; }
  .dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 560px; }
caption { text-align: left; padding: 14px 16px; font: 800 1.2rem var(--font); font-stretch: 75%; color: var(--steel); border-bottom: 2px solid var(--steel); }
th, td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--zinc); font-variant-numeric: tabular-nums; }
th { font-weight: 600; color: var(--muted); font-size: .9rem; }
td:first-child { font-weight: 700; color: var(--steel); }
.tables { display: grid; gap: 28px; }

/* Accès camion */
.access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--steel); }
.access div { padding: 20px 24px 8px 0; }
.access div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.access b { display: block; font-stretch: 72%; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--steel); line-height: 1; margin-bottom: 8px; }
.access span { color: var(--muted); }
@media (max-width: 760px) { .access { grid-template-columns: 1fr; } .access div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Historique (vraie chronologie) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--orange); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; background: var(--white); border: 3px solid var(--orange); border-radius: 50%; }
.timeline time { display: block; font-stretch: 72%; font-weight: 800; font-size: 1.7rem; line-height: 1.1; color: var(--steel); }
.timeline p { margin: 4px 0 0; }
.timeline li:last-child { padding-bottom: 0; }

/* Documents ISO */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--text); }
.doc img { width: 92px; height: auto; border: 1px solid var(--line); }
.doc b { display: block; font-stretch: 78%; font-weight: 800; font-size: 1.25rem; color: var(--steel); line-height: 1.15; }
.doc span { display: block; font-size: .93rem; color: var(--muted); margin-top: 4px; }
.doc em { display: block; font-style: normal; font-weight: 700; color: var(--rust); margin-top: 8px; font-size: .95rem; }
.doc:hover { border-color: var(--orange); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } }

/* Appel à l'action */
.cta { background: var(--orange); color: var(--steel); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { margin: 0 0 .2em; }
.cta p { margin: 0; color: var(--steel); }
.cta .btn { background: var(--steel); color: var(--white); border-color: var(--steel); }
.cta .btn:hover { background: var(--steel-2); border-color: var(--steel-2); }
.cta .btn-line { background: transparent; color: var(--steel); }
.cta .btn-line:hover { background: var(--steel); color: var(--white); }
.cta .actions { margin: 0; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.facts { margin: 0; border-top: 2px solid var(--steel); }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--steel); }
.facts dd { margin: 0; }
.people { margin-top: 44px; }
.people h3 { font-size: 1.1rem; font-stretch: 85%; color: var(--muted); font-weight: 700; margin: 22px 0 6px; }
.person-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--zinc); flex-wrap: wrap; }
.form { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: clamp(22px, 4vw, 36px); border-radius: 3px; }
.form h2 { font-size: 2rem; }
.form label { display: block; font-weight: 600; margin-bottom: 16px; color: var(--steel); }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--text); background: var(--paper); border: 1px solid #b9c2c7; border-radius: 3px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form .hp { position: absolute; left: -9999px; }
.form-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-msg.ok { color: #1f7a3a; }
.form-msg.err { color: #a32a12; }
.map { border-top: 1px solid var(--line); background: var(--zinc); }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* Pied de page */
.site-footer { background: var(--steel); color: var(--on-dark-muted); padding: 64px 0 0; font-size: .97rem; }
.site-footer h2 { font-size: 1.15rem; color: var(--white); margin-bottom: 12px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer p { margin: 0 0 .8em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-logo { background: var(--white); padding: 8px 12px; border-radius: 3px; height: 54px; width: auto; margin-bottom: 18px; }
.f-brand p { max-width: 34ch; }
.f-actions { margin-top: 6px !important; }
.f-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--white) !important; }
.f-link svg { width: 17px; height: 17px; color: var(--orange); flex: none; }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--steel-3); padding-top: 18px; padding-bottom: 22px; font-size: .88rem; display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .f-brand, .f-contact { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding-top: 40px; font-size: .93rem; }
  .footer-grid { gap: 28px 16px; }
  .f-brand { order: -2; }
  .f-brand p { font-size: .9rem; }
  .footer-logo { height: 46px; margin-bottom: 12px; }
  .f-contact { order: -1; padding-bottom: 24px; border-bottom: 1px solid var(--steel-3); }
  .f-col h2 { font-size: 1.05rem; margin-bottom: 8px; }
  .f-col li { padding: 3px 0; line-height: 1.35; }
  .footer-bottom { margin-top: 28px; font-size: .8rem; }
}

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,28,34,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 112px); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; padding: 10px 14px; cursor: pointer; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* Apparition unique de l'accueil */
@media (prefers-reduced-motion: no-preference) {
  .home-top h1, .home-top .lead, .home-top .actions { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .home-top .lead { animation-delay: .08s; }
  .home-top .actions { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Correctifs */
.menu a.btn { display: inline-flex; color: var(--steel); padding: .7em 1em; box-shadow: none; }
.menu a.btn:hover { color: var(--steel); }
.rail-item b a { color: var(--white); text-decoration: none; }
.rail-item b a:hover { text-decoration: underline; }
.lineup .scale-label { font-size: 21px; }
.lineup .scale-sub { font-size: 16px; }
.stage-svg .scale-sub { font-size: 20px; }
.stage-svg .scale-label { font-size: 24px; }

/* Galeries en rangées alignées : chaque photo garde ses proportions, chaque rangée remplit la largeur */
.photos, .photos.two { columns: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.photos figure { margin: 0; flex: var(--ar, 1.33) 1 calc(var(--ar, 1.33) * 230px); min-width: 0; }
.photos.two figure { flex-basis: calc(var(--ar, 1.33) * 340px); }
.photos::after { content: ""; flex: 6 1 0; }
.refs { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 40px 28px; align-items: start; }
.ref { margin: 0; }
.ref .ref-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.ref .ref-imgs a { flex: var(--ar, 1.33) 1 calc(var(--ar, 1.33) * 110px); min-width: 0; }
.ref .ref-imgs a:first-child { flex-basis: 100%; }
@media (max-width: 420px) { .refs { grid-template-columns: 1fr; } }
.photos.is-justified figure { flex: none; }
.photos.is-justified::after { display: none; }
.map-canvas { height: 420px; width: 100%; background: var(--zinc); }
.map-pin { background: none; border: 0; }
.map-canvas { position: relative; isolation: isolate; z-index: 0; }
.photos figcaption b { color: var(--steel); font-stretch: 80%; font-size: 1.15rem; }
.section.dark .photos figcaption b { color: var(--white); }
.photos .count { color: var(--rust); font-weight: 600; font-size: .9rem; }
.refs-grid { gap: 28px 14px; }

/* Services alignés sur les colonnes de l'en-tête de section */
.service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 64px; grid-template-areas: "t p" "t go"; align-items: baseline; }
.service h3 { grid-area: t; }
.service p { grid-area: p; }
.service .go { grid-area: go; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; grid-template-areas: "t" "p" "go"; } }

/* Mentions légales (même présentation qu'Anilia, aux couleurs PERRET SA) */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 104px; }
.legal-toc-title { font-stretch: 75%; font-weight: 800; font-size: 1.25rem; color: var(--steel); margin: 0 0 8px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-top: 2px solid var(--steel); }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: flex; gap: 14px; padding: 10px 0; text-decoration: none; color: var(--muted); font-size: .97rem; border-bottom: 1px solid var(--line); }
.legal-toc a::before { content: counter(t, decimal-leading-zero); color: var(--rust); font-weight: 800; font-stretch: 75%; min-width: 1.4em; }
.legal-toc a:hover { color: var(--steel); }
.legal-sec { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legal-sec:first-child { padding-top: 0; }
.legal-sec .num { font-stretch: 72%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--orange); }
.legal-sec h2 { font-size: 1.85rem; }
.legal-sec p { max-width: 70ch; }
.legal-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0; }
.legal-card div { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 3px; padding: 18px 20px; }
.legal-card dt { font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.legal-card dd { margin: 0; line-height: 1.55; color: var(--text); }
.legal-date { margin-top: 28px; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .legal-sec { grid-template-columns: 1fr; }
  .legal-sec .num { font-size: 1.8rem; }
}

/* ---------- Animations (seulement si l'appareil ne demande pas de réduire les mouvements) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Apparition légère, une seule fois */
  html.anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  html.anim .reveal.is-in { opacity: 1; transform: none; }

  /* Accueil : les bennes se posent l'une après l'autre */
  html.anim .lineup .drop { opacity: 0; }
  html.anim .lineup.is-in .drop { animation: drop-in .5s ease-out both; animation-delay: calc(var(--i) * .22s + .15s); }
  html.anim .lineup.is-in .drop-body { transform-box: fill-box; transform-origin: 50% 100%; animation: land .5s ease-out both; animation-delay: calc(var(--i) * .22s + .15s); }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-46px); } 70% { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: none; } }
  @keyframes land { 0%, 68% { transform: none; } 80% { transform: scale(1.03, .94); } 100% { transform: none; } }

  /* Comparateur : la benne grandit ou rétrécit depuis la taille précédente */
  .benne-g.morph { transform-box: fill-box; transform-origin: 0 100%; animation: morph .45s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes morph { from { transform: scale(var(--sx, .85), var(--sy, .85)); } to { transform: none; } }
}

/* Histoire en trois lieux : barre proportionnelle aux années */
.eras { display: flex; gap: 4px; margin: 8px 0 0; }
.era-bar { flex: var(--y) 1 0; height: 14px; background: var(--steel-3); position: relative; border-radius: 2px; }
.era-bar.now { background: var(--orange); }
.era-bar span { position: absolute; top: 22px; left: 0; font: 800 1.05rem/1 var(--font); font-stretch: 75%; color: var(--steel); }
.era-bar .era-end { left: auto; right: 0; color: var(--rust); }
.era-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.era { border-top: 2px solid var(--steel); padding-top: 22px; }
.era:last-child { border-top-color: var(--orange); }
.era h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.era-span { color: var(--muted); margin: 4px 0 18px; }
.era-events { list-style: none; margin: 0; padding: 0; }
.era-events li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.era-events time { font-stretch: 72%; font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: var(--steel); }
.era-events p { margin: 0; }
@media (max-width: 860px) {
  .era-cols { grid-template-columns: 1fr; gap: 32px; margin-top: 52px; }
  .era-bar span { font-size: .9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html.anim .eras .era-bar { transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
  html.anim .eras .era-bar span { opacity: 0; transition: opacity .3s ease; }
  html.anim .eras.is-in .era-bar { transform: none; }
  html.anim .eras.is-in .era-bar span { opacity: 1; }
  html.anim .eras.is-in .era-bar:nth-child(1) { transition-delay: .1s; } html.anim .eras.is-in .era-bar:nth-child(1) span { transition-delay: .5s; }
  html.anim .eras.is-in .era-bar:nth-child(2) { transition-delay: .55s; } html.anim .eras.is-in .era-bar:nth-child(2) span { transition-delay: .95s; }
  html.anim .eras.is-in .era-bar:nth-child(3) { transition-delay: 1s; } html.anim .eras.is-in .era-bar:nth-child(3) span { transition-delay: 1.5s; }
}

/* Crédit Créalution : la ligne de base du logo est alignée sur celle du texte
   (le logo descend de 18/108 de sa hauteur sous sa ligne de base). */
.f-credit { display: inline; white-space: nowrap; color: var(--on-dark-muted) !important; }
.f-credit img { display: inline-block; height: 1.15em; width: auto; vertical-align: -0.1917em; margin-left: .45em; opacity: .85; transition: opacity .15s; }
.f-credit:hover { text-decoration: none !important; }
.f-credit:hover img { opacity: 1; }
.footer-bottom { align-items: baseline; }
