/* =============================================
   ESPACE PARTICIPANT — ADMIN.CSS
   CJCA 2026 — Portail Participant
   ============================================= */

@font-face {
    font-family: 'Jeko';
    src: url('../jeko-bold.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #2341AF;
    --primary-light: #3A5BC7;
    --primary-dark: #0E1A4A;
    --secondary: #E8952F;
    --accent: #5BC0DE;
    --success: #2ECC71;
    --danger: #E74C3C;
    --purple: #9B59B6;
    --dark: #1a1a2e;
    --gray-50: #F8F9FC;
    --gray-100: #EEF0F6;
    --gray-200: #D8DCE8;
    --gray-300: #B0B8CC;
    --gray-600: #5A6178;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(35, 65, 175, 0.08);
    --shadow-lg: 0 8px 40px rgba(35, 65, 175, 0.12);
}

body, a, button, input, select, textarea, span, p, h1, h2, h3, h4, h5, h6, li, div, label, em, strong, small, blockquote, th, td {
    font-family: 'Jeko', sans-serif !important;
}

/* ==========================================
   LOGIN SECTION
   ========================================== */

.portal-login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #E8EBF7 50%, #D6ECFA 100%);
}

.portal-login-container {
    width: 100%;
    max-width: 480px;
}

.portal-login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.portal-login-header {
    text-align: center;
    margin-bottom: 36px;
}

.portal-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.portal-login-header h1 {
    font-family: 'Jeko', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.portal-login-header p {
    font-family: 'Jeko', sans-serif;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.portal-form-group {
    margin-bottom: 20px;
}

.portal-form-group label {
    display: block;
    font-family: 'Jeko', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.portal-form-group label i {
    color: var(--primary);
    margin-right: 6px;
    width: 16px;
}

.portal-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: 'Jeko', sans-serif;
    font-size: 0.95rem;
    color: var(--primary-dark);
    background: var(--gray-50);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.portal-form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(35, 65, 175, 0.1);
}

.portal-form-group input::placeholder {
    color: var(--gray-300);
}

.portal-login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--danger);
    font-family: 'Jeko', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.portal-login-error i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.portal-login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Jeko', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.portal-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 65, 175, 0.3);
}

.portal-login-btn:active {
    transform: translateY(0);
}

