/* Navigation : inversion sur le fond réel, sans bandeau ni ombre. */
body.home > .info, body.home.infos-open > .info,
.cms-project-modal .cms-project-nav {
  mix-blend-mode: difference !important;
  isolation: auto !important;
  background: transparent !important;
  filter: none !important;
  opacity: 1 !important;
}
/* Fondu original derrière le menu projet. Le texte reste en différence. */
body .cms-project-modal .cms-project-nav {
  mix-blend-mode:normal !important;
  isolation:isolate !important;
}
body .cms-project-modal .cms-project-nav::after {
  display:block !important; content:""; position:absolute;
  top:-10px; left:-10px; width:50vw; height:105px;
  background:linear-gradient(to bottom,#fff 0%,#fff 52%,rgba(255,255,255,.96) 68%,rgba(255,255,255,.72) 82%,rgba(255,255,255,0) 100%);
  z-index:-1; pointer-events:none;
}
body .cms-project-modal .cms-project-nav :is(a,button),
body .cms-project-modal .cms-project-nav::before { mix-blend-mode:difference !important; }
@media(max-width:700px){
  body .cms-project-modal .cms-project-nav::after { position:fixed; top:0; left:0; width:100vw; height:calc(15px + 2.1em + 24px); background:linear-gradient(to bottom,#fff 0%,#fff calc(15px + 2.1em),rgba(255,255,255,0) 100%); }
}
body.home > .info h1, body.home > .info a, body.home > .info button,
body.home > .info .versinfos h1, body.home > .info .index-nav .index-trigger,
.cms-project-modal .cms-project-nav::before,
.cms-project-modal .cms-project-nav button, .cms-project-modal .cms-project-nav a {
  color:#fff !important; -webkit-text-fill-color:#fff !important;
  text-shadow:none !important; filter:none !important;
  transition:opacity .25s ease !important;
}
body.home > .info a:hover, body.home > .info button:hover,
body.home > .info .versinfos:hover h1,
.cms-project-modal .cms-project-nav button:hover, .cms-project-modal .cms-project-nav a:hover { opacity:.45 !important; }
/* Images sans padding, survol à 70 % d’opacité. */
body.home .container .visuel { padding:0 !important; box-sizing:border-box !important; }
body.home .container .visuel img { margin:0 !important; transition:opacity .25s ease !important; }
body.home .container .visuel a::after, body.home .cms-home .visuel a::after { display:none !important; content:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
body.home .container .visuel a:hover img, body.home .cms-home .visuel a:hover img,
body.home .container .visuel a:focus-visible img { opacity:.7 !important; filter:none !important; }
/* Voiles blancs : INFOS 90 %, INDEX 96 %, sans flou. */
body.home .blocinfos, body.home > .index-overlay { background:rgba(255,255,255,.9) !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
body.home > .index-overlay { background:rgba(255,255,255,.96) !important; z-index:2147483100 !important; }
body.home > .index-overlay[hidden] { display:none !important; }
body.home .blocinfos > .infos-close, body.home > .index-overlay > .index-close,
body .cms-project-modal > button.cms-project-close {
  position:fixed !important; color:#fff !important; -webkit-text-fill-color:#fff !important;
  mix-blend-mode:difference !important; background:transparent !important; border:0 !important;
  padding:0 !important; margin:0 !important; cursor:pointer; text-shadow:none !important;
  filter:none !important; -webkit-filter:none !important; transition:opacity .25s ease !important;
}
body.home .blocinfos > .infos-close { top:10px; right:14px; z-index:10; font:400 18px/1 var(--site-adobe-font); letter-spacing:.03em; }
body.home .blocinfos .presentation { top:42px !important; }
body.home > .index-overlay > .index-close { top:10px !important; right:15px !important; z-index:10 !important; }
body.home .blocinfos > .infos-close:hover, body.home > .index-overlay > .index-close:hover,
body .cms-project-modal > button.cms-project-close:hover { opacity:.8 !important; filter:none !important; -webkit-filter:none !important; }
@media(max-width:700px){
  body.home > .info > .index-nav, .cms-project-modal .cms-project-nav [data-modal-index] { display:block !important; grid-column:1 !important; grid-row:2 !important; }
  body.home > .info > .versinfos, .cms-project-modal .cms-project-nav [data-modal-infos] { grid-row:3 !important; }
  body.home > .info > h1:last-child > a:first-child, .cms-project-modal .cms-project-nav a[href^="mailto:"] { grid-row:4 !important; }
  body.home > .info > h1:last-child > a:last-child, .cms-project-modal .cms-project-nav a[href*="instagram.com"] { grid-row:5 !important; }
  body.home > .index-overlay:not([hidden]) { display:block !important; padding:15px 10px calc(48px + env(safe-area-inset-bottom, 0px)) !important; box-sizing:border-box; }
  .index-overlay .index-shell { display:block !important; }
  .index-overlay .index-preview { display:none !important; }
  .index-overlay .index-list { overflow-x:hidden; min-width:0; }
  .index-overlay .index-table { min-width:0 !important; width:100% !important; table-layout:fixed !important; font-size:12px !important; }
  .index-overlay .index-table td, .index-overlay .index-table th { overflow-wrap:anywhere; }
  .index-overlay .index-table :is(th,td):nth-child(3),
  .index-overlay .index-table :is(th,td):nth-child(4) { display:none !important; }
  .index-overlay .index-table :is(th,td):nth-child(1) { width:14% !important; }
  .index-overlay .index-table :is(th,td):nth-child(2) { width:66% !important; }
  .index-overlay .index-table :is(th,td):nth-child(5) { width:20% !important; }
  body.home .blocinfos > .infos-close, body.home > .index-overlay > .index-close { top:15px !important; right:15px !important; font-size:14px !important; }
  body.home .blocinfos .presentation { top:115px !important; }
}

/* INDEX mobile : lignes compactes et fermeture en bas à gauche. */
@media(max-width:700px){
  body.home > .index-overlay .index-table :is(th,td) {
    padding:0 4px 0 0 !important; line-height:1 !important; height:auto !important;
  }
  body.home > .index-overlay .index-table th { padding-bottom:5px !important; }
  body.home > .index-overlay .index-table :is(a,button) { line-height:1 !important; padding:0 !important; min-height:0 !important; }
  body.home > .index-overlay > .index-close {
    top:auto !important; right:auto !important; left:15px !important;
    bottom:calc(15px + env(safe-area-inset-bottom, 0px)) !important;
    transform:none !important;
  }
}

/* Menu mobile : les quatre liens sur une seule ligne, sous le nom. */
@media (max-width:700px) {
  body.home > .info, body .cms-project-modal .cms-project-nav {
    grid-template-columns:repeat(4,max-content) !important;
    column-gap:.55em !important;
    font-size:clamp(11px,3.8vw,16px) !important;
  }
  body.home > .info > .index-nav, body .cms-project-modal .cms-project-nav [data-modal-index] { grid-column:1 !important; grid-row:2 !important; }
  body.home > .info > .versinfos, body .cms-project-modal .cms-project-nav [data-modal-infos] { grid-column:2 !important; grid-row:2 !important; }
  body.home > .info > h1:last-child > a:first-child, body .cms-project-modal .cms-project-nav a[href^="mailto:"] { grid-column:3 !important; grid-row:2 !important; }
  body.home > .info > h1:last-child > a:last-child, body .cms-project-modal .cms-project-nav a[href*="instagram.com"] { grid-column:4 !important; grid-row:2 !important; }
}

/* Projets : blocs de texte à 80 % de la largeur utile, alignés à gauche.
   La colonne et la galerie conservent leurs dimensions. */
body .cms-project-modal .cms-project-copy > :is(.cms-project-title,.cms-project-text,.cms-captions) {
  width:80% !important;
  max-width:80% !important;
  margin-left:0 !important;
  margin-right:auto !important;
}

/* Mobile : grille commune, nom sur toute la première ligne. */
@media (max-width:700px) {
  body.home > .info, body .cms-project-modal .cms-project-nav {
    display:grid !important; grid-template-columns:repeat(4,max-content) !important;
    column-gap:.55em !important; row-gap:0 !important;
    font:400 14px/1.05 var(--site-adobe-font) !important;
    height:auto !important; min-height:0 !important;
  }
  body.home > .info > h1:first-child, body .cms-project-modal .cms-project-nav::before {
    grid-column:1 / -1 !important; grid-row:1 !important;
  }
  body.home > .info > h1:last-child { display:contents !important; }
  body.home > .info > .index-nav, body.home > .info > .versinfos { margin:0 !important; padding:0 !important; }
  body.home > .info h1, body.home > .info a, body.home > .info button { font:inherit !important; letter-spacing:inherit !important; }
  body .cms-project-modal .cms-project-nav::after {
    height:calc(15px + 2.1em + 24px) !important;
  }
}

/* Menu mobile : quatre liens sur une ligne, espacements égaux et généreux. */
@media (max-width:700px) {
  body.home > .info, body .cms-project-modal .cms-project-nav {
    left:15px !important;
    right:15px !important;
    width:calc(100vw - 30px) !important;
    min-width:0 !important;
    max-width:calc(100vw - 30px) !important;
    box-sizing:border-box !important;
    grid-template-columns:repeat(4,max-content) !important;
    justify-content:space-between !important;
    column-gap:0 !important;
    row-gap:0 !important;
    font-size:clamp(11px,4vw,14px) !important;
  }
  body.home > .info > h1:first-child,
  body .cms-project-modal .cms-project-nav::before { grid-column:1 / -1 !important; grid-row:1 !important; }
  body.home > .info > h1:last-child { display:contents !important; }
  body.home > .info > .index-nav, body .cms-project-modal .cms-project-nav [data-modal-index] { display:block !important; grid-column:1 !important; grid-row:2 !important; }
  body.home > .info > .versinfos, body .cms-project-modal .cms-project-nav [data-modal-infos] { grid-column:2 !important; grid-row:2 !important; }
  body.home > .info > h1:last-child > a:first-child, body .cms-project-modal .cms-project-nav a[href^="mailto:"] { grid-column:3 !important; grid-row:2 !important; }
  body.home > .info > h1:last-child > a:last-child, body .cms-project-modal .cms-project-nav a[href*="instagram.com"] { grid-column:4 !important; grid-row:2 !important; }
  body.home > .info > h1:last-child > a { position:static !important; margin:0 !important; padding:0 !important; white-space:nowrap !important; }
}

/* Desktop : même grille que sur mobile, sur 4/6 de l’écran. */
@media (min-width:701px) {
  body.home > .info, body .cms-project-modal .cms-project-nav {
    display:grid !important; width:12.5vw !important; max-width:12.5vw !important;
    grid-template-columns:repeat(4,max-content) !important; justify-content:space-between !important;
    column-gap:0 !important; row-gap:0 !important; height:auto !important;
  }
  body.home > .info > h1:first-child, body .cms-project-modal .cms-project-nav::before {grid-column:1 / -1 !important;grid-row:1 !important;}
  body.home > .info > h1:last-child {display:contents !important;}
  body.home > .info > .index-nav, body .cms-project-modal .cms-project-nav [data-modal-index] {display:block !important;grid-column:1 !important;grid-row:2 !important;}
  body.home > .info > .versinfos, body .cms-project-modal .cms-project-nav [data-modal-infos] {grid-column:2 !important;grid-row:2 !important;}
  body.home > .info > h1:last-child > a:first-child, body .cms-project-modal .cms-project-nav a[href^="mailto:"] {grid-column:3 !important;grid-row:2 !important;}
  body.home > .info > h1:last-child > a:last-child, body .cms-project-modal .cms-project-nav a[href*="instagram.com"] {grid-column:4 !important;grid-row:2 !important;}
  body.home > .info > h1:last-child > a {position:static !important;margin:0 !important;padding:0 !important;white-space:nowrap !important;}
  body .cms-project-modal .cms-project-nav::after {width:calc(12.5vw + 20px) !important;}
}
.cms-project-close .close-mobile-label {display:none;}
@media (max-width:700px) {
  body .cms-project-modal > button.cms-project-close {top:auto !important;right:auto !important;left:15px !important;bottom:calc(15px + env(safe-area-inset-bottom, 0px)) !important;transform:none !important;z-index:2147483000 !important;}
  .cms-project-close .close-desktop-label {display:none;}
  .cms-project-close .close-mobile-label {display:inline;}
}

/* Correctif final : dimensions et retour mobile. */
@media (min-width:701px) {
  body.home > .info, body .cms-project-modal .cms-project-nav {
    font-size:clamp(8px, .76vw, 14px) !important;
    letter-spacing:0 !important;
  }
  body .cms-project-modal .cms-project-nav::after {width:50vw !important;}
}
@media (max-width:700px) {
  body #cms-project-modal .cms-project-copy {
    width:100% !important; max-width:100% !important;
    box-sizing:border-box !important; padding-left:15px !important; padding-right:15px !important;
  }
  body #cms-project-modal .cms-project-copy > :is(.cms-project-title,.cms-project-text,.cms-captions) {
    width:100% !important; max-width:100% !important; box-sizing:border-box !important;
    margin-left:0 !important; margin-right:0 !important;
  }
  body #cms-project-modal > button.cms-project-close {
    position:fixed !important; inset:auto auto calc(15px + env(safe-area-inset-bottom, 0px)) 15px !important;
    top:auto !important; right:auto !important; transform:none !important;
    display:block !important; visibility:visible !important; opacity:1 !important;
    pointer-events:auto !important; z-index:2147483647 !important;
    mix-blend-mode:normal !important; color:#000 !important; -webkit-text-fill-color:#000 !important;
    background:rgba(255,255,255,.9) !important; padding:5px !important;
    font-size:14px !important; touch-action:manipulation;
  }
  body #cms-project-modal > button.cms-project-close .close-desktop-label {display:none !important;}
  body #cms-project-modal > button.cms-project-close .close-mobile-label {display:inline !important;}
  body #cms-project-modal .cms-project-copy {padding-bottom:65px !important;}
}

/* Corps commun : même taille que le menu, titres de projet exclus. */
body.home { --ad-menu-size: clamp(8px, .76vw, 14px); }
@media (max-width:700px) { body.home { --ad-menu-size: clamp(11px, 4vw, 14px); } }
body.home > .info, body #cms-project-modal .cms-project-nav,
body.home .blocinfos .presentation,
body.home .blocinfos .presentation :is(h2,p),
body.home .blocinfos > .infos-close,
body.home > .index-overlay .index-table,
body.home > .index-overlay .index-table :is(th,td,a,button),
body.home > .index-overlay .index-preview-title,
body.home > .index-overlay > .index-close,
body.home .footer h6,
body #cms-project-modal .cms-project-text,
body #cms-project-modal .cms-project-copy .cms-caption,
body #cms-project-modal .cms-project-copy .cms-caption span,
body #cms-project-modal .cms-project-photo figcaption,
body #cms-project-modal > button.cms-project-close {
  font-size:var(--ad-menu-size) !important;
}
@media (max-width:700px) {
  body #cms-project-modal > button.cms-project-close {
    position:fixed !important;
    inset:auto auto calc(15px + env(safe-area-inset-bottom, 0px)) 15px !important;
    z-index:2147483647 !important;
    pointer-events:auto !important;
    transform:none !important;
    background:rgba(255,255,255,.9) !important;
  }
  body #cms-project-modal .cms-project-gallery {
    padding-bottom:calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Projets : largeur des textes et corps des légendes. */
@media (min-width:701px) {
  body #cms-project-modal .cms-project-copy > :is(.cms-project-title,.cms-project-text,.cms-captions) {
    width:95% !important; max-width:95% !important;
    margin-left:0 !important; margin-right:auto !important;
  }
}
@media (max-width:700px) {
  body #cms-project-modal .cms-project-gallery > .cms-project-photo:first-child {
    margin-top:var(--ad-project-menu-height, 30px) !important;
  }
}
body #cms-project-modal .cms-project-copy .cms-caption,
body #cms-project-modal .cms-project-copy .cms-caption span,
body #cms-project-modal .cms-project-photo figcaption {
  font-size:calc(var(--ad-menu-size) * .75) !important;
}

