/* ------------------ Commandite page (page 1) ------------------ */

.commandite-page {
    color: #1a1a1a;
    font-family: inherit;
}

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

.commandite-dummy-img {
    background-color: #d9d9d9;
    background-image: repeating-linear-gradient(
        45deg,
        #cfcfcf,
        #cfcfcf 10px,
        #d9d9d9 10px,
        #d9d9d9 20px
    );
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* 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;
    margin-left: 0;
    margin-right: 0;
}

.commandite-hero .commandite-dummy-img {
    min-height: clamp(220px, 32vw, 320px);
    width: 100%;
    margin: 0;
    border-radius: 22px;
    background-color: #b4000a;
    background-image: repeating-linear-gradient(
        45deg,
        #a00008,
        #a00008 10px,
        #b4000a 10px,
        #b4000a 20px
    );
    color: #fff;
}

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

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

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

.commandite-hero h1 .line-1 {
    display: block;
    font-size: clamp(44px, 8vw, 86px);
}

.commandite-hero h1 .line-2 {
    display: block;
    font-size: clamp(30px, 5.6vw, 60px);
    margin-top: 4px;
}

.commandite-hero h1 .line-3 {
    display: block;
    font-size: clamp(22px, 3.9vw, 42px);
    margin-top: 6px;
}

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

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

/* Shared section title */
.commandite-section-title {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 34px;
    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;
}

/* Mission */
.commandite-mission {
    padding: 80px 0 70px;
    background-color: #fff;
}

.commandite-mission .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-left: 0;
    margin-right: 0;
}

.commandite-stats .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #d0d0d0;
    padding-top: 40px;
    margin-left: 0;
    margin-right: 0;
}

.commandite-mission .row > [class*="col-"],
.commandite-stats .row > [class*="col-"] {
    padding: 0;
    width: 100%;
    max-width: 100%;
    flex: none;
}

.commandite-stats .row > [class*="col-"] + [class*="col-"] {
    border-left: 1px solid #d0d0d0;
}

.commandite-mission-item {
    display: flex;
    gap: 18px;
    align-items: center;
    background-color: #f6f6f6;
    border-radius: 14px;
    padding: 20px 22px;
    height: 100%;
}

.commandite-mission-number {
    font-size: 22px;
    font-weight: 900;
    color: #e40f18;
    background-color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    line-height: 1;
    flex-shrink: 0;
    min-width: 58px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.commandite-mission-content h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.commandite-mission-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Stats */
.commandite-stats {
    padding: 60px 0 80px;
    background-color: #fff;
}

.commandite-stat-card {
    padding: 0 20px;
    text-align: left;
    height: 100%;
}

.commandite-stat-number {
    display: inline-block;
    font-size: 44px;
    font-weight: 900;
    color: #111;
    line-height: 1;
    margin-bottom: 14px;
    padding: 0 10px 6px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 42%,
        #fadede 42%,
        #fadede 100%
    );
}

.commandite-stat-label {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #111;
    margin-bottom: 22px;
    line-height: 1.15;
}

.commandite-stat-card p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.commandite-stat-card p strong {
    color: #111;
    font-weight: 700;
}

/* Organismes banner */
.commandite-banner {
    position: relative;
    background-color: #2a2a2a;
    background-image: repeating-linear-gradient(
        45deg,
        #1f1f1f,
        #1f1f1f 10px,
        #2a2a2a 10px,
        #2a2a2a 20px
    );
    padding: 120px 20px;
    text-align: center;
    color: #fff;
}

.commandite-banner h2 {
    font-size: 34px;
    font-weight: 900;
    margin: 0 0 24px;
    letter-spacing: 0.5px;
    color: #fff;
}

.commandite-banner p {
    max-width: 900px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.commandite-banner-btn {
    display: inline-block;
    background-color: #fff;
    color: #e40f18;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    padding: 14px 40px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.commandite-banner-btn:hover,
.commandite-banner-btn:focus {
    color: #e40f18;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Sponsorship request form link */
.commandite-form-btn {
    margin-top: 30px;
}

.commandite-form-btn-red,
.commandite-form-btn-red:hover,
.commandite-form-btn-red:focus {
    background-color: #e40f18;
    color: #fff;
}

/* Impact */
.commandite-impact {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.commandite-impact p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Entraide */
.commandite-entraide {
    padding: 60px 0 100px;
    background-color: #fff;
    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 .commandite-dummy-img {
    min-height: 220px;
    border-radius: 16px;
}

.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: 767px) {

    .commandite-hero {
        padding: 40px 0 30px;
        margin-top:-20px;
        
    }

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

    .commandite-hero .commandite-dummy-img {
        max-width: 360px;
        margin: 0 auto;
    }

    .commandite-section-title {
        font-size: 24px;
    }

    .commandite-banner {
        padding: 70px 20px;
    }

    .commandite-banner h2 {
        font-size: 24px;
    }

    .commandite-stat-card {
        padding: 20px 10px;
    }

    .commandite-mission .row {
        grid-template-columns: 1fr;
    }

    .commandite-stats .row {
        grid-template-columns: 1fr;
        padding-top: 30px;
    }

    .commandite-stats .row > [class*="col-"] + [class*="col-"] {
        border-left: 0;
        border-top: 1px solid #d0d0d0;
        padding-top: 20px;
    }

}
