/* tablao. architecture — feuille de style principale
   Typo : Nunito Sans (équivalent libre d'Avenir), auto-hébergée.
   Couleurs du cahier des charges : Alice Blue, Eggshell, Violet Blue, Rich Black. */

@font-face {
  font-family: "Tablao Sans";
  src: url("/assets/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tablao Sans";
  src: url("/assets/fonts/nunito-sans-italic.woff2") format("woff2");
  font-weight: 200 1000; font-style: italic; font-display: swap;
}

:root {
  /* Retour client (12/11) : tout en noir et blanc */
  --eggshell: #F2F2F2;   /* gris très clair (remplace le beige) */
  --violet: #131B23;     /* l'accent devient le noir */
  --noir: #131B23;
  --gris: #6B727B;
  --gris-clair: #AEB3BA;
  --blanc: #FFFFFF;

  --w-titre: 800;     /* Avenir lourd */
  --w-sous: 600;      /* Avenir moyen */
  --w-corps: 300;     /* Avenir léger */

  --hh: 104px;        /* hauteur de l'en-tête */
  --pad: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Tablao Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-weight: var(--w-corps);
  font-size: 16px; line-height: 1.6;
  color: var(--noir); background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hh);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--blanc);
}
.header .logo img { height: 60px; width: auto; }
.nav { display: flex; gap: clamp(22px, 3.5vw, 56px); }
.nav a {
  font-weight: 900; font-size: 16px; letter-spacing: .01em;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }


main { padding-top: var(--hh); }

/* ---------- Pied de page ---------- */
.footer {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: baseline;
  padding: 28px var(--pad) 32px;
  font-style: italic; font-weight: var(--w-corps); font-size: 13px; color: var(--gris);
  border-top: 1px solid #EEF0F2; margin-top: 64px;
}
.footer b { font-style: normal; font-weight: var(--w-titre); color: var(--noir); }
.footer a:hover { color: var(--violet); }

