 

.full-screen-block {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: transparent;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.text-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centré par défaut */
    min-width: 100vw;
    min-height: 80vh;
    text-align: center;
    word-break: normal;
    white-space: pre-wrap;
    padding-left: 1.25vw;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out; /* Transition fluide */
}



.word-container {
    display: inline-flex;
    flex-wrap: nowrap;
    transition: 1s all ease-in-out;
}
.space {
    display: inline-block;
    width: 2.5vw;
    height: auto;
}

.letter {
    display: inline-flex;
    padding: 10px;
    font-size: clamp(23px, 12vw, 150px) !important;
    font-weight: 600;
    font-family: Helvetica Neue;
    line-height: 1.2;
    padding: 2px;
    box-sizing: border-box;
    white-space: nowrap;
}

.letter:hover {
cursor: pointer;
}

:root {
    --wp--preset--spacing--20: 0px !important;
    --wp--preset--spacing--30: 0px !important;
    --wp--preset--spacing--40: 0px !important;
    --wp--preset--spacing--50: 0px !important;
}

h1 { 
font-size:150px !important;
font-weight: 600;
font-family: Helvetica Neue;
line-height: 0.5;
}

h2 {
    padding: 0;
    margin: 0;
}

.site-main, .entry-header, .entry-content, .site-footer {
    display: none !important;
}



@media (max-width: 800px) {
    .text-container {
        min-height: 60vh;
    }
    .letter {
        padding: 0.5px;
    }
}


.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    cursor: pointer;
    pointer-events: none;
}

.video-overlay video {
    pointer-events: none;
    min-height: 100%;
    min-width: 100%;
}


/* SETTINGS PANEL */

