* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #202124;
    background: #fff;
}

/* ══════ HOME PAGE ══════ */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.home-bg {
    position: absolute;
    inset: 0;
    background: url('/static/logo.jpg') center center / contain no-repeat;
    opacity: 0.30;
    filter: blur(1px) grayscale(20%);
    pointer-events: none;
    z-index: 0;
}

.home-container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 580px;
    padding: 0 20px;
    margin-top: -60px;
}

/* ── Brand title ── */
.brand {
    font-size: 82px;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -3px;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(26, 115, 232, 0.15);
    user-select: none;
}

.brand-s {
    color: #1a73e8;
    font-style: italic;
}

.brand-33 {
    color: #5f6368;
    font-size: 0.55em;
    vertical-align: 0.12em;
    letter-spacing: -1px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
}

.brand-d {
    color: #1a73e8;
    font-style: italic;
}

.search-form {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 10px 16px;
    transition: box-shadow 0.2s;
    background: #fff;
}

.search-box:hover,
.search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: transparent;
}

.search-icon {
    color: #9aa0a6;
    flex-shrink: 0;
    margin-right: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    background: transparent;
}

.search-box input::placeholder {
    color: #9aa0a6;
}

.search-buttons {
    margin-top: 20px;
}

.search-buttons button {
    background: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    color: #3c4043;
    cursor: pointer;
    margin: 0 4px;
}

.search-buttons button:hover {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    border-color: #dadce0;
    background: #f8f9fa;
}

.tagline {
    color: #70757a;
    font-size: 13px;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

.tagline-sep {
    color: #1a73e8;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* ══════ RESULTS PAGE ══════ */
.results-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #ebebeb;
    gap: 24px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.header-logo {
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

.header-search {
    flex: 1;
    max-width: 680px;
}

.search-box.compact {
    padding: 8px 14px;
}

.search-box.compact input {
    font-size: 15px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a73e8;
    padding: 4px;
    display: flex;
}

.results-main {
    max-width: 720px;
    padding: 16px 20px 40px 160px;
}

@media (max-width: 768px) {
    .results-main {
        padding: 16px 16px 40px;
    }
}

.results-stats {
    color: #70757a;
    font-size: 13px;
    margin-bottom: 16px;
}

.answer-box {
    background: #f0f7ff;
    border: 1px solid #d2e3fc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.answer-label {
    font-size: 12px;
    font-weight: 600;
    color: #1a73e8;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.answer-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
}

/* ══════ SERVICE CARD (public services) ══════ */
.service-card {
    background: #f8f9ff;
    border: 1px solid #c6d4f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    max-width: 600px;
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.service-card-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.service-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1a3a6b;
}

.service-card-title a {
    color: inherit;
    text-decoration: none;
}

.service-card-title a:hover {
    text-decoration: underline;
}

.service-card-desc {
    font-size: 13px;
    color: #5f6368;
    margin: 0;
}

.service-card-meta {
    margin-bottom: 14px;
}

.service-card-hours {
    font-size: 13px;
    color: #3c4043;
}

.service-card-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.service-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    background: #e8eef8;
    border: 1px solid #c6d4f0;
    color: #1a3a6b;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.service-phone-btn:hover {
    background: #d0daf0;
}

.service-phone-btn strong {
    font-weight: 700;
    color: #1a73e8;
}

.service-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e0e4ea;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dadce0;
    color: #1a73e8;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.service-link:hover {
    background: #f1f3f4;
    border-color: #1a73e8;
}

.service-link-official {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.service-link-official:hover {
    background: #1557b0;
}

.crawl-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #2e7d32;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-item {
    max-width: 600px;
}

.result-url {
    font-size: 12px;
    color: #202124;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-item h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 4px;
}

.result-item h3 a {
    color: #1a0dab;
    text-decoration: none;
}

.result-item h3 a:hover {
    text-decoration: underline;
}

.result-item h3 a:visited {
    color: #681da8;
}

.result-snippet {
    font-size: 14px;
    line-height: 1.5;
    color: #4d5156;
}

.no-results {
    padding: 40px 0;
    color: #5f6368;
    font-size: 15px;
}

/* ══════ PAGINATION ══════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 0 12px;
    margin-top: 8px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
    transition: background 0.15s;
}

.page-link:hover {
    background: #f1f3f4;
}

.page-current {
    background: #1a73e8;
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}

.page-prev, .page-next {
    font-weight: 500;
    padding: 0 16px;
}

.results-footer {
    text-align: center;
    padding: 20px;
    color: #70757a;
    font-size: 12px;
    border-top: 1px solid #ebebeb;
}

/* ══════ RESULTS LAYOUT (main + sidebar) ══════ */
.results-layout {
    display: flex;
    gap: 32px;
    max-width: 1340px;
    padding: 0 20px;
}

.results-layout .results-main {
    flex: 1;
    min-width: 0;
    padding: 16px 0 40px 140px;
}

/* ── Sidebar ── */
.sidebar {
    width: 430px;
    flex-shrink: 0;
    padding-top: 16px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a73e8;
    display: inline-block;
}

.sidebar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sidebar-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #202124;
    background: #f8f9fa;
    transition: box-shadow 0.2s, transform 0.15s;
    border: 1px solid #e8eaed;
}