/* Fondu progressif et échelle typographique. */
body #cms-project-modal .cms-project-nav::after {
  height:140px !important;
  background:linear-gradient(to bottom,#fff 0%,#fff 24%,rgba(255,255,255,.94) 38%,rgba(255,255,255,.75) 53%,rgba(255,255,255,.45) 69%,rgba(255,255,255,.16) 85%,rgba(255,255,255,0) 100%) !important;
}
@media (min-width:701px) {
  body.home { --ad-menu-size:clamp(10.45px,.99275vw,18.2875px); }
}
@media (max-width:700px) {
  body #cms-project-modal .cms-project-nav::after {
    height:calc(15px + var(--ad-project-menu-height, 30px) + 48px) !important;
    background:linear-gradient(to bottom,#fff 0%,#fff calc(15px + var(--ad-project-menu-height, 30px)),rgba(255,255,255,.85) calc(27px + var(--ad-project-menu-height, 30px)),rgba(255,255,255,.5) calc(39px + var(--ad-project-menu-height, 30px)),rgba(255,255,255,.15) calc(51px + var(--ad-project-menu-height, 30px)),transparent 100%) !important;
  }
  body #cms-project-modal .cms-project-layout > button.cms-project-close {
    position:static !important; inset:auto !important; order:2 !important; flex:none !important;
    align-self:flex-start !important; margin:0 15px calc(15px + env(safe-area-inset-bottom, 0px)) !important;
    padding:0 !important; background:transparent !important; border:0 !important;
    color:#000 !important; -webkit-text-fill-color:#000 !important; mix-blend-mode:normal !important;
    font-size:var(--ad-menu-size) !important; cursor:pointer; pointer-events:auto !important;
    filter:none !important; transform:none !important;
  }
  body #cms-project-modal .cms-project-copy {padding-bottom:25px !important;}
  body #cms-project-modal .cms-project-gallery {padding-bottom:0 !important;}
}

