:root {
    /* Couleurs */
    --clr-main-bg: #000000; /*noir */
    --clr-container-bg: #232323; /*gris foncé */
    --clr-accent-green: #009383; /*cyan foncé */
    --clr-card-bg: #383838;  /*gris */
    --clr-accent-turquoise: #6AD1C6; /*turquoise secondaire*/
    --bs-pagination-active-color : #009383 !important;
    /* Textes */
    --clr-text-white: #ffffff;
    --clr-text-gray: rgba(255, 255, 255, 0.6);

    --card-height: 300px; 
    
    --triangle-height: 200px; 

    --overlap-offset: 200px;

}

body {
    background-color: var(--clr-main-bg);
    color: var(--clr-text-white);
    overflow-x: hidden;
    
}
.btn:hover {
    background-color: var(--clr-card-bg) !important;
}
.navbar-nav .nav-link {
    font-family: 'klamp_105_boldbold', sans-serif !important;
    text-transform: uppercase;
    font-size: 1rem;           
    letter-spacing: 0.5px;
    margin-left: 15px;  
    color: var(--clr-text-white) !important;

}

#navbarContent{
    position: relative;
    left: 50px;
}

.logo-navbar{
    position: relative;
    right: 70px;
}
.text-green {
    color: var(--clr-accent-green);
}
.text-turquoise {
    color: var(--clr-accent-turquoise);
}


#btn-search{
    background-color: var(--clr-accent-green);
    color: var(--clr-text-white);
}

/* Le conteneur qui positionne le texte par-dessus l'image */
.hero-banner-overlay {
    z-index: 10;
}

/* Le grand titre principal */
.hero-main-title {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    font-family: 'klamp_105_boldbold', sans-serif !important;
    font-size: 50px;
    position: fixed;
    top: -150px;
}


h1, h2, h3, h4 {
    font-family: 'klamp_105_boldbold';
}


.banner-container-triangle {
    position: relative;
    overflow: hidden;
    max-height: 75vh !important;
}

.banner-container-triangle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50vw var(--triangle-height) 0;
    border-color: transparent transparent var(--clr-main-bg) transparent;
    z-index: 2;
}



.banner-container-triangle::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 var(--triangle-height) 50vw;
    border-color: transparent transparent var(--clr-main-bg) transparent;
    z-index: 2;
}

.hero-banner-img {
    object-fit: cover;
    max-height: 600px;
    width: 100%;
    display: block; 
    

}

.hero-banner-default {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-white);
    background-color: var(--clr-card-bg);
}

.section-dark-container {
    background-color: var(--clr-container-bg);
    border-radius: 20px;
}

/* Section Activité */
.activity-title {
    font-size: 2rem;
    color: var(--clr-text-gray) !important;
    font-family: 'klamp_105_boldbold';
    margin-bottom: 1.5rem; 
    padding-left: 30px; 
}



.activity-text {
    max-width: 700px; 
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text-white);
    font-family: 'segoe_uiregular';
    font-weight: 400;
    padding-left: 30px; 
}

.fleche-container {
    position: absolute;  
    right: 0;            
    top: 50%;            
    transform: translateY(-50%); 
    width: 500px;        
    z-index: 1;
}


.fleche-container img {
    width: 100%;
    height: auto;
    display: block;
}


/* CARTE VERTE */
.card-green-box {
    background-color: var(--clr-accent-green);
    height: var(--card-height) !important; 
    color: var(--clr-text-white);
    overflow: hidden; 
}

/* Texte spécifique Carte Verte */
.card-green-box h2.h3 {
    font-size: 2rem !important;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-family: 'klamp_105_boldbold';

}
.card-green-box p {
    line-height: 1.3;
    margin-bottom: 0;
    opacity: 0.9;
    font-family: 'segoe_uiregular';
    font-weight: 400;
    font-style: normal;

}

/* --- CARTES SERVICES (Gris) --- */
.card-service-row {
    height: var(--card-height) !important; /* Force la taille compacte */
    background-color: var(--clr-card-bg);
}

.card-service-left {
    background-color: var(--clr-card-bg); 
    color: var(--clr-text-white);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

/* Titre du service */
.card-service-left h5 {
    font-size: 0.9rem !important;
    margin-bottom: 5px;
    font-family: 'klamp_105_boldbold';
}

/* Description du service */
.service-desc {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--clr-text-gray);
    font-family: 'segoe_uiregular';
    font-weight: 400;
    font-style: normal;

}

.service-img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}


.btn-hero-green, .btn-hero-white {
    font-family: 'klamp_105_boldbold', sans-serif !important;
    text-transform: uppercase;
    padding: 12px 25px;       
    border-radius: 5px;       
    border: none;
    font-size: 0.9rem;
    text-decoration: none;    
    display: inline-block;    
    margin-right: 15px;
}

