/*
Theme Name: Corbet
Theme URI: https://github.com/elementor/hello-theme/
Description: Thème enfant de Hello Elementor par IPSO
Author: IPSO
Author URI: https://www.studioipso.fr
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

/* Settings */
body {
    background: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 200px;
    background-position: center;
}

.color-alternate {
    color: var(--e-global-color-secondary);
}


/* Header */
.header-menu,
.header-menu nav {
    height: 100%;
}

.header-menu nav {
    height: auto;
    max-width: 320px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,.1);
}

@media screen and (max-width: 500px) {
    .header-menu nav {
        max-width: initial;
    }
}

.header-menu .elementor-nav-menu {
    flex-direction: row;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #e8e8e9;
    border-bottom: 1px solid #e8e8e9;
}

.header-menu .elementor-nav-menu li {
    width: 100%;
}

.header-menu .elementor-nav-menu li > a {
    display: flex;
    justify-content: center;
}

.header-menu .elementor-nav-menu li > a:hover {
    background-color: #e8e8e9;
}

.header-menu .elementor-menu-toggle {
    padding: 0 .5em;
    height: 100%;
}

.header-menu :is(.elementor-menu-toggle__icon--open, .elementor-menu-toggle__icon--close),
.menu-icon .elementor-widget-icon {
    height: 36px;
}

.elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
    background-color: #fff;
}



/* Footer */
.site-footer .elementor-widget-nav-menu a:hover,
.site-footer .elementor-widget-nav-menu a:focus {
    text-decoration: underline !important;
}



/* Landing */
.scroll-indicator .elementor-icon {
    animation: 1.5s ease-out infinite scroll-down;
}

@keyframes scroll-down {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50%);
    }
}


/* Facet */
.facetwp-type-checkboxes {
    display: flex;
    flex-direction: row;
    gap: 1em;
    margin-bottom: 0 !important;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    overflow-x: auto;
}

.facetwp-type-checkboxes .facetwp-counter {
    display: none;
}

.facetwp-type-checkboxes .facetwp-display-value {
    padding-right: 0;
}

.facetwp-type-checkboxes .facetwp-checkbox {
    background: none;
    padding: .8em;
    border: 1px solid rgba(255,255,255,.15);
    white-space: nowrap;
}

.facetwp-type-checkboxes .facetwp-checkbox.checked {
    color: #fff;
    background: var(--e-global-color-secondary);
    border: 1px solid var(--e-global-color-secondary);
}


@media screen and (max-width: 767px) {
.facetwp-type-checkboxes {
    font-size: 15px;
}
}



/* Home Grid */
.home-grid {
    display: grid !important;
    grid-template: 
    "a a d d"
    "a a e f"
    "b c g g"
    ;
}

.home-grid-item-01 {
    grid-area: a;
}

.home-grid-item-02 {
    grid-area: b;
}

.home-grid-item-03 {
    grid-area: c;
}

.home-grid-item-04 {
    grid-area: d;
}

.home-grid-item-05 {
    grid-area: e;
}
.home-grid-item-06 {
    grid-area: f;
}
.home-grid-item-07 {
    grid-area: g;
}

@media screen and (max-width: 767px) {
.home-grid {
    grid-template: 
    "a"
    "b"
    "c"
    "d"
    "e"
    "f"
    "g"
    ;
}
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-element {
  animation: fadeIn 1.5s ease-in-out;
}
/* Listing réalisations */
@media screen and (min-width: 767px) {
	.listing-realisations .elementor-loop-container .e-loop-item:nth-child(3n) .item-realisation-text {
	animation-delay: 1.5s;
}

.listing-realisations .elementor-loop-container .e-loop-item:nth-child(3n+2) .item-realisation-text {
    top: 0 !important;
    bottom: unset !important;
	animation-delay: 0.8s;
}

.listing-realisations .elementor-loop-container .e-loop-item:nth-child(3n+1) .item-realisation-text {
    right: 0 !important;
    left: unset !important;
	animation-delay: 1s;
}
}


/* Galerie */
@media screen and (max-width: 767px) {
.single-realisation #galerie {
    min-height: 600px;
    overflow-y: auto;
}
}

/* WP Forms */
.wpforms-container .wpforms-field {
    padding-top: 20px !important;
}

.wpforms-container .wpforms-field-label {
    margin-bottom: .5em;
    color: #fff;
    font-size: 18px;
    font-weight: 400 !important;
    text-transform: uppercase;
}

@media screen and (max-width: 767px) {
    .wpforms-container .wpforms-field-label {
        font-size: 16px;
    }
}

.wpforms-container .wpforms-required-label {
    color: #fff !important;
}

/* Input, Textarea */
.wpforms-container input,
.wpforms-container textarea,
div.wpforms-container div.wpforms-uploader {
    padding: 0.6em 1em !important;
    max-width: 100% !important;
    border: 1px solid #fff !important;
    border-radius: unset !important;
    color: #fff !important;
    background: transparent !important;
}

.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder {
    opacity: .3;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus {
    outline: 1px solid var(--e-global-color-secondary) !important;
    border-color: var(--e-global-color-secondary) !important;
}

/* Select */
.wpforms-container .wpforms-field-select {
    padding-bottom: 0 !important;
}

.wpforms-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 0.6em 1em;
    max-width: 100% !important;
    border: 1px solid #fff;
    border-radius: unset;
    color: #fff;
    background-color: transparent;

    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="white"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
}

/* Checkbox */
.wpforms-container .wpforms-field-checkbox ul,
.wpforms-container .wpforms-field-gdpr-checkbox ul {
    display: flex;
    flex-direction: column;
    gap: .8em;
    padding-left: 0;
    list-style: none;
}

.wpforms-container .wpforms-field-checkbox ul li,
.wpforms-container .wpforms-field-gdpr-checkbox ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wpforms-container .wpforms-field-checkbox ul li input[type="checkbox"],
.wpforms-container .wpforms-field-gdpr-checkbox ul li input[type="checkbox"] {
    align-self: flex-start;
    margin: 0 8px 0 0;
    height: 20px;
    width: 20px;
    min-height: 20px;
    min-width: 20px;
}

.wpforms-container .wpforms-field-checkbox ul li label,
.wpforms-container .wpforms-field-gdpr-checkbox ul li label {
    line-height: 1.2;
}

/* Fichier */
div.wpforms-container div.wpforms-uploader .dz-message,
div.wpforms-container div.wpforms-uploader .dz-details {
    color: #fff !important;
}

div.wpforms-container div.wpforms-uploader .dz-preview .dz-remove::after, 
div.wpforms-container div.wpforms-uploader .dz-preview .dz-remove::before {
    background-color: #fff !important;
}

div.wpforms-container div.wpforms-uploader .dz-message .modern-hint {
    color: #fff !important;
    font-size: 90% !important;
}

/* Erreur */
.wpforms-container .wpforms-field em.wpforms-error {
    font-size: 0.8em !important;
}

/* Submit */
.wpforms-container .wpforms-submit-container {
    margin-top: 25px;
}

.wpforms-submit-container .wpforms-submit:is(:hover, :focus) {
    background-color: var(--e-global-color-secondary);
}


/* Elementor */
.e-loop__load-more .elementor-button-link:is(:hover, :focus) {
    background-color: transparent !important;
}