/* Desktop et iPad : réduction de 5 % par rapport à la version +25 %, titres inclus. */
@media (min-width:701px) {
  body #cms-project-modal .cms-project-title { font-size:38px !important; }
  body.home > .info, body #cms-project-modal .cms-project-nav {
    width:20vw !important; min-width:20vw !important; max-width:20vw !important;
    box-sizing:border-box !important;
    justify-content:space-between !important; column-gap:0 !important;
  }
  body.home > .info .index-trigger, body #cms-project-modal .cms-project-nav :is(a,button),
  body #cms-project-modal .cms-project-nav::before { font-size:inherit !important; }
}

/* Nom cliquable : retour à la page d’accueil, sans paramètre projet. */
body #cms-project-modal .cms-project-nav::before { content:none !important; display:none !important; }
body #cms-project-modal .cms-project-nav > .ad-home-link { grid-column:1 / -1 !important; grid-row:1 !important; justify-self:start !important; }
body.home > .info > h1:first-child > .ad-home-link { position:static !important; display:inline-block !important; margin:0 !important; padding:0 !important; }
body .ad-home-link { text-decoration:none !important; cursor:pointer !important; pointer-events:auto !important; }

/* Retour projet : bas gauche sur desktop et iPad ; mobile en fin de contenu. */
@media (min-width:701px) {
  body #cms-project-modal > button.cms-project-close {
    position:fixed !important;
    inset:auto auto calc(15px + env(safe-area-inset-bottom, 0px)) 15px !important;
    transform:none !important;
    background:transparent !important;
    padding:0 !important;
    z-index:2147483647 !important;
    pointer-events:auto !important;
  }
}

