/*======================================
Theme Name: Hush
Description: Child theme for Hush Hush
Version: 1.0
Author: Joulco
Template: Divi
======================================*/


:root{
    --bg-color: #1e1e1e;
    --bg-inverse: #fff;
    --text-color: #80a3ff;
    --link-color: #ffffff;
    --button-text-color: #80a3ff;
    --hightlight-color: #EDF000;
    --font-primary : 'Imbue_24pt ExtraLight', Georgia, serif;
    --font-secondary : 'SchibstedGrotesk Regular',Helvetica,Arial,Lucida,sans-serif;
}
/* Dark Mode (par défaut) */
body{
    background-color: var(--bg-color) ;
    color: var(--text-color);
}
.et_pb_section {
    background-color: var(--bg-color);
}

.inverse{
    color: var(--bg-inverse);
}
/* Dark Mode (par défaut) */
body{
    background-color: var(--bg-color) ;
    color: var(--text-color);
}
/* Light Mode  */
body.light-mode {
    --bg-color: #ffffff;
    --bg-inverse: #1e1e1e;
    --text-color: #000000;
    --link-color: #80a3ff;
    --button-text-color: #80a3ff;
    background-color: var(--bg-color);
    color: var(--text-color);
}
.et_pb_section, #main-content {
    background-color: var(--bg-color);
}
a {
    color: var(--link-color);
}

button {
    background-color: transparent;
    border : none ;
    border-bottom: 1px solid var(--button-text-color);
    color: var(--button-text-color);
}

.bg-inverse{
    background-color: var(--bg-inverse) !important;
}
body.light-mode .inverse{
    color: var(--text-color);
}
.dflex{display: flex;
}
.align-center{
    align-items: center;
}
.nowrap{display: flex; flex-wrap: nowrap; }


/* Styles généraux du bouton */
#dark-mode-toggle {
    background-color: #000000; /* Fond noir */
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#dark-mode-toggle svg {
    width: 30px;
    height: 30px;
}

body:not(.light-mode) #icon-dark {
    display: block;
}

body:not(.light-mode) #icon-light {
    display: none;
}
/* Mode clair activé */
body.light-mode #icon-dark {
    display: none;
}

body.light-mode #icon-light {
    display: block;
}


/* Transitions pour un effet fluide */
#light-mode-toggle .icon {
    transition: background-color 0.3s ease;
}


.single-project .et_pb_image{
    margin: 8px; 
}
.m-small{
    margin: 8px                                                               
}

  /*********| FULLSCREEN MENU CSS |*********/
/*****************************************/

/*dans le header directement */
.burger-menu{
    background-color: var(--bg-color) !important;
}


/* Move the hamburger to the right of the header */

.burger-menu .et_pb_menu__wrap {
  justify-content: flex-end !important;
}

/* Hide the desktop menu */

.burger-menu .et_pb_menu__wrap .et_pb_menu__menu {
  display: none !important;
  transition: visibility 0.4s, opacity 0.4s ease-in-out; /* Animate the menu to fade in */

}

/* Force the mobile version of the menu */

.burger-menu .et_pb_menu__wrap .et_mobile_nav_menu {
  display: block !important;
  align-items: center !important;
}

/* Fullscreen Menu Style when Opened*/
.burger-menu #mobile_menu1 {
  transition: visibility 0.4s, opacity 0.4s ease-in-out !important; /* Animate the menu to fade in */
}
/* ul */
.burger-menu .opened #mobile_menu1 {
  width: 100vw !important; /* Make it span the full width of the viewport */
  position: fixed !important;
  top: 111px !important;
  left: 0vw !important;
  /* height: 100vh !important; Make it span the full height of the viewport */
  display: flex !important;
  justify-content: center !important;
  /* flex-direction: column !important; */
  transition: visibility 0.4s, opacity 0.4s ease-in-out !important; /* Animate the menu to fade in */
  padding: 0 !important;
  /* background-color: #1e1e1e !important; /* Fullscreen menu background color */
  border-top: 1px solid var(--button-text-color);
  box-shadow:rgba(128, 163, 255, 0.5) 0 5px 16px -4px
}
 /* .light-mode .burger-menu .opened #mobile_menu1 {background-color: #fff !important;} */
/* Show fullscreen menu */

.burger-menu .opened #mobile_menu1 {
  opacity: 1 !important; /* Make it visible by setting opacity to 1 */
  visibility: visible !important; /* Show the menu */
    transition: visibility 0.4s, opacity 0.4s ease-in-out; /* Animate the menu to fade in */
}

/* Hide and fade out the Menu when closed */

