/* version ordinateur*/

@media screen and (min-width: 651px) {

::selection { background: grey; color:inherit; }
::-moz-selection { background: grey; color:inherit; }

    /*GLOBAL PAR DEFAUT*/
    html {
    width:100%;
    margin:none;
    padding: 0px;
    }

    /*HEADER*/
    header {
    height: 50px;
	position: fixed;
	width: 100%;
	z-index: 100;
    top:0px;
    left:0px;
    margin-bottom:35px;
  background-color:transparent;
    }

    header .logo {
    width:286px;
    }

    header h1 {
    text-align:left;
    font-size:28px;
    font-family:helvetica;
    color:black;
    margin-left:28px;
    margin-top:24px;
    margin-bottom:0px;
    width:290px;
    top:0%;
    width:60px;
    height:30px;
    position:fixed;
    opacity: 1;
    z-index:115;
    font-weight: 450;
      -webkit-user-select: none; /* Safari */
     -ms-user-select: none; /* IE 10 and IE 11 */
     user-select: none; /* Standard syntax */
    }

    header h1 a {
        color:black;
    }

    header a:hover {
        text-decoration: none;
        color:white;
        cursor:pointer;
    }

    header a:visited {
        color:black;
    }

    /*=>animation*/
    header h1:hover {
    opacity:0.5;
    transition:0.5s;
    }

    header h1:not(hover) {
    opacity:1;
    transition:0.5s;
    }

    /*=>menu*/
    header p a:hover {
    text-decoration: underline;
    }

    .listemenu {
    list-style-type: none;
    margin: 0;
    top: 25px;
    padding: 0;
    width: inherit;
    position: fixed;
    margin-left: 280px;
    cursor:crosshair;
    right:0%;
    color:black;
    display none;
    }

    li a:visited {
    color:black;
    }

    li {
    float: left;
    }

    li a, .dropbtn {
    display: block;
    color: blue;
    font-size:12px;
    text-align: center;
    padding: 3px 30px;
    text-decoration: none;
    font-family: helvetica;
    letter-spacing:1px;
    cursor:crosshair;
    }

        /*=>langues*/
        .FREN {
        display:block;
        }

        /*MENU MOBILE*/

        /* Style the navigation menu */
    .topnav {
      overflow: hidden;
      position: absolute;
        width:99%;
        right:2px;
        z-index:110;
    }

    /* Hide the links inside the navigation menu (except for logo/home) */
    .topnav #myLinks {
    text-align: left;
        border-style:solid;
        border-width: 1px;
        border-color:black;
    }

    /* Style navigation menu links */
    .topnav a {
      color: black;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
      display:block;
    }

    /* Style the hamburger menu */
    .topnav a.icon {
      display: block;
      position: absolute;
      right: 0px;
      top: 0px;
        width:50px;
        height:200px;
        z-index: 110;
    }

    /* Add a grey background color on mouse-over */

.svgcontent {
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */
  opacity: 1;
  transition: 0.5s;
  position: relative;
  z-index: 120;
  cursor: pointer;
}

.svgcontent * {
  cursor: pointer;
}
    .svgcontent:hover {
      opacity:0.5;
      transition:0.5s;
      cursor:pointer;
   }

    .mylinks a:hover {
      opacity:0.5;
      transition:0.5s;
    }
        .mylinks {
            padding-bottom:5px;
            padding-top:5px;
            margin-top: 50px;
            margin-right:5px;
            display:block;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            background-color: white;
            }
        .mylinks.is-open {
            max-height: 700px;
            opacity: 1;
            pointer-events: auto;
        }
        .mylinks a{
            font-size: 100px;
            font-family: helvetica, arial;
            padding:0px;
            padding-left:19px;
            font-weight: 400;
            line-height: 110px;
            letter-spacing: 0.2px;
            text-align:center;
        }

    /* Style the active link (or home/logo) */
    .active {
        width:50px;
        height:30px;
        }

        /*anim menu mobile*/
        .anim {
      stroke-dasharray: 1000;
      stroke-dashoffset: 1000;
      animation: dash 20s linear forwards;
    }

    @keyframes dash {
      to {
        stroke-dashoffset: 0;
      }
        to {
            opacity: 1;
        }
    }


    /*ADDed*/
    li a:hover, .dropdown:hover .dropbtn {
    color:lightgrey;
	text-decoration: none;

}

li.dropdown {
    display: block;
}


.dropdown-content {
    display: none;
    position: absolute;
    width: inherit;
    padding-bottom: 20px;
    padding-right: 10px;
    /*border-width: 1px;
    border-color:black;
    border-style:solid;
    border-top:none;*/

}

