body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    /* background-color: #f4f4f4; */
    background-color: black;
    overflow-x: hidden;
    height: 100%;
}

.w-body {
    /**min-height: calc(100vh - 57vh);*/
    background-color: #f4f4f4;
}

.b-body {
    min-height: calc(100vh - 57vh);
    background-color: #000000;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.header-bg {
    width: 100%;
    background-color: black;
}

header {
    background-color: black;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    font-weight: 600;
}

header .logo {
    width: 300px;
    height: 45px;
    background-image: url(https://longmire.fr/ast/images/logo_white.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: -9px;
}

.nav-bg {
    width: 100%;
    background-color: #e6e6e6;
}

nav {
    background-color: #e6e6e6;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.hero {
    background: linear-gradient(to right, #663300, #003366);
}

.hero img {
    max-width: 100%;
    height: auto;
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.content div {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.footer {
    background-color: #000000;
    color: white;
    padding: 20px 20px;
    font-size: 14px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px 30px;
}

footer a {
    color: #fff;
    text-decoration: none;
    
}

.footer-left p {
    margin: 0;
    line-height: 1.4;
}

.footer-left a {
font-size: 12px;
}

.footer-right {
  display: flex;
  gap: 6px;
  text-align: left;
}

.footer-right a {
  color: white;
  text-decoration: none;
    margin: 0 10px;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-right a:hover {
    text-decoration: underline;
}

.slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slides {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #000;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 100px;
    color: #fff;
    padding: 10px 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-in-out;
}

.slide-content h1 {
    font-size: 24px;
    margin: 0;
}

.slide-content h2 {
    font-size: 36px;
    margin: 0;
}

.slide-content p {
    font-size: 18px;
    margin: 10px 0 0;
}

.slide-content a {
    font-size: 16px;
    margin: 10px 0 0;
    display: inline-block;
}

.navigation-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    display: flex;
    justify-content: center;
    padding: 2px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.nav-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}

.section-spacer {
    height: 20px;
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .section-spacer {
        height: 20px;
    }
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.main-grid section {
    font-size: 14px;
}

.main-grid h3 {
    font-size: 16px;
    border-bottom: 2px solid #ccc;
}

.economic-fields {
    padding: 20px 20px;
    background: #000000;
    text-align: center;
    /**border: 1px solid #e5e1e1;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    border-radius: 5px;**/
}

.economic-fields h2 {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 50px;
    margin-top: 20px;
}

.w-icon {
    color: white;
    font-size: 24px;
}

.fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.field {
    flex: 1 1 200px;
    max-width: 300px;
}

.field h4 {
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.field p {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

.trust-title {
    margin-top: 40px;
    font-size: 22px;
    color: white;
    font-weight: bold;
}

.carousel {
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
  background: #000;
  mask-image: linear-gradient(to right, transparent, white 50px, white calc(100% - 50px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 50px, white calc(100% - 50px), transparent);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
  will-change: transform;
}

.carousel-logos {
  display: flex;
  gap: 60px;
  align-items: center;
}

.carousel-logos img {
  height: 75px;
  width: auto;
  flex-shrink: 0;
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column; /* Logo au-dessus du menu */
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    header .logo {
        width: 300px;
        height: 45px;
        background-image: url(https://longmire.fr/ast/images/logo_white.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0 auto;
        margin-bottom: 10px;
    }


    header div {
        margin-bottom: 10px;
    }

    .hero {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .nav-item img {
        width: 50px;
        height: 30px;
    }

    .nav-item {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero a {
        font-size: 12px;
    }

    nav a {
        font-size: 12px;
    }

    footer {
        font-size: 12px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-right {
        flex-direction: column;
        gap: 5px;
    }

    .slide-content {
        bottom: 90px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 14px;
    }
}


.sec-crsl.elec {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
    padding: 60px 20px;

}

.sec-crsl.elec.visible {
    opacity: 1;
    transform: translateY(0);
}

.sec-crsl .crsl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    align-items: center;
}

.sec-crsl .crsl {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.sec-crsl .crsl-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.sec-crsl .crsl-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.sec-crsl .crsl-slide.active {
    display: block;
}

.sec-crsl .crsl-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.sec-crsl .crsl-cap {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
}

.sec-crsl .crsl-cap h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.sec-crsl .crsl-cap p {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: 300;
}

.sec-crsl .crsl-ctn {
    flex: 1 1 45%;
}

.sec-crsl .crsl-ctn h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-crsl .crsl-ctn p {
    font-weight: 400;
    line-height: 1.6;
    font-size: 16px;
}

@media (max-width: 768px) {
    .sec-crsl .crsl-grid {
        flex-direction: column;
    }

    .sec-crsl .crsl,
    .sec-crsl .crsl-ctn {
        flex: 1 1 100%;
    }
}