/* ============================================
 PLANNING FORUM — Design System Mobile-first,
dark theme,
glassmorphism============================================*/

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: #ffffff;
    --bg-glass-hover: #fafafa;

    --text-primary: #333333;
    --text-secondary: #777777;
    --text-muted: #aaaaaa;

    --accent: #ff6b4a;
    --accent-light: #ff8a6e;
    --accent-glow: rgba(255, 111, 76, 0.3);

    --planning-accent: #ff6f4c;
    --partenaires-accent: #ff6f4c;
    --numerilab-accent: #ff6f4c;
    --restauration-accent: #ff6f4c;
    --accueil-accent: #ff6f4c;

    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.05);

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 15px 35px rgba(255, 107, 74, 0.15);

    /* Sizing */
    --nav-height: 65px;
    --header-height: 120px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;

    /* Fonts */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Safe areas */
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent scroll bounce on iOS */
body {
    overscroll-behavior: none;
}

/* ---------- Tab Content Sections ---------- */
.tab-content {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 10px);
    animation: fadeIn 0.3s ease;
}

.tab-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- View Header ---------- */
.view-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: calc(var(--safe-top) + 16px) 20px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.accueil-header {
    background: #ffffff;
    border-bottom: none;
}

.planning-header {
    background: #ffffff;
    border-bottom: none;
}

.partenaires-header {
    background: #ffffff;
    border-bottom: none;
}

.numerilab-header {
    background: #ffffff;
    border-bottom: none;
}

.restauration-header {
    background: #ffffff;
    border-bottom: none;
}

.view-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.view-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 300;
}

/* ---------- View Body ---------- */
.view-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

/* ---------- BOTTOM NAVIGATION ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn i {
    font-size: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn.active {
    color: var(--accent);
}

.nav-btn.active i {
    transform: scale(1.1) translateY(-2px);
}

/* Active indicator dot */
.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);

}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.8);
    }
}

/* Ripple effect on tap */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.nav-btn:active::before {
    width: 60px;
    height: 60px;
    opacity: 1;
}

/* ---------- WELCOME CARD (Accueil) ---------- */
.welcome-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.welcome-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Info grid shortcuts */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.info-item:active {
    transform: scale(0.95);
    background: var(--bg-glass-hover);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.info-item:nth-child(1) .info-icon {
    background: var(--accent);
}

.info-item:nth-child(2) .info-icon {
    background: var(--accent);
}

.info-item:nth-child(3) .info-icon {
    background: var(--accent);
}

.info-item:nth-child(4) .info-icon {
    background: var(--accent);
}

.info-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- INSTALL CARD ---------- */
.install-card {
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.install-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.install-card-text h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.install-card-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.install-btn {
    margin-left: auto;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--accent);
    color: white;
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.install-btn:active {
    transform: scale(0.95);
}

/* ---------- LOADER ---------- */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ---------- SEARCH BAR ---------- */
.search-container {
    position: relative;
    margin-top: 14px;
    display: flex;
    align-items: center;
}

.search-container.hidden {
    display: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-light);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 111, 76, 0.08);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus+.search-icon,
.search-input:not(:placeholder-shown)+.search-icon {
    color: var(--accent);
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* ---------- FILTER PILLS ---------- */
.filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.search-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-toggle-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.filter-pill {
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.filter-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 10px var(--accent-glow);
}

.sub-filter-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.sub-filter-pills::-webkit-scrollbar {
    display: none;
}

.scroll-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.scroll-arrow.left-arrow {
    left: -4px;
}

.scroll-arrow.right-arrow {
    right: -4px;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.sub-filter-pills::-webkit-scrollbar {
    display: none;
}

.sub-filter-pill {
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.sub-filter-pill.active {
    background: var(--bg-primary);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

/* ---------- GROUP TITLES ---------- */
.group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--border-light);
}

.group-title:first-child {
    margin-top: 0;
}

/* ---------- PLANNING TIMELINE ---------- */
.planning-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.planning-card {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    -webkit-tap-highlight-color: transparent;
}

.planning-card:active {
    transform: scale(0.98);
    background: var(--bg-glass-hover);
}

.planning-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 8px 0;
}

.planning-time-start {
    font-size: 1rem;
    font-weight: 700;
    color: var(--planning-accent);
    line-height: 1;
}

.planning-time-end {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.planning-time-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, var(--planning-accent), transparent);
    margin-top: 6px;
    border-radius: 1px;
    min-height: 16px;
}

.planning-info {
    flex: 1;
    min-width: 0;
}

.planning-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.planning-speaker {
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.planning-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.planning-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.planning-tag {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 3px 8px;
    background: var(--bg-glass);
    border-radius: 12px;
    white-space: pre-line;
    line-height: 1.4;
}

.planning-tag i {
    font-size: 0.65rem;
}

/* ---------- PARTENAIRES GRID ---------- */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.partenaire-card {
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    -webkit-tap-highlight-color: transparent;
}

.partenaire-card:active {
    transform: scale(0.96);
    background: var(--bg-glass-hover);
}

.partenaire-logo {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    object-fit: contain;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    display: block;
}

.partenaire-logo-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    margin: 0 auto 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
}

.partenaire-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.partenaire-type {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---------- NUMERI'LAB LIST ---------- */
.numerilab-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.numerilab-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    -webkit-tap-highlight-color: transparent;
}

.numerilab-card:active {
    transform: scale(0.96);
    background: var(--bg-glass-hover);
}

.numerilab-image-container {
    width: 100%;
    height: 220px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numerilab-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.numerilab-card:hover .numerilab-image {
    transform: scale(1.05);
}

.numerilab-content {
    padding: 12px 10px 16px;
    text-align: center;
}

.numerilab-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.2;
}

.numerilab-location {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ---------- RESTAURATION LIST ---------- */
.restauration-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.restauration-card {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    -webkit-tap-highlight-color: transparent;
}

.restauration-card:active {
    transform: scale(0.98);
    background: var(--bg-glass-hover);
}

.restauration-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.restauration-large-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 4px;
}

.restauration-info {
    flex: 1;
    min-width: 0;
}

.restauration-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.restauration-type {
    font-size: 0.8rem;
    color: var(--restauration-accent);
    margin-bottom: 6px;
}

.restauration-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.restauration-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 3px 8px;
    background: var(--bg-glass);
    border-radius: 20px;
}

