/*
Theme Name: Veloce Concept
Theme URI: https://exemple.com
Author: Romain Boulais
Author URI: https://exemple.com
Description: Un thème WordPress minimaliste, rapide et responsive basé sur Bootstrap.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veloce-concept
*/

/* ============================= */
/* === FONTS === */
/* ============================= */

@font-face {
    font-family: 'Neulis';
    src: url('assets/fonts/Neulis-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Neulis';
    src: url('assets/fonts/Neulis-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Neulis';
    src: url('assets/fonts/Neulis-ExtraBold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* Ajoute autant de déclinaisons que nécessaire */


/* ============================= */
/* === VARIABLE CSS === */
/* ============================= */
:root {
    /* === Couleurs principales === */
    /* #68c945; /*Vert pop */

    --bleu-citadin:#172d43;
    --vert-pop:#68c945;
    --vert:#c1f16e;
    --vert-clair:#f3f8d5;


    --link-color-bg: var(--bleu-citadin);
    --btn-primary: #c1f16e; /*Vert */
    --primary-hover: #f3f8d5; /* vert clair */
    --secondary-color: #f3f8d5; /* vert clair */

    --text-color: #333;
    --background-color: #fff;

    /* === Tailles === */
    --font-size-base: 16px;
    --font-size-lg: 20px;
    --font-size-sm: 14px;

    /* === Espacements === */
    --spacing-sm: 5px;
    --spacing-md: 10px;
    --spacing-lg: 20px;

    /* === Bordures === */
    --border-radius: 4px;

}


#wpadminbar {display:none;}

/* ============================= */
/* === RESET CSS (Normalisation) === */
/* ============================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family : 'Poppins', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff ;
}

/* Réinitialisation des marges et paddings par défaut */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow : visible !important;
}


/* Supprimer les bordures sur les boutons et inputs */
button, input, textarea {
    border: none;
    outline: none;
    font-family: inherit;
}

/* Liens */
a {
    text-decoration: none;
    color: var(--vert-pop);
}
a:hover {
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* ============================= */
/* === TYPOGRAPHIE === */
/* ============================= */
h1 { 
    font-family:'Neulis', Arial, sans-serif; 
    color:#68c945; 
    font-size: 2.7rem; 
    font-weight: 500; 
    line-height: 1.2; 
    text-transform: inherit;
}
h2 {font-size: 2.5rem; font-weight: 500; line-height: 1.3; }

h3 { font-size: 1.8rem; font-weight: 500; line-height: 1.4; }
h4 { font-size: 1.75rem; font-weight: 500; line-height: 1.4; }
h5 { font-size: 1.5rem; font-weight: 500; line-height: 1.5; }
h6 { font-size: 1.25rem; font-weight: 400; line-height: 1.5; }
p  { font-size: 1rem; font-weight: 400; line-height: 1.6; margin-bottom: 1rem;}

p,
p.text-justify,
.card-body p{
    text-align: justify !important;
}
.wp-block-details summary {
  padding: 20px !important;
}
p.has-text-align-right {
  text-align: right !important;
}
p.has-text-align-left {
  text-align: left !important;
}
p.has-text-align-center {
  text-align: center !important;
}



/* ============================= */
/* === LAYOUT  === */
/* ============================= */

.container-lg {
    padding-right: var(--bs-gutter-x, 12px);
    padding-left: var(--bs-gutter-x, 12px);
    margin-right: auto;
    margin-left: auto;
}




/* ============================= */
/* === NAVIGATION === */
/* ============================= */
.navbar {
    background-color: #fff;
    /*background-color:var(--vert-clair);*/
    /*border-bottom: 1px solid #ddd;*/
    padding: 10px 0;
}
.navbar .navbar-nav .nav-link {
    color: var(--text-color) !important;
    padding: 10px 15px;
}
.navbar .navbar-nav .nav-link:hover {
    color: var(--btn-primary);
    color:#68c945;
    text-decoration:none;
}

/* Centrer le logo */
.navbar-brand {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

/* Ajuster la taille du logo */
.navbar-brand img {
    max-height: 80px;
    width: auto;
}

/* Centrer le bouton hamburger */
.navbar-toggler {
    display: flex;
    justify-content: center;
    margin: 10px auto 10px 0;
}

/* Centrer le menu */
.navbar-nav {
    text-align: center;
}



/* ============================= */
/* === STICKY MENU === */
/* ============================= */
/*.sticky-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}*/
.navbar-nav {
    font-family: 'Neulis', Arial, sans-serif;
    font-size:17px;
    font-weight: normal; /* Regular */
    text-transform: uppercase;
}
.navbar-nav .dropdown-menu {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.navbar-nav .nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1;
}

.sticky-menu {
    position: sticky;
    top: -1px;
    z-index: 1000;
    background: #fff;
    /*background:var(--vert-clair);*/
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
}

.navbar-nav .dropdown-menu {
    display: none;
    /*opacity: 0;*/
    /*transition: opacity 0.3s ease-in-out;*/
    padding:10px;
}

.navbar-nav .nav-item:hover .dropdown-menu {
    display: block;
    /*box-shadow: 0 3px 0 #c0392b;*/
    animation: submenu 0.3s ease-in-out forwards;
}

@keyframes submenu {
    0% { transform: translateY(5px); box-shadow: 0 4px 0 #d9d9d9; opacity: 0;}
    100% { transform: translateY(-10px); box-shadow: 0 2px 0 #d9d9d9de; opacity: 1;}
}

.menu-children-un {
    /*width: 300px;*/
    width: 315px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacement entre les liens */
    padding: 10px 0;
}

.menu-children-un a {
    display: flex;
    align-items: center; /* Centre verticalement */
    gap: 10px; /* Espace entre icône et texte */
    padding: 10px 15px;
    border-radius: 10px;
    background-color: #fff;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.menu-children-un a:hover {
    background-color: var(--vert-clair);
    /*transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);*/
}
.menu-children-un a:hover .menu-title{
    color: var(--vert-pop);
}


.menu-children-un .icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: blue;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    /*transition: transform 0.4s transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);*/
}


/* Position initiale + transition pour le retour */
.menu-children-un a .icon {
    transform: scale(1) translateX(0px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
/*.menu-children-un a .menu-title{
    transform: scale(1) translateX(0px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.menu-children-un a .menu-description{
    transform: translateX(0px);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}*/
/* Animation au hover */
/*.menu-children-un a:hover .menu-title{
    transform: scale(1.15) translateX(15px);
}
.menu-children-un a:hover .menu-description {
    transform: translateX(5px);
}*/
.menu-children-un a:hover .icon {
    transform: scale(1.3);
}


.menu-children-un .menu-item {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #333;
}

.menu-children-un .menu-item .menu-title {
    font-size: 16px;
    font-weight: 300;
}

.menu-children-un .menu-item .menu-description {
    font-size: 13px;
    font-style: italic;
    color: #666;
    text-transform: none;
    font-family: 'Poppins', Arial, sans-serif;
    transition: color 0.3s ease;
}

.menu-children-un a:hover .menu-item .menu-description {
    color: #000;
}


/* Remplacement par un chevron unique */
.dropdown-toggle::after {
  display: none;
}
.dropdown-toggle i {
    font-size: 0.7em;
    transition: transform 0.4s ease-in-out; /* Animation fluide */
}

/* Animation de rotation vers le haut au survol */
.dropdown-toggle:hover i {
    transform: rotate(180deg); /* Rotation vers le haut */
}



/* ============================= */
/* === BOUTONS === */
/* ============================= */
/* Définition de l'animation */
@keyframes press-down {
    0% { transform: translateY(0); box-shadow: 0 3px 0 #d9d9d9; }
    100% { transform: translateY(2px); box-shadow: 0 1px 0 #ffffff; }
}

@keyframes press-release {
    0% { transform: translateY(2px); box-shadow: 0 1px 0 #ffffff; }
    50% { transform: translateY(-1px); box-shadow: 0 2px 0 #d9d9d9de; } /* Petit rebond */
    100% { transform: translateY(0); box-shadow: 0 3px 0 #d9d9d9; }
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 25px;
    border:none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 0 #d9d9d9;
    transition: all 0.1s ease-out;
}
.btn-primary {
    background-color: var(--vert-pop);
    /*background: linear-gradient(to top, var(--vert-pop) 20%,  var(--vert) 70%);*/
    color: white;
    box-shadow: 0 3px 0 #d9d9d9;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.btn-primary:hover
{
    background-color: var(--vert-pop);
    opacity:0.9;
    color:white;
    text-decoration:none;
    /*transform: scale(1.07);*/
    animation: press-down 0.1s ease-out forwards;
}
.btn-primary:active,
.btn:first-child:active {
    background-color: var(--vert-pop);
    animation: press-release 0.15s ease-out forwards;
}
.prev-next .icon{
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: blue;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: transform 0.4s transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}


/* ============================= */
/* === FORMULAIRES === */
/* ============================= */
input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--btn-primary);
}





/* ============================= */
/* === ICON SOCIAL === */
/* ============================= */

.social-nav{
    z-index: 10;
    position: absolute;
    top:0;
    right:0;
}
.social-nav .container-lg{
    padding: 0 12px;
}

/* Conteneur des icônes sociales */
.social-icons {
    display: block;
    padding: 5px  0px 5px 10px;   
    /*background: rgba(255, 255, 255, 0.9);*/
    /*background-color:#4dd232;*/
}

.social-circle {
    display: inline-block;
    text-align: center;
    padding-top: 1px;
    width: 25px;
    height: 25px;
    margin-left: 3px;
    background: var(--link-color-bg);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 3px 0 #d9d9d9;
    transition: all 0.1s ease-out;
}
.whatsapp-button:hover {
    background-color: #21ad7c
}
.instagram-button:hover {
    background: rgb(255,215,122);
    background: linear-gradient(0deg, rgba(255,215,122,1) 0%, rgba(213,51,141,1) 50%, rgba(110,93,198,1) 100%);
}
.facebook-button:hover {
    background-color: #6184c7;
}
.shopping-button:hover {
    background-color: #7ba8da;
}
.linkedin-button:hover {
    background-color: #2796ca;
}

/* Définition de l'animation */
@keyframes press-down {
    0% { transform: translateY(0); box-shadow: 0 3px 0 #d9d9d9; }
    100% { transform: translateY(2px); box-shadow: 0 1px 0 #ffffff; }
}

@keyframes press-release {
    0% { transform: translateY(2px); box-shadow: 0 1px 0 #ffffff; }
    50% { transform: translateY(-1px); box-shadow: 0 2px 0 r#d9d9d9de; } /* Petit rebond */
    100% { transform: translateY(0); box-shadow: 0 3px 0 #d9d9d9; }
}

.social-circle:hover {
    animation: press-down 0.1s ease-out forwards;
}

.social-circle:active {
    animation: press-release 0.15s ease-out forwards;
}





/* ============================= */
/* === GALERIE MASONERY CUSTOM === */
/* ============================= */
.galerie-accessoire .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
    /*margin: 0;*/
}

.galerie-accessoire .uag-masonry.wp-block-gallery.has-nested-images {
    /*column-gap: 0;*/
}

/* Style du tooltip */
.image-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none; /* Empêche d'interagir avec le tooltip */
    z-index: 1000;
}

.figcaption-text{
    position:absolute;
    bottom:10%;
    left:10%;
    right:10%;
    text-align:center;
    display:block !important;
    width:80%;
    margin: 0 auto !important;
    padding: 15px !important;
    height:50px;
    line-height:25px;
    z-index:10;
    opacity:0;
    background-color: var(--bleu-citadin);
    color: white;
    /*border:solid 1px red;*/
    text-shadow: none !important;
    font-size: 15px;
    font-weight : 400;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease; /* Ajoute la transition fluide */
}
.figcaption-text.showed{
    opacity:1;
     transform: translateY(0);
    pointer-events: all;
}




/* ============================= */
/* === BANNER TOP === */
/* ============================= */
.top-banner {
    background: var(--bleu-citadin);
    color: white;
    padding: 10px 5px;
    /*position:fixed;*/
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* S'assurer qu'elle est au-dessus du contenu */
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-banner .d-flex {
    max-width: 1200px; /* Pour éviter que le contenu s'étire trop */
    width: 100%;
}

.top-banner .btn-close {
    filter: invert(1); /* Rendre l'icône blanche */
}
.top-banner span {
    flex-grow: 1;
    text-align: center;
}

.top-banner a {
    color: white;
    margin-top:-5px;
    padding: 3px 10px !important;
    border-radius: 30px;
    /*font-weight: bold;*/
}

.top-banner.scrolled {
    top: -80px; /* Cache la bannière lorsque la page est scrollée */
}
.top-banner.notshow{
    display:none;
}


/* ============================= */
/* === MODAL === */
/* ============================= */
/* Style du modal */
#modalSheet {
    display:none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Assure qu'il est au-dessus de tout */
}

/* Boîte du modal */
#modalSheet .modal-dialog {
    max-width: 400px; /* Réduit la largeur du modal */
    margin: 0 auto;
}

/* Contenu du modal */
#modalSheet .modal-content {
    border-radius: 4px; /* Diminue les coins arrondis */
    padding: 0; /* Supprime les paddings */
}

/* En-tête */
#modalSheet .modal-header {
    border-bottom: none;
    padding: 10px 15px;
}

/* Corps */
#modalSheet .modal-body {
    padding: 10px 15px;
}

/* Pied */
#modalSheet .modal-footer {
    padding: 10px 15px;
    border-top: none;
    display: flex;
    justify-content: center;
}

/* Bouton centré et moins large */
#modalSheet .modal-footer .btn {
    width: 150px;
}

.btn-close-modal {
    box-sizing: content-box;
    width: 2em;
    height: 2em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
        center / 2em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
}

.btn-close-modal:hover {
    opacity: 0.75;
}

.btn-close-modal:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    opacity: 1;
}

.btn-close-modal:disabled,
.btn-close-modal.disabled {
    pointer-events: none;
    user-select: none;
    opacity: 0.25;
}


/* ============================= */
/* === SCROLLUP === */
/* ============================= */
#scrollup {
    position:fixed;
    bottom: 70px;
    right: 40px;
    border-radius: 4px;
    background-color: var(--vert-pop);
    color: #fff;
    text-align: center;
    width: 40px;
    padding-top:10px;
    height: 50px;
    opacity:0;
    transition : opacity 0.5s ease-in-out, transform 0.2s ease-in-out; /* Ajoute la transition fluide */
    cursor:pointer;
    z-index:1000;
}
#scrollup:hover {
    transform: scale(1.15);
    background-color: var(--vert);
}
#scrollup.scrolled {
    opacity:1;
}
#scrollup  i.fa-arrow-up{
    font-size:25px;
}


/* ============================= */
/* === HOMEPAGE === */
/* ============================= */
/* homeimage_x3 : specifique au container avec les 3 blocks images en overlay cliquables alignés */
/* en lien avec  custom-jquery.js */
.homeimage{
    transition:transform 0.4s ease-in-out/*, filter 0.4s ease-in-out*/;
    transform-origin: center center;
    z-index:inherit;
}
.homeimage:hover{
    transform:scale(1.03);
    /*filter: brightness(1.4);*/
    cursor:pointer;
    z-index:900;
}
.homeimage_x3 .wp-block-buttons{
    display:none;
}