/*
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;
    --red-logo: #e53212;
    --yellow-site: #fcc223;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/***** 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;
}

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;
    text-decoration: none;
    transition: all 300ms ease-in-out;
    overflow: hidden;
    width: max-content;
}

.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;
}




/********************/

.default-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 50px 25px;
}

/******* Overlay **********/
.overlay-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-blue-color);
    /* Ou ta couleur de marque bleu #0F1D2F */
    z-index: 999;
    transform: scaleY(0);
    /* Cache l'élément par défaut */
    pointer-events: none;
    /* Permet de cliquer à travers quand il est invisible */
}


.vague {
    position: absolute;
    bottom: 0;
    transform: translateY(calc(100% - 3px));
    width: 100%;
    z-index: 1;
    display: none;
}

/* Visionneuse image */
.wp-lightbox-overlay {
    background-color: transparent;
}

.scrim {
    background-color: rgba(0, 0, 0, 0.6) !important;
}


.page-galerie,
.actualites-page {
    background: url('/wp-content/uploads/2025/12/trace-pneu-moto.svg');
    background-repeat: repeat-y;
    background-size: 100px;
    max-width: 100%;
}

.page-galerie section,
.actualites-page section {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 50px;
}


/**************************************/
/************** Galerie ***************/
.gallery-filter-container .filter-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;
    text-decoration: none;
    transition: all 300ms ease-in-out;
    overflow: hidden;
    width: max-content;
}

.gallery-filter-container .filter-btn span {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.gallery-filter-container .filter-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;
}

.gallery-filter-container .filter-btn svg {
    width: 18px;
    height: auto;
}

.gallery-filter-container .filter-btn:hover svg path {
    transition: all 0.3s ease-in-out;

}

.gallery-filter-container .filter-btn:hover span::before {
    width: 150%;
}

.gallery-filter-container .filter-btn:hover span {
    color: white;
    transition: all 0.3s ease-in-out;

}

.gallery-filter-container .filter-btn:hover svg path {
    fill: white;
}



/***** FAQ Section *****/
.faq-container-custom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    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;
    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;
    }
}

/* Fin FAQ Section */



/***** Gallery Page *****/
.filter-btn {
    background: transparent;
    border: 2px solid var(--red-site);
    color: #0F1D2F;
    padding: 8px 20px;
    margin: 0 5px 10px 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--red-site);
    color: white;
}

.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);
    }
}