/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f6f8;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* LAYOUT */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4f46e5;
}
nav ul {
    display: flex;
    gap: 20px;
}
nav a {
    font-weight: 500;
    color: #555;
}
nav a:hover { color: #4f46e5; }

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }

/* =========================================
   BUTTONS (Style Classique)
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 12px; /* Coins moins arrondis, plus carrés */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border: none;
    font-size: 1rem;
    text-align: center;
}

/* Bouton Principal (Blanc sur fond coloré ou Inverse) */
.btn-primary {
    background-color: #ffffff;
    color: #4f46e5;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* Bouton Secondaire (Transparent avec bordure) */
.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Bouton Standard (Pour les formulaires et actions principales) */
.btn-standard {
    background-color: #4f46e5; /* Indigo uni */
    color: #ffffff;
}

.btn-standard:hover {
    background-color: #4338ca; /* Indigo plus foncé au survol */
    transform: translateY(-2px);
}

/* Bouton Outline (Bordure colorée) */
.btn-outline {
    background-color: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-outline:hover {
    background-color: #4f46e5;
    color: #ffffff;
}

/* Variantes de taille */
.btn-small {
    padding: 6px 15px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    display: block;
}

/* FEATURES BAR */
.features-bar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: -60px; /* Effet de superposition */
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}
.feature-item { text-align: center; flex: 1; min-width: 200px; }
.feature-item h3 { color: #4f46e5; margin-bottom: 5px; }

/* EVENTS GRID */
.section-title { font-size: 1.8rem; margin-bottom: 25px; color: #1f2937; }
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-5px); }
.event-image { height: 180px; background: #e5e7eb; position: relative; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.category-tag {
    position: absolute; top: 10px; left: 10px;
    background: #4f46e5; color: white;
    padding: 4px 10px; border-radius: 20px; font-size: 0.8rem;
}
.event-details { padding: 20px; }
.event-details h3 { margin-bottom: 10px; font-size: 1.2rem; }
.meta-row { font-size: 0.9rem; color: #6b7280; margin-bottom: 15px; }
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f3f4f6; padding-top: 15px;
}

/* FORMS */
.form-container {
    max-width: 500px; margin: 40px auto; background: white;
    padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; }
input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 1rem;
}
.btn-full { width: 100%; text-align: center; }

/* FOOTER */
footer { background: #1f2937; color: #9ca3af; text-align: center; padding: 30px 0; margin-top: 50px; }

/* ALERTS */
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }