/* ===================================================
   1. LE CONTENEUR PRINCIPAL DU CALENDRIER
   =================================================== */
.calendar-container {
    width: 95%;           /* Prend presque toute la place sur mobile */
    max-width: 400px;     /* Mais reste petit sur ordinateur */
    margin: 10px auto;
    
}

.calendar-header {
    background: #2c6faa;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px 5px;
    
}

.calendar-header h3 a {
    color: white;
    text-decoration: none;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #2c3e50;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-nav {
    display: flex;
    justify-content: space-around;
    padding: 12px 5px;
    background: #f8fafc;
    border-bottom: 1px solid #eee;
    border-radius: 0px 0px 10px 10px;
}

.calendar-nav a {
    text-decoration: none;
    color: #2c6faa;
    font-size: 0.75em;
    font-weight: bold;
    background: #ffffff;
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

/* ===================================================
   2. LA GRILLE DES JOURS
   =================================================== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px 10px;
}

.day-label {
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    font-size: 0.8em;
    color: #2c6faa;
}

.day a {
    text-decoration: none;
    color: #334155;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.day.today a {
    background: #4da3ff;
    color: white;
}

.calendar-footer {
    text-align: center;
    font-size: 0.7em;
    color: #94a3b8;
    padding: 10px;
}

/* ===================================================
   3. LE CONTENEUR DE L'IFRAME (LE FIX)
   =================================================== */
.iframe-wrapper {
    position: relative;
    width: 98%;
    max-width: 1000px;     /* On l'élargit un peu pour Graphweather */
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

#myIframe {
    width: 100% !important;
    height: 1850px !important; /* !important force la priorité sur style_global.css */
    border: none;
    display: block;
}

/* ===================================================
   4. LE LOADER
   =================================================== */
.loader {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2c6faa;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* On réduit un peu la taille des chiffres sur mobile pour que ça tienne */
@media (max-width: 480px) {
    .day a {
        width: 28px;
        height: 28px;
        font-size: 0.8em;
    }
    .calendar-nav a {
        font-size: 0.65em;
        padding: 4px 8px;
    }
}