/* ==========================================================================
   THÈME NOËL EN FAMILLE
   Palette : Rouge #c41e3a, Vert #165B33, Or #FFD700, Blanc #FFFAFA
   ========================================================================== */

/* --------------------------------------------------------------------------
   IMPORTS & VARIABLES
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@400;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    /* Couleurs principales */
    --noel-rouge: #c41e3a;
    --noel-rouge-dark: #9a1830;
    --noel-vert: #165B33;
    --noel-vert-light: #1e7a45;
    --noel-or: #FFD700;
    --noel-or-dark: #DAA520;
    --noel-blanc: #FFFAFA;
    --noel-creme: #FFF8E7;
    
    /* Couleurs utilitaires */
    --noel-bg-primary: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #165B33 100%);
    --noel-bg-card: rgba(255, 255, 255, 0.95);
    --noel-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --noel-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.25);
    
    /* Typographie */
    --font-festive: 'Mountains of Christmas', cursive;
    --font-body: 'Quicksand', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Bordures */
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    background: var(--noel-bg-primary);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   EFFET NEIGE (Animation CSS pure)
   -------------------------------------------------------------------------- */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 2s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 4s; font-size: 1rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 1s; font-size: 1.5rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; font-size: 2rem; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 5s; font-size: 1.3rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 0.5s; font-size: 1.7rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 2.5s; font-size: 1.1rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 4.5s; font-size: 1.9rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 7s; animation-delay: 1.5s; font-size: 1.4rem; }

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* --------------------------------------------------------------------------
   LAYOUT PRINCIPAL
   -------------------------------------------------------------------------- */
.noel-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.noel-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.noel-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noel-logo {
    font-family: var(--font-festive);
    font-size: 2rem;
    color: var(--noel-blanc);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.noel-logo:hover {
    color: var(--noel-or);
}

.noel-logo i {
    color: var(--noel-or);
}

.noel-nav {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.noel-nav-link {
    color: var(--noel-blanc);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 600;
}

.noel-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--noel-or);
}

.noel-main {
    flex: 1;
    padding: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.noel-footer {
    background: rgba(0, 0, 0, 0.3);
    color: var(--noel-blanc);
    text-align: center;
    padding: var(--spacing-md);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHIE
   -------------------------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-festive);
    color: var(--noel-blanc);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1 { font-size: 3rem; margin-bottom: var(--spacing-lg); }
h2 { font-size: 2.2rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.8rem; margin-bottom: var(--spacing-sm); }

.text-center { text-align: center; }
.text-white { color: var(--noel-blanc); }
.text-or { color: var(--noel-or); }
.text-rouge { color: var(--noel-rouge); }

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.noel-card {
    background: var(--noel-bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--noel-shadow);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.noel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--noel-rouge), var(--noel-vert), var(--noel-or));
}

.noel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--noel-shadow-hover);
}

.noel-card-title {
    font-family: var(--font-festive);
    font-size: 1.5rem;
    color: var(--noel-vert);
    margin-bottom: var(--spacing-sm);
}

.noel-card-icon {
    font-size: 3rem;
    color: var(--noel-rouge);
    margin-bottom: var(--spacing-sm);
}

/* --------------------------------------------------------------------------
   BOUTONS
   -------------------------------------------------------------------------- */
.noel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.noel-btn-primary {
    background: linear-gradient(135deg, var(--noel-rouge), var(--noel-rouge-dark));
    color: var(--noel-blanc);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.noel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
    color: var(--noel-blanc);
}

.noel-btn-secondary {
    background: linear-gradient(135deg, var(--noel-vert), var(--noel-vert-light));
    color: var(--noel-blanc);
    box-shadow: 0 4px 15px rgba(22, 91, 51, 0.4);
}

.noel-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 91, 51, 0.5);
    color: var(--noel-blanc);
}

.noel-btn-gold {
    background: linear-gradient(135deg, var(--noel-or), var(--noel-or-dark));
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.noel-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    color: #333;
}

