/* =========================================================
   BROAD[BAND] architecture · feuille de styles
   Design tokens
   ========================================================= */
:root {
  --bg:        #f4f2ec;   /* off-white / pierre */
  --surface:   #ffffff;
  --alt:       #ebe8e0;   /* fond alterné */
  --ink:       #15140f;   /* noir chaud */
  --ink-soft:  #3a3833;
  --muted:     #6f6b61;   /* gris chaud */
  --line:      #d8d4c8;   /* filets */
  --accent:    #a8552f;   /* terre cuite, usage parcimonieux */

  --font-display: 'Century Gothic', 'Jost', 'URW Gothic', 'Questrial', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Century Gothic', 'Jost', 'URW Gothic', 'Questrial', 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* sticky footer : le pied de page reste collé en bas même sur les pages courtes */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   Typo helpers
   ========================================================= */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}
.eyebrow--light { color: rgba(255,255,255,0.85); }
.eyebrow--light::before { background: rgba(255,255,255,0.7); }

.section__title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  color: var(--ink);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  margin-top: 1.2rem;
  max-width: 54ch;
}
.muted { color: var(--muted); margin-top: 1.1rem; max-width: 54ch; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--ink-soft); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--full { width: 100%; }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover span { transform: translateX(5px); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s, color 0.4s;
  color: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header.is-scrolled {
  background: rgba(244,242,236,0.9);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: flex; align-items: center; gap: 0.5rem; line-height: 1; }
.brand__logo { height: 36px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: opacity 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  border: 1px solid currentColor;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* burger */
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 12vh, 130px);
  padding-top: var(--header-h);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,8,0.45) 0%, rgba(10,10,8,0.15) 35%, rgba(10,10,8,0.65) 100%);
}
.hero__title {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 500;
  margin-top: 0.4rem;
}
.hero__lead {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 48ch;
  color: rgba(255,255,255,0.92);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 70px);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
}
.hero__scroll svg { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(70px, 11vw, 150px) 0; }
.section--alt { background: var(--alt); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

.grid-2 { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.grid-2--media { grid-template-columns: 1.05fr 0.95fr; }
.grid-2--contact { grid-template-columns: 1fr 1fr; align-items: stretch; }
.grid-2--contact .contact__intro { display: flex; flex-direction: column; }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--alt);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.agence__media { aspect-ratio: 4 / 5; }

/* =========================================================
   Stats
   ========================================================= */
.stats {
  background: var(--bg); color: var(--ink);
  padding: clamp(26px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label { color: var(--muted); font-size: 0.82rem; }

/* =========================================================
   Prestations
   ========================================================= */
.prestations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.prestation {
  background: var(--bg);
  transition: background 0.4s var(--ease);
}
.prestation:hover { background: var(--surface); }
.prestation__link {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(28px, 4vw, 48px); color: inherit;
}
.prestation__more {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto;
  padding-top: 1.1rem; font-family: var(--font-display); font-size: 0.9rem; color: var(--accent);
}
.prestation__more span { transition: transform 0.3s var(--ease); }
.prestation:hover .prestation__more span { transform: translateX(4px); }
.prestation__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.prestation__title { font-size: 1.4rem; margin: 1rem 0 0.7rem; }
.prestation__desc { color: var(--muted); font-size: 0.98rem; }

/* =========================================================
   Projets
   ========================================================= */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.project__media { aspect-ratio: 4 / 5; }
.project__link:hover .project__media img { transform: scale(1.05); }
.project__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.74rem; letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem; border-radius: 2px;
}
.project__body { padding-top: 1.1rem; }
.project__title { font-size: 1.45rem; }
.project__meta { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact__details { margin-top: 2.4rem; display: grid; gap: 1.4rem; }
.contact__details li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__label {
  font-family: var(--font-display);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
}
.contact__details a:hover { color: var(--ink); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 3px;
  display: grid; gap: 1.3rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
  resize: none;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: #fff;
}
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,0.78); padding-top: clamp(38px, 4.6vw, 60px); }
.footer__top {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
  flex-wrap: wrap;
  padding-bottom: clamp(24px, 3.2vw, 38px);
}
.to-top {
  margin-left: auto;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); transition: color 0.3s;
}
.to-top:hover { color: #fff; }
.to-top svg { transition: transform 0.3s var(--ease); }
.to-top:hover svg { transform: translateY(-4px); }
@media (max-width: 680px) {
  .footer__top { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .to-top { margin-left: 0; flex-direction: row; gap: 0.6rem; }
}
.footer__contact { font-size: 0.9rem; }
.footer__contact p { margin-bottom: 0.2rem; color: rgba(255,255,255,0.82); }
.footer__contact a:hover { color: #fff; }
.footer__legal { display: flex; gap: clamp(16px, 2.5vw, 30px); flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
/* Mobile : bas du pied de page centré (copyright + liens légaux).
   Placé APRÈS la règle de base pour gagner dans la cascade. */
@media (max-width: 680px) {
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.7rem; }
  .footer__legal { justify-content: center; width: 100%; }
}

/* =========================================================
   Reveal animations
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .grid-2--media, .grid-2--contact { grid-template-columns: 1fr; }
  .agence__media { aspect-ratio: 16 / 10; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); color: var(--ink);
    padding: 1rem var(--gutter) 2rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav__link--cta { border: none; padding: 1rem 0; }
  .nav__link--cta:hover { background: none; color: var(--ink); }
  /* pas de soulignement animé en menu mobile : il chevauchait les séparateurs */
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .burger { display: block; }

  .prestations { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project__media { aspect-ratio: 4 / 3; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

/* =========================================================
   Lien de nav de la page courante
   ========================================================= */
.nav__link[aria-current="page"]::after { width: 100%; }

/* =========================================================
   Header · variante pages intérieures (fond clair dès le chargement)
   ========================================================= */
.header--solid {
  background: rgba(244,242,236,0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

/* =========================================================
   Page hero (pages intérieures)
   ========================================================= */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px));
  padding-bottom: clamp(36px, 5vw, 64px);
}
.page-hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--ink); margin-top: 0.4rem; }
.page-hero__lead {
  margin-top: 1.4rem; max-width: 62ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft);
}

/* =========================================================
   Barre de filtres (projets · inspirée ALTA)
   ========================================================= */
.filterbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-bottom: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(26px, 4vw, 40px);
}
.filter {
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.5rem 1.15rem;
  border-radius: 3px;
  color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s;
}
.filter:hover { background: rgba(0,0,0,0.05); }
.filter.is-active { background: var(--ink); color: #fff; }

/* =========================================================
   Galerie projets (grille éditoriale type ALTA)
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(220px, 26vw, 360px);
  grid-auto-flow: row dense;
  gap: clamp(12px, 1.6vw, 22px);
}
.tile {
  position: relative; overflow: hidden; border-radius: 3px;
  background: var(--alt); display: block;
}
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.62) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease); color: #fff;
}
.tile:hover .tile__overlay { opacity: 1; }
.tile__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.tile__cat { font-size: 0.85rem; opacity: 0.88; margin-top: 0.2rem; }
.tile[hidden] { display: none; }

/* Tuiles sans photo (visuel à venir) : même libellé que les tuiles photo (titre + Lieu · Année), toujours visible */
.tile--ph {
  background-color: #ece9e1;
  background-image: url("../assets/img/project-placeholder.svg");
  background-size: cover;
  background-position: center;
}
.tile--ph .tile__overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(21,20,15,0) 42%, rgba(21,20,15,0.66) 100%);
}

