:root {
    --cecosda-blue: #1061ba;
    --cecosda-blue-dark: #0b4f99;
    --cecosda-light: #f5f8fb;
    --cecosda-text: #2f3944;
    --cecosda-muted: #68727d;
    --cecosda-border: #e3e9ef;
    --cecosda-white: #ffffff;
    --cecosda-shadow: 0 18px 45px rgba(20, 48, 77, 0.11);
}

body {
    color: var(--cecosda-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.3px;
}

p {
    line-height: 1.75;
    text-align: justify;
}

.text-cecosda-blue {
    color: var(--cecosda-blue) !important;
}

.bg-cecosda-light {
    background-color: var(--cecosda-light);
}

.section-space {
    padding: 20px 0;
}

.section-row {
    margin-right: -20px;
    margin-left: -20px;
}

.section-row > [class*="col-"] {
    padding-right: 20px;
    padding-left: 20px;
}

.section-title {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 7px;
    color: var(--cecosda-blue);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
}

.section-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52px;
    height: 4px;
    border-radius: 10px;
    background: #488537;
    content: "";
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-lead {
    max-width: 780px;
    color: var(--cecosda-muted);
}

.btn-cecosda-blue {
    border: 1px solid var(--cecosda-blue);
    border-radius: 4px;
    background: var(--cecosda-blue);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}

.btn-cecosda-blue:hover,
.btn-cecosda-blue:focus {
    border-color: var(--cecosda-blue-dark);
    background: var(--cecosda-blue-dark);
    box-shadow: 0 10px 24px rgba(16, 97, 186, 0.22);
    color: #fff;
    transform: translateY(-2px);
}

.btn-cecosda-outline {
    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-cecosda-outline:hover,
.btn-cecosda-outline:focus {
    background: #fff;
    color: var(--cecosda-blue);
    transform: translateY(-2px);
}

/* Carrousel principal */
#carousel .carousel-item {
    position: relative;
    height: 74vh;
    overflow: hidden;
}

#carousel .carousel-item::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
}

#carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#carousel .carousel-caption {
    z-index: 2;
    right: 8%;
    bottom: 50%;
    left: 8%;
    width: fit-content;
    margin: 0 auto;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.16);
    text-align: center;
    transform: translateY(50%);
    padding: 10px;
}

.hero-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.1rem, 4.8vw, 4.25rem);
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}

.hero-text {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.97);
    font-size: 1.14rem;
    text-align: center;
}

#carousel .carousel-control-prev,
#carousel .carousel-control-next {
    z-index: 3;
    width: 8%;
}

/* Images des sections */
.section-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 410px;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe7ef;
    box-shadow: var(--cecosda-shadow);
}

.section-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(5, 35, 64, 0.24));
    content: "";
    pointer-events: none;
}

.content-image {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.section-media:hover .content-image {
    transform: scale(1.035);
}

.image-label {
    position: absolute;
    z-index: 2;
    /*right: 18px;*/
    bottom: 0px;
    /*left: 18px;*/
    padding: 13px 16px;
    border-radius: 3px;
    background: rgba(16, 97, 186, 0.7);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    width: 100%;
    text-align: justify;
}

.section-panel {
    height: 100%;
    padding: 34px;
}

.bg-cecosda-light .section-panel {
    border-color: rgba(16, 97, 186, 0.09);
}

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

.content-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 25px;
    line-height: 1.55;
}

.content-list li:last-child {
    margin-bottom: 0;
}

.content-list li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cecosda-blue);
    content: "";
    transform: translateY(-50%);
}

.information-box {
}

.information-box p:last-child {
    margin-bottom: 0;
}

.information-box strong,
.modalities-grid strong {
    color: var(--cecosda-blue);
}

/* Avantages */
.advantages-list {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.advantage-card {
    position: relative;
    padding: 7px;
}

.advantage-card h3 {
    color: var(--cecosda-blue);
    font-size: 1.03rem;
}

.advantage-card p {
    margin-bottom: 0;
    color: var(--cecosda-muted);
    font-size: 0.96rem;
    text-align: left;
}

/* Ateliers pratiques */
.workshops-intro {
    max-width: 850px;
    margin: 0 auto 32px;
}

.workshops-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.workshops-facts span {
    padding: 9px 16px;
    border: 1px solid var(--cecosda-border);
    border-radius: 999px;
    background: var(--cecosda-white);
    color: var(--cecosda-blue-dark);
    font-weight: 700;
}

.workshops-facts i {
    margin-right: 6px;
    color: #488537;
}

.workshops-grid > [class*="col-"] {
    margin-bottom: 24px;
}

.workshop-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--cecosda-border);
    border-radius: 10px;
    background: var(--cecosda-white);
    box-shadow: 0 12px 30px rgba(20, 48, 77, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.workshop-card:hover {
    box-shadow: var(--cecosda-shadow);
    transform: translateY(-4px);
}

.workshop-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--cecosda-blue);
    color: #fff;
}

.workshop-code {
    padding: 4px 9px;
    border-radius: 4px;
    background: #ffc107;
    color: #26313d;
    font-size: 0.9rem;
    font-weight: 700;
}

