* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
font-family: "WTGaramono";
src: url('../fonts/WTGaramono-Regular.woff') format('woff'),
      url('../fonts/WTGaramono-Regular.woff2') format('woff2'),
      url('../fonts/WTGaramono-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "WTGaramono";
src: url('../fonts/WTGaramono-Italic.woff') format('woff'),
    url('../fonts/WTGaramono-Italic.woff2') format('woff2'),
    url('../fonts/WTGaramono-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}

body {
    font-family: "WTGaramono", Monospace;
    font-size: 10.5pt;
    color: #000;
    background-color: #fff;
    overflow: hidden;
}

section, p{
  padding-bottom: 12pt;
}

p:last-child{
  padding-block-end: 0;
}

p a {
  text-decoration:underline;
}

p a:hover{
  text-decoration: none;
  font-style: italic;
}

a {
  text-decoration: none;
  color: #000;
}
a:hover {
  text-decoration: none;
}
a:visited{
  text-decoration:none;
}

nav a {
  text-decoration: none;
  color: black;
}

nav a:hover .menu-label {
    font-style: italic;
}

nav a.active .menu-label {
    font-style: italic;
}

nav ul {
    list-style: none;
}

        /* Mobile: menu visible par défaut */
        @media (max-width: 768px) {
            nav a:hover .menu-label {
                font-style: normal;
            }
        }

.layout{
    display:grid;
    grid-template-columns:
        400px
        minmax(300px,0.7fr)
        2fr;
    height:100vh;
}
.menu{
  margin-left: 30px;
  margin-top: 50px;
  overflow:hidden;
  transition:transform .25s ease;
  display: inline-block;
    vertical-align: top;
}
.menu.hidden{
  transform:translateY(-100%);
}
.home {
  position: fixed;
  top: 30px;
  left: 0;
  padding-left: 30px;
  z-index: 101;
  margin-bottom: 30px;
  pointer-events: none;
  box-sizing: border-box;
}
.home a, .home {
    pointer-events: auto;
}
.content{
    padding-top:30px;
    padding-bottom:30px;
    overflow: auto;
    scrollbar-width: none;
}
.cursor-letter {
    position: absolute;
    pointer-events: none;
    font-family: "WTGaramono", Monospace;
    font-size: 10.5pt;
    font-weight:normal;
    color: #000;
    white-space: pre;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    z-index: 9999;
    /* NETTETÉ MAXIMALE */
    filter: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    will-change: transform, opacity;
}
.fade-out {
    transition: opacity 3s ease-out;
    opacity: 0;
}
.info-col-d{
    padding-top:30px;
    padding-left:100px;
    overflow: auto;
    scrollbar-width: none;
}
.info-col-g{
  padding:30px 0;
  overflow: auto;
  scrollbar-width: none;
}
.infos{
  position:fixed;
  bottom:0;
  right:0;
  padding-right:30px;
  padding-bottom:30px;
  background-color:white;
  text-align:right;
  z-index:101;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0px 0 20px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    font-size: 10.5pt;
}

.form-group input {
    font-family: "WTGaramono", Monospace;
    font-size: 10.5pt;
    color: #000;
    padding: 0;
    border: 0px solid #ccc;
    background-color: #fff;
    outline: none;
}

.form-group input:focus {
    background-color: #f9f9f9;
    border-width: 2px;
}

.submit-btn {
    font-family: "WTGaramono", Monospace;
    font-size: 10.5pt;
    color: #000;
    background-color: #fff;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #fff;
}
.artist::before{
    content:"-";
    display:block;
    margin:12px 0;
}
.artist{
    border:0;
}
.artist-expand{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:0;
  margin:0;
  background:none;
  border:none;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

.artist-content{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:
      max-height .35s ease,
      opacity .25s ease;
}

.artist.active .artist-content{
    opacity:1;
}
.artist.active .artist-icon{
    content:"(-)";
}

/* =========================================
   BASE
========================================= */

.gallery-desktop,
.gallery-mobile {
    font-family: monospace;
    color: #000;
}

.gallery-slide {
    margin: 0;
}

.gallery-slide figcaption {
    display: none;
}


/* =========================================
   DESKTOP
========================================= */

.gallery-desktop {
    position: fixed;
    top: 30px;
    right: 30px;
    margin-left: 30px;
    /*
     * La galerie commence après :
     * 400px de menu
     * + au minimum 300px de colonne content
     */
    left: max(
        700px,
        calc(400px + ((100vw - 400px) * 0.7 / 2.7))
    );
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-sizing: border-box;
    overflow: visible;
}


/* scène : taille calculée par JS */
.gallery-desktop .gallery-stage {
    position: relative;
    display: block;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    transition:
        width 0s ease,
        height 0s ease;
}

.gallery-desktop .gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0s ease;
}

.gallery-desktop .gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-desktop .gallery-slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
}


/* =========================================
   ZONES DE CLIC
========================================= */

.gallery-click-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 20;
    width: 50%;
    cursor: none;
}

