/* =====================================================================
   CAB Systèmes - feuille de style principale
   Mobile : max-width 779px / Tablette : 780px à 1418px
   ===================================================================== */

:root {
    --orange: #DA643A;
    --gris-fonce: #545454;
    --gris-texte: #595959;
    --beige: #E3DCC1;
    --police: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --header-h: 100px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: content-box;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: var(--police);
    font-weight: 300;
    background-color: #fff;
}

.noScroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

img {
    max-width: 100%;
}

p {
    font-size: 16px;
}

h1,
.h-section {
    color: var(--orange);
    font-weight: 300;
    font-size: 35px;
    margin: 50px 0;
    padding: 0;
}

h3 {
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    margin: 20px 40px;
}

h4 {
    font-size: 20px;
    font-weight: 300;
    margin: -10px 0 0 40px;
    color: #000;
}

address {
    font-style: normal;
}

section {
    width: 90%;
    padding: 30px 5%;
    text-align: center;
    overflow: hidden;
    min-height: 200px;
}

/* ---------- Header / menu ---------- */

.header {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    position: fixed;
    top: 0;
    transition: background-color 0.3s, color 0.1s;
}

.page-accueil .header {
    background-color: transparent;
}

.header.dim {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-accueil .header.dim {
    background-color: rgba(0, 0, 0, 0.2);
}

.logoLink {
    display: flex;
    align-items: center;
}

.logoHeader {
    margin: 0;
    width: 160px;
    height: auto;
    display: block;
}

#mobileMenu {
    display: none;
}

#mainMenu {
    max-width: 1100px;
    height: var(--header-h);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.menuList,
.sousMenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mainMenu .menuList > li {
    display: inline-block;
    position: relative;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.4px;
}

#mainMenu .menuList > li > a,
#mainMenu .menuList > li > span {
    display: block;
    padding: 25px 20px;
    cursor: pointer;
    transition: color 0.2s;
}

#mainMenu .menuList > li:hover > a,
#mainMenu .menuList > li:hover > span {
    color: var(--orange);
}

/* Sous-menu ACTIVITE */
.sousMenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.3s, max-height 0.4s ease;
}

#mainMenu .sousMenu {
    position: absolute;
    width: 220px;
    padding: 0 30px;
    margin: 21px 0 0 -90px;
    background: url('../img/fondSousMenu.png') no-repeat;
    background-size: 100% 100%;
}

.sousMenu li a {
    display: block;
    padding: 25px 20px;
    color: #000;
    font-weight: 300;
    font-size: 16px;
    transition: color 0.2s;
}

.sousMenu li a:hover {
    color: var(--orange);
}

.uberMenu:hover .sousMenu,
.uberMenu:focus-within .sousMenu {
    opacity: 1;
    max-height: 1000px;
}

#burgerMenu {
    background: none;
    border: 0;
    padding: 0;
}

/* ---------- Popup / page contact ---------- */

#fade {
    display: none;
    background: #000;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 9999;
}

.popup_block {
    display: none;
    position: fixed;
    width: 647px;
    height: 640px;
    top: 50%;
    left: 50%;
    z-index: 99999;
    font-size: 1.2em;
}

img.btn_close {
    float: right;
    margin: 0;
}

.section-contact p {
    text-align: left;
    color: #fff;
    padding: 5px;
    font-weight: 100;
}

.section-contact h4 {
    color: var(--orange);
    margin: 0 5px;
    font-weight: 100;
}

.form {
    margin: auto;
    width: 647px;
    font-family: var(--police);
}

.form input,
.form textarea {
    margin: 5px;
    padding: 5px;
    border: none;
    font-family: var(--police);
    font-size: 15px;
    font-weight: 300;
    color: darkgray;
}

.form input {
    width: 300px;
    max-width: 342px;
    height: 40px;
}

.form textarea {
    width: 624px;
    height: 120px;
}

.form .champ-piege {
    position: absolute;
    left: -9999px;
}

