/*
Theme Name: twentytwentyfive-child
Template: twentytwentyfive
Text Domain: twentytwentyfive-child
Tags: 
*/

/* Footer */
body .mc4wp-form-fields input {background-color: #2b2b2b !important; color:#ccc !important; border: 1px solid #555 !important;}
.mc4wp-form-fields p {margin: 5px 3px;  }
.mc4wp-form-fields input[type="submit"] { width:100%; border:none !important; }
.mc4wp-form {width:100%; }

/* footer columns */
footer .wp-block-columns {flex-wrap:wrap !important}
footer .wp-block-column {min-width: 225px; max-width:44%;  }

/* Home header - slider */
.header-home {  position: absolute; top: 0;  left: 0;  right: 0;  z-index: 100;  background: transparent; }

.header-home .wp-block-navigation-item__content,
.header-home a {  color: #fff;}

.home .wp-block-cb-carousel-v2 {margin-top:0px; }
.home .wp-block-cb-carousel-v2.alignfull .cb-button-next,
.wp-block-cb-carousel-v2.alignfull.cb-rtl .cb-button-prev {color: #fff;}
.wp-block-cb-carousel-v2.alignfull .cb-button-prev,
.wp-block-cb-carousel-v2.alignfull.cb-rtl .cb-button-next {color:#fff;}
.home .cb-single-slide .swiper {background-color: #222;}

/* Animations */
.animate-in { opacity: 0; transition: opacity .8s ease; }
.animate-in.visible { opacity: 1; }
.animate-up { opacity: 0; transform: translateY(20px); transition: all .8s ease; }
.animate-up.visible { opacity: 1; transform: translateY(0); }
.animate-left { opacity: 0; transform: translateX(-20px); transition: all .8s ease; }
.animate-left.visible { opacity: 1; transform: translateX(0); }
.animate-right { opacity: 0; transform: translateX(20px); transition: all .8s ease; }
.animate-right.visible { opacity: 1; transform: translateX(0); }
.animate-zoom { opacity: 0; transform: scale(.85) translateY(20px); transition: all .8s ease; }
.animate-zoom.visible { opacity: 1; transform: scale(1) translateY(0); }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }
.animate-delay-5 { transition-delay: .5s; }
.animate-delay-6 { transition-delay: .6s; }

/* slider animations - loading after sliding */
.hero-slide {opacity:0;}
.hero-title,.hero-cta {opacity:0;transform:translateY(30px);}
.swiper-slide-active .hero-slide {animation:heroReveal 1.8s ease forwards;}
.swiper-slide-active .hero-title {animation:fadeUp .6s ease forwards;animation-delay:.4s;}
.swiper-slide-active .hero-cta {animation:fadeUp 1s ease forwards;animation-delay:.7s;}

@keyframes heroFade {
    from {opacity:0;}
    to {opacity:1;}
}

@keyframes heroReveal {
    from {opacity:0;transform:translateY(-15px) scale(1.01);}
    to {opacity:1;transform:translateY(0) scale(1);}
}

@keyframes fadeUp {
    from {opacity:0;transform:translateY(30px);}
    to {opacity:1;transform:translateY(0);}
}

/* Hover Effects */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform .4s ease; }
.hover-zoom:hover img { transform: scale(1.03); }

.hover-image-overlay { overflow: hidden; }
.hover-image-overlay img { transition: transform .4s ease, filter .4s ease; }
.hover-image-overlay:hover img { transform: scale(1.05); filter: brightness(.85); }

.hover-lift { transition: transform .3s ease, box-shadow .3s ease; }
.hover-lift:hover { transform: translateY(-4px) ; box-shadow: 0 10px 25px rgba(0,0,0,.12); }
 
.hover-grow { transition: transform .3s ease; }
.hover-grow:hover { transform: scale(1.03); }

.hover-card { transition: transform .3s ease, box-shadow .3s ease; }
.hover-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }

.hover-card img { transition: transform .4s ease; }
.hover-card:hover img { transform: scale(1.05); }

.hover-highlight { transition: background-color .3s ease; }
.hover-highlight:hover { background-color: #f8f8f8; }

.hover-border { transition: border-color .3s ease; }
.hover-border:hover { border-color: #000; }
.hover-border-yellow { transition: border-color .3s ease; }
.hover-border-yellow:hover { border-top-color: #f0c419; border-bottom-color: #f0c419; }
 
 
/* sticky header */

.menu-top-white { position: relative; transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease; }
.menu-top-white a { color: white; }
.menu-top-white .wp-block-navigation-item__content { color: white; }
.menu-top-white.is-sticky { position: fixed; top: 0px; left: 0; width: 100%; background: #fff; padding-top: 15px !important; padding-bottom: 10px; z-index: 9999; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.menu-top-white.is-sticky .mega-menu-link { color: #000 !important; -webkit-text-fill-color: #000 !important; }
.menu-top-white.is-sticky .mega-menu-link:link { color: #000 !important; -webkit-text-fill-color: #000 !important; }
.menu-top-white.is-sticky .mega-menu-link:visited { color: #000 !important; -webkit-text-fill-color: #000 !important; }
.menu-top-white.is-sticky .is-content-justification-center { border-top: solid 1px #aaa; border-bottom: solid 1px #aaa; }
 
body.admin-bar .menu-top-white.is-sticky { top: 32px; padding-top: 15px !important; }

/* Accordeon */
/*.wp-block-accordion-heading { font-weight: normal; font-size:large; text-transform: uppercase; border-top:solid 1px #ddd; border-bottom:solid 1px #ddd; }*/
.wp-block-accordion-panel {margin-top:0px; }


/* pop-up video */

.popup-video { position: relative; }
.popup-video::after { content: ''; width: 70px; height: 70px; border: 3px solid #fff; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.popup-video::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-30%, -50%); border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff; pointer-events: none; z-index: 2; }
.popup-video a::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); border-radius: 6px; pointer-events: none; z-index: 1; }

/**/


/* contact 7 form */
.wpcf7 input {height:30px; margin-top:5px; padding:7px; box-sizing: border-box; width: 100%;}
.wpcf7 select {height:30px; margin-top:5px; box-sizing: border-box; font-size: 0.9rem; width: 100%;}
.wpcf7 p {margin:0px; padding:0px; font-size:0.9rem; }
.wpcf7 p label{ margin-top:10px; display:inline-block; width:100%; }
.wpcf7-textarea {height:130px; width:100%; margin-top:5px;  box-sizing: border-box; }

span.wpcf7-list-item { display: block; margin-top:5px; margin-bottom:5px }
.wpcf7-list-item input {width:15px !important; height:15px !important; }
.wpcf7-list-item-label {padding-left:5px; vertical-align:text-top }

.wpcf7-form-control-wrap .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  /* Adjusts the space between each radio option */
}

.wpcf7-form input.wpcf7-submit {
  background-color: #0073aa;  color:#fff; border:none; border-radius: 6px; height:45px; margin-top:20px; font-size: 1rem; ;
}

.demander-soumission {display:flex; gap:26px; }
.ds-project {width:100%; padding:1px; } 
.ds-client {width:100%; padding:1px; }

/* end contact 7 */

/* start careers */

.career_form {display:flex; flex-wrap: wrap; justify-content: space-between; gap:10px; }
.career_form p {width:48%;}
.career_form input, .career_form select, .career_form textarea { width:100%; }
.career_form input[type="text"],  .career_form input[type="email"], .career_form input[type="tel"],  .career_form select {box-sizing: border-box; display: block; height:35px; 
   padding:7px; font-size:14px; font-family: inherit; }
 
.career_form textarea {box-sizing: border-box; height:110px; padding:20px; }
.career_form .wpcf7-submit { background-color: #000; color:#fff; padding:1rem; text-transform: uppercase; border-radius:6px; border:none; cursor:pointer;  }
.career_form label {font-size:14px; }

.career_form p:nth-last-child(-n+8) { width: 100%; }


.wp-block-custom-emplois { width: 100%; }
.emploi-item { width: 100%; padding: 20px 0; border-bottom: 1px solid #ddd; }
.emploi-title { display: flex; justify-content: space-between; align-items: flex-start; font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.emploi-date { font-size: 13px; font-weight: 500; color: #666; white-space: nowrap; }
.emploi-meta { display: flex; gap: 10px; margin-bottom: 15px; }
.emploi-meta > div { border: 1px solid #ccc; padding: 6px 10px; font-size: 13px; color: #666; background: #f5f5f5; }
.emploi-links { margin-top: 10px; }
.emploi-link { display: inline-block; padding: 10px 16px; background: #000; color: #fff; border-radius: 6px; text-decoration: none; font-size: 13px; 
  font-weight: 600; text-transform: uppercase; }
.emploi-link:hover { background: #333; }
/* end careers */

:where(.wp-site-blocks :focus) { outline: none !important; }

.alignfull .wp-block-cover { overflow: visible; }
.grecaptcha-badge { visibility: hidden; }

/* start header slider */
.group-header {position: relative; padding-top:0px; margin-top:0px;}
.group-header .header-home { 
  position: absolute;  
  top: 0;
  width: 100%;
  z-index: 10; 
}

.n2-section-smartslider {
margin-block-start: 0 !important;
}

/* end header slider */

p a {
  font-weight: inherit;
}
 
li.produit .wp-block-group {height:100%; }

/*
p a:link { text-decoration: none;}
*/
p a {
  transition: text-decoration-color 0.8s ease-in-out;
}


ul.is-style-checkmark-list {
  list-style: none;
  padding-left: 0;
}

ul.is-style-checkmark-list li::before {
  content: "›" !important;
  margin-right: 8px;
}

/* Contact page */
.contact_form input, .contact_form select, .contact_form textarea { width:100%; }
.contact_form input[type="text"],  .contact_form input[type="email"], .contact_form select {box-sizing: border-box; display: block; height:35px; width:100%; padding:7px; font-size:14px; font-family: inherit; }
 
.contact_form textarea {box-sizing: border-box; height:110px; padding:20px; }
.contact_form .wpcf7-submit { background-color: #000; color:#fff; padding:1rem; text-transform: uppercase; border-radius:6px; border:none; cursor:pointer; }
.contact_form label {font-size:14px; }

 /* Set menu txt color to white (top items) when using a cover */
.wp-block-cover #mega-menu-max_mega_menu_1 > .mega-menu-item > a {color:#fff !important; }
.wp-block-cover #mega-menu-max_mega_menu_1 .demander-soumission a {color: #f0c806 !important; }

.demander-soumission a {color: #0371c0 !important; }

/* Info products */
.product-spec-row { display: flex; justify-content: space-between; border-bottom: solid 1px #ccc; padding: 15px 10px; }
.product-spec-label { width: 38%; }
.product-spec-value { width: 62%; }
.product-specs-grid { margin-bottom: 40px; }
.product-spec-note .product-spec-value { width: 100%; }
.product-spec-note-main .product-spec-value { width:fit-content; padding:5px 10px; background-color:#eee; border-radius: 4px; color:#555; }
.product-spec-note { border:none; }
.product-spec-note-secondary { color:#888; }

/* prod description */
.product-description { text-align: justify; }

/* Product downloads */
.product-downloads { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.product-downloads .product-download-button { padding: 20px 30px; background-color: #111; text-decoration: none; text-transform: uppercase; font-size: 15px; font-weight: bolder; border-radius: 4px; color: #fff; }
.product-downloads .product-download-cta { background-color: #f3c802; color: #000; }

/* Main image */
.product-gallery-main img { width: 100%; height: auto; display: block; border: solid 1px #ccc; border-radius: 10px; margin-bottom: 15px; } 

/* Thumbnails row */ 
.product-gallery-thumbnails { display: flex; gap: 0.5rem; flex-wrap: wrap; } 
.product-gallery-thumbnail-wrapper { width: 96px; height: 96px; overflow: hidden; cursor: pointer; }

/* Make thumbnails square */ 
.product-gallery-thumbnail-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Editor preview */
.product-gallery-preview { padding: 1rem; border: 1px dashed #ccc; background: #fafafa; opacity: 0.8; }

/* Alternate table */
/* Desktop table */
.product-alternate-desktop { width: 100%; border-collapse: collapse; }
.product-alternate-desktop th,
.product-alternate-desktop td { border: 1px solid #ddd; padding: 0.5rem; text-align: center; }

/* Mobile cards (hidden by default) */
.product-alternate-mobile { display: none; }

/* Mobile view */
@media (max-width: 900px) {
    .product-alternate-desktop { display: none; }
    .product-alternate-mobile { display: block; }
    .product-alternate-card { border: 1px solid #ddd; padding: 1rem; margin-bottom: 1rem; }
    .product-alternate-row { display: flex; justify-content: space-between; padding: 0.25rem 0; border-bottom: 1px dashed #eee; }
    .product-alternate-row:last-child { border-bottom: none; }
    .product-alternate-label { font-weight: 600; }
}

/* Editor placeholder */
.product-alternate-preview { padding: 1rem; border: 1px dashed #ccc; background: #fafafa; opacity: 0.8; }

/* product slider */
.product-slider { margin: 4rem auto; position: relative; }
.product-slider .splide__slide { padding: 0 0.75rem; }
.product-slider a { display: block; text-decoration: none; }
.product-slider img { width: 100%; height: auto; display: block; border-radius: 4px; }
.product-slider .splide__arrow { background: rgba(0, 0, 0, 0.6); width: 44px; height: 44px; border-radius: 50%; }
.product-slider .splide__arrow svg { fill: #fff; }
.product-slider .splide__arrow--prev { left: -1.5rem; }
.product-slider .splide__arrow--next { right: -1.5rem; }
.product-slider .splide__slide a { background: #fff; padding: 1rem; border-radius: 6px; transition: transform 0.2s ease; }
.product-slider .splide__slide a:hover { transform: translateY(-4px); }
.product-slider { position: relative; }

/* Remove round background */
.product-slider .splide__arrow { background: #fff; border-radius: 0; box-shadow: none; width: 36px; height: 36px; opacity: 1; }

/* Dark arrows */
.product-slider .splide__arrow svg { fill: #000; width: 20px; height: 20px; }

/* Position */
.product-slider .splide__arrow--prev { left: -40px; }
.product-slider .splide__arrow--next { right: -40px; }

/* Optional hover */
.product-slider .splide__arrow:hover svg { fill: #111; }
.product-slide-title { font-size: 1.1em; font-weight: 700; text-align: center; margin-top: 0.75rem; }

/* Sidebar */
.produit-accordion-item { margin-bottom: 0.25rem; }
.wp-container-core-columns-is-layout-28f84493 .wp-block-column {min-width: 230px  }


.produit-accordion-toggle { font-size:16px; display: flex; align-items: center; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; 
      padding: 13px 12px 11px 12px; border:solid 1px #ccc; border-radius: 4px; }

.produit-accordion-level .produit-accordion-toggle {margin-left:6px; background-color: #fff; border:none; } 

.produit-accordion-toggle.has-link { color:#777; border: none; padding:4px 12px; }
 
.produit-accordion-arrow { margin-left: auto; width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; 
 transform: rotate(45deg); transition: transform 0.2s ease; }

.produit-accordion-toggle.is-open .produit-accordion-arrow { transform: rotate(-135deg); }

.produit-accordion-level { overflow: hidden; transition: max-height 0.35s ease; }

.wp-block-echafauds-produit-sidebar ul { margin: 0; padding-left: 0; list-style: none; }
.wp-block-echafauds-produit-sidebar li { margin-block: 0.25em; }
.wp-block-echafauds-produit-sidebar li a {   text-decoration: none; }
.wp-block-echafauds-produit-sidebar li a:hover {  text-decoration: underline; }

/* Breadcrumbs */
.breadcrumbs { color:#aaa; font-weight: normal;  }

/* Read more toggle */
.product-description-toggle { margin-top: 0.5rem; background: #fff; border: solid 1px #ccc; color: #aaa; font-weight:normal; cursor: pointer; }
.product-description-wrapper { position: relative; }
.product-description-content { position: relative; overflow: hidden; max-height: 12em; transition: max-height 0.4s ease; }
.product-description-content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3rem; pointer-events: none;
     background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0)); transition: opacity 0.3s ease; }

.product-description-wrapper.is-expanded .product-description-content { max-height: 100vh; }
.product-description-wrapper.is-expanded .product-description-content::after { opacity: 0; }
.product-description-toggle-wrapper { margin-top: 0.75rem; text-align: left; }
.product-description-toggle { font-weight: normal; cursor: pointer; padding: 0;  padding:6px 10px; font-size: 16px; 
    border-radius: 4px; border:solid 1px #ccc; }

.product-description-wrapper.no-read-more .product-description-content::after { display: none; }


 /* laptop */
@media screen and (max-width: 1030px) { 

  /* mobile form - soumission */
.demander-soumission {flex-wrap: wrap;}
.wpcf7 input {height:35px; margin-top:5px; padding:7px; box-sizing: border-box; width: 100%;}
.wpcf7 select {height:35px; margin-top:5px; box-sizing: border-box; font-size: 0.9rem; width: 100%;}
.wpcf7-textarea {height:130px; width:100%; margin-top:5px;  box-sizing: border-box; }
 
#mega-menu-max_mega_menu_1 .mega-menu-item a.mega-menu-link {color: #000 !important;   }
#mega-menu-wrap-max_mega_menu_1 {  margin:10px;  }

.home .menu-top-white .wp-container-core-columns-is-layout-28f84493 {  max-height:120px; }
.menu-top-white.is-sticky { top: 0px; }
.header-home {padding-top:2px !important; }
 
footer .is-layout-flex   .is-vertically-aligned-top {  margin-bottom:35px; }

 
}

/* tablet */
@media screen and (max-width:778px) { 

/*sidebar for categories and products */
.wp-container-core-columns-is-layout-28f84493 .wp-block-column:first-child { order: 1;  }

/* keep the header columns the same */
header .wp-container-core-columns-is-layout-28f84493  .wp-block-column:first-child { order: 0;    }


}

/* smaller phones */
@media screen and (max-width:465px) {
.home .menu-top-white .wp-container-core-columns-is-layout-28f84493 {  max-height:115px}
.home .menu-top-white .wp-container-core-group-is-layout-d13f686d figure { margin-top:-12px; }
.home .wp-container-core-group-is-layout-7b7a3b11  .wp-block-group { padding-top: 20px !important; min-height:140px !important;  } 
.asp_compact {margin-right: 10px !important; margin-top:-15px !important;   }

.produit-sidebar-accordion {   display:none;  }

/* footer columns */
 
footer .wp-block-column {max-width: 100%;   }



}