body {
    font-family: 'Anybody_Condensed-Bolditalic', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    /*background-image: url('../img/calque1.png');*/
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.main_images {
  position: absolute;
  top: 347px;
  left: 200px;
  z-index: 0; /* was -1 */
}

.main_images #main1 {
  margin-right: 135px;
}

.main_images #main2 {
  margin-right: 114px;
}

/* position each carousel like the old main images */
.main_images #carousel1 {
  position: absolute;
  top: 0;
  left: 0;
}

.main_images #carousel2 {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 526px; /* was main1 margin-right */
}

.main_images #carousel3 {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 1047px; /* 135 + 114 */
}

.main_links {
  cursor: pointer;
}

.main_links #main_link1 {
  position: absolute;
  top: 205px;
  left: 661px;
}

.main_links #main_link1 span {
  display: inline-block;
  background: white;
  padding: 0 20px 15px 5px;
  color: #0068a2;
  font-size: 70px;
  line-height: 0.8;
}

.main_links #main_link2 {
  position: absolute;
  top: 705px;
  left: 135px;
  color: #60aee0;
  font-size: 72px;
  width: 550px;
  background-color: transparent;
}

.main_links #main_link2 span {
  display: inline-block;
  line-height: 0.5;
  background: white;
  color: #60aee0;
  font-size: 67px;
  padding-top: 30px;
  padding-right: 15px;
}

.main_links #main_link3 {
  position: absolute;
  top: 705px;
  left: 1340px;
}

.main_links #main_link3 span {
  display: inline-block;
  background: white;
  padding: 10px 10px 10px 10px;
  color: #e36855;
  font-size: 70px;
  line-height: 0.5;
}

#main_link1 span.underline1 {
  text-decoration: underline;
  color: #0068a2;
}

#main_link2 span.underline {
  text-decoration: underline;
  color: #60aee0;
}

#main_link3 span.underline {
  text-decoration: underline;
  text-decoration-thickness: 5px;
  color: #e36855;
}

.arrow-btn {
    /*position: absolute;
    left: 60px;
    bottom: 30px;*/
    display: flex;
    flex-direction: row;
    z-index: 1000;
}

.arrow-btn button,
.arrow-btn a {
    width: 56px;
    height: 56px; 
    border: 0;
    padding: 0;
    background-color: transparent; 
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
    cursor: pointer;
    z-index: 15;
}

#prev-btn {
    width: 66px;
    height: 66px;
    background-image: url('../img/up_arrow.png');
    z-index: 15;
}

#next-btn {
    width: 66px;
    height: 66px;
    background-image: url('../img/left_arrow.png');
    z-index: 15;
}

.lang-btn {
    /*position: absolute;
    right: 60px;
    bottom: 30px;*/
    display: flex;
    flex-direction: row;
    z-index: 1000;
}

.lang-btn button,
.lang-btn a {
    width: 66px;
    height: 66px;
    border: 0;
    padding: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
    cursor: pointer;
    z-index: 15;
}

.lang-btn .fr-btn { background-image: url('../img/FR.png'); }
.lang-btn .en-btn { background-image: url('../img/EN.png'); }

.lang-btn button:hover,
.lang-btn button:focus {
    outline: none;
    filter: brightness(1.1);
}

.bottom-controls {
    position: absolute;
    width: 1813px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 980px;
    z-index: 1000;
}

.bottom-controls .arrow-btn,
.bottom-controls .lang-btn {
    position: static !important;
}

.theme_title {
  position: absolute;
  top: 427px;
  left: 510px;
  width: 1050px;
  display: inline-block;
  padding: 0 20px 15px 5px;
  color: #094168;
  font-size: 110px;  /* Changed from 118px to 110px */
  z-index: 5;
}

.theme-title--small {
  font-size: 70px !important;
}

.theme_undertext{
  position: absolute;
  top: 630px;
  left: 1115px;
  width: 603px;
  display: inline-block;
  padding: 0 20px 15px 5px;
  color: #094168;
  font-size: 28px;
  font-family: "WorkSansMedium";
  line-height: 1.1;
}
.theme-content--large {
  font-size: 28px !important;
}