/* Largeurs selon le viewport, indépendantes du périphérique de pointage. */
body.home > .info, body #cms-project-modal .cms-project-nav {
  width:20vw !important; min-width:0 !important; max-width:20vw !important;
  right:auto !important; padding:0 !important; margin:0 !important;
  box-sizing:border-box !important; grid-template-columns:repeat(4,max-content) !important;
  justify-content:space-between !important; column-gap:0 !important;
}
@media (min-width:701px) and (max-width:1366px) {
  body.home > .info, body #cms-project-modal .cms-project-nav {
    width:33vw !important; max-width:33vw !important;
  }
}
@media (max-width:700px) {
  body.home > .info, body #cms-project-modal .cms-project-nav {
    left:2.5% !important; right:2.5% !important;
    width:95vw !important; min-width:0 !important; max-width:95vw !important;
  }
  body.home > .info > h1:first-child {grid-column:1 / -1 !important;}
}

/* INFOS : alignement INDEX, retour et navigation. */
body.home .blocinfos > .infos-close {
  position:fixed !important; top:auto !important; right:auto !important;
  left:15px !important; bottom:15px !important;
  bottom:calc(15px + env(safe-area-inset-bottom, 0px)) !important;
  color:#000 !important; -webkit-text-fill-color:#000 !important;
  mix-blend-mode:normal !important; background:transparent !important;
  z-index:20 !important; pointer-events:auto !important;
}
body.home .blocinfos .presentation {
  top:10px !important; bottom:55px !important; padding:0 !important;
}
body.home .blocinfos .cms-info-section h2 {text-transform:uppercase !important;}
@media (min-width:701px) {
  body.home.infos-open > .info {
    position:fixed !important; top:10px !important; left:10px !important;
    z-index:2147483001 !important; visibility:visible !important;
    display:grid !important; mix-blend-mode:normal !important;
  }
  body.home.infos-open > .info :is(h1,a,button,.versinfos) {
    color:#000 !important; -webkit-text-fill-color:#000 !important;
  }
}
@media (min-width:1367px) {
  body.home .blocinfos .presentation {
    left:auto !important; right:14px !important;
    width:33.333333vw !important; max-width:33.333333vw !important;
  }
}
@media (max-width:700px) {
  body.home .blocinfos .presentation {
    top:15px !important; left:10px !important; right:10px !important;
    width:auto !important; bottom:55px !important;
  }
  body.home.infos-open > .info {visibility:hidden !important; pointer-events:none !important;}
  body.home.infos-open > .info * {pointer-events:none !important;}
  body.home .blocinfos > .infos-close {left:10px !important;}
}