/* BOUTON 1 : VERT (Devis) */
.btn-hero-green {
    background-color: var(--clr-accent-green);
    color: #ffffff !important; 
}

/* BOUTON 2 : BLANC (Contact) */
.btn-hero-white {
    background-color: #ffffff; 
    color: var(--clr-accent-green) !important; 
    font-weight: bold;
}



.realisation-title {
    font-size: 2.5rem; /* Titre plus gros comme sur la maquette */
    color: var(--clr-text-white) !important;
    font-family: 'klamp_105_boldbold', sans-serif;
    margin-bottom: 1.5rem; 
    position: relative;
    z-index: 2; /* Pour passer au-dessus de la flèche */

}

/* Classe utilitaire pour la partie verte du titre */
.text-highlight {
    color: var(--clr-accent-green);
}

.realisation-text {
    max-width: 600px; /
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--clr-text-white);
    font-family: 'segoe_uiregular';
    font-weight: 400;
    position: relative;
    z-index: 2;
    bottom: 30px;
    right: 30px;
}

.fleche2-container {
    position: absolute;  
    right: 0;   /* Collé à droite */         
    top: 30%;            
    transform: translateY(-50%); /* Centré verticalement */
    width: 300px; 
    z-index: 1; /* Derrière le texte */
    opacity: 1; /* Mettre à 0.5 si vous voulez un effet filigrane */
}

.btn-realisation{
   position: relative;
   bottom: 170px;
   text-align: center;
}


.project-card {
    width: 100%;
    border-radius: 40px; /* Arrondi des coins */
    overflow: hidden;
    position: relative;
    

}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Coupe l'image pour remplir le cadre sans déformer */
    display: block;

}

.fleche-cta-service {
    width: 70px;
    position: relative;
    bottom: 40px;
    transition: transform 0.3s ease;
}

/* Optionnel : petit effet au survol de la carte verte */
.card-green-box:hover .fleche-cta-service {
    transform: translateX(8px);
}


.section-title-actu {
    font-family: 'klamp_105_boldbold', sans-serif !important;
    font-size: 2.5rem;
}

.actu-main-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto; /* On l'agrandit un peu pour le format 7/12 */
    border-radius: 30px;
    overflow: hidden;
}

.actu-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actu-card-side {
    aspect-ratio: 1 / 1; /* Force le format carré pour les petites actus */
    height: auto; /* On laisse l'aspect-ratio gérer */
}

.actu-img-side {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Description */
.actu-desc p, 
.actu-desc-small p {
    margin-bottom: 0;
}

.actu-desc-small {
    font-size: 0.8rem;
    line-height: 1.4;
}


.actu-desc-small p {
    margin: 0;
}

/* Liens "En savoir +" */
.link-actu, 
.link-actu-small {
    text-decoration: none;
    color: var(--clr-text-white);
    transition: color 0.2s;
}

.link-actu-small {
    font-size: 0.75rem;
}

.link-actu:hover, 
.link-actu-small:hover {
    color: var(--clr-accent-green); /* Le lien devient vert au survol */
}



.section-title-qualification{
   font-family: 'klamp_105_boldbold', sans-serif !important;
   font-size: 2.5rem;
}


.section-dark-container {
    background-color: var(--clr-container-bg);
    border-radius: 20px;
}

.section-grey-container {
    background-color: var(--clr-card-bg); /* Gris plus clair pour les 3 blocs */
    border-radius: 20px;
    height: 150px;
}

/* Ajustement pour que les titres ne soient pas trop gros dans ces boites */
.section-grey-container h3 {
    font-size: 16px !important;
    font-family: 'klamp_105_boldbold', sans-serif !important;
}

.contacter{
    position: relative;
    bottom: 10px;
    font-size: 0.8rem;
    padding-top: 5px;
}

/* --- CONFIGURATION DU MENU 3 COLONNES COMPACT --- */
.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, auto); /* S'adapte à la largeur du texte */
    gap: 8px 40px; /* Espace vertical réduit, espace horizontal généreux */
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-grid li a {
    color: var(--clr-text-white);
    text-decoration: none;
    font-family: 'segoe_uiregular', sans-serif;
    transition: color 0.3s;
    white-space: nowrap;
}
.btn-footer-size {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-width: 140px;
}

.footer-logo {
    max-height: 40px;
}

/* --- TEXTE CONTACT --- */
.x-small {
    font-size: 0.7rem;
}


.social-box {
    width: 30px;
    height: 30px;
    background-color: var(--clr-accent-green);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    text-decoration: none; 
}

.social-box i {
    font-size: 1.3rem;
    color: var(--clr-main-bg);
    line-height: 1; 
    display: block;
}

.footer-menu-grid li:last-child a {
    color: var(--clr-text-gray) !important; 
    opacity: 0.8;
}

