html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden;*/
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.navbar_element {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.navbar-logo {
    max-height: 70px;
    margin-right: 20px;
}

.menu-links {
    display: flex;
    gap: 20px;
    /* center the menu horizontally within the navbar */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
}

/* New nav-item dropdown styles */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-label {
    background: none;
    border: none;
    font-size: 18px;
    color: #0C3764;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.nav-label .nav-arrow {
    font-size: 24px;
    color: #0C3764;
    transition: transform 0.2s ease;
}

.nav-dropdown {
    position: fixed;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 18px;
    display: none;
    z-index: 2000;
}

/* Mega menu specific styles */
.nav-dropdown.mega {
    left: 50%;
    transform: translateX(-50%);
    /* make the panel exactly 50px smaller than the viewport width so it doesn't go out of edges */
    width: calc(100vw - 50px);
    max-width: 1200px;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 22px;
}

/* Safety clamp: ensure mega panel never overflows horizontally */
.nav-dropdown.mega { max-width: calc(100vw - 40px); }
.nav-dropdown.mega { left: 50%; right: 50%; }

.mega-inner {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap; /* allow columns to wrap to avoid forcing overflow */
}

.mega-left {
    flex: 0 0 220px;
    width: 220px;
    background: #f1fbff;
    padding: 18px;
    border-radius: 8px;
}

.mega-left ul { list-style:none; padding:0; margin:0; }
.mega-left .left-item { font-weight:700; color:#0C3764; padding-bottom:8px; }
.mega-left .left-sub { padding:8px 0; }
.mega-left .left-sub a{ color:#0C8ED6; text-decoration:none; }

.left-icon-img{ width:26px; height:26px; object-fit:contain; margin-right:8px; vertical-align:middle; }
.mega-left .left-sub a{ display:flex; align-items:center; justify-content:space-between; padding:10px; color:#0C3764; text-decoration:none; border-radius:8px; }
.mega-left .left-sub a::after{ content:'→'; color:#0C8ED6; }
.mega-left .left-sub a:hover{ background:#e6f8ff; }
.mega-left .left-sub a img{ margin-right:12px; }

.mega-main { flex: 1 1 480px; min-width: 0; background: white; padding: 12px; border-radius: 8px; }
.mega-right { flex: 0 0 240px; width: 240px; background:#f7fbff; padding:12px; border-radius:8px; }

.card { background: white; padding: 10px; border-radius:8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);display: flex; flex-direction: column; gap: 16px; }
.help-box h4{ margin:0 0 8px 0; color:#0C3764; }
.help-box ul{ list-style:none; padding:0; margin:0; }
.help-box a{ color:#0C8ED6; text-decoration:none; }

/* style left active highlighted item like the screenshot */
.mega-left .left-item.active, .mega-left .left-sub a:hover { background:#0FB3FF; color:white; display:block; padding:10px; border-radius:8px; }

@media (max-width: 900px) {
    .nav-dropdown.mega { width: calc(100vw - 40px); left: 50%; transform: translateX(-50%); }
    .mega-inner { flex-direction: column; }
    .mega-left, .mega-right { width: 100%; }
}

.nav-item.open > .nav-label .nav-arrow {
    transform: rotate(180deg);
}

.nav-item.open > .nav-dropdown {
    display: block;
}

/* appearance animation */
.nav-dropdown.mega {
    opacity: 0;
    /* keep translateX centering and apply a small translateY for the hide state */
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 200ms ease, transform 200ms ease;
}
.nav-item.open > .nav-dropdown.mega {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #FE6649;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.cta-button img {
  height: 38px;
  width: 50px;
}

/* Force buttons/CTAs to keep white text even if link color is inherited */
.cta-button, .banner-cta, .button { color: #fff !important; }


.cta-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 6px;
}

.nav-dropdown.mega {
  width: calc(100vw - 40px);
  max-width: 1200px;
  left: 50%;
  transform: translateX(-50%);
  padding: 22px;
  box-sizing: border-box;
  border-radius: 10px;
  overflow-x: hidden; /* force containment */
}

.mega-inner {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

/*.mega-left {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 260px;
}
*/
.mega-left {
  flex: 0 1 220px;
  min-width: 200px;
  max-width: 260px;
  margin-left: 70px; /* ✅ pushes it away from the left edge */
}

.mega-main {
  flex: 2 1 480px;
  min-width: 300px;
}

.mega-right {
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 280px;
  margin-right: 100px; /* ✅ pushes it away from the right edge */
}

.nos-offres {
    color: #0C3764;
    font-weight: 600;
}

.seo-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-links a {
    color: #0C3764;
    text-decoration: none;
    font-size: 0.95rem;
}

.seo-links a:hover {
    color: #FE6649;
}

.menu-links a {
    color: #0C8ED6; /* sky blue for menu link text */
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.menu-links a:hover, .nav-label:hover, .nav-label:focus {
    color: #0C8ED6; /* keep sky blue on hover */
}

/* Article top banner (hero) */
.article-banner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 20px;
    background: #E9F6FF;
    padding: 40px 60px;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    margin-bottom: 30px;
}
.banner-content { max-width: 720px; }
.banner-title { font-size: 36px; margin: 0 0 18px 0; color:#0C3764; }
.banner-list { list-style: none; padding: 0; margin: 0 0 22px 0; font-size: 20px; color:#0C3764; }
.banner-list li { margin-bottom: 12px; }
.banner-cta-wrap { text-align:left; }
.banner-cta { background:#FE6649; color:white; padding:18px 36px; border-radius:24px; text-decoration:none; font-weight:700; display:inline-block; }
.banner-figure { flex: 0 0 220px; display:flex; justify-content:center; }
.banner-groundhog{ max-width:220px; height:auto; }

@media (max-width: 900px) {
    .article-banner { flex-direction: column; padding: 20px; }
    .banner-figure { order: -1; }
    .banner-title { font-size: 26px; }
    .banner-list { font-size: 16px; }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0C3764;
}

@media (max-width: 1100px) {
    .menu-links a {
        font-size: 16px;
    }
}

@media (max-width: 840px) {
    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 10px 20px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .menu-links a {
        font-size: 16px;
        padding: 10px 0;
    }

    .menu-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/*footer*/
footer {
    background-color: #0C3764;
    color: white;
    text-align: center;
    padding: 1rem;
    bottom: 0;
    margin-top: 80px;
    margin-left: -100px;
    margin-right: -100px;
    padding-right: 80px;
    padding-left: 80px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.footer-logo {
    margin-left: 100px;
    height: 30px;
    width: auto;
}

.footer-content {
    display: inline;
    flex-direction: column;
    align-items: flex-start;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FE6649;
}


.footer-content p {
    color: white;
    font-size: 0.7rem;
    line-height: 1.4;
    margin: 10px 0 0;
}

.contact{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* block 1 */
.block1 {
    align-content: center;
    background-color: #E5F2FF;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -25px;
    margin-right: -100px;
    box-sizing: border-box;
}

.groundhog{
    max-width: 350px;
    align-self: center;
}
.elementContainer{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    margin: auto;
    height: auto;
    padding: 50px;
}

.blockElement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
    background-color: white;
    border-radius: 15px;
    height: 200px;
    width: 200px;
    margin: 20px;
    padding: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blockElement:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.blockElement h4 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.blockElement p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.blockElement img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}
.link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.groundhog-mobile {
    display: none;
}

@media (max-width: 1380px) {
    .blockElement img {
        width: 100px;
        height: auto;
    }
    .elementContainer {
        grid-template-columns: repeat(2, 1fr);
    }
    .blockElement {
        height: 200px;
    }
}


@media (max-width: 540px) {
    .blockElement img {
        width:45px;
        height: auto;
        margin:0;
    }

    .blockElement {
        height: 120px;
        width: 120px;
    }
    .blockElement h4 {
        font-size: 16px;
        padding: 0;
    }
    .blockElement p {
        font-size: 12px;
    }
    .groundhog{
        width: 60vw;
        height: auto;
    }
}
/* block 2 */

.block2{
    display: flex;
    justify-content: center;
    align-content: center;
    margin-left: -75px;
    margin-right: -100px;
    min-height: 100px;
}

.block2 > div {
    flex: 1;
    max-width: 300px;
    text-align: center;
}
h3, h4, li {
    font-weight: normal;
}

.lock2-element{
    margin: 50px;
    padding: 30px;
    justify-self: center;
}


/* block 3*/

.block3{
    background-color: #E5F2FF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: -75px;
    margin-right: -100px;
    padding: 0 100px;
    box-sizing: border-box;
    text-align: center;
    padding-left: 100px;
    padding-right: 100px;
}


.block3 > div {
    width: 100%;
}


.block3 > div:nth-child(2) {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.block3 > div:nth-child(2) > div {
    flex: 1 1 300px;
    max-width: 350px;
    margin: 20px;
    padding: 20px;
    text-align: center;
}

.block3 img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.block3 h3 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.block3 p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* block 4 */

.block4{
    padding: 80px 180px 0 180px;
    margin-left: -75px;
    margin-right: -100px;
}

/* block 5 */

.block5{
    margin-left: -75px;
    margin-right: -100px;
    box-sizing: border-box;
    min-height: 100px;
    background-color: #E5F2FF;
    text-align: center;
    padding-left: 70px;
    padding-right: 100px;
}

.block5 h2 {
    padding: 50px;
}

.block5 > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.block5 h2 {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    max-width: 600px;
    margin: 0;
}


.block5 img {
    width: auto;
    max-width: 100%;
    height: auto;
    align-self: flex-end;
    max-height: 200px;
}
.talking_groundhog{
    align-self: center;
}
/* block 6 */
.block6{
    padding-left:80px;
    padding-right: 80px;
}
.dropdown-container {
    position: relative;
    margin: 20px 0;
    width: 100%;
}

.dropdown-checkbox {
    display: none;
}

.dropdown-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.dropdown-header:hover h2 {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    padding: 15px;
    line-height: 1.5;
    border-bottom: 1px solid #ddd;
}

.dropdown-checkbox:checked ~ .dropdown-header {
    border-bottom: none;
}

.dropdown-checkbox:checked ~ .dropdown-content {
    display: block;
}


.dropdown-img {
    height: 15px;
    width: auto;
    margin-left: auto;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.dropdown-checkbox:checked ~ .dropdown-header .dropdown-img {
    transform: rotate(180deg); /* Rotate when active */
}

/* body*/
body h1, body h2, body h3, h4, a, body p {
    color: #0C3764;
    font-family: 'Lato', sans-serif;
}
body {
    overflow-x: hidden;
    font-family: 'Lato', sans-serif;
    color: #0C3764;
    box-sizing: border-box;
}

.button {
    background-color: #FE6649;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: larger;
    font-weight: bolder;
    padding: 10px 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
}


a.cta-button {
  display: inline-block;      /* ensures padding & width apply correctly */
  font-size: 18px;            /* makes the text larger */
  padding: 20px 36px;         /* increases button size */
  background-color: #FE6649;  /* optional: update to your preferred color */
  color: white;               /* makes text white */
  border: none;               /* removes any default borders */
  border-radius: 8px;         /* rounded corners */
  text-align: center;         /* centers the text */
  text-decoration: none;      /* removes underline */
  font-weight: bold;          /* makes text bold */
  cursor: pointer;            /* shows pointer cursor on hover */
  transition: background-color 0.2s ease;
}

a.cta-button:hover {
  background-color: #e45338;  /* darker color on hover */
  padding: 24px 40px;
}



@media (max-width: 768px) {

    /* menu */
    .navbar{
        box-sizing: border-box;
    }
    .navbar img {
        width: 60vw;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        gap: 10px;
        padding: o;
    }


    .menu-toggle {
        display: block;
    }

    .menu-links.show {
        display: flex;
    }

   /* footer */
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-content {
        align-items: center;
    }

    /*block 2 */
    .block2 {
        flex-direction: column;
    }

    .block2 > div {
        max-width: 100%;
    }

    /*block 3 */
    .block3 > div:nth-child(2) {
        flex-direction: column;
        align-items: center;
    }

    .block3 > div:nth-child(2) > div {
        max-width: 100%;
    }
     /*block 4 */

     /*block 5 */
     .block5 > div {
        flex-direction: column;
        align-items: center;
    }
    .block5 h2{
        padding: 0;
    }

    .block5 img {
        max-height: 150px;
    }

     /*body */
    body {
        padding: 0 -40px;
    }
}

@media (max-width: 480px) {
  .blockElement{
  width: 30vw;

 }

 .block2{
    padding-left: 80px;
    padding-right: 80px;
 }
.block2-element{
    margin: 0;
    padding: 0;
    padding-left: 25px;
    padding-right: 25px;
}

 .block3 > div:nth-child(2) {
    gap: 0;
}

.block3 > div:nth-child(2) > div{
    margin: 0;
    padding: 0;
    flex: 0;
    padding-left: 25px;
    padding-right: 25px;
}

.block4{
    padding-left: 150px;
    padding-right: 150px;
}
 .elementContainer{
    padding: 0;
    gap: 0px;
 }

.block5 img {
        max-height: 120px;
    }

    .block5 p {
        font-size: 0.9rem;
    }

    .block5 h1{
        padding-left: 15px;
        padding-right: 15px;
    }
.block6{
        padding-left:0;
        padding-right: 0;
    }
.html, body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
.footer-content{
    display: flex;
    padding-left: 25px;
    padding-right: 25px;
    font-size: 9px;
}

.footer-logo{
    margin: 0;
}
.footer-link{
    flex: 1; text-align: center; text-decoration: none; color: inherit; padding: 10px;
}

.footer-content a {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
}
.contact{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.contact a{
    font-size: 9px;
}
.footer-link{
    font-size: 9px;
}
}

@media (max-width: 1100px) {
     .wrap{
        display: flex;
        flex-direction: column;
        margin-left: -73px;
    }

    .groundhog {
        display: none;
        align-items: center;
    }

    .groundhog-mobile {
        display: block;
        width: 60vw;
    }
}

#mmenu-toggle {
    display: none;
}

#mobile-menu {
    z-index: 1001;
}