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

:root {
    --bg-dark: #101012;
    --bg-section: #141416;
    --bg-card: #1a1a1e;
    --bg-card-hover: #212126;
    --text: #e8e8ec;
    --text-muted: #8a8a92;
    --text-dim: #5e5e66;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-glow: rgba(10,132,255,0.16);
    --accent-secondary: #5e9eff;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --green: #30d158;
    --red: #ff453a;
    --gold: #ffd60a;
    --purple: #bf5af2;
    --pink: #ff375f;
    --cyan: #64d2ff;
    --radius: 14px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

/* Transition cross-page automatique (Chrome 126+, Safari 18+). Fallback : rien. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 260ms;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: page-fade-in 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Micro-interactions : léger enfoncement au clic — pas d'écho, pas de "ripple". */
a, button, .btn-nav, .btn-primary, .btn-submit, .card-link, .tile, .auth-card, .chat-send {
    transition: transform 120ms ease-out, opacity 120ms ease-out, background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}
a:active, button:active, .btn-nav:active, .btn-primary:active,
.btn-submit:active, .card-link:active, .tile:active, .auth-card:active {
    transform: scale(0.985);
}

/* Respecter les préférences d'accessibilité — désactive toutes ces micro-anims. */
@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    ::view-transition-old(root),
    ::view-transition-new(root) { animation-duration: 0.01ms; }
    a:active, button:active, .btn-nav:active, .btn-primary:active,
    .btn-submit:active, .card-link:active, .tile:active, .auth-card:active {
        transform: none;
    }
}

/* Le footer est toujours poussé en bas de la fenêtre même si le contenu est court */
.footer {
    margin-top: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(16,16,18,0.62) 0%, rgba(16,16,18,0.38) 60%, rgba(16,16,18,0.05) 100%);
    border-bottom: none;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
    height: 68px;
}

/* Pages publiques (identifier / connexion / inscription) : logo seul, centre */
body.no-nav .nav-links,
body.no-nav .nav-right,
body.no-nav .nav-left {
    display: none !important;
}
body.no-nav .nav-container {
    grid-template-columns: 1fr;
    justify-items: center;
}
body.no-nav .logo {
    grid-column: 1;
    cursor: default;
    pointer-events: none;
}

/* Pages publiques + catégories : titre + cartes regroupés en haut sur l'image.
   Exclut .legal-page qui masque juste la navbar mais garde un flux normal. */
body.no-nav:not(.legal-page) .page-hero,
.page-hero:has(+ section.section .feed-choice) {
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 0;
}
body.no-nav { position: relative; }
body.no-nav:not(.legal-page) .page-hero + section.section {
    position: absolute;
    top: 45vh;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 5;
    padding: 0 0 60px;
    pointer-events: none;
}
body.no-nav:not(.legal-page) .page-hero + section.section > .container {
    pointer-events: auto;
}

.nav-links {
    grid-column: 2;
    justify-self: center;
}

.nav-right {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-left {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
}

.btn-community {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 100px;
    transition: all 0.25s ease;
    letter-spacing: 0.1px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.btn-community:hover {
    background: rgba(10,132,255,0.12);
    border-color: rgba(10,132,255,0.4);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-community svg {
    color: var(--accent);
    flex-shrink: 0;
}

.btn-community .comm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(10,132,255,0.7);
    animation: comm-pulse 2s ease-in-out infinite;
    margin-left: 2px;
}

@keyframes comm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.7); }
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: baseline;
}

.logo .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    padding: 5px;
}

.nav-links > li > a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 18px;
    border-radius: 100px;
    white-space: nowrap;
}

.nav-links > li > a:hover {
    background: rgba(255,255,255,0.14);
    color: var(--text);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28,28,32,0.85);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 100px;
    padding: 6px;
    min-width: 180px;
    list-style: none;
    margin-top: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 9px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 100px;
    text-align: center;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.btn-nav {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 7px 16px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 100px;
    transition: all 0.3s;
    letter-spacing: 0.2px;
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: 0.3s;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 140px;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1400&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(16,16,18,0.5) 0%,
        rgba(16,16,18,0.7) 40%,
        rgba(16,16,18,0.92) 75%,
        var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    padding-top: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: hero-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    font-size: 0.68rem;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 40px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
}
.hero-tag .tag-line {
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10,132,255,0.55), transparent);
    display: inline-block;
}