.form button {
    float: right;
    width: 150px;
    height: 40px;
    margin: 5px;
    padding-top: 5px;
    border: none;
    border-radius: 5px;
    background-color: var(--orange);
    color: #fff;
    font-family: var(--police);
    font-size: 15px;
    font-weight: 100;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.form button:hover {
    background-color: var(--gris-fonce);
}

/* Page contact dédiée (lien CONTACT du menu mobile) */
.page-contact .contact {
    background: #2f2f2f;
    min-height: 100vh;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact .section-contact {
    width: 647px;
    max-width: 100%;
    padding: calc(var(--header-h) + 20px) 0 40px;
    font-size: 1.2em;
}

.page-contact footer {
    display: none;
}

/* ---------- Boutons ---------- */

.contact-btn {
    background: var(--orange);
    width: 200px;
    height: 24px;
    margin: 60px auto 0;
    padding: 20px 0;
    transition: background 0.3s;
}

.contact-btn span {
    color: #fff;
    font-size: 20px;
    font-weight: 100;
}

.contact-btn:hover {
    background: var(--gris-fonce);
}

/* ---------- Accueil : slider ---------- */

#sequence.seq {
    height: calc(100vh - 130px) !important;
    position: relative;
}

.ambiance-home {
    width: 100%;
    height: 100%;
    z-index: 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.oxy        { background-image: url(../img/oxyHome.jpg); }
.bureaux    { background-image: url(../img/bureaux-ambiance.jpg); }
.data       { background-image: url(../img/dataCenterHome.jpg); }
.singapour  { background-image: url(../img/singapourHome.jpg); }
.zebra-slide { background-image: url(../img/zebra-ambiance.jpg); }

.oxy,
.bureaux,
.data,
.singapour,
.zebra-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.effetAmbiance {
    width: 100%;
    height: 100%;
    background: url(../img/ambianceEffets.png);
    background-size: cover;
    background-position: left;
    position: absolute;
    z-index: 11;
    top: 0;
    opacity: 0.5;
}

.accroche {
    width: 560px !important;
    height: 200px !important;
    background: url(../img/fondAccroche.png) no-repeat !important;
    background-size: contain !important;
    position: absolute !important;
    bottom: 0 !important;
    margin-left: 170px !important;
    float: left !important;
    padding: 0 !important;
    z-index: 100;
}

.accroche-link {
    display: block;
    color: inherit;
    transition: opacity 0.2s;
}

.accroche-link:hover {
    opacity: 0.8;
}

.accroche-link:hover h3 {
    color: var(--orange);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 200;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    box-sizing: border-box;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    transform: scale(1.3);
}

/* ---------- Carrousel logos clients ---------- */

.logo-carousel {
    overflow: hidden;
    background: #fff;
    padding: 40px 0;
}

.page-references .logo-carousel {
    padding: 20px 0;
    margin-top: 50px;
}

.logo-carousel-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-logos 25s linear infinite;
}

.logo-carousel-track:hover {
    animation-play-state: paused;
}

.logo-carousel-track img {
    height: 50px;
    margin: 0 40px;
    opacity: 0.5;
    transition: opacity 0.3s;
    flex-shrink: 0;
    max-width: none;
}

.logo-carousel-track img:hover {
    opacity: 1;
}

@keyframes scroll-logos {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-carousel-track {
        animation: none;
    }
}

/* ---------- Accueil : contenu ---------- */

.intro {
    padding: 0 5% 30px;
    background: url(../img/fondHome.jpg) no-repeat center;
    background-size: cover;
}

.retourForce {
    display: none;
}

.blocActivite-container {
    width: 900px;
    margin: auto;
}

.blocActivite {
    background: url(../img/blocActivite_bg.png) no-repeat;
    background-size: 100%;
    width: 240px;
    aspect-ratio: 240 / 278;
    padding-bottom: 30px;
    margin: 18px;
    display: inline-block;
}

.blocActivite img {
    width: 90%;
    height: 150px;
    object-fit: cover;
    margin-top: 15px;
    transition: filter 0.3s;
}

.blocActivite:hover img {
    filter: grayscale(100%);
}

.blocActivite h2 {
    color: #000;
    font-size: 20px;
    font-weight: 400;
    transition: color 0.2s;
}

.blocActivite:hover h2 {
    color: var(--orange);
}

.map .map-lieux {
    font-size: 1.5em;
    font-weight: bold;
}

.carte-wrap {
    background: url(../img/carteInterventions3.png) no-repeat center;
    background-size: contain;
    height: 400px;
}

.partenaires > .h-section {
    color: #000;
}

.partenaires .col-1-3 {
    width: 24%;
    vertical-align: middle;
}

.partenaires img {
    width: 180px;
}

/* ---------- Colonnes ---------- */

.col-1-2 {
    width: 49%;
    display: inline-block;
    vertical-align: top;
}

.col-1-3 {
    width: 33%;
    display: inline-block;
    vertical-align: top;
}

.col-1-2-40 {
    position: relative;
    width: 40%;
    display: inline-block;
    vertical-align: top;
    margin: 0 50px;
}

.col-1-2-40 p {
    text-align: justify;
    margin-top: 0;
}

.col-1-2-40 .h-section {
    text-align: left;
    margin-left: 50px;
}

.contenu .h-section {
    margin-bottom: 0;
}

.contenu li {
    text-align: left;
}

/* ---------- Pages internes ---------- */

.activiteAmbiance {
    width: 100%;
    padding: 0;
    height: 500px;
    background-position: center;
    background-size: cover;
}

.ftto-ambiance            { background-image: url(../img/ftto-optique.jpg); }
.dataCenter-ambiance      { background-image: url(../img/dataCenter-ambiance.jpg); }
.cablage-ambiance         { background-image: url(../img/cablage-ambiance.jpg); }
.bureaux-ambiance         { background-image: url(../img/bureaux-ambiance.jpg); }
.partenairesAmbiance      { background-image: url(../img/partenaires-ambiance.jpg); }
.infrastructures-ambiance { background-image: url(../img/infrastructures-ambiance.jpg); }
.zebra-ambiance           { background-image: url(../img/zebra-ambiance.jpg); }

.activiteTitre {
    background: var(--orange) url(../img/ambianceEffets.png);
    background-size: 100% 600%;
    background-position: center 120px;
    color: #fff;
    margin: 0;
    text-align: left;
    text-transform: uppercase;
    font-size: 24px;
    height: 40px;
    padding-top: 10px;
    padding-left: 160px;
}

.image-ftto img {
    width: 100%;
}

.mentionsPage p {
    text-align: justify;
}

/* Zebra */
.zebra-logo {
    margin-top: 30px;
    max-width: 280px;
    height: auto;
}

.zebra-gammes {
    margin-top: 40px;
}

.zebra-gamme {
    margin-bottom: 25px;
}

.zebra-gamme h3 {
    color: var(--orange);
    margin: 20px 40px 8px;
    font-size: 1.1em;
}

.zebra-gamme p {
    margin: 0;
}

/* Partenaires */
.listeObjectifs {
    list-style: none;
}

.listeObjectifs li {
    color: var(--orange);
    font-size: 25px;
    line-height: 34px;
    margin: 0;
}

.partenaireContenu {
    background: none;
}

.partenaireContenu hr {
    border: 0;
    border-top: 1px solid var(--gris-texte);
    opacity: 0.5;
}

.partenaireContenu .sep-haut {
    margin-top: 50px;
}

.partenaireContenu .sep-haut:first-child {
    margin-top: 0;
}

.partenaireContenu .sep-bas {
    margin-bottom: 50px;
}

.logoPartenaire {
    margin: 20px;
    width: 250px;
}

.produitImg {
    width: 100%;
}

.produitImg-cover {
    height: 390px;
    object-fit: cover;
    margin-bottom: 40px;
}

.produitImg-galerie {
    margin-top: 20px;
}

/* Références */
.ref {
    width: 600px;
    height: 339px;
    margin: 30px 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.ref p {
    position: absolute;
    margin-top: 340px;
}

.ref span {
    color: var(--orange);
}

.manutan-ref      { background-image: url('../img/manutan-siege.jpg'); }
.club-med-ref     { background-image: url('../img/club-med-ref.jpeg'); background-size: contain; }
.gl-ref           { background-image: url('../img/glHome.jpg'); background-size: contain; }
.cite-ref         { background-image: url('../img/citeHome.jpg'); background-size: contain; }
.oxy-ref          { background-image: url('../img/oxyHome2.jpg'); background-size: contain; }
.mutualite-ref    { background-image: url('../img/maison_de_la_mutualite_c-2.jpg'); }
.hotelSalomon-ref { background-image: url('../img/hotelSalomon.jpg'); }
.matmut-ref       { background-image: url('../img/matmut.jpg'); }

.club-med-ref,
.gl-ref,
.cite-ref,
.oxy-ref {
    background-position: 0 0;
}

/* ---------- Footer ---------- */

footer {
    background: var(--beige);
    width: 100%;
    height: 106px;
    position: relative;
}

.wrap-footer {
    max-width: 1100px;
    margin: 0 auto;
}

.mentions {
    width: 500px;
    position: absolute;
    margin-top: 20px;
    margin-left: 20px;
    font-size: 16px;
    font-weight: 400;
}

.mentions img {
    height: auto;
}

.mentions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mentions ul li {
    display: inline-block;
}

.mentions ul li a {
    color: var(--gris-texte);
    transition: color 0.2s;
}

.mentions ul li a:hover {
    color: var(--orange);
}

.coordonnees {
    position: absolute;
    width: 500px;
    height: 105px;
    color: var(--gris-texte);
    right: 120px;
}

.adresse {
    float: right;
}

.adresse p {
    margin: 20px 20px 0 0;
    padding: 5px;
    text-align: right;
    font-size: 16px;
    font-weight: 400;
}

/* =====================================================================
   Tablette
   ===================================================================== */

@media screen and (min-width: 780px) and (max-width: 1418px) {
    .col-1-2-40 {
        width: 80%;
    }

    .partenaires img {
        width: 60%;
    }

    .retourForce {
        display: block;
    }
}

/* =====================================================================
   Mobile
   ===================================================================== */

@media screen and (max-width: 779px) {
    h1,
    .h-section {
        margin: 50px 0;
        max-width: 100%;
    }

    h3 {
        font-size: 22px;
        margin: 13px 15px;
    }

    h4 {
        font-size: 15px;
        margin: -10px 0 0 19px;
    }

    section {
        width: auto;
        padding: 30px 0;
    }

    /* Header */
    .header,
    .page-accueil .header {
        background-color: transparent;
    }

    .logoHeader {
        width: 120px;
    }

    #mainMenu {
        display: none;
    }

    #mobileMenu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 70px;
        padding: 20px 15px 0;
        box-sizing: border-box;
    }

    #mobileMenu .menuList {
        display: none;
        flex-basis: 100%;
        margin-top: 20px;
        padding: 21px 20px 20px;
        background: rgba(0, 0, 0, 0.7);
        box-sizing: border-box;
    }

    #mobileMenu .menuList > li {
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.4px;
        color: #fff;
    }

    #mobileMenu .menuList > li > a,
    #mobileMenu .menuList > li > span {
        display: block;
        padding: 25px 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s;
    }

    #mobileMenu .menuList > li:hover > a,
    #mobileMenu .menuList > li:hover > span {
        color: var(--orange);
    }

    #mobileMenu .sousMenu {
        position: relative;
    }

    #mobileMenu .uberMenu:hover .sousMenu {
        background-color: rgba(255, 255, 255, 0.9);
    }

    #burgerMenu {
        height: 30px;
        width: 40px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    #burgerMenu img {
        width: 30px;
    }

    /* Slider */
    .effetAmbiance {
        display: none;
    }

    h4 span {
        display: none;
    }

    .accroche {
        text-align: left !important;
        width: 360px !important;
        bottom: -50px !important;
        margin-left: 19px !important;
    }

    .oxy {
        background-position: -550px;
    }

    .slider-dots {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    .logo-carousel-track img {
        height: 40px;
    }

    /* Contenu */
    .blocActivite-container {
        width: 100%;
    }

    .blocActivite {
        width: 90%;
        margin: 0 5%;
    }

    .blocActivite img {
        height: 250px;
    }

    .blocActivite h2 {
        font-size: 28px;
        font-weight: 300;
    }

    .contact-btn span {
        font-weight: 300;
    }

    .activiteAmbiance {
        height: 250px;
    }

    .activiteTitre {
        padding-left: 0;
        text-align: center;
    }

    .col-1-3 {
        width: 80%;
        margin: auto;
    }

    .col-1-2-40 {
        width: 90%;
        padding: 0 5%;
        margin: 0;
    }

    .col-1-2-40 img {
        width: 100%;
    }

    .col-1-2 {
        width: 90%;
        padding: 0 5%;
    }

    .col-1-2 img {
        width: 60%;
    }

    .partenaires img {
        margin: 20px 0;
        width: 50%;
    }

    .carte-wrap {
        background-size: cover;
    }

    .ref {
        width: 90%;
        height: 204px;
    }

    .ref p {
        margin-top: 208px;
        font-size: 18px;
    }

    /* Formulaire */
    .form {
        width: 100%;
    }

    .form input,
    .form textarea {
        width: 93%;
        max-width: none;
        margin: 5px 2%;
    }

    .form button {
        margin: 0 2%;
    }

    .section-contact p {
        display: none;
    }

    .page-contact .section-contact h4 {
        font-size: 30px;
    }

    /* Footer */
    footer {
        height: 225px;
    }

    .mentions {
        width: 100%;
        text-align: center;
        margin-top: 102px;
        padding-bottom: 50px;
        margin-left: 0;
    }

    .coordonnees {
        position: static;
        width: 100%;
        height: auto;
    }

    .adresse {
        float: none;
    }

    .adresse p {
        margin: 0 auto;
        padding-top: 20px;
        text-align: center;
    }
}

/* ---------- Bandeau cookies ---------- */

.bandeau-cookies {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #2f2f2f;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.bandeau-cookies[hidden] {
    display: none;
}

.bandeau-cookies p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.bandeau-cookies a {
    text-decoration: underline;
}

.bandeau-cookies-boutons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.bandeau-cookies button {
    min-width: 110px;
    height: 40px;
    border: 1px solid var(--orange);
    border-radius: 5px;
    background: var(--orange);
    color: #fff;
    font-family: var(--police);
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.bandeau-cookies button:hover {
    background: var(--gris-fonce);
    border-color: var(--gris-fonce);
}

@media screen and (max-width: 779px) {
    .bandeau-cookies {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .bandeau-cookies-boutons button {
        flex: 1;
    }
}
