/* Hero Image Section */

.featured-content {
    background: url('../images/bg-features-section.svg') no-repeat center center;
    background-size: cover;
    padding: 70px 0;
    width: 100vw;
    position: relative
}

.hero-static {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: visible;
}

.hero-static .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 0 24px 24px;
}

.hero-static .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-static .hero-overlay .hero-title {
    color: white;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-weight: 700;
    font-size: 50px;
    line-height: 60px;
}

.hero-static .hero-caption {
    position: absolute;
    bottom: -12%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1290px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 20px 65px 5px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    text-align: justify;
    box-shadow: 0px 40px 70px 0px #1C261E14;
    backdrop-filter: blur(30px);
    border: 2px solid white;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 110px;
}


/* Elevage Section */

.elevage-section {
    padding: 45px 0 45px;
    position: relative;
    margin-bottom: -100px;
}

.elevage-section .trace {
    position: absolute;
    top: -7%;
    left: 4%;
    transform: scale(.75) translateY(-50%);
}

.elevage-section .left .trace {
    position: absolute;
    top: 4%;
    right: -2%;
    left: auto;
    transform: scale(.75) translateY(-50%);
}

/* En arabe (RTL), la mise en page est inversée : on renvoie les
   illustrations décoratives du côté opposé (au-dessus de l'image, à
   gauche) et on les miroite, pour ne plus chevaucher le texte. */
[dir="rtl"] .elevage-section .trace {
    left: auto;
    right: 4%;
    transform: scaleX(-1) scale(.75) translateY(-50%);
}

[dir="rtl"] .elevage-section .left .trace {
    right: auto;
    left: -2%;
    transform: scaleX(-1) scale(.75) translateY(-50%);
}


.elevage-content svg {
    position: absolute;
    top: -80px;
    right: -5px;
    transform: scale(.95);
}
.elevage-section .container {
    max-width: 1250px;
    padding: 0;
}

.elevage-section .elevage-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.elevage-section .elevage-content .text {
    width: 700px;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: var(--text-dark);
}

.elevage-section .elevage-content h2 {
    color: var(--dark-brown);
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.elevage-section .elevage-content ul {
    list-style: none;
    padding: 0;
}

.elevage-section .elevage-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 16px;
    width: 600px;
}

.elevage-section .elevage-content ul li::before {
    content: url("../images/icons/arrow-right-gold.svg");
    position: absolute;
    left: 0;
    top: 2px
}

/* En arabe (RTL) : la flèche doit précéder le texte, donc à droite,
   collée au texte aligné à droite, et pointer vers la gauche. */
[dir="rtl"] .elevage-section .elevage-content ul li {
    padding-left: 0;
    padding-right: 25px;
    text-align: right;
}

[dir="rtl"] .elevage-section .elevage-content ul li::before {
    left: auto;
    right: 0;
    transform: scaleX(-1);
}

.elevage-section .elevage-content .elevage-box-wrapper {
    position: relative;
    margin-bottom: 70px;
}

.elevage-section .elevage-content .elevage-box-wrapper::before,
.elevage-section .elevage-content .elevage-box-wrapper::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 30px;
    z-index: 0;
}

.elevage-section .elevage-content .elevage-box-wrapper::after {
    width: 193px;
    height: 188px;
}

.elevage-section .elevage-content .elevage-box-wrapper::before {
    background-color: var(--dark-brown);
    top: -20px;
    left: -20px;
}

.elevage-section .elevage-content .elevage-box-wrapper::after {
    background-color: var(--primary-gold);
    bottom: -20px;
    right: -20px;
}

.elevage-section .elevage-content .elevage-box {
    position: relative;
    width: 352px;
    background: white;
    border-radius: 30px;
    padding: 30px 35px;
    box-shadow: 0px 20px 70px 0px #00000014;
    z-index: 2;
}

.elevage-section .elevage-content .elevage-box .icon-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
}

.elevage-section .elevage-content .elevage-box .icon-item:last-child {
    margin-bottom: 0;
}

.elevage-section .elevage-content .elevage-box .icon-item span {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 1px;
    vertical-align: middle;
}