.burger-menu .closed #mobile_menu1 {
  opacity: 0 !important; /* Make it invisible by setting opacity to 0 */
  visibility: hidden !important; /* Hide the menu */
  transition: visibility 0.3s, opacity 0.3s, left 1s, ease-in-out !important; /* Animate the menu to fade out */
}

/* Remove Bullets next to LI Elements */

.burger-menu #mobile_menu1 li {
  list-style: none !important;
  text-align: center !important;
  /* width: 100%; */
  margin: 0 16px;

}

/* Make sure that the menu is above other elements */

.burger-menu .et_pb_menu__wrap span.mobile_menu_bar {
  z-index: 999999 !important;
}

/* Set the close icon for when the menu is open */

.burger-menu .et_pb_menu__wrap .opened .mobile_menu_bar:before {
  color: #fff !important; /* Icon color */
  content: "\4d" !important; /* Divi font icon to use for the close icon */
  left: -40px; /* Close icon position. You might need to play with this to make it look right */
  top:-19px;
}

/* Keep hamburger icon in fixed position on mobile */
.burger-menu .opened .mobile_menu_bar {
  position: fixed !important;
}

/* Remove mobile menu border */

.burger-menu .et_mobile_menu {
  border-top: none;
}

/* Make sure the menu items do not show a background */

.burger-menu .et_mobile_menu .menu-item-has-children>a {
  background-color: transparent;
}

/* Remove the hover background from the menu items and add hover animation */

.et_mobile_menu li a:hover {
  background-color: transparent;
  opacity: 1;
  transition: color 0.3s ease-in-out !important; /* Animated the menu item when hovered */
  color: var(--bg-inverse);
}

/* Remove menu item bottom borders */

.burger-menu .et_mobile_menu li a {
  border-bottom: none;
}

/****** FOOTER ******* 
*** MODAL CALENDLY & FORMULAIRE ***/

a.btn-footer-cal,
#email-form button{
    font-size: 24px;
    background-color: var(--bg-color);
    color: var(--hightlight-color);
    padding: 16px ;
    border: none ;
    transition: all 0.3s ease-in-out;
}

#email-form button:hover,
a.btn-footer-cal:hover{
    letter-spacing: 1px;
    color: var(--bg-inverse);
}
body.light-mode a.btn-footer,
body.light-mode #email-form-cal button{
    color: var(--text-color);
}
#email-form input, 
#email-form textarea{
    background: none;
    border: none;
    color: var(--bg-color); 
    transition: all 0.3s ease-in-out;
    font-size: 20px;
}
#email-form input:active{
    color: var(--bg-color);
    font-weight: 600;
}
#email-form input:focus{
    color: #000;
}
/* champs email footer */
#email-form input[type="email"]{
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 16px;
}
#email-form input::placeholder{
    color: var(--bg-color); 
    font-size: 20px;
}



/******| Formulaires email du footer + contact |********/
/*****************************************/

.wpcf7 input, 
.wpcf7 textarea{
    background: none;
    border: none;
    color: var(--bg-color); 
    transition: all 0.3s ease-in-out;
}
.wpcf7 input:active, 
.wpcf7 textarea:active{
    color: var(--bg-color);
    font-weight: 600;
}
.wpcf7 input:focus, 
.wpcf7 textarea:focus{
    color: #000;
}
.wpcf7 input[type="submit"]:hover{
    font-weight: bolder;
    letter-spacing: 1px;
    font-size: 1.1em;
}
/* formulaire de contact */
.wpcf7 input::placeholder, 
.wpcf7 textarea::placeholder{
    color: var(--text-color); 
}
.wpcf7 input, 
.wpcf7 textarea{
    width: 90%; 
}
.wpcf7 label{
    width: 100%;
    border-bottom: 1px solid var(--bg-inverse);
    padding-bottom: 4px;
    margin: 8px auto 12px;
    display: inline-block;
}
.wpcf7 label i{
    margin-right: 4px;
    vertical-align: top;
    margin-top: 4px;
}
.wpcf7 label:focus-within{
    border-bottom: 1px solid var(--text-color);
}
.wpcf7 label input[type="submit"]{
    border: none !important;
}


/********.   mots qui défilent   ******************/ 

.scroll-container {
    width: 100%; /* Occupe toute la largeur de la page */
    overflow: hidden; /* Cache les éléments en dehors de la zone visible */
    white-space: nowrap; /* Évite que les éléments ne passent à la ligne */
    height: 100px;
    position: relative;
    background-color: var(--bg-inverse);
}

