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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    color: #040000;
    line-height: 1.6;
    min-height: 100vh;
}

.header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    /* width: 50px; */
    /* height: 50px; */
    object-fit: contain;
}

.logo-text {
    display: none;
}

.logo-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.logo-info h1,
.logo-info .subtitle {
    pointer-events: auto;
}

.logo-info h1 {
    margin: 0;
    line-height: 1.2;
}

.logo-info .subtitle {
    margin: 0;
    margin-top: 2px;
}

h1 {
    color: #7ABF4D;
    font-size: 1.8rem;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #040000;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #040000;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #7ABF4D;
}

.nav-link.active {
    background: #7ABF4D;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-link {
    margin-left: auto;
    color: #2196F3;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #7ABF4D 0%, #6aa83d 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

/* Stages Grid */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stage-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 4px solid #1c3b78;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(28, 59, 120, 0.2);
}

.stage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

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

.badge.domain {
    background: rgba(28, 59, 120, 0.15);
    color: #1c3b78;
    border: 1px solid rgba(28, 59, 120, 0.3);
}

.badge.available {
    background: rgba(122, 191, 77, 0.15);
    color: #7ABF4D;
    border: 1px solid rgba(122, 191, 77, 0.3);
}

.badge.places {
    background: rgba(28, 59, 120, 0.15);
    color: #1c3b78;
    border: 1px solid rgba(28, 59, 120, 0.3);
}

.stage-title {
    color: #1c3b78;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stage-supervisor {
    color: #666;
    font-size: 0.95rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stage-description {
    color: #555;
    font-size: 0.95rem;
    margin: 15px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.stage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    min-height: 50px;
}

.places-info {
    font-size: 0.9rem;
    color: #666;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

/* VARIANTES DE COULEURS POUR BTN-PRIMARY - Décommentez celle que vous préférez */

/* Option 1: Bleu dégradé (actuel) */
/* .btn-primary {
    background: linear-gradient(94.06deg, #1c3b78 3.8%, #142b5a 92.9%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(94.06deg, #142b5a 3.8%, #1c3b78 92.9%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(20, 43, 90, 0.4);
} */

/* Option 2: Vert moderne */
/* .btn-primary {
    background: linear-gradient(135deg, #7ABF4D 0%, #5a9a3a 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a9a3a 0%, #7ABF4D 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(122, 191, 77, 0.4);
} */

/* Option 3: Bleu vif */
/* .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
} */

/* Option 4: Bleu marine foncé */
/* .btn-primary {
    background: linear-gradient(135deg, #1c3b78 0%, #0f2444 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f2444 0%, #1c3b78 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(28, 59, 120, 0.5);
} */

/* Option 5: Bleu turquoise moderne */
/* .btn-primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
} */

/* Option 6: Bleu indigo */
/* .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
} */

/* Option 7: Bleu ciel doux */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}


.btn-secondary {
    background: linear-gradient(135deg, #7ABF4D 0%, #6aa83d 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: #f0f0f0;
    color: #7ABF4D;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Page Header */
.page-header {
    margin: 40px 0 30px;
}

.page-header h2 {
    color: #1c3b78;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(20, 43, 90, 0.1);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: #040000;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #1c3b78;
    box-shadow: 0 0 0 3px rgba(28, 59, 120, 0.1);
}

/* Stage Detail */
.stage-detail {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(20, 43, 90, 0.1);
    margin: 30px 0;
}

.stage-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.stage-detail-title {
    font-size: 2rem;
    color: #1c3b78;
    margin-bottom: 15px;
}

.stage-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.stage-detail-section {
    margin: 30px 0;
}

.section-title {
    font-size: 1.8rem;
    color: #1c3b78;
    margin: 40px 0 30px;
    font-weight: 600;
}

.stage-detail-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.stage-detail-cta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #1c3b78;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #040000;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #040000;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1c3b78;
    box-shadow: 0 0 0 3px rgba(28, 59, 120, 0.1);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.message.success {
    background: #e8f5e9;
    color: #7ABF4D;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.breadcrumb {
    margin: 20px 0;
    color: #666;
}

.breadcrumb a {
    color: #1c3b78;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #142b5a;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

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

/* Footer */
.footer {
    background: linear-gradient(94.06deg, #142b5a 3.8%, #1c3b78 92.9%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive - Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .logo-info {
        position: static;
        transform: none;
        text-align: left;
    }
    
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo-section {
        flex: 0 1 auto;
        min-width: 200px;
    }
    
    .nav {
        flex: 0 0 auto;
        justify-content: flex-end;
        margin-top: 0;
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo-section {
        flex: 0 0 auto;
        gap: 10px;
    }
    
    .logo-img {
        max-width: 60px;
        max-height: 60px;
        min-width: 50px;
        min-height: 50px;
    }
    
    .logo-info {
        position: static;
        transform: none;
        text-align: left;
    }
    
    .logo-info h1 {
        font-size: 1.3rem;
    }
    
    .logo-info .subtitle {
        font-size: 0.8rem;
        display: none; /* Masquer le sous-titre sur mobile */
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
        position: relative;
        z-index: 1002;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 0;
        margin-top: 0;
        overflow-y: auto;
        pointer-events: auto !important;
    }
    
    .nav.active {
        right: 0;
        pointer-events: auto !important;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: left;
        border: none;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative;
        z-index: 1002;
        display: block;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #7ABF4D;
        color: white;
    }
    
    .nav-link:active {
        background: #6aa83d;
        transform: scale(0.98);
    }
    
    /* Overlay pour fermer le menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        pointer-events: auto;
    }
    
    /* .nav-overlay.active {
        display: block;
        pointer-events: auto;
    } */
    
    .stages-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .stage-detail {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