.hero h1 {
    font-family: 'Instrument Serif', 'Times New Roman', serif;
    font-size: clamp(3rem, 7.4vw, 6rem);
    font-weight: 400;
    line-height: 1;
    max-width: 980px;
    margin-bottom: 36px;
    letter-spacing: -2px;
    color: var(--text);
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.btn-primary {
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: -0.1px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.hero-sub {
    max-width: 560px;
    color: rgba(255,255,255,0.62);
    font-size: 1.02rem;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.1px;
}

/* TICKER */
.hero-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(16,16,18,0.6) 0%, rgba(16,16,18,0.3) 60%, rgba(16,16,18,0) 100%);
    padding-top: 40px;
    border-top: none;
    overflow: hidden;
    z-index: 2;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 20s linear infinite;
}

.ticker-list {
    display: flex;
    gap: 40px;
    padding: 12px 0;
    padding-right: 40px;
    flex-shrink: 0;
}

.ticker-item {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
    letter-spacing: 0.2px;
}

.ticker-item i {
    font-style: normal;
    margin-left: 5px;
    font-weight: 600;
    font-size: 0.72rem;
}

.ticker-item.up i {
    color: var(--green);
}

.ticker-item.down i {
    color: var(--red);
}

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

/* PAGE HERO (sub-pages) */
.page-hero {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 100px;
    background: var(--bg-section) center/cover no-repeat;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pages catégories : archives supprimées + cartes de choix superposées sur le hero */
[id^="archives-"] {
    display: none;
}

.page-hero + section.section:has(.feed-choice:not([hidden])) {
    position: absolute;
    top: 45vh;
    left: 0;
    right: 0;
    z-index: 5;
    background: transparent;
    padding-top: 0;
    padding-bottom: 40px;
    pointer-events: none;
}

.page-hero + section.section:has(.feed-choice) > .container {
    pointer-events: auto;
}

.page-hero + section.section:has(.feed-choice) .section-header {
    display: none;
}

/* Quand un flux est révélé (posts affichés) → repositionner la section pour laisser lire les posts */
.page-hero + section.section:has(.feed-reveal:not([hidden])) {
    margin-top: 40px;
    padding-top: 40px;
}

/* Flux Swift / Nos analyses révélé : hero compact comme sur apropos/contact */
.page-hero:has(+ section.section .feed-reveal:not([hidden])) {
    min-height: 52vh;
    padding: 140px 0 40px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(16,16,18,0.5) 0%,
        rgba(16,16,18,0.7) 40%,
        rgba(16,16,18,0.92) 75%,
        var(--bg-dark) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: var(--text);
}

.page-hero .hero-sub {
    max-width: 520px;
    margin: 0 auto;
    font-weight: 300;
}

.page-hero .hero-tag {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}

/* SECTIONS */
.section {
    padding: 120px 0;
}

.section-alt {
    background: var(--bg-section);
}

.section-header {
    margin-bottom: 56px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
    font-weight: 300;
}

.feed-empty {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
    padding: 48px 12px;
    grid-column: 1 / -1;
}

/* FEED / CARDS */
.feed {
    display: none;
    gap: 20px;
}

.feed.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    justify-content: center;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border-hover);
    background: var(--bg-card-hover);
}

/* BADGE NOUVEAU */
.card-is-new {
    border-color: rgba(10, 132, 255, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(10,132,255,0.25);
}
.card-new-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(10,132,255,0.3);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
.card-new-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    background: rgba(10,132,255,0.12);
    border: 1px solid rgba(10,132,255,0.3);
    border-radius: 100px;
    padding: 2px 8px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px rgba(10,132,255,0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(10,132,255,0); }
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.08);
}

.card-badge.oblig { color: var(--cyan); }
.card-badge.immo { color: var(--green); }
.card-badge.metal { color: var(--gold); }
.card-badge.crypto { color: var(--purple); }
.card-badge.nft { color: var(--pink); }

.card-img {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-img {
    transform: scale(1.04);
}

.card-body {
    padding: 22px 22px 20px;
}

.card-date {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.35;
    letter-spacing: -0.3px;
    color: var(--text);
}

.card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    font-weight: 300;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.2px;
}

