/* ========================================
   CLIMQUIBERON - DESIGN 2025
   Modern, Glassmorphism, Animations
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette de couleurs 2025 */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #a8d0e6;
    --accent-hover: #a8d0e6;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f1f5f9;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Effets modernes */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Bordures */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease-smooth);
    --transition-normal: 250ms var(--ease-smooth);
    --transition-slow: 400ms var(--ease-smooth);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://climquiberon.fr/menu/logo.sidebar.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 600px;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}
table{
    border-collapse : collapse;
}
th,td{
    border :1px solid black;
    padding: 10px;
}
/*======================
Help Button
======================*/

#help-btn {
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1100;
    background: linear-gradient(135deg, #a8d0e6 0%, #7bb8d4 100%);
    color: #0f172a;
    border: none;
    border-radius: 0.75rem;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(168, 208, 230, 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

#help-btn:hover {
    background: linear-gradient(135deg, #f8b88b 0%, #f0a070 100%);
    box-shadow: 0 6px 18px rgba(248, 184, 139, 0.5);
    transform: translateY(-2px) scale(1.03);
    color: #0f172a;
}

#help-btn:active {
    transform: translateY(0) scale(0.98);
}

#help-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1200;
    padding: 30px 24px;
    overflow-y: auto;
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
}

#help-panel.open {
    right: 0;
}

#help-panel h2 {
    color: #1F6AA5;
    margin-bottom: 16px;
}

#help-panel h3 {
    color: #2E75B6;
    margin-top: 20px;
    margin-bottom: 8px;
}

#help-panel p, #help-panel li {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.help-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
}


/* ========================================
   HEADER MODERNE 2025
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #a8d0e6, #ffffff, #f8b88b);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
    box-shadow: var(--shadow-lg);
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.header-logo {
    height: 90px;
    width: auto;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform var(--transition-normal);
}

.header-logo:hover {
    transform: scale(1.05);
}




/* ========================================
   CONTENU PRINCIPAL
   ======================================== */
.content {
    margin-top: 70px;
    margin-left: 90px;
    padding: 25px;
    min-height: calc(100vh - 90px);
    transition: margin-left var(--transition-slow);
}

.content iframe {
    width: 99%;
    height: calc(100vh - 180px);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    transition: box-shadow var(--transition-normal);
}

.content iframe:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ========================================
   bare GO / NO GO
   ======================================== */
        /* ══ Barre GO/NO-GO — dans le style ClimQuiberon ══ */
        #gonogo-bar {
            position: fixed;
            top: 90px;
            left: 75px; /* Décalé comme .content pour laisser la sidebar gauche */
            right: 0;
            z-index: 890; /* Sous les sidebars (z-index 900/950) */
            background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248,250,252,0.97) 100%);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(168, 208, 230, 0.4);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            padding: 10px 24px;
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
            font-family: 'Inter', -apple-system, sans-serif;
            transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Quand la sidebar gauche est ouverte */
        .sidebar.open ~ #gonogo-bar,
        body.sidebar-open #gonogo-bar {
            left: 280px;
        }

        #gonogo-bar .gngo-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--accent, #a8d0e6);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            white-space: nowrap;
            border-right: 1px solid rgba(168,208,230,0.4);
            padding-right: 14px;
        }

        #gonogo-bar select {
            background: rgba(255,255,255,0.8);
            color: var(--text-primary, #0f172a);
            border: 1px solid rgba(168, 208, 230, 0.6);
            border-radius: 0.75rem;
            padding: 6px 12px;
            font-size: 0.82rem;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            cursor: pointer;
            outline: none;
            min-width: 155px;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }
        #gonogo-bar select:hover,
        #gonogo-bar select:focus {
            border-color: var(--accent, #a8d0e6);
            box-shadow: 0 0 0 3px rgba(168,208,230,0.25);
        }

        #btn-valider {
            background: linear-gradient(135deg, var(--accent, #a8d0e6) 0%, #a8d0e6 100%);
            color: white;
            border: none;
            border-radius: 0.75rem;
            padding: 7px 18px;
            font-size: 0.82rem;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            cursor: pointer;
            letter-spacing: 0.04em;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(168,208,230,0.4);
            white-space: nowrap;
        }
        #btn-valider:hover {
            background: linear-gradient(135deg, #f8b88b 0%, #f8b88b 100%);
            transform: translateY(-1px) scale(1.02);
            box-shadow: 0 4px 14px rgba(248,184,139,0.45);
        }
        #btn-valider:active {
            transform: translateY(0) scale(0.98);
        }

        #gonogo-badge {
            font-size: 0.8rem;
            font-weight: 700;
            padding: 5px 14px;
            border-radius: 9999px;
            letter-spacing: 0.06em;
            display: none;
            white-space: nowrap;
            animation: fadeInBadge 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes fadeInBadge {
            from { opacity: 0; transform: scale(0.7); }
            to   { opacity: 1; transform: scale(1); }
        }
        #gonogo-badge.go {
            display: inline-block;
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
            box-shadow: 0 2px 10px rgba(16,185,129,0.4);
        }
        #gonogo-badge.nogo {
            display: inline-block;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: #fff;
            box-shadow: 0 2px 10px rgba(239,68,68,0.4);
        }

        #gonogo-reasons {
            font-size: 0.77rem;
            font-style: italic;
            font-family: 'Inter', sans-serif;
            display: none;
            color: var(--text-muted, #94a3b8);
        }
        #gonogo-reasons.visible.ok   { display: inline; color: #059669; }
        #gonogo-reasons.visible.nogo { display: inline; color: #ef4444; }

        /* Pousse le contenu sous la barre GO/NO-GO */
        .content {
            margin-top: 135px !important; /* 90px header + 45px barre */
        }

        @media (max-width: 768px) {
            #gonogo-bar { left: 0; top: 70px; padding: 8px 14px; }
            .content { margin-top: 125px !important; }
        }

   