/* =========================================================
   Moyens matériels (page Agence)
   ========================================================= */
.moyens-layout {
  display: grid; grid-template-columns: 1fr 0.82fr;
  gap: clamp(28px, 5vw, 64px); align-items: start;
  margin-top: clamp(22px, 3vw, 38px);
}
.moyens-figure {
  border-radius: 3px; overflow: hidden;
  border: 1px solid var(--line); background: var(--alt);
}
.moyens-figure img { width: 100%; height: auto; display: block; }
.moyens-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 30px);
}
.moyens-cat__title {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em;
  padding-bottom: 0.6rem; margin-bottom: 0.95rem; border-bottom: 1px solid var(--line);
}
.moyens-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.moyens-list li {
  position: relative; padding-left: 1.1rem;
  color: var(--muted); font-size: 0.95rem; line-height: 1.5;
}
.moyens-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; background: var(--accent); border-radius: 1px;
}
@media (max-width: 760px) { .moyens-layout { grid-template-columns: 1fr; } }

/* Bannière image en tête d'article (Guides) */
.article-hero {
  border-radius: 3px; overflow: hidden; border: 1px solid var(--line);
  background: var(--alt); aspect-ratio: 16 / 9;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .article-hero { aspect-ratio: 4 / 3; } }

/* =========================================================
   Liste prestations (page Prestations)
   ========================================================= */
