body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;  
}

header {
    background-color: #ffffff;
    color: rgb(255, 255, 255);
    padding: 0rem;
}

h1 {
     color: #e90000;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

.ticker-container {
    overflow: hidden;
    background-color: #fff;
    padding: 0.5rem 0;
    box-shadow: 2px 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.ticker-content {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.ticker-content img {
    height: 30px;
    margin: 0 1rem;
    flex-shrink: 0;
    object-fit: contain;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.secteurs-btn {
    display: block;
    margin: 1rem auto 1rem calc(100% - 150px); /* Positionne à droite */
    padding: 0.75rem 1.5rem;
    background-color: #e40000;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    width: 150px;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
}

.secteurs-btn:hover {
    transform: scale(1.05);
    background-color: #13843b;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Caché à droite */
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.side-menu.open {
    right: 0; /* Ouvre le menu */
}

.menu-content {
    padding: 1.5rem;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.sector-link {
    display: block;
    background-color: #e90000;
    color: white;
    text-align: center;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.sector-link:hover {
    transform: scale(1.05);
    background-color: #13843b;
}

/* New styles for the bank grid */
.banks-grid {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

p{
    font-size: 1.1rem;
    color: #d40000;
    text-align: center;
    margin-bottom: 1rem;
    text-decoration: none;
}

h2{
    font-size: 1.5rem;
    color: #d40000;
    text-align: center;
   
    
}
h6{
    font-size: 1rem;
    color: #000000;
    text-align: center;
    
    
}

.banks-grid h2 {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.bank-item {
    background-color: transparent;
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    text-align: center;
    border-radius: 0.375rem;
    cursor: pointer; /* Indicate clickable */
}

.bank-item img {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

a {
    margin: 0;
    font-size: 1rem;
     color: #e90000;
     text-decoration: none;
}

.bank-item p {
    margin: 0;
    font-size: 1rem;
     color: #e90000;
}

.bank-item-button {
    background-color: transparent;
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    text-align: center;
    border-radius: 0.375rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    min-width: 150px; /* Même largeur minimale que .bank-item dans la grille */
    box-sizing: border-box; /* Assure que le padding est inclus dans la largeur */
}

.bank-item-button img {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.bank-item-button p {
    margin: 0;
    font-size: 1rem;
    color: #e90000;
}

@media (max-width: 600px) {
    .bank-item-button {
        padding: 1rem;
        min-width: 120px; /* Même largeur minimale que .bank-item sur mobile */
    }

    .bank-item-button img {
        height: 40px; /* Même hauteur que .bank-item img sur mobile */
    }

    .bank-item-button p {
        font-size: 0.8rem; /* Même taille que .bank-item p sur mobile */
    }
}

.bank-item e {
    margin: 0;
    font-size: 0.7rem;
    color: #242121;
}
.bank-item-button e {
    margin: 0;
    font-size: 0.7rem;
    color: #242121;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    max-height: 600px;
    border-radius: 0.375rem;
    position: relative;
    overflow: hidden;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

@media (max-width: 600px) {
    .ticker-content img {
        height: 40px;
        margin: 0 0.5rem;
    }

    .secteurs-btn {
        margin: 1rem auto; /* Centre sur mobile */
        width: 100%;
        max-width: 200px;
    }

    .side-menu {
        width: 100%;
        right: -100%;
    }

    .side-menu.open {
        right: 0;
    }

    .banks-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        padding: 1rem;
    }

    .bank-item img {
        height: 40px;
    }

    .bank-item p {
        font-size: 0.8rem;
    }

    .modal-content {
        width: 90%;
        height: 90%;
    }
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
     color: #e90000;
    align-items: center;
    margin-right: 1rem;
    margin-left: 1rem;
}

.header-right {
    gap: 3rem;
}

.apropos-link {
     color: #e90000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.apropos-link:hover {
     color: #e90000;
}

#dateTime {
      color: #e90000;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}