@import url("global.css");
.container {
    display: flex;
    flex-direction: column;
    padding-top: 115px;
}
.containerRow{
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1087px;
    width: 90%;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 60px;
}
.event-baniere{
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center;     /* Centrer verticalement */
    color: #133b58;
    font-weight: 700;
    max-width: 22%;
    margin: 0px auto;
    font-size: 26px;
    padding: 0px 0;
}
/* .containerRowBaniere{
    display: flex;
    justify-content: right;
    flex-direction: row;
    align-items: center;
    max-width: 1287px;
    width: 90%;
    margin: 0 0 0 auto;

}
@media screen and (min-width: 1500px) {
    .containerRowBaniere{
        max-width: 1905px !important
    }
    
} */

.containerRowOne{
    justify-content: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1250px;
    width: 90%;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;

}
.containerRowTwo{
    justify-content: space-evenly;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1250px;
    width: 90%;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;

}
.cent{
    width: auto;
}
.welcome-card {
    background: var(--primary-blue);
    border-radius: 30px;
    padding: 94px;
    width: 65%;
}
.welcome-cardBaniere {
    background: linear-gradient(180deg, #123a58 0%, #0f2740 100%);
    border-radius: 30px 0 0 30px;
    padding: 20px 95px;
    width: 100%;
    justify-items: center;
}
.welcome-cardBaniereD {
    background: linear-gradient(180deg, #123a58 0%, #0f2740 100%);
    padding: 31px 95px;
    width: 100%;
    justify-items: center;
}

.welcome-card h3 {
    color: var(--light-blue);
    margin-bottom: 16px;
    font-size: 18px;
}

.donation-form {
    box-shadow: 1px 11px 44px -1px rgba(34, 34, 34, .1);
    -webkit-box-shadow: 1px 11px 44px -1px rgba(34, 34, 34, .1);
    padding: 0;
    width: auto;
    border-radius: 10px;
}

.form-header {
    background: linear-gradient(90deg, #133b58, #055794);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.form-content {
    padding: 2rem;
}

.amount-input {
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
    width: auto;
}

.amount-input input {
    background-color: #fff;
    border-color: #F7F7F7;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    padding: 20px 50px;
    text-align: center;
    width: 100%;
}
.amount-input input {
    font-size: 13px !important;
}
.radio-container p{
    font-weight: 400 !important;
}
.currency {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.frequency-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-container {
    display: flex;
    /* align-items: center; */
    gap: 0.5rem;
    cursor: pointer;
    margin-left: 13px;
}
.radio-container:hover {
    color: #F97B43;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.radio-container input[type="radio"] {
    display: none;
}

.radio-container input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.donate-button {
    width: 100%;
    background: linear-gradient(90deg, #133b58, #055794);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

@media (max-width: 1170px) {
    .containerRow {
        flex-direction: column;
        padding-top: 0;
        padding-bottom: 50px;
    }
    
    .welcome-card, .donation-form {
        width: 387px;
    }
    .welcome-card {
        padding: 2rem;
    }
    .welcome-card h3 {
        font-size: 1.1rem;
    }
    .donation-form{
        margin-top: 20px;
    }
    .containerRow {
        width: 95%;
        padding-top: 0;
    }
    .menu-btn {
        display: block;
    }
    .navbar, .nav-content, .btn{
        margin: 0;
        padding: 0;
    }
    .logo img{
        margin: 0;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }
    .containerCard{
        padding: 50px 0 !important;
    }
}
@media (max-width: 1170px) {
    .menu-btn {
        display: block;
    }
    .navbar, .nav-content, .btn{
        margin: 0;
        padding: 0;
    }
    .logo img{
        margin: 0;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }
    .event-baniere {
        white-space: nowrap;
        text-align: center;
        width: 100%;
        font-size: 18px; /* ajuste si ça dépasse */
    }
    .welcome-card {
        padding: 2rem;
    }
    .group-13{
        margin-right: 0 !important;
    }
    .containerCard{
        padding: 50px 0 !important;
    }
    .welcome-card h3 {
        font-size: 1.1rem;
    }
    .donation-form{
        margin-top: 20px;
    }
    .card{
        margin-bottom: 15px;
        max-width: none !important;
    }
    .carousel {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 300%;
    }

    .carousel-container {
        display: block !important; /* Force l'affichage du carrousel */
        overflow: hidden; /* Masque les éléments qui dépassent */
        position: relative;
        width: 100%;
    }

    .carousel .carde, 
    .carousel .carde-left {
        flex: 0 0 calc(33.333%); /* Pour 3 cartes */
        width: calc(33.333%);
    }
    .card-image-left {
        width: 100% !important;
        height: 200px !important;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }
}

@media (max-width: 1170px) {
    .containerRow {
        width: 95%;
        padding-top: 0;
        padding-bottom: 50px;
    }
    .containerCard{
        padding: 50px 0 !important;
    }
    .welcome-card {
        padding: 1.5rem;
    }
    
    .form-content {
        padding: 1.5rem;
    }
}
.containerCard{
    padding: 50px 0;

}
.card-left {
    width: 87%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

.card-image-left {
    width: 70%;
    height: 330px;
    border-radius: 10px 0 0 10px;
}
.card-image-left:hover, .carde-image:hover {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.card-content-left {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* -webkit-box-shadow: 1px 11px 44px -1px rgba(34, 34, 34, .1); */
}
.carde-left {
    flex: 0 0 calc(100% - 40px);
    margin: 20px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    background-color: #fff;
    /* overflow: hidden; */
}
.card-date-left {
    max-width: 131px;
    background-color: #2a6aa8;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 17px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.card {
    border-radius: 10px;
    max-width: calc((100% - 40px) / 3); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.card-image {
    width: 100%;
    height: 330px;
    border-radius: 10px 0 0 10px;
}
.card-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #2a6aa8;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 17px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.card-content, .card-contentSociete {
    padding: 15px;
    text-align: center;
}

.card-title {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}
.card-title:hover, .carde-title:hover {
    color: #F97B43;
    text-decoration: underline;
}
.card-text {
    font-size: 14px;
    margin: 0 0 15px;
    color: #666;
}

.card-button {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #133b58, #055794);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.card-button:hover, .carde-button:hover, .donate-button:hover {
    background: #b8dae4;
    color: #133b58;
}

.group-13 {
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    width: 100%;
    margin-left: auto;
}

.overlap-group {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center; /* Texte à gauche dans la box */
    padding: 0 122px; /* Même padding que .welcome-card */
}
.overlap-group-5 {
    width: 100%;
    height: 80px;
    border-radius: 30px 0 0 30px;
    background: linear-gradient(180deg, #123a58 0%, #0f2740 100%);
    display: flex;
    align-items: center;
    justify-content: center; /* Texte à gauche dans la box */
    padding: 0 95px; /* Même padding que .welcome-card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-wrapper-20 {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.svg{
    margin: 0 auto;
}
#durationDropdown {
    cursor: pointer;
    position: relative;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    border-color: rgb(216, 216, 216);
    border-width: 1px;
    border-style: solid;
    width: auto;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}
  
select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.donation-button {
    width: 100%;
    padding: 10px;
    background: #003366;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}



.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Masque les cartes en dehors de la vue */
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Transition fluide */
    will-change: transform; /* Optimisation des performances */
    gap: 21px; /* Espacement entre les cartes */
    margin: 0 36px;
}
.carousele {
    margin: 0 10px;
}

.carde {
    flex: 0 0 calc((100% - 40px) / 3); /* 3 cartes visibles avec 20px de gap */
    max-width: calc((100% - 40px) / 3); /* Assure que chaque carte occupe le bon espace */
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.carde:hover {
    transform: translateY(-5px);
}

.carde-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #2a6aa8;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 17px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.carde-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carde-content {
    padding: 20px;
    text-align: center;
}

.carde-title {
    margin-bottom: 10px;
    font-size: 16px;
    color: #055794;
}

.carde-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.carde-button {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #133b58, #055794);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 40px;
    z-index: 2;
}
.carousel-button:hover {
    color: #F97B43;
}
.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots .dot.active {
    background-color: #333; /* Couleur active */
}
.containerBody {
    color: #fff;
    height: auto;
    margin: 80px 0;
    max-width: 1000px;
    text-align: center; 
    border-radius: 13px; 
    background: linear-gradient(135deg, #133B58 15.96%, #055794 77.02%);
    padding: 20px;
}
h1 {
    color: var(--blanc, #FFF);
    text-align: center;
    font-size: 20px;
    margin-top: 38px;
    margin-bottom: 30px;
}

.success {
    color: var(--blanc, #FFF);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 30px;
}

.return-link {
    color: #fff;
    text-decoration: none;
    color: #C0DFE8;
    text-align: center;
    font-size: 16px;
}

.return-link:hover {
    color: rgb(249, 123, 67);
    text-decoration: underline;
}

.icone{
    color: #000;
    text-align: center;
    font-family: Calibri;
    font-size: 90px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 30.612% */
    margin-top: 26px;
}
/* Carousel calculations are local to each list and use real card widths. */
.carousel { width: auto; }
#campagnes { scroll-margin-top: 90px; }
@media (max-width: 1170px) {
 .carousel .carde, .carousel .carde-left { flex: 0 0 100%; width: 100%; max-width: 100%; }
}

/* One content width for the welcome/donation row and both business lists. */
main {
    --home-width: 1087px;
    --home-gutter: 56px;
    --home-card-gap: 24px;
}
main .containerRow.cent,
main .home-frame {
    box-sizing: border-box;
    width: min(var(--home-width), calc(100% - 2 * var(--home-gutter)));
    max-width: var(--home-width);
    margin-left: auto;
    margin-right: auto;
}
main .home-list { margin-bottom: 64px; }
.home-list-title {
    margin: 0 0 34px;
    padding: 0;
    color: #133b58;
    font: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}
.home-carousel { position: relative; outline-offset: 8px; }
.home-carousel-viewport {
    overflow: hidden;
    padding: 8px 0 12px;
    margin: -8px 0 -12px;
}
.home-carousel-track {
    --home-visible: 3;
    position: relative;
    display: flex;
    gap: var(--home-card-gap);
    align-items: stretch;
    transition: transform 350ms ease;
    will-change: transform;
}
.home-list--wide .home-carousel-track { --home-visible: 1; }
.home-event-card {
    flex: 0 0 calc((100% - (var(--home-visible) - 1) * var(--home-card-gap)) / var(--home-visible));
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgb(19 59 88 / 10%);
}
.home-event-image {
    aspect-ratio: 16 / 9;
    min-width: 0;
    overflow: hidden;
    background: #fafafa;
}
.home-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.home-event-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    text-align: center;
    overflow-wrap: anywhere;
}
.home-event-title {
    font-size: 17px;
    line-height: 1.4;
    color: #055794;
    margin: 0 0 12px;
}
.home-event-date { color: #f07842; font-size: 14px; margin: 0 0 14px; }
.home-event-address { color: #666; font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.home-event-link { margin-top: auto; max-width: 100%; box-sizing: border-box; }
.home-list--wide .home-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
}
.home-list--wide .home-event-image { aspect-ratio: auto; min-height: 330px; }
.home-list--wide .home-event-content { justify-content: center; padding: 32px 26px; }
.home-list--wide .home-event-title { font-size: 20px; }
.home-list--wide .home-event-link { margin-top: 8px; }
.home-carousel-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 48px;
    padding: 8px;
    display: grid;
    place-items: center;
    border: 1px solid #d5e0e8;
    border-radius: 12px;
    color: #133b58;
    background: #fff;
    box-shadow: 0 3px 10px rgb(19 59 88 / 10%);
    cursor: pointer;
}
.home-carousel-prev { left: -52px; }
.home-carousel-next { right: -52px; }
.home-carousel-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.home-carousel-arrow:hover { color: #fff; background: #133b58; border-color: #133b58; }
.home-carousel-arrow:focus-visible { outline: 3px solid #f07842; outline-offset: 3px; }
.home-carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding-top: 24px; }
.home-carousel-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #d2dce4; cursor: pointer; }
.home-carousel-dot[aria-current="true"] { background: #133b58; }
.home-carousel [hidden] { display: none !important; }
.home-empty-events { margin: 0; padding: 28px; border-radius: 12px; box-shadow: 0 4px 12px rgb(19 59 88 / 10%); text-align: center; color: #666; }
#campagnes { scroll-margin-top: 100px; }
@media (max-width: 1170px) {
    main { --home-width: 387px; --home-gutter: 40px; }
    main .containerRow.cent .welcome-card,
    main .containerRow.cent .donation-form { width: 100%; box-sizing: border-box; }
    .home-carousel-track { --home-visible: 1; }
    .home-list--wide .home-event-card { display: flex; flex-direction: column; }
    .home-list--wide .home-event-image { min-height: 0; aspect-ratio: 16 / 9; }
    .home-list--wide .home-event-content { padding: 24px 20px; }
    .home-list--wide .home-event-title { font-size: 17px; }
    .home-carousel-arrow { width: 28px; height: 42px; padding: 2px; border-radius: 9px; }
    .home-carousel-prev { left: -36px; }
    .home-carousel-next { right: -36px; }
    .home-list-title { font-size: 24px; margin-bottom: 28px; }
}
@media (max-width: 1170px) { main { --home-gutter: 36px; } }
@media (prefers-reduced-motion: reduce) { .home-carousel-track { transition: none; } }

/* Compact cards, one continuous white surface and banner edges. */
.home-carousel-track { --home-card-height: 392.34375px; }
.home-event-card {
    height: var(--home-card-height);
    border-radius: 16px;
}
.home-event-image {
    flex: 0 0 auto;
    height: 200px;
    aspect-ratio: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
}
.home-event-image img { object-fit: cover; }
.home-event-content {
    padding: 15px;
    gap: 0;
    min-height: 0;
}
.home-event-title,
.home-list--wide .home-event-title {
    align-self: stretch;
    min-width: 0;
    max-width: 100%;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 18.4px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}
.home-event-date { font-size: 14px; line-height: 16.1px; margin: 0 0 15px; }
.home-event-address {
    font-size: 14px;
    line-height: 16.1px;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-event-link {
    flex-shrink: 0;
    font-size: 14.4px;
    line-height: 16.56px;
    padding: 10px 15px;
    min-height: 36.56px;
}
/* A single full-width card keeps the banner at its original proportion. */
.home-list--wide .home-event-card {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
}
.home-list--wide .home-event-image {
    min-height: 0;
    height: 100%;
    border-radius: 16px 0 0 16px;
}
.home-list--wide .home-event-image img { object-fit: cover; }
.home-list--wide .home-event-content { padding: 20px 24px; }
.home-list--wide .home-event-title { font-size: 16px; }
@media (max-width: 1170px) {
    .home-list--wide .home-event-image {
        height: 200px;
    aspect-ratio: auto;
        border-radius: 16px 16px 0 0;
    }
    .home-list--wide .home-event-content { padding: 15px; justify-content: flex-start; }
    .home-list--wide .home-event-title { font-size: 16px; }
    .home-list--wide .home-event-link { margin-top: auto; }
}