/* INFOS mobile : réserve de défilement en fin de contenu. */
@media (max-width:700px) {
  body.home .blocinfos .presentation {
    overflow-y:auto !important;
    padding-bottom:60px !important;
    padding-bottom:calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing:border-box !important;
  }
  body.home .blocinfos .presentation::after {
    content:""; display:block; height:20px;
  }
}


/* Navigation de fin de projet : RETOUR / NEXT. */
body #cms-project-modal .cms-project-actions {
  display:flex !important; justify-content:space-between !important;
  align-items:center !important; box-sizing:border-box !important;
  padding:15px !important; padding-bottom:calc(15px + env(safe-area-inset-bottom, 0px)) !important;
  background:transparent !important; z-index:2147483647 !important;
  pointer-events:none;
}
body #cms-project-modal .cms-project-actions > button {
  position:static !important; inset:auto !important; margin:0 !important; padding:0 !important;
  border:0 !important; background:transparent !important; color:#000 !important;
  -webkit-text-fill-color:#000 !important; font:400 var(--ad-menu-size)/1 var(--site-adobe-font) !important;
  letter-spacing:normal !important; transform:none !important; filter:none !important;
  -webkit-filter:none !important; mix-blend-mode:normal !important; cursor:pointer; pointer-events:auto !important;
}
body #cms-project-modal .cms-project-actions > button:hover {opacity:.45 !important;filter:none !important;}
body #cms-project-modal .cms-project-actions > button[hidden] {display:none !important;}
@media (min-width:701px) {
  body #cms-project-modal .cms-project-actions {position:fixed !important;left:0;right:auto;bottom:0;width:50vw !important;padding-right:24px !important;}
  body #cms-project-modal .cms-project-gallery {padding-bottom:50px !important;}
}
@media (max-width:700px) {
  body #cms-project-modal .cms-project-actions {position:static !important;order:2 !important;flex:none !important;width:100% !important;}
}

