/*
 Theme Name: Garden Child
 Template: garden
*/


.logo {
	margin-top:15px!important;
}

footer {
    background-image: url('https://test.openfield.info/wp-content/uploads/2025/12/briques.webp')!important;
    background-repeat: no-repeat!important;
    background-position: bottom right!important;
    background-size: auto!important;
    margin-top: 0!important;
    padding-top: 0!important;
}

.footr {
    margin-top: 0 !important;
    padding-top: 0!important;
}

.why-us 
{
    margin-top: 40px!important;
    padding: 0 3rem!important;
}

.efozel2 { 
    height: 500px!important; 
    object-fit: cover!important; 
    width: 100%!important; }

.navbar-quote .custom-button {
    padding: 0 25px!important;
}

.side-widget {
    background-color: #34444f!important;
}

.side-widget address {
    color: #fff;
}

.side-widget small {
    font-weight: 600;
}

/***
BARRE DE NAVIGATION
***/

.custom-header {
    width: 100%;
    background: #34444f;
    padding: 10px 0 26px 0;
    overflow: visible;

    background-image: url("/wp-content/uploads/2026/01/feuillage.png"); 
    background-repeat: no-repeat; 
    background-position: top right; 
    background-size: auto;
}

.custom-header img {
    height: auto;
    width: auto;
    display: block;
}

.custom-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left | center | right */
    gap: 1rem;
}

.custom-header-center {
    flex: 1;                     /* occupe tout l’espace entre left et right */
    display: flex;
    flex-direction: column;
    align-items: center;         /* centre horizontalement */
    justify-content: center;     /* centre verticalement */
    text-align: center;
    gap: 0.2rem; /* ou 0.5rem selon ton goût */
}

.custom-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-nav ul li {
    
    position: relative; /* nécessaire pour le pseudo-élément */
}

@media (max-width: 992px) {
    .custom-header-center {
        display: none;
    }
}

.custom-nav ul li {
    color: #fff;
    margin: 6px;
}

.custom-nav ul li:hover > a {
    color: #fff; /* garde le texte blanc au survol */
}

.custom-nav ul li a {
    position: relative;
    display: inline-block;
    padding: 8px;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden; /* masque le pseudo-élément */
    z-index: 1; /* le texte reste au-dessus */
}

@media (max-width: 1360px) {
    .custom-nav ul li a {
        font-size: 22px;
    }

    .header-subtitle a {
        font-size:18px!important;
    }
}

/* Le fond animé */
.custom-nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; /* commence vide */
    height: 100%;
    background-color: #e9721c;
    border-radius: inherit;
    transition: width 0.35s ease; /* vitesse du remplissage */
    z-index: -1; /* derrière le texte */
}

/* Survol : remplissage progressif */
.custom-nav ul li:hover a::before {
    width: 100%;
}

/* Sous-menu */
.custom-nav ul li .sub-menu {
    position: absolute;
    top: 100%; /* collé juste sous le parent */
    left: 0;
    background: #34444f;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    display: none; /* caché par défaut */
    z-index: 10;
    border-radius: 8px;
}

/* Affichage du sous-menu au survol */
.custom-nav ul li:hover > .sub-menu {
    display: block;
}

/* Style des liens du sous-menu */
.custom-nav ul li .sub-menu li a {
    font-size: 18px;
    padding: 8px 16px;
    white-space: nowrap;
}

/* SUB MENU */
.custom-nav ul li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff; /* fond blanc */
    padding: 0;
    margin: 0;
    list-style: none;
    display: none;
    z-index: 20;
    border-radius: 8px;
    min-width: 180px; /* optionnel, pour éviter un sous-menu trop étroit */
}

/* Affichage du sous-menu */
.custom-nav ul li:hover > .sub-menu {
    display: block;
}

/* Chaque élément du sous-menu occupe 100% */
.custom-nav ul li .sub-menu li {
    width: 100%;
    margin: 0; /* pas de marge interne */
    position: relative;
}

/* Style des liens du sous-menu */
.custom-nav ul li .sub-menu li a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 18px;
    color: #000; /* texte noir */
    text-decoration: none;
    border-radius: 0; /* pas d'arrondi interne */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Effet de remplissage orange (comme le niveau 1) */
.custom-nav ul li .sub-menu li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #e9721c;
    transition: width 0.35s ease;
    z-index: -1;
}

/* Survol : remplissage progressif */
.custom-nav ul li .sub-menu li:hover > a::before {
    width: 100%;
}

/* Survol : texte blanc */
.custom-nav ul li .sub-menu li:hover > a {
    color: #fff;
}