.sidebar-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.card-thumb {
    height: 80px;
    background-color: #e8eaed;
    overflow: hidden;
    position: relative;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.card-thumb-img.fallback {
    object-fit: contain;
    padding: 16px;
    background: #f0f2f5;
}

.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.06));
    pointer-events: none;
}

.card-body {
    padding: 6px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.card-favicon {
    position: absolute;
    top: -14px;
    left: 8px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    padding: 2px;
}

.card-source {
    font-size: 10px;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-top: 4px;
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a0dab;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Sidebar links ── */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a0dab;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.sidebar-link:hover {
    background: #f0f7ff;
}

.sidebar-link-icon {
    flex-shrink: 0;
    border-radius: 2px;
}

.sidebar-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Responsive: hide sidebar on small screens ── */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    .results-layout .results-main {
        padding-left: 16px;
    }
}

@media (max-width: 768px) {
    .results-layout {
        padding: 0 12px;
    }
    .results-layout .results-main {
        padding: 16px 0 40px;
    }
}

/* ══════ HOME with NEWS FEED ══════ */
.home-feed {
    display: block;
    min-height: 100vh;
    align-items: initial;
    justify-content: initial;
    overflow: visible;
    background: #f8f9fa;
}

.home-feed .home-bg {
    position: fixed;
    opacity: 0.05;
    z-index: 0;
}

.home-hero {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 20px 8px;
}

.home-hero .brand {
    font-size: 62px;
    margin-bottom: 22px;
}

.home-hero .tagline {
    margin-top: 12px;
}

/* ── Feed layout (news + weather aside) ── */
.feed-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 28px;
    max-width: 1640px;
    margin: 24px auto 0;
    padding: 0 24px 64px;
    align-items: flex-start;
}

.feed-main {
    flex: 1;
    min-width: 0;
}

.feed-title {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a73e8;
    display: inline-block;
}

.feed-empty {
    color: #5f6368;
    font-size: 14px;
    padding: 24px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 16px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.news-card-thumb {
    height: 150px;
    background: #eef1f5;
    overflow: hidden;
    position: relative;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-thumb.noimg {
    background: linear-gradient(135deg, #e8eef8, #d6e2f5);
}

.news-card-thumb.noimg::after {
    content: 'S33D';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    color: #b3c4e0;
}

.news-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #202124;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-snippet {
    font-size: 13px;
    line-height: 1.45;
    color: #5f6368;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    font-size: 12px;
    color: #70757a;
    margin-top: auto;
}

.news-card-source {
    font-weight: 600;
    color: #1a73e8;
}

.news-card-dot {
    margin: 0 5px;
}

/* ── Weather widget ── */
.feed-aside {
    width: 280px;
    flex-shrink: 0;
}

.weather-widget {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 18px 20px;
}

.weather-place {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
}

.weather-now {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.weather-icon {
    font-size: 40px;
    line-height: 1;
}

.weather-temp {
    font-size: 42px;
    font-weight: 700;
    color: #202124;
}

.weather-label {
    font-size: 13px;
    color: #5f6368;
    margin-top: 2px;
}

.weather-days {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eceff2;
}

.weather-day {
    text-align: center;
    flex: 1;
}

.weather-day-name {
    font-size: 11px;
    color: #70757a;
    text-transform: capitalize;
}

.weather-day-icon {
    font-size: 18px;
    margin: 4px 0;
}

.weather-day-max {
    font-size: 13px;
    font-weight: 600;
    color: #202124;
}

.weather-day-min {
    font-size: 12px;
    color: #9aa0a6;
}

@media (max-width: 900px) {
    .feed-wrap {
        flex-direction: column;
    }
    .feed-aside {
        width: 100%;
        order: -1;
    }
    .weather-widget {
        position: static;
    }
}

/* ── Dépêches défilantes (ticker) ── */
.news-ticker {
    position: relative;
    z-index: 1;
    max-width: 1640px;
    margin: 14px auto 0;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Bandeau dépêches sur fond blanc */
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ticker-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #0d2b6b;
    background: #e8f0fe;
    padding: 5px 12px;
    border-radius: 14px;
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 180s linear infinite;
}

.ticker-viewport:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    color: #0d2b6b; /* texte bleu foncé */
    text-decoration: none;
    font-size: 13px;
}

.ticker-item b,
.ticker-src {
    color: #0d2b6b; /* source en bleu foncé */
}

.ticker-title {
    color: #c1121f; /* titres en rouge */
    font-weight: 700; /* + gras */
}

.ticker-item:hover {
    text-decoration: underline;
}

.ticker-sep {
    color: #0d2b6b;
    margin: 0 14px;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Widgets de la colonne droite (sport, etc.) ── */
.side-widget {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 16px;
}

.side-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eceff2;
}

.sport-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.sport-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #202124;
}

.sport-team-away {
    justify-content: flex-end;
    text-align: right;
}

.sport-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sport-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.sport-score {
    font-weight: 700;
    font-size: 15px;
    color: #1a73e8;
    flex-shrink: 0;
}

.sport-meta {
    font-size: 11px;
    color: #9aa0a6;
    text-align: center;
    margin: 3px 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f4;
}

.sport-meta:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Widget Bourse ── */
.stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    font-size: 13px;
}