.scroll-content {
    display: inline-block;
    animation: scroll-left 50s linear infinite; /* Animation en boucle infinie */
}

.scroll-content span {
    margin: 0 24px; /* Espacement horizontal entre les mots */
    color: var(--bg-color);
    font-family:var(--font-primary);
    font-size: 80px;
    display: inline-block;
    position: relative;
    line-height: 100%;
}


/* Animation pour le défilement */
@keyframes scroll-left     {
    from {
        transform: translateX(0); /* Commence à droite */
    }
    to {
        transform: translateX(-100%); /* Finit à gauche */
    }
} 


/*********| PROJETS |*********/
/*****************************************/

/* Liste à la une (page accueil) */

.projet-item{
    display: flex;
}
.projet-alaune .projet-card-content,
.projet-alaune .projet-card-image{
    width: 50%;
}
.projet-card-content{
    font-family: var(--font-primary);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    padding: 8%;
}
.projet-card-content a, 
.projet-card-content a >*{ 
    display: inline;
}
/* impair */
:nth-child(odd of div.projet-item){
    flex-direction: row;
}
/* pair */
:nth-child(even of div.projet-item){
    flex-direction: row-reverse;
}
.projet-card-category {     
    color: var(--bg-inverse);
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 300;
    font-family: var( --font-secondary);
}
.projet-card-title {
    font-size: 52px;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1;
}
.projet-card-objet {
    color: var(--link-color) ;
    font-size: 50px;
    line-height: 1;
    font-family: var(--font-primary);
}
.projet-alaune .projet-card-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}
.projet-alaune .projet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: scale(1.05);
}
.projet-alaune .projet-item:hover .projet-card-image img {
    transform: scale(1.1);
}

/* liste sur page projets */ 
.projet-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
       grid-template-columns: repeat(2, 1fr);
       gap: 16px;
    margin: 30px 0;
}

.projet-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* height: 300px; */
    height: auto;
    perspective: 1000px;
    cursor: pointer;
}
.projet-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.projet-card:hover .projet-card-inner {
    transform: rotateY(180deg);
}

.projet-card-front,
.projet-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.projet-card-back {
    background: var(--bg-color) 80% ;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: left;
}

.projet-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.projet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projet-card-back .projet-card-category {
    color: var(--bg-inverse);
    padding: 8px 16px;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}
.projet-card-back .projet-card-category::before {
    content: "→";
}

.projet-card-back .projet-card-title {
    font-family: var(--font-primary);
    font-size: 60px;
    font-weight: 300;
    color: var(--text-color); 
    margin-right: 8px;
    line-height: 1.2;
}

.projet-card-back .projet-card-accroche {
    font-family: var(--font-primary);
    color: var(--bg-inverse);
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.projet-card-back .projet-card-link {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.projet-card-back .projet-card-link:hover {
    background: white;
    color: #2ea3f2;
    text-decoration: none;
    transform: translateY(-2px);
}

.projet-card-back .projet-card-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.projet-card-back .projet-card-link:hover::after {
    transform: translateX(3px);
}





/* Filtres de projets */
.projets-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: flex-start;
}

.filter-btn {
    font-family: var(--font-primary);
    color: var(--text-color);
    padding: 8px ;
    cursor: pointer;
    font-weight: 300;
    font-size: 62px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover {
    color: var(--bg-inverse);
    text-decoration: none;
}

.filter-btn.active {
    color: var(--bg-inverse);
}

.filter-count {
    padding: 2px 6px;
    font-size: 0.5em;
    font-weight: 300;
}



/* Loading spinner */
.projets-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid var(--bg-color);
    border-top: 3px solid var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .projet-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projets-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        font-size: 32px;
    }
}

/* Page single projet */
.single-projet .projet-header {
    margin-bottom: 40px;
}

.single-projet .projet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.projet-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.projet-social-link:hover {
    background: #2ea3f2;
    color: white;
    text-decoration: none;
}

.projet-social-link.instagram:hover {
    background: #E4405F;
}

.projet-social-link.facebook:hover {
    background: #1877F2;
}

.projet-social-link.linkedin:hover {
    background: #0A66C2;
}



/***************************
/********** Page à propos ***********
/***********************************/

.timeline-dot:after{
    content:"\002B24";
    position: absolute;
    right: 50%;
    transform: translate(50%); 
}
.timeline-dot{
    margin-bottom: 40px !important;
}
.timeline:before{
    content:"";
    width:82%;
    position: absolute;
    top:152px;
    border-bottom: 1px solid var(--bg-inverse);
    right:50%;
    transform: translateX(50%);
}