.limite{
    background: linear-gradient(135deg,#f97316,#ea580c);
    color:white;
}

.visible.limite{
    color:#ea580c;
}

/* ========================================
   MENU SIDEBAR GAUCHE - DESIGN 2025
   ======================================== */
.sidebar {
    width: 75px;
    height: calc(100vh - 90px);
    position: fixed;
    top: 90px;
    left: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    transition: width var(--transition-slow), transform var(--transition-slow), box-shadow var(--transition-normal);
    z-index: 900;
    overflow: hidden;
}





.sidebar.open {
    width: 280px;
    box-shadow: var(--shadow-xl);
}

/* Menu Icon - Bouton hamburger */
.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 15px auto;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    background: transparent;
    border: none;
    font-size: 28px;
    color: #a8d0e6;
}

.menu-icon:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.menu-icon:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Menu Toggle - Hamburger Moderne */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 15px auto;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    background: transparent;
    border: none;
}

.menu-toggle:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #a8d0e6;
    stroke-width: 2;
    fill: none;
    transition: all var(--transition-normal);
}

.menu-toggle:hover svg {
    stroke: white;
}

/* Hamburger Animation */
.menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #a8d0e6;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.menu-toggle:hover .hamburger span {
    background: white;
}

.menu-toggle.open .hamburger span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .hamburger span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu List */
.menu {
    list-style: none;
    padding: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-normal);
}

.sidebar.open .menu {
    opacity: 1;
    transform: translateX(0);
}

.menu li {
    margin: 6px 0;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
    overflow: hidden;
}

.menu li a svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: var(--text-secondary);
    stroke-width: 2;
    fill: none;
    transition: all var(--transition-normal);
}

.menu li:hover a {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    transform: translateX(5px);
}

.menu li:hover a svg {
    stroke: white;
}



/* Conteneur du dropdown */
li.has-dropdown {
    position: relative;
}

/* Bouton "Climatologie" — même style que les liens du menu */
li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
    cursor: pointer;
}

li.has-dropdown:hover > a,
li.has-dropdown.open > a {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    transform: translateX(5px);
}

/* Chevron dans le lien Climatologie */
li.has-dropdown > a .chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform var(--transition-normal);
    min-width: unset;
}

li.has-dropdown.open > a .chevron {
    transform: rotate(180deg);
}

/* Sous-menu : dans le flux, indenté, sans fond parasite */
li.has-dropdown .dropdown {
    display: none;
    position: static;
    list-style: none;
    margin: 2px 0 4px 0;
    padding: 0;
    overflow: hidden;
}

li.has-dropdown.open .dropdown {
    display: block;
    animation: fadeIn 0.2s var(--ease-smooth);
}

/* Liens du sous-menu : légèrement indentés, fond discret */


/* Liens du sous-menu au repos : fond discret */
li.has-dropdown .dropdown li a {
    background: none;
    color: var(--text-primary);
}

/* Hover du sous-menu : bleu comme le menu principal */
li.has-dropdown .dropdown li:hover a,
li.has-dropdown .dropdown li:hover > a {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    transform: translateX(5px);
}

li.has-dropdown .dropdown li a {
    padding-left: 36px; /* au lieu des 16px du menu principal */
}



/* ========================================
   SIDEBAR DROITE - GLASSMORPHISM
   ======================================== */