.elevage-section .elevage-content .elevage-box .icon-img {
    width: 65px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.elevage-section .elevage-content .elevage-box .icon-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.elevage-section .elevage-content .image {
    width: 100%;
    height: 260px;
    max-width: 497px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}

.elevage-section .elevage-content .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elevage-section .elevage-content p {
    width: 663px;
}

.elevage-section .elevage-content .stats-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

.elevage-section .elevage-content .stats-container .stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.elevage-section .elevage-content .stats-container .stat-content {
    display: flex;
    flex-direction: column;
}

.elevage-section .elevage-content .stats-container .stat-content .percentage {
    font-weight: 700;
    font-size: 30px;
    color: var(--dark-brown);
}

/* En arabe (RTL), garder l'ordre LTR des chiffres pour que le séparateur
   de milliers (espace) ne soit pas inversé (ex. "130 000" -> "000 130"). */
[dir="rtl"] .elevage-section .elevage-content .stats-container .stat-content .percentage {
    direction: ltr;
    text-align: right;
}

.elevage-section .elevage-content .stats-container .stat-content .description {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-dark);
    margin: 5px 0 0 0;
}

.elevage-section .elevage-content .stats-container .divider {
    width: 1px;
    height: 51px;
    background-color: var(--dark-brown);
    opacity: 0.3;
}


/* Domaines d'activité section */

.secteurs-section {
    background-color: #F8F7F3;
}

.secteurs-section h2 {
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    color: var(--dark-brown);
    margin-bottom: 30px;
}

.secteurs-section .card {
    flex: 1 1 412px;
    background: white;
    border-radius: 30px;
    border: 1px solid #D4D2E3;
    padding: 20px 25px 30px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.secteurs-section .card:hover {
    transform: translateY(-3px);
    background-color: var(--primary-gold, #AE994E);
    color: white;
    box-shadow: 0px 24px 64px 0px #AE994E99;
}

.secteurs-section .card:hover h3,
.secteurs-section .card:hover p,
.secteurs-section .card:hover .cta {
    color: white;
}

.secteurs-section .card:hover .cta img {
    filter: brightness(0) invert(1);
}

.secteurs-section .card h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 20px;
}

.secteurs-section .card .img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 30px;
    margin-bottom: 30px;
}

.secteurs-section .card p {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 345px;
    margin-bottom: 15px;
}

.secteurs-section .card .cta {
    color: var(--dark-brown);
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    margin-top: 20px;
}

.secteurs-section .card .cta:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.secteurs-section .see-all-btn {
    width: 321px;
    height: 40px;
    border-radius: 30px;
    background-color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: white!important;
    margin: 40px auto 60px;
    text-decoration: none;
}

.secteurs-section .see-all-btn:hover {
    box-shadow: 0 15px 30px rgba(168, 134, 26, 0.5);
}

.brand-intro-slider {
    padding: 30px 0 0px;
}

.brand-intro-slider .container {
    max-width: 996px;
    margin: 0 auto;
    padding: 0;
}

.swiper-overflow-wrapper {
    overflow: hidden;
    padding: 30px 0;
}

.brandIntroSwiper {
    position: relative;
    overflow: visible !important;
}

.brand-intro {
    display: grid;
    grid-template-columns: 338px 1fr;
    align-items: center;
    gap: 50px;
    padding: 0 0 30px 30px;
}

.brand-card {
    border-radius: 28px;
    width: 338px;
    position: relative;
    /* box-shadow: 0px 4px 10px rgba(28, 38, 30, 0.06), 0px 10px 25px rgba(28, 38, 30, 0.08), 0px 20px 40px rgba(28, 38, 30, 0.06); */
    box-shadow: 0px 20px 50px 0px #1C261E12;
    background: #ffffff;
    height: 226px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-width: 185px;
    max-height: 144px;
    height: auto;
    display: block;
}

.brandIntroPagination {
    position: absolute;
    bottom: 48px !important;
    right: 61%;
    width: auto !important;
    z-index: 10;
}

.brandIntroPagination .swiper-pagination-bullet {
    background: var(--dark-brown, #3b1420);
    opacity: 0.25;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 6px !important;
    transition: all .25s ease;
}

.brandIntroPagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 22px;
    border-radius: 10px;
}


/* Right text block */