.presta-list { display: grid; }
.presta-row {
  padding: clamp(26px, 4vw, 48px) 0; border-top: 1px solid var(--line);
}
.presta-list .presta-row:last-child { border-bottom: 1px solid var(--line); }
.presta-row__index { font-family: var(--font-display); color: var(--accent); font-size: 1.1rem; padding-top: 0.4rem; }
.presta-row__title { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 0.9rem; }
.presta-row__body p { color: var(--muted); max-width: 62ch; }
.presta-row__icon { width: 56px; height: 56px; display: block; margin-bottom: 1.1rem; }
.prestation__icon { width: 44px; height: 44px; display: block; margin-bottom: 1.1rem; }

/* =========================================================
   Colonnes (valeurs / démarche) + CTA
   ========================================================= */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 52px); }
.col__index { font-family: var(--font-display); color: var(--accent); font-size: 0.95rem; letter-spacing: 0.1em; }
.col__title { font-size: 1.4rem; margin: 0.7rem 0 0.6rem; }
.col p { color: var(--muted); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.cta .section__title { margin: 0; }

/* =========================================================
   Carte (page Contact)
   ========================================================= */
.map-frame {
  margin-top: 1.6rem;
  width: 100%; flex: 1 1 auto; min-height: 260px; display: flex;
  border-radius: 3px; overflow: hidden; border: 1px solid var(--line);
  background: var(--alt);
  /* isole la carte dans son propre contexte d'empilement : elle ne passe plus au-dessus du header/logo */
  position: relative; z-index: 0;
}
.map { flex: 1 1 auto; width: 100%; min-height: 0; }

/* Leaflet : carte simple */
.leaflet-container { background: #eceae3; font-family: var(--font-body); }
.leaflet-container a { color: var(--accent); }
.leaflet-control-attribution {
  background: rgba(255,255,255,0.78); font-size: 10px; color: var(--muted);
}
.leaflet-bar { border: none; box-shadow: 0 1px 6px rgba(0,0,0,0.15); }
.leaflet-bar a, .leaflet-bar a:hover {
  background: #fff; color: var(--ink);
  width: 30px; height: 30px; line-height: 30px; border-bottom-color: var(--line);
}
.map-pin {
  background: var(--accent);
  border: 2px solid #fff; border-radius: 2px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

/* =========================================================
   Images de projets : noir & blanc, couleur au survol
   (vignettes de galerie & cartes teaser uniquement ;
    PAS le carrousel ni la photo des pages projet)
   ========================================================= */
.tile img,
.project__media img {
  filter: grayscale(1);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.tile:hover img,
.project__link:hover .project__media img {
  filter: grayscale(0);
}

/* =========================================================
   Responsive · nouveaux composants
   ========================================================= */
@media (max-width: 960px) {
  .gallery { grid-auto-rows: clamp(180px, 30vw, 280px); }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .tile__overlay { opacity: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%); }
}
@media (max-width: 600px) {
  .presta-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .presta-row__index { padding-top: 0; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
}

/* =========================================================
   Logo footer + bande affiliations (Ordre des architectes, MAF)
   ========================================================= */
.footer__logo { height: 76px; width: auto; display: block; flex: none; }

.affiliations { background: var(--bg); border-top: 1px solid var(--line); }
.affiliations__grid {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px); flex-wrap: wrap;
  padding: clamp(20px, 2.6vw, 30px) 0;
}
.affiliations__group {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.affiliations__group--clients {
  border-left: 1px solid var(--line);
  padding-left: clamp(28px, 5vw, 72px);
}
.affiliations__label {
  font-family: var(--font-display);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
}
.affiliations__logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 44px); flex-wrap: wrap;
}
.affiliations__logos a { display: block; line-height: 0; }
.affiliations__logos img {
  width: auto;
  height: clamp(20px, 2.4vw, 26px);
  display: block; object-fit: contain;
  transition: opacity 0.3s var(--ease);
}
.affiliations__logos a:hover img { opacity: 0.7; }

@media (max-width: 760px) {
  .affiliations__grid { flex-direction: column; gap: 1.8rem; }
  .affiliations__group--clients {
    border-left: none; padding-left: 0;
    padding-top: 1.8rem; border-top: 1px solid var(--line);
  }
}

/* =========================================================
   Équipe (page Agence)
   ========================================================= */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.member__photo {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px;
  background: var(--alt); margin-bottom: 1.1rem;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transition: transform 0.9s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.04); }
.member__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.member__role {
  font-family: var(--font-display); color: var(--accent);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 0.2rem;
}
.member__bio { color: var(--muted); font-size: 0.95rem; margin-top: 0.9rem; }

@media (max-width: 820px) {
  .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .team { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* =========================================================
   Pages légales (texte long)
   ========================================================= */
.legal { max-width: 780px; }
.legal h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 2.6rem 0 0.8rem;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; margin: 1.8rem 0 0.5rem;
}
.legal p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.2rem; color: var(--ink-soft); }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--ink); text-decoration: underline; word-break: break-word; }
.legal a:hover { color: var(--muted); }
.legal .infoblock { color: var(--ink-soft); margin-bottom: 1.4rem; line-height: 1.7; }
.legal .placeholder {
  color: var(--muted); font-style: italic;
  border: 1px dashed var(--line); padding: 0.8rem 1rem; border-radius: 3px;
  background: var(--surface);
}

