/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/

:root{
    --rouge-couvreur:#C1282F;
}

.rouge {
	color: var(--rouge-couvreur);
}

.bg-rouge {
	background: var(--rouge-couvreur);
	color: #fff!important;
}


body{
    font-family: "Kanit", sans-serif;
    font-style: normal ;
}

p{
    font-weight: 200;
    font-size: 1.2rem;
}

h2{
    font-size: 2.5rem;
    font-weight: 500;
}

/* HEADER */

.nav-item{
    padding:10px;
}

.nav-link{
    font-weight: 300;
    --bs-nav-link-color: black !important;
}

.navbar-nav .nav-link.active{
    color: var(--rouge-couvreur);
    font-weight: 500;
}


#logo-header{
    transition: all ease .5s;
}

#contact-header{
    transition: all ease .5s;
}

.cta-style-1{
    background-color: var(--rouge-couvreur);
    padding: 10px 20px;
    color: white;
    border: none;
    transition: background-color .5s;
}

.cta-style-1:hover{
    background-color:#cf4f56;
    padding: 10px 20px;
    color: white;
    border: none;
}

.cta-style-2 {
    background-color: transparent;
    padding: 10px 20px;
    color: white; /* Texte en blanc initialement */
    font-weight: 400;
    border: 4px solid white; /* Syntaxe plus lisible */
    transition: background-color .5s, color .5s; /* Ajout d'une transition sur la couleur */
}

.cta-style-2:hover {
    background-color: white;
    color: var(--rouge-couvreur); /* Utilisation de la variable CSS */
    font-weight: 400; /* Pas de modification nécessaire ici */
    border: 4px solid white; /* Garde la cohérence */
}


.title-highlight{
    color: white;
    background-color: var(--rouge-couvreur);
    padding:15px 20px;
}

@media (min-width: 1200px) {
    .depassement-cards {
        position: relative;
        top: -100px;
        z-index: 2;
    }
}
/* SECTION CHANTIERS */
.card-chantier {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    transform: scale(1);
    transition: transform 0.25s;
}

.card-chantier:hover {
    border: solid var(--rouge-couvreur) 2px;
    transform: scale(1.05);
}
/* SECTION SERVICE */
.card-service{
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px; 
    transform: scale(1);
    transition: transform 0.25s;
}
.card-service:hover{
    border: solid var(--rouge-couvreur) 2px;
    transform: scale(1.05);
}

/* Accordions CSS */
.check-input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.accordion {
    width: 100%;
    color: white;
    overflow: hidden;
    margin-bottom: 16px;
}

.accordion:last-child {
    margin-bottom: 0;
}

.accordion-label {
    display: flex;
    justify-content: space-between;
    padding: 25px 30px;
    background: var(--rouge-couvreur);
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s ease;
}

.accordion-label:hover {
    background: #c93c43;
}

.accordion-label::after {
    content: "\276F";
    width: 20px;
    height: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    padding: 0 50px;
    color: rgba(4,57,94,1);
    background: #F4F4F4;
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.check-input:checked + .accordion-label {
    background: #c93c43;
}

.check-input:checked + .accordion-label::after {
    transform: rotate(90deg);
}

.check-input:checked ~ .accordion-content {
    max-height: 100vh; /* Adjust as needed */
    padding: 16px;
    overflow-y: scroll;
}

.accordion-label h4 {
    margin: 0;
    font-weight: 400;
}

/* FORMULAIRE DE CONTACT */

.wpcf7-form-control{
    border: solid var(--rouge-couvreur) 1px;
}

.wpcf7-submit{
    background-color: var(--rouge-couvreur) !important;
    padding: 15px 25px;
    color: white;
    border: none;
}
.wpcf7-submit:hover{
    background-position: 90% 0;
}

.wpcf7-acceptance{
    border: none !important;
}

.input-column p{
    margin:0 ;
}

.bulle-reassurance {
    transform: scale(1);
    transition: transform 1s; 
}

.bulle-reassurance:hover {
    transform: scale(0.95);
}



/* Masquer contact-header sur petits écrans */
#contact-header-container #contact-header {
    display: none;
  }
  
  /* Bouton "enveloppe" visible uniquement sur petits écrans */
  .contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rouge-couvreur);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .contact-button:hover {
    background-color: #b30000;
  }
  
  /* Pop-up styling */
  .contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }
  
  .popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  
  .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  @media (min-width: 992px) {
    /* Masquer bouton enveloppe sur grand écran */
    .contact-button {
      display: none;
    }
  
    /* Afficher le contact-header sur grand écran */
   #contact-header {
      display: flex;
    }
  }
  


  /* FOOTER COULEUR DES LIENS */

  .bootscore-footer-info a{
    color: white;
  }

  .bootscore-footer-info a:hover{
    color: rgb(150, 150, 150);
  }

.float-phone {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: var(--rouge-couvreur);
    border: 3px solid #fff;
    color: #fff;
    border-radius: 66rem;
    font-size: 2rem;
    padding: 1rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
	z-index: 9999;
}
 
#footer-menu {
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    #footer-menu {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
