/* ================= THEME GLASS ONE UI (2026) - LOGO CENTRÉ ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    --color-cyan: #33c1ff;    
    --color-magenta: #ff3377; 
    --color-green: #33ff77;   
    --color-orange: #ff8c33;  
    --color-yellow: #ffd633;
    --color-red: #ff3b30;
    --color-grey: #a0a0a5;
    --color-discord: #5865f2;

    --city-auxi: #949599;
    --city-frevent: #42C7F4;
    --city-stpol: #A6CC38;
    --city-pernes: #B61D4C;
    
    --bg-surface: rgba(22, 24, 30, 0.35);        
    --bg-surface-high: rgba(35, 38, 48, 0.25);   
    --bg-surface-hover: rgba(50, 55, 70, 0.45);  
    --glass-border: rgba(255, 255, 255, 0.15);   
    --glass-blur: blur(12px);                    
    
    --text-main: #f2f2f2;
    --text-muted: #a1a1aa;

    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }

body { 
    background: url('assets/fondnoir.png') no-repeat center center fixed; 
    background-size: cover;
    color: var(--text-main); 
    height: 100vh; 
    overflow: hidden; 
}

img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 440px; 
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 5px 0 30px rgba(0,0,0,0.4);
}

.sidebar-scroll {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px;
    scrollbar-width: none; 
}
.sidebar-scroll::-webkit-scrollbar { display: none; }

.sidebar-header { margin-bottom: 25px; display: flex; flex-direction: column; align-items: center; }

/* RESTRUCTURATION DU BLOC LOGO / TITRE */
.brand-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 20px; 
    text-align: center;
    width: 100%;
}
.main-logo { 
    width: 130px; 
    height: 130px; 
    object-fit: contain; 
    cursor: default !important; 
    border-radius: 50%; 
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.15));
    transition: 0.3s;
}
.brand-title { 
    font-size: 1.4rem; 
    font-weight: 800; 
    line-height: 1.3; 
    letter-spacing: -0.5px; 
    white-space: nowrap; 
}
.brand-subtitle { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    font-weight: 500; 
}

.color-auxi { color: var(--city-auxi) !important; text-shadow: 0 0 10px rgba(148, 149, 153, 0.4); }
.color-frevent { color: var(--city-frevent) !important; text-shadow: 0 0 10px rgba(66, 199, 244, 0.4); }
.color-stpol { color: var(--city-stpol) !important; text-shadow: 0 0 10px rgba(166, 204, 56, 0.4); }
.color-pernes { color: var(--city-pernes) !important; text-shadow: 0 0 10px rgba(182, 29, 76, 0.4); }

.locations-pill-list { 
    display: flex; 
    flex-wrap: nowrap; 
    white-space: nowrap; 
    justify-content: center; 
    gap: 12px; 
    margin-bottom: 24px; 
    font-size: 0.95rem; 
    font-weight: 700;
}

/* --- CHAMP DE RECHERCHE & DROPDOWN --- */
.search-container {
    position: relative;
}
.search-input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: 0.2s;
    text-align: center;
}
.search-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(0,0,0,0.4);
}
.search-input::placeholder {
    color: var(--text-muted);
}
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface-high);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}
.search-dropdown.hidden {
    display: none;
}
.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    color: var(--text-main);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: rgba(51, 193, 255, 0.2);
}
.search-result-title {
    font-weight: 700;
    font-size: 0.95rem;
}
.search-result-type {
    font-size: 0.75rem;
    color: var(--color-cyan);
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-nav { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 20px 0;
}
.quick-links { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    width: 85%; 
    margin: 0 auto; 
}
.one-btn-flat { 
    display: flex; align-items: center; gap: 16px; 
    background: transparent; border: none; color: var(--text-main); 
    padding: 10px; border-radius: var(--radius-sm); 
    font-weight: 600; font-size: 1.05rem; text-align: left; 
    cursor: pointer; transition: 0.2s; text-decoration: none; 
    width: 100%; justify-content: flex-start;
}
.one-btn-flat:hover { background: var(--bg-surface-high); }
.icon-box { width: 42px; height: 42px; border-radius: 12px; display: flex; justify-content: center; align-items: center; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.2); flex-shrink: 0;}
.bg-cyan-light { background: rgba(51, 193, 255, 0.2); color: var(--color-cyan); }
.bg-magenta-light { background: rgba(255, 51, 119, 0.2); color: var(--color-magenta); }
.bg-green-light { background: rgba(51, 255, 119, 0.2); color: var(--color-green); }
.bg-orange-light { background: rgba(255, 140, 51, 0.2); color: var(--color-orange); }
.bg-grey-light { background: rgba(160, 160, 165, 0.2); color: var(--color-grey); }
.bg-discord-light { background: rgba(88, 101, 242, 0.2); color: var(--color-discord); }