/* =========================================================
   Page projet (détail) · tags, méta, carrousel défilant
   ========================================================= */
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.proj-tag {
  font-family: var(--font-display); font-size: 0.82rem;
  padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft);
}
a.proj-tag { transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
a.proj-tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.article-tags { margin-top: 0; margin-bottom: clamp(20px, 3vw, 32px); }
.proj-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 32px);
}
.proj-meta dt { font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.proj-meta dd { margin: 0.3rem 0 0; font-size: 1.02rem; }
@media (max-width: 680px) { .proj-meta { grid-template-columns: 1fr 1fr; } }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: clamp(10px, 1.4vw, 16px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-track { background: var(--alt); border-radius: 3px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }
.carousel__slide {
  flex: 0 0 auto; scroll-snap-align: center;
  height: min(70vh, 640px); border-radius: 3px; overflow: hidden; background: var(--alt);
}
.carousel__slide img { height: 100%; width: auto; display: block; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(21,20,15,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background 0.3s var(--ease);
}
.carousel__btn:hover { background: var(--ink); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__hint { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 640px) {
  .carousel__btn { display: none; }
  .carousel__slide { height: 52vh; }
}

/* =========================================================
   Section Avis (page d'accueil) · widget Trustindex
   ========================================================= */
.ti-reviews { margin-top: clamp(20px, 3vw, 34px); }
.reviews-cta { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; margin-top: clamp(22px, 3vw, 36px); }
.reviews-cta__text { color: var(--muted); }

/* Accès espace client (page Contact) */
.client-access {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.8rem; padding: 1.1rem 1.3rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.client-access:hover { border-color: var(--ink); transform: translateY(-2px); }
.client-access__body { display: flex; flex-direction: column; gap: 0.15rem; }
.client-access__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.client-access__text { font-size: 0.9rem; color: var(--muted); }
.client-access__arrow { margin-left: auto; font-size: 1.15rem; transition: transform 0.3s var(--ease); }
.client-access:hover .client-access__arrow { transform: translateX(4px); }

/* =========================================================
   Sous-services (page Prestations)
   ========================================================= */
.presta-services {
  list-style: none; padding: 0; margin: 1.2rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.presta-services li { display: flex; }
.presta-services a {
  display: inline-block; font-family: var(--font-display); font-size: 0.85rem;
  padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft); background: var(--surface);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.presta-services a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* Accordéon des prestations (page Prestations) */
.presta-hint { color: var(--muted); font-size: 0.92rem; margin-bottom: clamp(14px, 2vw, 22px); }
.presta-acc-list { display: grid; gap: clamp(12px, 1.6vw, 18px); }
.presta-acc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; transition: border-color 0.3s;
}
.presta-acc[open] { border-color: var(--ink); }
.presta-acc__head {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 22px);
  padding: clamp(18px, 2.3vw, 26px); cursor: pointer; list-style: none;
}
.presta-acc__head::-webkit-details-marker { display: none; }
.presta-acc__head .presta-row__icon { width: 40px; height: 40px; flex: none; margin: 0; }
.presta-acc__titles { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.presta-acc__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink); transition: color 0.3s; }
.presta-acc__sub { color: var(--muted); font-size: 0.92rem; }
.presta-acc__head:hover .presta-acc__title { color: var(--accent); }
.presta-acc__head::after {
  content: "+"; flex: none;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--accent);
}
.presta-acc[open] .presta-acc__head::after { content: "\2212"; }
.presta-acc__body { padding: 0 clamp(18px, 2.3vw, 26px) clamp(20px, 2.6vw, 28px); }
.presta-acc__body > p { color: var(--ink-soft); max-width: 72ch; }
@media (max-width: 560px) {
  .presta-acc__head { gap: 0.8rem; padding: 1rem; }
  .presta-acc__head .presta-row__icon { width: 32px; height: 32px; }
}

/* Bloc « dossiers types » (page Prestations) */
.presta-docs {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px;
}
.presta-docs__text { max-width: 60ch; }
.presta-docs__text p:last-child { color: var(--ink-soft); margin-top: 0.5rem; }

/* =========================================================
   Espace client (page de connexion · maquette)
   ========================================================= */
.auth {
  display: grid; place-items: center; min-height: 72vh;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(48px, 9vw, 110px);
}
.auth__card {
  width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(28px, 5vw, 46px);
}
.auth__card h1 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.auth__lead { color: var(--muted); margin-bottom: 1.8rem; }
.auth__form { display: grid; gap: 1.2rem; }
.auth__note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 1.2rem; }

.footer__copy a { color: rgba(255,255,255,0.72); }
.footer__copy a:hover { color: #fff; }

/* =========================================================
   Guides / FAQ (hub + articles)
   ========================================================= */
/* Fil d'ariane */
.crumbs { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* Hub : groupes + grille de cartes */
.guides-section + .guides-section { margin-top: clamp(38px, 5vw, 64px); }
.guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px); margin-top: clamp(18px, 2.4vw, 30px);
}
.guide-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.guide-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.guide-card__kicker {
  font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--accent);
}
.guide-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.guide-card__text { color: var(--muted); font-size: 0.93rem; }
.guide-card__more { margin-top: auto; padding-top: 0.4rem; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); display: inline-flex; gap: 0.4rem; }
.guide-card__more span { transition: transform 0.3s var(--ease); }
.guide-card:hover .guide-card__more span { transform: translateX(4px); }
.guide-card[hidden] { display: none; }