/* Navigation projet : limitée à la colonne texte sur grand écran. */
@media (min-width:701px) {
  body #cms-project-modal .cms-project-copy {padding-bottom:65px !important;}
  body #cms-project-modal .cms-project-gallery {padding-bottom:0 !important;}
}
@media (max-width:700px) {
  body #cms-project-modal .cms-project-actions {position:static !important; margin-top:auto !important;}
}

/* Fondu de navigation bas : miroir du fondu supérieur. */
body #cms-project-modal .cms-project-actions {isolation:isolate;}
body #cms-project-modal .cms-project-actions::before {
  content:""; position:absolute; left:0; right:0; bottom:0; height:80px;
  background:linear-gradient(to top,#fff 0%,#fff 24%,rgba(255,255,255,.94) 38%,rgba(255,255,255,.75) 53%,rgba(255,255,255,.45) 69%,rgba(255,255,255,.16) 85%,rgba(255,255,255,0) 100%);
  z-index:-1; pointer-events:none;
}
@media (max-width:700px) {
  body #cms-project-modal .cms-project-actions {position:relative !important;}
  body #cms-project-modal .cms-project-actions::before {
    height:calc(100% + 24px);
    background:linear-gradient(to top,#fff 0%,#fff calc(100% - 24px),rgba(255,255,255,.85) calc(100% - 18px),rgba(255,255,255,.5) calc(100% - 12px),rgba(255,255,255,.15) calc(100% - 6px),transparent 100%);
  }
}

/* Menu : interligne commun. */
body.home > .info, body.home > .info h1, body.home > .info a,
body.home > .info button, body.home > .info .versinfos h1,
body #cms-project-modal .cms-project-nav,
body #cms-project-modal .cms-project-nav a,
body #cms-project-modal .cms-project-nav button {line-height:17px !important;}
@media (min-width:1367px) {
  body.home .blocinfos .presentation {
    left:51% !important; right:14px !important; width:auto !important; max-width:none !important;
  }
  body.home > .index-overlay .index-shell {
    grid-template-columns:minmax(0,1fr) minmax(0,20vw) !important;
  }
}
/* INDEX : liste pleine largeur sur mobile et tablette. */
@media (max-width:1366px) {
  body.home > .index-overlay:not([hidden]) {
    display:block !important; padding:15px 2.5vw 70px !important;
    box-sizing:border-box !important; overflow-y:auto !important;
  }
  body.home > .index-overlay .index-shell {display:block !important;}
  body.home > .index-overlay .index-preview {display:none !important;}
  body.home > .index-overlay .index-list {min-width:0 !important; overflow-x:hidden !important;}
  body.home > .index-overlay .index-table {width:100% !important; min-width:0 !important; table-layout:fixed !important;}
  body.home > .index-overlay .index-table :is(th,td) {line-height:17px !important; padding:0 4px 0 0 !important; height:auto !important; overflow-wrap:anywhere;}
  body.home > .index-overlay .index-table :is(a,button) {line-height:17px !important; padding:0 !important;}
  body.home > .index-overlay .index-table :is(th,td):last-child {text-align:right !important; padding-right:0 !important;}
  body.home > .index-overlay > .index-close {position:fixed !important; top:auto !important; right:auto !important; left:2.5vw !important; bottom:15px !important; bottom:calc(15px + env(safe-area-inset-bottom, 0px)) !important; transform:none !important; line-height:17px !important;}
  body.home > .index-overlay > .index-close .ad-index-desktop-label {display:none;}
}
@media (min-width:701px) and (max-width:1366px) {
  body.home > .index-overlay .index-table :is(th,td):nth-child(1) {width:7% !important;}
  body.home > .index-overlay .index-table :is(th,td):nth-child(2) {width:37% !important;}
  body.home > .index-overlay .index-table :is(th,td):nth-child(3) {display:table-cell !important;width:15% !important;}
  body.home > .index-overlay .index-table :is(th,td):nth-child(4) {display:table-cell !important;width:31% !important;}
  body.home > .index-overlay .index-table :is(th,td):nth-child(5) {width:10% !important;}
}
@media (min-width:1367px) {
  body.home > .index-overlay > .index-close .ad-index-mobile-label {display:none;}
}

/* iPad : agrandissement de 20 % des corps, interligne de 17 px. */
@media (min-width:701px) and (max-width:1366px) {
  body.home { --ad-menu-size:clamp(12.54px,1.1913vw,21.945px); }
  body #cms-project-modal .cms-project-title { font-size:31.92px !important; }
  body.home > .info, body.home > .info h1, body.home > .info a,
  body.home > .info button, body.home > .info .versinfos h1,
  body #cms-project-modal .cms-project-nav,
  body #cms-project-modal .cms-project-nav a,
  body #cms-project-modal .cms-project-nav button,
  body.home > .index-overlay .index-table :is(th,td,a,button),
  body.home > .index-overlay > .index-close { line-height:17px !important; }
  body.home > .info, body #cms-project-modal .cms-project-nav {
    grid-template-columns:repeat(4,max-content) !important;
  }
}