.dropdown-content a {
    font-family:helvetica;
    width:118px;
    height:20px;
    margin:0;
    padding:0;
    letter-spacing: 1px;
    font-size: 14px;
    color: black;
    padding: 8px 5px;
    text-decoration: none;
    display: block;
    text-align: left;
    padding-left:17px;
    font-family: helvetica;
}

.dropdown-content .special{
        text-align: center;
        padding-bottom: 2px;
    }

.dropdown-content a:hover {
    cursor:pointer;
    text-decoration: underline;
    }

.dropdown:hover .dropdown-content {
    display: block;
}
    /*ADDed*/


    /*CONTENU*/

    #content {
    position:absolute;
    left:25%;
    top:100px;
    text-align: justify;
    display: block;
    margin:0 auto;
    padding-right: 25%;
    color:black;
    font-size:14px;
            background-color:red;

    }

    summary {
        outline:none;
    }

   details a:hover{background-color:#00007B;transition:0.5s;
    }
/*INDEX:WORK*/

.gallery {
  padding-left:22px;
  padding-right:22px;
  padding-top:120px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
  gap: 40px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery img:hover {
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  justify-content: center;
  align-items: center;
  opacity: 1;
  -webkit-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

.lightbox img {
  width: 79vw;
  height: 79vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */
}

.lightbox img.is-fading {
  opacity: 0.3;
}

.lightbox.is-switching {
  opacity: 0.3;
}

.lightbox.is-closing {
  opacity: 0;
}

.lightbox.is-opening {
  opacity: 0;
}

@media screen and (max-width: 900px) and (min-width: 651px) {
  .lightbox img {
    width: 90vw;
    height: 90vh;
  }
}

.close {
  color:white;
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */

}

.prev, .next {
  color:white;
  position: absolute;
  top: 45%;
  font-size: 44px;
  cursor: pointer;
  padding: 20px;
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */

}

.prev { left: 20px; }
.next { right: 20px; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caption {
  margin-top: 20px;
  font: normal 19px/22px "Folio Medium",Helvetica,Arial,sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  -webkit-text-stroke: 0.2px currentColor;
  color: white;
  max-width: 80%;
  text-align: center;
}



}
/* version appareils mobiles*/
@media screen and (max-width: 650px) {
  @-ms-viewport { width: 320px; }

::selection { background: grey; color:inherit; }
::-moz-selection { background: grey; color:inherit; }

    /*GLOBAL PAR DEFAUT*/
    html {
    width:100%;
    margin:none;
    padding: 0px;
    }

    /*HEADER*/
    header {
  height: 50px;
	position: fixed;
	width: 100%;
	z-index: 100;
    top:0px;
    left:0px;
    margin-bottom:35px;
    }

    header .logo {
    width:286px;
    }

    header h1 {
    text-align:left;
    font-size:28px;
    font-family:helvetica;
    color:black;
    margin-left:28px;
    margin-top:24px;
    margin-bottom:0px;
    width:290px;
    top:0%;
    width:60px;
    height:30px;
    position:fixed;
    opacity: 1;
    z-index:115;
    font-weight: 450;
    -webkit-user-select: none; /* Safari */
   -ms-user-select: none; /* IE 10 and IE 11 */
   user-select: none; /* Standard syntax */
    }

    header h1 a {
        color:black;
    }

    header a:hover {
        text-decoration: none;
        color:white;
        cursor:pointer;
    }

    header a:visited {
        color:black;
    }

    /*=>animation*/
    header h1:hover {
    opacity:0.5;
    transition:0.5s;
    }

    header h1:not(hover) {
    opacity:1;
    transition:0.5s;
    }

    /*=>menu*/
    header p a:hover {
    text-decoration: underline;
    }

    .listemenu {
    list-style-type: none;
    margin: 0;
    top: 20px;
    padding: 0;
    width: inherit;
    position: fixed;
    margin-left: 280px;
    cursor:crosshair;
    right:0%;
    color:black;
    }

    li a:visited {
    color:black;
    }

    li {
    float: left;
    }

    li a, .dropbtn {
    display: block;
    color: blue;
    font-size:12px;
    text-align: center;
    padding: 3px 30px;
    text-decoration: none;
    font-family: helvetica;
    letter-spacing:1px;
    cursor:crosshair;
    }

        /*=>langues*/
        .FREN {
        display:block;
        }

        /*MENU MOBILE*/

        /* Style the navigation menu */
    .topnav {
      overflow: hidden;
      position: absolute;
        width:99%;
        right:2px;
        z-index:110;
    }

    /* Hide the links inside the navigation menu (except for logo/home) */
    .topnav #myLinks {
    text-align: left;
        border-style:solid;
        border-width: 1px;
        border-color:black;
    }

    /* Style navigation menu links */
    .topnav a{
      color: black;
      padding: 14px 16px;
      text-decoration: none;
      font-size: 17px;
      display:block;
    }

    /* Style the hamburger menu */
    .topnav a.icon {
      display: block;
      position: absolute;
      right: 0px;
      top: 0px;
        width:50px;
        height:200px;
        z-index: 110;
    }

/* Add a grey background color on mouse-over */

.svgcontent {
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */
  opacity: 1;
  transition: 0.5s;
  position: relative;
  z-index: 120;
  cursor: pointer;
}

.svgcontent * {
  cursor: pointer;
}

.svgcontent:hover {
  opacity:0.5;
  transition:0.5s;
  cursor:pointer;

}

.mylinks a:hover {
    opacity:0.5;
    transition:0.5s;
}
    .mylinks {
        padding-bottom: 8px;
        padding-top: 8px;
        margin-top: 50px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
        display:block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        background-color: white;
        }
    .mylinks.is-open {
        max-height: 700px;
        opacity: 1;
        pointer-events: auto;
    }
    /* Phone: large type scaled to viewport width (not the old 80px fixed size) */
    .mylinks a{
        display: block;
        width: 100%;
        box-sizing: border-box;
        font-size: clamp(30px, 12vw, 58px);
        font-family: helvetica, arial;
        padding: 10px 10px;
        font-weight: 400;
        line-height: 1.25;
        letter-spacing: 0.2px;
        text-align:center;
    }

/* Style the active link (or home/logo) */
  .active {
      width:50px;
      height:30px;
      }
    }

    /*anim menu mobile*/
    .anim {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 20s linear forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
    to {
        opacity: 1;
    }
}

    /*CONTENU*/

    #content{
    position:absolute;
    top:70px;
    left:10%;
    right:10%;
    text-align: justify;
    display: block;
    margin:0 auto;
    color:black;
    font-size: 15px;
    width:100%;
    height:100%;
    }

    summary {
        outline:none;
    }

   details a:hover{
        background-color: #00007B;
        transition:0.5s;
    }
}