.brand-title {
    color: var(--dark-brown);
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.brand-text {
    max-width: 604px;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: var(--text-dark);
    text-align: justify;
}


/* ===== Responsive ===== */

@media (max-width: 1199px) {
    .brand-intro {
        grid-template-columns: 520px 1fr;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .brand-intro {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .brand-card-inner {
        min-height: 280px;
    }
    .brandIntroPagination {
        margin-left: 0;
        padding-left: 0;
        text-align: center;
    }
    .brand-title {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .brand-card-inner {
        padding: 42px 26px;
        border-radius: 24px;
    }
    .brand-logo {
        max-width: 78%;
    }
    .brand-text {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .secteurs-section .secteurs-section-wrapper {
        max-width: 1300px;
        padding: 40px 0;
        margin: 0 auto;
    }
    .secteurs-section .container-desktop {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 40px 30px;
        justify-content: space-between;
        overflow: visible;
    }
    .secteurs-section .swiper-wrapper {
        display: contents;
    }
    .secteurs-section .swiper-pagination {
        display: none;
    }
}

@media (min-width: 1280px) and (max-width: 1400px) {
    .elevage-section .container {
        max-width: 1150px;
    }
    .elevage-section .trace {
        top: 38%;
        right: -4%;
        transform: scale(.7) translateY(-50%);
    }
    .elevage-section .elevage-content .elevage-box .icon-img {
        width: 55px;
        height: 35px;
    }
    .elevage-section .elevage-content .elevage-box-wrapper {
        margin-bottom: 40px;
    }
    .secteurs-section .secteurs-section-wrapper {
        max-width: 1200px;
    }
    .secteurs-section .card {
        flex: 1 1 380px;
    }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    .hero-static .hero-caption {
        max-width: 900px;
    }
    .elevage-section .container {
        max-width: 950px;
    }
    .elevage-section .elevage-content .elevage-box-wrapper {
        margin-bottom: 30px;
    }
    .elevage-section .elevage-content .elevage-box {
        width: 300px;
    }
    .elevage-section .elevage-content .elevage-box .icon-item {
        margin-bottom: 20px;
    }
    .elevage-section .elevage-content .image {
        height: auto;
        max-width: 400px;
        max-height: 296px;
    }
    .elevage-section .elevage-content .text {
        width: 500px;
    }
    .elevage-section .elevage-content p {
        width: 500px;
    }
    .elevage-section .trace {
        top: 31%;
        /* transform: scale(.6); */
        transform: scale(.75) translateY(-200%);
        right: -6%;
    }
    .secteurs-section .secteurs-section-wrapper {
        max-width: 950px;
    }
    .secteurs-section .card {
        flex: 1 1 300px;
        padding: 25px 15px 30px;
    }
    .secteurs-section .container-desktop {
        gap: 15px;
    }
    .secteurs-section .card p {
        max-width: unset;
    }
    .secteurs-section .card .img {
        height: 250px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-static .hero-caption {
        max-width: 750px;
    }
    .elevage-section .container {
        max-width: 725px;
    }
    .elevage-section .elevage-content ul li {
        width: 400px;
    }
    .elevage-section .elevage-content .elevage-box {
        padding: 20px;
        width: 275px;
    }
    .elevage-section .elevage-content .elevage-box-wrapper::before,
    .elevage-section .elevage-content .elevage-box-wrapper::after {
        display: none;
    }
    .elevage-section .elevage-content .elevage-box .icon-item {
        margin-bottom: 20px;
    }
    .elevage-section .elevage-content .elevage-box .icon-img {
        width: 50px;
        height: 60px;
    }
    .elevage-section .elevage-content .image {
        height: auto;
        max-width: 300px;
        max-height: 200px;
    }
    .elevage-section .elevage-content .text {
        width: 425px;
    }
    .elevage-section .elevage-content p {
        width: 425px;
    }
    .elevage-section .trace {
        display: none;
    }
    .elevage-section .elevage-content .elevage-box-wrapper {
        margin-bottom: 0;
    }
    .secteurs-section .secteurs-section-wrapper {
        max-width: 750px;
        flex-wrap: wrap;
    }
    .secteurs-section .card {
        flex: 1 1 300px;
        padding: 25px 15px 30px;
    }
    .secteurs-section .container-desktop {
        gap: 15px;
    }
    .secteurs-section .card p {
        max-width: unset;
    }
    .secteurs-section .card .img {
        height: 250px;
    }
    .elevage-section .elevage-content .stats-container .stat-content .description {
        font-size: 15px;
        line-height: normal;
    }
}

@media (max-width: 767px) {
    .featured-content {
        position: relative;
        padding: 50px 0 0;
        width: 100vw;
        z-index: 1;
        background: none;
    }
    .featured-content::before {
        content: "";
        position: absolute;
        top: -200px;
        left: 0;
        right: 0;
        height: calc(100% + 200px);
        background: url(../images/bg-features-section-mobile.svg) no-repeat center center;
        background-size: cover;
        z-index: -1;
    }
    .hero-static {
        height: 750px;
        margin-top: -60px;
        margin-bottom: 90px;
    }
    .hero-static .hero-caption {
        bottom: -15%;
        max-width: 90%;
        padding: 20px 16px;
        font-size: 16px;
        text-align: center;
    }
    .hero-static .hero-overlay .hero-title {
        font-size: 36px;
        line-height: 120%;
    }
    .elevage-section {
        margin-bottom: -60px;
    }
    .elevage-section .container {
        max-width: 90%;
    }
    .elevage-section .trace {
        display: none;
    }
    .elevage-section .elevage-content ul li {
        width: 100%;
    }
    .elevage-section .elevage-content {
        flex-direction: column;
        gap: 30px;
    }
    .elevage-section .elevage-content .text {
        width: 100%;
    }
    .elevage-section .elevage-content .elevage-box-wrapper::before {
        top: -12px;
        left: -12px;
    }
    .elevage-section .elevage-content .elevage-box-wrapper::after {
        bottom: -12px;
        right: -12px;
    }
    .elevage-section .elevage-content .elevage-box-wrapper {
        margin-bottom: 20px;
    }
    .elevage-section .elevage-content .elevage-box {
        padding: 25px 35px;
    }
    .elevage-section .elevage-content .elevage-box .icon-img {
        width: 50px;
        height: 40px
    }
    .elevage-section .elevage-content .elevage-box .icon-item {
        margin-bottom: 25px;
    }
    .elevage-section .elevage-content .image {
        width: 100%;
        height: 277px;
        max-width: 100%;
    }
    .elevage-section .elevage-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
        text-align: center;
    }
    .elevage-section .elevage-content p {
        width: 100%;
    }
    .elevage-section .stat-item img {
        width: 73px;
        height: 46px;
    }
    .elevage-section .elevage-content .stats-container .stat-content .percentage {
        font-size: 20px;
    }
    .elevage-section .elevage-content .stats-container .stat-content .description {
        font-size: 14px;
    }
    .elevage-section .elevage-content .stats-container {
        gap: 20px;
        flex-wrap: wrap;
    }
    .elevage-section .elevage-content .stats-container .divider {
        display: none;
    }
    .brandIntroPagination {
        top: 240px !important;
        left: 50% !important;
        right: unset;
        bottom: unset !important;
        transform: translateX(-50%);
    }
    .elevage-section .elevage-content .stats-container .stat-content {
        line-height: 100%;
    }
    .elevage-section .elevage-content:last-child {
        flex-direction: column-reverse !important;
    }
    .secteurs-section {
        border-top: 1px solid #D4D2E3;
    }
    .secteurs-section .secteurs-section-wrapper {
        max-width: 100%;
        padding: 35px 0 100px;
        margin: 0 auto;
    }
    .secteurs-section h2 {
        padding: 0 25px;
    }
    .secteurs-section .card {
        position: relative !important;
        margin: 0 !important;
        float: none !important;
        flex: none !important;
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 0px;
        border: none;
        padding: 0 0 70px 0;
        background: #F8F7F3;
        border-bottom: 1px solid #D4D2E3;
    }
    .secteurs-section .card .img {
        border-radius: 0;
        order: 1;
    }
    .secteurs-section .card h3 {
        order: 2;
        text-align: left;
        padding: 0 25px;
    }
    .secteurs-section .card p {
        order: 3;
        padding: 0 25px;
    }
    .secteurs-section .card .cta {
        order: 4;
        margin: 0 auto;
        width: fit-content;
        height: 56px;
        border-radius: 30px;
        gap: 8px;
        padding: 0 20px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--dark-brown);
        text-decoration: none !important;
        margin-top: 10px;
    }
    .secteurs-section .card .cta img {
        filter: brightness(0) invert(1);
    }
    .secteurs-section .swiper-pagination {
        bottom: 30px;
    }
    .secteurs-section .swiper-pagination-bullet {
        background: #333;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        opacity: 1
    }
    .secteurs-section .swiper-pagination-bullet-active {
        opacity: 1;
        width: 18px;
        border-radius: 20px;
    }
    .secteurs-section .see-all-btn {
        display: none;
    }
}