.gallery-click-left {
    left: 0;
}

.gallery-click-right {
    right: 0;
}


/* =========================================
   CURSEUR PERSONNALISÉ
========================================= */

.gallery-cursor {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: none;
    font-family: "WTGaramono", monospace;
    font-size: 20px;
    line-height: 1;
    transform: translate(-50%, -50%);
}


/* =========================================
   FOOTER
========================================= */

.gallery-desktop .gallery-footer,
.gallery-mobile .gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 12px;
    font-family: "WTGaramono", monospace;
    font-size: 10.5pt;
    line-height: 1.2;
    width: 100%;
}

.gallery-caption {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: normal;
    padding-right: 20px;
}

.gallery-counter {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}


/* =========================================
   MOBILE PAR DÉFAUT : CACHÉ
========================================= */

.gallery-mobile {
    display: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .gallery-desktop {
        display: none;
    }

    .gallery-mobile {
        display: block;

        width: 100%;

        padding: 0 0 12px 0;
        box-sizing: border-box;
    }

    .gallery-mobile .gallery-stage {
        position: relative;

        width: 100%;

        overflow: hidden;
    }

    .gallery-mobile .gallery-slide {
        position: absolute;
        inset: 0;

        opacity: 0;
        pointer-events: none;

        transition: opacity 0.3s ease;
    }

    .gallery-mobile .gallery-slide.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .gallery-mobile .gallery-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    }

    .gallery-mobile .gallery-footer {
        width: 100%;
    }

    /* aucun curseur de navigation */
    .gallery-mobile .gallery-cursor,
    .gallery-mobile .gallery-click-zone {
        display: none;
    }

    .gallery-mobile .gallery-stage {
    cursor: default;
    touch-action: manipulation;
    }
        .layout{
          display: block;
          height: calc(100vh);
        }

        body{
            overflow:auto;
        }
        #navbar{
          padding-left: 50px;
        }
        .content{
          display: block;
          overflow:visible;
          padding:0 20px 50px 50px;
          margin-top:0;
        }
        .info-col-g{
          padding:0 20px;
        }
        .info-col-d{
          padding: 24px 20px 60px 20px;
        }
        .infos{
          padding:15px 30px 15px 0;
          width:100%;
        }
        .menu{
          position: sticky; /* Ou fixed selon préférence, mais sticky suffit si géré par JS */
          margin-top: 35px;
          top:35px; /* Doit être placé SOUS le header fixe (hauteur approx du header) */
          z-index: 100;
          transition: transform .25s;
          margin-left:0;
          margin-bottom: 20px;
          width: 100%;
          box-sizing: border-box;
        }
        .home {
          position: fixed;
          top: 0;
          padding-top: 15px;
          padding-bottom:15px;
          left: 0;
          width: 100%;
          margin: 0;
          background-color: white;
          z-index: 99;
        }
}