.workshop-duration {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.workshop-card-body {
    flex: 1;
    padding: 22px 22px 14px;
}

.workshop-card-body h3 {
    min-height: 54px;
    margin-bottom: 12px;
    color: var(--cecosda-text);
    font-size: 1.2rem;
    line-height: 1.4;
}

.workshop-card-body p {
    margin-bottom: 20px;
    color: var(--cecosda-muted);
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

.workshop-card-body h4 {
    margin-bottom: 9px;
    color: var(--cecosda-blue);
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.workshop-card-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.workshop-card-body li {
    margin-bottom: 8px;
    color: var(--cecosda-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.workshop-card-body li i {
    margin-right: 8px;
    color: #488537;
    font-size: 1.1rem;
}

.workshop-card-footer .btn {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1rem;
}

.workshop-card-footer {
    padding: 0 22px 22px;
}

/* Modalités */
.modalities-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.modalities-grid li {
    padding: 5px;
    line-height: 1.55;
}

.modalities-grid li:nth-last-child(-n+2) {
    border-bottom: 0;
}

.modalities-grid li:last-child {
    grid-column: 1 / -1;
    border-right: 0;
}

/* Appel à l'action */
.final-cta {
    position: relative;
    overflow: hidden;
    padding: 76px 30px;
    background: linear-gradient(135deg, var(--cecosda-blue-dark), var(--cecosda-blue));
    color: #fff;
}

.final-cta::before,
.final-cta::after {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    content: "";
}

.final-cta::before {
    top: -90px;
    left: -80px;
    width: 240px;
    height: 240px;
}

.final-cta::after {
    right: -90px;
    bottom: -130px;
    width: 320px;
    height: 320px;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.93);
    text-align: center;
}

/* =========================================================
SECTION DES PARTENAIRES
========================================================= */

.partners-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* Zone visible du carrousel */
.partners-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0 25px;
}

/* Dégradés sur les extrémités */
.partners-marquee::before,
.partners-marquee::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 80px;
    pointer-events: none;
    content: "";
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(
        to right,
        #fff 10%,
        rgba(255, 255, 255, 0)
    );
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(
        to left,
        #fff 10%,
        rgba(255, 255, 255, 0)
    );
}

/* Ruban animé */
.partners-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    animation: partners-scroll 28s linear infinite;
    will-change: transform;
}

/* Chaque série de logos */
.partners-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
}

/* Carte contenant un logo */
.partner-item {
    display: flex;
    flex: 0 0 185px;
    align-items: center;
    justify-content: center;
    width: 185px;
    height: 135px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Dimensionnement uniforme des logos */
.partner-logo {
    display: block;
    width: 100%;
    max-width: 145px;
    height: 90px;
    margin: auto;
    object-fit: contain;
    filter: grayscale(12%);
    opacity: 0.92;
    transition:
        filter 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

/* Effet au survol */
.partner-item:hover {
    z-index: 3;
    border-color: rgba(16, 97, 186, 0.35);
    box-shadow: 0 12px 30px rgba(16, 97, 186, 0.14);
    transform: translateY(-5px);
}

.partner-item:hover .partner-logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

/* Pause lorsque la souris passe sur la section */
.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

/* Défilement vers la gauche */
@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Tablettes */
@media (max-width: 991.98px) {
    .partners-track {
        animation-duration: 24s;
    }

    .partners-group {
        gap: 18px;
        padding-right: 18px;
    }

    .partner-item {
        flex-basis: 160px;
        width: 160px;
        height: 120px;
        padding: 16px;
    }

    .partner-logo {
        max-width: 130px;
        height: 78px;
    }

    .image-label {
        font-size: 1.1rem;
    }
}

/* Téléphones */
@media (max-width: 575.98px) {
    .partners-marquee {
        padding: 10px 0 20px;
    }

    .partners-marquee::before,
    .partners-marquee::after {
        width: 35px;
    }

    .partners-track {
        animation-duration: 20s;
    }

    .partners-group {
        gap: 12px;
        padding-right: 12px;
    }

    .partner-item {
        flex-basis: 135px;
        width: 135px;
        height: 105px;
        padding: 13px;
        border-radius: 6px;
    }

    .partner-logo {
        max-width: 110px;
        height: 70px;
    }

    .image-label {
        font-size: .9rem;
    }
}

/* Accessibilité : désactivation de l’animation si nécessaire */
@media (prefers-reduced-motion: reduce) {
    .partners-marquee {
        overflow-x: auto;
    }

    .partners-track {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .section-space {
        padding: 58px 0;
    }

    #carousel .carousel-item {
        height: 590px;
        min-height: 590px;
    }

    #carousel .carousel-caption {
        right: 7%;
        left: 7%;
    }

    .section-media,
    .content-image {
        min-height: 380px;
    }

}

@media (max-width: 767.98px) {
    p {
        text-align: left;
    }

    .section-space {
        padding: 48px 0;
    }

    .section-row {
        margin-right: -15px;
        margin-left: -15px;
    }

    .section-row > [class*="col-"] {
        padding-right: 15px;
        padding-left: 15px;
    }

    #carousel .carousel-item {
        height: 540px;
        min-height: 540px;
    }

    #carousel .carousel-caption {
        right: 20px;
        left: 20px;
        padding: 24px 18px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-media,
    .content-image {
        min-height: 310px;
    }

    .section-panel {
        padding: 26px 22px;
    }

    .advantages-list,
    .modalities-grid {
        grid-template-columns: 1fr;
    }

    .modalities-grid li,
    .modalities-grid li:nth-child(odd),
    .modalities-grid li:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--cecosda-border);
    }

    .modalities-grid li:last-child {
        border-bottom: 0;
    }

    .final-cta {
        padding: 58px 22px;
    }
}

@media (max-width: 480px) {
    #carousel .carousel-item {
        height: 510px;
        min-height: 510px;
    }

    .hero-title {
        font-size: 1.72rem;
    }

    .section-title {
        font-size: 1.55rem;
    }
}


