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

body {
    font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    /* font-size: 16px; */
    font-weight: 400;
    font-style: normal;
    background: #fcfcfc;
    color: #333;
}


/*
################################################# REFERENCE #################################################

COLORS:
    Bleu ELF: 005675
    Vert clair : 97bf0d 


GOOGLE FONTS:
-> discrete styles for google fonts -- for ref only, i don't use them this way 

.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.roboto-condensed-<uniquifier> {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
*/



/* default Hx */
h1, 
h2,
h3,
h4 {
    font-family: "Lato", sans-serif;
}

h1 {
    /* lato black */
    font-weight: 900;
    font-style: normal;
    font-size: 36px;
    color: #777;
    margin-top: 10px;
    margin-bottom: 10px;
}
h2 {
    /* lato black */
    font-weight: 900;
    font-style: normal;
    font-size: 30px;
    color: #777;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.3;
}
h3 {
    /* lato black */
    font-weight: 900;
    font-style: normal;
    font-size: 24px;
    color: #005675;     
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.3;
}
h4 {
    /* lato black */
    font-weight: 900;
    font-style: normal;
    font-size: 20px;
    color: #005675;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* section1 is default section style */ 
.section1 {
    /* margin: 0 100px 0 100px; */
    margin: 40px 0 0 0;
    /* padding: 0px 100px 0 100px; */
    padding: 40px 10% 40px 10%;
    /* border: 2px solid red; */
}

.section1 h2 {
    color: #005675;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
}

/* same-width cards, in 2, 3, 4 columns */
.section-grid2 {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* padding: 0 50px; */
}
.section-grid3 {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* padding: 0 50px; */
}
.section-grid4 {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    /* padding: 0 50px; */
}


/* FIXED SECTION ITEM STYLES */
.section-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height columns */
    width: 100%;
    /* border: 1px solid blue; */
}

/* FIXED IMAGE STYLES - Responsive and contained */
/*    
    width: 100%;  Fill the column width 
    height: auto;  Maintain aspect ratio 
    max-width: 100%;  Don't exceed column width 
    object-fit: cover;  Maintain aspect ratio while filling space 
    border-radius: 8px;  Optional: rounded corners 
*/
/* .section-item img {
    width: 100%;
    height: auto;
    max-width: 100%; 
    object-fit: cover; 
    border-radius: 8px; 
} */







/* green section separation line */
div.section-line {
    height: 4px;
    width: 96px;
    background-color: #97bf0d;
    margin: 24px auto 24px auto;
}


/* a bit space for UL/OL lists below */
div.list-container {
    margin-top: 16px;
    margin-left: 16px;
}

/* custom list with checkmarks, preserve indentation on wrap */
ul.check1 {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-bottom: 20px;
}
ul.check1 li {
    position: relative;
    padding-left: 1.5em;    /* wrap indent */
    margin-bottom: 8px;
}
ul.check1 li:before {
  content: '';  /* placeholder for the SVG below */
  position: absolute;
  left: 0;  /* place the SVG at the start of the padding */
  top: 3px;
  width: 1em;
  height: 1em;
  background: url("data:image/svg+xml;utf8,<?xml version='1.0' encoding='utf-8'?><svg width='18' height='18' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'><path d='M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z'/></svg>") no-repeat;
}



/* buttons container for spacing alignment etc */
.btn-container {
    display: flex; 
    gap: 20px;
    margin-top: 32px;
    justify-content: center;
}
.btn-container-left {
    display: flex; 
    gap: 20px;
    margin-top: 32px;
    justify-content: left;
}

/* buttons common props */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block; /* or inline-flex */
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}
/* buttons variants*/
.btn-primary {
    background: #97bf0d;
    color: white;
}
.btn-primary:hover {
    background: #bfe594;
    color: green;
    transform: scale(1.1); /* Grow text by 10% */
    transform-origin: center; /* Scale from the center */
}
.btn-secondary {
    background: rgb(36, 145, 218);
    color: white;
} 
.btn-secondary:hover {
    background: rgb(104, 156, 190);
    transform: scale(1.1); /* Grow text by 10% */
    transform-origin: center; /* Scale from the center */
}
.btn-outline {
    background: white;
    color: #0084c7;
    border: 2px solid #0084c7;
} 
.btn-outline:hover {
    background: #0084c7;
    color: white;
}



/*  #################### CARDS  */

.my-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    text-align: center;
    background-color: white;
}

