/* Reset et base */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Conteneur principal */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Corps principal avec 2 colonnes */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    /* Empêche le scroll global */
}

.colonne_gauche,
.colonne_droite {

    overflow: auto;
    /* Scroll indépendant */
    scrollbar-width: none;
    /*padding: 1rem;*/

}

/* Style des cartes */
.card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: var(--primary-dark);
}

/* Footer */
/*.page-footer {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
}*/

/* Style pour les liens et boutons */
.newsletter-btn::before {
    content: "";
    position: absolute;
    left: -30px;
    width: 80px;
    height: 80px;
    background: #fff;
    /* couleur du fond */
    border-radius: 50%;
}

/* texte */
.newsletter-btn span:first-child {
    padding-right: 10px;
    padding-left: 10px;
    margin-left: 10px;
}

/* bloc rouge */
.newsletter-btn .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f44336;
    width: 70px;
    height: 100%;
    border-radius: 0 30px 30px 0;
    font-size: 24px;
}

/* Grille d'informations */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.info-box {
    background: #e9ecef;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: left;
}

/* =================================
   LAYOUT PRINCIPAL
================================= */
.app-layout {
    flex: 1;

    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    overflow: auto;
    padding: 20px;
    max-width: 1500px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .app-layout {
        display: flex;
        flex-direction: column;
    }

    .colonne_droite {
        order: -1;
    }

    .colonne_gauche {
        order: 2;
    }

    .colonne_gauche,
    .colonne_droite {
        overflow: visible;
    }

    .app-layout {
        overflow: auto;
    }
}