@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guides-grid { grid-template-columns: 1fr; } }

/* Article : colonne de lecture */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.4rem; }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-top: 1.8rem; font-weight: 600; }
.prose p { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-soft); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .lead { color: var(--ink); }

/* Encadré d'appel dans un article */
.callout {
  margin-top: 2rem; padding: clamp(20px, 2.6vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.callout h3 { margin-top: 0; font-size: 1.15rem; }
.callout p { margin-top: 0.5rem; color: var(--ink-soft); }
.callout .btn { margin-top: 1.1rem; }

/* FAQ */
.faq { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq__q { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq__a { color: var(--ink-soft); margin-top: 0.5rem; font-size: 0.97rem; }

/* Pied d'article */
.guide-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   Grille tarifaire (page Prestations)
   ========================================================= */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px); margin-top: clamp(20px, 2.5vw, 32px);
}
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 0.5rem;
}
.price-card__label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.price-card__amount { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--accent); }
.price-card__unit { font-size: 0.85rem; color: var(--muted); }
.pricing-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* =========================================================
   Vignette image en tête des cartes Guides (hub)
   Image pleine largeur ; le padding est porté par le texte.
   ========================================================= */
.guide-card__img {
  display: block; width: 100%;
  height: clamp(150px, 17vw, 190px);
  object-fit: cover;
}
.guide-card > .guide-card__kicker,
.guide-card > .guide-card__title,
.guide-card > .guide-card__text,
.guide-card > .guide-card__more {
  padding-inline: clamp(22px, 2.6vw, 32px);
}
.guide-card__kicker { margin-top: clamp(6px, 1vw, 12px); }
.guide-card__more { padding-bottom: clamp(20px, 2.4vw, 28px); }