.settings-global {
    position: fixed;
    bottom: 0;
    left: 0;
    opacity: 1;
    color: white;
    height: 8vh;
    width: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0s all;
    line-height: 1;
    bottom: 0;
    font-family: Helvetica, sans-serif;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 1)
  }
  .settings-global.transparent-background {
    background-color: rgba(0, 0, 0, 0)
  }
  .settings-global.transition-enabled {
    transition: all 0.3s ease-out;
  }
  
  
  
  
  .settings-panel-left {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 8vh;
    height: 8vh;
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .settings-global, .settings-panel-left, .settings-content, .settings-content button {
    z-index: 50;
  }

  .settings-content {
    position: fixed;
    top: 83%;
    height: 8vh;
    right: 0;
    padding: 1.5vw;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .settings-content--about {
    top: 0vh;
  }
  .show-display-mode {
  padding-right: 1.5vw;
  font-size: clamp(20px, 2vw, 50px);
  }
  
  .settings-button {
    border: none;
    position: absolute;
    background: none;
    top: 0px;
    width: 100%;
    height: 8vh;
    padding: 0.5vw;
  }
  .settings-icon {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: block;
    transition: transform 0.7s ease-out;
    will-change: transform;
  }
  
  
  .about-button {
    border: 0px;
    position: absolute;
    left: 8vh;
    height: 8vh;
    padding: 1.5vw;
    transition: opacity 0.3s ease-out;
    cursor: pointer;
    font-size: clamp(23px, 2vw, 50px);
    color: #CCC;
    text-decoration: underline;
  }
  .about-button:hover {
    color: #AAA;
  }
  
  .settings-content button {
    background: none;
    color: grey;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
    border: 1px solid white;
  }
  
  .about-content {
    position: fixed;
    padding: 20px;
    width: calc(100vw - 8vh);
    height: 80%;
    left: 8vh;
    top: 10vh;
  }
  
.big-letter {
    position: fixed;
    font-size: 7vh;
    height: 10vh;
    font-weight: bold;
    left: 0%;
    bottom: 0%;
    color: white;
    opacity: 1;
    transition: all 0.3s ease-out;
    background: rgba(0, 0, 0, 1);
    padding-right: 0;
    padding-left: 0;
    margin-left: 8vh;
    box-sizing: content-box;
    display: flex;
    align-items: flex-end;
}
.big-letter.has-padding {
  padding-left: 1.5vw;
  padding-right: 1.5vw;
}
.big-letter.fade-out {
    opacity: 0;
}
.settings-panel-left.fade-out {
  opacity: 0;
}

.invisible-measure {
    position: absolute;
    white-space: nowrap;
    height: 8vh;
    font-weight: bold;
    padding: 0;
    margin: 0;
  }
  
  .settings-content,
  .about-content {
    opacity: 0;
    transition: all 0.3s ease-out;
  }
  
  .fade-in {
    opacity: 1;
  }
  
  .fade-out {
    opacity: 0;
  }
  
  .fade-in-up {
    opacity: 1;
    transform: translateY(0px);
  }
  
  .fade-out-down {
    opacity: 0;
    transform: translateY(50px);
  }
  
  
  .hidden-off {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .letter-clickable {
    position: relative;
    font-weight: bold;
    height: 8vh;
    line-height: 8vh; /* pour vertical centering */
    display: inline-block;
    user-select: none;
    cursor: pointer;
  }
  .letter-clickable::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: 0;
    left: 0;
    z-index: 10; /* au-dessus de l’arrière-plan, en-dessous du texte */
  }
  
  .letter-clickable .close-icon {
    position: absolute;
    top: -28px;
    right: -12px;
    font-size: 24px;
    font-weight: normal;
    opacity: 0;
    color: white;
    pointer-events: none; /* évite que la croix capte les clics */
  }
  
  .letter-clickable:hover .close-icon {
    opacity: 1;
  }
  
  .display-mode-switch {
    position: relative;
    font-size: clamp(18px, 1.5vw, 40px);
    line-height: 1.2;
  }
  
  .display-mode-background {
    background: #e0e0e0;
    border-radius: 30px;
    display: flex;
    position: relative;
    overflow: hidden;
    border: 2px solid white;
  }
  
  .display-mode-selector {
    position: absolute;
    top: 0;
    bottom: 0;
    background: black;
    transition: all 0.3s ease;
  }
  
  .display-mode-button {
    all: unset;
    flex: 1;
    background: none;
    border: none;
    color: #888;
    padding: 10px 0;
    cursor: pointer;
  }
  
  .display-mode-button.active {
    color: white;
    cursor: default;
  }
  button {
    all: unset;
    box-sizing: border-box;
  }
  .desktop-only {
    display: inline;
  }
  .mobile-only {
    display: none;
  }
  .about-rules {
    margin-top: 5%;
    margin-bottom: 10%;
    font-size: 1.1em;
    line-height: 1.3;
    color: #AAA;
    margin-right: 55vw;
    left: 0;
  }
  
  .about-description {
    margin-bottom: 5%;
    font-size: 1.1em;
    line-height: 1.3;
    text-align: right;
    margin-left: 55vw;
    right: 0;
  }

  .about-description a {
    color: white;
  }
  .about-description a:hover {
    opacity: 80%;
  }
  .svg-line-1, .svg-line-2, .svg-line-3 {
    transition: all 0.3s ease-out;
    position: absolute;
  }
  .svg-line-1 {
    width: 30vw;
    height: 18vh;
    top: -2%;
    right: 1%;
    margin-right: 23vw;
  }
  .svg-line-3 {
    bottom: 0;
    right: 0;
    margin-right: 43vw;
    width: 12vw;
    height: 30%;
  }

  .empty-big-letters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2vh;
    font-size: clamp(23px, 2vw, 50px);
    color: #888;
  }
  
  .add-letters-button {
    background-color: #CCC;
    color: black;
    border: 1px solid black;
    padding: 0.4em 1em;
    font-size: clamp(17px, 1.5vw, 30px);
    cursor: pointer;
    transition: all 0.2s ease-out;
    border-radius: 10px;
  }
  
  .add-letters-button:hover {
    background-color: #AAA;
    border: 1px solid #AAA;
  }
  .arrow-up, .arrow-down {
    display: none;
  }

  .tutorial {
    position: absolute;
    z-index: 100;
    font-family: Helvetica, sans-serif;
    font-size: clamp(18px, 1.5vw, 35px);
    color: white
  }
  
  .tutorial-step-1 {
    top: 20px;
    left: 100px;
  }
  
  .tutorial-step-2 {
    bottom: 40px;
    left: 13vw;
    text-align: right;
  }
  
  .tooltip {
    background: black;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 0 2000px 2000px rgba(255, 255, 255, 0.6);
    max-width: 300px;
    width: auto;
  }
  
    .arrow {
      width: 50px;
      height: auto;
      margin-left: 60px;
    }
    .arrow-down-right {
      transform: scaleX(-1);
      margin-right: 150px;
    }
    .disabled-button {
      opacity: 0.5;
      pointer-events: none;
      cursor: not-allowed;
    }
    .on-top {
      z-index: 1000 !important;
      position: relative; /* nécessaire pour z-index à s’appliquer */
    }
    

    .bubble-letter {
      animation: bubble-pulse 1.2s ease-in-out infinite;
    }
    
    @keyframes bubble-pulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.2);
      }
    }
    .bubble-clickable {
      position: relative;
      z-index: 1;
    }
    
    .bubble-clickable::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 70px;
      height: 70px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
    
      background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.1) 60%, rgba(255,255,255,0) 100%);
    
      box-shadow:
        0 20px 30px rgba(0, 0, 0, 0.5),
        inset 0 10px 30px rgba(255, 255, 255, 0.9),
        inset -5px -5px 12px rgba(255,255,255,0.6),
        inset 5px 5px 18px rgba(0,0,0,0.5);
    
      animation: bubble-glow 2s ease-in-out infinite;
      pointer-events: none;
      z-index: 1;
    }
    
    
    
    @keyframes bubble-glow {
      0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
      50%  { transform: translate(-50%, -50%) scale(1.4); opacity: 0.3; }
      100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
    }
    
        
    
  
  
  
  
  
  
  
  @media (max-width: 800px) {
    .about-button {
    bottom: 0;
    left: 0;
    height: 5vh;
    font-size: 6vw;
    }
    .settings-global, .settings-panel-left, .settings-button, .letter-clickable, .invisible-measure {
      height: 6vh;
    }
    .settings-global, .settings-panel-left, .settings-button {
      width: 6vh;
    }
    .big-letter {
      position: fixed;
      height: 6vh;
      margin-left: 6vh;
  }
  .settings-content {
    top: auto;
    bottom: 11vh;
    height: 6%;
    display: flex;
    align-items: center;
  }
  .settings-content.about-mode {
    bottom: 93%;
  }
  .font-5vh {
    font-size: 5vh;
  }
  .font-4vh {
    font-size: 4vh;
  }
  .font-3vh {
    font-size: 3vh;
  }
  .show-display-mode {
    padding-right: 1.5vh;
  }
  
   .about-content {
     left: 0;
     width: 100%;
   }
   .letter-clickable {
    line-height: 6vh;
   }
   .letter-clickable .close-icon {
    top: -17px;
    right: -10px;
    font-size: 16px;
  }
  .letter-clickable .close-icon {
    opacity: 1;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline;
  }

  .about-rules, .about-description {
    font-size: clamp(14px, 2vh, 20px);
  }

  .about-rules {
    margin-top: 3%;
    margin-bottom: 0%;
    line-height: 1.3;
    color: #AAA;
    margin-right: 0vw;
    left: 0;
  }
  .about-description {
    margin-bottom: 12%;
    margin-top: 12%;
    line-height: 1.3;
    text-align: right;
    margin-left: 0vw;
    right: 0;
  }

  .svg-line-1, .svg-line-2, .svg-line-3 {
    display: none;
  }


  .empty-big-letters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2vh;
    font-size: clamp(12px, 2vh, 20px);
    color: #888;
  }
  
  .add-letters-button {
    background-color: #CCC;
    color: black;
    border: 1px solid black;
    padding: 0.4em 1em;
    font-size: clamp(9px, 1.5vh, 16px);
    cursor: pointer;
    transition: all 0.2s ease-out;
    border-radius: 10px;
  }
  
  .add-letters-button:hover {
    background-color: #AAA;
    border: 1px solid #AAA;
  }
  .arrow-up, .arrow-down {
    position: absolute;
    display: block;
    padding-right: 20px;
    font-size: 3vh;
  }
  .arrow-up {
    top: -10px;
    right: 120px;
  }
  .arrow-down {
    padding-top: 10px;
    left: 50%;
  }
  .arrow {
    width: auto;
    height: 5vh;
    margin-left: 30px;
  }
  .tutorial-step-2 {
    bottom: 7vh;
  }
  .tutorial-step-1 {
    top: 20px;
    left: 40px;
  }
  
}



  













