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

:root {
    --color-primary: #000000;
    --color-primary-hover: #333333;
    --color-success: #74EC8D;
    --color-warning: #EBB016;
    --color-danger: #FF1A6A;
    --color-info: #21DAFF;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-background: #f5f5f7;
    --color-white: #ffffff;
    --color-border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Gradient Header */
.gradient-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: linear-gradient(to right, #21DAFF 0%, #74EC8D 20%, #E0FF20 40%, #EBB016 60%, #FF5C1A 80%, #FF1A6A 100%);
    z-index: 100;
}

/* Header */
.header {
    background: var(--color-white);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    margin-top: 18px;
    position: sticky;
    top: 18px;
    z-index: 50;
}

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

.header-content {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-separator {
    margin: 0 8px;
    color: var(--color-text-muted);
    font-weight: 300;
}

.logo-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Mode Navigation - Bottom Mobile Menu */
.mode-nav {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.mode-tabs {
    display: flex;
    gap: 0;
    padding: 8px 0;
}

.mode-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.mode-tab:hover {
    color: var(--color-text);
}

.mode-tab.active {
    color: var(--color-primary);
}

.mode-tab.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

.mode-tab svg {
    stroke: currentColor;
    width: 24px;
    height: 24px;
}

/* Main Content */
.main-content {
    padding: 24px 0;
    min-height: calc(100vh - 200px);
    margin-bottom: 80px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.loading-state p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Mode Content */
.mode-content {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Title */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* Placeholder sections */
.accueil-placeholder,
.programme-placeholder,
.orateurs-placeholder,
.partenaires-placeholder {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 60px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.placeholder-icon {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.placeholder-icon svg {
    opacity: 0.5;
}

.accueil-placeholder p,
.programme-placeholder p,
.orateurs-placeholder p,
.partenaires-placeholder p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    z-index: 1500;
    animation: slideUp 0.3s ease-out;
}

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

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.pwa-install-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.pwa-install-icon img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-install-text strong {
    font-size: 0.95rem;
    color: var(--color-text);
}

.pwa-install-text span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.pwa-install-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-install-btn:hover {
    background: var(--color-primary-hover);
}

.pwa-install-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.pwa-install-close:hover {
    background: var(--color-background);
    color: var(--color-text);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: calc(100% - 48px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastSlideIn 0.3s ease-out;
    min-width: 280px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.fade-out {
    animation: toastFadeOut 0.3s ease-out forwards;
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.toast.success {
    background: #22c55e;
    color: white;
}

.toast.error {
    background: #ef4444;
    color: white;
}

.toast.info {
    background: var(--color-info);
    color: var(--color-text);
}

.toast.warning {
    background: var(--color-warning);
    color: var(--color-text);
}

/* Responsive - Tablet */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding: 0 24px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 1.5rem;
    }

    .mode-tab {
        font-size: 1rem;
    }
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

    .header {
        padding: 24px 0;
    }

    .main-content {
        padding: 32px 0;
        margin-bottom: 90px;
    }

    .toast-container {
        bottom: 100px;
        right: 32px;
    }
    
    .mode-nav {
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.1);
    }
    
    .mode-tabs {
        padding: 10px 0;
    }
    
    .mode-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .mode-tab svg {
        width: 26px;
        height: 26px;
    }
}

/* Responsive - Mobile Small */
@media (max-width: 380px) {
    .mode-tab {
        font-size: 0.65rem;
    }
    
    .mode-tab svg {
        width: 20px;
        height: 20px;
    }
}

/* Responsive PWA Install Banner */
@media (max-width: 480px) {
    .pwa-install-content {
        flex-wrap: wrap;
        position: relative;
        padding-right: 40px;
    }
    
    .pwa-install-text {
        flex-basis: calc(100% - 100px);
    }
    
    .pwa-install-btn {
        flex-basis: 100%;
        margin-top: 8px;
    }
    
    .pwa-install-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* PWA Standalone mode adjustments */
.pwa-standalone .gradient-header {
    height: calc(18px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
}

.pwa-standalone .header {
    margin-top: calc(18px + env(safe-area-inset-top, 0px));
    top: calc(18px + env(safe-area-inset-top, 0px));
}

.pwa-standalone .mode-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pwa-standalone .main-content {
    margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================================
   Auth Screen
   ============================================================================ */

.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #21DAFF 0%, #74EC8D 20%, #E0FF20 40%, #EBB016 60%, #FF5C1A 80%, #FF1A6A 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: authFadeIn 0.4s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.auth-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.auth-logo p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-message {
    text-align: center;
    padding: 24px;
    background: var(--color-background);
    border-radius: var(--radius-md);
}

.auth-message.error {
    background: rgba(255, 26, 106, 0.1);
    border: 1px solid rgba(255, 26, 106, 0.2);
}

.auth-message.error .auth-icon {
    color: var(--color-danger);
}

.auth-message.error p {
    color: var(--color-danger);
}

.logout-message {
    background: rgba(116, 236, 141, 0.1);
    border: 1px solid rgba(116, 236, 141, 0.3);
}

.auth-icon {
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.auth-icon.success {
    color: var(--color-success);
}

.auth-message p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.auth-message p:last-child {
    margin-bottom: 0;
}

.auth-hint {
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
    margin-top: 12px !important;
}

.auth-loading {
    text-align: center;
    padding: 32px;
}

.auth-loading .spinner {
    margin: 0 auto 16px;
}

.auth-loading p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ============================================================================
   User Info & Logout Button
   ============================================================================ */

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-background);
    padding: 6px 12px;
    border-radius: 20px;
}

.user-info svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.logout-button:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: var(--color-white);
}

/* Responsive auth */
@media (max-width: 480px) {
    .auth-container {
        padding: 24px;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
    
    .user-info span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .user-info span {
        display: none;
    }
}

/* ============================================================================
   Programme - Style pliable/dépliable (comme le site)
   ============================================================================ */

.appac-program-fold {
    --pf-bg: #ffffff;
    --pf-card: #fff;
    --pf-border: #e6e8eb;
    --pf-muted: #667085;
    --pf-title: #0f172a;
    --pf-accent: #22c1dc;
    --pf-accent-weak: #e6fbfe;
    --pf-radius: 16px;
    --pf-shadow: 0 4px 0 rgba(10,20,50,.06);
}

.pf-empty {
    text-align: center;
    padding: 40px;
    color: var(--pf-muted);
    background: var(--pf-card);
    border-radius: var(--pf-radius);
}

/* Tabs - Onglets jours */
.pf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 18px 0;
}

.pf-tab {
    background: #1f1f1f;
    color: #fff;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    transition: background .15s ease, color .15s ease,
                border-color .15s ease, box-shadow .15s ease,
                transform .10s ease;
}

.pf-tab:not(.is-active):hover {
    background: #fff;
    color: #111;
    border-color: #111;
    box-shadow: 0 4px 10px rgba(0,0,0,.20);
    transform: translateY(-1px);
}

.pf-tab.is-active {
    background: #fff;
    color: #111;
    border-color: #111;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    transform: none;
}

.pf-tab:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Days content */
.pf-day {
    display: none;
}

.pf-day.is-active {
    display: block;
}

/* Cards - Sessions */
.pf-card {
    background: var(--pf-card);
    box-shadow: none;
    border: 0;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(
        to right,
        #21DAFF 0%, #74EC8D 20%, #E0FF20 40%,
        #EBB016 60%, #FF5C1A 80%, #FF1A6A 100%
    ) 1;
    border-radius: var(--pf-radius) var(--pf-radius) 0 0;
    padding: 18px;
    margin: 16px 0;
}

.pf-card:hover {
    transform: none;
    box-shadow: 0 0 0 2px #e2e2e2;
}

/* Pauses */
.pf-card.is-break {
    background: #f9fafb;
    border: 0;
    border-image: none;
}

.pf-card.is-break .pf-head {
    cursor: default;
}

.pf-card.is-break:hover {
    box-shadow: none;
    transform: none;
}

/* Head */
.pf-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    cursor: pointer;
}

.pf-time {
    font-weight: 800;
    color: #0369a1;
    background: #f9fafb;
    padding: 6px 12px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 1rem;
}

.pf-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--pf-title);
    line-height: 1.35;
    font-weight: 600;
}

.pf-type {
    font-size: 0.75rem;
    font-weight: 800;
    color: #000;
    background: linear-gradient(
        to right,
        #21DAFF 0%, #74EC8D 33%, #E0FF20 66%,
        #EBB016 100%
    );
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    white-space: nowrap;
    display: inline-block;
}

/* Chevron */
.pf-chevron {
    width: 34px;
    height: 34px;
    border: 1px solid var(--pf-border);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: -1;
    justify-self: end;
    transition: transform 0.2s ease;
}

.pf-chevron::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #6b7280;
}

.pf-chevron[aria-expanded="true"]::before {
    border-top: none;
    border-bottom: 8px solid #6b7280;
}

/* Body */
.pf-body {
    margin-top: 14px;
    border-top: 1px dashed var(--pf-border);
    padding-top: 14px;
}

.pf-mods {
    color: var(--pf-muted);
    margin: 10px 0;
    font-size: 1rem;
}

.pf-mods-label {
    color: #334155;
    font-weight: 700;
    margin-right: 6px;
}

/* List items - Intervenants */
.pf-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.pf-item {
    display: flex;
    gap: 12px;
}

.pf-item-bar {
    width: 5px;
    border-radius: 999px;
    background: #cdeffd;
}

.pf-item-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-item-photo {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
}

.pf-item-text {
    display: flex;
    flex-direction: column;
}

.pf-item-speaker {
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
}

.pf-item-title {
    color: var(--pf-muted);
    font-size: 0.9rem;
}

/* Responsive mobile */
@media (max-width: 720px) {
    .pf-head {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pf-time {
        order: 0;
    }

    .pf-type {
        order: 1;
        flex-shrink: 0;
    }

    .pf-chevron {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }

    .pf-title {
        order: 3;
        flex: 0 0 100%;
        min-width: 100%;
        margin-top: 2px;
    }
}

/* ============================================================================
   Orateurs
   ============================================================================ */

.orateurs-search {
    margin-bottom: 16px;
}

.orateurs-search input {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition);
}

.orateurs-search input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.orateurs-search input::placeholder {
    color: var(--color-text-muted);
}

.orateurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .orateurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.orateur-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.orateur-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.orateur-card:active {
    transform: scale(0.98);
}

.orateur-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--color-background);
}