.restauration-tag i {
    font-size: 0.65rem;
}

/* ---------- MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s ease;
    align-items: flex-end;
    justify-content: center;
}

.modal.visible {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 85dvh;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    padding: 24px 20px calc(20px + var(--safe-bottom));
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:active {
    background: var(--bg-glass-hover);
    transform: scale(0.9);
}

/* Modal content styles */
.modal-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 16px;
}

.modal-cover-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    display: block;
}

.modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 16px;
    display: block;
}

.modal-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.modal-public {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    white-space: pre-line;
}

.modal-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
}

.modal-info-row i {
    width: 20px;
    text-align: center;
    color: var(--accent-light);
    font-size: 0.9rem;
}

.modal-info-label {
    color: var(--text-muted);
    min-width: 80px;
}

.modal-info-value {
    color: var(--text-primary);
    flex: 1;
    white-space: pre-line;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-link:active {
    transform: scale(0.95);
}

/* ---------- STAGGER ANIMATION DELAYS ---------- */
.planning-card:nth-child(1),
.partenaire-card:nth-child(1),
.restauration-card:nth-child(1) {
    animation-delay: 0.05s;
}

.planning-card:nth-child(2),
.partenaire-card:nth-child(2),
.restauration-card:nth-child(2) {
    animation-delay: 0.1s;
}

.planning-card:nth-child(3),
.partenaire-card:nth-child(3),
.restauration-card:nth-child(3) {
    animation-delay: 0.15s;
}

.planning-card:nth-child(4),
.partenaire-card:nth-child(4),
.restauration-card:nth-child(4) {
    animation-delay: 0.2s;
}

.planning-card:nth-child(5),
.partenaire-card:nth-child(5),
.restauration-card:nth-child(5) {
    animation-delay: 0.25s;
}

.planning-card:nth-child(6),
.partenaire-card:nth-child(6),
.restauration-card:nth-child(6) {
    animation-delay: 0.3s;
}

.planning-card:nth-child(7),
.partenaire-card:nth-child(7) {
    animation-delay: 0.35s;
}

.planning-card:nth-child(8),
.partenaire-card:nth-child(8) {
    animation-delay: 0.4s;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

/* ---------- UTILITY ---------- */
.hidden {
    display: none !important;
}

/* ---------- RESPONSIVE (larger phones / small tablets) ---------- */
@media (min-width: 420px) {
    .partenaires-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .view-body {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .partenaires-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .planning-card,
    .restauration-card,
    .numerilab-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .view-body {
        max-width: 700px;
        margin: 0 auto;
    }
}