* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f6f3f8;
    color: #000;
}

header {
    background-color: #251a94;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

hr {
    margin: 1rem;

    border: solid 0.5px #ededed;
}

header .logo {
    font-weight: bold;
    font-size: 1.2rem;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-connect {
    background: red;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
}

.content {
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.campaign-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.campaign-logo {
    flex: 0 0 100px;
}

.campaign-logo img {
    width: 100px;
    height: auto;
}

.campaign-details {
    flex: 1;
    min-width: 250px;
}

.campaign-details h1 {
    font-size: 1.8rem;
}

.status {
    background: #02c55e;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;

}

.time-box {
    background: #00d084;
    color: #fff;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: 1rem;
}

.stats {
    margin-bottom: 1rem;
}

.stats p {
    margin: 0.3rem 0;
}

.actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.actions button {
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.share button {
    background: #f7f7f7;
    color: #000000;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: solid 1px #dfdfdf;
    font-size: 1rem;
    margin: 2px;
}

.actions .whatsapp {
    background: #25d366;
}

.participants {
    margin-top: 2rem;
}

.participants h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgb(0 0 0 / 12%);
    padding: 1rem;
    position: relative;
    text-align: center;
    border: solid 1px #dfdede;
}

.rank {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #f50057;
    color: #fff;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 1;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.vote-codes {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.vote-codes div {
    margin: 0.2rem 0;
}

.vote-button {
    background: #f50057;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .campaign-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .campaign-logo,
    .campaign-details {
        width: 100%;
    }
}

.bg-blue {
    background-color: #143581 !important;
}

.w-100 {
    width: 100% !important;
}



.image-container {
    position: relative;
    width: 100%;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.star {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 5px;
    z-index: 2;
    font-size: 1.2rem;

}

.star .badge {
    background: rgba(220, 53, 69, 0.9);
    padding: 4px 6px;
}




.list-card .star {
    right: 8px;
    bottom: 8px;
    z-index: 9;
}

.position-absolute {
    position: absolute !important;
    bottom: 115px;
}

.list-card .star .badge {
    font-size: 18px;
    padding: 5px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.badge {
    font-size: 11px;
    padding: 5px 8px;
    font-weight: 400;
}

.badge-danger {
    background-color: #f5234a !important;
    color: #fff;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.badge {
    display: inline-block;
    border-radius: .25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    vertical-align: baseline;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}



.footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    
    background-color: #fff;
    padding: 1rem 2rem;
    color: black;

    z-index: 1000;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partners-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partners-logos img {
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partners-logos img:hover {
    transform: scale(1.1);
}

.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
        border: dashed 2px #83a8d3 !important;

}

.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}



.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 95%;
    max-width: 700px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #f50057;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.modal-left {
    flex: 1;
    min-width: 250px;
    text-align: left;
    border-right: solid 1px #f3f3f3;
}

.modal-left img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-right {
    flex: 1;
    min-width: 200px;
    text-align: center;
    align-self: center;
}

.vote-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.vote-counter button {
    background: #e7e7e7;
    color: white;
    border: none;
    padding: 0.5rem 0.5rem;
    font-size: 1.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.confirm-vote {
    background: #f50057;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}


.return {
    background: #0087f5;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 600px) {
    .modal-body {
        flex-direction: column;
        align-items: center;
    }

    .modal-left,
    .modal-right {
        text-align: center;
    }
}


.payment-methods {
    margin-top: 1.5rem;
    text-align: left;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.payment-options label {
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.payment-options input[type="radio"] {
    accent-color: #f50057;
    width: 18px;
    height: 18px;
}


.top-banner {
    width: 100%;
    height: 200px;
    /* ajuste la hauteur selon ton besoin */
    background-image: url('image/banniere.jpg');
    /* remplace par le bon chemin */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}