.clientsContainer {
    width: var(--rn-width1);
    margin: auto;
}
.clientsContainer button {
    background-color: var(--red);
    padding: 11px;
    letter-spacing: 0;
    font-size: 17px;
    border-radius: 12px;
    width: 226px;
    color: white;
    border: none;
    display: flex; /* Active flexbox */
    align-items: center; /* Centre verticalement */
    justify-content: space-between; /* Place texte à gauche et icône à droite */
}

.clientsContainer button svg {
    width: 18px; /* Ajuste la taille */
    height: auto;
}

.red-accent-section.left {
    left: -5px;
}

.red-accent-section.black {
    background: black !important;
}

.section1_image_container.left {
    justify-content: flex-end;
}

.section1_shape.left {
    width: 50%;
    padding: 80px 69px 80px 200px;
}

.imageWithAnimation.full {
    top: 0 !important;
    margin-bottom: 500px;
    z-index: 200000;
}

.bigImgTop.full {
    clip-path: none;
}
.section1_shape .title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section1_shape .description {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Expertise Tags */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.expertise-tags .tag {
    background-color: var(--red);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Description Text */
.section1_shape p:not(.description) {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Read More Link */
.read-more-link {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--red);
}

.read-more-link::before {
    content: "→";
    font-weight: bold;
}

/* Button Styles */
.cta-button {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

/* Secondary Button */
.secondary-button {
    background-color: transparent;
    color: var(--red);
    border: 2px solid var(--red);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
}

.secondary-button:hover {
    background-color: var(--red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

/* Button Container */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.CaseStudiesButton {
    margin-top: 4% ; 
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section1_shape {
        padding: 20px;
    }

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

    .section1_shape .description {
        font-size: 16px;
    }

    .button-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

.title_center {
    color: #fff;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-family: "PoppinsBold";
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 20px auto 0 auto !important;
    text-align: center !important;
}

/* Responsive styles - add these to your existing CSS */

@media (max-width: 1200px) and (min-width: 1025px) {
    .section1_shape {
        padding: 60px 40px 60px 40px;
    }

    .section1_shape.left {
        padding: 60px 150px 60px 40px;
    }

    .clientsContainer button {
        width: 180px;
        font-size: 16px;
        padding: 10px;
    }
}

/* ========================================
   17. RESPONSIVE - TABLETS (768px-1023px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .section1_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section1_title,
    .section1_subtitle {
        font-size: 2rem;
    }

    .section1_card {
        padding: 25px;
    }

    .section1_card_title {
        font-size: 1.2rem;
    }

    .section1_image_container {
        width: 85%;
        margin-top: 50px;
        margin: 30px auto;
        flex-direction: column;
        text-align: center;
    }

    .red-accent-section {
        position: static;
        transform: none;
        margin-top: 30px;
        right: auto;
        border-radius: 16px;
    }

    .section1_shape {
        width: 100%;
        padding: 40px 30px;
        border-radius: 24px 24px 0 0;
    }

    .section1_image_container:hover {
        transform: translateY(-3px);
    }
}

/* ========================================
   18. RESPONSIVE - GENERAL TABLET/MOBILE (<992px)
   ======================================== */

@media (max-width: 992px) {
    .clientsContainer {
        overflow: hidden;
    }

    .section1_image_container {
        flex-direction: column !important;
        align-items: center !important;
        display: flex !important;
        margin-bottom: 40px;
        overflow: hidden;
        position: relative;
    }

    .section1_image_container.left {
        flex-direction: column !important;
        justify-content: center !important;
    }

    .section1_shape,
    .section1_shape.left {
        width: 100% !important;
        padding: 40px 30px !important;
        text-align: center !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        order: 2;
        box-sizing: border-box;
    }

    .red-accent-section {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto 20px auto !important;
        order: 1;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
    }

    .red-accent-section.left {
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        margin: 0 auto 20px auto !important;
        order: 1;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
        float: none !important;
    }

    .filterRow {
        text-align: center;
        margin-bottom: 30px;
    }

    .clientsContainer button {
        margin: 0 auto;
        display: block;
    }

    .AgenzImage {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ========================================
   19. RESPONSIVE - MOBILE LANDSCAPE (481px-768px)
   ======================================== */

@media (min-width: 481px) and (max-width: 767px) {
    .section1_image_container {
        width: 95%;
        margin-top: 30px;
        margin: 20px auto;
        flex-direction: column;
        border-radius: 16px;
    }

    .title_center {
        font-size: 2.5rem;
        margin: 15px auto 0 auto !important;
    }

    .titleAndBtn {
        margin-top: 60px !important;
    }

    .section1_shape .title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .section1_shape .description {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .expertise-tags {
        justify-content: center;
        margin-bottom: 15px;
    }

    .expertise-tags .tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .section1_shape p:not(.description) {
        font-size: 13px;
        text-align: left;
    }

    .red-accent-section {
        width: 300px;
        height: 200px;
    }

    .AgenzImage {
        height: 150px;
        width: auto;
    }

    .clientsContainer button {
        width: 100%;
        width: 300px;
        font-size: 15px;
    }

    .filterRow span {
        font-size: 14px;
        margin-bottom: 15px;
        display: block;
    }

    .button-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .feature-item {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .three_wrapper {
        height: 300px;
    }
    
    #three-scene {
        height: 100%;
    }
}

/* ========================================
   21. RESPONSIVE - MOBILE SMALL (≤576px)
   ======================================== */

@media (max-width: 576px) {
    .containerW,
    .containerB {
        padding: 0 15px;
    }

    .title_center {
        font-size: 2rem;
        line-height: 1.1;
    }

    .titleAndBtn {
        margin-top: 40px !important;
        width: 100% !important;
        text-align: center;
    }

    .section1_shape,
    .section1_shape.left {
        padding: 30px 20px;
    }

    .section1_shape .title {
        font-size: 22px;
        line-height: 1.3;
    }

    .section1_shape .description {
        font-size: 15px;
        line-height: 1.3;
    }

    .expertise-tags {
        gap: 8px;
    }

    .expertise-tags .tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .section1_shape p:not(.description) {
        font-size: 12px;
        line-height: 1.4;
    }

    .red-accent-section {
        width: 250px;
        height: 160px;
        border-radius: 8px;
    }

    .AgenzImage {
        height: 120px;
    }

    .clientsContainer button {
        font-size: 14px;
        padding: 12px 15px;
        border-radius: 8px;
    }

    .clientsContainer button svg {
        width: 16px;
    }

    .filterRow {
        padding: 20px 0;
    }

    .filterRow span {
        font-size: 13px;
        font-weight: 600;
    }
}

/* ========================================
   22. RESPONSIVE - MOBILE PORTRAIT (≤480px)
   ======================================== */

@media (max-width: 480px) {
    .topSection {
        padding: 4px 0 128px 0;
    }

    .title_center {
        font-size: 1.8rem;
        margin: 10px auto 0 auto !important;
    }

    .section1_shape .title {
        font-size: 20px;
    }

    .section1_shape .description {
        font-size: 14px;
    }

    .red-accent-section {
        width: 200px;
        height: 140px;
    }

    .AgenzImage {
        height: 100px;
    }

    .expertise-tags .tag {
        font-size: 9px;
        padding: 3px 6px;
    }

    .section1_shape,
    .section1_shape.left {
        padding: 25px 15px;
    }
}

/* ========================================
   23. RESPONSIVE - EXTRA SMALL (≤320px)
   ======================================== */

@media (max-width: 320px) {
    .section1_image_container {
        margin-top: 15px;
        margin: 10px auto;
        padding: 0 5px;
    }

    .section1_shape {
        padding: 15px 10px;
        border-radius: 8px 8px 0 0;
    }
}

/* Three.js container responsiveness */
@media (max-width: 768px) {
    .three_wrapper {
        height: 300px; /* Reduce height on mobile if needed */
    }

    #three-scene {
        height: 100%;
    }
}

@media (max-width: 700px) {
    .thm-btn.red.dinamic {
        width: 370px;
    }
}













/* sections 1  */
.section1 {
    width: var(--rn-width1);
    margin: 40px auto;
}

.section1_header {
    text-align: center;
    margin-bottom: 60px;
}

.section1_title {
    /* color: #333; */
    font-size: var(--titleSize);
    /* margin-bottom: 80px; */
    font-family: "PoppinsBold";
    line-height: 60px;
}

.section1_subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 30px;
}

.section1_description {
    /* font-size: var(--discrSize); */
    color: #1a1a1a;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.section1_grid {
    display: grid;
    grid-template-columns: repeat(
        2,
        1fr
    ); /* Exactement 2 colonnes sur desktop */
    gap: 30px;
    margin-top: 40px;
}

.section1_card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-bottom: 2px solid #f5f5f5;
    position: relative;
}

.section1_card_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.section1_card_title {
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-right: 20px;
    font-family: "PoppinsBold";
}

.section1_card:hover .section1_arrow {
    transform: rotate(45deg) scale(1.1);
}

.section1_card_content {
    color: #1a1a1a;
    /* font-size: 1rem; */
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section1_grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        gap: 20px;
    }

    .section1_title,
    .section1_subtitle {
        font-size: 2rem;
    }

    .section1_card {
        padding: 25px;
    }

    .section1_card_title {
        font-size: 1.2rem;
    }
}

/* Texte limité à 2 lignes */
.section1_card_content {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 lignes max */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.3s ease;
    max-height: 3.2em; /* hauteur environ 2 lignes */
}

/* Quand ouvert (class .open) */
.section1_card.open .section1_card_content {
    -webkit-line-clamp: unset;
    max-height: 500px; /* valeur large pour tout montrer */
}
.section1_card .svgicon svg {
    width: 20px;
    height: 20px;
    fill: #e5373f;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.section1_card .svgicon:hover svg {
    transform: scale(1.2); /* grossit un peu */
}

.section1_image_container .reverse {
    flex-direction: row-reverse;
}
.topSection .titleAndBtn {
    gap: 20px !important;
}
.topSection .image {
    width: 43% !important;
}

/* Base styles (Desktop > 1024px) */
.section1_image_container {
    margin-top: 70px;
    position: relative;
    width: 68%;
    border-radius: 24px;
    background-color: #fff;
    overflow: visible;
    transition: transform 0.3s ease;
    width: var(--rn-width1);
    /* margin: 40px auto; */
    display: flex;
    align-items: center;
}

.section1_image_container:hover {
    transform: translateY(-5px);
}

.section1_shape {
    padding: 64px 177px 60px 15px;
    width: 51%;
    position: relative;
    background: #f5f5f5 0% 0% no-repeat padding-box;
    opacity: 1;
    border-radius: 24px;
}

.red-accent-section {
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    /* width: 510px; */
    height: 75%;
    background: linear-gradient(135deg, #ffffff 0%, #fffefe 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    border-radius: 24px;
    opacity: 0.9;
    z-index: 1;
    transition: all 0.3s ease;
}

.red-accent-section::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    animation: pulse 2s ease-in-out infinite;
}

/* Large Desktop (> 1400px) */
@media (min-width: 1400px) {
    .section1_image_container {
        /* width: 60%; */
        margin-top: 80px;
    }

    .section1_shape {
        padding: 80px 200px 80px 69px;
        width: 50%;
    }
    .red-accent-section {
        width: 539px;
    }
}
.red-accent-section {
    align-items: center;
    display: flex;
}
/* Desktop/Laptop (1024px - 1399px) - Styles existants gardés */
@media (min-width: 1024px) and (max-width: 1399px) {
    .section1_image_container {
        margin-top: 70px;
        /* width: 68%; */
        /* margin: 40px auto; */
    }

    .section1_shape {
        padding: 64px 177px 60px 40px;
        width: 49%;
    }
    .red-accent-section {
        align-items: center;
        display: flex;
        width: 380px;
    }
}

/* Tablette (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .section1_image_container {
        width: 85%;
        margin-top: 50px;
        margin: 30px auto;
        flex-direction: column;
        text-align: center;
    }
    .red-accent-section {
        position: static;
        transform: none;
        /* width: 100%;
        height: 120px; */
        margin-top: 30px;
        right: auto;
        border-radius: 16px;
    }

    .section1_shape {
        width: 100%;
        padding: 40px 30px;
        border-radius: 24px 24px 0 0;
    }

    .section1_image_container:hover {
        transform: translateY(-3px);
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .section1_image_container {
        width: 95%;
        margin-top: 30px;
        margin: 20px auto;
        flex-direction: column;
        border-radius: 16px;
    }

    .section1_shape {
        width: 100%;
        padding: 30px 20px;
        border-radius: 16px 16px 0 0;
    }

    .section1_image_container:hover {
        transform: translateY(-2px);
    }
}

/* Mobile Small (≤ 480px) */
@media (max-width: 480px) {
    .section1_image_container {
        /* width: 100%; */
        margin-top: 20px;
        margin: 15px auto;
        flex-direction: column;
        border-radius: 12px;
        padding: 0 10px;
    }

    .section1_shape {
        /* width: 100%; */
        padding: 20px 15px;
        border-radius: 12px 12px 0 0;
    }

    .section1_image_container:hover {
        transform: none; /* Désactivé sur mobile pour les performances */
    }
}

/* Mobile Extra Small (≤ 320px) */
@media (max-width: 320px) {
    .section1_image_container {
        margin-top: 15px;
        margin: 10px auto;
        padding: 0 5px;
    }

    .section1_shape {
        padding: 15px 10px;
        border-radius: 8px 8px 0 0;
    }
}

.section1_shape h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 1.3;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    /* padding: 16px 0; */
    /* font-size: 17px; */
    color: #444;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s ease forwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}
.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}
.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}
.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-icon {
    content: "✦";
    color: #e63946;
    font-size: 24px;
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotate(45deg) scale(1.2);
}