@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent: #d4a574;
    --accent-dark: #b8915f;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --accent: #f0d9b5;
    --accent-dark: #d4a574;
    --border-color: #2d3748;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px; /* Base mobile: 17px pour meilleure lisibilité */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ========== MOBILE-FIRST HEADER ========== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: block;
    height: 50px;
}

.logo-header {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brand:hover .logo-header {
    transform: scale(1.02);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Boutons optimisés pour le toucher mobile (min 44px) */
.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.theme-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.menu-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ========== SIDEBAR MOBILE ========== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1100;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85vw;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    z-index: 1200;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.close-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
    line-height: 1;
}

.close-btn:hover {
    background: var(--bg-secondary);
}

.sidebar-links {
    list-style: none;
    padding: 0.5rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    position: relative;
    min-height: 56px; /* Zone tactile confortable */
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

.sidebar-link:hover::before {
    transform: scaleY(1);
}

.link-icon {
    font-size: 1.75rem;
    width: 36px;
    text-align: center;
}

/* ========== MAIN CONTENT MOBILE-FIRST ========== */
main {
    flex: 1;
    padding: 6rem 1.25rem 3rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* ========== TYPOGRAPHY MOBILE ========== */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.intro {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== CARDS MOBILE ========== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

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

/* ========== BUTTONS MOBILE (min 44px) ========== */
.btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 1.5rem;
    min-height: 48px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition-fast);
    font-family: inherit;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

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

.btn-small {
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    font-size: 1rem;
}

.btn-fav {
    margin-top: 1rem;
    background: var(--accent);
    color: white;
}

.btn-edit {
    background: #4299e1;
    color: white;
}

.btn-delete {
    background: #fc8181;
    color: white;
}

/* ========== STEPS MOBILE ========== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.step:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

/* ========== MESSE STEPS MOBILE ========== */
.messe-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.messe-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.messe-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.step-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.step-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-title-section h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.position-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    width: fit-content;
}

.position-debout {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

[data-theme="dark"] .position-debout {
    background: #1a237e;
    color: #90caf9;
    border: 1px solid #3949ab;
}

.position-assis {
    background: #f3e5f5;
    color: #6a1b9a;
    border: 1px solid #ce93d8;
}

[data-theme="dark"] .position-assis {
    background: #4a148c;
    color: #ce93d8;
    border: 1px solid #7b1fa2;
}

.position-à,
.position-à-genoux {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

[data-theme="dark"] .position-à,
[data-theme="dark"] .position-à-genoux {
    background: #e65100;
    color: #ffcc80;
    border: 1px solid #f57c00;
}

.step-content {
    padding: 1.5rem;
}

.step-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.step-info {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid;
}

.step-info.gestes {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #1b5e20;
}

[data-theme="dark"] .step-info.gestes {
    background: #1b5e20;
    border-color: #66bb6a;
    color: #c8e6c9;
}

.step-info.reponse {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
    font-style: italic;
}

[data-theme="dark"] .step-info.reponse {
    background: #e65100;
    border-color: #ffb74d;
    color: #ffe0b2;
}

.step-info strong {
    font-weight: 700;
    margin-right: 0.5rem;
}

.step-details {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
}

.step-details small {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== MESSE LEGEND MOBILE ========== */
.messe-legend {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.messe-legend h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-item span:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== PRAYERS MOBILE ========== */
.prieres-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.priere-card {
    margin-bottom: 0;
    cursor: pointer;
}

.priere-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.priere-title-section {
    flex: 1;
}

.priere-title-section h3 {
    margin-bottom: 0.5rem;
}

.priere-categorie {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.priere-actions-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-icon {
    font-size: 1.3rem;
    color: var(--accent);
    transition: var(--transition);
    user-select: none;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.priere-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

.priere-texte {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: 8px;
    white-space: pre-line;
    border: 1px solid var(--border-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FAVORITES MOBILE ========== */
.favorites-section {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

#favorites-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.favorite-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.favorite-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

/* ========== FORMS MOBILE ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    min-height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    min-height: 120px;
}

/* ========== JOURNAL MOBILE ========== */
.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.export-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.export-buttons .btn {
    flex: 1;
    min-width: 140px;
}

.entry-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.entry-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

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

.entry-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.entry-content {
    white-space: pre-wrap;
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== SEARCH MOBILE ========== */
.search-box {
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem;
    min-height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* ========== DATE BADGE MOBILE ========== */
.date-badge {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* ========== SAINT CARD MOBILE ========== */
.saint-card {
    padding: 1.75rem;
}

.saint-card h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.saint-resume {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
}

.saint-section {
    margin: 2rem 0;
}

.saint-section h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.saint-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

.saint-anecdote {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.saint-anecdote h4 {
    color: var(--accent);
}

.saint-citation {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========== EXAMEN MOBILE ========== */
.examen-list {
    list-style: none;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.examen-list li {
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.examen-list li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

/* ========== TIPS MOBILE ========== */
.tips {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.tips ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.tips li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* ========== FOOTER MOBILE ========== */
.modern-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== UTILITIES ========== */
.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.4s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

/* ========== PARCOURS CHRÉTIEN MOBILE ========== */
.parcours-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.parcours-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.parcours-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.parcours-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.parcours-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.parcours-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.parcours-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parcours-title-section h3 {
    margin: 0;
    font-size: 1.25rem;
}

.duree-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    width: fit-content;
}

.parcours-content {
    padding: 1.5rem;
}

.parcours-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.parcours-actions {
    background: #e8f5e9;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

[data-theme="dark"] .parcours-actions {
    background: #1b5e20;
    border-color: #66bb6a;
}

.parcours-actions strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.parcours-actions ul {
    margin: 0;
    padding-left: 1.5rem;
}

.parcours-actions li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.parcours-symboles {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
}

.parcours-symboles small {
    color: var(--text-muted);
}

/* ========== ÉGLISES SECTION MOBILE ========== */
.eglises-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.eglises-section h3 {
    margin-bottom: 1rem;
}

.eglises-section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box input {
    flex: 1;
    min-width: 200px;
}

#map-container {
    margin: 1.5rem 0;
}

#map {
    height: 350px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#churches-list {
    margin-top: 2rem;
}

#churches-list h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.church-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.church-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

.church-item h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.church-item p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.church-item a {
    color: var(--accent);
    text-decoration: none;
}

.church-item a:hover {
    text-decoration: underline;
}

/* ========== FAQ SECTION MOBILE ========== */
.faq-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.faq-section h3 {
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========== ENCOURAGEMENT MOBILE ========== */
.encouragement {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.75rem;
    margin-top: 3rem;
    text-align: center;
}

[data-theme="dark"] .encouragement {
    background: linear-gradient(135deg, #1a237e 0%, #4a148c 100%);
}

.encouragement p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ========== CONFESSION PAGE MOBILE ========== */
.confession-section {
    margin-top: 3rem;
}

.confession-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Examen de conscience */
.examen-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.examen-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: var(--transition);
}

.examen-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.examen-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.examen-icon {
    font-size: 1.5rem;
}

.examen-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.examen-questions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.examen-questions li {
    padding: 0.65rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.examen-questions li:last-child {
    border-bottom: none;
}

.examen-questions li:before {
    content: "• ";
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Étapes confession */
.confession-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.confession-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.confession-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.confession-step .step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.confession-step .step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.confession-step .step-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.confession-step .step-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.confession-step .step-title-section h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.confession-step .step-content {
    padding: 1.5rem;
}

.confession-step .step-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.confession-step .step-info {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.confession-step .step-info.gestes {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

[data-theme="dark"] .confession-step .step-info.gestes {
    background: #1b5e20;
    border-color: #66bb6a;
}

.confession-step .step-info.reponse {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
}

[data-theme="dark"] .confession-step .step-info.reponse {
    background: #e65100;
    border-color: #ffb74d;
}

.confession-step .step-info.pretre {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

[data-theme="dark"] .confession-step .step-info.pretre {
    background: #0d47a1;
    border-color: #64b5f6;
}

.confession-step .step-exemple {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
}

.confession-step .step-exemple small {
    color: var(--text-muted);
}

.confession-step .step-conseil {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #e8eaf6;
    border-radius: 6px;
    border-left: 3px solid #3f51b5;
}

[data-theme="dark"] .confession-step .step-conseil {
    background: #1a237e;
    border-color: #7986cb;
}

.confession-step .step-conseil small {
    color: var(--text-primary);
}

.confession-step .step-details {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
}

.confession-step .step-details small {
    color: var(--text-muted);
}

/* Prières confession */
.prieres-confession {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.priere-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: var(--transition);
}

.priere-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.priere-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.priere-texte {
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

/* Conseils pratiques */
.conseils-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.conseil-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    transition: var(--transition);
}

.conseil-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.conseil-question {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.conseil-reponse {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========== CATÉCHÈSE PAGE MOBILE ========== */
.catechese-container {
    margin-top: 2.5rem;
}

.catechese-category {
    margin-bottom: 3.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.category-icon {
    font-size: 2rem;
}

.category-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.fiches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.fiche-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: var(--transition);
}

.fiche-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.fiche-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.fiche-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.category-blue { background: #2196f3; }
.category-purple { background: #9c27b0; }
.category-green { background: #4caf50; }
.category-orange { background: #ff9800; }
.category-red { background: #f44336; }
.category-teal { background: #009688; }

.fiche-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.fiche-header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
    flex: 1;
}

.fiche-resume {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.fiche-resume strong {
    color: var(--text-primary);
}

.btn-expand, .btn-collapse {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    min-height: 48px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-expand:hover, .btn-collapse:hover {
    background: #c49765;
    transform: translateY(-1px);
}

.btn-collapse {
    width: 100%;
    margin-top: 1.5rem;
}

.fiche-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.fiche-texte {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.fiche-texte strong {
    color: var(--accent);
}

.fiche-points {
    background: #e8f5e9;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 3px solid #4caf50;
}

[data-theme="dark"] .fiche-points {
    background: #1b5e20;
    border-color: #66bb6a;
}

.fiche-points strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.fiche-points ul {
    margin: 0;
    padding-left: 1.5rem;
}

.fiche-points li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.fiche-citation {
    background: #e3f2fd;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid #2196f3;
}

[data-theme="dark"] .fiche-citation {
    background: #0d47a1;
    border-color: #64b5f6;
}

.fiche-citation strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.fiche-citation p {
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

/* ========== CHRONOLOGIE MOBILE ========== */
.points-cles-section {
    margin: 2.5rem 0 3.5rem 0;
}

.points-cles-section h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 900;
}

.points-cles-section .info-box {
    margin-bottom: 1.5rem;
}

.points-cles-section .info-box strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.points-cles-section .info-box p {
    line-height: 1.8;
    margin: 0;
}

.timeline-container {
    position: relative;
    margin: 2.5rem 0;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 56px;
    bottom: -25px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-purple { background: #9c27b0; color: white; }
.timeline-blue { background: #2196f3; color: white; }
.timeline-cyan { background: #00bcd4; color: white; }
.timeline-orange { background: #ff9800; color: white; }
.timeline-gold { background: #ffc107; color: #000; }
.timeline-brown { background: #795548; color: white; }
.timeline-teal { background: #009688; color: white; }
.timeline-red { background: #f44336; color: white; }
.timeline-green { background: #4caf50; color: white; }
.timeline-indigo { background: #3f51b5; color: white; }
.timeline-pink { background: #e91e63; color: white; }

.timeline-content {
    flex: 1;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

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

.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.timeline-emoji {
    font-size: 1.75rem;
}

.timeline-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.timeline-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge-periode,
.badge-annee {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-periode {
    background: var(--accent);
    color: #000;
}

.badge-annee {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.timeline-description {
    margin: 1.25rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.timeline-evenements {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
    border: 1px solid var(--border-color);
}

.timeline-evenements strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-evenements ul {
    margin: 0;
    padding-left: 1.5rem;
}

.timeline-evenements li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.timeline-reference {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-reference strong {
    color: var(--text-secondary);
}

.faq-section {
    margin-top: 3.5rem;
}

.faq-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== BIBLE MOBILE ========== */
.bible-info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.bible-info-box p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bible-info-box strong {
    color: var(--text-primary);
}

.bible-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 2.5rem 0;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.bible-tab {
    background: none;
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    bottom: -2px;
    white-space: nowrap;
}

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

.bible-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.books-grid h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 900;
}

.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.book-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.book-emoji {
    font-size: 2rem;
}

.book-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.book-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chapter-selection {
    margin-top: 2rem;
}

.chapter-selection h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.chapter-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.chapter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chapter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.bible-text {
    margin-top: 2rem;
}

.bible-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-back {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0 1.25rem;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.bible-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.verses-container {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.verse {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.verse-number {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
}

.verse-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 1.05rem;
    padding-top: 0.35rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========== MEDIA QUERIES DESKTOP ========== */

/* Tablette et plus (768px+) */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }

    .modern-header {
        padding: 1rem 1.5rem;
    }

    .brand {
        height: 56px;
    }

    .theme-btn,
    .menu-btn,
    .close-btn {
        width: 40px;
        height: 40px;
    }

    main {
        padding: 8rem 2rem 5rem;
        max-width: 1100px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .intro {
        font-size: 1.15rem;
        margin-bottom: 4rem;
        max-width: 750px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .card {
        padding: 2.5rem;
    }

    .examen-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .fiches-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .prieres-confession {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .books-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .chapters-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .export-buttons {
        width: auto;
    }

    .timeline-item {
        gap: 2rem;
    }

    .timeline-item::before {
        left: 30px;
        top: 70px;
        bottom: -30px;
    }

    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-emoji {
        font-size: 2rem;
    }

    .timeline-header h3 {
        font-size: 1.5rem;
    }

    #map {
        height: 400px;
    }

    /* Carrousels responsive desktop */
    .hero-modern {
        min-height: 380px;
    }

    .hero-title {
        font-size: 4.5rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .carousel-card {
        width: 320px;
    }

    .card-visual {
        height: 140px;
    }

    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grand écran (1024px+) */
@media (min-width: 1024px) {
    .sidebar {
        width: 320px;
    }

    .step-header,
    .parcours-header,
    .confession-step .step-header {
        padding: 1.75rem;
    }

    .step-content,
    .parcours-content,
    .confession-step .step-content {
        padding: 1.75rem;
    }
}

/* Très grand écran (1400px+) */
@media (min-width: 1400px) {
    .header-content {
        max-width: 1400px;
    }
}

/* ========== HOMEPAGE CARROUSELS 2025 ========== */

/* Hero Moderne Pleine Largeur */
.hero-modern {
    position: relative;
    width: 100vw;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 2.5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 165, 116, 0.12) 0%, 
        rgba(212, 165, 116, 0.06) 50%,
        rgba(212, 165, 116, 0.02) 100%
    );
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0 auto 1.5rem;
    text-align: center;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* Carousel Sections */
.carousel-sections {
    padding-bottom: 2rem;
}

.carousel-section {
    margin-bottom: 3rem;
}

.section-header {
    padding: 0 1rem;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem 1rem 1rem;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

/* Carousel Cards */
.carousel-card {
    display: flex;
    flex-direction: column;
    width: 280px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.carousel-card.featured {
    border: 2px solid var(--accent);
}

/* Card Visual (top colored section) */
.card-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    z-index: 1;
}

/* Gradients colorés pour chaque type de carte */
.messe-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.prieres-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.saint-bg {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.confession-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.catechese-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.devenir-bg {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.chrono-bg {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.fetes-bg {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.bible-bg {
    background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 100%);
}

.journal-bg {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Card Content */
.card-content {
    padding: 1.25rem;
    flex: 1;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tips Section Modernisée */
.tips-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.tips-modern {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
}

.tips-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

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

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition-fast);
}

.tip-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ========== PRINT ========== */
@media print {
    .modern-header, .modern-footer, .btn, .theme-btn, .menu-btn, .sidebar {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