.read-time {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ARTICLE PAGE */
.article-page {
    padding-top: 68px;
}

.article-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16,16,18,0.2) 0%, rgba(16,16,18,0.94) 100%);
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.article-meta-top .card-badge {
    position: static;
}

.article-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta-top .read-time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 800px;
}

.article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 56px 0 100px;
}

.article-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 40px;
    border-left: 2px solid var(--accent);
    padding-left: 24px;
}

.article-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 48px 0 16px;
    letter-spacing: -0.3px;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ARTICLE FEED / TIMELINE */
.article-feed {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 0 100px;
}

/* ============================================================
   FEED-POST — carte de contenu premium (article.html)
   DA liquid glass + bande accent gauche + halo bleu subtil +
   drop cap magazine sur le 1er paragraphe.
   ============================================================ */
.feed-post {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05) inset,
        0 20px 60px rgba(0,0,0,0.35);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Halo radial bleu — donne de la profondeur, discret */
.feed-post::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 340px; height: 340px;
    background: radial-gradient(circle at top right, rgba(10,132,255,0.09) 0%, transparent 62%);
    pointer-events: none;
    z-index: 0;
}

/* Bande d'accent gauche — signature verticale bleue façon Up$hift */
.feed-post::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, var(--accent) 22%, var(--accent) 78%, transparent 100%);
    opacity: 0.55;
    transition: opacity 0.35s ease, width 0.35s ease;
    z-index: 1;
}

.feed-post > * { position: relative; z-index: 1; }

.feed-post:hover {
    border-color: rgba(255,255,255,0.14);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 26px 70px rgba(0,0,0,0.42);
}
.feed-post:hover::after {
    opacity: 1;
    width: 4px;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.feed-post-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--bg-dark);
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(10,132,255,0.28), 0 6px 18px rgba(10,132,255,0.22);
}

.feed-post-meta {
    flex: 1;
}

.feed-post-meta span {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.feed-post-img {
    width: 100%;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.feed-post-img:hover { opacity: 0.92; transform: scale(1.005); }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.93);
    align-items: center;
    justify-content: center;
}
.lightbox.open {
    display: flex;
    animation: lb-in 0.25s ease;
}
.lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 94vw;
    max-height: 94vh;
}
.lightbox-inner img {
    max-width: 94vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
    display: block;
    animation: lb-scale 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-hint {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
@keyframes lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes lb-scale {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.feed-post-body {
    padding: 22px 24px 6px;
}

.feed-post-body p {
    font-size: 0.94rem;
    line-height: 1.72;
    color: #f2f2f5;
    font-weight: 400;
    letter-spacing: 0.005em;
    margin-bottom: 14px;
}

.feed-post-body p:last-child {
    margin-bottom: 0;
}

/* Drop cap façon magazine — 1re lettre du 1er paragraphe */
.feed-post-body > p:first-of-type::first-letter {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3.1em;
    font-weight: 400;
    color: var(--accent);
    float: left;
    line-height: 0.88;
    margin: 4px 10px 0 0;
    padding: 0;
}

.feed-post-body p strong,
.feed-post-body p b {
    color: var(--accent);
    font-weight: 600;
}

/* Mentions RGPD sous les formulaires (inscription, contact, newsletter footer) */
.form-legal-note {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 14px;
    text-align: center;
}
.form-legal-note a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.2);
    text-underline-offset: 2px;
}
.form-legal-note a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.footer-newsletter-note {
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-top: 8px;
    line-height: 1.5;
}
.footer-newsletter-note a { color: var(--text-muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.18); }
.footer-newsletter-note a:hover { color: var(--accent); }

.feed-post-body p em,
.feed-post-body p i {
    color: #cfd6e1;
    font-style: italic;
}

.feed-post-tags {
    display: flex;
    gap: 6px;
    padding: 14px 24px 18px;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(0deg, rgba(255,255,255,0.02), transparent);
}

.feed-post-tags .tag {
    border-radius: 100px;
}

@media (max-width: 768px) {
    .article-feed {
        padding: 24px 0 60px;
    }

    .feed-post {
        border-radius: 12px;
    }
}

/* APROPOS */
.apropos-section {
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-dark) 100%);
    position: relative;
}