.sidebar-footer { margin-top: 25px; }
.info-widgets-vertical { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.widget-pill { background: var(--bg-surface-high); padding: 16px; border-radius: var(--radius-sm); text-align: center; font-weight: 700; font-size: 1rem; border: 1px solid var(--glass-border); width: 100%; display: block;}
.widget-pill.clickable { cursor: pointer; transition: 0.2s; }
.widget-pill.clickable:hover { background: var(--bg-surface-hover); }

.weather-inline-content { display: flex; justify-content: center; align-items: center; gap: 8px; }
.text-separator { color: var(--text-muted); opacity: 0.5; }
.text-small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-top: 0;}

.utility-row { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; justify-content: space-between; background: var(--bg-surface-high); padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--glass-border);}
.icon-circle { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: none; color: var(--text-main); font-size: 1.1rem; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; }
.icon-circle:hover { background: rgba(255,255,255,0.1); }

.theme-switcher { display: flex; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; transition: 0.2s; border: 1px solid rgba(255,255,255,0.3);}
.dot:hover { transform: scale(1.3); }
.dot-cyan { background: var(--color-cyan); }
.dot-magenta { background: var(--color-magenta); }
.dot-green { background: var(--color-green); }

.a11y-wrapper { position: relative; }
.a11y-menu-surface { position: absolute; bottom: 120%; left: 0; background: var(--bg-surface-high); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; pointer-events: none; transition: 0.2s; width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.a11y-wrapper:hover .a11y-menu-surface { opacity: 1; pointer-events: auto; }
.a11y-btn { background: transparent; border: none; color: var(--text-main); padding: 8px; font-weight: 500; font-size: 0.9rem; cursor: pointer; text-align: left; border-radius: 8px; transition: 0.2s;}
.a11y-btn:hover { background: rgba(255,255,255,0.1); }

.legal-links { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-logo { cursor: pointer; opacity: 0.8; transition: 0.2s; object-fit: contain; border-radius: 8px;}
.footer-logo:hover { opacity: 1; }

.legal-text-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.legal-links p { font-size: 0.75rem; color: var(--text-muted); margin: 0;}
.legal-links button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.75rem; transition: 0.2s; margin: 0;}
.legal-links button:hover { color: var(--text-main); }

/* ================= MAIN CONTENT ================= */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    gap: 24px;
    min-height: 0; 
}

.actions-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    min-height: 160px;
}

