/*
Theme Name: Water Leak Group theme
Description: Theme enfant de twentytwentyfive
Author: Romain Dhomps
Author URI: https://www.wanderstudio.fr
Template: twentytwentyfive 
Version: 0.1.0
*/

html {
    scroll-behavior: smooth;
}

.gr-height {
    height: 100vh !important;
}

.header-fixe {
    position: fixed !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
    top: 0;
    z-index: 20;
    width: 100%;
}

.col-hover {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex !important;
}

.colonne-hov {
    position: relative;
    flex: 1 1 33.33% !important;
    height: 100%;
    transition: flex 0.5s ease;
    overflow: hidden;
}

.colonne-hov .gr-height {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.colonne-hov .wp-block-spacer {
    display: none !important;
}

.colonne-hov h2,
.colonne-hov h3 {
    opacity: 0;
    pointer-events: none;
}

.col-hover.hover-active .colonne-hov {
    flex: 0 0 0% !important;
}

.col-hover.hover-active .colonne-hov.active {
    flex: 1 1 100% !important;
}

/* Zones titres */
.zone-titre {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    z-index: 10;
}

.zone-titre h2 {
    color: white;
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 2.5vw;
}

.zone-titre h3 {
    color: white;
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 4vw;
    line-height: 1;
    word-break: break-word;
}

.zone-titre .voile {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: height 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

/* Desktop */
.zone-titre.desktop {
    bottom: 0;
    width: 33.33%;
    height: 30%;
    padding: 0 5% 5% 5%;
}

.zone-titre.desktop:nth-child(4) { left: 0; }
.zone-titre.desktop:nth-child(5) { left: 33.33%; }
.zone-titre.desktop:nth-child(6) { left: 66.66%; }

/* Mobile */
@media (max-width: 850px) {
    .zone-titre {
        left: 0;
        width: 100%;
        height: 33.33%;
        justify-content: center;
        padding: 0 5%;
    }
    
    .zone-titre:nth-child(4) { top: 0; }
    .zone-titre:nth-child(5) { top: 33.33%; }
    .zone-titre:nth-child(6) { top: 66.66%; }
    
    .zone-titre h2 {
        display: none !important;
    }
    
    .zone-titre h3 {
        font-size: 15vw;
    }
    
    .zone-titre .voile {
        transition: none;
        max-height: 100%;
    }
}

.voile-bleu {
  position: relative;
}

.voile-bleu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(4, 82, 116, 0.3);
  pointer-events: none;
  z-index: 1;
}

.voile-bleu2 {
  position: relative;
}

.voile-bleu2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(94, 180, 188, 0.3);
  pointer-events: none;
  z-index: 1;
}

.voile-bleu3 {
  position: relative;
}

.voile-bleu3::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(171, 193, 210, 0.3);
  pointer-events: none;
  z-index: 1;
}

.voile-bleu4 {
    position: relative;
}

.voile-bleu4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #045274, transparent);
    pointer-events: none;
    z-index: 1;
}

.voile-bleu4 > * {
    position: relative;
    z-index: 2;
}

.voile-bleu5 {
    position: relative;
}

.voile-bleu5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #39888e, transparent);
    pointer-events: none;
    z-index: 1;
}

.voile-bleu5 > * {
    position: relative;
    z-index: 2;
}

.voile-bleu6 {
    position: relative;
}

.voile-bleu6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ABC1D2, transparent);
    pointer-events: none;
    z-index: 1;
}

.voile-bleu6 > * {
    position: relative;
    z-index: 2;
}

.voile-bleu7 {
    position: relative;
}

.voile-bleu7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #39888e, transparent);
    pointer-events: none;
    z-index: 2;
}

/* Texte au-dessus du voile */
.voile-bleu7 .wp-block-column:first-child > * {
    position: relative;
    z-index: 3;
}

/* Bannière derrière le voile */
.banniere-programme {
    position: relative;
    z-index: 1;
}

.voile-bleu8 {
    position: relative;
}

.voile-bleu8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 1;
}

.voile-bleu8 > * {
    position: relative;
    z-index: 2;
}

a.zone-titre {
    text-decoration: none !important;
    cursor: pointer;
}

a.zone-titre:hover {
    text-decoration: none !important;
}

.wp-block-navigation__responsive-container-open svg {
    display: none !important;
}

.wp-block-navigation__responsive-container-open {
    position: relative !important;
    width: 40px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.wp-block-navigation__responsive-container-open::before,
.wp-block-navigation__responsive-container-open::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    width: 85% !important;
    height: 2px !important;
    background: white !important;
}

.wp-block-navigation__responsive-container-open::before {
    top: 0 !important;
    box-shadow: 0 11px 0 white !important;
}

.wp-block-navigation__responsive-container-open::after {
    bottom: 0 !important;
}

.wp-block-navigation__responsive-container-open {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.wp-block-navigation__responsive-container-open:focus,
.wp-block-navigation__responsive-container-open:active {
    outline: none !important;
    box-shadow: none !important;
}

.menu-home .wp-block-navigation__responsive-container {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 40% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s ease !important;
    z-index: 9999 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-home .wp-block-navigation__responsive-container.is-menu-open {
    transform: translateX(0) !important;
}

.menu-home .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.menu-home .wp-block-navigation__responsive-container.is-menu-open {
    pointer-events: auto !important;
}

.menu-home .wp-block-navigation__responsive-close {
    width: 100% !important;
    height: 100% !important;
}

.menu-home .wp-block-navigation__responsive-dialog {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 80px 30px 30px 30px !important;
}

.menu-home .wp-block-navigation__responsive-container-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.menu-home .wp-block-navigation__responsive-container .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.menu-home .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    color: white !important;
    font-size: 1.5rem !important;
}

.menu-home .wp-block-navigation__responsive-container-close {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
}

.menu-home .wp-block-navigation__responsive-container-close svg {
    fill: white !important;
    width: 30px !important;
    height: 30px !important;
}

@media (max-width: 850px) {
    .menu-home .wp-block-navigation__responsive-container {
        width: 70% !important;
    }
}

.entry-content.wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
}

.entry-content > .wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

/* Menu-page en mobile */
@media (max-width: 600px) {
    .menu-page .wp-block-navigation__responsive-container {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 70% !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.95) !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s ease !important;
        z-index: 9999 !important;
    }

    .menu-page .wp-block-navigation__responsive-container.is-menu-open {
        transform: translateX(0) !important;
    }

    .menu-page .wp-block-navigation__responsive-dialog {
        padding: 80px 30px 30px 30px !important;
    }

    .menu-page .wp-block-navigation__responsive-container .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .menu-page .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
        color: white !important;
        font-size: 1.5rem !important;
    }

    .menu-page .wp-block-navigation__responsive-container-close {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        background: transparent !important;
        border: none !important;
    }

    .menu-page .wp-block-navigation__responsive-container-close svg {
        fill: white !important;
        width: 30px !important;
        height: 30px !important;
    }
}

/*Formulaire*/
#formulaire-responsive {
	max-width:600px /*-- à modifier en fonction de la largeur désirée --*/;
	margin:0px;
  width:100%;
}

.rang-form {
	width: 100%;
}

.demi-colonne, .colonne {
	float: left;
	position: relative;
	padding: 0.30rem;
	width:100%;
	-webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
}
.clearfix:after {
	content: "";
	display: table;
	clear: both;
}

/**---------------- Media query ----------------**/
@media only screen and (min-width: 48em) { 
	.demi-colonne {
		width: 50%;
	}
}

.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
	font-family: var(--wp--preset--font-family--raleway) !important;
    text-align: center !important;
	font-size: 16px;
  	width: 100%;
  	padding: 20px 10px;
  	border: none;
  	border-radius: 0;
  	background-color: rgba(57, 136, 142, 0.05);
  	color: #243849;
  	box-sizing: border-box;
  	transition: border-color 0.3s, color 0.3s;
}

.wpcf7 textarea {
  height: 100px; /* ← tu peux ajuster cette valeur (ex : 60px, 100px, etc.) */
  resize: vertical; /* permet encore à l'utilisateur d'agrandir si besoin */
}

.wpcf7-submit{
	display: flex !important;
    margin: 0 auto;
    font-family: var(--wp--preset--font-family--raleway) !important;
    font-weight: 700;
    font-size: 21px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    transition-timing-function: ease-out;
    transition-duration: 0.3s;
    border: 0px !important;
    border-style: solid !important;
    border-radius: 0px !important;
    background-color: #b3fd71 !important;
    color : #004a98;
    position: relative;
    overflow: hidden; /* Important pour le dégradé */
    z-index: 1;
}

/* Pour le bouton submit */
.haut-submit p {
    height: 50px; /* Même hauteur que le bouton */
    justify-content: center; /* Centre horizontalement le bouton */
}

.wpcf7-submit:hover{
	cursor: pointer;
}

.wpcf7-submit:active {
    box-shadow:
        inset 0px -0.25px 2px -0.25px rgba(3, 15, 20, 0.25),
        inset 0px 0.25px 2px -0.25px rgba(3, 15, 20, 0.25);
}

span.wpcf7-not-valid-tip{
	text-shadow: none;
	font-size: 12px;
	color: #fff;
	background: #39888e;
	padding: 5px;
}
div.wpcf7-validation-errors { 
	text-shadow: none;
	border: transparent;
	background: #39888e;
	padding: 5px;
	color: #ffffff;
	text-align: center;
	margin: 0;
	font-size: 12px;
}
div.wpcf7-mail-sent-ok{
	text-align: center;
	text-shadow: none;
	padding: 5px;
	font-size: 12px;
	background: #59a80f;
	border-color: #59a80f;
	color: #fff;
	margin: 0;
}

.wpcf7-response-output {
    max-width:600px /*-- à modifier en fonction de la largeur désirée --*/;
	  margin:0px !important;
    width:100%;
    font-family: var(--wp--preset--font-family--raleway) !important;
    font-size: 12px;
    border: 1px !important;
    border-color: #243849 !important;
    border-style: solid !important;
    color:#243849 !important;
    padding: 0px !important;
    text-align: center;
    align-items: center;
}

.wpcf7 p {
    margin: 0px;
}

.para-css p {
    padding: 20px !important;
    background-color: #39888e !important;
    width: 100% !important;
}

.para-css p:hover {
    background-color: #b3fd71 !important;
    border-style: solid;
    border-right: 0px;
    border-top: 0px;
    border-bottom: 0px;
    border-color: #39888e;
    cursor: pointer;
}

/* Chaque carte produit */
.produits-grid > .wp-block-group {
    position: relative;
    overflow: hidden;
}

/* Le voile description */
.produits-grid > .wp-block-group .description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 20px;
    background: rgba(4, 82, 116, 0.85);
    color: #ffffff;
    align-items: center;
    text-align: justify;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.produits-grid > .wp-block-group:hover .description {
    opacity: 1;
}

/* Desktop - 4 colonnes */
@media (min-width: 1340px) {
    .produits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablette - 2 colonnes */
@media (min-width: 750px) and (max-width: 1339px) {
    .produits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 colonne */
@media (max-width: 749px) {
    .produits-grid {
        grid-template-columns: 1fr;
    }
}

@media all and (max-width:900px) {
    .no-wrap-resp {
        flex-wrap : wrap ;
        justify-content: center;
    }
}

@media all and (max-width:430px) {
    .typo-resp a {
        font-size: var(--wp--preset--font-size--large) !important;
    }
}

@media all and (max-width:669px) {
    .wrap-resp1 {
        flex-wrap: wrap;
        justify-content: center;
    }

    .wrap-resp1 .wp-block-group {
        flex-basis: 100%;
    }
}

.min-wdt-p a {
    min-width: 280px;
}

.min-wdt-img img {
    min-width: 50px;
}

@media all and (max-width:600px) {
    .wrap-resp2 {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Colonne avec pictogramme en bordure */
.colonne-picto {
    position: relative;
    padding-top: 40px;
    margin-top: 30px;
}

/* Pictogramme centré sur la bordure haute */
.colonne-picto .picto-bord {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 5px;
}

/* Hover sur la colonne - bordures */
.colonne-picto:hover {
    border-color: #b3fd71 !important;
}

/* Hover sur la colonne - pictogramme */
.colonne-picto:hover .picto-bord {
    background-color: #b3fd71;
}

/* Hover sur le triangle */
.colonne-picto:hover::after {
    border-color: #b3fd71;
}

/* Triangle vide centré sur la bordure basse */
.colonne-picto::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translate(-50%, 50%) rotate(45deg);
    width: 40px;
    height: 40px;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    background: transparent;
}

/* Groupe séparateur + image */
.sep-group {
    position: relative;
}

/* Séparateur 4px */
.colonne-sep {
    border-style: solid !important;
    border-width: 0 0 15px 0 !important;
    background-color: currentColor !important;
    
}

/* Image centrée sur le séparateur */
.img-sep {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 5px;
    z-index: 2;
}

/* Colonnes égales */
.colonnes-egales {
    align-items: stretch !important;
}

.colonnes-egales > .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
}

/* Les groupes colonne-picto prennent toute la hauteur */
.colonnes-egales .colonne-picto {
    flex: 1 !important;
}

.none-dec a {
    text-decoration: none !important;
}

.menu-dis {
    position: absolute;
    top : -390px ;
    right: 0px ;
}

.li-marg li {
    margin-bottom: 1.5em;
}

.colonne-programme {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('https://waterleakgroup.com/wp-content/uploads/2026/01/waterleakacademy-programme.webp');
    background-size: cover;
    background-position: center;
}

.z-voi-ind {
    z-index: 3 ;
}

.surligne {
    background-color: #b3fd71;
    color: #203669;
    font-weight: bold;
}

.blc-p p {
    color: #ffffff !important;
    font-size: 1.125rem !important;
}

.p-justify {
    text-align: justify;
}

@media all and (max-width:782px) {
    .disp-none {
        display: none !important;
    }
}