@import url("slider-logos.css");
@import url("popup-modal.css");

/*** Reset ***/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

ul {
    list-style: none;
}

/*** END Reset ***/

/*** Global rules ***/
:root {
    /* Couleurs principales */
    --black-bg: #000000;
    --white-primary: #FFFFFF;
    --green-title: #1EC74A;

    /* Couleurs secondaires */
    --gray-text: #BCBCBC;
}

/* Fonts */
@font-face {
    font-family: 'Manrope-Medium';
    src: url("../fonts/Manrope-Medium.ttf");
}

@font-face {
    font-family: 'Raleway-ExtraBold';
    src: url("../fonts/Raleway-ExtraBold.ttf");
}

@font-face {
    font-family: 'Manrope-ExtraBold';
    src: url("../fonts/Manrope-ExtraBold.ttf");
}

@font-face {
    font-family: 'Manrope-Regular';
    src: url("../fonts/Manrope-Regular.ttf");
}

:root {
    --menu: 'Manrope-Medium';
    --titles: 'Raleway-ExtraBold';
    --btn: 'Manrope-ExtraBold';
    --text: 'Manrope-Regular';
}
html, body {
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--black-bg);
}

main {
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--titles), sans-serif;
}

h3 {
    font-size: 22px;
    color: var(--green-title);
    text-align: left;
}

li a, li a:visited {
    color: var(--white-primary);
    text-decoration: none;
}
li a:active {
    color: var(--green-title);
} 

.padding-x, .padding-x-fluid {
    padding: 0 80px; 
}

.space-x-y {
    padding: 200px 80px 30px 80px;
}
@media screen and (max-width: 767px) {
    .space-x-y {
        padding: 100px 20px 30px;
    }
    .padding-x {
        padding: 0 40px; 
    }
    .padding-x-fluid {
        padding: 0 20px;
    }

    h2#why-us + .row > * {
        padding-left: 0 !important; 
    }
}

.mt-50 {
    margin-top: 50px;
}

/* Espacements gauche & droite de sections et gouttières de 80px */
.items-wrapper, .items-wrapper-fluid {
    padding-left: 80px;
    padding-right: 80px;
}
.items-wrapper .item {
    flex: 0 0 calc((100% - 3 * 80px) / 4); /* 3 espaces de 80px entre 4 blocs */
    max-width: calc((100% - 3 * 80px) / 4);
}

.items-wrapper .item-2cols, .items-wrapper-fluid .item-2cols {
    flex: 0 0 calc((100% - 1 * 80px) / 2); /* 1 espace de 80px entre 2 blocs */
    max-width: calc((100% - 1 * 80px) / 2);
}

/* Tablet screen size */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .items-wrapper .item {
        flex: 0 0 calc((100% - 1 * 80px) / 2); /* 1 espace de 80px entre 2 blocs */
        max-width: calc((100% - 1 * 80px) / 2);
    }
}

@media screen and (max-width: 767px) {
    .items-wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }

    .items-wrapper-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    .items-wrapper .item, .items-wrapper .item-2cols, .items-wrapper-fluid .item-2cols  {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.items-wrapper .gap-custom {
    gap: 80px;
}
@media screen and (max-width: 767px) {
    .items-wrapper .gap-custom {
        gap: 30px;
    }
}
/* FIN Espacements gauche & droite & gouttières de 80px */


footer {
    background-color: var(--green-title);
}

p {
    font-family: var(--text), sans-serif;
    color: var(--gray-text);
    font-size: 16px;
    margin: 30px 0 50px;
}

.green-text {
    color: var(--green-title);
    font-size: 40px;
}
.white-text {
    color: var(--white-primary);
    font-size: 40px;
}
@media screen and (max-width: 767px) {
    .green-text, .white-text {
        font-size: 30px;
    }
}

a.btn-cta {
    font-family: var(--btn), sans-serif;
    font-size: 15px;
    padding: 7px 12px;
    border: 2px solid var(--green-title);
    border-radius: 20px;
    opacity: 1;
    color: var(--green-title);
    text-decoration: none;
    font-weight: unset !important;
}
@media screen and (max-width: 767px) {
    a.btn-cta {
        margin: 0 auto;
    }
}
a.btn-cta:hover, button.badge.rounded-pill.submit-btn:hover {
    color: var(--black-bg);
    background-color: var(--green-title);
}
button.badge.rounded-pill.submit-btn {
    padding: 7px 12px;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    font-family: var(--btn), sans-serif;
    border-radius: 500px;
    border: 2px solid #1EC74A;
    text-align: center;
    color: var(--green-title);
    background-color: transparent;
    margin-bottom: 200px;
    font-weight: unset !important;
}

@media screen and (max-width: 767px) {
    .text-column {
        padding-left: 0;
        padding-right: 0;
    } 
}

@media screen and (min-width: 768px) {
    .break {
        display: inline;
    } 
    .break-lg {
        display: block;
    } 
}
@media screen and (max-width: 767px) {
    .break {
        display: block;
    }
    .break-lg {
        display: inline;
    }  
}

/* Gestion du scroll du menu vers l'ancre */
@media (min-width: 768px) {
    #expertise {
      scroll-margin-top: 80px;
    }
    #operations.article, #interfacing.article, #contact {
      scroll-margin-top: 120px;
    }

    #contact {
        scroll-margin-top: 200px;
    }
}

