/* les catégories */
:root {
    --inenel-black: rgba(0, 0, 0, 0.92);
    --inenel-blue: #0071e3;
    --inenel-dark: #0055a5;
    --inenel-gray: #f5f5f7;
    --inenel-dark-gray: #1d1d1f;
    --inenel-light-gray: rgba(255, 255, 255, 0.1);
    --inenel-border: rgba(255, 255, 255, 0.16);
    --inenel-color: #137C8B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    padding-top: 44px;
    background-color: var(--inenel-gray);
    color: #1d1d1f;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    object-fit: cover;
}
@-webkit-keyframes zoom {
    from {
      -webkit-transform: scale(1, 1);
    }
    to {
      -webkit-transform: scale(1.5, 1.5);
    }
}
  
@keyframes zoom {
    from {
        transform: scale(1, 1);
    }
    to {
        transform: scale(1.5, 1.5);
    }
}

.carousel-inner .carousel-item > img {
    -webkit-animation: zoom 20s;
    animation: zoom 20s;
}
/* End Carousel animation */

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

main {
    margin-top: 60px;
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.carousel-text .btn-primary {
    border-color: var(--inenel-color);
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.speed-menu a {
    color: #fff;
    text-decoration: none;
}

.speed-menu a {
    margin-right: 20px;
}

.bg-light-blue {
    background-color: #f4f7ff;
}

#order_type_form_addresses .form-check, #order_type_form_carriers .form-check {
    background-color: #e8f1ff;
    padding: 10px 40px;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
}

.wishlist-icon svg {
    background-color: lightgrey;
    color: black;
    padding: 9px;
    border-radius: 50%;
    height: 39px;
    width: 39px;
}

.wishlist-icon-active svg {
    background-color: #ceeddf;
    color: #0b6b3e;
}

.small-bloc {
    width: 700px;
    margin: 0 auto;
    background-color: #fafafa;
    padding: 20px;
}

.carousel-text {
    color: red;
}

/* Navbar Principale */
.navbartop {
    background-color: var(--inenel-black);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    height: auto;
    top: 0;
    z-index: 99999;
    /*border-bottom: 1px solid var(--inenel-border);*/
}
.nav-bar {
    background-color: var(--inenel-black);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: auto;
    z-index: 1000;
    border-bottom: 1px solid var(--inenel-border);
}

.nav-container-top {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    padding: 0 22px;
    position: relative;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 30px 22px;
    position: relative;
}

/* Logo inenel */
.logo {
    color: white;
    font-size: 21px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.logo-width {
    width: 35px;
    height: 35px;
    object-fit: cover;
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation Principale */
.nav-items {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0%; /*Pour qu'il se joue sur toute la largeur*/
    transform: translateX(0%);
}

.nav-items-footer {
    display: flex;
}

.nav-item-footer {
    height: 100%;
    margin: 0 auto;
}

.nav-items-top {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-items .nav-item {
    position: static; /* Changement clé pour le dropdown full-width */
    height: 100%;
    margin: 0 auto;
}
.nav-item-top {
    position: relative;  /*Changement clé pour le dropdown full-width */
    display: flex;
    right: 0;
    height: 100%;
    align-items: center;
}

.navlink {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding: 0 17px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.navlink:hover {
    opacity: 0.7;
}

/* Mega Menu Full-Width - Modifié */
.megamenu {
    position: fixed;
    left: 0;
    right: 0;
    top: 61px;
    background-color: var(--inenel-black);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 30px 0;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.32, 0.08, 0.24, 1);
    overflow: hidden;
    max-height: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--inenel-border);
    width: 100vw; /* Prend toute la largeur de la vue */
    margin-left: calc(-50vw + 50%); /* Centre le menu */
}

.megamenu-footer {
    display: block;
}

.megamenu-top {
    position: fixed;
    top: 44px;
    background-color: var(--inenel-black);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 30px 0;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.32, 0.08, 0.24, 1);
    overflow: hidden;
    max-height: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--inenel-border);
    width: 100%; /* Prend toute la largeur de la vue */
    margin-left: auto; /* Centre le menu */
    border-radius: 5px;
}

.nav-items .nav-item:hover .megamenu {
    display: block;
    opacity: 1;
    max-height: 700px;
}

.nav-item:hover .megamenu-top {
    display: block;
    opacity: 1;
    max-height: 700px;
}

.nav-item-top:hover .megamenu {
    display: block;
    opacity: 1;
    max-height: 700px;
}

.nav-item-top:hover .megamenu-top {
    display: block;
    opacity: 1;
    max-height: 700px;
}

.megamenu-container, .megamenu-container-footer {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 0 22px;
}

.container-footer {
    background-color: var(--inenel-black);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: auto;
    padding-top: 30px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.megamenu-container-top {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 0 22px;
}

.megamenu-column {
    display: flex;
    flex-direction: column;
}

.megamenu-column-top {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.megamenu-title {
    display: block;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #e8f4f5;
    color: #28527a;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.megamenu-title:hover {
    color: #32a0a8;
    border-bottom-color: #32a0a8;
    padding-left: 5px;
}

.megamenu-title i {
    color: #32a0a8;
    margin-right: 8px;
    transition: transform 0.2s;
}

.megamenu-title:hover i {
    transform: scale(1.2);
}

.megamenu-item {
    padding: 9px 0;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.mobile-megamenu-item {
    font-size: 16px; 
    padding: 12px 0;
}

.megamenu-item:hover {
    color: var(--inenel-blue);
    transform: translateX(3px);
}
.footer-item:hover {
    text-decoration: underline;
}

.megamenu-item i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #86868b;
    transition: color 0.2s;
}

.megamenu-item:hover i {
    color: var(--inenel-blue);
}

.megamenu-item.new::after {
    content: "Nouveau";
    font-size: 10px;
    color: #ff9f0a;
    margin-left: 10px;
    font-weight: 500;
}

.megamenu-item.hot::after {
    content: "Promo";
    font-size: 10px;
    color: #ff453a;
    margin-left: 10px;
    font-weight: 500;
}

/* Sous-menu avec images */
.submenu-with-image {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.submenu-image {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5px;
}

/* Barre de Recherche Pro */
.search-container {
    position: relative;
    width: 40vw;
    /*width: 100%;
    max-width: 500px;*/
    z-index: 10000;
    transition: all 0.3s ease;
}

.search-input {
    /*width: 40vw;*/
    width: 100%;
    display: block;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 6px 15px 6px 35px;
    color: white;
    font-size: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-color: #32a0a8;
    box-shadow: 0 0 0 3px rgba(50, 160, 168, 0.2);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input:focus + .search-icon {
    color: var(--inenel-blue);
}

/* Panier avec animation */
.cart-icon {
    color: white;
    font-size: 16px;
    position: relative;
    margin-left: 25px;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff2d55;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-icon:hover .cart-count {
    transform: scale(1.2);
}

/* Version Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

.mobile-menu-btn:hover {
    opacity: 0.7;
}

.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 15px;
    transition: opacity 0.3s;
}

.mobile-search-btn:hover {
    opacity: 0.7;
}

/* Overlay Mobile */
.mobile-overlay {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--inenel-dark-gray);
    z-index: 999;
    overflow-y: auto;
    display: none;
    padding: 20px;
    margin-top: 20px;
}

.mobile-overlay.active {
    display: block;
}

.mobile-search-container {
    display: none;
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    background: var(--inenel-dark-gray);
    padding: 15px;
    z-index: 1000;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    outline: none;
}

.toggle-icon {
    display: none;
}


@media (max-width: 1105px) {
    .nav-container {
        padding: 40px 22px;
    }
    .megamenu {
        top: 80px;
    }
}

@media (max-width: 970px) {

    main {
        margin-top: 30px;
    }
    .nav-container {
        padding: 0 22px;
    }
    .nav-items {
        display: none;
    }

    /*.nav-items-top {
        display: none;
    }*/

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

    .search-container {
        display: none;
    }

    .nav-container-top {
        justify-content: space-between;
    }

    .nav-container {
        justify-content: space-between;
    }

    .megamenu-title.show {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid gray;
        cursor: pointer;
        padding: 10px 5px;
    }

    .megamenu-title.show:hover {
        background-color: #d3e5dd;
        transition: cubic-bezier(0.19, 1, 0.22, 1);
    }

    .megamenu-container-footer {
        display: block;
        width: 100vw;
    }

    .nav-item-footer {
        margin: 0;
    }

    .megamenu-item-footer {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .megamenu-item-footer.active {
        display: block;
        max-height: 970px; /* Ajustez selon votre contenu */
        transition: max-height 0.5s ease-in;
    }

    .toggle-icon {
        margin-left: 5px;
        font-weight: bold;
        display: inline-block;
        width: 15px;
        text-align: center;
        font-size: 20px;
    }

    .megamenu-item-footer.social-networks {
        display: flex;
    }
}

/* Contenu de la page */
.content {
    padding: 40px 20px;
    text-align: center;
    min-height: 200vh;
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.megamenu-column {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.megamenu-column:nth-child(1) { animation-delay: 0.1s; }
.megamenu-column:nth-child(2) { animation-delay: 0.15s; }
.megamenu-column:nth-child(3) { animation-delay: 0.2s; }
.megamenu-column:nth-child(4) { animation-delay: 0.25s; }
.megamenu-column:nth-child(5) { animation-delay: 0.3s; }

.copyright-footer {
    display: flex;
    justify-content: space-between;
    justify-items: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid gray;
}
.footer-inenel {
    color: #137C8B;
    width: 20%;
}

.copyright-cg {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

@media (max-width: 800px) {
    .copyright-footer {
        display: block;
    }
}

@media (max-width: 678px) {
    .copyright-footer {
        width: 100%;
    }
    .footer-inenel {
        color: #137C8B;
        width: 100%;
    }

    .copyright-cg {
        display: block;
        width: 100%;
    }
}
/* End nabar */

.our-activities {
    justify-content: space-evenly;
}

.our-activities a {
    text-decoration: none;
}

.activity {
    display: block;
    width: 150px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 30px;
    justify-items: center;
    margin-bottom: 60px;
    background-color: var(--inenel-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity:hover {
    transform: scale(1.1);
}

.our-activities h1 {
    text-align: center;
    color: var(--inenel-color);
    margin-bottom: 30px;
}

.activity h2 {
    font-size: 15px;
    margin-bottom: 100px;
    color: var(--inenel-color);
    text-align: center;
}

.img-activity {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 30px;
}

/* Categories card */
.categories-section {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--inenel-color);/*#333;*/
    font-size: 28px;
    font-weight: 600;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-card {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.category-card {
    min-width: calc(20% - 16px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.icon {
    margin-bottom: 15px;
}

.category-card h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.carousel-btn i {
    font-size: 20px;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 1200px) {
    .category-card {
        min-width: calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .category-card {
        min-width: calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .category-card {
        min-width: calc(50% - 10px);
        padding: 25px 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn.prev {
        left: -15px;
    }

    .carousel-btn.next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .category-card {
        min-width: calc(100% - 10px);
    }

    h2 {
        font-size: 24px;
    }
}
/* End category cards */

.activity h2 {
    margin-bottom: 50px;
}

/**
* Cartes des partenaires
*/
.container-brands {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.container-brands a {
    text-decoration: none;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 30px;
    color: var(--inenel-color);/*#2c3e50;*/
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.carousel-container-brands {
    position: relative;
    padding: 0 50px;
}

.carousel-brands {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 15px 10px;
    scrollbar-width: none;
}

.carousel-brands::-webkit-scrollbar {
    display: none;
}

.brand-card {
    flex: 0 0 calc(20% - 20px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    min-height: 100px;
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-content {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--inenel-color);/*#3498db;*/
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 1;
}

.nav-btn:hover {
    background: var(--inenel-color);/*#3498db;*/
    color: white;
}

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dfe6e9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--inenel-color);/*#3498db;*/
    transform: scale(1.3);
}

.brand-counter {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .brand-card {
        flex: 0 0 calc(25% - 20px);
    }
}

@media (max-width: 768px) {
    .brand-card {
        flex: 0 0 calc(33.333% - 20px);
    }

    .header h1 {
        font-size: 16px;
    }

    h2 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .brand-card {
        flex: 0 0 calc(50% - 15px);
    }

    .carousel-container-brands {
        padding: 0 40px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }
}
/* End parteners cards */

/**
* Cards for news
*/
.inenel-news {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--inenel-color);/*#0055a5;*/
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ff9900;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: var(--inenel-color);/*#0055a5;*/
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.promo-list {
    list-style-type: none;
}

.promo-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.promo-list li:last-child {
    border-bottom: none;
}

.promo-list i {
    color: #ff9900;
    margin-right: 12px;
    font-size: 18px;
}

.card-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-block;
    background: var(--inenel-color);/*#0055a5;*/
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--inenel-color);/*#003d7a;*/
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 40px;
    color: var(--inenel-color);/*#0055a5;*/
    margin-bottom: 15px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--inenel-color);/*#0055a5;*/
}

.loyalty-program {
    background: linear-gradient(135deg, /*#0055a5*/var(--inenel-color) 0%, #1996a9 /*#003d7a*/ 100%);
    border-radius: 15px;
    padding: 40px;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.loyalty-content {
    flex: 1;
    min-width: 300px;
}

.loyalty-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.loyalty-image img {
    max-width: 100%;
    border-radius: 10px;
}

.loyalty-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.loyalty-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ff9900;
}

.loyalty-text {
    margin-bottom: 25px;
    font-size: 16px;
}

.loyalty-btn {
    background: #ff9900;
    color: var(--inenel-color);/*#003d7a;*/
}

.loyalty-btn:hover {
    background: #e68a00;
}

.website-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
    color: var(--inenel-color);/*#0055a5;*/
    font-weight: 600;
    text-decoration: none;
}

.website-link:hover {
    text-decoration: underline;
}

/* Styles pour les cartes cliquables (taille réduite) */
.clickable-cards-section {
    margin: 20px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.clickable-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.clickable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, /*#0055a5*/var(--inenel-color), #32bcd2/*#00a0e3*/);
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, /*#0055a5*/var(--inenel-color) 0%, #1996a9/*#00a0e3*/ 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--inenel-color);/*#0055a5;*/
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9900;
    color: white;
    font-weight: bold;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-program {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 24px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .clickable-card {
        min-height: 160px;
        padding: 15px 12px;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding: 0px 15px;
    }

    .clickable-card {
        min-height: 150px;
    }
}
/* Fin de la section actualités et détail de services */

/*
 * Animation de défilement avec apparition latérale
 */

/* Animations pour le défilement */
.our-activities,
.categories-section,
.container-brands,
.inenel-news,
.clickable-cards-section,
.featurette {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation pour les activités */
.activity,
.news-grid,
.news-card,
.cards-grid {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animation pour les cartes de catégories */
.category-card,
.brand-card,
.loyalty-program {
    opacity: 0;
    transform: translateY(20px) rotate(-2deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Quand les éléments sont visibles */
.our-activities.visible,
.categories-section.visible,
.container-brands.visible,
.inenel-news.visible,
.clickable-cards-section.visible,
.featurette.visible {
    opacity: 1;
    transform: translateX(0);
}

.activity.visible,
.news-grid.visible,
.news-card.visible,
.cards-grid.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.category-card.visible,
.brand-card.visible,
.loyalty-program.visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
}
/* ============================================
   CORRECTIONS HEADER/FOOTER POUR MOBILE
   ============================================ */

/* Empêcher tout débordement horizontal */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
}

/* Conteneurs principaux - pleine largeur */
header, footer, .navbartop, .nav-bar, .container-footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    left: 0 !important;
    right: 0 !important;
}

/* Container interne avec padding au lieu de margin */
.nav-container-top, .nav-container, .megamenu-container,
.megamenu-container-footer, .container, .copyright-footer {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Version desktop - conteneur centré avec max-width */
@media (min-width: 971px) {
    .nav-container-top, .nav-container,
    .megamenu-container, .megamenu-container-footer {
        max-width: 1440px !important;
        margin: 0 auto !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

/* ============================================
   CORRECTIONS POUR MOBILE (max-width: 970px)
   ============================================ */
@media (max-width: 970px) {
    /* Header pleine largeur */
    header, .navbartop, .nav-bar {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Footer pleine largeur */
    footer, .container-footer {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px 0 !important;
    }

    /* Conteneurs internes */
    .nav-container-top, .nav-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
    }

    /* Footer - version mobile */
    .megamenu-container-footer {
        display: block !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .copyright-footer {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
        margin: 0 !important;
    }

    .footer-inenel {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .copyright-cg {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .copyright-cg a {
        display: inline-block !important;
        padding: 5px 0 !important;
    }
}

/* ============================================
   BARRE DE RECHERCHE - VERSION DESKTOP
   ============================================ */

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    pointer-events: none;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    width: 100%;
    min-width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);

    max-height: 500px;
    overflow-y: auto;

    z-index: 99999;

    display: none;
}

/* Version mobile du dropdown */
@media (max-width: 970px) {
    .search-results-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;

        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Styles du dropdown */
.search-results-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fc;
    color: #32a0a8;
}

.search-result-icon {
    width: 48px;
    height: 48px;
    background: #f0f4f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-icon i {
    font-size: 1.3rem;
    color: #32a0a8;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a202c;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.7rem;
    color: #718096;
}

.search-result-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
}

.search-result-badge.product {
    background: #dbeafe;
    color: #1e40af;
}

.search-result-badge.cable {
    background: #d1fae5;
    color: #065f46;
}

.search-result-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
}

.search-result-stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.search-result-stock.low-stock {
    background: #fff3cd;
    color: #856404;
}

.search-result-stock.out-stock {
    background: #f8d7da;
    color: #721c24;
}

.search-result-price {
    font-weight: 700;
    color: #32a0a8;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.search-view-all {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
}

.search-view-all a {
    color: #32a0a8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #718096;
}

.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #718096;
}

.search-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #32a0a8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE POUR PETITS ÉCRANS
   ============================================ */
@media (max-width: 576px) {
    .search-result-item {
        padding: 8px 12px;
    }

    .search-result-icon {
        width: 36px;
        height: 36px;
    }

    .search-result-icon i {
        font-size: 1rem;
    }

    .search-result-name {
        font-size: 0.8rem;
    }

    .search-result-meta {
        font-size: 0.6rem;
        gap: 4px;
    }

    .search-result-price {
        font-size: 0.75rem;
    }

    .search-results-header {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
}