.letter-transition-base {
  transition: margin-top 0.3s ease-in-out, margin-left 1s ease-in-out, font-size 1s ease-out, transform 0.5s ease-in-out, box-shadow 0.4s ease-out, padding 0.4s ease-out, line-height 0.4s ease-out;
}


/* LETTER A */
.animated-letter-a {
  margin-left: var(--y, 0px);
}

/* LETTER D */

#custom-cursor {
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}
.hide-cursor,
.hide-cursor * {
  cursor: none !important;
}



/* LETTER F */

.animated-letter-f {
  font-size: clamp(10px, 3vw, 30px) !important;
}


/* LETTER I */

.letter-overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

.letter-overlay-img.inverted {
  filter: invert(1);
}

/* LETTER N */
.animated-letter-n {
  margin-top: var(--x, 0px);
}

/* LETTER S */ 

.letter.animated-s {
  pointer-events: auto;
}

.letter.animated-s:hover {
  background-color: goldenrod !important;
  color: blue;
  position: relative;
}
.letter.animated-s:hover .letter {
  background-color: transparent !important;
}

.letter.animated-s:hover::after {
  content: attr(data-hover-text);
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 10px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 1em;
  border-radius: 0px;
}
.s-hover-image {
  max-width: 30vw;
}


/* LETTER R */

.letter-r-active .letter {
  font-size: 50% !important;
}

@media (max-width: 800px) {
  .letter-r-active .letter {
    font-size: 25% !important;
  }
}


/* LETTER W */
.animated-letter-w {
  transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1));
}

    


    