*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.app_mentions header a {
    color: black !important;
}

body.app_mentions header.scrolled .menu ul li a {
    color: white !important;
}

body.app_mentions header.scrolled .menu ul li a:hover {
    color: #FFC700 !important;
}

body.app_mentions header a:hover {
    color: #FFC700 !important;
}

body.app_mentions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

body.app_mentions .hamburger .line {
    background-color: #000 !important;
}

body.app_mentions header.scrolled .hamburger .line {
    background-color: #FFC700 !important;
}

/* Header global */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 2px solid #FEF310;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

header.scrolled {
    padding: 10px 20px;
    background-color: #333;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Logo */
header .logo img {
    width: 60%;
    transition: width 0.3s ease-in-out;
}

header.scrolled .logo img {
    width: 40%;
}

/* Menu Desktop */
header .menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

header .menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease-in-out;
}

header.scrolled .menu ul {
    opacity: 0.8;
}

header .menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    transition: font-size 0.3s ease-in-out;
}

header .menu ul li a:hover {
    color: #FFC700;
}

header.scrolled .menu ul li a {
    font-size: 14px;
}

/* Hamburger - visible en mobile uniquement */
header .hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

header .hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

header.scrolled .hamburger .line {
    background-color: #FFC700;
}

section#heroes,
section#heroess {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

section#heroess {
    height: 72vh;
}

section#heroes img,
section#heroess img {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
    transition: transform 0.3s ease;
}

section#heroes #overlay,
section#heroess #overlay {
    background: linear-gradient(rgba(29, 29, 29, 0.3), rgba(29, 29, 29, 0.5));
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

section#heroes .hero-text,
section#heroess .hero-text {
    color: #fff;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    max-width: 1200px;
}

section#heroes .hero-text h1,
section#heroess .hero-text h1 {
    color: #FFC700;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-top: 0;
    text-align: center;
}

section#heroes .hero-text p,
section#heroess .hero-text p {
    color: #fff;
    font-size: clamp(1rem, 2vw, 2rem);
    margin: 20px 10px;
    text-align: center;
}

section#heroes .hero-text a,
section#heroess .hero-text a {
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 5px;
    color: #000;
}

section#heroes .hero-text a:visited,
section#heroess .hero-text a:visited {
    color: #000;
}

section#heroes .hero-text a:hover,
section#heroess .hero-text a:hover {
    background-color: #FFC700;
    color: #fff;
}

section#expertise {
    display: flex;
    align-items: center;
    background: #FFC700;
    padding: 50px;
    position: relative;
    bottom: 102.5px;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

section#expertise .text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section#expertise .text .img {
    width: 50px;
    height: 50px;
}

section#expertise .text img {
    width: 100%;
}

section#expertise .text h2 {
    text-align: center;
}

section#expertise .text p {
    text-align: center;
}

.text-center {
    text-align: center;
    margin: -50px 200px 20px;
}

/* Section principale */
section.services-section {
    text-align: center;
    padding: 2rem 1rem;
}

section#services .section-title {
    margin-bottom: 2rem;
    color: #333;
}

/* Conteneur des services */
section#services .services-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Carte d'un service */
section#services .service {
    position: relative;
    width: 300px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section#services .service-background {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

section#services .service-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: -50px auto 0;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section#services .service-icon img {
    width: 60%;
    height: 60%;
}

section#services .service-title {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #333;
}

section#equipment {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

section#equipment .equipment {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

section#equipment .equipment img {
    width: 100%;
}

section#equipment .equipment h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #333;
    position: relative;
}

section#equipment .equipment h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -5px;
    display: block;
    width: 110%;
    height: 5px;
    background: #FFC700;
    opacity: 0.5;
}

section#equipment .equipment-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 50px;
}

section#contact #baniere {
    background-color: #FFC700;
    padding: 30px;
    text-align: center;
    font-size: 1.5rem;
    margin: 20px 0;
}

section#contact form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 200px;
}