.orateur-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.orateur-nom {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.orateur-prenom {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
}

/* Orateur Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.15s ease-out;
}

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

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.2s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--color-background);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: var(--color-border);
    transform: rotate(90deg);
}

.orateur-detail-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-right: 40px;
}

.orateur-detail-photo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-background);
}

.orateur-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.orateur-detail-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.orateur-ville {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.orateur-etablissement {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.detail-session {
    background: var(--color-background);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
}

.detail-session:last-child {
    margin-bottom: 0;
}

.detail-session-jour {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-info);
    text-transform: capitalize;
    margin-bottom: 2px;
}

.detail-session-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.detail-session-titre {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.detail-session-programme {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.no-sessions {
    text-align: center;
    color: var(--color-text-muted);
    padding: 24px;
}

/* ============================================================================
   Partenaires - Affichage simple en grille
   ============================================================================ */

.partenaires-simple-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.partenaire-card-large {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    min-height: 120px;
    transition: var(--transition);
}

.partenaire-card-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.partenaire-card-large img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* ============================================================================
   Accueil - Page d'accueil
   ============================================================================ */

/* Hero Section - Style carte avec bordure dégradée */
.accueil-hero {
    background: var(--color-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(
        to right,
        #21DAFF 0%, #74EC8D 20%, #E0FF20 40%,
        #EBB016 60%, #FF5C1A 80%, #FF1A6A 100%
    ) 1;
}

.hero-content {
    padding: 28px 24px;
    text-align: center;
}

.hero-event {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0369a1;
    font-size: 1.15rem;
    font-weight: 700;
}

.hero-date svg {
    flex-shrink: 0;
    color: #0369a1;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-location svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Welcome Card */
.accueil-welcome-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.welcome-message {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.welcome-label {
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.welcome-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}

.welcome-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.35rem;
    }
    
    .hero-date {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .hero-location {
        font-size: 0.85rem;
    }
    
    .welcome-message {
        flex-direction: column;
        gap: 2px;
    }
}

.infos-pratiques-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.infos-pratiques-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-background);
}

.infos-pratiques-btn svg:first-child {
    color: var(--color-info);
    flex-shrink: 0;
}

.infos-pratiques-btn span {
    flex: 1;
}

.infos-pratiques-btn svg:last-child {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* ============================================================================
   Modal Infos Pratiques
   ============================================================================ */

.infos-modal {
    max-width: 600px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-right: 40px;
}

.info-pratique-item {
    background: var(--color-background);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.info-pratique-item:last-child {
    margin-bottom: 0;
}

.info-pratique-titre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-pratique-titre::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #21DAFF, #74EC8D);
    border-radius: 2px;
}

.info-pratique-contenu {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-pratique-contenu p {
    margin-bottom: 8px;
}

.info-pratique-contenu p:last-child {
    margin-bottom: 0;
}

.info-pratique-contenu strong,
.info-pratique-contenu u {
    color: var(--color-text);
}

.info-pratique-contenu em {
    font-style: italic;
}

/* QR Scanner Styles */
.scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    margin-top: 24px;
    background: linear-gradient(135deg, #21DAFF 0%, #74EC8D 50%, #E0FF20 100%);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(33, 218, 255, 0.3);
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(33, 218, 255, 0.4);
}

.scan-btn:active {
    transform: translateY(0);
}

.scan-btn svg {
    flex-shrink: 0;
}

.qr-scanner-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-scanner-container #qr-reader,
.qr-scanner-container #qr-reader-logout {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.qr-scanner-container #qr-reader video,
.qr-scanner-container #qr-reader-logout video {
    border-radius: 16px;
}

/* Override html5-qrcode styles */
#qr-reader__scan_region {
    background: transparent !important;
}

#qr-reader__dashboard {
    padding: 10px !important;
}

#qr-reader__dashboard_section_csr button {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer;
}

#qr-reader__dashboard_section_csr select {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-family: 'Poppins', sans-serif !important;
}

#qr-reader__status_span {
    background: transparent !important;
    color: white !important;
    font-size: 0.9rem !important;
}

#qr-reader__header_message {
    color: white !important;
    font-size: 0.85rem !important;
    border: none !important;
    padding: 8px !important;
}

.qr-scanner-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-scanner-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.qr-scanner-close svg {
    width: 18px;
    height: 18px;
}

/* Animation scanner actif */
.qr-scanner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #21DAFF, #74EC8D, #E0FF20, #FF5C1A, #FF1A6A);
    animation: scannerPulse 2s ease-in-out infinite;
}

@keyframes scannerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Scan success animation */
.scan-success {
    animation: scanSuccess 0.5s ease;
}

@keyframes scanSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); border-color: #74EC8D; }
    100% { transform: scale(1); }
}

/* Print */
@media print {
    .gradient-header,
    .header,
    .mode-nav,
    .pwa-install-banner,
    .auth-screen {
        display: none;
    }
}