/* Arrondi du premier élément du sous-menu */
.custom-nav ul li .sub-menu li:first-child a {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Arrondi du dernier élément du sous-menu */
.custom-nav ul li .sub-menu li:last-child a {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.header-subtitle a {
    font-size: 22px;
    color: #e9721c;
}

.header-subtitle a:hover {
    color: #fff;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px; /* espace entre les barres */
    cursor: pointer;
    margin-right: 16px; /* ta marge demandée */
}

.hamburger-menu span {
    display: block;
    width: 28px;      /* largeur des barres */
    height: 3px;      /* épaisseur des barres */
    background: #fff!important; /* couleur blanche */
    border-radius: 3px;
}

@media (max-width: 768px) {
    .navbar-button {
        display: none;
    }

}

/*** Mobile menu ***/
.show-mobile li:hover a {
    color: #e9721c!important;
}

.show-mobile .dropdown-menu li a {
    color: #000!important;
}

/** Slider **/
.swiper-slide-text {
    font-size: 28px!important;
}

.mobile-slide-btn {
    display: none;
}

@media (max-width: 767.98px) {

    .desktop-slide-btn {
        display: none !important;
    }

    .mobile-slide-btn {
        display: inline-block !important;
    }
}

/** Cartes en images **/
.img-card-title {
    font-size: 20px!important;
}

.bg-light {
    position: relative!important;
    height: 60px!important;
}

.bg-light .logo {
    padding-top: 0!important;
}

/* Conteneur de la case à cocher + texte */
.acceptance-checkbox {
    border: 1px solid #e9721c;
    padding: 10px 12px;
    border-radius: 4px;
    display: inline-flex;
    gap: 8px;
}

.acceptance-label {
    line-height: 20px;
}

.acceptance-label a {
    color:#34444f;
    font-weight: 700;
}

.acceptance-label a:hover {
    color: #e9721c;
}

.acceptance-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e9721c;
    cursor: pointer;
}

.sidebar-service .widgettitle {
  font-size: 20px;
  color:#34444f;
  font-weight: 900;
  font-family:'Outfit', sans-serif;
}

.content-text h1, 
.content-text h2, 
.content-text h3, 
.content-text h4, 
.content-text h5, 
.content-text h6 {
    margin-top: 1.5em!important;
    margin-bottom: 0.5em!important;
}

.content-text p {
    margin-bottom: 1.2em!important;
}

.content-text ul {
    list-style: disc!important;
    padding-left: 1.5rem!important;
}

.content-text ul li {
    display: list-item!important;
    margin-bottom: .5rem!important;
    float: unset;
}

.content-text a {
    color: #e9721c;
    font-weight: 800;
}

.content-text a:hover {
    color: #34444f;
}

.side-widget .logo {
    margin-bottom: 0;
}

/* ====== CONTAINER DU MENU ====== */
ul#menu-secteurs-dintervention {
  display: inline-grid;
  width: 100%;
  padding: 10px;
  line-height: 35px;
  color: #34444f;
  font-family: Outfit;
  font-size: 18px;
  z-index: 1;
  position: relative;
  gap: 12px; /* espace entre les items */
}

/* ====== ITEMS DU MENU ====== */
ul#menu-secteurs-dintervention li {
  position: relative;
  display: block;
  background: #ffffff;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  padding: 14px 16px 14px 32px; /* espace pour la flèche */
  box-shadow: 0px 0px 30px 0px rgb(0 0 0 / 12%);
  transition: all 200ms linear;
  transition-delay: 0.1s;
  z-index: 1;
  border-radius: 4px;
}

/* ====== LIENS ====== */
ul#menu-secteurs-dintervention a {
  color: #34444f;
  text-decoration: none;
  display: block;
}

ul#menu-secteurs-dintervention a:hover {
  color: #e9721c;
}

.mentions-legales ul li {
    all: unset !important;
    display: list-item !important;
    list-style: disc !important;
    margin-left: 20px !important;
}

.header-2 .h2, .header-3 .h2 {
    font-size: 40px!important;
    color: #fff;
    font-family: Outfit;
    margin-bottom: 0;
    font-weight: 700;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Mise en forme générale du contenu des articles --- */
.single .post-kutu--yazi {
    color: #222;
}

/* --- Paragraphes --- */
.single .post-kutu--yazi p {
    margin: 1.2em 0;
}

/* --- Titres (H1–H6) --- */
.single .post-kutu--yazi h1,
.single .post-kutu--yazi h2,
.single .post-kutu--yazi h3,
.single .post-kutu--yazi h4,
.single .post-kutu--yazi h5,
.single .post-kutu--yazi h6 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    line-height: 1.3;
    font-weight: 600;
}