.footer-menu-grid li:last-child a:hover {
    color: var(--clr-text-white) !important;
    opacity: 1;
}

/* --- SECTION FORMULAIRE ET DEVIS (ACF) --- */

.form-devis-box {
    border-radius: 20px; /* Grosses bordures arrondies */
    height: 120px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.form-devis-box:hover {
    transform: scale(1.02);
}

.form-devis-box h2 {
    font-family: 'klamp_105_boldbold', sans-serif !important;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--clr-text-white);
}

/* Couleur bloc Formulaire (Gris foncé) */
.bg-contact {
    background-color: var(--clr-card-bg);
}

/* Couleur bloc Devis (Vert Cyan) */
.bg-devis {
    background-color: var(--clr-accent-green);
}

.btn-fleche-img {
    height: 30px; /* Taille de la flèche blanche */
    width: auto;
}

/* Responsive : On réduit un peu la taille du texte sur petit écran */
@media (max-width: 768px) {
    .form-devis-box h2 {
        font-size: 1.5rem;
    }
}

.form-devis-box {
    border-radius: 20px; /* Arrondi des angles */
    min-height: 110px;
    display: flex;
    transition: all 0.3s ease;
}

.fleche-cta {
    width: 70px;
    height: auto;
    position: relative;
    top: 30px;
}

.bg-contact { 
    background-color: var(--clr-card-bg);
} 

.bg-devis {
 background-color: var(--clr-accent-green);
} 


.bg-contact:hover {
    background-color: var(--clr-main-bg) !important; 
    /
}


.bg-devis:hover {
    background-color: #00b8a4 !important; 
}

/* =========================================
   SECTION PRESTATIONS (SINGLE-PRESTATION)
   ========================================= */

.section-title-actu {
    color: var(--clr-accent-green) !important; /* Force le vert #009383 */
    font-size: 3rem;
    line-height: 1.1;
}

.content-prestation {
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'segoe_uiregular', sans-serif;
}

.section-dark-container {
    background-color: var(--clr-container-bg); /* #232323 */
}

/* --- CARTES ACF (TYPES DE PRESTATION) --- */
.clima-card {
    background-color: #383838;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px; /* Force une hauteur minimale pour l'alignement */
}


.clima-card:hover {
    transform: translateY(-5px);
}

.clima-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.clima-desc strong, 
.clima-desc b {
    display: block;
    text-transform: uppercase;
    font-family: 'klamp_105_boldbold', sans-serif;
    color: var(--clr-text-white);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.clima-img-container {
    margin-top: auto;
    height: 160px; /* Aplatit les cadres */
    width: 100%;
}

.clima-img-container img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}


.project-card {
    height: 350px; 
    background: #232323;
}

.service-icon-wrapper svg {
    width: 100px;
    height: auto;
}

.service-icon-wrapper svg path, 
.service-icon-wrapper svg circle, 
.service-icon-wrapper svg rect,
.service-icon-wrapper svg polygon {
    fill: #ffffff !important;
}


/* Le Grand Titre à gauche */
.install-title {
    font-family: 'klamp_105_boldbold', sans-serif;
    font-size: 2.8rem; /* Titre plus gros pour coller à la maquette */
    line-height: 1.1;
    color: var(--clr-text-white);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* La partie verte (DES INSTALLATIONS SUR MESURE) */
.install-title .text-highlight {
    display: block; /* Force le passage à la ligne */
    color: var(--clr-accent-green); /* Le vert du thème */
    margin-top: 5px;
}

/* Style des textes et listes (Gauche et Droite) */
.install-content {
    font-family: 'segoe_uiregular', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text-white);
}

/* Gestion des listes à puces (Bullet points) */
.install-content ul {
    list-style: none; 
    padding-left: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.install-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

/* La puce blanche (le petit point) */
.install-content li::before {
    content: "•";
    color: var(--clr-text-white);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}


.install-content h3, 
.install-content strong {
    font-family: 'klamp_105_boldbold', sans-serif;
    font-size: 1.5rem;
    color: var(--clr-text-white);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

/* galerie */
.grid {
    width: 100%;
    margin: 0 auto;
}

/* Éléments de la grille */
.grid-item {
    width: 32%; /* Environ 3 colonnes */
    margin-bottom: 15px;
    float: left;
    padding: 5px;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.02);
}

/* Boutons de filtres */
.filter-buttons .btn {
    margin: 5px;
    border-radius: 20px;
    font-family: 'mundialbold', sans-serif;
}

.filter-buttons .btn.active {
    background-color: var(--clr-green);
    color: white;
    border-color: var(--clr-green);
}

.zindex99 {
    z-index: 998;
}
.top-minus100 {
    top: -100px;
}
.top-plus100 {
    top: 100px;
}
.margintop {
    margin-top: var(--overlap-offset);
}
.overlap-container {
    position: relative;
}

.overlap-image {
    margin-top: -100px;
    z-index: 2;
    position: relative;
}

.clima-card-wrapper {
    perspective: 1200px;
    height: 100%;
}

.clima-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

.clima-card-wrapper:hover .clima-card-inner {
    transform: rotateY(180deg);
}

/* Faces */
.clima-card-front,
.clima-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* Face avant */
.clima-card-front {
    background: #222;
}

.clima-img-container {
    height: 100%;
}

.clima-front-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradientàk(to top, rgba(0,0,0,0.8), transparent);
}

