/**
 * Styles globaux - Queer Brest Fest
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8B94 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo:hover {
    opacity: 0.9;
}

/* Navigation */
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    cursor: pointer;
}

nav a:hover,
nav a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF6B6B;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: #e55a5a;
}

.btn-secondary {
    background-color: #95E1D3;
    color: #333;
}

.btn-secondary:hover {
    background-color: #7dd4c6;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e9ecef;
    color: #333;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 3px;
}

.badge-primary {
    background-color: #FF6B6B;
    color: white;
}

.badge-success {
    background-color: #A8E6CF;
    color: #333;
}

.badge-info {
    background-color: #95E1D3;
    color: #333;
}

.badge-warning {
    background-color: #FFE66D;
    color: #333;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease-in;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

/* Accordéons */
.accordion {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
}

.accordion-header {
    background-color: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-body {
    display: none;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.accordion-item.active .accordion-body {
    display: block;
}

.accordion-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Grille */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

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

/* Events List */
.event-item {
    background: white;
    border-left: 4px solid #FF6B6B;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.event-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-date {
    font-weight: bold;
    color: #FF6B6B;
    margin-bottom: 5px;
}

.event-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.event-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.event-type {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.accessibility-icons {
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 5px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 3px solid #FF6B6B;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

footer h3 {
    margin-bottom: 15px;
    color: #FF6B6B;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: #FF6B6B;
}

footer p {
    margin-bottom: 10px;
}

/* Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    border-color: #155724;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #856404;
    color: #856404;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #721c24;
    color: #721c24;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.text-muted {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
}