/* center column above the others */
/* bigger in X direction */
.card-wider {
    margin-left: -30px; /* Overlap 30px on left column */
    margin-right: -30px; /* Overlap 30px on right column */
    position: relative;
    z-index: 2; /* above others */
    width: calc(100% + 60px); /* compensate negative margins */
}
/* taller : bigger in Y direction: top--, height++ */
.card-taller {
    position: relative;
    z-index: 2; /* Ensures it appears above the others */
    margin-top: -30px; /* Shift up by 32px */
    height: calc(100% + 60px); /* Compensate for the negative margins */
}
/* up: not bigger, only top-- */
.card-up {
    position: relative;
    z-index: 2; /* Ensures it appears above the others */
    margin-top: -30px; /* Shift up by 32px */
    margin-bottom: 30px; /* Shift up by 32px */
}



/* Header */
.header {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 16px;

    background: white;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* top menu(s) and footer LINK items mouse hover */
.header a:hover,
.nav-menu a:hover,
.footer-column a:hover {
    color: #97bf0d;
    display: inline-block; /*  for transform to work */    
    /* transform: scale(1.2); */
    transform-origin: center;
}
.footer-column a:hover {
   transform: scale(1.1);       
   transform-origin: left;
 }




/* Top Right Blue Menu */
.top-menu {
    position: absolute;
    top: 0;
    right: 0;
    background: #005675;
    padding: 10px 30px 10px 40px;
    border-bottom-left-radius: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.top-menu-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.top-menu-links a {
    color: white;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-menu-links .separator {
    color: white;
}


/* header social/email/phone icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
    color: white;
}
.social-icons a, 
.social-icons a:visited
{
    text-decoration: none;
    color: white;
}


/* main navigation */
.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 10px;
}

.logo-container {
    padding: 10px 10%;
}
.logo {
    color: #005675;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: -1px;
}




/* POPUP-like promo bubble (Prenez les devants...) -------------------- */
.promo-left {
    font-weight: 700;
    position: absolute;
    top: 80px;
    left: 20px;
    background: white;
    /* right: 20px; */
    /*
     background: #ff5722; 
     color: white; 
     */
    color: #97bf0d; 
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 16px rgba(0,0,0,0.25);
}

/* line 1 of promo bubble */ 
.promo1 {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

/* line 2 of promo bubble */ 
.promo2 {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* line 3 of promo bubble */ 
.promo3 {
    display: block;
    font-size: 14px;
}
.promo5 {
    /* +25 ans */
    display: block;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0;
}


.promo-content {
    position: relative;
}
.promo-content img {
    border-radius: 10px;
    margin-left: 50px;
    color: #999;
}


/* NAV MENU 2 -------------------- */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;  /* between items*/
    align-items: center;
    justify-content: center;
    /* z-index: 1000; */
}

.nav-menu a {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.9px;

    color: #005675;
    text-decoration: none;
  
    transition: color 0.3s;

    display: block;
    padding: 10px 15px;
    background: white;

}


/* ------------------------------------------------------------- sub menus START */

.nav-menu > li {
    position: relative;
}
.nav-menu > li > a:hover {
    color: #97bf0d; /* light green */
}

/* Submenu styles */
.submenu {
    visibility: hidden;     /* show on mouse hover */
    position: absolute;
    top: 100%;
    left: 16px;     /* aligned with top menu caption */
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-10px);  
    transition: all 0.3s ease;
    z-index: 1100;
}


.submenu li {
    list-style: none;
}

.submenu a {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: normal;
    font-size: 14px;
    /* letter-spacing: 0.5px; */
    color: #777;

    padding: 4px 20px;
    display: block; /* for width 100% below */
    width: 100%;
    /* border-bottom: 1px solid #f0f0f0; */
}
.submenu li:last-child a {
    border-bottom: none;
}

/* selected submenu */
.submenu a:hover {
    /* color: #97bf0d;
    background: #f0f0f0; */
    color: #005675;
    font-weight: 500;
}

/* Show submenu on hover or when active */
.nav-menu > li:hover .submenu,
.nav-menu > li.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ------------------------------------------------------------- sub menus END */


/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}



/* ############################# SECTIONS  ###############################*/


/* Hero Section -- AGOM l'hebergement professionnel pour des professionnels */
.hero {
    /* background: #f8fbfd; */
    /* padding: 20px 100px 40px 100px; */
    margin-top: 0;
    background-image: url('img/trame2.png');
    /* background-size: cover; */
    /* background-position: top; */
    background-repeat: repeat;

}
.hero h1 {
    /* lato black */
    font-weight: 900;
    font-style: normal;
    font-size: 36px;
    color: #777;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
}
.hero h2 {
    /* lato black */
    font-weight: 900;
    font-style: normal;
    font-size: 30px;
    color: #777;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: left;
}


/* Hero Image */
.hero-image {
    display: flex;
    justify-content: right; 
}
.image-servers {
    width: 100%;
    max-width: 450px;
    height: 350px;
    display: flex;
    align-items: center;
}
.image-servers img {
    max-width: 100%;
    height: auto;
    transform: scale(1.25);
}



/* #################################### white on blue rounded centered BAR */
.blue-bar {
    text-align: center;
    margin-bottom: 50px;
}
.blue-bar p {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 16px;

    background: #005675;
    color: white;
    display: inline-block;
    padding: 10px 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
}



/* #################################### PC Soft Section */
.pcsoft-section {
    /* light blue background */
    background: #ecf1f4;
}



/* ##################################  features */
/* middle column overlap, a bit wider, and up */
.features-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    padding: 0 50px;
    grid-template-columns: 1.05fr 1fr 1.05fr;   

}


