/* GENERAL */

p {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Gabarito", sans-serif;
    font-style: normal;
}

h1 {
    font-weight: 800;
    font-size: 3.7em;
}

/* MENU */

.site-header .container {
    position: relative;
}

#mainNavigation {
    justify-content: center;
}

nav {
    margin: 15px;
}

.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nabvar {
    padding: 150px !important;
}

.navbar-brand img {
    height: clamp(30px, 4vw, 40px);
    width: auto;
    display: block;
}

.nav-cta {
    margin-left: auto;
}

.phone-menu {
    text-decoration: none;
    color: #2a866d;
    border: 1px solid #2a866d;
    padding: 8px 18px;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1.1rem;
}

.phone-menu i {
    font-size: 0.9rem;
    padding-right: 3px;
}

.title-baseline {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    letter-spacing: 1.1px;
    color: #2a866d;
    font-weight: 500;
}

.title-baseline span {
    display: inline !important;
}

.title-baseline i {
    display: inline !important;
    font-style: normal;
    line-height: 1;
}

@media (max-width: 991px) {
    .nav-center {
        position: static;
        transform: none;
    }

    .nav-cta {
        margin-left: 0;
    }

    #mainNavigation {
        padding-top: 25px;
    }

    .phone-menu {
        display: inline-block;
        margin-top: 25px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .title-baseline {
        gap: 0.4rem;
        font-size: 0.8rem;
    }
}

/* TOP PAGE */

.title {
    margin-bottom: 3rem;
}

.title h1 {
    margin-bottom: 1rem;
}

.title span {
    display: block;
}

.top-image img {
    display: block;
    border-radius: 20px;
}

.top-section {
    margin: 100px;
}

.intro {
    margin-top: 3rem;
}

h2 {
    font-size: 3.2rem;
    font-weight: 800;
}

.intro span {
    font-size: 1.1rem;
    letter-spacing: 1.1px;
    color: #2a866d;
    font-weight: 500;
}

.intro > div:first-child {
    padding: 3rem;
}

.intro h2 {
    margin-bottom: 1rem;
}

.intro-solutions {
    background-color: #f97b24;
    border-radius: 20px;
    padding: 2.5rem;
}

.intro-solutions h2 {
    color: white;
    font-weight: 300;
    font-size: 1.75rem;
    text-transform: uppercase;
}

.intro-solutions li:not(:last-child) {
    margin-bottom: 0.5rem;
}

.intro-solutions span {
    display: block;
    font-weight: 800;
    margin-bottom: 0.15rem;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 0;
}

