        html, body { min-height: 101vh; }
        body { font-family: 'Courier New', monospace; max-width: none; margin: 0; padding: 20px; box-sizing: border-box; transition: background 0.5s, color 0.5s; }
        .container { border: 1px solid; padding: 20px; transition: background 0.5s, border-color 0.5s; }
        h1 { text-align: center; font-size: 22px; margin-bottom: 20px; border-bottom: 1px dashed; padding-bottom: 15px; letter-spacing: 2px; }
        
        /* Conteneur des annonces actives */
        .annonces-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
        .annonce-marc-box { border: 1px dashed #ff3333; padding: 12px; font-size: 14px; line-height: 1.4; }
        .annonce-marc-title { color: #ff3333; font-weight: bold; margin-bottom: 5px; text-transform: uppercase; }
        .annonce-marc-text { color: inherit; font-weight: normal; }
        /* Ajustement du thème jour pour l'annonce rouge */
        .theme-jour .annonce-marc-box { border-color: #cc0000; }
        .theme-jour .annonce-marc-title { color: #cc0000; }

        .menu-activites { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
        .btn-activite { background: transparent; border: 1px solid; padding: 15px; text-align: center; text-decoration: none; font-weight: bold; font-size: 16px; text-transform: uppercase; transition: all 0.3s ease; }
        .flux-accueil { display: grid; gap: 9px; margin: 0 0 25px; }
        .flux-item { display:block; border:1px dashed; padding:10px; text-decoration:none; color:inherit; font-size:13px; line-height:1.35; }
        .flux-item strong { display:block; margin-bottom:4px; font-size:12px; }
        .flux-item-chat { border-style:solid; cursor:pointer; background:transparent; text-align:left; font:inherit; }
        .app-download { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:25px 0 0; padding:18px 20px; border:1px solid; border-radius:18px; color:inherit; text-decoration:none; background:linear-gradient(135deg,rgba(40,110,103,.16),rgba(96,74,171,.12)); box-shadow:0 10px 28px rgba(0,0,0,.08); }
        .app-download strong { display:block; margin-bottom:5px; font-size:16px; }
        .app-download small { display:block; line-height:1.45; opacity:.75; }
        .app-download-action { flex:0 0 auto; padding:10px 14px; border:1px solid; border-radius:999px; font-weight:bold; white-space:nowrap; }
        .postit { min-height:120px; padding:16px; background:#fff6a8; color:#3c3836; border:1px solid #c9b84f !important; box-shadow:5px 5px 0 rgba(60,56,54,.2) !important; border-radius:4px 18px 7px 13px !important; font:15px/1.45 "Courier New",monospace; transform:rotate(-.4deg); outline:none; }
        .postit:focus { box-shadow:5px 5px 0 rgba(60,56,54,.2),0 0 0 2px #af3a03 !important; }
        .theme-nuit .postit { background:#1a2a0a !important; color:#b8f5a0 !important; border-color:#2a5a1a !important; box-shadow:5px 5px 0 rgba(0,255,100,.12) !important; }
        .theme-nuit .postit:focus { box-shadow:5px 5px 0 rgba(0,255,100,.12),0 0 0 2px #00ff66 !important; }
        .nav-integrated { margin: 10px 0 25px; }
        .nav-preview-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 0 8px; }
        .nav-integrated .section-title { margin: 0 0 4px !important; padding: 0 !important; }
        .nav-integrated small { opacity: .65; }
        .nav-preview-link { font-size:13px; font-weight:700; text-decoration:none; white-space:nowrap; }
        .nav-live { margin-top: 8px; }
        .nav-live .nav-live-msg { text-align: center; padding: 30px 10px; }
        .nav-live .nav-live-recap { text-align: center; margin: 4px 0 14px; }
        .nav-live .nav-live-recap .recap-temp { font-size: 1.7em; font-weight: bold; }
        .nav-live .nav-live-recap .recap-water { font-size: 1.15em; font-weight: bold; margin-left: 12px; }
        .nav-live h2 { margin: 0 0 8px; padding: 10px; border: 1px solid; border-radius: 16px; font-size: 1.2em; text-align: center; }
        .nav-live .sun-info { display: block; margin-top: 5px; font-size: 0.8em; font-style: italic; opacity: 0.65; }
        .nav-live .maree-info { display: block; margin-top: 8px; font-size: 0.85em; font-weight: normal; }
        .nav-live .maree-src { font-weight: bold; }
        .nav-live .maree-ta { color: #2f7d72; }
        .nav-live .baignable-label { font-weight: 800 !important; }
        .nav-live .nav-live-min-nuit { display: block; font-size: 0.8em; margin-top: 5px; opacity: 0.7; }
        .nav-live table { width: 100%; }
        .nav-live th, .nav-live td { padding: 6px 3px !important; text-align: center; font-size: 0.85em; word-wrap: break-word; }
        .nav-live .now-row { border: 2px solid currentColor !important; font-weight: bold; background-color: rgba(128,128,128,0.08); }
        .nav-live .meteo-cell { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
        .nav-live .picto { font-size: 1.4em; }
        .nav-live .temp { font-size: 1.1em; font-weight: bold; }
        .nav-live .bft-1-2 { background-color: #add8e6; color: #000; font-weight: bold; }
        .nav-live .bft-3-4 { background-color: #90ee90; color: #000; font-weight: bold; }
        .nav-live .bft-5 { background-color: #ffcc00; color: #000; font-weight: bold; }
        .nav-live .bft-6-plus { background-color: #ff6347; color: #fff; font-weight: bold; }
        .nav-live .arrow { display: inline-block; font-size: 1.8em; font-weight: bold; }

        .section-title { font-size: 14px; text-transform: uppercase; margin-bottom: 15px; border-left: 3px solid; padding-left: 8px; font-weight: bold; }
        
        /* Météo (carte façon app : La Rochelle, temp, baignade) */
        .meteo-container { margin-bottom: 30px; }
        .meteo-card { border: 2px solid; padding: 17px 20px; text-align: left; }
        .meteo-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
        .meteo-card-main { display: flex; align-items: center; gap: 14px; }
        .meteo-card-icon { font-size: 38px; line-height: 1; }
        .meteo-card-city { font-weight: bold; font-size: 1.05em; }
        .meteo-card-label { font-size: 12px; opacity: .65; }
        .meteo-card-temp { font-size: 34px; font-weight: bold; line-height: 1; }
        .meteo-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
        .meteo-card-water { font-size: 14px; font-weight: 700; }
        .meteo-card-divider { border: 0; border-top: 1px solid; margin: 13px 0 12px; opacity: .25; }
        .meteo-card-baignade { font-weight: bold; font-size: 15px; }
        .meteo-card-baignade-horaire { font-size: 18px; font-weight: 600; margin-top: 2px; }
        .meteo-card-extra { margin: 0; }
        .meteo-card-row { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
        .meteo-cell { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }

        /* Login */
        .login-box { margin: 20px auto; text-align: center; }
        input[type="password"] { background: transparent; padding: 10px; font-family: 'Courier New', monospace; font-size: 16px; outline: none; box-sizing: border-box; border-radius: 0; width: 80%; text-align: center; }
        .error { color: #ff0000; font-weight: bold; margin-top: 10px; }
        .tampon-faux { color: #ff1f1f; border: 6px solid currentColor; display: inline-block; padding: 7px 18px; font-size: clamp(42px, 15vw, 88px); line-height: 1; font-weight: bold; letter-spacing: 6px; transform: rotate(-12deg); text-shadow: 2px 2px 0 rgba(0, 0, 0, .28); margin: 14px 0 28px; }

        /* Sections dashboard */
        .dashboard-section { margin-bottom: 35px; border-top: 1px solid; padding-top: 15px; }
        .dashboard-section a { text-decoration: none; color: inherit; font-weight: bold; }
        
        /* MaJs / Partage */
        .mini-gallerie { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
        .mini-gallerie img { width: 80px; height: 80px; object-fit: cover; border: 1px solid; cursor: pointer; transition: opacity 0.2s; }
        .mini-gallerie img:hover { opacity: 0.8; }
        
        /* Chat */
        .mini-chat { max-height: 150px; overflow-y: auto; font-size: 13px; line-height: 1.4; margin-top: 10px; padding: 5px; border: 1px dashed rgba(128, 128, 128, 0.4); }
        .mini-chat-line { margin-bottom: 5px; }
        .user { font-weight: bold; }

        /* Pense-bête */
        textarea.pense-bete { width: 100%; height: 100px; background: transparent; border: 1px solid; font-family: 'Courier New', monospace; font-size: 13px; color: inherit; padding: 10px; box-sizing: border-box; resize: none; margin-top: 10px; }
        .saved-indicator { font-size: 11px; opacity: 0.6; text-align: right; margin-top: 3px; }

        /* Todo partagé */
        .todo-list-accueil { font-size: 14px; margin-top: 10px; }
        .todo-item { display: flex; align-items: center; margin-bottom: 6px; }
        .todo-item input[type="checkbox"] { margin-right: 10px; cursor: not-allowed; }

        /* Section d'administration pour Marc */
        .marc-admin-panel { margin-top: 25px; border-top: 1px dashed rgba(128,128,128,0.4); padding-top: 15px; font-size: 13px; }
        .marc-admin-panel form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
        .marc-admin-row { display: flex; gap: 10px; }
        .marc-admin-panel input[type="text"] { flex: 1; background: transparent; border: 1px solid; padding: 6px; font-family: 'Courier New', monospace; font-size: 13px; color: inherit; outline: none; }
        .marc-admin-panel select { background: transparent; border: 1px solid; padding: 6px; font-family: 'Courier New', monospace; font-size: 13px; color: inherit; outline: none; cursor: pointer; }
        .marc-admin-panel button { background: transparent; border: 1px solid; padding: 6px 12px; font-family: 'Courier New', monospace; font-size: 13px; color: inherit; cursor: pointer; font-weight: bold; }

        /* Lightbox (visionneuse de l'accueil) */
        .lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; justify-content: center; align-items: center; padding: 10px; box-sizing: border-box; cursor: zoom-out; }
        .lightbox-overlay img { max-width: 100%; max-height: 98vh; object-fit: contain; border: 2px solid; box-shadow: 0 0 20px rgba(0,0,0,0.8); }

        .liens-utiles { display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none; }
        .liens-utiles li a { text-decoration: none; font-size: 14px; }
        .liens-utiles li::before { content: "> "; font-weight: bold; }
        .footer { margin-top: 40px; text-align: center; font-size: 11px; opacity: 0.4; }
        .footer-links { text-align: right; font-size: 12px; margin-top: 15px; }
        .footer-links a { text-decoration: none; color: inherit; font-weight: bold; margin-left: 10px; }

        /* --- THEMES NUIT / JOUR --- */
        html.theme-nuit, body.theme-nuit { background: #000000 !important; color: #00ff00; }
        .theme-nuit .container { border-color: #00ff00; background: #000000 !important; }
        .theme-nuit .btn-activite { color: #00ff00; border-color: #00ff00; }
        .theme-nuit .btn-activite:hover { background: #00ff00; color: #000000; }
        .theme-nuit .section-title { color: #ffffff; border-left-color: #00ff00; }
        .theme-nuit .meteo-card, .theme-nuit textarea.pense-bete, .theme-nuit input[type="password"] { border-color: #00ff00; color: #00ff00; background: #000000; }
        .theme-nuit .meteo-card { background: #000000; }
        .theme-nuit .mini-gallerie img { border-color: #00ff00; }
        .theme-nuit .lightbox-overlay { background: rgba(0, 0, 0, 0.95); }
        .theme-nuit .lightbox-overlay img { border-color: #00ff00; }
        .theme-nuit .dashboard-section { border-top-color: #00ff00; }
        .theme-nuit .marc-admin-panel input[type="text"], .theme-nuit .marc-admin-panel select, .theme-nuit .marc-admin-panel button { border-color: #00ff00; }
        .theme-nuit .marc-admin-panel select option { background: #000000; color: #00ff00; }
        .theme-nuit .user-marc { color: #ff3333; }
        .theme-nuit .user-nat { color: #33ff33; }
        .theme-nuit .user-ella { color: #3366ff; }
        .theme-nuit .user-maceo { color: #b333ff; }
        .theme-nuit .user-florion { color: #ffff33; }
        .theme-nuit .user-invite { color: #8ec07c; }

        .theme-jour { background: #fdfaf2; color: #3c3836; }
        .theme-jour .container { border-color: #bdae93; background: #f5f1e6; }
        .theme-jour .btn-activite { color: #3c3836; border-color: #a89984; background: #fbf1c7; }
        .theme-jour .btn-activite:hover { background: #3c3836; color: #fdfaf2; border-color: #3c3836; }
        .theme-jour .section-title { color: #7c6f64; border-left-color: #af3a03; }
        .theme-jour .meteo-card, .theme-jour textarea.pense-bete, .theme-jour input[type="password"] { border-color: #a89984; background: #fdfaf2; }
        .theme-jour .mini-gallerie img { border-color: #bdae93; }
        .theme-jour .lightbox-overlay { background: rgba(245, 241, 230, 0.95); }
        .theme-jour .lightbox-overlay img { border-color: #bdae93; }
        .theme-jour .dashboard-section { border-top-color: #bdae93; }
        .theme-jour .marc-admin-panel input[type="text"], .theme-jour .marc-admin-panel select, .theme-jour .marc-admin-panel button { border-color: #a89984; }
        .theme-jour .marc-admin-panel select option { background: #fdfaf2; color: #3c3836; }
        .theme-jour .user-marc { color: #cc0000; }
        .theme-jour .user-nat { color: #008800; }
        .theme-jour .user-ella { color: #0000cc; }
        .theme-jour .user-maceo { color: #7700aa; }
        .theme-jour .user-florion { color: #b58900; }
        .theme-jour .user-invite { color: #689d6a; }
        .meteo-jour .meteo-card { border-color:#a89984 !important; color:#3c3836 !important; background:#fdfaf2 !important; }
        @media (min-width: 850px) {
            body > .container { width:min(1080px, calc(100% - 56px)) !important; }
            .menu-activites { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
        }
        @media (max-width: 560px) {
            body { padding:8px; }
            .nav-preview-head { align-items:flex-start; flex-direction:column; }
            .app-download { align-items:flex-start; flex-direction:column; }
        }

        /* Sondages */
        .sondages-grid { display:flex; flex-direction:column; gap:16px; margin-bottom:28px; }
        .sondage-box { border:1px solid; border-radius:6px; padding:18px; margin-bottom:0; }
        .sondage-question { font-weight:bold; font-size:15px; margin-bottom:4px; }
        .sondage-auteur { font-size:11px; opacity:.6; margin-bottom:12px; }
        .sondage-option { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid; border-radius:6px; margin-bottom:8px; cursor:pointer; text-align:left; font:inherit; color:inherit; background:transparent; width:100%; text-transform:none; letter-spacing:0; }
        .sondage-option:hover { opacity:.85; }
        .sondage-option.vote { background: rgba(8,127,140,.12); border-color: #087f8c; }
        .sondage-option-text { font-weight:bold; }
        .sondage-option-votes { font-size:12px; opacity:.75; white-space:nowrap; }
        .sondage-option .bar { position:absolute; left:0; top:0; bottom:0; opacity:.14; z-index:0; }
        .sondage-option > span:not(.bar) { position:relative; z-index:1; }
        .sondage-option { position:relative; overflow:hidden; }
        .sondage-suppr { font-size:11px; opacity:.7; margin-top:4px; text-align:right; }
        .sondage-creer { border:1px dashed; border-radius:6px; padding:14px; margin-top:14px; }
        .sondage-creer-titre { font-size:13px; font-weight:bold; text-transform:uppercase; margin-bottom:10px; opacity:.85; }
        .sondage-input { background:transparent; border:1px solid; border-radius:4px; padding:8px 10px; font:inherit; font-size:14px; width:100%; box-sizing:border-box; margin-bottom:8px; color:inherit; }
        .sondage-creer-actions { display:flex; gap:8px; flex-wrap:wrap; }
        .sondage-creer-btn { cursor:pointer; padding:8px 12px; font:inherit; font-size:13px; font-weight:bold; border:1px solid; border-radius:4px; background:transparent; color:inherit; text-transform:none; letter-spacing:0; }
        .sondage-creer-btn:hover { opacity:.8; }
        .theme-nuit .sondage-box { border-color:#00aa44; background:rgba(0,40,20,.25); }
        .theme-nuit .sondage-option { border-color:#008833; }
        .theme-nuit .sondage-option:hover { background:rgba(0,255,100,.08); }
        .theme-nuit .sondage-option.vote { background:rgba(0,180,80,.18); border-color:#00cc55; }
        .theme-nuit .sondage-option .bar { background:#00ff66; }
        .theme-nuit .sondage-creer { border-color:#008833; }
        .theme-nuit .sondage-creer-btn { border-color:#00aa44; }
        .theme-nuit .sondage-creer-btn:hover { background:rgba(0,255,100,.12); }
        .theme-nuit .sondage-input { border-color:#008833; }
        .theme-nuit .sondage-input:focus { border-color:#00cc55; }