/* ########################################## Backup */
 /* middle card is a bit narrower, because above the others -- see card-above/card-upper */
.backup-content {
    max-width: 1600px;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.15fr;   
    gap: 30px;
    padding: 0 32px;
    margin: 0 auto;
}

.backup-content h2 {
    text-align: center;
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
}



/* ####################################### your need / our solution */

.need-solution-section {
    background: #b6dae0;
    padding: 40px 32px;
}
.need-solution-section h2 {
    color: white;
}

.need-solution-content {
    max-width: 1600px;
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    margin: 80px;
}
.need-solution-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Optional: Limits the width of each column    */
}
.need-bar {
    /* common button-like for need / solution */
    /* align-items: center; */
    display: block;
    padding: 8px 30px;
    border-radius: 8px;
    width: 400px;
    font-weight: 500;
    margin-bottom: 16px;
}
.need-title, 
.solution-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 16px;
}
.need-title {
    background: #005675;
    color: white;
}
.solution-title {
    background: #8bc34a;
    color: white;
}
.need-item,
.solution-item {
    background: white;
    color: #333;
}



/* ############################################################## FOOTER */

footer {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    background-color: #1e5c75;
    color: white;
}
.footer-container {
    max-width: 1600px;
    display: flex;
    padding: 40px 0;
    margin: 0 50px;
    justify-content: space-around;
    align-items: top;
    gap: 10px;
}
.footer-column h3 {
    font-size: 14px;
    letter-spacing: 0.07rem;
    /* font-weight: 700; */
    text-transform: uppercase;
    /* letter-spacing: 0.5px; */
    margin-bottom: 20px;
    color: white;
}
.footer-column li {
    list-style-type: none;
    margin-left: 0; 
    padding-left: 0;
    margin-bottom: 6px;
    
}
.footer-column a {
    color: white;
    text-decoration: none;
}


/*
###################################################################################
###################################################################################
###################################################################################
*/

/*#####################################################  Responsive stuff -- 1024 */


/* SVGA screensize -- normaly no mobile yet : keep normal menu, just narrower */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .section-grid2,
    .section-grid3,
    .section-grid4,
    .features-content,
    .services-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* cancel remove fancy card positions */
    .card-wider,
    .card-taller,
    .card-up {
        position: auto;
        z-index: auto;
        margin: auto; 
        width: calc(100%);
        height: calc(100%);
    }

    .need-solution-content {
        gap: 8px;
    }

    .btn-primary, .btn-secondary, .btn-outline {
        font-weight: inherit;
        padding: 12px 8px;
    }
}



/* ##################################################  Responsive stuff -- 768 / MOBILE */

@media (max-width: 768px) {
    /* Hide top menu on mobile */
    .top-menu {
        display: none;
    }

    /* Mobile navigation */
    .header-content {
        padding-top: 20px;
    }

    .nav-menu {
        display: none;      /* hidden until user clicks on hamburger button */
        position: absolute;
        top: 100%;
        left: 0;    /* full width menu */
        right: 0;
        padding: 20px;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.25);
        margin-right: 0;
        z-index: 1000;
    }

    .submenu {
        margin-left: 100px;
        top: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 22px;
    }


    .power-infra-content {
        flex-direction: column;
        text-align: center;
    }

    /* .power-infra-item {
        flex-direction: column;
    } */

    .section-grid2,
    .section-grid3,
    .section-grid4,
    .services-content,
    .pcsoft-content,
    .cyber-content,
    .features-content,
    .backup-content {
        grid-template-columns: 1fr;
    }

    .need-solution-content {
        display: block;
    }
    .need-solution-item {
        margin-top: 40px;
    }


    .buttons-group {
        flex-direction: column;
        align-items: center;
    }

    .service-btn {
        width: 100%;
        max-width: 400px;
    }

    .my-buttons {
        flex-direction: column;
    }

    .promo {
        position: static;
        margin-top: 20px;
    }
}



/* #############################################################  Responsive stuff -- 480 */



@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-text p {
        font-size: 14px;
    }

}