.single .post-kutu--yazi h1 {
    font-size: 30px;
}

/* --- Listes à puces --- */
.single .post-kutu--yazi ul {
    margin: 1.2em 0 1.2em 1.5em;
    padding-left: 1.2em;
    list-style-type: disc;
    list-style-position: outside;
    float: none !important;
}

.single .post-kutu--yazi ul li {
    float: none !important;
    display: list-item !important;
    list-style-type: disc;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    text-align: left;
}

/* --- Listes numérotées --- */
.single .post-kutu--yazi ol {
    margin: 1.2em 0 1.2em 1.5em;
    padding-left: 1.2em;
    list-style-type: decimal;
    list-style-position: outside;
    float: none !important;
    font-size: 16px;
    text-align: left;
}

.single .post-kutu--yazi ol li {
    margin: 0.2em 0;
    float: none !important;
    display: list-item !important;
    list-style-type: decimal;
    font-family: 'Outfit', sans-serif;
}


/* --- Images dans l’article --- */
.single .post-kutu--yazi img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    display: block;
}

/* --- Citations (blockquote) --- */
.single .post-kutu--yazi blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #ccc;
    background: #f8f8f8;
    font-style: italic;
}

.single .post-kutu--yazi img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none !important;
}

.single .post-kutu--yazi .aligncenter {
    text-align: center;
}

/* --- Image alignée à droite --- */
.single .post-kutu--yazi img.alignright {
    float: right !important;
    margin: 0 0 1.2em 1.2em; /* marge à gauche pour éviter que le texte colle */
    display: block;
}

.single .post-kutu--yazi .alignright {
    float: right !important;
    text-align: right;
}

/*****************************************
**** Bloc d'images dans les articles *****
*****************************************/

   .image-stack {
        position: relative;
        max-width: 700px;
        width: 100%;
        height: 466px;
        margin: 20px auto;
    }

    .image-stack .card {
        position: absolute;
        width: 55%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.22);
        transition:
            transform 0.35s ease,
            left 0.35s ease,
            top 0.35s ease;
    }

    /* Image gauche */
    .img1 {
        top: 70px;
        left: -10%;
        transform: rotate(-10deg);
        z-index: 1;
    }
    .img1:hover {
        left: -18%;                        /* glisse vers la gauche */
        transform: rotate(0deg) scale(1.8); /* redresse + zoom */
    }

    /* Image centrale */
    .img2 {
        top: 0;
        left: 22%;
        transform: rotate(0deg);
        z-index: 2;
    }
    .img2:hover {
        top: -25px;                        /* monte */
        transform: rotate(0deg) scale(1.8); /* zoom */
    }

    /* Image droite */
    .img3 {
        top: 90px;
        left: 55%;
        transform: rotate(10deg);
        z-index: 3;
    }
    .img3:hover {
        left: 63%;                         /* glisse vers la droite */
        transform: rotate(0deg) scale(1.8); /* redresse + zoom */
    }

    .image-stack .card:hover {
        z-index: 10;
        box-shadow: 
            0 18px 40px rgba(0,0,0,0.38),   /* ombre principale */
            12px 12px 20px rgba(0,0,0,0.28); /* ombre directionnelle droite + bas */
    }

    @media (max-width: 768px) {
        .image-stack {
            height: auto;
        }

        .image-stack .card {
            position: relative;
            width: 100%;
            left: 0;
            top: 0;
            transform: none;
            margin-bottom: 20px;
            z-index: 1;
            opacity: 0; 
            transform: translateY(10px); 
            animation: fadeInUp 0.6s ease-out forwards;
        }

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

/*****************************
***** Fin bloc d'images ******
*****************************/

.slider .h1 {
   width: 100%;
   display: block;
   font-size: 60px;
   margin-bottom: 10px;
   font-weight: 600;
   color: #ffffff;
   margin-top: 11px;
   margin-left: -5rem;
}

@media (max-width: 768px) {
.slider .h1 {
    font-size: 30px;
    margin-top: -20px;
    margin-left:0;
}

.swiper-slide-text {
     font-size: 6px;
     line-height: 24px;
}
}

@media (max-width: 1315px) {
    .nav-2 ul li a {
        font-size: 18px!important;
    }

    .nav-2 {
        padding-top: 80px!important;
    }

    .nav-2 .logo {
        margin-top: -80px!important;
    }
}