/* =====================================================
   RESET & BASE
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f5 100%);
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    transition: all 0.3s ease;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =====================================================
   HEADER & MENU
===================================================== */
header {
    background: #ffffffaa;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px 0;
}

header .logo {
    font-size: 2.4em;
    font-weight: 900;
    color: #FF6B6B;
    background: linear-gradient(45deg, #2a31f9 0%, #5c3095);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header nav {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

header nav a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

header nav a:hover {
    background: linear-gradient(90deg,#2a31f9 0%, #a37ad7);
    color: white;
    transform: translateY(-2px);
}

/* ===== Header title ===== */
.header-main {
    text-align: center;
    padding: 40px 20px 20px 20px;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.1em;
    color: #666;
}

/* =====================================================
   HAMBURGER MENU
===================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    background: #2e4ffd;
    border-radius: 2px;
}

/* =====================================================
   STATS MINI
===================================================== */
.stats-mini {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mini-stat {
    text-align: center;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.mini-stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #5f55d9;
}

.mini-stat-label {
    font-size: 0.85em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =====================================================
   NUDGES GRID
===================================================== */
.nudges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.nudge-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nudge-card::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: linear-gradient(135deg, #004cf6, #1d00ba, #767cbc);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    transform: rotate(25deg);
}

.nudge-card:hover::before {
    opacity: 0.1;
}

.nudge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #9ca2ff;
}

/* =====================================================
   AUTEUR
===================================================== */
.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg,  #2a31f9 0%, #a37ad7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
}

.author-name {
    font-weight: 700;
    font-size: 0.95em;
}

/* =====================================================
   CONTENU NUDGE
===================================================== */
.nudge-title {
    font-size: 1.4em;
    font-weight: 800;
    margin-bottom: 10px;
    z-index: 1;
    position: relative;
}

.nudge-description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
}

/* =====================================================
   FOOTER CARTE (VOTES)
===================================================== */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
    z-index: 1;
    position: relative;
}

.vote-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vote-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.vote-btn:hover {
    transform: scale(1.2);
}

.vote-btn.voted-up {
    background: #4ECDC4;
    color: white;
}

.vote-btn.voted-down {
    background: #FF6B6B;
    color: white;
}

.vote-count {
    min-width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2em;
}

/* =====================================================
   EMPTY STATE
===================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

/* =====================================================
   FOOTER PAGE
===================================================== */
footer {
    background: linear-gradient(135deg, #112f73, #463187);
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

footer p {
    color: #ccc;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    header h1 {
        font-size: 2em;
    }

    header nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    header nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nudges-grid {
        grid-template-columns: 1fr;
    }

    .stats-mini {
        gap: 15px;
    }

    .mini-stat {
        width: 100%;
    }
}
/* ================= HEADER TITLE ================= */
.infon {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #2a31f9 0%, #5c3095 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.infon h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #fffae5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.infon p {
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    color: #fdfdfd;
}

/* Effet hover léger pour dynamiser */
.infon:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .infon h1 {
        font-size: 2.2em;
    }
    .infon p {
        font-size: 1em;
    }
    .infon {
        padding: 40px 15px;
    }
}