.underline {
  text-decoration: underline;
}

.sheet-buttons {
  width: 100%;
  height: 100%;
}

/* Media Buttons list */
ul.media-list {
  list-style-type: none;
  position: absolute;
  top: 515px;
  right: 58px;
  width: 100%;
  text-align: end;
  /*border: 1px solid black;*/
  margin: 0;
  padding:0;
}

ul.media-list li {
  display: inline-block;
  margin-left: 1.25em;
}

/* shared base class if needed elsewhere */
.sheet-btn {
  position: absolute;
  background: var(--theme-color);
  color: #fff;
  border: 1px solid var(--theme-color);
  border-radius: 1160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  animation: sheetPulse 2.5s ease-in-out infinite;
  cursor: pointer;
  z-index: 1;
}


/* Button 1 */
.sheet-btn-1 {
  top: 484px;
  left: 70px;
  width: 400px;
  height: 400px;
}

.sheet-btn-2 {
  top: 109px;
  left: 395px;
  width: 350px;
  height: 350px;
}

.sheet-btn-3 {
  top: 704px;
  left: 610px;
  width: 320px;
  height: 320px;
}

.sheet-btn-4 {
  top: 72px;
  left: 1425px;
  width: 400px;
  height: 400px;
}

.sheet-btn-1 span,
.sheet-btn-2 span,
.sheet-btn-3 span,
.sheet-btn-4 span {
  display: inline-flex;
  font-size: 30px;
  max-width: 320px;
}

.sheet-bubble-title {
  margin-right: 8px;
}

.sheet-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.sheet_img {
  position: absolute;
  background-size:cover;
  background-repeat: no-repeat;
  background-position: top;
  top: -232px;
  right: -4px;
  width: 1398px;
  height: 741px;
  z-index: -2;
}

.block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

._block {
  position: absolute;
  top: 972px;
  left: 0;
  width: 100%;
  height: 10%;
  z-index: 0;
}

._block2 {
  position: absolute;
  top: 0;
  left: -18px;
  width: 22%;
  height: 100%;
  z-index: 0;
}

.sheet_title {
  position: absolute;
  top: 165px;
  left: 70px;
  width: 733px;
  display: inline-block;
  color: #094168;
  font-size: 55px;
  z-index: 5;
}

.sheet_under_title {
  position: absolute;
  top: 405px;
  left: 70px;
  width: 550px;
  display: inline-block;
  color: #094168;
  font-size: 30px;
  font-family: "MyriadPro-Regular";
  z-index: 5;
}

/* smaller font when subtitle is too long */
.sheet_under_title--small {
  font-size: 24px;
  line-height: 1.1;
}

/* very long under-title */
.sheet_under_title--xsmall {
  font-size: 20px;
  line-height: 1.2;
}

.sheet_content {
  position: absolute;
  top: 487px;
  left: 74px;
  width: 550px;
  display: inline-block;
  color: #094168;
  font-size: 20px;
  font-family: "WorkSansMedium";
  z-index: 5;
}

.sheet_block {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    margin-top: 665px;
    margin-left: 6px;
    justify-content: flex-start;
    z-index: 5;
}

.blocks {
    display: inline-block;
    width: 336px;
    height: 291px;
    padding: 10px;
    border: 1px solid transparent;
    box-shadow: 15px 15px 15px 15px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
    z-index: 5;
}

.block-progress {
    font-weight: bold;
    font-family: "Anybody_Condensed-Bold";
    font-size: 130px;
    color: #60aee0;
    padding-left: 35px;
    padding-top: 10px;
    margin-bottom: 4px;
    z-index: 5;
}

.block-progress sup {
  font-size: 70px;
}

.block-title {
    font-weight: bold;
    font-family: "Anybody_Condensed-Bold";
    padding-left: 35px;
    font-size: 30px;
    color: #60aee0;
    margin-bottom: 4px;
    z-index: 5;
}