.right-sidebar {
    width: 0;
    height: calc(100vh - 90px);
    position: fixed;
    top: 90px; /* ✅ corrigé : était 70px */
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%); /* ✅ style clair comme sidebar gauche */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.5); /* ✅ bordure cohérente */
    overflow-y: auto;
    overflow-x: hidden;
    transition: width var(--transition-slow);
    z-index: 950;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1); /* ✅ ombre plus douce */
    border-radius: var(--radius-xl) 0 0 var(--radius-xl); /* ✅ coins arrondis comme sidebar gauche */
}

.right-sidebar.active {
    width: 800px;
}

.right-sidebar-content {
    padding: 0 20px 20px 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-slow);
    color: var(--text-primary);
    box-sizing: border-box;
}

.right-sidebar.active .right-sidebar-content {
    opacity: 1;
    transform: translateX(0);
}

/* Scrollbar Moderne */.right-sidebar-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05); /* ✅ adapté au fond clair */
    border-radius: var(--radius-full);
}

.right-sidebar-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}

.right-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Widgets Glassmorphism */
.weather-details,
.webcam-container,
.climatologie-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 18px;
    transition: all var(--transition-normal);
    color: var(--text-primary); /* ✅ était white, maintenant sombre */
}

/* Titres Modernes */
.climatologie-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f8b88b; /* ✅ orange pastel comme le header */
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8b88b; /* ✅ orange pastel */
}

.climatologie-title::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #f8b88b; /* ✅ orange pastel */
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(248, 184, 139, 0.4);
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Boutons Modernes */
.climatologie-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #a8d0e6 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.climatologie-btn:hover {
    background: linear-gradient(135deg, #f8b88b 0%, #f8b88b 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.climatologie-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Bouton fermer sidebar gauche */
.close-sidebar-btn {
    display: none;
    position: absolute;
    top: 18px;
    right: 14px;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    transition: all var(--transition-normal);
}

.sidebar.open .close-sidebar-btn {
    display: flex;
}

.close-sidebar-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    transform: rotate(90deg);
}

/* Grille de boutons */
.climatologie-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

/* ========================================
   IMAGE CONTAINER
   ======================================== */
#image-container {
    margin-top: 20px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
}

#image-container:not(:empty) {
    animation: fadeIn 0.4s var(--ease-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

#image-container img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

#image-container img:hover {
    transform: scale(1.01);
}

#image-description {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 12px;
    line-height: 1.7;
}

/* ========================================
   MODAL LIGHTBOX
   ======================================== */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s var(--ease-smooth);
}

.modal.active {
    display: flex;
}

.modal-image-wrapper {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.4s var(--ease-spring);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
}

/* Close Button */
.close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* ========================================
   FERMETURE SIDEBAR DROITE
   ======================================== */
.close-btn {
    position: sticky;
    top: 0;
    float: right;
    margin: 14px 14px 0 0;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    z-index: 10;
    transition: all var(--transition-normal);
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    transform: rotate(90deg);
}

/* Boutons mois - taille compacte */
.month-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    width: 110px !important;
}

/* ========================================
   RESPONSIVE 2025
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        width: 280px;
    }
    
    .content {
        margin-left: 20px;
    }
    
    .right-sidebar.active {
        width: 100%;
    }
    
    .right-sidebar-content {
        width: 100%;
    }
    
    .climatologie-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .header-title {
        font-size: 1.3rem;
    }
    
    .header-logo {
        height: 38px;
    }
    
    .content {
        padding: 15px;
    }
    
    .climatologie-bar {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.weather-details,
.webcam-container,
.climatologie-container {
    animation: slideInRight 0.4s var(--ease-smooth);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   DIVERS
   ======================================== */
#content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
}



#month-buttons.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
    animation: fadeIn 0.3s var(--ease-smooth);
}

.webcam-container {
    display: none;
}

.webcam-container.active {
    display: block;
    animation: slideInRight 0.4s var(--ease-smooth);
}

.webcam-container iframe {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Text selection moderne */
::selection {
    background: var(--accent);
    color: white;
}

/* Focus visible pour accessibilité */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE COMPLÉMENTAIRE
   ======================================== */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .right-sidebar.active {
        width: min(800px, 100vw);
    }
}

/* Petites tablettes / grands mobiles */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header-logo {
        height: 60px;
    }

    .sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .right-sidebar {
        top: 70px;
        height: calc(100vh - 70px);
        width: 0;
    }

    .right-sidebar.active {
        width: 100vw;
    }

    .content {
        margin-top: 70px;
        margin-left: 0;
        padding: 10px;
    }

    .content iframe {
        height: calc(100vh - 100px);
        border-radius: 0.5rem;
    }

    .climatologie-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .climatologie-bar {
        grid-template-columns: 1fr;
    }

    .month-btn {
        width: 100% !important;
    }

    #image-wrapper {
        flex-direction: column !important;
    }

    #month-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
}