/* ---------- Intro (accueil) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--blanc);
  display: grid; place-items: center;
  transition: background-color .5s ease .5s;
}
.intro-logo {
  position: relative; width: min(360px, 60vw);
  transform-origin: 0 0; will-change: transform;
  animation: apparait .8s ease both;
}
.intro-logo img { width: 100%; height: auto; }
.intro-logo .archi { position: absolute; left: 72.87%; top: 133.9%; width: 26.63%; transition: opacity .35s ease; }
.intro.is-moving .intro-logo { transition: transform 1.05s var(--ease); }
.intro.is-moving .archi { opacity: 0; }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.intro.is-done { background: transparent; pointer-events: none; }
.intro.is-gone { display: none; }
body.intro-on .header .logo { visibility: hidden; }

/* ---------- Mosaïque projets ---------- */
.projets { padding: 18px var(--pad) 0; }
.filtres {
  display: flex; justify-content: flex-end; gap: 28px;
  margin: 0 0 26px; font-size: 13px;
}
.filtre { position: relative; }
.filtre > button {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: var(--w-sous); color: var(--noir);
}
.filtre > button .chev { font-size: 10px; transition: transform .3s; }
.filtre.is-open > button .chev { transform: rotate(180deg); }
.filtre > button .val { color: var(--violet); }
.filtre ul {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
  list-style: none; margin: 0; padding: 10px 0; min-width: 210px;
  background: var(--blanc); border: 1px solid #E6E8EB; box-shadow: 0 12px 36px rgba(19, 27, 35, .08);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.filtre.is-open ul { opacity: 1; transform: none; pointer-events: auto; }
.filtre li button {
  display: flex; justify-content: space-between; gap: 18px; width: 100%;
  padding: 7px 18px; text-align: left; font-weight: var(--w-corps);
}
.filtre li button:hover { background: #F2F2F2; }
.filtre li button[aria-pressed="true"] { color: var(--violet); font-weight: var(--w-sous); }
.filtre li button .n { color: var(--gris); font-size: 12px; }

.grille {
  display: grid; gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tuile {
  position: relative; display: block; overflow: hidden; background: #F3F4F5;
  aspect-ratio: 10 / 9;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.tuile.is-in { opacity: 1; transform: none; }
.tuile[hidden] { display: none; }
.tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tuile .voile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, .86); color: var(--noir);
  opacity: 0; transition: opacity .4s ease;
}
.tuile .voile .num { font-size: 12px; font-weight: var(--w-sous); letter-spacing: .08em; }
.tuile .voile .nom { font-weight: var(--w-titre); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.2; text-transform: uppercase; }
.tuile .voile .lieu { font-size: 13px; font-style: italic; }
.tuile:hover .voile, .tuile:focus-visible .voile { opacity: 1; }
.tuile:hover img { transform: scale(1.04); }
.legende { display: none; }
.vide { padding: 60px 0; text-align: center; color: var(--gris); font-style: italic; }

@media (hover: none) {
  .tuile { aspect-ratio: auto; background: none; }
  .tuile img { aspect-ratio: 10 / 9; }
  .tuile .voile { display: none; }
  .legende { display: block; padding: 8px 0 4px; font-size: 13px; line-height: 1.35; }
  .legende b { display: block; font-weight: var(--w-titre); text-transform: uppercase; font-size: 12.5px; }
  .legende i { color: var(--gris); }
}
@media (max-width: 1200px) { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  {
  :root { --hh: 72px; }
  .header .logo img { height: 34px; }
  .nav { gap: 14px; } .nav a { font-size: 14px; padding: 12px 0; }
  .nav a::after { bottom: 8px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filtres { justify-content: flex-start; }
  .filtre ul { left: 0; right: auto; }
}

/* ---------- Page projet (réf. caminada) ---------- */
.projet {
  height: calc(100svh - var(--hh));
  display: grid;
  grid-template-columns: 20% 27% 53%;
  transition: grid-template-columns .9s var(--ease);
}
.projet.is-open { grid-template-columns: 0% 24% 76%; }

.liste {
  overflow: hidden auto; padding: 0 16px 40px var(--pad); min-width: 0;
  transition: opacity .5s ease;
  scrollbar-width: none;
}
.projet.is-open .liste { opacity: 0; pointer-events: none; }
.liste ol { list-style: none; margin: 0; padding: 0; }
.liste a {
  display: block; padding: 3px 0;
  font-weight: var(--w-sous); font-size: 12.5px; line-height: 1.4;
  color: var(--gris-clair); transition: color .25s;
}
.liste a:hover { color: var(--gris); }
.liste a[aria-current="page"] { color: var(--noir); }

.fiche {
  overflow: hidden auto; padding: 0 34px 40px 20px;
  text-align: left; min-width: 0;
  scrollbar-width: none;
}
.fiche::-webkit-scrollbar, .liste::-webkit-scrollbar { display: none; }
.projet.is-open .fiche { padding-left: var(--pad); }
/* Texte plus long que l'écran : léger fondu en bas pour signaler qu'il reste du contenu à faire défiler */
.fiche.deborde, .liste.deborde {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent);
}
.fiche h1 {
  margin: 0 0 22px; font-weight: 900;
  font-size: clamp(19px, 1.5vw, 23px); line-height: 1.2;
  display: flex; align-items: flex-start; gap: 14px;
}
.fiche h1 .n { font-size: 2.35em; line-height: .86; letter-spacing: -.02em; }
/* Fiche technique : sans encadré, « Intitulé / valeur », même typo que le texte */
.fiche .technique { margin: 0 0 24px; font-size: 14.5px; line-height: 1.55; }
.fiche .technique p { margin: 0 0 4px; }
.fiche .technique b { font-weight: 900; font-size: 15.5px; }
.fiche .texte p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; }
.fiche .credit { margin-top: 20px; font-style: italic; font-size: 13.5px; color: #4A525B; }
.fiche .credit p { margin: 0; }
.fiche .tags { margin-top: 22px; display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.fiche .tags a {
  font-size: 12px; font-weight: var(--w-sous); color: var(--violet);
  border: 1px solid rgba(19, 27, 35, .3); padding: 3px 10px; border-radius: 99px;
}
.fiche .tags a:hover { background: var(--violet); color: var(--blanc); }
.fiche .suivant { margin-top: 34px; font-size: 13px; font-weight: var(--w-sous); }
.fiche .suivant a:hover { color: var(--violet); }

.galerie { position: relative; overflow: hidden; background: #EEF0F2; min-width: 0; }
.galerie .piste { position: absolute; inset: 0; display: flex; transition: transform .8s var(--ease); }
.galerie figure { margin: 0; flex: 0 0 100%; height: 100%; position: relative; }
.galerie figure img { width: 100%; height: 100%; object-fit: cover; }
.galerie figure.plan { background: var(--blanc); }
.galerie figure.plan img { object-fit: contain; padding: 4%; }
/* Galerie ouverte : photos pleine page (les plans restent entiers sur fond blanc) */
.projet.is-open .galerie { background: #F3F4F5; }
.projet.is-open .galerie figure img { width: 100%; height: 100%; object-fit: cover; }
.projet.is-open .galerie figure.plan img { object-fit: contain; padding: 4% 4% calc(4% + 76px); }
/* Plein écran */
.galerie:fullscreen { background: #F3F4F5; }

/* Bande de vignettes (galerie ouverte) */
.galerie .vignettes {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 76px;
  display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(to bottom, transparent, rgba(19, 27, 35, .45));
  opacity: 0; pointer-events: none; transition: opacity .35s ease .2s;
}
.galerie .vignettes::-webkit-scrollbar { display: none; }
.projet.is-open .galerie .vignettes { opacity: 1; pointer-events: auto; }
.galerie .vignettes button {
  flex: 0 0 auto; height: 56px; width: 74px; background: var(--blanc);
  opacity: .65; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s;
}
.galerie .vignettes button:hover { opacity: .9; }
.galerie .vignettes button[aria-current="true"] { opacity: 1; outline-color: var(--blanc); }
.galerie .vignettes img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); } /* vignettes en noir et blanc */
.galerie .vignettes button.plan img { object-fit: contain; }
.galerie .plein {
  position: absolute; top: 14px; right: 62px; z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--blanc); color: var(--noir);
  opacity: 0; pointer-events: none; transition: opacity .3s, background .25s, color .25s;
}
.galerie .plein svg { width: 16px; height: 16px; }
.galerie .plein:hover, .galerie .fermer:hover { background: var(--violet); color: var(--blanc); }
.projet.is-open .galerie .plein { opacity: 1; pointer-events: auto; }
.projet.is-open .galerie figure.plan { background: var(--blanc); }
.galerie .fl {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: var(--noir);
  font-size: 30px; font-weight: 300; line-height: 1; padding-bottom: 4px;
  transition: opacity .3s, background .25s, color .25s;
}
.galerie .fl:hover { background: var(--violet); color: var(--blanc); }
.galerie .fl.prev { left: 14px; }
.galerie .fl.next { right: 14px; opacity: 0; pointer-events: none; }
.projet.is-open .galerie .fl.next { opacity: 1; pointer-events: auto; }
.galerie .fl[disabled] { opacity: .25 !important; pointer-events: none; }
.galerie.sur-plan .fl { background: #ECECEC; }
.galerie .fermer {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--blanc); color: var(--noir); font-size: 22px; font-weight: 300;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.projet.is-open .galerie .fermer { opacity: 1; pointer-events: auto; }
.galerie .compteur {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  font-size: 12px; font-style: italic; color: var(--blanc);
  background: rgba(19, 27, 35, .55); padding: 3px 10px;
  opacity: 0; transition: opacity .3s;
}
.projet.is-open .galerie .compteur { opacity: 1; bottom: auto; top: 14px; }

@media (max-width: 900px) {
  .projet, .projet.is-open { height: auto; display: flex; flex-direction: column; }
  .liste { display: none; }
  .galerie { order: -1; height: 62svh; background: #F3F4F5; }
  .galerie figure, .projet.is-open .galerie figure { display: grid; place-items: center; padding: 12px; }
  .galerie figure img, .projet.is-open .galerie figure img {
    width: auto; height: auto; max-width: 100%; max-height: calc(62svh - 24px); object-fit: contain; padding: 0;
  }
  .galerie .fl.next { opacity: 1; pointer-events: auto; }
  .galerie .compteur { opacity: 1; }
  .galerie .fermer, .galerie .plein, .galerie .vignettes { display: none; }
  .projet.is-open .galerie .compteur { top: auto; bottom: 14px; }
  .fiche { text-align: left; padding: 28px var(--pad) 48px; overflow: visible; }
  .fiche .tags { justify-content: flex-start; }
}

/* ---------- Agence ---------- */
/* La photo couvre toute la largeur puis rétrécit vers la gauche (--p : 0 → 1, piloté au scroll)
   pour laisser place à la colonne texte, de même largeur que la colonne texte des pages projet. */
.agence {
  position: relative;
  display: grid; grid-template-columns: 73% 27%;
}
.agence .photo {
  position: sticky; top: var(--hh); height: calc(100svh - var(--hh));
  grid-column: 1 / -1; grid-row: 1; justify-self: start; align-self: start;
  width: calc(100% - var(--p, 0) * 27%);
  overflow: hidden; z-index: 2;
}
.agence .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.agence .photo .fl {
  position: absolute; top: 50%; left: 14px; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center; padding-bottom: 4px;
  background: var(--blanc); color: var(--noir); font-size: 30px; font-weight: 300; line-height: 1;
  opacity: var(--p, 0); transition: opacity .2s, background .25s, color .25s;
}
.agence .photo .fl:hover { background: var(--violet); color: var(--blanc); }
.agence .indice {
  position: absolute; right: 26px; bottom: 26px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-style: italic; color: var(--noir);
  background: rgba(255, 255, 255, .85); padding: 8px 14px;
  opacity: calc(1 - var(--p, 0) * 3);
}
.agence .indice span { font-style: normal; font-size: 18px; }
.agence .colonne {
  grid-column: 2; grid-row: 1;
  padding: 72svh var(--pad) 80px 30px;
  min-width: 0;
  opacity: clamp(0, (var(--p, 0) - .55) * 2.4, 1); /* le texte n'apparaît qu'une fois la photo rétrécie */
}
.agence h2 {
  margin: 42px 0 14px; font-weight: 900;
  font-size: 19px; line-height: 1.3; text-transform: capitalize;
}
.agence h2:first-child { margin-top: 0; }
.agence p, .agence li { font-size: 14.5px; line-height: 1.7; }
.agence p { margin: 0 0 12px; }
.agence ul { margin: 0 0 14px; padding-left: 18px; }
.agence li { margin-bottom: 4px; }
.agence b { font-weight: var(--w-sous); }
.equipe { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 18px 0 8px; text-align: center; }
.equipe img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; filter: grayscale(1); }
.equipe .n { font-weight: var(--w-sous); font-size: 15px; }
.equipe .r { font-size: 12.5px; line-height: 1.5; color: #4A525B; }
.equipe .r a:hover { color: var(--violet); }
.devise {
  margin: 46px 0 0; font-style: italic; font-size: 13.5px; color: var(--gris);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.6;
}

@media (max-width: 900px) {
  .agence { display: block; }
  .agence .photo { position: relative; top: 0; width: 100%; height: 58svh; }
  .agence .photo .fl, .agence .indice { display: none; }
  .agence .colonne { padding: 34px var(--pad) 40px; opacity: 1; }
  .equipe { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact (même mise en page que l'Agence, en miroir) ---------- */
.agence.miroir { grid-template-columns: 27% 73%; }
.agence.miroir .photo { justify-self: end; }
.agence.miroir .photo img { object-position: 61% 40%; } /* garde le « t. » de l'agence visible */
.agence.miroir .photo .fl { left: auto; right: 14px; }
.agence.miroir .indice { right: auto; left: 26px; }
.agence.miroir .colonne { grid-column: 1; padding: 72svh 30px 80px var(--pad); }
.titre-contact { margin: 0 0 22px; font-weight: 900; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; }
.miroir address { font-style: normal; font-size: 15px; line-height: 1.65; }
.miroir .tel { display: inline-block; margin-top: 12px; font-weight: var(--w-titre); font-size: 20px; }
.miroir .equipe { margin: 34px 0 34px; gap: 18px; }
.miroir .equipe img { width: 96px; height: 96px; }
.miroir .equipe .r { font-size: 12px; }
.miroir .equipe .mail { overflow-wrap: anywhere; }
.miroir .form { padding: 24px 22px; }
.miroir .form h2 { margin: 0 0 6px; font-weight: var(--w-titre); font-size: 20px; text-transform: none; }
@media (max-width: 900px) {
  .agence.miroir { display: flex; flex-direction: column; }
  .agence.miroir .colonne { padding: 34px var(--pad) 40px; }
}

/* ---------- Contact ---------- */
.contact {
  min-height: calc(100svh - var(--hh) - 90px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(36px, 6vw, 80px) var(--pad) 40px;
}
.contact h1 { margin: 0 0 26px; font-weight: var(--w-titre); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.contact address { font-style: normal; font-size: 17px; line-height: 1.65; }
.contact address a:hover { color: var(--violet); }
.contact .tel { display: inline-block; margin-top: 16px; font-weight: var(--w-titre); font-size: 22px; }
.contact .equipe { text-align: left; margin-top: 44px; max-width: 520px; }
.contact .equipe img { margin: 0 0 12px; width: 108px; height: 108px; }
.form { background: var(--eggshell); padding: clamp(24px, 3vw, 40px); align-self: start; }
.form h2 { margin: 0 0 6px; font-weight: var(--w-titre); font-size: 20px; }
.form .sous { margin: 0 0 22px; font-size: 14px; color: #4A525B; }
.form label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: var(--w-sous); }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: var(--w-corps); font-size: 16px; color: var(--noir); /* 16 px : évite le zoom automatique sur iPhone */
  background: var(--blanc); border: 1px solid #D9D9D9; padding: 12px 14px; border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--violet); }
.form textarea { min-height: 130px; resize: vertical; }
.form .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .rgpd { font-size: 12px; font-weight: var(--w-corps); color: #4A525B; line-height: 1.5; margin: 4px 0 18px; }
.form .rgpd a { text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--violet); color: var(--blanc);
  font-weight: var(--w-titre); font-size: 14px; letter-spacing: .02em;
  padding: 14px 26px; transition: background .25s;
}
.btn:hover { background: var(--noir); }
.hp { display: none; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .form .deux { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Vue Liste (accueil) ---------- */
.vues { display: flex; gap: 16px; margin-right: 12px; padding-right: 26px; border-right: 1px solid #E3E5E8; }
.vues button { font-weight: var(--w-sous); color: var(--gris); position: relative; padding: 0 0 3px; }
.vues button[aria-pressed="true"] { color: var(--violet); }
.vues button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; }
.tableau { display: none; }
.projets.vue-liste .grille { display: none; }
.projets.vue-liste .tableau { display: block; }
.ligne {
  display: grid; grid-template-columns: 44px minmax(0, 2.6fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr) 90px 150px;
  gap: 18px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid #E8E9EB;
  font-size: 13.5px; color: var(--noir);
  transition: color .2s, padding-left .35s var(--ease);
}
.ligne.entete { border-top: 0; padding: 0 0 10px; font-size: 10.5px; font-weight: var(--w-titre); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.ligne:not(.entete):last-child { border-bottom: 1px solid #E8E9EB; }
.ligne .c-num { color: var(--violet); font-weight: var(--w-sous); }
.ligne .c-titre { font-weight: var(--w-titre); text-transform: uppercase; font-size: 13px; }
.ligne .c-annee, .ligne .c-surface { text-align: right; }
a.ligne:hover, a.ligne:focus-visible { color: var(--violet); padding-left: 10px; }
.ligne[hidden] { display: none; }
.apercu {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; overflow: hidden; background: #F3F4F5;
  opacity: 0; scale: .94; transition: opacity .25s ease, scale .35s var(--ease);
}
.apercu.is-on { opacity: 1; scale: 1; }
.apercu img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .apercu { display: none; } }
@media (max-width: 900px) {
  .ligne { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .ligne .c-lieu, .ligne .c-domaine, .ligne .c-inter, .ligne .c-surface { display: none; }
}
@media (max-width: 640px) {
  .filtres { flex-wrap: wrap; gap: 14px 24px; }
  .vues { width: 100%; border-right: 0; padding-right: 0; margin-right: 0; }
}

/* ---------- Touches de couleur ---------- */
.bandeau {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px;
  margin-top: 90px; padding: clamp(40px, 6vw, 84px) var(--pad);
  background: var(--eggshell);
}
.bandeau p { margin: 0; font-weight: var(--w-titre); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.08; max-width: 14ch; }
.bandeau a {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: var(--w-titre); font-size: 15px; color: var(--violet);
  border-bottom: 1.5px solid currentColor; padding-bottom: 4px;
  transition: gap .3s var(--ease);
}
.bandeau a:hover { gap: 20px; }
.bandeau + .footer { margin-top: 0; border-top: 0; }

/* ---------- Transitions entre les pages (navigateurs compatibles) ---------- */
@view-transition { navigation: auto; }
.header { view-transition-name: entete; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Pages texte (mentions, merci, 404) ---------- */
.page-texte { max-width: 780px; padding: clamp(36px, 6vw, 80px) var(--pad) 20px; }
.page-texte h1 { margin: 0 0 28px; font-weight: var(--w-titre); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.page-texte h2 { margin: 34px 0 10px; font-weight: var(--w-sous); font-size: 18px; }
.page-texte p { margin: 0 0 10px; font-size: 15px; }
.page-texte a { text-decoration: underline; }
.page-texte a.btn { text-decoration: none; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .tuile { opacity: 1; transform: none; }
}
