
/* V3 — responsive et finition des galeries */
html,body{margin:0;width:100%;overflow-x:clip}
.container .visuel,.container .visuel a{display:block;line-height:0;font-size:0;margin:0;padding:0;overflow:hidden}
.container .visuel img{display:block;width:100%;height:auto;max-width:100%;vertical-align:top;margin:0;padding:0;border:0}
.blocinfos{position:fixed;inset:0;z-index:10002;background:rgba(255,255,255,.88);backdrop-filter:blur(3px);transition:opacity .25s}
.blocinfos.inactive{opacity:0;visibility:hidden;pointer-events:none}
.blocinfos:not(.inactive){opacity:1;visibility:visible;pointer-events:auto}
.blocinfos .presentation{position:absolute!important;inset:75px 20px 20px!important;width:auto!important;max-width:none!important;height:auto!important;display:block!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;padding:0!important}
.blocinfos .presentation h2,.blocinfos .presentation h1,.blocinfos .presentation h3{display:block!important;width:100%!important;max-width:100%!important;column-count:1!important;column-width:auto!important;columns:auto!important;white-space:normal;overflow-wrap:break-word;line-height:1.25}
.index-trigger{display:block;background:none;border:0;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer;line-height:inherit}
.index-trigger:hover{color:#000000}
.index-overlay{position:fixed;inset:0;z-index:11000;background:rgba(255,255,255,.91);backdrop-filter:blur(5px);color:#171717;overflow:auto;padding:14px 16px 32px;overscroll-behavior:contain}
.index-overlay[hidden]{display:none!important}
.index-close{position:sticky;top:0;float:right;border:0;background:rgba(255,255,255,.9);font:700 15px "neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif;cursor:pointer;padding:6px 0 10px 16px;z-index:1}
.index-title{font:700 15px "neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif;margin:0 0 20px}
.index-table{width:100%;border-collapse:collapse;table-layout:fixed;font:600 14px/1.22 "neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif}
.index-table th{text-align:left;padding:0 12px 12px 0;position:sticky;top:0;background:rgba(255,255,255,.95);font-weight:700}
.index-table td{padding:4px 12px 4px 0;vertical-align:top;border-bottom:1px solid rgba(0,0,0,.07);overflow-wrap:anywhere}
.index-table th:first-child,.index-table td:first-child{width:54px}
.index-table th:last-child,.index-table td:last-child{width:75px}
.index-table a{color:#171717!important;text-decoration:none;display:block}
.index-table tr:hover td,.index-table tr:hover a,.index-table a:focus-visible{color:#000000!important}
body.modal-open{overflow:hidden}
@media(max-width:700px){
 body.home .container{padding-top:0!important;margin-top:0!important;min-height:100svh}
 body.home .info{position:fixed!important;top:15px!important;left:15px!important;margin:0!important;padding:0!important;background:transparent!important;width:max-content!important;max-width:calc(100vw - 30px)!important;z-index:1000!important;pointer-events:none}
 body.home .info a,body.home .info .versinfos,body.home .info button{pointer-events:auto}
 body.home .info h1,body.home .info a,body.home .info button{color:white!important;font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif;font-size:14px!important;line-height:1.05!important;font-weight:400}
 body.home .info h1{margin:0!important}
 body.home .container .projet{margin:0!important;padding:0!important;width:100%!important;display:block!important}
 body.home .container .visuel{width:100%!important}
 body.home .container .visuel img{display:block;width:100%;height:auto;max-width:none;object-fit:cover}
 body:not(.home) .container{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;padding:0!important}
 body:not(.home) .container>.projet{order:0!important;float:none!important;position:relative!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 body:not(.home) .container>.texte{order:1!important;float:none!important;position:relative!important;inset:auto!important;max-height:none!important;height:auto!important;overflow:visible!important;width:100%!important;max-width:none!important;padding:16px!important;margin:0!important}
 body:not(.home) .container>.texte *{max-width:100%}
 .blocinfos .presentation{inset:90px 14px 14px!important;padding-bottom:24px!important}
 .blocinfos .presentation h2{font-size:clamp(15px,4vw,19px)!important;line-height:1.35!important}
 .index-overlay{padding:12px 10px 25px}
 .index-table{font-size:12px}
 .index-table th:first-child,.index-table td:first-child{width:38px}
 .index-table th:last-child,.index-table td:last-child{width:48px}
 .index-table td{padding:7px 5px 7px 0}
}

/* V5 : panneau informations desktop identique à la référence */
@media(min-width:701px){
 .blocinfos{background:rgba(255,255,255,.76);backdrop-filter:none}
 .blocinfos .presentation{position:absolute!important;inset:10px 12px 10px 51%!important;width:auto!important;height:auto!important;max-width:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0!important;scrollbar-width:thin}
 .blocinfos .presentation h2,.blocinfos .presentation h1,.blocinfos .presentation h3{font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;font-size:1.2em!important;line-height:1.2!important;letter-spacing:.03em!important;font-weight:400!important;color:#000!important;column-count:1!important;columns:auto!important;width:100%!important;max-width:100%!important}
}
/* Joints subpixel entre photographies, sans modifier leur ratio */
.container .projet{gap:0!important;row-gap:0!important;column-gap:0!important}
.container .visuel{margin:0!important;padding:0!important;border:0!important;line-height:0!important;overflow:hidden!important}
.container .visuel a{display:block!important;line-height:0!important;margin:0!important;padding:0!important}
.container .visuel img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;margin:0 0 -1px 0!important;padding:0!important;border:0!important;vertical-align:bottom!important}
/* Index de projets : grille compacte et aperçu */
.index-overlay{font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;color:#000}
.index-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,25vw);gap:2.5vw;align-items:start}
.index-list{min-width:0}
.index-title,.index-close,.index-table{font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;font-size:clamp(14px,1.1vw,19px)!important;font-weight:600!important;line-height:1.12!important;letter-spacing:0!important}
.index-title{margin-bottom:12px}
.index-table{table-layout:fixed}
.index-table th{padding:0 9px 12px 0!important;font-weight:600!important;line-height:1.12!important;border:0!important}
.index-table td{padding:2px 9px 2px 0!important;line-height:1.12!important;border:0!important;vertical-align:top;overflow-wrap:normal;word-break:normal}
.index-table th:first-child,.index-table td:first-child{width:48px}
.index-table th:last-child,.index-table td:last-child{width:66px}
.index-table a{font-weight:600!important}
.index-table tr:hover td,.index-table tr:hover a,.index-table a:focus-visible{color:#000!important}
.index-table tbody tr:not(:hover):not(:focus-within){opacity:.68}
.index-preview{position:sticky;top:48px;min-width:0}
.index-preview img{display:block;width:100%;height:auto;max-height:56vh;object-fit:contain;object-position:top left}
.index-preview-title{font-size:clamp(14px,1.1vw,19px);font-weight:600;line-height:1.15;margin-top:7px}
.index-preview-placeholder{aspect-ratio:4/3;background:rgba(0,0,0,.04)}
@media(max-width:700px){.index-nav,.index-overlay{display:none!important}.index-shell{display:block}}

/* V6 — corrections navigation et typographie */
@media (min-width:701px) {
  .info .index-nav { display:inline-block!important; vertical-align:baseline; margin-right:.55em; }
  .info .versinfos { display:inline-block!important; vertical-align:baseline; }
  .info .index-nav h1,.info .versinfos h1 { display:inline!important; margin:0!important; }
  .info .index-trigger { display:inline!important; }
}
/* Même famille et même graisse que les titres du site : la feuille générale
   applique font-weight:normal. Éviter le 600 qui épaississait l'index. */
.index-overlay .index-title,.index-overlay .index-close,
.index-overlay .index-table,.index-overlay .index-table th,
.index-overlay .index-table td,.index-overlay .index-table a,
.index-overlay .index-preview-title {
  font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;
  font-weight:400!important;
}
/* Hover INDEX sur les pages projets : effet de flou plus marqué */
body:not(.home) .index-trigger:hover,
body:not(.home) .index-trigger:focus-visible {
  color:transparent!important;
  text-shadow:0 0 5px rgba(0,0,0,.8)!important;
}
@media (max-width:700px) {
  /* Le menu des projets se superpose aux photos sans bande blanche. */
  body:not(.home) .info {
    position:absolute!important;top:0!important;left:0!important;
    margin:0!important;padding:15px!important;width:100%!important;
    max-width:none!important;background:transparent!important;
    z-index:10001!important;
  }
  body:not(.home) .info h1,
  body:not(.home) .info a,
  body:not(.home) .info .versinfos {
    color:white!important;
  }
  /* Dans le panneau Informations ouvert, le menu reste lisible en noir. */
  body:has(.blocinfos:not(.inactive)) .info h1,
  body:has(.blocinfos:not(.inactive)) .info a,
  body:has(.blocinfos:not(.inactive)) .info .versinfos {
    color:#000!important;
  }
  body .blocinfos:not(.inactive) { z-index:10000!important; }
  body .blocinfos .presentation { padding-top:15px!important; }
}

/* V7 : index plus aéré, graisse inchangée */
.index-overlay .index-table td{padding-top:5px!important;padding-bottom:5px!important;line-height:1.3!important}
.index-overlay .index-table th{padding-bottom:16px!important;line-height:1.3!important}
.index-overlay .index-preview img:not([src]){display:none!important}
.index-overlay .index-preview-title:empty{display:none!important}
@media(max-width:700px){
 body:not(.home) .container{margin-top:0!important;padding-top:0!important}
 body:not(.home) .container>.projet{order:0!important}
 body:not(.home) .info{pointer-events:none!important}
 body:not(.home) .info a,body:not(.home) .info button,body:not(.home) .info .versinfos{pointer-events:auto!important}
 body:not(.home) .info h1,body:not(.home) .info a,body:not(.home) .info button{font-family:"neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif!important;font-size:clamp(20px,5.3vw,30px)!important;font-weight:400!important;line-height:1.05!important}
 body:not(.home) .info h1{margin:0!important}
 .mobile-project-back{display:block;margin:32px 16px 26px;color:#000;text-decoration:none;font:400 clamp(20px,5.3vw,30px)/1.05 "neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif}
}
@media(min-width:701px){.mobile-project-back{display:none!important}}
/* V8 — index calé sur la référence : colonnes pleine largeur, rythme serré. */
@media(min-width:701px){
.index-overlay{padding:6px 20px 24px!important;background:rgba(255,255,255,.96)}
.index-shell{display:block;position:relative}
.index-list{position:relative;z-index:2}
.index-table{width:100%;table-layout:fixed}
.index-overlay .index-table th{padding:0 8px 16px 0!important;line-height:1.12!important}
.index-overlay .index-table td{padding:1px 8px 1px 0!important;line-height:1.12!important}
.index-table th:nth-child(1),.index-table td:nth-child(1){width:4.3%!important}
.index-table th:nth-child(2),.index-table td:nth-child(2){width:37.5%!important}
.index-table th:nth-child(3),.index-table td:nth-child(3){width:10.5%!important}
.index-table th:nth-child(4),.index-table td:nth-child(4){width:17.2%!important}
.index-table th:nth-child(5),.index-table td:nth-child(5){width:30.5%!important}
.index-preview{position:fixed;inset:0;z-index:1;pointer-events:none;display:flex;align-items:center;justify-content:center}
.index-preview img{width:46vw;max-height:90vh;object-fit:contain;opacity:.16}
.index-preview-title{display:none!important}
.index-table tbody tr:not(:hover):not(:focus-within){opacity:1!important}
}
.index-preview img:not([src]){display:none!important}
@media(max-width:700px){
body:not(.home) .container,body:not(.home) .projet{padding-top:0!important;margin-top:0!important}
body:not(.home) .projet img:first-child{margin-top:0!important}
}

/* V9 — index : en-têtes au sommet, hover conforme à la référence. */
@media(min-width:701px){
 .index-overlay{padding:0 15px 24px!important;background:rgba(255,255,255,.92)!important}
 .index-shell{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,24.5vw)!important;gap:24px!important;align-items:start}
 .index-close{position:fixed!important;right:15px;top:0;z-index:5!important;padding:0!important;background:transparent!important;line-height:1.12!important}
 .index-list{min-width:0}
 .index-table{width:100%!important}
 .index-overlay .index-table th{padding:0 8px 16px 0!important}
 .index-table th:nth-child(1),.index-table td:nth-child(1){width:5%!important}
 .index-table th:nth-child(2),.index-table td:nth-child(2){width:50%!important}
 .index-table th:nth-child(3),.index-table td:nth-child(3){width:13%!important}
 .index-table th:nth-child(4),.index-table td:nth-child(4){width:24%!important}
 .index-table th:nth-child(5),.index-table td:nth-child(5){width:8%!important}
 .index-preview{position:sticky!important;inset:auto!important;top:34px!important;display:block!important;pointer-events:none;z-index:3!important;padding-top:0}
 .index-preview img{display:block;width:100%!important;max-height:65vh!important;object-fit:contain;object-position:top left;opacity:1!important}
 .index-preview-title{display:block!important;margin-top:6px}
 .index-table tbody tr{opacity:1!important;transition:opacity .12s ease}
 .index-table tbody:has(tr:hover) tr:not(:hover),.index-table tbody:has(tr:focus-within) tr:not(:focus-within){opacity:.35!important}
 .index-table tbody tr:hover,.index-table tbody tr:focus-within{opacity:1!important}
}

/* V10 — marge haute de l'INDEX alignée sur celle du menu de la home. */
@media (min-width:701px){
 .index-overlay{padding-top:10px!important}
 .index-close{top:10px!important}
}
@media (max-width:700px){
 .index-overlay{padding-top:15px!important}
 .index-close{top:15px!important}
}

/* V11 — aligner le haut de l'aperçu sur la première ligne des projets. */
@media (min-width:701px){
 .index-preview{
  margin-top:calc(1.12em + 16px)!important;
  top:calc(10px + 1.12em + 16px)!important;
 }
}

/* V12 — même largeur d'aperçu pour les images portrait et paysage. */
@media (min-width:701px){
 .index-preview img{
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:top left!important;
 }
}

/* V13 — INDEX et INFOS : flou de survol identique sur toutes les pages.
   Priorité sur les anciennes règles de couleur/ombre et sur le style des boutons. */
.info .index-nav .index-trigger:hover,
.info .index-nav .index-trigger:focus-visible,
.info .versinfos:hover h1,
.info .versinfos:focus-within h1 {
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:0 0 2px rgba(0,0,0,1)!important;
}

/* V14 — Le texte INFOS reprend le corps des textes de projet (1em). */
.blocinfos .presentation h2,
.blocinfos .presentation h1,
.blocinfos .presentation h3 {
  font-size: 1em !important;
}

/* V15 — home: eliminate fractional-pixel white seams between stacked images.
   Overlap the rendered image edges without stretching or cropping photographs. */
body.home .container .projet{gap:0!important;row-gap:0!important;align-items:stretch}
body.home .container .visuel{position:relative;overflow:hidden!important;background:#000}
body.home .container .visuel img{display:block!important;width:100%!important;height:auto!important;margin:0!important;vertical-align:top!important}
body.home .container .visuel + .visuel{margin-top:-1px!important}
body.home .container .projet + .projet{margin-top:-1px!important}
@media(max-width:700px){body.home .container .visuel + .visuel{margin-top:-1px!important}}

/* V16 — home: aligner les diptyques portrait sur une même ligne.
   Chaque paire partage une hauteur commune; les joints verticaux ne
   reçoivent plus de marge négative (réservée aux rangées empilées). */
@media (min-width:701px) {
  body.home .container .projet:has(> .visuel + .visuel) {
    display:flex!important;
    align-items:stretch!important;
  }
  body.home .container .projet:has(> .visuel + .visuel) > .visuel {
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
    margin-top:0!important;
    display:flex!important;
  }
  body.home .container .projet:has(> .visuel + .visuel) > .visuel > a {
    display:flex!important;
    width:100%!important;
  }
  body.home .container .projet:has(> .visuel + .visuel) > .visuel img {
    height:100%!important;
    object-fit:cover!important;
  }
  body.home .container .projet:has(> .visuel + .visuel) > .visuel + .visuel {
    margin-top:0!important;
  }
}

/* Bouton INFOS mobile au-dessus des galeries et des calques */
@media(max-width:700px){.versinfos{position:relative;z-index:10010;pointer-events:auto!important;cursor:pointer;touch-action:manipulation}.blocinfos:not(.inactive){z-index:10020}}
