/* Ajouts hugoleger.fr – novembre 2026 */

/* Nom du projet dans l'en-tête : devenu h1, même apparence que l'ancien span */
h1.logo-h1 { display: inline; margin: 0; padding: 0; font-family: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; text-transform: inherit; }

/* En-tête des pages projet */
.project-head { text-align: center; padding: 0 15px 30px; }
.project-title { font-family: Poppins, sans-serif; font-weight: 300; font-size: 30px; line-height: 1.3; letter-spacing: .02em; color: #313139; margin: 0 0 6px; }
.project-cat { font-family: Poppins, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6e6e76; margin: 0; }
.project-hint { font-family: Poppins, sans-serif; font-weight: 300; font-size: 13px; color: #6e6e76; margin: 14px 0 0; }

/* Avant / après : survol à la souris, appui au toucher */
.ba { position: absolute; top: 0; left: 0; right: 0; bottom: 0; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.ba-single { cursor: default; }
.ba img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.ba-before { opacity: 0; transition: opacity .3s ease; }
.ba.is-before .ba-before { opacity: 1; }
.ba-tag { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 10px; background: rgba(255,255,255,.88); color: #313139; font: 500 10px/1.4 Poppins, sans-serif; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.t-before { display: none; }
.ba.is-before .t-after { display: none; }
.ba.is-before .t-before { display: inline; }
@media (hover: hover) {
  .ba:hover .ba-before { opacity: 1; }
  .ba:hover .t-after { display: none; }
  .ba:hover .t-before { display: inline; }
}
.ba:focus-visible { box-shadow: inset 0 0 0 2px #313139; }

/* Boutons flottants : projet précédent / suivant et remonter */
#back-top { display: none !important; }   /* ancien bouton du thème, remplacé */
.pnav, .to-top {
  position: fixed; z-index: 990; display: flex; align-items: center; justify-content: center;
  height: 46px; min-width: 46px; padding: 0; border: 1px solid #e2e2e6; border-radius: 23px;
  background: rgba(255,255,255,.94); color: #313139; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: opacity .3s ease, transform .3s ease, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.pnav { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.pnav-prev { left: 24px; }
.pnav-next { right: 24px; }
.pnav:hover, .to-top:hover, .pnav:focus-visible, .to-top:focus-visible { background: #313139; color: #fff; border-color: #313139; text-decoration: none; outline: none; }
.pnav-ico { display: block; flex: 0 0 auto; margin: 0 13px; }
.pnav-label { max-width: 0; overflow: hidden; white-space: nowrap; font: 400 13px Poppins, sans-serif; letter-spacing: .02em; transition: max-width .35s ease, padding .35s ease; }
@media (hover: hover) {
  .pnav:hover .pnav-label, .pnav:focus-visible .pnav-label { max-width: 260px; }
  .pnav-prev:hover .pnav-label, .pnav-prev:focus-visible .pnav-label { padding-right: 18px; }
  .pnav-next:hover .pnav-label, .pnav-next:focus-visible .pnav-label { padding-left: 18px; }
}
.to-top { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 46px; opacity: 0; pointer-events: none; transform: translateY(8px); }
.project-page .to-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
.to-top .pnav-ico { margin: 0; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
/* masqués pendant le chargement et quand le menu plein écran est ouvert */
.page-loading.visible ~ .pnav-wrap .pnav, .page-loading.visible ~ .to-top,
body.show_mobile_menu .pnav, body.show_mobile_menu .to-top { opacity: 0 !important; pointer-events: none !important; }

/* Page À propos */
.about-wrap { max-width: 720px; padding-top: 30px; padding-bottom: 60px; }
.about-title { font-family: Poppins, sans-serif; font-weight: 300; font-size: 34px; color: #313139; margin: 0 0 24px; }
.about-page h2 { font-family: Poppins, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #6e6e76; margin: 34px 0 10px; }
.about-page p { font-size: 16px; line-height: 1.75; color: #313139; margin: 0 0 22px; }
.about-lead { font-size: 20px !important; line-height: 1.6 !important; }
.about-clients { font-family: Poppins, sans-serif; font-weight: 300; font-size: 14px !important; color: #6e6e76 !important; }
.about-page a { color: #313139; border-bottom: 1px solid #313139; text-decoration: none; }
.about-hint { color: #6e6e76 !important; font-size: 14px !important; margin-top: 30px; }
.about-cta a { display: inline-block; margin-top: 10px; padding: 12px 22px; border: 1px solid #313139; color: #313139; font: 500 12px Poppins, sans-serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.about-cta a:hover { background: #313139; color: #fff; }

@media (max-width: 767px) {
  /* En-tête mobile des pages projet : nom + icône menu sur une seule ligne */
  .project-page #header .container { display: flex; align-items: center; justify-content: space-between; text-align: left !important; }
  .project-page #header .logo-a { padding-left: 0 !important; }
  .project-page #header #logo { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .project-page #header #logo .logo-h1 { font-size: 18px; }
  .project-page #navi-trigger { flex: 0 0 auto; }
  .project-page .navi-trigger-text { display: none; }
  .project-head { padding-top: 10px; }
  .pnav, .to-top { height: 42px; min-width: 42px; }
  .to-top { width: 42px; }
  .pnav { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .pnav-prev { left: 16px; }
  .pnav-next, .to-top { right: 16px; }
  .to-top { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .project-page .to-top { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .pnav-ico { margin: 0 11px; }
  .project-title { font-size: 24px; }
  .about-title { font-size: 28px; }
  .about-lead { font-size: 18px !important; }
}

/* lien « Mentions légales » dans le pied de page (toutes les pages) */
.footer-legal { margin: 14px 0 0; text-align: center; font: 300 12px/1.5 Poppins, sans-serif; letter-spacing: .04em; }
.footer-legal a { color: #6e6e76; text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: #313139; text-decoration: underline; }