/* iPad : légendes des projets sur deux colonnes. */
@media (min-width:701px) and (max-width:1366px) {
  body #cms-project-modal .cms-project-copy .cms-captions,
  body:not(.home) .cms-captions,
  body:not(.home) .caption-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Desktop : légendes des projets sur trois colonnes. */
@media (min-width:1367px) {
  body #cms-project-modal .cms-project-copy .cms-captions,
  body:not(.home) .cms-captions,
  body:not(.home) .caption-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}


/* Adobe Fonts — Neue Haas Grotesk, toutes les pages. */
:root { --site-adobe-font: "neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif; }
html, body, body * {
  font-family: var(--site-adobe-font) !important;
}

/* Projets : espace avant le titre ajuste par ecran. */
body #cms-project-modal .cms-project-copy { padding-top:95px !important; }
@media (max-width:700px) {
  body #cms-project-modal .cms-project-copy { padding-top:30px !important; }
}

/* Tres grands ecrans : adaptation progressive, sans modifier les autres formats. */
@media (min-width:1920px) {
  body.home {
    --ad-menu-size: clamp(18.2875px, .9525vw, 36.575px);
    --ad-xl-line: clamp(21px, 1.09375vw, 42px);
  }
  body.home > .info, body.home > .info h1, body.home > .info a,
  body.home > .info button, body.home > .info .versinfos h1,
  body #cms-project-modal .cms-project-nav,
  body #cms-project-modal .cms-project-nav a,
  body #cms-project-modal .cms-project-nav button,
  body.home > .index-overlay .index-table :is(th,td,a,button) {
    line-height:var(--ad-xl-line) !important;
  }
  body.home > .info :is(h1,a,button) {font-size:inherit !important;}
  body #cms-project-modal .cms-project-title {font-size:clamp(38px,1.979167vw,76px) !important;}
  body #cms-project-modal .cms-project-copy {padding-top:clamp(95px,4.947917vw,190px) !important; padding-bottom:clamp(65px,3.385417vw,130px) !important;}
  body #cms-project-modal .cms-project-nav::after {height:clamp(140px,7.291667vw,280px) !important;}
  body #cms-project-modal .cms-project-actions::before {height:clamp(80px,4.166667vw,160px);}
  body.home .blocinfos .presentation {bottom:clamp(55px,2.864583vw,110px) !important;}
}

/* Mobile : une seule zone de défilement, sans hover persistant sur la HOME. */
@media (max-width:700px) {
  body #cms-project-modal {overflow:hidden !important;}
  body #cms-project-modal .cms-project-layout {
    height:100% !important; min-height:0 !important;
    overflow-x:hidden !important; overflow-y:auto !important;
    overscroll-behavior-y:contain; touch-action:pan-y pinch-zoom;
    -webkit-overflow-scrolling:touch;
  }
  body #cms-project-modal :is(.cms-project-gallery,.cms-project-copy) {
    height:auto !important; max-height:none !important; min-height:0 !important;
    overflow:visible !important; overscroll-behavior:auto !important;
    flex:0 0 auto !important;
  }
  body.home .container .visuel a:hover img,
  body.home .cms-home .visuel a:hover img,
  body.home .container .visuel a:focus-visible img {
    opacity:1 !important; filter:none !important;
  }
}

/* Mobile : neutraliser la surbrillance tactile Android et le contour du nom. */
@media (max-width:700px) {
  body.home > .info .ad-home-link,
  body #cms-project-modal .cms-project-nav :is(a,button),
  body.home .container .visuel,
  body.home .container .visuel *,
  body.home .cms-home .visuel,
  body.home .cms-home .visuel * {
    -webkit-tap-highlight-color: transparent !important;
  }
  body.home > .info .ad-home-link:focus:not(:focus-visible),
  body.home > .info .ad-home-link:active,
  body.home > .info .ad-home-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
  body.home > .info .ad-home-link:focus-visible:not(:active) {
    text-decoration: underline;
  }
  body.home .container .visuel a:active img,
  body.home .cms-home .visuel a:active img {
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Mobile : focus du nom dans les deux menus et ouverture douce du projet. */
@media (max-width:700px) {
  body.home > .info a.ad-home-link,
  body #cms-project-modal .cms-project-nav a.ad-home-link {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  body.home > .info a.ad-home-link:focus-visible,
  body #cms-project-modal .cms-project-nav a.ad-home-link:focus-visible {
    text-decoration: underline !important;
  }
  body.home .container .visuel a:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  body.home .container .visuel a:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: -2px !important;
  }
  body.home .container .visuel img { transition: none !important; }
  body.home #cms-project-modal:not([hidden]) {
    animation: ad-mobile-project-enter 180ms ease-out both;
  }
  @keyframes ad-mobile-project-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