.apropos-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 56px 64px;
}

@media (max-width: 768px) {
    .apropos-content {
        padding: 32px 28px;
    }
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text);
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 300;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(160,160,168,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-item h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Variante cliquable (Instagram) — retire l'underline par defaut du <a> */
.contact-item-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
.contact-item-link:hover {
    transform: translateX(2px);
}
.contact-item-link:hover .contact-icon {
    background: rgba(10,132,255,0.14);
    border-color: rgba(10,132,255,0.3);
}
.contact-item-link:hover h4 { color: var(--accent); }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dim);
    letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2386868b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: rgba(255,255,255,0.04);
}

.form-group select option {
    background: var(--bg-card);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.1px;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: scale(1.01);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Bandeau succès après envoi du formulaire de contact */
.contact-success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(10,132,255,0.10), rgba(10,132,255,0.04));
    border: 1px solid rgba(10,132,255,0.35);
    border-radius: var(--radius-sm);
    color: var(--text);
}
.contact-success[hidden] { display: none; }
.contact-success svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-success strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-success p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* STATS — chiffres discrets, sans cadre ni séparateurs, accent bleu subtil */
.hero-stats {
    position: relative;
    z-index: 2;
    margin: 60px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 72px;
    align-self: center;
    padding: 0;
    background: none;
    border: none;
    animation: hero-fade-in 1.4s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hero-stat-value {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}
.hero-stat-value::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(10, 132, 255, 0.55);
    display: inline-block;
    transform: translateY(-0.35em);
}
.hero-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}
.hero-stat-sep { display: none; }

@media (max-width: 640px) {
    .hero-stats { gap: 36px; margin-top: 40px; }
    .hero-stat { gap: 4px; }
    .hero-stat-value { font-size: 1.35rem; }
    .hero-stat-label { font-size: 0.52rem; letter-spacing: 1.6px; }
}

/* MENTIONS LÉGALES — bouton retour (identique à .feed-back, visible uniquement pour un visiteur non connecté) */
.legal-back { display: none; text-decoration: none; }
body.no-nav .legal-back { display: inline-flex; }

/* MENTIONS LÉGALES — encart d'ouverture */
.legal-callout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(180deg, rgba(10,132,255,0.09), rgba(10,132,255,0.03));
    border: 1px solid rgba(10,132,255,0.28);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 48px;
}
.legal-callout-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.legal-callout strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.2px;
}
.legal-callout p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.legal-updated {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 72px 0 36px;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(10, 132, 255, 0.08);
}
.footer-social svg {
    flex-shrink: 0;
}

.footer h4 {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 300;
}

.footer ul a:hover {
    color: var(--text);
}

.footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 300;
}

.newsletter-form {
    display: flex;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
}

.newsletter-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-form input {
    flex: 1;
    padding: 11px 14px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    font-weight: 300;
}

.newsletter-form input::placeholder {
    color: var(--text-dim);
}

.newsletter-form button {
    padding: 11px 18px;
    background: var(--accent);
    border: none;
    color: var(--bg-dark);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    text-align: center;
}

/* Article — CTA Instagram en fin de feed */
.feed-insta-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin-top: 32px;
    background: linear-gradient(135deg, rgba(10,132,255,0.09), rgba(191,90,242,0.06));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s;
}
.feed-insta-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(10,132,255,0.4);
}
.feed-insta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feed-insta-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.feed-insta-body strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.1px;
}
.feed-insta-body span {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.feed-insta-arrow {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 500;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.feed-insta-cta:hover .feed-insta-arrow { transform: translateX(4px); }

/* À propos — listes et CTA Instagram */
.apropos-list {
    margin: 12px 0 20px;
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.7;
}
.apropos-list li {
    margin-bottom: 10px;
}
.apropos-list li strong {
    color: var(--text);
    font-weight: 600;
}
.apropos-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(10,132,255,0.08), rgba(10,132,255,0.02));
    border: 1px solid rgba(10,132,255,0.28);
    border-radius: var(--radius);
    flex-wrap: wrap;
}
.apropos-cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(10,132,255,0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.apropos-cta-body {
    flex: 1;
    min-width: 220px;
}
.apropos-cta-body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.apropos-cta-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.apropos-cta-btn {
    padding: 10px 18px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.apropos-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10,132,255,0.35);
}