section#contact form input,
section#contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

section#contact form textarea {
    max-width: 100%;
}

section#contact form input:focus,
section#contact form textarea:focus {
    outline: none;
    border-color: #FFC700;
}

section#contact form button {
    background-color: #FFC700;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

section#contact form button:hover {
    background-color: #000;
    color: #fff;
}

section#contact form p {
    margin-bottom: 1rem;
}

section#contact form span {
    color: red;
}

section#contact form label::after {
    content: " *";
    color: red;
}

section#contact .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

section#contact .form-control {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

section#contact .alert {
    text-align: center;
    margin: 20px auto;
}

section#realisation {
    position: relative;
    align-items: center;
    display: flex;
    height: 500px;
    justify-content: center;
    margin: 20px 0;
}

section#realisation img#fond {
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
    transition: transform 0.3s ease;
    z-index: -2;
}

section#realisation #overlay {
    background: #FFC700;
    opacity: 0.9;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

section#realisation .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section#realisation .slider {
    height: fit-content;
    position: relative;
    width: 920px;
    margin: 20px 0 30px;
    z-index: 0;
}

section#realisation .slider .slides .slide {
    height: fit-content;
    width: 300px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-radius: 10px;
}

section#realisation .slider .puces {
    align-items: center;
    bottom: -30px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    height: 20px;
    justify-content: center;
    left: 0;
    position: absolute;
    width: 100%
}

section#realisation .puce {
    background: grey;
    border-radius: 100%;
    height: 15px;
    width: 15px
}

section#realisation .puce.active {
    background: #000
}

section#realisation .slider .slides,
section#hero .slider .slides {
    display: flex;
    gap: 10px;
    height: 100%;
    overflow: hidden;
    width: 100%
}

section#realisation .slides {
    scroll-behavior: smooth
}

section#realisation .slides.active {
    scroll-behavior: inherit
}

section#realisation .slider .slides .slide img {
    height: 200px;
    object-fit: cover;
    width: 300px;
    border-radius: 10px 10px 0 0;
}

section#realisation .slide h4 {
    text-align: center;
}

section#realisation .slider-link {
    text-align: right;
    margin: 0 10px 10px 85%;
    padding: 10px;
    background: #FFC700;
    color: white !important;
    border-radius: 100%;
    width: fit-content;
}

section#realisation a {
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 5px;
    color: #000;
}

section#realisation a:visited {
    color: #000;
}

section#realisation a:hover {
    background-color: #000;
    color: #fff;
}

section#mentions {
    background: white;
    border-radius: 8px;
    margin: 80px auto auto;
    padding: 20px
}

section#mentions h1 {
    text-align: center;
    color: #222;
}

section#mentions h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    color: #555;
}

section#mentions p {
    margin: 10px 0;
}

footer {
    background-color: #000;
    color: #fff;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

footer .footer-content .footer-logo {
    max-width: 30%;
}

footer .footer-content .footer-logo img {
    width: 100%;
}

footer .footer-horaires,
footer .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-horaires h3,
footer .footer-contact h3 {
    margin-bottom: 10px;
}

footer .footer-horaires p,
footer .footer-contact p {
    margin: 0;
}

footer .footer-contact a {
    text-decoration: none;
    color: #fff;
    margin: 0;
}

footer hr {
    border: 1px solid #FFF;
}

footer .footer-copyright p {
    text-align: center;
    padding: 10px;
}

footer .footer-copyright a {
    color: #FFF;
    text-decoration: none;
}

footer a:hover {
    color: #FFC700;
}

/* Page realisation */

section#expertises {
    display: flex;
    align-items: center;
    background: #FFC700;
    padding: 50px;
    position: relative;
    bottom: 102.5px;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

section#expertises .text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section#expertises .text h2 {
    text-align: center;
}

section#realisations {
    padding: 20px;
}

.parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: start;
}

.container {
    position: relative;
}

.image-container {
    position: relative;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.image-container img {
    width: 500px;
    height: 333px;
    object-fit: fill;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 199, 0, 0.7);
    opacity: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
}

.image-container:hover .overlay {
    opacity: 1;
}

.overlay h3,
.overlay p {
    margin: 10px 0;
}

.arrow {
    margin-top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: #FFC700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
}

section#description .right,
.containerfordescript {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

section#description .left img {
    width: 600px;
}

section#description .right h1:nth-child(1) {
    font-size: 24px;
    color: #FFC700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

section#description .right h1:nth-of-type(2),
.titlefordescript {
    font-size: 20px;
    margin: 20px auto 10px;
}

section#description .right div,
.divfordescript {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

section#description .container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: -70px auto 0;
    padding: 30px 30px 0;
}

/* Video */
section#description .video-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

section#description .video {
    padding: 20px;
    background-color: #FFC700;
    width: 100%;
    margin-top: 50px;
}

section#description .video h2 {
    text-align: center;
    margin: 20px auto;
    font-size: 2rem;
    font-family: 'Arial', sans-serif;
}

/* Général */
section#description .gallery {
    margin: 40px auto;
    text-align: center;
}

section#description .gallery h2 {
    text-align: center;
    margin: 20px auto;
    font-size: 2rem;
    font-family: 'Arial', sans-serif;
}

/* Carousel */
.carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

.thumbnails {
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: #f1f1f1;
}

.thumbnail-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px;
    flex: 1;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    background: #ddd;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s, transform 0.2s;
}

.thumbnails img:hover {
    border-color: #FFC700;
    transform: scale(1.1);
}

.thumbnails img:focus {
    outline: none;
    border-color: #FFC700;
}

.arrow2 {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px 15px;
    transition: color 0.3s, transform 0.2s;
}

.arrow2:hover {
    color: #FEF310;
    transform: scale(1.2);
}

/* Menu Mobile */
@media (max-width: 768px) {

    header {
        flex-wrap: wrap;
    }

    header .menu {
        display: none;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        border-radius: 0 0 10px 10px;
        opacity: 0;
        transition: opacity 0.3s, transform 0.3s;
        order: 3;
        width: 100%;
    }

    header .menu.open {
        display: flex;
        opacity: 1;
    }

    header.scrolled .menu {
        background-color: #333;
    }

    header .menu ul {
        flex-direction: column;
        align-items: center;
    }

    header .hamburger {
        display: flex;
    }

    header .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    header .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    header .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    section#contact form {
        margin: 20px;
    }

    footer .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .text-center {
        margin: -120px 20px 20px;
    }

    section#expertise {
        flex-direction: column;
        gap: 20px;
        width: 320px;
        bottom: 200px;
    }

    section#realisation .slider {
        width: 300px;
    }

    .parent {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width:480px) {
    header .logo {
        width: 80%;
    }

    section#equipment .equipment-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    section#contact .form-group {
        flex-direction: column;
    }

    footer .footer-content .footer-logo {
        max-width: 70%;
    }

    section#expertise {
        bottom: 120px;
    }

    section#heroes {
        height: 78vh;
    }

    .text-center {
        margin: -80px 20px 20px;
    }

    .image-container img {
        width: 281px;
        height: 200px;
    }

    .overlay h3,
    .overlay div {
        font-size: 14px;
    }

    section#description .container {
        flex-wrap: wrap;
        padding: 20px;
    }

    section#description .left img {
        width: 100%;
    }

    section#description .video-container {
        flex-wrap: wrap;
    }

    section#description .video-container video {
        width: 100%;
        height: auto;
    }

    section#description .video {
        margin-top: 30px
    }

    .carousel {
        width: 300px;
    }

    section#expertise .text h2 {
        font-size: larger;
    }

    section#realisations {
        margin-top: -80px;
    }

    section#description .container .right {
        padding: 0;
    }

    .arrow2 {
        padding: 5px 10px;
    }
}