.noel-btn-outline {
    background: transparent;
    border: 2px solid var(--noel-blanc);
    color: var(--noel-blanc);
}

.noel-btn-outline:hover {
    background: var(--noel-blanc);
    color: var(--noel-vert);
}

.noel-btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.2rem;
}

.noel-btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   FORMULAIRES
   -------------------------------------------------------------------------- */
.noel-form {
    max-width: 400px;
    margin: 0 auto;
}

.noel-form-group {
    margin-bottom: var(--spacing-md);
}

.noel-form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: #555;
}

.noel-form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.noel-form-control:focus {
    outline: none;
    border-color: var(--noel-vert);
    box-shadow: 0 0 0 3px rgba(22, 91, 51, 0.2);
}

.noel-form-control::placeholder {
    color: #aaa;
}

/* --------------------------------------------------------------------------
   GRILLE
   -------------------------------------------------------------------------- */
.noel-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.noel-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.noel-grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.noel-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* --------------------------------------------------------------------------
   SECTION HERO (Accueil)
   -------------------------------------------------------------------------- */
.noel-hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.noel-hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5); }
}

.noel-hero-subtitle {
    font-size: 1.4rem;
    color: var(--noel-creme);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.noel-hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   DASHBOARD
   -------------------------------------------------------------------------- */
.noel-dashboard-section {
    margin-bottom: var(--spacing-xl);
}

.noel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.noel-section-title {
    font-family: var(--font-festive);
    font-size: 1.8rem;
    color: var(--noel-blanc);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.noel-section-title i {
    color: var(--noel-or);
}

/* --------------------------------------------------------------------------
   BADGES & TAGS
   -------------------------------------------------------------------------- */
.noel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.noel-badge-admin {
    background: var(--noel-or);
    color: #333;
}

.noel-badge-membre {
    background: var(--noel-vert);
    color: var(--noel-blanc);
}

.noel-badge-draft {
    background: #6c757d;
    color: var(--noel-blanc);
}

.noel-badge-launched {
    background: var(--noel-rouge);
    color: var(--noel-blanc);
}

.noel-badge-completed {
    background: var(--noel-vert);
    color: var(--noel-blanc);
}

/* --------------------------------------------------------------------------
   LISTE MEMBRES
   -------------------------------------------------------------------------- */
.noel-member-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.noel-member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--noel-rouge), var(--noel-vert));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--noel-blanc);
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid var(--noel-or);
}

/* --------------------------------------------------------------------------
   ALERTES / MESSAGES FLASH
   -------------------------------------------------------------------------- */
.noel-alert {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.noel-alert-success {
    background: rgba(22, 91, 51, 0.9);
    color: var(--noel-blanc);
    border-left: 4px solid var(--noel-or);
}

.noel-alert-error {
    background: rgba(196, 30, 58, 0.9);
    color: var(--noel-blanc);
    border-left: 4px solid var(--noel-or);
}

.noel-alert-info {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-left: 4px solid var(--noel-vert);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .noel-hero h1 {
        font-size: 2.5rem;
    }
    
    .noel-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .noel-header-inner {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .noel-main {
        padding: var(--spacing-sm);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

/* --------------------------------------------------------------------------
   ONGLETS (TABS)
   -------------------------------------------------------------------------- */
.noel-tabs {
    display: flex;
    background: var(--noel-vert);
    border-bottom: 2px solid #eee;
}

.noel-tab {
    flex: 1;
    padding: var(--spacing-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--noel-creme);
    transition: all 0.3s ease;
}

.noel-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--noel-or);
}

.noel-tab.active {
    background: var(--noel-creme);
    color: var(--noel-vert);
    border-bottom: 3px solid var(--noel-rouge);
}

/* --------------------------------------------------------------------------
   ANIMATIONS UTILITAIRES
   -------------------------------------------------------------------------- */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

