/* ------------------ Commandite page 2 (organismes) ------------------ */

.commandite-page {
    color: #1a1a1a;
    background-color: #FAFAFA;
}

.commandite-page .container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero */
.commandite-hero {
    background-color: #e40f18;
    color: #fff;
    padding: 80px 0 70px;
   margin-top:-20px;
}

.commandite-hero .commandite-row {
    align-items: center;
    --bs-gutter-x: 4rem;
}

.commandite-hero-photo {
    width: 100%;
    height: clamp(260px, 32vw, 360px);
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.commandite-hero h1 {
    font-weight: 900;
    line-height: 1;
    margin: 0;
    letter-spacing: 1px;
}

.commandite-hero h1 span {
    display: block;
}

.commandite-hero h1 .line-1 {
    font-size: clamp(32px, 6vw, 66px);
}

.commandite-hero h1 .line-2 {
    font-size: clamp(40px, 7.6vw, 84px);
    margin-top: 4px;
}

.commandite-hero h1 .line-3 {
    font-size: clamp(34px, 6.4vw, 70px);
    margin-top: 4px;
}

/* Shared section title / subtitle */
.commandite-section-title {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: clamp(22px, 3.9vw, 42px);
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.commandite-section-subtitle {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Intro */
.organismes-intro {
    padding: 70px 0 50px;
    background-color: #FAFAFA;
    text-align: center;
}

.organismes-intro p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.organismes-intro p strong {
    color: #111;
    font-weight: 700;
}

/* Categories */
.organismes-categories {
    padding: 20px 0 70px;
    background-color: #FAFAFA;
}

.organismes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 14px;
    background-color: #fff;
    border-radius: 14px;
    padding: 24px;
}

.organismes-row:nth-child(even) {
    direction: rtl;
}

.organismes-row:nth-child(even) > * {
    direction: ltr;
}

.organismes-row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.organismes-text h3 {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111;
    margin: 0 0 12px;
}

.organismes-text p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Inclusion */
.organismes-inclusion {
    padding: 60px 0 80px;
    background-color: #FAFAFA;
    text-align: center;
}

.organismes-inclusion p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.organismes-inclusion p a {
    color: #e40f18;
    text-decoration: none;
    font-weight: 700;
}

.organismes-inclusion p a:hover {
    text-decoration: underline;
}

/* Section divider */
.commandite-divider {
    border: 0;
    border-top: 2px solid #cfcfcf;
    max-width: 900px;
    width: calc(100% - 40px);
    margin: 0 auto;
    opacity: 1;
}

/* Entraide (same as page 1) */
.commandite-entraide {
    padding: 60px 0 100px;
    background-color: #FAFAFA;
    text-align: center;
}

.commandite-entraide .commandite-section-subtitle {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 700;
    color: #111;
    font-size: 14px;
    margin-bottom: 40px;
}

.commandite-entraide-carousel {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 44px 44px;
    position: relative;
}

.commandite-entraide-swiper {
    overflow: hidden;
}

.commandite-entraide-swiper .swiper-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.commandite-entraide-carousel .swiper-button-prev,
.commandite-entraide-carousel .swiper-button-next {
    width: 60px;
    height: 60px;
    top: calc(50% - 22px);
    transform: translateY(-50%);
    margin-top: 0;
    background-color: #fff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20' fill='none' stroke='%23222' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M30 10 H2 M10 3 L2 10 L10 17'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px auto;
    z-index: 2;
}

.commandite-entraide-carousel .swiper-button-prev::after,
.commandite-entraide-carousel .swiper-button-next::after {
    display: none;
}

.commandite-entraide-carousel .swiper-button-prev {
    left: 14px;
}

.commandite-entraide-carousel .swiper-button-next {
    right: 14px;
    transform: translateY(-50%) scaleX(-1);
}

.commandite-entraide-carousel .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.commandite-entraide-carousel .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background-color: #d0d0d0;
    opacity: 1;
    margin: 0 7px !important;
}

.commandite-entraide-carousel .swiper-pagination-bullet-active {
    background-color: #e40f18;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 4.5px #e40f18;
}

/* Responsive */
@media (max-width: 991px) {
    .commandite-hero .commandite-row {
        --bs-gutter-x: 2rem;
    }
}

@media (max-width: 767px) {
    .commandite-hero {
        padding: 40px 0 30px;
        margin-top:-20px;
        
    }

    .commandite-hero .commandite-row {
        --bs-gutter-x: 1.5rem;
    }

    .commandite-hero h1 {
        margin-top: 24px;
        text-align: center;
    }

    .organismes-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .organismes-row:nth-child(even) {
        direction: ltr;
    }

    .organismes-row img {
        height: 200px;
    }
}