.intro-solutions p {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

/* SERVICES */

.services-section .container {
    position: relative;
}

.cards-container {
    align-items: stretch;
    --bs-gutter-x: 4rem;
    position: relative;
    z-index: 2;
}

.services-picture {
    background-image: url("../img/new/fond-cubes.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 991px) {
    .services-picture {
        /* background-image: url("../../public/img/new/fond-cubes-mobile3.png"); */
        background-image: inherit;
        background-repeat: inherit;
        background-position: inherit;
        background-size: inherit;
    }
}

.card-service {
    height: 100%;
    padding: 2rem 3rem;
    border-radius: 20px;

    text-align: center;
    background-color: white;

    display: flex;
    flex-direction: column;
    align-items: center;

    /* EFFET 3D */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* .card-orange {
    background-color: #f97b24;
}

.card-blue {
    background-color: #6bbdd3;
}

.card-green {
    background-color: #2a866d;
} */

.img-service img {
    max-width: auto;
    height: 50px;
    margin-bottom: 10px;
}

.card-service h4 {
    margin: 0;
    font-weight: 800;
    font-size: 2rem;
}

.card-service p {
    margin: 1.5rem 0 0;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: center;
    color: #212529;
    font-weight: 800;
}

.card-service p a {
    color: #2a866d;
}

.card-service p span {
    font-weight: 800 !important;
    color: #2a866d;
}

.card-service h5 {
    font-size: 1.1rem;
    padding-top: 5px;
}

@media (min-width: 992px) {
    .card-service {
        justify-content: center;
        overflow: hidden;
    }
}

@media (max-width: 992px) {
    .card-service {
        padding: 2.5rem 2rem;
    }

    .card-service p {
        opacity: 1;
        max-height: none;
        margin-top: 1.5rem;
    }
}

/* REALISATIONS */

.block-realisation {
    position: relative;
    display: flex;
    align-items: center;
    /* padding: 40px; */
    box-sizing: border-box;
    margin-bottom: 80px;
    color: #212529;
}

.block-realisation h4 {
    font-size: 2.5rem;
    font-weight: 800;
}

.block-realisation span {
    font-size: 1rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.block-realisation .content-realisation-right span {
    color: #2a866d;
}

.block-realisation p {
    font-size: 1.1rem;
    text-align: justify;
}

.block-realisation:last-child {
    margin-bottom: 0;
}

.block-img,
.content-realisation-right,
.content-realisation-left {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.block-img {
    overflow: hidden;
}

.block-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-realisation-right {
    padding-left: 55px;
    /* padding-right: 55px; */
    color: #212529;
}

.content-realisation-left {
    /* padding-right: 40px; */
    padding-left: 55px;
    color: white;
}

.background-green {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: #2a866d;
    border-radius: 20px;
    z-index: 0;
}

.background-orange {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: #f97b24;
    border-radius: 20px;
    z-index: 0;
}

.background-yellow {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: #fec107;
    border-radius: 20px;
    z-index: 0;
}

.background-blue {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: #6bbdd3;
    border-radius: 20px;
    z-index: 0;
}

button.btn-large {
    background-color: #212529;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
}

button.btn-large a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button.btn-transparent {
    background-color: white;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
}

button.btn-transparent a {
    color: #212529;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button.btn-large:hover {
    background-color: #2a866d;
}

button.btn-transparent:hover {
    background-color: #f1f1f1;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .block-realisation {
        padding: 25px;
        margin-bottom: 50px;
    }

    .block-img,
    .content-realisation-right,
    .content-realisation-left {
        padding: 15px;
    }

    .content-realisation-right {
        padding-left: 25px;
    }

    .content-realisation-left {
        padding-right: 25px;
    }
}

@media (max-width: 767px) {
    .block-realisation {
        flex-direction: column;
        padding: 20px;
        margin-bottom: 0px;
    }

    .block-realisation.reverse {
        flex-direction: column-reverse;
    }

    .block-img,
    .content-realisation-right,
    .content-realisation-left {
        width: 100%;
        flex: none;
        padding: 10px;
    }

    .content-realisation-right {
        padding: 0px 10px 0px 10px;
    }

    .content-realisation-right p,
    .content-realisation-left p {
        text-align: justify !important;
    }

    .content-realisation-left {
        padding: 0px 10px 20px 10px;
    }

    .background-green,
    .background-orange,
    .background-yellow,
    .background-blue {
        width: 100%;
        height: 75%;
        bottom: 0;
        top: inherit;
    }
}

/* FOOTER */

.contact-section {
    background: #212529;
    color: #fff;
    margin-top: 7rem;
}

/* Logo et coordonnées */

.footer-logo {
    max-width: 290px;
    margin-bottom: 35px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 400;
}

.footer-contact-list li:first-child {
    display: block;
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 700;
}

.footer-contact-list img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-contact-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: #c0c0c0;
}

/* Formulaire */

.footer-form h6 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-form h6 span {
    display: block;
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 8px;
    text-transform: uppercase;
    color: #2a866d;
    letter-spacing: 1px;
}

.footer-form label {
    margin-bottom: 7px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-form .form-control {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 15px;
}

.footer-form .form-control:focus {
    background: transparent;
    color: #fff;
    border-color: #c0c0c0;
    box-shadow: none;
}

.footer-form textarea {
    min-height: 120px;
}

.btn-footer {
    border: none;
    transition: 0.2s ease;

    background-color: white;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    color: #212529;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-footer:hover {
    background: #2a866d;
}

/* Bas du footer */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    font-size: 1rem;
}

.btn-mentions {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-mentions:hover {
    text-decoration: underline;
}

/* Modal */

#mentionsModal .modal-body {
    line-height: 1.7;
}

#mentionsModal .modal-body h6 {
    margin-top: 25px;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 575.98px) {
    .footer-logo {
        max-width: 110px;
    }

    .footer-form h2 {
        font-size: 1.25rem;
    }

    .btn-footer {
        width: 100%;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 767px) {
    /* Marges générales */
    .top-section,
    .services-section,
    .realisations-section {
        margin-left: 20px;
        margin-right: 20px;
    }

    /* Espacement entre sections */
    .top-section {
        margin-top: 40px;
        margin-bottom: 60px;
    }

    .intro {
        margin-top: 30px;
        margin-bottom: 60px;
    }

    .services-section,
    .realisations-section {
        margin-top: 30px;
        margin-bottom: 60px;
    }

    /* Titres */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Introduction */
    .intro > div:first-child {
        padding: 1rem 0rem 2.5rem 0rem;
    }

    .intro h2 {
        text-align: center;
        font-size: 1.6rem;
    }

    .intro span.span-title {
        font-size: 0.9rem;
        text-align: center;
    }

    .intro-solutions {
        padding: 1.5rem 2rem;
    }

    .intro-solutions h2 {
        text-align: left;
        font-size: 1.4rem !important;
        font-weight: 700;
    }

    .intro-solutions ul li span {
        font-weight: 700;
    }

    .intro-solutions ul li p {
        font-size: 0.9rem;
    }

    /* Services */
    .cards-container {
        --bs-gutter-x: 1rem;
    }

    #services .g-4 {
        --bs-gutter-y: 0px;
    }

    #services .mb-5 {
        margin-bottom: 2rem !important;
    }

    .card-service {
        padding: 2rem 1.5rem;
    }

    .card-service h4 {
        font-size: 1.7rem;
    }

    /* Réalisations */

    .block-realisation h4 {
        font-size: 1.8rem;
    }

    .block-realisation p {
        text-align: left;
        font-size: 1rem;
    }

    #realisations .mb-5 {
        margin-bottom: 0rem !important;
    }

    /* Footer */
    .contact-section {
        margin-top: 60px;
    }

    .contact-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-bottom .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-logo {
        max-width: 130px;
        margin-bottom: 15px;
    }

    .footer-contact-list li {
        font-size: 1rem;
    }

    .footer-contact-list li:first-child {
        font-size: 1.3rem;
    }

    .footer-form h6 {
        font-size: 1.6rem;
    }
}

