/*
Theme Name: sed
Theme URI: https://we-june.com/
Author: Clower Web Conception & We-June
Description: Thème WordPress sur mesure pour Secretariat Direct
Version: 1.0
*/

@import url('https://use.typekit.net/hkg0vsr.css');
/* @import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');  */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "ivypresto-display", serif;
    font-weight: 400;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: .2rem;
}

h1, h2, h3 {
    text-transform: uppercase;
}

.logo>a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 128px;
    max-height: 128px;
}

.logo>a>img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.logo a img {
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    max-height: 120px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'ivypresto-display', serif;
    font-weight: 400;
    font-style: normal;
}

p, a, b, span {
    font-family: 'inter', sans-serif;
    font-weight: 400;
    font-style: normal;
}

strong {
    font-family: 'inter', sans-serif;
    font-weight: 800;
}

.gutemberg-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gutemberg-content p {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: normal;
}

.wp-block-button__link, .btn-primary {
    background: transparent;
    color: #101010;
    border: 2px solid #707070;
    border-radius: 0;
    box-shadow: 5px 5px 3px rgba(0, 0, 0, 0.1608);
}

.wp-block-button__link:hover, .btn-primary:hover {
    background: #707070;
    border: 2px solid #707070;
    color: #fff;
    box-shadow: 5px 5px 3px rgba(0, 0, 0, 0.1608);
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

h2.title {
    width: fit-content;
    margin: 0 auto;
}

#home-page .section-title h2.title:after, #home-page h1.wp-block-heading:after, #home-page h2.wp-block-heading:after {
    content: '';
    display: block;
    margin: 0 auto;
    margin-top: 0.5rem;
    width: 33%;
    border-bottom: 3px solid #737373;
}

.nav ul:not('.dropdown-menu') {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    font-size: 1.2rem;
    font-weight: 500;

}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    background: #e8e8e8;
    border: none;
    border-radius: 0%;
    line-height: 2.25em;
    padding: 1em 1.5em;
    position: absolute;
    right: 0!important;
    transform: translateX(25%);
}

.nav-link, .nav+*:hover {
    text-decoration: none;
    color: #000!important;
    text-transform: uppercase;

}

.header-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-menu .menu-left,
.header-menu .menu-right {
    display: flex;
    gap: 1.5rem;
}

.header-menu .logo {
    flex: 0 0 auto;
}

.hero-banner {
    position: relative;
    width: 100vw;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner .hero-title {
    position: absolute;
    left: 0;
    bottom: 20%;
    width: auto;
    background: rgba(255, 255, 255, 0.6235);
    color: #000;
    padding: 2rem;
    font-size: 2.5rem;
    font-family: 'ivypresto-display', serif;
}

.card {
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
}

.card img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.front-img-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(252, 229, 187, 0), rgba(248, 219, 197, 0.7059));
    z-index: 1;
}

.card:hover img {
    transform: scale(1.07);
}

form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
    max-width:  60dvw;
    margin: 0 auto;
}

form label {
    font-family: 'ivypresto-display', serif;
    /* font-size: 1.2rem; */
    /* font-weight: 500; */
}

form input, form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #707070;
}

form input[type="submit"] {
    border: 2px solid #707070;
    background: transparent;
    color: #101010;
    border-radius: 0;
    width: fit-content;
    padding: 1rem 2rem;
    box-shadow: 5px 5px 3px rgba(0, 0, 0, 0.1608);
}

form p * {
    width: 100%;
}

form input[type="submit"]:hover {
    background: #707070;
    color: #fff;
    box-shadow: 5px 5px 3px rgba(0, 0, 0, 0.1608);

}

.wp-block-group.is-layout-grid {
    gap: 2rem;
}



footer  {
    width: 100%;
    color: #fff;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.footer-widgets {
    background: #2F251B;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    padding: 2rem;
}

.footer-widget {
    flex: 1 1 22%;
    min-width: 200px;
}


.footer-widgets .wp-block-button__link {
    background: transparent;
    color: #fff;
    border: 2px solid #707070;
    border-radius: 0;
}

.footer-widgets .wp-block-button {
    width: fit-content;
}

.footer-widgets .wp-block-button__link:hover {
    background: #707070;
    color: #fff;
}



/* Styles pour le menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.close-mobile-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    padding: 1rem;
    z-index: 1003;
    transition: transform 0.3s ease;
}

.close-mobile-menu:hover {
    transform: rotate(90deg);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    height: 100%;
    width: 100%;
}

.mobile-menu li {
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px) rotate(5deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin: 1rem 0;
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu li:nth-child(6) { transition-delay: 0.6s; }

.mobile-menu .nav-link {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu .nav-link:hover {
    color: #707070;
}

/* Animation des sous-menus sur mobile */
.mobile-menu .dropdown-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
}

.mobile-menu .dropdown-menu.active {
    right: 0;
}

.mobile-menu .dropdown-menu .dropdown-item {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu .dropdown-menu.active .dropdown-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu .dropdown-menu .dropdown-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu .dropdown-menu .dropdown-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu .dropdown-menu .dropdown-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu .dropdown-menu .dropdown-item:nth-child(4) { transition-delay: 0.4s; }

/* Animation du menu parent lors de l'ouverture du sous-menu */
.mobile-menu .nav-item.sliding {
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2rem;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger.black span {
    background-color: #000;
}

@media (max-width: 768px) {

    .mobile-menu .dropdown-toggle::after {
        display: none;
    }

    .burger {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .menu-left,
    .menu-right {
        display: none !important;
    }

    .card:hover, .card.visible {
        transform: translateY(-8px) scale(1.03);
    }
    
    .card img {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .card:hover img, .card.visible img {
        transform: scale(1.07);
    }

    .contact-content .row {
        flex-direction: column-reverse!important;
    }

    .contact-content .row iframe {
        min-height: 512px!important;
    }

    .wp-block-group.is-layout-grid {
       grid: none;
    }
}