/*
Theme Name: LMODC
Author: Adrien Lagrange--Vergauwen, email: contact@adrien-lv.fr, insta: @adrien.lv_photographie
Description: Thème personnalisé du site web les motards ont du coeur
Version: 0.0.1
Author URI: https://adrien-lv.fr
*/

:root {
    --dark-blue-color: #1d2731;
    --light-blue-color: #6b9ebd;
    --light: #fff9ee;
    --red-site: #b40023;
    --yellow-site: #fcc223;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/***** FONTS *****/

body,
button,
input,
select,
textarea,
a,
p {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: var(--dark-blue-color)
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Afacad', sans-serif;
    color: var(--dark-blue-color)
}

.title-h2 {
    font-size: 2.8rem;
    line-height: 2.8rem;
    text-transform: uppercase;
    padding: 5px 15px;
    width: max-content;
    margin-bottom: 25px;
    font-family: 'Afacad', sans-serif;
    width: auto;
    max-width: max-content;
}

@media (max-width: 768px) {
    .title-h2 {
        font-size: 2rem;
        line-height: 2.2rem;
    }
}

.title-h2.yellow {
    background-color: var(--yellow-site);
    color: var(--dark-blue-color);
}

.title-h2.light-blue {
    background-color: var(--light-blue-color);
    color: var(--dark-blue-color);
}

strong {
    font-weight: 600 !important;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    background-color: white;
    border: 2px solid var(--dark-blue-color);
    border-radius: 999px !important;
    text-decoration: none;
    transition: all 300ms ease-in-out;
    overflow: hidden;
    width: max-content !important;
}

.button span {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.button span::before {
    content: "";
    position: absolute;
    width: 0%;
    aspect-ratio: 1/1;
    background-color: var(--dark-blue-color);
    border-radius: 999px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

.button svg {
    width: 18px;
    height: auto;
}

.button:hover svg path {
    transition: all 0.3s ease-in-out;

}

.button:hover span::before {
    width: 150%;
}

.button:hover span {
    color: white;
    transition: all 0.3s ease-in-out;

}

.button:hover svg path {
    fill: white;
}

.ancre {
    position: absolute;
    top: -140px;
    width: 0px;
    height: 0px;
}



/********************/

.default-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 25px;
}

/******* Overlay **********/
/* --- TRANSITION RIDEAU --- */
#page-transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue-color);
    z-index: 999;
    /* Toujours au-dessus de tout sauf du header*/

    transform: scaleY(1);
    transform-origin: top;
    /* Il part du haut */
    transition: transform 0.6s ease-in-out;
    pointer-events: none;
}

body.page-loaded #page-transition-curtain {
    transform: scaleY(0);
}

body.is-exiting #page-transition-curtain {
    transform-origin: bottom;
    transform: scaleY(1);
}


/* Visionneuse image */
.wp-lightbox-overlay {
    background-color: transparent;
}

.scrim {
    background-color: rgba(0, 0, 0, 0.6) !important;
}


/**************************************/
/************** Galerie ***************/

.page-galerie {
    max-width: 100%;
    padding: 0;
}

.page-galerie section:not(:first-child) {
    padding: 50px 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-galerie h2 {
    margin-top: 0 !important;
}

/* Animation d'apparition des images */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item.visible {
    display: block !important;
    animation: fadeIn 0.5s ease-out forwards;
}

.gallery-load-more{
    margin: 0 auto;
    width: max-content;
}

#load-more-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    background-color: white;
    border: 2px solid var(--dark-blue-color);
    border-radius: 999px !important;
    text-decoration: none;
    transition: all 300ms ease-in-out;
    overflow: hidden;
    width: max-content !important;
    cursor: pointer;
}

#load-more-btn span {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#load-more-btn span::before {
    content: "";
    position: absolute;
    width: 0%;
    aspect-ratio: 1/1;
    background-color: var(--dark-blue-color);
    border-radius: 999px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

#load-more-btn:hover span::before {
    width: 150%;
}

#load-more-btn:hover{
    color: white;

}


.gallery-filter-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0 15px 0;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--dark-blue-color);
    color: #0F1D2F;
    padding: 8px 20px;
    margin: 0 5px 10px 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0%;
    aspect-ratio: 1/1;
    background-color: var(--dark-blue-color);
    border-radius: 999px;
    transition: all 0.3s ease-in-out;
    z-index: -1;

}

.filter-btn:hover::before {
    width: 150%;
}

.filter-btn:hover {
    color: white;
}

.filter-btn.active {
    color: white;
    background-color: var(--dark-blue-color);
}

.filter-btn.active::before {
    width: 150%;
}

.gallery-item {
    animation: fadeIn 0.5s;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/***** FAQ Section *****/
.faq-container-custom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 25px;
    font-family: sans-serif;
    color: #000;
}

.faq-header {
    flex: 0 0 30%;
    padding-right: 20px;
    margin-bottom: 30px;
    position: relative;
}

.faq-header-container {
    position: sticky;
    top: 40%;
    margin-top: 250px;
}

.faq-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1;
}

.faq-desc {
    font-size: 0.9rem;
    color: #333;

}

.faq-list {
    flex: 0 0 65%;
}


.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 25px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: var(--dark-blue-color);
}

.faq-item {
    position: relative;
    border-bottom: 2px solid var(--dark-blue-color);
}

.faq-item::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--yellow-site);
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.faq-item:hover::before {
    width: 100%
}

.faq-item.active::before {
    width: 100%;
}

.faq-icon {
    height: 30px;
    width: 30px;
    border: 1px solid var(--dark-blue-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-reponse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-reponse-inner {
    padding-bottom: 25px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {

    .faq-header,
    .faq-list {
        flex: 0 0 100%;
    }

    .faq-title {
        font-size: 2.5rem;
    }

    .faq-header-container{  
        margin-top: 0;
    }
}

/* Fin FAQ Section */

.the-content{
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;

}

/***********************************************/
/**************** Hero Section *****************/
/***********************************************/

.hero-section {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 25px;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 39, 49, 0.5);
    z-index: 0;
    mix-blend-mode: multiply;
}

.hero-section h1 {
    color: var(--dark-blue-color);
    z-index: 1;
    text-align: center;
}

.hero-section h2 {
    color: white;
    z-index: 1;
}

.hero-section h1 {
    padding: 5px 15px;
    background-color: var(--yellow-site);
}

@media (max-width: 768px) {
    .hero-section h1{
        font-size: 2.5rem;
        line-height: 2.2rem;
    }
}