/*INDEX:WORK*/

.gallery {
  padding-left:22px;
  padding-right:22px;
  padding-top:120px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery img:hover {
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  justify-content: center;
  align-items: center;
  opacity: 1;
  -webkit-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

.lightbox img {
  width: 79vw;
  height: 79vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */
}

.close {
  color:white;
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 36px;
  font-weight: 300;
  z-index: 1002;
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */
}

.prev, .next {
  color:white;
  position: absolute;
  top: 0;
  height: 100%;
  width: clamp(40px, calc(10vw - 8px), 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 55px;
  font-weight: 300;
  z-index: 1001;
  cursor: pointer;
  padding: 0;
  -webkit-user-select: none; /* Safari */
 -ms-user-select: none; /* IE 10 and IE 11 */
 user-select: none; /* Standard syntax */
}

.prev { left: 0; }
.next { right: 0; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caption {
  margin-top: 20px;
  font: normal 19px/22px "Folio Medium",Helvetica,Arial,sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  -webkit-text-stroke: 0.2px currentColor;
  color: white;
  max-width: 80%;
  text-align: center;
}

@media screen and (min-width: 651px) {
  .lightbox-content {
    padding-top: 18px;
    box-sizing: border-box;
  }

  .lightbox img {
    height: calc(100vh - 140px);
  }
}

@media screen and (max-width: 650px) {
  .gallery {
    padding-top: 120px;
  }

  .lightbox {
    opacity: 1;
    -webkit-transition: opacity 0.4s ease-in-out;
    transition: opacity 0.4s ease-in-out;
  }

  .lightbox.is-switching {
    opacity: 0.3;
  }

  .lightbox.is-closing,
  .lightbox.is-opening {
    opacity: 0;
  }

  .lightbox-content {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100vh;
    align-items: center;
    justify-content: center;
  }

  .lightbox img {
    margin: 0;
    width: 94vw;
    height: auto;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    opacity: 1;
    -webkit-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
  }

  .lightbox img.is-fading {
    opacity: 0.3;
  }

  .lightbox img.is-landscape {
    width: 100vw;
    height: auto;
    max-height: calc(100vh - 140px);
  }

  .caption {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    margin-top: 0;
    width: 88%;
    z-index: 1000;
    pointer-events: none;
  }

  .close {
    font-size: 24px;
    top: 4px;
    left: 14px;
  }

  /* Keep navigation functional on mobile without visible arrows */
  .prev,
  .next {
    color: transparent;
    font-size: 0;
    top: 0;
    width: 22%;
    height: 100%;
    transform: none;
    display: block;
    padding: 0;
  }

  .prev { left: 0; }
  .next { right: 0; }
}

/* Menu icon: Chrome clips SVG strokes under overflow:hidden + tight viewBox */
.topnav {
  overflow: visible;
}

.svgcontent svg {
  overflow: visible;
  display: block;
}

/* Startup popup */
.startup-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 1;
  z-index: 2000;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.startup-popup.is-visible {
  display: flex;
}

.startup-popup-box {
  color: white;
  padding: 30px 22px;
  max-width: 1100px;
  width: calc(100% - 40px);
  text-align: center;
  font-family: helvetica, arial, sans-serif;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.startup-popup-box.is-fading {
  opacity: 0;
}

/* UPCOMING-from-menu: text ↔ image crossfade (sync with POPUP_CONTENT_FADE_UPCOMING_MS in script.js) */
body.upcoming-popup-open .startup-popup-box {
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup-popup-box p {
  margin: 0;
}

.startup-popup-title {
  font-size: clamp(18px, 2.8vw, 34px);
  letter-spacing: 1.2px;
  line-height: 1.35;
}

@media screen and (max-width: 650px) {
  .startup-popup-title {
    font-size: clamp(16px, 4.8vw, 28px);
    line-height: 1.25;
  }
}

/* Tablet / narrow window: larger popup text (651px–900px, includes ~660) */
@media screen and (min-width: 651px) and (max-width: 900px) {
  .startup-popup-title {
    font-size: clamp(22px, 4.6vw, 44px);
    line-height: 1.32;
  }
}

/* Image popup: fill entire viewport */
#startup-popup-image-wrap .startup-popup-box {
  padding-top: 5px;
  padding-bottom: 5px;
  margin: 0;
  box-sizing: border-box;
  max-width: 100vw;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#startup-popup-image-wrap .startup-popup-image {
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.startup-popup-image {
  display: block;
  margin: 26px auto 0;
  max-width: 100vw;
  max-height: 80vh;
  width: auto;
  height: 80vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.startup-popup-image.is-fading-out {
  opacity: 0;
}

.startup-popup-image:not([src]),
.startup-popup-image[src=""] {
  display: none;
}

.startup-popup-hint {
  margin-top: 14px !important;
  font-size: 13px;
  opacity: 0.75;
}

/* UPCOMING from menu: solid black behind popups */
body.upcoming-popup-open .startup-popup {
  background: #000;
}

/* UPCOMING from menu: header above popup — same size/placement as normal header */
body.upcoming-popup-open header {
  z-index: 2100;
  position: fixed;
  height: 50px;
  width: 100%;
  left: 0;
  top: 0;
  margin-bottom: 35px;
  box-sizing: border-box;
  color: white;
  pointer-events: auto;
  background-color: transparent;
}

body.upcoming-popup-open header h1 a,
body.upcoming-popup-open header h1 a:visited {
  color: white;
}

/* Topnav sits above the logo (z-index 2110 vs h1 115) and blocks hovers on the name — let events pass through except menu UI */
body.upcoming-popup-open .topnav .svgcontent,
body.upcoming-popup-open .topnav #myLinks.is-open {
  pointer-events: auto;
}

body.upcoming-popup-open header h1 {
  cursor: pointer;
  transition: opacity 0.5s ease;
  /* Default h1 is 60×30px while the title is ~280px wide — enlarge hit area */
  width: auto;
  min-width: min(300px, 86vw);
  height: auto;
  min-height: 36px;
  overflow: visible;
}

body.upcoming-popup-open header h1:hover {
  opacity: 0.5;
}

body.upcoming-popup-open header h1 a:hover {
  color: white;
}

body.upcoming-popup-open .svgcontent {
  cursor: pointer;
  /* Global .svgcontent uses transition: 0.5s (all properties) — limit to opacity to avoid layout jitter */
  transition: opacity 0.5s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

body.upcoming-popup-open .svgcontent:hover {
  opacity: 0.5;
}

body.upcoming-popup-open .svgcontent * {
  cursor: pointer;
}

/* With UPCOMING popup open: menu panel = white text on black */
body.upcoming-popup-open .mylinks {
  background-color: black;
}

body.upcoming-popup-open .topnav #myLinks {
  border-color: white;
}

body.upcoming-popup-open .mylinks a,
body.upcoming-popup-open .mylinks a:visited {
  color: white;
}

body.upcoming-popup-open .svgcontent svg path,
body.upcoming-popup-open .svgcontent svg circle {
  stroke: white;
}

body.upcoming-popup-open .topnav {
  z-index: 2110;
  position: absolute;
  width: 99%;
  right: 2px;
  overflow: visible;
  pointer-events: none;
}

/* Menu links: hover = half opacity, not white (header a:hover would hide text on white panel) */
header .mylinks a:hover {
  color: black;
  opacity: 0.5;
  transition: opacity 0.5s;
}

body.upcoming-popup-open header .mylinks a:hover {
  color: white;
  opacity: 0.5;
}
