@import "https://cdn.jsdelivr.net/npm/bulma@1.0.4/css/bulma.min.css";

@font-face {
  font-family: 'Cretina-Bold';
  src: url('https://histoireenmains.com/wp-content/themes/hello-child/homepage/fonts/Cretina-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'PatrickHandSC-Regular';
  src: url('https://histoireenmains.com/wp-content/themes/hello-child/homepage/fonts/PatrickHandSC-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'DancingScript-Regular';
  src: url('https://histoireenmains.com/wp-content/themes/hello-child/homepage/fonts/DancingScript-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Lora-Regular';
  src: url('https://histoireenmains.com/wp-content/themes/hello-child/homepage/fonts/Lora-Regular.ttf') format('truetype');
}


/* ########################### */
/* ######   CONTAINER   ###### */

.nav-container {
    position: fixed;
    top: 0;
    display: flex;
    width: 100%;
    min-height: 110px;
    background: linear-gradient(to bottom, #fff 0%, #ffffffcf 3%, #ffffff57 50%,transparent 100%);


    /* background-color: #f5f5f5; */
}


/* ########################### */
/* ######     LOGO      ###### */

.nav-logo {
    flex: 1;
    display: flex;
    justify-content: center;

    /* background-color: #ff0000; */
    /* align-items: center; */
}

.nav-logo .logo-bg {
    max-height: 100px;
    width: 251px;
    background-color: rgba(255, 255, 255, 0.75);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    
    word-wrap: break-word;
    text-decoration: none;
    transition: background-color 0.3s ease;

    /* align-items: center; */
}

nav .logo-bg:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2f4a;
}

.nav-logo .logo-text{
    margin-top: 35px;;
    font-family: 'Cretina-Bold', cursive;
    font-size: 25px;
    letter-spacing: 0px;
    color: #242424;
    text-align: center;
}

.nav-logo .reg {
    font-size: 16px;
    vertical-align: super;
    font-family: Lora-Regular, Helvetica, sans-serif;
}


/* ########################### */
/* #######     MENU     ###### */
.nav-menu {

    max-width: 1024px;
    width: 100%;
    display: flex;
    align-items: center;

    /* background-color: #d0d0d0; */
    /* justify-content: center; */

}

.nav-menu ul {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;

    /* justify-content: center; */
    /* padding-left: 10px;
    padding-right: 10px; */
}

.nav-menu ul li {
    display: inline-block;
    position: relative;
    
}

.nav-menu li a {
  display: block;
  color: #1f2f4a;

  /* text-align: center; */
  /* position: relative; */
  /* text-decoration: none; */

  font-family: 'PatrickHandSC-Regular', cursive;
  font-size: 33px;
  transition: opacity 0.3s ease;
}

.nav-menu ul li:first-child a {
    padding-left: 0;
}

.nav-menu ul li:last-child a {
    padding-right: 0;
}

.nav-menu .test {
    background-color: brown;
}


/* ########################### */
/* ######   BUTTON FX   ###### */

/* Navigation button hover and selection effects */
.nav-button {
  position: relative;
  text-decoration: none;
}

/* Base hover effect - hidden by default */
.nav-button::after {
  content: '';
  position: absolute;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

/* Hover and selected effects */
.nav-button:hover::after,
.nav-button.selected::after {
  clip-path: inset(0 0% 0 0);
}

.nav-button.selected {
  opacity: 1;
}

/* ########################### */
/* ##### IMAGE TYPE 01  ###### */

/* Default settings for image-01 */
.nav-button.hover-01::after {
  background-image: url('https://histoireenmains.com/wp-content/themes/hello-child/homepage/images/menu-selection-01.png');
  width: 241px;
  height: 30px;
  top: calc(100% - 25px);
  left: 50%;
  transform: translateX(-50%);
}

/* Default settings for image-02 */
.nav-button.hover-02::after {
  background-image: url('https://histoireenmains.com/wp-content/themes/hello-child/homepage/images/menu-selection-02.png');
  width: 241px;
  height: 30px;
  top: calc(100% - 25px);
  left: 50%;
  transform: translateX(-50%);
}

/* ##### BIENVENUE ###### */
.nav-button.hover-01.btn-bienvenue::after {
  left: 50%;
  top: calc(100% - 17px);
  transform: translateX(-50%);
  width: 241px;
  height: 30px;
}

/* ##### L'ESSENCE ###### */
.nav-button.hover-02.btn-essence::after {
  left: 50%;
  top: calc(100% - 20px);
  transform: translateX(-50%);
  width: 214px;
  height: 36px;
}

/* ##### Éther ###### */
.nav-button.hover-02.btn-ether::after {
  left: 50%;
  top: calc(100% - 20px);
  transform: translateX(-50%);
  width: 214px;
  height: 36px;
}

/* ##### Carnet ###### */
.nav-button.hover-02.btn-carnet::after {
  left: 50%;
  top: calc(100% - 20px);
  transform: translateX(-50%);
  width: 214px;
  height: 36px;
}

/* ##### Boutique ###### */
.nav-button.hover-01.btn-boutique::after {
  left: 50%;
  top: calc(100% - 17px);
  transform: translateX(-50%);
  width: 241px;
  height: 30px;
}


.nav-button.hover-01.btn-contact::after {
  left: 50%;
  top: calc(100% - 17px);
  transform: translateX(-50%);
  width: 241px;
  height: 30px;
}


/* ########################### */
/* ######   LANGUAGE    ###### */

.nav-language {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* background-color: #e0e0e0; */
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'PatrickHandSC-Regular', cursive;
    font-size: 24px;
    color: #1f2f4a;
    cursor: pointer;
    transition: font-weight 0.3s ease, opacity 0.3s ease;
    padding: 5px 8px;
    opacity: 0.7;
}

.lang-btn.active {
    font-weight: bold;
    opacity: 1;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-separator {
    font-family: 'PatrickHandSC-Regular', cursive;
    font-size: 24px;
    color: #1f2f4a;
    opacity: 0.7;
    user-select: none;
}


/* ########################### */
/* ######  ETHER VIDEO  ###### */

.nav-button.btn-ether {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* Initially center the text */
.nav-button.btn-ether .ether-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Move text to the left when video is showing */
.nav-button.btn-ether.video-active .ether-text {
    transform: translateX(-15px);
}

.ether-video-container {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
    transform-origin: left center;
    pointer-events: none;
}

.ether-video-container.show {
    transform: translateY(-70%) scale(1);
}

.ether-video {
    display: block;
    width: 80px;
    height: 55px;
    object-fit: contain;
}