@media (max-width: 767px) {
    #expertise, #contact, #operations, #interfacing {
      scroll-margin-top: 80px;
    }
    #contact {
        scroll-margin-top: 220px;
    }
}
/*** END Global rules ***/

/* Header Layout */
header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 20px;
    height: 120px;
    color: var(--white-primary);
    background-color: var(--black-bg);
    z-index: 1100;
    
}

.logo-zonegreen {
    width: 79.68px;
    height: 80px;
}
@media screen and (max-width: 1290px) {
    header {
        height: 80px;
        padding-top: 12px;
        padding-top: env(safe-area-inset-top);
        min-height: 80px;
    } 

    .logo-zonegreen {
        width: auto;
        height: 61px;
        position: fixed;
        left: 14px;
        top: 10px;
    }
}

.logo-mobile {
    width: auto;
    height: 61px;
    position: relative;
    left: -24px;
} 
    
/* --- Desktop Menu --- */
.nav-desktop ul {
    display: flex;
    align-items: center;
}

.nav-desktop li {
    text-transform: uppercase;
    padding: 0 20px;
    position: relative;
}
.nav-desktop li a {
    font-family: var(--menu), sans-serif;
    font-size: 14px;
}
.nav-desktop li a:hover {
    color: var(--green-title);
}

.nav-desktop li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
}
.nav-desktop li:last-child {
    padding-right: 0;
}

/* --- Burger (Mobile Only) --- */
.burger {
    cursor: pointer;
    position: relative;
    right: -20px;
    display: none;    
}
.burger img {
    width: 21px;
    height: auto;   
}

.nav-mobile {
    width: 100vw;
    max-width: 100vw;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: var(--black-bg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    padding: 30px 20px;
    overflow-x: hidden;
}

.nav-mobile.active {
    padding-top: 72px !important;
    opacity: 1;
    visibility: visible;
}
  
.nav-mobile .close {
    position: absolute;
    top: 20px;
    right: 11px;
    cursor: pointer;
    z-index: 101;
    width: 27px;
    height: auto;
}

.nav-mobile .close img {
    width: 21px;
    height: auto;
}
.nav-mobile ul {
    margin-top: 40px;
}
.nav-mobile li {
    text-transform: uppercase;
    border-top: 1px solid #00ff66;
    padding: 20px 0;
    margin-left: -32px;
    margin-right: 1px;
}

/* --- Non-desktop screens until mobile --- */
@media (max-width: 1290px) {
    .nav-desktop {
      display: none;
    }
  
    .burger {
      display: block;
    }
  }  
/*** END menu & mobile menu ***/


/* Section Banner */
main .banner {
    padding: 40px;
    height: 610px;
    background: url("../img/1_HEADER_ZONEGREEN_UK.jpg") no-repeat center center / cover;
    margin: 0 40px;
}
@media screen and (max-width: 1290px) {
    main .banner {
        background: url("../img/zonegreen_header_mobile_UK.jpg") no-repeat center center / cover;
        margin: 0;
        padding: 20px;
    }
}

.text-banner {
    margin-left: 52px;
    padding-top: 129px;
}
.text-banner-mobile {
    display: none;
}

.banner h1 {
    font-family: var(--titles), sans-serif;
    color: var(--white-primary);
    font-size: 60px;
    margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
    .text-banner {
        display: none;
    }

    .text-banner-mobile {
        display: block;
        margin: 40px 0 0 20px;
    }
    .text-banner-mobile h1 {
        color: var(--white-primary);
        margin-bottom: 20px;
        line-height: 1.2 !important;
        font-size: 35pt !important;
    }  
}

.text-banner a.btn-cta.btn-banner {
    border: 2px solid var(--white-primary);
    color: var(--white-primary);
    
}
.text-banner a.btn-cta.btn-banner:hover {
    border: 2px solid transparent;
    color: var(--black-bg);
    background-color: var(--green-title);
    
}

.banner .rect-green {
    height: 100%;
    background: transparent;
    border: 10px solid var(--green-title);
}
  

/* Section Safety et cie */
#safety {
    padding-top: 200px;
}
@media screen and (max-width: 767px) {
    #safety {
        padding-top: 100px;
    }
}

