body {
    font-family: "Nunito", sans-serif;
    color: #575555;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1:not(.no-style-logo) {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #111;
}

h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase;
    color: #212529;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 600px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.video-responsive {
    color: #575555;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1:not(.no-style-logo) {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #111;
}

h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase;
    color: #212529;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 600px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.video-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ou contain si tu veux tout voir sans crop */
    display: block;
    height: 100%;
    object-fit: cover;
    /* ou contain si tu veux tout voir sans crop */
    display: block;
}



.home_box {
    margin-left: 0 !important;
}

.home_paragraph {
    font-size: 1.1rem;
    font-size: 1.1rem;
    color: #575555;
}

.legend {
    font-size: 1rem;
}

.legend {
    font-size: 1rem;
}

.contact {
    text-decoration: none;
    color: #ff0000;
    color: #ff0000;
}

.contact:hover {
    transition: 0.5s;
    color: #c7c8c9;
}

.externe-link {
    font-weight: 600;
    text-decoration: none;
    color: #444;
}

.externe-link:hover {
    transition: 0.5s;
    color: #c7c8c9;
}

.active {
    text-decoration: none !important;
    color: #e70808 !important;
}

.active:hover {
    transition: 0.5s !important;
    color: #c7c8c9 !important;
}



/*----- GO TO TOP -----*/
#myBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: rgba(0, 0, 0, 0.61);
    /* Set a background color */
    color: white;
    /* Text color */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 15px;
    /* Some padding */
    border-radius: 20%;
    /* Rounded corners */
    font-size: 18px;
    /* Increase font size */
}

#myBtn:hover {
    background-color: #555;
    /* Add a dark-grey background on hover */
}

/* PROFESSIONEL */
.video-carousel-wrapper {
    position: relative;
    padding: 1rem 1rem;
    /* pour espace autour des flèches */
}

.video-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;

    /* Firefox */
    scrollbar-width: none;
}

.video-carousel>figure {
    flex: 0 0 auto;
    width: 320px;
    /* largeur fixe pour permettre le scroll */
    scroll-snap-align: start;
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.left-arrow {
    left: 0.5rem;
    top: 110px;
}

.right-arrow {
    right: 0.5rem;
    top: 105px;
}

/* BIG IMAGES */
.video-data-big {
    position: relative;
    width: 100%;
    height: auto;
    /* par défaut */
}

.video-data-big.video-ratio {
    padding-bottom: 56.25%;
    height: 0;
}


/* SURVOL IMAGE EFFET PROFESSIONAL*/
.video-thumb {
    flex: 0 0 auto;
    /* empêche la réduction à zéro */
    width: 90vw;
    /* largeur fluide en mobile */
    width: 400px;
    /* largeur max sur desktop */
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
}

.image-shift {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
    display: block;
    z-index: 1;
    position: relative;
}

.youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

figcaption a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
}

.play-youtube {
    border: none;
    border-radius: 0.3rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease-in-out;
}

.play-youtube-link:hover {
    color: #9d9d9e;
}



.video-thumb-big {
    flex: 0 0 auto;
    /* empêche la réduction à zéro */
    width: 90vw;
    /* largeur fluide en mobile */
    max-width: 950px;
    /* largeur max sur desktop */
}

.image-container-big {
    max-width: 950px;
    max-height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-shift-big {
    transition: transform 0.4s ease-in-out;
    width: 100%;
    height: 100%;
}

.youtube-mtd {
    position: relative;
}

.youtube-big {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/*----- DRONE CAPTATION -----*/
.custom-tooltip {
    position: relative;
}

.tooltip-text {
    background-color: #212529;
    color: #ff0000;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    position: absolute;
    bottom: 125%;
    left: 70%;
    transform: translateX(-50%);
    white-space: nowrap;
}


/*----- PHOTOGRAPY -----*/
.photography-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.photography-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.photography-zoom {
    transition: transform 0.4s ease-in-out;
    display: block;
    width: 100%;
    height: auto;
}

.photography-legend {
    border: none;
    border-radius: 0.3rem;
    background-color: #f8f9fa;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease-in-out;
}

.photography-link:hover {
    color: #9d9d9e;
}

img.object-fit-cover {
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

img.object-fit-cover:hover {
    transform: scale(1.03);
}

.ratio-fixed {
    aspect-ratio: auto !important;
    height: 250px;
    overflow: hidden;
}

.ratio-fixed img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.photo-click {
    cursor: pointer;
}

.sub-nav-link:hover {
    color: #c7c8c9 !important;
}



/*----- REFERENCE LINK -----*/
.link-wrapper {
    text-decoration: none;
    color: inherit;
}

.shadow-box {
    overflow: hidden;
    border-radius: 0.3rem;
    background-color: #f8f9fa;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease-in-out;
}

.shadow-box:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
}

.shadow-box figcaption {
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.shadow-box figcaption {
    transform: scale(1.1);
}

.legend {
    font-size: 0.890rem;
    color: #333;
}




/*----- FOOTER -----*/
.figure-zoom {
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.figure-zoom:hover {
    transform: scale(1.15);
}

@media (max-width: 1024px) {
    .video-carousel-wrapper {
        padding: 0;
    }

    .right-arrow {
        display: none;
    }

    .left-arrow {
        display: none;
    }
}


/*----- MEDIA QUERIES TABLETTE -----*/
@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .image-container:hover .image-shift {
        transform: scale(1.05) translateX(10px);
    }

    .image-container-big:hover .image-shift-big {
        transform: scale(1.05) translateX(10px);
    }

    .image-container:hover .youtube {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
        /* active le clic */
    }

    .image-container-big:hover .youtube-big {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: auto;
        /* active le clic */
    }

    .photography-container:hover .photography-zoom {
        transform: scale(1.05) translateY(-2%);
    }

    .ratio-fixed {
        min-height: 250px;
    }
}

/*----- MEDIA QUERIES MOBILE -----*/
@media (max-width: 575.98px) and (max-width: 991.98px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .title {
        font-size: 1.6rem !important;
    }

    .subtitle {
        font-size: 1.1rem !important;
    }

    .ratio-fixed {
        max-height: 300px;
    }

    .ratio-fixed p {
        font-size: 0.95rem;
        padding: 0 .5rem;
    }

    .ratio-fixed h5 {
        font-size: 1.3rem;
    }

    .sub-nav-link {
        font-size: 0.7rem;
    }
}