/*
 Theme Name: aikowstudio
 Template: sonoran
 Requires at least: 6.1
 Version:      1.0.0
 Author: Aikow Studio
 Author URI: https://aikow.fr/ 
 Description: Thème enfant du thème Sonoran créer pour le site de Snabb Transports
*/

/* navigation */
*{
    box-sizing: border-box;
}
header{
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    /*width: calc(100vw - 2 * var(--wp--preset--spacing--superbspacing-small));*/
    z-index: 9999;
    padding: 0 var(--wp--preset--spacing--superbspacing-small);
}

.header-nav{
    max-width: var(--wp--style--global--content-size);
    margin: 24px auto 0 auto;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    padding: var(--wp--preset--spacing--superbspacing-xsmall) 0;
}

header.scrolled .header-nav{
    background-color: var(--wp--preset--color--mono-4);
    backdrop-filter: blur(10px);
    padding: var(--wp--preset--spacing--superbspacing-small);
}

@media (min-width: 768px){
    header.scrolled .header-nav{
        padding: var(--wp--preset--spacing--superbspacing-xsmall);
    }
}

/* header */
.header-cover{
    height: calc(100vh - 88px);
    margin-top: 0;
    padding: 5em;
}

/* Styles du formulaire */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form p{
    margin: 0;
}
.wpcf7-form label{
    font-size: 14px;
    color: var(--wp--preset--color--mono-2);
}
.row-form {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}


.row-form:nth-child(3){
    flex-direction: column;
}

.form-input {
    flex: 1;
}

.wpcf7-form-control:not(.wpcf7-submit, .wpcf7-acceptance) {
    width: 100%;
    padding: 14px;
    background-color: var(--wp--preset--color--contrast-light);
    border: none;
    border-radius: 5px;
}

.wpcf7-textarea {
    resize: vertical;
}

.wpcf7-submit {
    background-color: var(--wp--preset--color--primary);
    color: white;
    padding: 18px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
}

.wpcf7-submit:hover {
    background-color: var(--wp--preset--color--yellow-snabb);
    color: black;
}

.wpcf7-list-item{
    margin-left: 0;
}

.wpcf7-list-item label{
    display: flex;
    align-items: start;
    gap: 12px;
}

@media (max-width: 768px) {
    .row-form:first-child {
        flex-direction: column;
    }

    .wp-block-image img{
        width: 100%;
    }
}

/* reset list blocks compositions */
.block-editor-block-patterns-list__item{
    height: auto;
}

/* mark */
mark {
  background-color: transparent;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

mark::after {
    content: '';
    position: absolute;
    top: 62%;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: -1;
    background-color: var(--wp--preset--color--blue-snabb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out;
}

mark.visible::after {
  transform: scaleX(1);
}

/* Nav responsive */

@media(max-width: 768px){
    .wp-block-navigation__responsive-container{
            height: fit-content;
        width: calc(100% - 32px);
        top: 16px;
        left: 16px;
        background: var(--wp--preset--color--mono-4);
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    }

    .wp-block-navigation__responsive-container-content{
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .order-1 {
        order: 1;
    }

    .order-2 {
        order: 2;
    }

    footer .has-alegreya-font-family{
        text-align: center;
    }

    footer .is-layout-flex{
        flex-direction: column;
        gap: 1rem;
    }

    footer .wp-container-core-group-is-layout-35 p:nth-child(2){
        display: none;
    }

    .wp-block-navigation__container{
        flex-direction: column;
    }

    .wp-container-core-group-is-layout-36{
        margin-top: 1rem!important;
    }

    .row-form {
        flex-direction: column;
    }

    .header-cover{
        height: 60vh;
    }
    .superbthemes-features-005 > .wp-block-group{
        padding: 1rem!important;
    }

     .wp-container-core-group-is-layout-11 .wp-block-columns{
        flex-direction: column;
     }
}


@media screen and (max-width: 768px) {
    /* Ciblage de votre h1 spécifique */
    .wp-elements-119c8d8ada01c7d59919e25e59d00cff {
        display: block !important; /* Remplace inline-grid */
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }

    /* Ajustement du mark à l'intérieur du h1 */
    .wp-elements-119c8d8ada01c7d59919e25e59d00cff mark {
        display: inline;
        width: auto;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }
}

.swiper-slide figure{
    display: block!important;
}

/* hcaptcha */
.h-captcha iframe {
    position: absolute!important;
    top: 0;
    left: 0;
}