/** Manage zoom and border inside 'Expertise & cie' images **/
#expertise .media-col, #operations .media-col, #interfacing .media-col {
    overflow: hidden;
    position: relative;
}

.image-wrapper-vertical {
    width: 80%; /* conteneur direct de l'image verticale */
}
.image-wrapper-vertical, .image-wrapper {
    overflow: hidden;
    position: relative;
}

.image-wrapper-vertical img.vertical-image, .image-wrapper img {
    width: 100%;
    display: block;
    transition: transform .5s ease-in-out;
    will-change: transform;
}
.image-wrapper-vertical:hover img.vertical-image,  .image-wrapper:hover img {
    transform: scale(1.1);
}

/* cadre vert en pseudo-élément */
.image-wrapper-vertical::after, .image-wrapper::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 10px solid var(--green-title);
    opacity: 0;
    pointer-events: none; /* pour ne pas interférer avec le hover */
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
}

/* apparition au hover */
.image-wrapper-vertical:hover::after, .image-wrapper:hover::after {
    opacity: 1;
}

/*additionnal hover on all section*/
#expertise:hover img {
    transform: scale(1.1);
}
#expertise:hover .image-wrapper-vertical:after {
    opacity: 1 !important;
}
#operations:hover img {
    transform: scale(1.1);
}
#operations:hover .image-wrapper::after {
    opacity: 1 !important;
}
#interfacing:hover img {
    transform: scale(1.1);
}
#interfacing:hover .image-wrapper::after {
    opacity: 1 !important;
}


/** END Manage zoom and border **/

.items-wrapper-fluid .article {
    gap: 80px;
    margin-bottom: 200px;
}
.gap-custom.hazardous {
    margin-bottom: 0 !important;
}

/* Responsive mobile : une colonne et ordre media > texte > cta */
@media (max-width: 767px) {
    .items-wrapper-fluid .article {
        margin-bottom: 100px;
    }
    .items-wrapper-fluid .article:last-child {
        margin-bottom: 0;
    }

    .item-2cols {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .media-col {
        order: 1;
        margin-bottom: 20px;
    }

    .content-col {
        order: 2;
    }

    .content-col a.cta {
        display: block;
        margin-top: 16px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.play-icon {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    object-fit: contain;
    cursor: pointer;
    z-index: 10;
}

.text-column .right-media-mobile {
    display: none;
}
@media screen and (max-width: 767px) {
    .text-column .right-media-mobile {
        display: block;
        margin: 30px 0;
    }

    .play-icon {
        top: 47%;
    }
}
  

/* Section Offering */
h3.item-offer-border {
    padding-top: 20px;
    border-top: 1px solid var(--green-title);
    margin-bottom: 20px;
}

p.item-offer-text {
    margin: 20px 0 30px 0;
}

@media screen and (max-width: 767px) {
    h2#offering {
        padding-left: 40px;
        padding-right: 47px;
    }
    h2#offering + section.row.padding-x > article {
        padding: 0 !important;
    }

    img.item-img {
        margin-bottom: 9px !important;
    }
}


/* Section Testimonials */
#testimonials + .items-wrapper .item-2cols {
    border-top: 1px solid var(--green-title);
    padding-top: 20px;
    margin-bottom: 20px;
}

@media screen and (max-width: 767px) {
    #testimonials + .items-wrapper p {
        margin: 10px 0 50px;
    }
}
.logo-company {
    display: flex;
    padding-bottom: 20px;
}
.logo-company img {
    width: 75%;
}
@media screen and (max-width: 767px) {
    .logo-company  {
        width: 50%;
    }
}


/* Section Why Us - Zonegreen */
.more-centered-section {
    padding-left: 160px;
    padding-right: 160px;
}

.brands-group img {
    padding: 0 20px;
    width: 15%;
}
.brands-group {
    margin-top: 50px;
}
@media screen and (max-width: 767px) {
    .more-centered-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .brands-group img {
        margin-bottom: 20px;
        width: 25%;
        height: auto;
    }
}


/* Section Team */
.team-people {
    display: block;
}

