/* =================== */
/*  STYLES COMMUNS     */
/* =================== */
/* histoire,devis,realisation */
main .btn-custom {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    border-radius: 0;
    color: white;
    border: none;
    padding: 0.5rem 2.5rem;
    min-width: 180px;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

main .btn-jaune {
    background-color: #ceb209;
}

main .btn-vert {
    background-color: #4FA862;
}

main .btn-custom:hover,
a.btn.btn-custom:hover,
a.btn.btn-success:hover {
    background-color: white !important;
    color: black !important;
    border-color: black !important;
}

main .categorie {
    flex: 1;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    background-color: #9ecfa9;
    padding: 0.5rem 0;
    transition: 0.3s;
}

main .categorie:hover,
main .categorie.active {
    background-color: #f6f6f6;
    color: #ceb209;
}

main .hover-zoom:hover {
    transform: scale(0.98);
    transition: transform 0.3s;
}

.slide-in-right {
    position: relative;
    transform: translateX(10px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.slide-in-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* =================== */
/*  ANIMATIONS         */
/* =================== */

main .up-down {
    width: 100%;
    height: auto;
    display: block;
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

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

main .trapeze {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    transition: clip-path 0.3s ease;
}

/* =================== */
/*  GALERIE / SCROLL    */
/* =================== */

#galerie-scroll {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

#galerie-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #4FA862;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-in-out;
}

.scroll-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

@media (max-width: 768px) {
    .scroll-btn {
        font-size: 1.4rem;
        width: 38px;
        height: 38px;
    }

    .image-vue {
        display: none !important;
    }
}

/* =================== */
/*  REALISATION        */
/* =================== */

main .btn-custom {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    border-radius: 0;
    color: white;
    border: none;
    padding: 0.5rem 2.5rem;
    min-width: 180px;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

main .btn-jaune {
    background-color: #ceb209;
}

main .btn-vert {
    background-color: #4FA862;
}

main .btn-custom:hover {
    background-color: white;
    color: black;
    border-color: black;
}

a.btn.btn-custom:hover {
    background-color: white !important;
    color: black !important;
    border-color: black !important;
}

main .categorie {
    flex: 1;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    background-color: #9ecfa9;
    padding: 0.5rem 0;
    transition: 0.3s;
}

main .categorie:hover,
main .categorie.active {
    background-color: #f6f6f6;
    color: #ceb209;
}

main .hover-zoom:hover {
    transform: scale(0.98);
    transition: transform 0.3s;
}

.slide-in-right {
    position: relative;
    transform: translateX(10px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.slide-in-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* =================== */
/*  MOBILE REALISATION */
/* =================== */

@media (max-width: 768px) {

    /* div 1 */
    .container-fluid.d-flex.justify-content-center.align-items-center.text-center {
        min-height: 450px !important;
        padding: 1.5rem !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .container-fluid .d-flex.flex-column.align-items-center {
        max-width: 100% !important;
        padding: 2rem 1rem !important;
    }

    .container-fluid h2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .container-fluid p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-top: 0.8rem !important;
    }

    .container-fluid .btn-custom {
        width: 100% !important;
        max-width: 260px;
        font-size: 0.95rem !important;
        padding: 0.7rem 1.2rem !important;
    }

    .container-fluid .d-flex.justify-content-center.mt-3.gap-3.flex-wrap {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem !important;
        margin-top: 1.5rem !important;
    }

    /* div 4 */
    .container-fluid.py-2 .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-fluid.py-2 .d-flex>div:first-child {
        flex: 1 1 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 1rem 1.5rem !important;
    }

    .container-fluid.py-2 .d-flex>div:first-child h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        color: #4FA862 !important;
        font-weight: 600 !important;
        margin-bottom: 1rem !important;
    }

    .container-fluid.py-2 .d-flex>div:first-child p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        color: #333 !important;
        margin-bottom: 1rem !important;
    }

    .container-fluid.py-2 .d-flex>div:first-child .btn-custom {
        width: 100% !important;
        max-width: 260px !important;
        font-size: 1rem !important;
        padding: 0.8rem 1.2rem !important;
        text-align: center !important;
        margin-top: 1rem !important;
    }

    #produit-selec {
        flex: 1 1 100% !important;
        padding: 1rem !important;
        background-color: #f9f9f9 !important;
        border-radius: 8px !important;
    }

    #categories {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.6rem !important;
    }

    #categories .categorie {
        flex: 1 1 45% !important;
        text-align: center !important;
        background-color: #ffffff !important;
        border: 1px solid #ddd !important;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem !important;
        transition: all 0.3s ease-in-out;
    }

    #categories .categorie.active {
        background-color: #4FA862 !important;
        color: white !important;
        border-color: #4FA862 !important;
    }

    #produit-selec>div:last-child {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
    }

    #image-container {
        width: 100% !important;
        justify-content: center !important;
    }

    #image-container img {
        width: 100% !important;
        height: auto !important;
        max-height: 260px !important;
        object-fit: contain !important;
    }

    #desc-container {
        padding: 0.5rem 1rem !important;
        text-align: center !important;
    }

    #produit-desc {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #333 !important;
    }
}