.portal-login-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.portal-login-help p {
    font-family: 'Jeko', sans-serif;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.portal-login-help a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.portal-login-help a:hover {
    text-decoration: underline;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* ==========================================
   WELCOME BAR
   ========================================== */

.portal-welcome-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 24px 0;
    margin-top: 70px;
}

.portal-welcome-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-welcome-info h2 {
    font-family: 'Jeko', sans-serif;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.portal-welcome-info p {
    font-family: 'Jeko', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.portal-badge-cat {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--secondary);
}

.portal-logout-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 8px;
    font-family: 'Jeko', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-logout-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ==========================================
   TABS
   ========================================== */

.portal-tabs-container {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.portal-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.portal-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Jeko', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.portal-tab:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.portal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.portal-tab i {
    font-size: 1rem;
}

/* Tab content */
.portal-tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.portal-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   PROGRAMME
   ========================================== */

.programme-container {
    max-width: 900px;
    margin: 0 auto;
}

.programme-header {
    text-align: center;
    margin-bottom: 40px;
}

.programme-header h2 {
    font-family: 'Jeko', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.programme-header h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.programme-subtitle {
    font-family: 'Jeko', sans-serif;
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.programme-theme {
    font-family: 'Jeko', sans-serif;
    font-style: italic;
    color: var(--primary);
    font-size: 1.05rem;
    background: var(--gray-50);
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    display: inline-block;
    max-width: 700px;
    line-height: 1.5;
}

/* Programme Day */
.programme-day {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.programme-day-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--gray-50), white);
    border-bottom: 1px solid var(--gray-100);
}

.programme-day-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Jeko', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.programme-day-info h3 {
    font-family: 'Jeko', sans-serif;
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.programme-day-label {
    font-family: 'Jeko', sans-serif;
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.programme-events {
    padding: 8px 0;
}

.programme-event {
    display: flex;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-50);
    transition: background 0.2s ease;
}

.programme-event:last-child {
    border-bottom: none;
}

.programme-event:hover {
    background: var(--gray-50);
}

.programme-event.highlight {
    background: linear-gradient(90deg, rgba(35, 65, 175, 0.04), transparent);
    border-left: 4px solid var(--primary);
}

.programme-time {
    font-family: 'Jeko', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 120px;
    white-space: nowrap;
    padding-top: 2px;
}

.programme-detail h4 {
    font-family: 'Jeko', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.programme-detail p {
    font-family: 'Jeko', sans-serif;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2px;
}

.programme-detail p i {
    color: var(--primary);
    width: 18px;
    margin-right: 4px;
}

.programme-note {
    font-style: italic;
    color: var(--secondary) !important;
    font-weight: 500;
    margin-top: 4px;
}

/* ==========================================
   CARTE & LIEUX
   ========================================== */

.carte-container {
    max-width: 1100px;
    margin: 0 auto;
}

.carte-header {
    text-align: center;
    margin-bottom: 32px;
}

.carte-header h2 {
    font-family: 'Jeko', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.carte-header h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.carte-header p {
    font-family: 'Jeko', sans-serif;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.carte-map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-100);
    margin-bottom: 36px;
}

.carte-map {
    width: 100%;
    height: 450px;
    background: var(--gray-100);
}

/* Map markers */
.custom-map-marker {
    background: none !important;
    border: none !important;
}

.map-marker-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    border: 3px solid white;
    transition: transform 0.2s;
}

.map-marker-pin:hover {
    transform: scale(1.15);
}

.map-popup {
    font-family: 'Jeko', sans-serif;
    padding: 4px;
}

.map-popup strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.map-popup span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* === Lieux Hero Carousel === */
.lieux-hero {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    background: #1a2240;
}
.lieux-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.lieux-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    display: flex;
    align-items: flex-end;
}
.lieux-hero-slide.active { opacity: 1; }

.lieux-hero-overlay {
    width: 100%;
    padding: 36px 44px;
    background: linear-gradient(to top, rgba(13,18,45,0.92) 0%, rgba(13,18,45,0.55) 60%, transparent 100%);
    color: #fff;
    font-family: 'Jeko', sans-serif;
}
.lieux-hero-overlay h3 {
    margin: 6px 0 8px;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.lieux-hero-overlay p {
    margin: 0;
    font-size: 0.98rem;
    opacity: 0.92;
    max-width: 720px;
}
.lieux-hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lieux-hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.lieux-hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.3s;
}
.lieux-hero-dots span.active {
    background: #fff;
    width: 26px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .lieux-hero { height: 320px; }
    .lieux-hero-overlay { padding: 22px; }
    .lieux-hero-overlay h3 { font-size: 1.3rem; }
    .lieux-hero-overlay p { font-size: 0.85rem; }
}

/* Lieux Grid */
.lieux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.lieu-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lieu-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.lieu-card.lieu-primary {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, white, #F0F3FF);
}

.lieu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lieu-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.lieu-primary .lieu-icon {
    background: var(--primary);
}

.lieu-primary .lieu-icon i {
    color: white;
}

.lieu-info h4 {
    font-family: 'Jeko', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.lieu-address {
    font-family: 'Jeko', sans-serif;
    font-size: 0.78rem;
    color: var(--gray-300);
    margin-bottom: 6px;
}

.lieu-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-family: 'Jeko', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(35, 65, 175, 0.1);
    color: var(--primary);
    margin-bottom: 8px;
}

.lieu-tag.tag-hotel {
    background: rgba(91, 192, 222, 0.12);
    color: #2C95B3;
}

.lieu-tag.tag-transport {
    background: rgba(232, 149, 47, 0.12);
    color: var(--secondary);
}

.lieu-tag.tag-culture {
    background: rgba(155, 89, 182, 0.12);
    color: var(--purple);
}

.lieu-tag.tag-excursion {
    background: rgba(46, 204, 113, 0.12);
    color: #1D9E52;
}

.lieu-desc {
    font-family: 'Jeko', sans-serif;
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ==========================================
   ITINERAIRES
   ========================================== */

.itineraires-container {
    max-width: 900px;
    margin: 0 auto;
}

.itineraires-header {
    text-align: center;
    margin-bottom: 36px;
}

.itineraires-header h2 {
    font-family: 'Jeko', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.itineraires-header h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.itineraires-header p {
    font-family: 'Jeko', sans-serif;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.itineraire-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.itineraire-card:hover {
    box-shadow: var(--shadow-lg);
}

.itineraire-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.itineraire-icon i {
    font-size: 1.3rem;
    color: white;
}

.itineraire-content h4 {
    font-family: 'Jeko', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.itineraire-details {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.itineraire-details span {
    font-family: 'Jeko', sans-serif;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
}

.itineraire-details span i {
    margin-right: 4px;
}

.itineraire-content p {
    font-family: 'Jeko', sans-serif;
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 10px;
}

.itineraire-horaires {
    background: var(--gray-50);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Jeko', sans-serif;
    font-size: 0.82rem;
    color: var(--primary-dark);
}

.itineraire-horaires strong {
    color: var(--primary);
}

.itineraire-horaires span {
    display: block;
    margin-top: 2px;
    color: var(--gray-600);
}

/* Maps placeholder */
.maps-placeholder {
    margin: 16px 0 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a3e 0%, #2341AF 100%);
    min-height: 220px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.maps-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E") repeat;
    opacity: 1;
}
.maps-placeholder-inner {
    position: relative; z-index: 1;
    text-align: center; padding: 40px 28px; color: #fff;
}
.maps-placeholder-icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    background: rgba(255,255,255,0.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #E8952F;
}
.maps-placeholder-inner h3 {
    font-size: 1.2rem; font-weight: 700; margin: 0 0 10px; color: #fff;
}
.maps-placeholder-inner p {
    font-size: 0.9rem; color: rgba(255,255,255,0.72);
    max-width: 360px; margin: 0 auto 18px; line-height: 1.55;
}
.maps-placeholder-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(232,149,47,0.2); color: #E8952F;
    border: 1px solid rgba(232,149,47,0.4);
    font-size: 0.8rem; font-weight: 700; letter-spacing: .5px;
    padding: 6px 14px; border-radius: 20px;
}

.itineraire-info-box {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #EEF3FF, #E8F4FD);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(35, 65, 175, 0.12);
    margin-top: 24px;
}

.itineraire-info-box > i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.itineraire-info-box strong {
    font-family: 'Jeko', sans-serif;
    font-size: 0.95rem;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 8px;
}

.itineraire-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.itineraire-info-box li {
    font-family: 'Jeko', sans-serif;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.itineraire-info-box li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ==========================================
   INFOS PRATIQUES
   ========================================== */

.infos-container {
    max-width: 1100px;
    margin: 0 auto;
}

.infos-header {
    text-align: center;
    margin-bottom: 36px;
}

.infos-header h2 {
    font-family: 'Jeko', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.infos-header h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.infos-header p {
    font-family: 'Jeko', sans-serif;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.infos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    display: block;
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gray-50), #E8EBF7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-card-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.info-card h4 {
    font-family: 'Jeko', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.info-card p {
    font-family: 'Jeko', sans-serif;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.info-card p strong {
    color: var(--primary-dark);
}

/* Centre médical Diamant — carte santé partenaire */
.info-card-medical {
    border-left: 4px solid #E74C3C;
    background: linear-gradient(180deg, rgba(231,76,60,0.04) 0%, #fff 60%);
    grid-column: 1 / -1;
}
.info-card-medical .info-card-icon {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}
.info-card-medical .info-card-icon i {
    color: #fff;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
    font-family: 'Jeko', sans-serif;
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.7;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 6px 24px;
}
.info-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 4px 0;
}
.info-list li i {
    color: #E74C3C;
    width: 16px;
    flex-shrink: 0;
}
.info-list li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.info-list li a:hover { text-decoration: underline; }

.info-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: #fff !important;
    border-radius: 20px;
    font-family: 'Jeko', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.info-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231,76,60,0.35);
}

/* ==========================================
   PORTAL FOOTER
   ========================================== */

.portal-footer {
    background: var(--primary-dark);
    padding: 24px 0;
    text-align: center;
    margin-top: 40px;
}

.portal-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.portal-footer p {
    font-family: 'Jeko', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    margin-bottom: 4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .portal-login-card {
        padding: 32px 24px;
    }

    .portal-login-header h1 {
        font-size: 1.4rem;
    }

    .portal-welcome-inner {
        flex-direction: column;
        text-align: center;
    }

    .portal-welcome-info h2 {
        font-size: 1.2rem;
    }

    .portal-tabs {
        padding: 0 12px;
    }

    .portal-tab {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .portal-tab-content {
        padding: 20px 16px 40px;
    }

    .programme-header h2,
    .carte-header h2,
    .itineraires-header h2,
    .infos-header h2 {
        font-size: 1.4rem;
    }

    .programme-event {
        flex-direction: column;
        gap: 6px;
    }

    .programme-time {
        min-width: auto;
    }

    .lieux-grid {
        grid-template-columns: 1fr;
    }

    .itineraire-card {
        flex-direction: column;
    }

    .itineraire-icon {
        width: 48px;
        height: 48px;
    }

    .infos-grid {
        grid-template-columns: 1fr;
    }

    .carte-map {
        height: 300px;
    }

    .itineraire-info-box {
        flex-direction: column;
    }
}

/* ==========================================
   MOBILE FIRST — OPTIMISATIONS TACTILES
   ========================================== */

@media (max-width: 768px) {
    /* Tabs : scroll horizontal pour ne pas couper */
    .portal-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 4px;
    }
    .portal-tabs::-webkit-scrollbar { display: none; }
    .portal-tab {
        flex-shrink: 0;
        white-space: nowrap;
        min-height: 44px; /* tap target Apple/Google */
    }

    /* Cartes Itinéraires plus grandes & tappables */
    .itineraire-card[data-dest] {
        min-height: 64px;
        padding: 14px 16px;
        flex-direction: row !important;
        align-items: center;
        gap: 14px;
        position: relative;
    }
    .itineraire-card[data-dest]::after {
        content: "\f105"; /* fa-chevron-right */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 1.1rem;
        opacity: 0.5;
    }
    .itineraire-card[data-dest] .itineraire-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        font-size: 1rem;
    }
    .itineraire-card[data-dest] h4 {
        font-size: 0.95rem;
        margin: 0;
    }
    .itineraire-card[data-dest]:active {
        transform: scale(0.98);
        background: rgba(35, 65, 175, 0.05);
    }

    /* Hero Lieux : hauteur adaptée + texte lisible */
    .lieux-hero {
        height: 260px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .lieux-hero-overlay {
        padding: 18px 20px;
    }
    .lieux-hero-overlay h3 {
        font-size: 1.15rem;
        margin: 4px 0 6px;
    }
    .lieux-hero-overlay p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .lieux-hero-tag {
        font-size: 0.65rem;
        padding: 3px 9px;
    }

    /* Modale itinéraire : plein écran sans marge */
    .itineraire-modal-content {
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
    .itineraire-modal-header h3 {
        font-size: 0.9rem;
    }
    .itm-actions a, .itm-actions button {
        width: 40px;
        height: 40px;
    }

    /* Boutons & liens cliquables : taille minimale 44×44 */
    .info-card-action,
    .nav-link,
    .btn,
    .tab-button {
        min-height: 44px;
    }
    .info-list li {
        padding: 8px 0;
        font-size: 0.92rem;
    }
    .info-list li a {
        display: inline-block;
        padding: 4px 0;
    }

    /* Titres header plus petits sur mobile */
    .infos-header h2,
    .carte-header h2,
    .itineraires-header h2,
    .programme-header h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    /* Carte médicale : padding réduit */
    .info-card-medical {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .portal-tab i {
        margin-right: 4px;
    }
    .portal-tab {
        padding: 12px 10px;
        font-size: 0.78rem;
    }
    .lieux-hero { height: 220px; }
    .lieux-hero-overlay h3 { font-size: 1rem; }
}

/* Itineraire -> Map Link */
.itineraire-card[data-route],
.itineraire-card[data-dest] {
    cursor: pointer;
}

.itineraire-card[data-route]:hover,
.itineraire-card[data-dest]:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.itineraire-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 20px;
    font-family: 'Jeko', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.itineraire-card[data-route]:hover .itineraire-map-link {
    box-shadow: 0 4px 15px rgba(35, 65, 175, 0.3);
    transform: translateX(3px);
}

/* === Modale Itinéraire (carte intégrée) === */
.itineraire-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.itineraire-modal.active { display: flex; }

.itineraire-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 45, 0.65);
    backdrop-filter: blur(4px);
}

.itineraire-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    max-height: 800px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: itmFadeIn 0.25s ease;
}

@keyframes itmFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.itineraire-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary, #2341AF), #5B7CD6);
    color: #fff;
    flex-shrink: 0;
}

.itineraire-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.itm-actions {
    display: flex;
    gap: 8px;
}

.itm-actions a,
.itm-actions button {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.itm-actions a:hover,
.itm-actions button:hover {
    background: rgba(255,255,255,0.32);
}

.itineraire-modal-body {
    flex: 1;
    background: #eef0f6;
}

.itm-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .itineraire-modal { padding: 0; }
    .itineraire-modal-content {
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
}

/* Route markers on map */
.route-marker {
    background: none !important;
    border: none !important;
}

.route-marker-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border: 2px solid white;
    animation: pulseMarker 2s infinite;
}

@keyframes pulseMarker {
    0%, 100% { box-shadow: 0 3px 10px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 3px 20px rgba(0,0,0,0.5), 0 0 0 8px rgba(35, 65, 175, 0.15); }
}

@media (max-width: 480px) {
    .portal-login-section {
        padding: 20px 12px;
    }

    .portal-login-card {
        padding: 24px 18px;
    }

    .lieu-card {
        flex-direction: column;
    }

    .programme-theme {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

/* ==========================================
   NAVIGATION & LEAFLET ROUTING
   ========================================== */

.btn-navigate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(35, 65, 175, 0.1);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-navigate:hover {
    background: var(--primary);
    color: white;
}

.navigation-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gray-200);
}

.navigation-toast .fa-spinner {
    color: var(--primary);
}

.leaflet-routing-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 4px;
    font-family: 'Jeko', sans-serif;
    color: var(--dark);
    margin-right: 10px !important;
}

.leaflet-routing-alt {
    max-height: 250px;
    overflow-y: auto;
}

.leaflet-routing-alt h2 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.leaflet-routing-alt h3 {
    font-size: 0.85rem;
    color: var(--gray-600);
}