.stock-name {
    color: #202124;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-price {
    color: #3c4043;
    font-variant-numeric: tabular-nums;
}

.stock-chg {
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 66px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Widgets RSS (ciné / jeux) ── */
.rss-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.rss-item {
    display: flex;
    gap: 9px;
    align-items: center;
    text-decoration: none;
    color: #202124;
}

.rss-thumb {
    width: 56px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f5;
    flex-shrink: 0;
}

.rss-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rss-title {
    font-size: 12.5px;
    line-height: 1.3;
    color: #202124;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rss-item:hover .rss-title {
    color: #1a73e8;
}

/* ══════ HOME : fond vidéo + bannière (2026-06-17) ══════ */
#bg-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}
.home-feed { background: transparent !important; }
/* PAS de voile : la vidéo doit être pleinement visible (demande user 2026-06-17). */
.home-feed .home-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: transparent;
    opacity: 1;
    filter: none;
}
.home-hero .brand-logo { display: block; text-decoration: none; }
.brand-banner {
    display: block;
    width: 100%;
    max-width: min(92vw, 600px);
    height: auto;
    margin: 0 auto 18px;
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.30);
}
/* Texte flottant lisible sur la vidéo (sans voile) : blanc + ombre portée. */
.home-feed .tagline,
.home-feed .feed-title {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
/* Bandeau dépêches sur fond blanc : pas d'éclaircissement ni d'ombre (texte foncé lisible) */
.home-feed .ticker-item { color: #0d2b6b; text-shadow: none; }
.home-feed .ticker-item b, .home-feed .ticker-src { color: #0d2b6b; }
.home-feed .ticker-title { color: #c1121f; font-weight: 700; }

/* Sélecteur de ville manuel (repli météo : nom ou code postal) */
.weather-change { margin-top: 10px; background: #fff; border: 1px solid #e8eaed; border-radius: 12px; padding: 10px 14px; text-align: center; }
.weather-change-btn { background: none; border: none; color: #1a73e8; font-size: 12px; cursor: pointer; padding: 2px 4px; }
.weather-change-btn:hover { text-decoration: underline; }
.weather-change-form { display: flex; gap: 6px; margin-top: 8px; }
.weather-change-form input { flex: 1; min-width: 0; border: 1px solid #dfe1e5; border-radius: 8px; padding: 7px 10px; font-size: 13px; outline: none; }
.weather-change-form input:focus { border-color: #1a73e8; }
.weather-change-form button { background: #1a73e8; color: #fff; border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; }

/* Rotation continue des actus : fondu doux au remplacement d'une carte */
.home-feed .news-card { transition: opacity 0.4s ease, box-shadow 0.2s, transform 0.15s; }

/* ══════ BANDEAU LÉGAL RÉUTILISABLE (style Google) ══════ */
/* Épinglé en bas de l'écran → toujours visible, même sans avoir scrollé. */
.s33d-legal-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    padding: 10px 24px;
    background: rgba(13, 17, 23, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}
/* Réserve la hauteur du bandeau fixe (accueil uniquement) pour ne rien masquer. */
body.home-feed {
    padding-bottom: 46px;
}
.s33d-legal-bar .s33d-legal-brand { color: #9aa0a6; }
.s33d-legal-bar a { color: #c9ccd1; text-decoration: none; }
.s33d-legal-bar a:hover { color: #fff; text-decoration: underline; }

/* ══════ PAGES LÉGALES ══════ */
body.legal-page {
    background: #0d1117;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.legal-head { padding: 22px 24px; }
.legal-head .brand-banner { height: 38px; width: auto; display: block; }
.legal-wrap { flex: 1; display: flex; justify-content: center; padding: 8px 20px 44px; }
.legal-card {
    background: #fff;
    width: 100%;
    max-width: 760px;
    border-radius: 14px;
    padding: 40px 44px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
.legal-card h1 { font-size: 30px; font-weight: 800; color: #202124; letter-spacing: -0.5px; }
.legal-updated { margin-top: 6px; color: #80868b; font-size: 13px; }
.legal-card h2 { font-size: 18px; font-weight: 700; color: #202124; margin: 28px 0 8px; }
.legal-card p, .legal-card li { color: #3c4043; line-height: 1.65; font-size: 15px; }
.legal-card ul { margin: 8px 0 0 20px; }
.legal-card a { color: #1a73e8; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-back { margin-top: 32px; padding-top: 20px; border-top: 1px solid #ececec; }
@media (max-width: 640px) {
    .legal-card { padding: 28px 22px; }
}