/* Face arrière */
.clima-card-back {
    background: var(--clr-accent-green);
    transform: rotateY(180deg);
}
#galerie {
    position: relative;
    top: -75px;
}

/* ===============================
   FLIP CARDS ACTUALITES
================================ */

.actu-card-wrapper {
    perspective: 1200px;
    height: 100%;
}

.actu-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

.small-card .actu-card-inner {
    min-height: 180px;
}

.actu-card-wrapper:hover .actu-card-inner {
    transform: rotateY(180deg);
}

.actu-card-front,
.actu-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

.actu-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actu-card-back {
    background: var(--clr-accent-green);
    transform: rotateY(180deg);
    color: white;
}

/* Désactivation flip mobile */
@media (max-width: 768px) {
    .actu-card-wrapper:hover .actu-card-inner {
        transform: none;
    }
}


/* =========================
   NAVBAR UNDERLINE ANIMATION
   (exclut dropdown-toggle)
========================= */

.navbar-nav .nav-link:not(.dropdown-toggle) {
    position: relative;
    display: inline-block;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: var(--clr-accent-green);
    
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    transform: scaleX(1);
}

/* Souligné si actif */
.navbar-nav .current-menu-item > .nav-link:not(.dropdown-toggle)::after {
    transform: scaleX(1);
}

/* =========================
   DROPDOWN AU HOVER (DESKTOP)
========================= */

@media (min-width: 992px) {

    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
    }

}


/* Glow subtil sur étoiles */
.elfsight-app-d0149f40-cc7b-4e0d-9f63-5d9b0796cbd8 svg {
  transform-origin: center;
}

.section-dark-container {
    overflow: visible; /* important */
}

/* Wrapper */
.entreprise-img-wrapper {
    position: absolute;
    right: 0;
    top: -40px; /* Fait sortir vers le haut */
    width: 90%;
    z-index: 3;
}

/* Image */
.entreprise-img-superpose {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    object-fit: cover;
}

/* On ajoute de l'espace en bas du container */
.section-dark-container {
    padding: 30px;
}

@media (min-width: 992px) {

  .prestation-sticky-wrapper {
    position: sticky;
    top: 120px; /* ajuste selon ton header */
  }

}
.prestation-featured-img img {
    transition: transform 0.6s ease;
}

.prestation-featured-img:hover img {
    transform: scale(1.05);
}

div.wpforms-container-full .wpforms-field-label, .wp-core-ui div.wpforms-container-full .wpforms-field-label {
    font-weight: normal;
    color: white;
}

footer a,
main#main a {
    text-decoration: none;
    color: var(--clr-accent-green);
}
footer a:hover,
main#main a:hover {
    color: var(--clr-text-gray);
}

div.wpforms-container-full input[type=submit]:not(:hover):not(:active), div.wpforms-container-full button[type=submit]:not(:hover):not(:active), div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full input[type=submit]:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full button[type=submit]:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active) {
    background-color: var(--clr-accent-green) !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    color: var(--clr-accent-green);
}

.active>.page-link, .page-link.active {
    background-color: var(--clr-accent-green);
}
.active>.page-link, .page-link.active {
    border-color: var(--clr-accent-green);
}

.btn-check:checked + .btn-outline-secondary {
  background-color: var(--clr-accent-green);
  border-color: var(--clr-accent-green);
  color: #fff;
}
.dropdown-menu {
    background-color: var(--clr-accent-green);
}

.current-menu-item .dropdown-item {
    color: white;
}


#site-preloader {
  position: fixed;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  width: 100%;
}

.preloader-logo svg {
    width: 100%;
  height: auto;
  opacity: 1;
  transform: translateY(20px);
}

body.loaded #site-preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.preloader-logo path {
  stroke: #00b3a4;
  stroke-width: 1;
  fill: transparent;
}
#site-preloader svg {
  visibility: hidden;
}

.eapps-instagram-feed-posts-item {
    border-radius: 1rem;
}

.summary .col-md-3 {
    display: flex;
}

.summary .col-md-3 p {
    flex: 1;
    display: flex;
}

.summary .btn-hero-green {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}