.play-btn {

    width: 100px;
    height: 100px;
    z-index: 10;

    border: 0;
    padding: 0;
    background-color: transparent;
    background-image: url('../img/play.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

.pngs-btn {
    display: inline-block;              /* ensure it actually has a box */
    width: 100px;
    height: 100px;
    z-index: 10;
    padding: 0;
    background-color: transparent;  /* DEBUG: visible even if image fails */
    background-image: url('../img/picto_document.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    cursor: pointer;
 }
/* QR button (image set via background-image OR inner <img>) */
.qr-btn {
    display: inline-flex;          /* so the inner <img> follows size */
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    border: 0;
    padding: 0;
    margin: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: default;
}

/* make sure any inner img fits nicely */
.qr-btn img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.bottom-controls2 {
    position: fixed;
    left: -6px;
    bottom: 0;
    width: 95%;
    padding: 0 60px 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.bottom-controls2 .arrow-btn2,
.bottom-controls2 .lang-btn2 {
    display: flex;
    flex-direction: row;
}

/* ---------- ARROWS V2 ---------- */

.arrow-btn2 a {
    width: 66px;
    height: 66px;
    border: 0;
    padding: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
    cursor: pointer;
}

#prev-btn2 {
    background-image: url('../img/up_arrow.png');
}

#next-btn2 {
    background-image: url('../img/left_arrow.png');
}

.arrow-btn2 a:hover,
.arrow-btn2 a:focus {
    outline: none;
    filter: brightness(1.1);
}

/* ---------- LANG SWITCH V2 ---------- */

.lang-btn2 a {
    width: 66px;
    height: 66px;
    border: 0;
    padding: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
    cursor: pointer;
}

.lang-btn2 .fr-btn2 {
    background-image: url('../img/FR.png');
}

.lang-btn2 .en-btn2 {
    background-image: url('../img/EN.png');
}

.lang-btn2 a:hover,
.lang-btn2 a:focus {
    outline: none;
    filter: brightness(1.1);
}

/* ===== Video Overlay ===== */
video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider {
  display: none !important;
}

.video-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.video-overlay.is-open {
    display: flex;
}

.video-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.video-overlay__content {
    position: relative;
    z-index: 1;
    max-width: 80vw;
    max-height: 80vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-overlay__content video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay__close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.qr-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
}

.qr-overlay.is-open {
    display: block;
}

.qr-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.qr-overlay__content {
    position: relative;
    margin: 5% auto;
    width: 400px;
    background: #fff;
    padding: 20px;           /* fixed: removed stray 733 */
    border-radius: 8px;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-overlay__image {
    width: 100%;
    height: auto;
}

.qr-overlay__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

/* ======== Carousel inside .main_images ======== */
.carousel {
  position: relative;
  width: 400px; /* or 100%, adjust as needed */
  height: 400px; /* previous image height */
  overflow: hidden;
  z-index: 11; /* ensure above background blocks */
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 11;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 12;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@keyframes sheetPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.sheet-title--normal {
  font-size: 1em; /* keeps the 55px from .sheet_title as base */
}

.sheet-title--small {
  font-size: 0.7em;
  line-height: 1.2;
}

/* Fullscreen overlay container */
.pngs-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
}

.pngs-overlay.is-open {
    display: block;
}

/* Dark translucent background */
.pngs-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Content wrapper */
.pngs-overlay__content {
    position: relative;
    width: 80%;
    height: 90%;
    margin: 2% auto;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Carousel container */
.pngs-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex: 1;
}

/* Individual slides */
.pngs-carousel .pngs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pngs-carousel .pngs-slide.active {
    opacity: 1;
}

.pngs-carousel .pngs-slide img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
}

/* Navigation buttons */
.pngs-overlay__prev,
.pngs-overlay__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.pngs-overlay__prev:hover,
.pngs-overlay__next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.pngs-overlay__prev {
    left: 10px;
}

.pngs-overlay__next {
    right: 10px;
}

/* Close button */
.pngs-overlay__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

@keyframes themeContentScaleUp {
  0%   { font-size: 20px; }
  100% { font-size: 32px; }  /* Changed from 28px to 32px */
}

.code {
    position: absolute;
    top: 1050px;
    right: 20px;
    font-size: 20px;
    color: #094168;
    z-index: 1001;
}