@media (max-width:700px) and (prefers-reduced-motion:reduce) {
  body.home #cms-project-modal:not([hidden]) { animation: none !important; }
}

/* Mobile : nom non interactif dans les projets, focus sur le dialogue. */
@media (max-width:700px) {
  body #cms-project-modal .cms-project-nav > .ad-home-link {
    pointer-events:none !important; cursor:default !important;
    outline:none !important; box-shadow:none !important;
    text-decoration:none !important; opacity:1 !important;
  }
  body #cms-project-modal:focus {outline:none !important;box-shadow:none !important;}
}

/* Mobile : navigation fixe en bas, texte en mode différence. */
@media (max-width:700px) {
  body #cms-project-modal .cms-project-actions {
    position:fixed !important; inset:auto 0 0 0 !important;
    width:100% !important; margin:0 !important;
    padding-left:2.5vw !important; padding-right:2.5vw !important;
    isolation:auto !important; mix-blend-mode:difference !important;
  }
  body #cms-project-modal .cms-project-actions::before {
    content:none !important; display:none !important; background:none !important;
  }
  body #cms-project-modal .cms-project-actions > button {
    color:#fff !important; -webkit-text-fill-color:#fff !important;
  }
  body #cms-project-modal .cms-project-layout {
    box-sizing:border-box !important;
    padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Desktop : hover HOME plus discret. */
@media (min-width:1367px) {
  body.home .container .visuel a:hover img,
  body.home .cms-home .visuel a:hover img,
  body.home .container .visuel a:focus-visible img { opacity:.8 !important; }
}

/* Mobile : composition du texte avec le fond réel du projet, hors du scroller. */
@media (max-width:700px) {
  body #cms-project-modal > .cms-project-actions {
    position:absolute !important; background:transparent !important;
    mix-blend-mode:difference !important; isolation:auto !important;
    opacity:1 !important;
  }
  body #cms-project-modal > .cms-project-actions > button {
    color:#fff !important; -webkit-text-fill-color:#fff !important;
    opacity:1 !important; mix-blend-mode:normal !important;
  }
}

/* Mobile : numeros de legende en bas a gauche des photographies. */
@media (max-width:700px) {
  body #cms-project-modal .cms-project-photo > figcaption {
    top:auto !important;
    bottom:10px !important;
    left:10px !important;
  }
}

/* CV dans INFOS */
body.home .blocinfos .presentation .cms-cv {margin:40px 0 30px;}
body.home .blocinfos .presentation .cms-cv-row {gap:12px;margin:0 0 24px;}
body.home .blocinfos .presentation .cms-cv-row h2,body.home .blocinfos .presentation .cms-cv-row p {font:inherit!important;color:inherit!important;text-align:left!important;text-transform:none!important;margin:0!important;overflow-wrap:anywhere;}
body.home .blocinfos .presentation .cms-cv-row p {white-space:pre-line;margin-bottom:1.3em!important;}
body.home .blocinfos .presentation .cms-cv-row p:last-child {margin-bottom:0!important;}
body.home .blocinfos .presentation {scrollbar-width:thin;scrollbar-color:#555 transparent;}
body.home .blocinfos .presentation::-webkit-scrollbar {width:1px!important;background:transparent!important;}
body.home .blocinfos .presentation::-webkit-scrollbar-track {background:transparent!important;}
body.home .blocinfos .presentation::-webkit-scrollbar-thumb {background:#555!important;border:0!important;border-radius:0!important;}
@supports selector(::-webkit-scrollbar) {body.home .blocinfos .presentation {scrollbar-width:auto;scrollbar-color:auto;}}

/* CV : neutraliser les anciennes règles de positionnement des div dans INFOS. */
body.home .blocinfos .presentation .cms-cv,
body.home .blocinfos .presentation .cms-cv-row,
body.home .blocinfos .presentation .cms-cv-row > div {
  position:static !important; inset:auto !important;
  width:auto !important; height:auto !important; max-width:none !important;
  min-width:0 !important; overflow:visible !important;
  float:none !important; transform:none !important;
  columns:auto !important; transition:none !important;
}
body.home .blocinfos .presentation .cms-cv,
body.home .blocinfos .presentation .cms-cv-row > div {display:block !important;}
body.home .blocinfos .presentation .cms-cv-row {display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,2fr); align-items:start;}
body.home .blocinfos .presentation .cms-cv-row > div {margin:0 !important; padding:0 !important;}
body.home .blocinfos .presentation .cms-cv-row :is(h2,p) {position:static !important; width:auto !important; max-width:100% !important; columns:auto !important; float:none !important;}

body.home .blocinfos .presentation .cms-cv-row p em {font-style:italic !important;}

/* INFOS : marge interieure droite commune au texte et au CV. */
body.home .blocinfos .presentation {
  box-sizing:border-box !important;
  padding-right:clamp(16px, 4vw, 120px) !important;
}
