/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Charte graphique Wizzcard - Minimaliste */
    --primary-color: #D14976;
    --primary-dark: #B83A5E;
    --primary-light: #E87AA0;
    --secondary-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-color: #F5EFE7;
    --bg-color: #F6F2E3;
    --text-color: #34495E;
    --success-color: #27AE60;
    --error-color: #E74C3C;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #F6F2E3;
}

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

/* Header et Navigation - Minimaliste */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

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

.logo {
    margin: 0;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Hero Section - Minimaliste */
.hero {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Minimaliste */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--dark-color);
    color: white;
}

.btn-primary:hover {
    background: #1a252f;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Comment ça marche */
.how-it-works {
    padding: 4rem 2rem;
    background-color: white;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-weight: 600;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--bg-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* Wizzcards en voyage */
.featured-wizzcards {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.featured-wizzcards h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 600;
}

.wizzcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wizzcard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.2s;
}

.wizzcard-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.wizzcard-card h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.card-stats {
    padding: 1rem;
}

.card-stats p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.wizzcard-header {
    background: var(--primary-color);
    color: white;
    padding: 1.25rem;
}

.wizzcard-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.wizzcard-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wizzcard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wizzcard-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
}

.wizzcard-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.wizzcard-stat-label {
    font-size: 0.85rem;
    color: var(--text-color);
}

.wizzcard-location {
    margin: 1rem 0;
    padding: 1rem;
    background: #FFF3CD;
    border-radius: var(--border-radius);
    border-left: 3px solid #FFC107;
}

.wizzcard-location strong {
    color: var(--dark-color);
}

.wizzcard-footer {
    padding: 0 1.25rem 1.25rem;
    margin-top: auto;
}

.no-cards {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.badge-gold {
    background: #FFD700;
    color: #856404;
}

.badge-silver {
    background: #C0C0C0;
    color: #383d41;
}

.badge-bronze {
    background: #CD7F32;
    color: #fff;
}

/* Statistiques */
.stats {
    padding: 4rem 2rem;
    background: var(--dark-color);
    color: white;
}

.stats h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Formulaires */
.form-section {
    padding: 3rem 2rem;
    background-color: white;
}

.form-section h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.wizzcard-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

fieldset {
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

legend {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #7F8C8D;
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-inline {
    display: block;
    margin-top: 0.5rem;
    font-weight: normal;
    font-size: 0.9rem;
}

.checkbox-inline input {
    margin-right: 0.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input {
    width: auto;
}

/* Page J'ai reçu une carte */
.receive-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.receive-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.code-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.form-group-center {
    margin-bottom: 2rem;
}

.code-input {
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.info-box {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: #FFF3CD;
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.info-box h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* Page de suivi */
.track-section {
    padding: 2rem;
}

.track-header {
    text-align: center;
    margin-bottom: 2rem;
}

.track-header h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.track-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
}

/* Timeline */
.journey-timeline {
    margin: 3rem 0;
}

.journey-timeline h3 {
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--light-color);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.timeline-date {
    color: #7F8C8D;
    font-size: 0.9rem;
}

.timeline-user {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.timeline-message {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    font-style: italic;
}

.timeline-distance {
    margin-top: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.action-section {
    text-align: center;
    margin-top: 3rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #FFEBEE;
    color: var(--error-color);
    border-left: 3px solid var(--error-color);
}

.alert-success {
    background-color: #E8F5E9;
    color: var(--success-color);
    border-left: 3px solid var(--success-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Page Explorer */
.explorer-section {
    padding: 2rem;
}

.explorer-header {
    text-align: center;
    margin-bottom: 3rem;
}

.explorer-header h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.global-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.global-stat-card {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.global-stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.global-stat-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.sort-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.sort-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.sort-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.wizzcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.no-wizzcards {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-wizzcards h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Page Profile */
.profile-section {
    padding: 2rem;
}

.profile-header {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.profile-header h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.wizzcard-list {
    display: grid;
    gap: 1rem;
}

.wizzcard-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.wizzcard-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wizzcard-meta {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wizzcard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.participation-item {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.participation-item h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.code-badge {
    display: inline-block;
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Page Admin */
.admin-section {
    padding: 2rem;
}

.admin-header {
    background: var(--error-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.admin-header h2 {
    font-weight: 600;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
}

.admin-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--light-color);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid #ddd;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-admin {
    background: #E74C3C;
    color: white;
}

.badge-user {
    background: var(--light-color);
    color: var(--text-color);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-danger {
    background: #E74C3C;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-warning {
    background: #F39C12;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-warning:hover {
    background: #E67E22;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
    }
    
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--light-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .wizzcard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -2rem;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 1rem;
    }
}