/* PETITS ÉCRANS */
@media (max-width: 575px) {
    .top-section,
    .services-section,
    .realisations-section {
        margin-left: 20px;
        margin-right: 20px;
    }

    .title {
        margin-bottom: 2rem;
    }

    .title h1 {
        font-size: 2.2rem;
    }

    .intro-solutions h2 {
        font-size: 1.4rem;
    }

    .intro-solutions span {
        font-size: 1.2rem;
    }
}

/* ANIMATIONS */

/* MISSIONS */

#missions .col-lg-8,
#missions .col-lg-4 {
    opacity: 0;
    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}

#missions .col-lg-8 {
    transform: translateX(-80px);
}

#missions .col-lg-4 {
    transform: translateX(80px);
}

/* État visible */
#missions.visible .col-lg-8,
#missions.visible .col-lg-4 {
    opacity: 1;
    transform: translateX(0);
}

/* Désactivation sur mobile */
@media (max-width: 991px) {
    #missions .col-lg-8,
    #missions .col-lg-4 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* SERVICES */

/* État initial */
#services {
    opacity: 0;
    transform: translateY(80px);
    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}

/* État visible */
#services.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Désactivation sur mobile */
@media (max-width: 991px) {
    #services {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* REALISATIONS */

.block-realisation {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.block-realisation.visible {
    opacity: 1;
}

@media (max-width: 991px) {
    .block-realisation {
        opacity: 1;
        transition: none;
    }
}

/* NOTIFICATION MESSAGE ENVOYE */

.flash_message {
    text-align: center;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: none;
    background-color: #212529;
    color: white;
    padding: 15px;
}

.flash_message .close {
    text-align: center;
    font-family: "Zen Kaku Gothic New", sans-serif;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-transform: none;
    padding-right: 20px;
    color: white;
    float: right;
    cursor: pointer;
}

.hide-flash {
    display: none;
}

@media only screen and (max-width: 599px) {
    .flash_message {
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0;
        padding: 10px;
    }

    .flash_message .close {
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0;
    }
}

@media only screen and (max-width: 405px) {
    .flash_message {
        font-size: 14px;
        font-weight: 350;
        letter-spacing: 0;
        padding: 10px;
    }

    .flash_message .close {
        font-size: 14px;
        font-weight: 350;
        letter-spacing: 0;
    }
}