.team-people .role {
    color: var(--white-primary);
    font-family: var(--menu), sans-serif;
    font-size: 16px;
    margin-top: 20px;
}

.team-people .role  a {
    font-size: 16px;
    color: var(--gray-text) !important;
}

h3.item-team-border {
    padding-top: 30px;
    border-top: 1px solid var(--green-title);
}

img.team-img.img-fluid {
    margin-bottom: 30px !important;
}

@media screen and (max-width: 767px) {
    .team-people {
        margin-bottom: 50px;
    }
}


/* Section Clients */
@media screen and (max-width: 767px) {
    h2#clients span.break {
        color: var(--white-primary);
    }

    .team-people {
        margin-bottom: 50px;
    }
}


/* Section Contact form */
.contact-wrapper {
    padding-left: 200px;
    padding-right: 200px;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
  }
  
  .form-cols {
    display: flex;
    gap: 80px; /* Gouttière obligatoire entre les colonnes */
    flex-wrap: wrap;
  }
  
  .form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .full-width {
    width: 100%;
  }
  
  @media (max-width: 767px) {
    .contact-wrapper {
      padding-left: 40px;
      padding-right: 40px;
    }
  
    .form-cols {
      flex-direction: column;
      gap: 20px; /* Espace obligatoire entre les blocs verticalement */
    }
}

label.label-form {
    color: var(--white-primary) !important;
    font-family: var(--text), sans-serif;
    font-size: 14px;
    padding-bottom: 10px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="checkbox"] {
    background-color: var(--black-bg);
    border: 1px solid var(--green-title);
    color: var(--white-primary);
}

textarea.form-control#msgForm {
    background-color: var(--black-bg);
    border: 1px solid var(--green-title);
    color: var(--white-primary);
    min-height: 200px;
}

#checkForm.form-check-input:checked {
    background-color: var(--green-title) !important;
    border-color: var(--green-title) !important;
}

.form-control:focus {
    color: var(--white-primary) !important;
    background-color: transparent !important;
    border-color: var(--green-title);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(30, 199, 75, 0.423);
}

/* Submit messages success or fail */
#contact .alert-success {
    background-color: transparent;
    border: 2px solid var(--green-title);
    margin-bottom: 6rem !important;
}
#contact .alert-danger {
    background-color: transparent;
    border: 2px solid #e30421;
    margin-bottom: 6rem !important;
}
.alert-danger > h3 {
    color: #e30421;
}
.show-msg h3 {
    margin-bottom: auto;
    text-align: center;
}
.show-msg
{
    display: block;
}
.hide-msg {
    display: none;
}
/* FIN Section Contact form */


/* Footer */
footer.green-footer {
    padding: 80px 80px 60px;
}
@media screen and (max-width: 767px) {
    footer.green-footer {
        padding: 41px 20px 60px;
    }
}

.about-zonegreen {
    color: var(--black-bg);
    font-family: var(--text), sans-serif;
    font-size: 16px;
}
footer .logo-zonegreen.black {
    margin-top: -3%;
    margin-bottom: 3%;
}

h2.newsletter {
    color: var(--black-bg);
    font-family: var(--titles), sans-serif;
    font-size: 24px;
}
@media screen and (max-width: 767px) {
    h2.newsletter {
        margin: 40px 0 20px;
    }
}

.register-news input {
    width: 261px;
    padding: 7px 12px;
    border: 2px solid var(--black-bg);
    border-radius: 20px;   
}

#checkNews + label {
    text-align: left;
    color: var(--black-bg);
    font-size: 16px;
    font-family: var(--text), sans-serif;
}

input::placeholder, button#submitNews {
    font-family: var(--menu), sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--black-bg);
    background-color: transparent;
}

input[type="email"]#emailNews {
    background-color: transparent;
    border: 2px solid var(--black-bg);
    color: var(--black-bg);
}

button#submitNews {
    width: 91px;
    height: 40px;
    border: 2px solid var(--black-bg);
}

input#checkNews {
    background-color: transparent;
    border: 2px solid var(--black-bg);
    border-radius: 4px;
    padding-left: 5px;
}
#checkNews.form-check-input:checked {
    background-color: var(--black-bg) !important;
}

/* Footer at the bottom */
hr#sep-footer {
    border: none;
    border-top: 1px solid var(--black-bg);
    overflow: visible;
    height: 2px;
    background-color: var(--black-bg);
}

a.legal-notice {
    text-decoration: none;
    color: var(--black-bg);
    font-family: var(--text), sans-serif;
    font-size: 16px;
    text-align: left;
}
/**************** END STYLES ************/