.action-group {
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.group-inclusion {
    background: linear-gradient(145deg, rgba(51, 193, 255, 0.12) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(51, 193, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(51, 193, 255, 0.2);
}

.group-fablab {
    background: linear-gradient(145deg, rgba(255, 59, 48, 0.12) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255, 59, 48, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255, 59, 48, 0.2);
}

.group-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.action-subgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ================= BOUTONS D'ACTION COMPACTS (CENTRES) ================= */
.action-surface {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-sm);
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    transition: 0.2s ease-out;
    color: var(--text-main);
    padding: 12px 10px; 
}

.action-icon-wrapper { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    transition: 0.3s; 
    flex-shrink: 0; 
}
.orb-icon { width: 18px; height: 18px; transition: 0.3s; } 
.action-text { 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-align: center; 
    line-height: 1.2;
}

.surface-cyan { background: rgba(51, 193, 255, 0.15); border: 1px solid rgba(51, 193, 255, 0.4); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.surface-cyan .action-icon-wrapper { background: rgba(51, 193, 255, 0.2); border: 1px solid rgba(51, 193, 255, 0.5); box-shadow: 0 0 15px rgba(51,193,255,0.3); }
.surface-cyan .orb-icon { stroke: var(--color-cyan); }
.surface-cyan:hover { background: rgba(51, 193, 255, 0.25); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(51,193,255,0.3); }
.surface-cyan:hover .action-icon-wrapper { background: var(--color-cyan); transform: scale(1.1); box-shadow: 0 0 25px rgba(51,193,255,0.6); }
.surface-cyan:hover .orb-icon { stroke: #000; }

.surface-magenta { background: rgba(255, 51, 119, 0.15); border: 1px solid rgba(255, 51, 119, 0.4); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.surface-magenta .action-icon-wrapper { background: rgba(255, 51, 119, 0.2); border: 1px solid rgba(255, 51, 119, 0.5); box-shadow: 0 0 15px rgba(255,51,119,0.3); }
.surface-magenta .orb-icon { stroke: var(--color-magenta); }
.surface-magenta:hover { background: rgba(255, 51, 119, 0.25); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(255,51,119,0.3); }
.surface-magenta:hover .action-icon-wrapper { background: var(--color-magenta); transform: scale(1.1); box-shadow: 0 0 25px rgba(255,51,119,0.6); }
.surface-magenta:hover .orb-icon { stroke: #000; }

.surface-green { background: rgba(51, 255, 119, 0.15); border: 1px solid rgba(51, 255, 119, 0.4); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.surface-green .action-icon-wrapper { background: rgba(51, 255, 119, 0.2); border: 1px solid rgba(51, 255, 119, 0.5); box-shadow: 0 0 15px rgba(51,255,119,0.3); }
.surface-green .orb-icon { stroke: var(--color-green); }
.surface-green:hover { background: rgba(51, 255, 119, 0.25); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(51,255,119,0.3); }
.surface-green:hover .action-icon-wrapper { background: var(--color-green); transform: scale(1.1); box-shadow: 0 0 25px rgba(51,255,119,0.6); }
.surface-green:hover .orb-icon { stroke: #000; }

.surface-yellow { background: rgba(255, 214, 51, 0.15); border: 1px solid rgba(255, 214, 51, 0.4); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.surface-yellow .action-icon-wrapper { background: rgba(255, 214, 51, 0.2); border: 1px solid rgba(255, 214, 51, 0.5); box-shadow: 0 0 15px rgba(255, 214, 51,0.3); }
.surface-yellow .orb-icon { stroke: var(--color-yellow); }
.surface-yellow:hover { background: rgba(255, 214, 51, 0.25); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(255, 214, 51,0.3); }
.surface-yellow:hover .action-icon-wrapper { background: var(--color-yellow); transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 214, 51,0.6); }
.surface-yellow:hover .orb-icon { stroke: #000; }

.surface-orange { background: rgba(255, 140, 51, 0.15); border: 1px solid rgba(255, 140, 51, 0.4); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.surface-orange .action-icon-wrapper { background: rgba(255, 140, 51, 0.2); border: 1px solid rgba(255, 140, 51, 0.5); box-shadow: 0 0 15px rgba(255, 140, 51,0.3); }
.surface-orange .orb-icon { stroke: var(--color-orange); }
.surface-orange:hover { background: rgba(255, 140, 51, 0.25); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(255, 140, 51,0.3); }
.surface-orange:hover .action-icon-wrapper { background: var(--color-orange); transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 140, 51,0.6); }
.surface-orange:hover .orb-icon { stroke: #000; }

/* Grille des Flux */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-grow: 1;
    overflow: hidden;
    min-height: 0; 
}
.feed-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}
.feed-surface { 
    background: var(--bg-surface); 
    backdrop-filter: var(--glass-blur); 
    -webkit-backdrop-filter: var(--glass-blur); 
    border: 1px solid var(--glass-border); 
    border-radius: var(--radius-md); 
    display: flex; 
    flex-direction: column; 
    padding: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-height: 0; 
}
.feed-column .feed-surface {
    flex: 1; 
}

.feed-header { 
    font-size: 1.2rem; 
    font-weight: 800; 
    margin-bottom: 16px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}
.feed-header.text-cyan { color: var(--color-cyan); border-bottom: 2px solid rgba(51, 193, 255, 0.3); }
.feed-header.text-yellow { color: var(--color-yellow); border-bottom: 2px solid rgba(255, 214, 51, 0.3); }
.feed-header.text-red { color: var(--color-red); border-bottom: 2px solid rgba(255, 59, 48, 0.3); }

/* --- STYLE SPÉCIFIQUE AU CHAT (TGC STYLE) --- */
.chat-messages-container { display: flex; flex-direction: column; gap: 8px; padding-right: 8px; overflow-y: auto; flex-grow: 1; }
.chat-msg-row { display: flex; flex-direction: column; background: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); }
.chat-pseudo-txt { font-size: 0.75rem; font-weight: 800; color: var(--color-discord); margin-bottom: 2px;}
.chat-msg-txt { font-size: 0.9rem; color: var(--text-main); word-break: break-word;}
.chat-time-txt { font-size: 0.65rem; color: var(--text-muted); align-self: flex-end; margin-top: 4px;}

.chat-form { display: flex; gap: 8px; margin-top: 12px; align-items: stretch;}
.chat-pseudo { flex: 0 0 30%; padding: 12px 16px; font-size: 0.9rem; border-radius: var(--radius-sm); background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); color: #fff; font-family: inherit;}
.chat-text { flex: 1; padding: 12px 16px; font-size: 0.9rem; border-radius: var(--radius-sm); background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); color: #fff; font-family: inherit;}
.chat-pseudo:focus, .chat-text:focus { border-color: var(--color-discord); outline: none;}
.chat-pseudo::placeholder, .chat-text::placeholder { color: var(--text-muted); }

.btn-chat-send { background: rgba(88, 101, 242, 0.2); color: var(--color-discord); border: 1px solid rgba(88, 101, 242, 0.5); border-radius: 12px; cursor: pointer; transition: 0.2s; padding: 0 16px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;}
.btn-chat-send:hover { background: var(--color-discord); color: #fff; transform: scale(0.95);}

.feed-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.tab-btn:hover { background: rgba(255, 255, 255, 0.2); }

.tab-btn.active[data-city="all"] { background: var(--text-main); color: #000; border-color: var(--text-main); }
.tab-btn.tab-auxi.active { background: var(--city-auxi); border-color: var(--city-auxi); color: #000; }
.tab-btn.tab-frevent.active { background: var(--city-frevent); border-color: var(--city-frevent); color: #000; }
.tab-btn.tab-stpol.active { background: var(--city-stpol); border-color: var(--city-stpol); color: #000; }
.tab-btn.tab-pernes.active { background: var(--city-pernes); border-color: var(--city-pernes); color: #fff; }

.sort-btn {
    margin-left: auto;
    background: rgba(51, 193, 255, 0.15) !important;
    border-color: var(--color-cyan) !important;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sort-btn:hover { background: rgba(51, 193, 255, 0.3) !important; }

.scroll-wrapper { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 8px; }

/* ================= CARTES DYNAMIQUES & BOUTONS D'INSCRIPTION ================= */
.dynamic-info-card {
    background: var(--bg-surface-high);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: 0.2s;
    cursor: pointer;
    color: var(--text-main);
    border-left: 4px solid transparent; 
}
.dynamic-info-card:hover { background: var(--bg-surface-hover); transform: scale(0.99); box-shadow: 0 4px 15px rgba(0,0,0,0.3);}
.dynamic-info-card h4 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; line-height: 1.4; }
.dynamic-card-desc { font-size: 0.9rem; color: var(--text-main); line-height: 1.5; }
.dynamic-badge-lieu { background: rgba(255,255,255,0.2); padding: 4px 10px; font-size: 0.75rem; font-weight: 700; border-radius: var(--radius-pill); color: #fff; }

.btn-s-inscrire { 
    margin-top: 16px; 
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: max-content; 
    min-width: 140px;
    padding: 10px 24px; 
    background: rgba(255,255,255,0.05) !important; 
    border: 1px solid var(--glass-border) !important; 
    border-radius: var(--radius-pill); 
    font-family: inherit; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.2s; 
    text-align: center;
}
.btn-s-inscrire:hover { 
    transform: scale(1.03) !important; 
    color: #ffffff !important; 
    border-color: transparent !important;
}

.btn-complet { 
    margin-top: 16px; 
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: max-content; 
    min-width: 140px;
    padding: 10px 24px; 
    background: rgba(255, 59, 48, 0.25); 
    color: var(--color-red); 
    border-radius: var(--radius-pill); 
    border: 1px solid rgba(255, 59, 48, 0.4); 
    font-weight: 700; 
    text-align: center; 
    cursor: not-allowed; 
}

/* ================= MODALES ONE UI GLASS ================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; z-index: 1000; transition: 0.3s; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.one-dialog { background: var(--bg-surface); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.5); transform: scale(1); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.hidden .one-dialog { transform: scale(0.95) translateY(20px); }

.border-top-cyan { border-top: 4px solid var(--color-cyan); }
.btn-close-circle { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center;}
.btn-close-circle:hover { background: rgba(255,255,255,0.2); color: var(--text-main); }

.dialog-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.dialog-text { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.dialog-subtitle { color: var(--text-muted); font-weight: 600; text-align: center; margin-bottom: 24px; font-size: 1.05rem; }

.one-form { display: flex; flex-direction: column; gap: 16px; }
.input-container { position: relative; width: 100%; }
.one-input { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); padding: 20px 16px 8px 16px; color: var(--text-main); font-family: inherit; font-size: 1rem; border-radius: var(--radius-sm); transition: 0.2s; }
.one-input:focus { outline: none; border-color: var(--color-cyan); background: rgba(0,0,0,0.4); }
.one-label { position: absolute; left: 16px; top: 16px; color: var(--text-muted); font-size: 1rem; transition: 0.2s; pointer-events: none; }
.one-input:focus ~ .one-label, .one-input:not(:placeholder-shown) ~ .one-label { top: 6px; font-size: 0.75rem; color: var(--color-cyan); font-weight: 600;}

.btn-pill { padding: 14px 24px; border-radius: var(--radius-pill); border: none; font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; text-align: center;}
.btn-pill:hover { transform: scale(0.98); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--text-main); border: 1px solid var(--glass-border);}
.btn-cyan { background: var(--color-cyan); color: #000; }
.btn-orange { background: var(--color-orange); color: #000; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

.zoom-dialog { max-width: 600px; padding: 24px; }
.dynamic-info-card.zoomed-card { background: transparent; padding: 0; border: none; box-shadow: none;}
.dynamic-info-card.zoomed-card h4 { font-size: 1.4rem; margin-bottom: 16px; }
.dynamic-info-card.zoomed-card .btn-s-inscrire { padding: 14px 30px; font-size: 1.05rem; }

.large-dialog { max-width: 700px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); padding: 16px; border-radius: var(--radius-sm); }
.contact-card h3 { color: var(--color-magenta); margin-bottom: 8px; font-size: 1.1rem; }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5;}

.full-dialog { max-width: 1200px; height: 90vh; display: flex; flex-direction: column; padding: 24px; }
.one-iframe { flex-grow: 1; border: none; border-radius: var(--radius-sm); width: 100%; background: #fff; margin-top: 16px; opacity: 0.95;}
.auto-dialog { max-width: max-content; padding: 16px; }
.one-img { max-width: 100%; border-radius: var(--radius-sm); }

/* ================= TOASTS & COOKIES & TOOLTIPS ================= */
.toast-container { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 99999; pointer-events: none; }
.toast { background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: var(--radius-pill); padding: 12px 24px; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(20px); transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { color: var(--color-green); }
.toast-error { color: var(--color-red); }
.toast-message { color: var(--text-main); }

.one-tooltip { position: fixed; z-index: 10000; background: var(--text-main); color: #000; border-radius: 8px; padding: 6px 12px; font-size: 0.8rem; font-weight: 700; pointer-events: none; transition: opacity 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.one-tooltip.hidden { opacity: 0; }

.cookie-sheet { position: fixed; bottom: 24px; right: 24px; width: 360px; background: var(--bg-surface); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.6); padding: 24px; z-index: 9999; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cookie-sheet.hidden { opacity: 0; transform: translateY(100px); pointer-events: none; }
.cookie-text h3 { color: var(--color-cyan); margin-bottom: 8px; font-weight: 700; font-size: 1.2rem;}
.cookie-text p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions button { flex: 1; }

/* ================= LOADER ================= */
.loader-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.8); backdrop-filter: blur(20px); transition: 0.6s ease-out; }
.loader-overlay.fade-out { opacity: 0; visibility: hidden; }
.loader-surface { background: var(--bg-surface); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.loader-video { width: 350px; max-width: 100%; border-radius: var(--radius-sm); margin-bottom: 24px; }
.loader-percentage { font-size: 3.5rem; font-weight: 800; color: var(--color-cyan); letter-spacing: -2px;}
.loader-text { font-size: 1rem; font-weight: 500; color: var(--text-muted); margin-top: 8px; }
.loader-bar-container { width: 100%; height: 6px; border-radius: 10px; margin-top: 24px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: var(--color-cyan); transition: 0.1s; box-shadow: 0 0 10px var(--color-cyan);}

/* ================= ACCESSIBILITÉ ================= */
body.a11y-high-contrast .sidebar, body.a11y-high-contrast .action-surface, body.a11y-high-contrast .feed-surface { background: #000; border: 2px solid #fff; backdrop-filter: none; }
body.a11y-large-text { font-size: 115%; }
body.a11y-dyslexia * { font-family: 'Comic Sans MS', sans-serif !important; letter-spacing: 0.05em; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .actions-wrapper { grid-template-columns: 1fr; }
    .feed-grid { grid-template-columns: repeat(2, 1fr); }
    .feed-surface:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
    /* Libération de la hauteur pour les écrans < 900px (tablettes & téléphones) */
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }
    .app-layout { 
        flex-direction: column; 
        height: auto;
        min-height: 100vh;
    }
    .sidebar { 
        width: 100%; 
        border-right: none; 
        border-bottom: 1px solid var(--glass-border); 
        max-height: none; 
        box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    }
    .sidebar-scroll { 
        padding: 16px; 
        overflow-y: visible; 
    }
    .locations-pill-list { display: none; }
    .brand-container { 
        margin-bottom: 16px; 
        flex-direction: row; 
        gap: 16px; 
        justify-content: center; 
        text-align: left; 
    }
    .main-logo { width: 80px; height: 80px; }
    .quick-links { flex-direction: row; flex-wrap: wrap; width: 100%;}
    .one-btn-flat { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 8px;}
    
    .main-content { 
        overflow: visible; 
        height: auto; 
    }
    .feed-grid { 
        overflow: visible; 
        min-height: auto; 
    }
    .feed-column { min-height: auto; }
    /* On force une hauteur minimum aux tuiles pour qu'elles aient de la place pour défiler en interne */
    .feed-surface { min-height: 350px; }
}

@media (max-width: 600px) {
    .brand-container { flex-direction: column; text-align: center; }
    .main-logo { width: 100px; height: 100px; }
    .actions-wrapper { grid-template-columns: 1fr; gap: 20px; }
    
    /* On empile tout sur smartphone en mode portrait */
    .feed-grid { 
        display: flex; 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .action-subgrid { grid-template-columns: repeat(2, 1fr); }
    .one-btn-flat { flex: 1 1 100%; }
    .cookie-sheet { width: 90%; right: 5%; bottom: 5%; }
    .feed-surface { min-height: 400px; }
    .numi-popup { width: 90vw; left: 50%; transform: translateX(-50%); }
    .modal-overlay .one-dialog { width: 95%; padding: 20px; }
}

/* ================= NUMI IA ================= */
.numi-trigger {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: 0.3s;
}
.numi-trigger:hover {
    background: rgba(51, 193, 255, 0.15);
    border-color: var(--color-cyan);
}
.numi-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.numi-welcome-bubble {
    position: absolute;
    top: calc(100% + 15px);
    right: 0; 
    width: max-content;
    max-width: 220px;
    background: rgba(22, 24, 30, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--color-cyan);
    color: var(--text-main);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-5px);
}
.numi-welcome-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.numi-welcome-bubble.hidden-permanent {
    display: none !important;
}
.numi-welcome-bubble::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 16px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--color-cyan) transparent;
}

.numi-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    background: #16181e; /* Opacité à 100% pour cacher le texte derrière */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}
.numi-popup.hidden {
    display: none !important;
}

.numi-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #0d0f13; /* Couleur unie opaque */
    border-bottom: 1px solid var(--glass-border);
}
.numi-popup-header img { width: 24px; height: 24px; }
.numi-popup-header span {
    flex-grow: 1;
    font-weight: 700;
    color: var(--color-cyan);
}
.numi-chat-content {
    height: 280px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.numi-msg {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
}
.numi-msg.bot {
    background: rgba(51, 193, 255, 0.25); 
    border: 1px solid rgba(51, 193, 255, 0.5);
    align-self: flex-start;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}
.numi-msg.user {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    align-self: flex-end;
    color: var(--text-main);
    border-bottom-right-radius: 4px;
}
.numi-input-row {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--glass-border);
    background: #0d0f13; /* Couleur unie opaque */
}
.numi-input-row input {
    flex-grow: 1;
    background: #232630; /* Fond opaque pour la zone de saisie */
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    outline: none;
}
.numi-input-row input:focus { border-color: var(--color-cyan); }
.numi-input-row button {
    background: rgba(51, 193, 255, 0.2);
    color: var(--color-cyan);
    border: 1px solid rgba(51, 193, 255, 0.5);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: 0.2s;
}
.numi-input-row button:hover {
    background: var(--color-cyan);
    color: #000;
}