/* =================== */
/*  DEVIS              */
/* =================== */
@media (max-width: 768px) {
    .titre{
        white-space: nowrap;
    }
}

/* flottant / animation déjà incluse */

/* =================== */
/*  HISTOIRE            */
/* =================== */
@media (max-width: 768px) {
    .container-fluid.py-5 {
        margin-top: 0rem !important;
        padding: 3rem 1rem 2rem 1rem !important;
        overflow: visible !important;
    }

    .container-fluid.py-5>div[style*="position:absolute"] {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        max-width: 80% !important;
        margin: 0 auto 1.5rem auto !important;
        display: flex !important;
        justify-content: center !important;
        z-index: 1 !important;
    }

    .container-fluid.py-5>div[style*="position:absolute"] img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .container-fluid.py-5>div[style*="box-shadow"] {
        box-shadow: 0 0 3px 1.5px rgba(83, 109, 92, 0.6) !important;
        border: 1px solid #4FA862 !important;
        padding: 1.5rem 1rem !important;
        position: relative !important;
        z-index: 2 !important;
        background: #fff !important;
    }

    .container-fluid.py-5>div[style*="box-shadow"]>div {
        padding-left: 0 !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .container-fluid.py-5 h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        color: #4FA862 !important;
        margin-bottom: 0.8rem !important;
    }

    .container-fluid.py-5 p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #333 !important;
        margin-bottom: 1.2rem !important;
    }

    .container-fluid.py-5 .btn {
        width: 100% !important;
        max-width: 260px !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 1rem !important;
        text-align: center !important;
        border: solid 1px black !important;
        border-radius: 0 !important;
        background-color: #4FA862 !important;
        margin: 0 auto !important;
        display: inline-block !important;
    }
}

@media (max-width: 768px) {
    .container-fluid.py-2[style*="background-color:#4FA862"] {
        padding: 4rem 1.5rem 0 !important;
        text-align: center !important;
        margin-top: 5rem !important;
        background: linear-gradient(180deg, #4FA862 0%, #458c55 100%) !important;
    }

    .container-fluid.py-2[style*="background-color:#4FA862"] .col-md-7 {
        padding: 0 1rem !important;
    }

    .container-fluid.py-2[style*="background-color:#4FA862"] h1 {
        font-size: 2rem !important;
        color: #fff !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        margin-bottom: 1.2rem !important;
        letter-spacing: 0.5px;
    }

    .container-fluid.py-2[style*="background-color:#4FA862"] h1 span {
        color: #e7c83b !important;
        font-weight: 700;
    }

    .container-fluid.py-2[style*="background-color:#4FA862"] p {
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        margin: 0 auto 2rem auto !important;
        max-width: 95%;
    }

    .container-fluid.py-2[style*="background-color:#4FA862"] p span {
        color: #fff !important;
        font-weight: 700 !important;
        text-decoration: underline;
    }

    .container-fluid.py-2[style*="background-color:#4FA862"] .col-md-5 {
        justify-content: center !important;
        margin-top: 2.5rem !important;
        padding: 0 !important;
    }

    .container-fluid.py-2[style*="background-color:#4FA862"] img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        object-fit: cover !important;
        filter: brightness(0.95) contrast(1.05);
        box-shadow: none !important;
        clip-path: none !important;
        transform: none !important;
    }

    .trapeze {
        clip-path: none !important;
        transform: none !important;
    }
}