.section-title.center {
    text-align: center;
}
.thm-btn.red.dinamic {
    letter-spacing: 0;
    padding: 10px 9px 10px;
    /* font-size: 12px; */
    width: auto;
}
.topSection {
    padding: 0px 0 90px 0;
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin-bottom: 20px;
}

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

    .topSection {
        padding: 4px 0 128px 0;
        display: flex;
        gap: 22px;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-left: 10px;
    }
}

/* 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);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 20px;
        border-radius: 20px;
    }

    .section1_shape {
        padding: 40px 30px;
        width: 100%;
    }

    .red-accent-section {
        position: static;
        transform: none;
        /* width: 100%; */
        /* height: 120px; */
        margin-top: 30px;
        right: auto;
        border-radius: 16px;
    }

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

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

    .section1_shape h1 {
        margin-bottom: 30px;
    }

    .feature-item {
        margin-bottom: 16px;
    }
}
/* end section 1 is done */

/*


        /* end section3 */
.references-section {
    margin-top: 0px !important;
}

.red-accent-section {
    justify-content: center;
}