.footer-legal-link {
    margin-top: 6px;
    font-size: 0.75rem;
}
.footer-legal-link a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 1px;
}
.footer-legal-link a:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.footer-credit {
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.footer-disclaimer {
    max-width: 720px;
    margin: 10px auto 0;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.5;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* BOUTON S'IDENTIFIER / CONTACT SECONDAIRE */
.btn-nav-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.btn-nav-ghost:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text);
    transform: none;
}

/* SE DECONNECTER : version discrete quand utilisateur connecte */
.btn-nav.btn-signout {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.10);
    white-space: nowrap;
}
.btn-nav.btn-signout:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-color: rgba(255,255,255,0.18);
    transform: none;
}

/* ESPACE MEMBRE — PAGE DE CHOIX */
.auth-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.auth-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 36px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    background: var(--bg-card-hover);
}

.auth-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(160,160,168,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
}

.auth-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
    color: var(--text);
}

.auth-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 28px;
    flex: 1;
}

/* FORMULAIRE AUTH (connexion) */
.auth-form-wrap {
    max-width: 420px;
    margin: 0 auto;
}

.auth-form-wrap .contact-form {
    padding: 40px 36px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 500;
}

.auth-switch a:hover {
    color: var(--accent-hover);
}

.auth-note {
    text-align: center;
    margin-top: 18px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 300;
}

/* CHOIX DE FLUX (pages catégories : IA / Mes analyses) */
button.btn-primary {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

/* Ouverture directe d'un flux via ?vue=mine|ia — force le rendu SANS flash
   dès le premier paint (avant même l'exécution de sheets.js) */
html.upshift-direct-open .feed-choice { display: none !important; }
html.upshift-direct-open .feed-reveal { display: block !important; }

.feed-choice[hidden],
.feed-reveal[hidden] {
    display: none;
}

.feed-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s;
    margin-bottom: 28px;
}

.feed-back:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text);
}

.feed-reveal-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 32px;
    color: var(--text);
}

.feed-reveal-hint {
    text-align: center;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.9rem;
    margin-top: -22px;
    margin-bottom: 34px;
}

.feed-reveal-hint[hidden] {
    display: none;
}

/* CARRÉS PAR ACTION (Mes analyses) */
.feed-tiles {
    display: block;
}

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

.tile {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
    line-height: 1.25;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.tile-name {
    display: block;
}

.tile-new-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(10,132,255,0.3);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.tile.tile-is-new {
    border-color: rgba(10, 132, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.25);
}

.tile-new-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid rgba(10, 132, 255, 0.4);
    border-radius: 100px;
    padding: 3px 8px;
    line-height: 1;
}

@media (max-width: 768px) {
    .tile-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links, .btn-nav, .btn-community {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .navbar.open {
        background: rgba(16,16,18,0.97);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border-bottom: 1px solid var(--border);
    }

    .navbar.open .nav-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding-top: 16px;
        padding-bottom: 26px;
        gap: 20px;
    }

    .navbar.open .logo {
        align-self: flex-start;
    }

    .navbar.open .mobile-toggle {
        position: absolute;
        top: 24px;
        right: 20px;
    }

    .navbar.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: static;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        gap: 16px;
        width: 100%;
    }

    .navbar.open .nav-links > li {
        width: 100%;
    }

    .navbar.open .nav-links > li > a {
        padding: 4px 0;
    }

    .navbar.open .nav-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .navbar.open .btn-nav {
        display: block;
        position: static;
        text-align: center;
    }

    .navbar.open .nav-left {
        display: flex;
        width: 100%;
        order: -1;
    }

    .navbar.open .btn-community {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .auth-choice {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1.5px;
    }

    .feed.active {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ============ MOBILE NOTICE ============ */
/* Bannière discrète affichée uniquement en dessous de 720px de large. */
.mobile-notice {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 560px;
    margin: 14px auto 0;
    padding: 10px 16px;
    background: rgba(10, 132, 255, 0.08);
    border: 1px solid rgba(10, 132, 255, 0.22);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    font-weight: 400;
}
.mobile-notice svg {
    flex-shrink: 0;
    color: var(--accent);
}
@media (max-width: 720px) {
    .mobile-notice { display: flex; }
}
