/**
 * CSS Front-end - Mini Blog
 * Design épuré et très lisible, optimisé pour les seniors
 */

/* Variables CSS pour taille de police ajustable */
:root {
    --font-size-base: 20px;
    --font-size-small: 16px;
    --font-size-large: 24px;
    --font-size-xlarge: 28px;
    --font-size-title: 32px;
    --line-height: 1.9;
}

/* Classe pour agrandir le texte */
body.large-text {
    --font-size-base: 24px;
    --font-size-small: 20px;
    --font-size-large: 28px;
    --font-size-xlarge: 34px;
    --font-size-title: 40px;
    --line-height: 2;
}

body.xlarge-text {
    --font-size-base: 28px;
    --font-size-small: 24px;
    --font-size-large: 32px;
    --font-size-xlarge: 40px;
    --font-size-title: 48px;
    --line-height: 2.1;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #fafafa;
    color: #222; /* Contraste amélioré */
    line-height: var(--line-height);
    font-size: var(--font-size-base);
}

a {
    color: #0066CC; /* Bleu plus visible */
    text-decoration: underline;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Contrôle de taille de police - flottant */
.font-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-controls span {
    font-size: 14px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.font-btn:hover {
    background: #f0f0f0;
    border-color: #0066CC;
}

.font-btn.active {
    background: #0066CC;
    color: white;
    border-color: #0066CC;
}

/* Barre météo en haut - sur toute la ligne */
.weather-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.weather-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.weather-label {
    font-weight: 600;
    opacity: 0.9;
    margin-right: 10px;
}

.weather-items {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex: 1;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 25px;
    flex: 1;
    max-width: 180px;
    justify-content: center;
}

.weather-city-name {
    opacity: 0.9;
    font-size: 14px;
}

.weather-temp {
    font-weight: 700;
    font-size: 15px;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.site-title {
    font-size: var(--font-size-xlarge);
    font-weight: normal;
    margin: 0;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: none;
    color: #0066CC;
}

.site-tagline {
    font-size: 14px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

/* Navigation */
.main-nav {
    position: relative;
}

.nav-toggle {
    display: none;
    background: #0066CC;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: var(--font-size-small);
    cursor: pointer;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-radius: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-small);
    transition: all 0.2s;
    text-decoration: none;
    border: 2px solid transparent;
}

.nav-menu a:hover {
    background: #e8f4fc;
    border-color: #0066CC;
    text-decoration: none;
}

.nav-menu a.active {
    background: #0066CC;
    color: white;
    border-color: #0066CC;
}

/* Main content */
.main-content {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

/* Category header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.category-title {
    font-size: var(--font-size-large);
    color: #444;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: normal;
}

.back-to-home {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-small);
    color: #0066CC;
    text-decoration: none;
}

.back-to-home:hover {
    text-decoration: underline;
}

/* Featured Article (À la une) */
.featured-article {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    color: white;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='70' opacity='0.1'%3E🇮🇱%3C/text%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
}

.featured-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
}

/* Featured article with image layout */
.featured-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.featured-article.has-image .featured-wrapper {
    flex-direction: row;
}

.featured-image {
    flex: 0 0 350px;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image a {
    display: block;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.featured-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-small);
}

.featured-meta time {
    opacity: 0.8;
}

.featured-category {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.featured-category:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

.featured-title {
    font-size: calc(var(--font-size-title) + 6px);
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-title a {
    color: white;
    text-decoration: none;
}

.featured-title a:hover {
    text-decoration: underline;
}

.featured-excerpt {
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 700px;
}

.featured-btn {
    display: inline-block;
    background: white;
    color: #1e3c72 !important;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none !important;
    transition: all 0.3s;
}

.featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Section title */
.section-title {
    font-size: var(--font-size-large);
    color: #333;
    margin-bottom: 30px;
    font-weight: normal;
}

/* Articles Grid */
.articles-section {
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Article list (legacy) */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Article card */
.article-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card:not(.has-image) {
    padding: 30px;
}

.article-card.has-image .card-body {
    padding: 25px 30px 30px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

/* Card image */
.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.card-category {
    background: #e8f4fc;
    color: #0066CC;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
}

.card-category:hover {
    background: #0066CC;
    color: white;
    text-decoration: none;
}

.card-date {
    font-size: 13px;
    color: #888;
}

.card-title {
    font-size: var(--font-size-large);
    font-weight: normal;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.card-title a:hover {
    color: #0066CC;
}

.card-excerpt {
    color: #555;
    font-size: var(--font-size-small);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.card-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-small);
    color: #0066CC;
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: var(--font-size-large);
    color: #333;
    font-weight: normal;
    margin-bottom: 15px;
}

.empty-state p {
    color: #666;
    font-size: var(--font-size-base);
}

.article-header {
    margin-bottom: 25px;
}

.article-title {
    font-size: var(--font-size-title);
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: normal;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-title a:hover {
    color: #0066CC;
    text-decoration: none;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-small);
    color: #555;
}

.article-category a {
    background: #e8f4fc;
    padding: 6px 16px;
    border-radius: 20px;
    color: #0066CC;
    font-size: var(--font-size-small);
    text-decoration: none;
    border: 1px solid #cce5f5;
}

.article-category a:hover {
    background: #0066CC;
    color: white;
    text-decoration: none;
}

.article-excerpt {
    color: #333;
    margin-bottom: 25px;
}

.read-more {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    padding: 12px 25px;
    background: #0066CC;
    color: white !important;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none !important;
}

.read-more:hover {
    background: #004499;
}

/* Article page */
.article-page .article-full {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.article-full .article-title {
    font-size: calc(var(--font-size-title) + 4px);
    margin-bottom: 20px;
}

.article-full .article-meta {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.article-content {
    font-size: var(--font-size-base);
    line-height: var(--line-height);
}

.article-content p {
    margin-bottom: 1.8em;
}

.article-content a {
    border-bottom: 2px solid #0066CC;
    text-decoration: none;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-content ul,
.article-content ol {
    margin: 1.8em 0;
    padding-left: 35px;
}

.article-content li {
    margin-bottom: 0.8em;
}

.article-content blockquote {
    border-left: 5px solid #0066CC;
    margin: 2em 0;
    padding: 20px 30px;
    background: #f8f9fa;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.back-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    padding: 12px 25px;
    background: #f0f0f0;
    border-radius: 8px;
    color: #333 !important;
    text-decoration: none !important;
}

.back-link:hover {
    background: #e0e0e0;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-small);
}

.share-buttons span {
    color: #666;
}

.share-btn {
    padding: 10px 18px;
    border-radius: 8px;
    color: white !important;
    font-size: var(--font-size-small);
    text-decoration: none !important;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-facebook {
    background: #3b5998;
}

.share-twitter {
    background: #1da1f2;
}

.share-email {
    background: #555;
}

.share-whatsapp {
    background: #25D366;
}

/* ===== SECTION COMMENTAIRES ===== */
.comments-section {
    margin-top: 50px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.comments-section h2 {
    font-size: var(--font-size-large);
    font-weight: normal;
    margin-bottom: 30px;
    color: #333;
}

.comment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.comment-form-row {
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0066CC;
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-submit-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: var(--font-size-small);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.no-comments {
    text-align: center;
    color: #888;
    padding: 30px;
    font-style: italic;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 15px;
    border-left: 4px solid #0066CC;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: 600;
    color: #1e3c72;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.comment-date {
    font-size: 14px;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.comment-content {
    color: #444;
    line-height: 1.7;
}

/* ===== WIDGETS ROW (Shabbat + Urgences) ===== */
.widgets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.widget h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.widget-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Widget Shabbat */
.shabbat-widget {
    background: linear-gradient(135deg, #f5f0e6 0%, #ede4d3 100%);
    border: 2px solid #d4c5a9;
}

.shabbat-times {
    margin-bottom: 15px;
}

.shabbat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.shabbat-row:last-of-type {
    border-bottom: none;
}

.shabbat-label {
    font-weight: 500;
    color: #666;
}

.shabbat-time {
    font-size: var(--font-size-large);
    font-weight: 700;
    color: #1e3c72;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shabbat-city {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 10px 0 0;
}

.shabbat-note {
    font-size: 13px;
    color: #888;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* Widget Urgences */
.emergency-widget {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #ffcccc;
}

.emergency-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.emergency-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.emergency-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.emergency-icon {
    font-size: 24px;
    width: 35px;
    text-align: center;
}

.emergency-name {
    flex: 1;
    color: #333;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.emergency-number {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #c0392b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.emergency-mda:hover { border-color: #e74c3c; }
.emergency-police:hover { border-color: #3498db; }
.emergency-fire:hover { border-color: #e67e22; }
.emergency-electric:hover { border-color: #f1c40f; }
.emergency-mental:hover { border-color: #2ecc71; }

/* Bouton lecture audio */
.audio-controls {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.audio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.audio-btn.playing {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.audio-icon {
    font-size: 24px;
}

.audio-status {
    margin-top: 10px;
    font-size: var(--font-size-small);
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Widget Météo */
.weather-widget {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    color: white;
}

.weather-widget h3 {
    font-size: var(--font-size-large);
    margin-bottom: 20px;
    font-weight: normal;
    text-align: center;
}

.weather-cities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.weather-city {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.city-name {
    display: block;
    font-size: var(--font-size-small);
    margin-bottom: 8px;
    opacity: 0.9;
}

.city-temp {
    display: block;
    font-size: var(--font-size-large);
    font-weight: bold;
}

/* Related articles */
.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    font-size: var(--font-size-large);
    font-weight: normal;
    margin-bottom: 25px;
    color: #444;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    border: 1px solid #eee;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-card h3 {
    font-size: var(--font-size-base);
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.related-card time {
    font-size: var(--font-size-small);
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.newsletter-box {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-content {
    flex: 1;
    min-width: 280px;
}

.newsletter-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.newsletter-box h3 {
    font-size: var(--font-size-large);
    margin-bottom: 10px;
    font-weight: normal;
    color: #1a1a1a;
}

.newsletter-content p {
    color: #555;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-small);
    margin: 0;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 300px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-family: inherit;
    min-width: 200px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0066CC;
}

.newsletter-form button {
    padding: 18px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-small);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.newsletter-note {
    text-align: center;
    width: 100%;
    color: #888;
    font-size: 14px;
    margin-top: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Legacy sidebar support */
.sidebar {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f4f8 100%);
    padding: 50px 0;
}

.article-newsletter {
    margin-top: 50px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.page-link {
    padding: 15px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: var(--font-size-base);
    text-decoration: none !important;
    border: 2px solid #eee;
}

.page-link:hover {
    background: #0066CC;
    color: white !important;
    border-color: #0066CC;
}

.page-info {
    color: #666;
    font-size: var(--font-size-base);
}

/* Alerts */
.alert {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Empty state */
.empty-message {
    text-align: center;
    padding: 80px 20px;
    color: #555;
}

.empty-message p {
    margin-bottom: 15px;
    font-size: var(--font-size-large);
}

/* Error page */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: var(--font-size-title);
    margin-bottom: 20px;
    font-weight: normal;
}

.error-page p {
    color: #555;
    margin-bottom: 30px;
    font-size: var(--font-size-base);
}

.btn {
    display: inline-block;
    padding: 18px 35px;
    background: #0066CC;
    color: white !important;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none !important;
}

.btn:hover {
    background: #004499;
}

/* Footer Professionnel */
.site-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 50px 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.footer-brand h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 5px;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 14px;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
    text-decoration: none;
}

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    :root {
        --font-size-base: 17px;
        --font-size-small: 15px;
        --font-size-large: 20px;
        --font-size-xlarge: 22px;
        --font-size-title: 24px;
    }

    body.large-text {
        --font-size-base: 20px;
        --font-size-small: 17px;
        --font-size-large: 23px;
        --font-size-xlarge: 26px;
        --font-size-title: 28px;
    }

    .container {
        padding: 0 15px;
    }

    /* ===== WEATHER BAR MOBILE ===== */
    .weather-bar {
        padding: 8px 0;
    }

    .weather-bar-content {
        flex-direction: row;
        justify-content: center;
        gap: 0;
        flex-wrap: nowrap;
    }

    .weather-label {
        display: none;
    }

    .weather-items {
        display: flex;
        justify-content: space-around;
        width: 100%;
        gap: 5px;
    }

    .weather-item {
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 15px;
        flex: 1;
        min-width: 0;
        gap: 4px;
    }

    .weather-city-name {
        font-size: 10px;
    }

    .weather-temp {
        font-size: 12px;
    }

    /* ===== HEADER MOBILE ===== */
    .site-header {
        padding: 12px 0;
    }

    .site-header .container {
        display: block;
    }

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

    .header-brand {
        flex: 1;
    }

    .site-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .site-tagline {
        font-size: 11px;
        margin-top: 2px;
    }

    .main-nav {
        position: static;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0066CC;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        margin-top: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 10px 15px 15px;
        gap: 5px;
        z-index: 1000;
        box-sizing: border-box;
    }

    .site-header {
        position: relative;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        list-style: none;
    }

    .nav-menu a {
        display: block;
        padding: 14px 18px;
        border-radius: 8px;
        font-size: 16px;
        text-align: center;
        background: #f5f5f5;
        color: #333;
        text-decoration: none;
        border: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: #0066CC;
        color: white;
    }

    /* ===== MAIN CONTENT MOBILE ===== */
    .main-content {
        padding: 20px 0;
    }

    /* ===== FEATURED ARTICLE MOBILE ===== */
    .featured-article {
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 15px;
    }

    .featured-article::before {
        display: none;
    }

    .featured-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .featured-article.has-image .featured-wrapper {
        flex-direction: column;
    }

    .featured-image {
        flex: none;
        width: 100%;
        margin: -25px -20px 0;
        width: calc(100% + 40px);
        border-radius: 15px 15px 0 0;
    }

    .featured-image img {
        min-height: 180px;
        max-height: 220px;
    }

    .featured-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 15px;
    }

    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 14px;
    }

    .featured-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .featured-excerpt {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .featured-btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    /* ===== SECTION TITLE MOBILE ===== */
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* ===== ARTICLES GRID MOBILE ===== */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-card {
        border-radius: 12px;
    }

    .article-card:not(.has-image) {
        padding: 20px;
    }

    .article-card.has-image .card-body {
        padding: 15px 20px 20px;
    }

    /* Card image mobile */
    .card-image {
        height: 160px;
    }

    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .card-category {
        font-size: 11px;
        padding: 4px 10px;
    }

    .card-date {
        font-size: 11px;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .card-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .card-link {
        font-size: 14px;
    }

    /* ===== ARTICLE PAGE MOBILE ===== */
    .article-full {
        padding: 25px 20px !important;
        border-radius: 12px;
    }

    .article-header {
        margin-bottom: 20px;
    }

    .article-title {
        font-size: 22px !important;
        margin-bottom: 12px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 14px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .article-content img {
        margin: 15px 0;
        border-radius: 8px;
    }

    /* ===== AUDIO CONTROLS MOBILE ===== */
    .audio-controls {
        margin-top: 20px;
        padding-top: 15px;
    }

    .audio-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }

    .audio-icon {
        font-size: 20px;
    }

    /* ===== SHARE BUTTONS MOBILE ===== */
    .article-footer {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .back-link {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .share-buttons {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-buttons span {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .share-btn {
        flex: 1;
        text-align: center;
        padding: 12px 10px;
        font-size: 13px;
        min-width: calc(50% - 4px);
    }

    /* ===== WEATHER WIDGET MOBILE ===== */
    .weather-widget {
        padding: 20px;
        margin-top: 25px;
        border-radius: 12px;
    }

    .weather-widget h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .weather-cities {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .weather-city {
        padding: 12px 10px;
    }

    .city-name {
        font-size: 13px;
    }

    .city-temp {
        font-size: 18px;
    }

    /* ===== COMMENTS SECTION MOBILE ===== */
    .comments-section {
        margin-top: 25px;
        padding: 25px 20px;
        border-radius: 12px;
    }

    .comments-section h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .comment-form {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 14px 15px;
        font-size: 16px;
        border-radius: 8px;
    }

    .comment-submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .comment-item {
        padding: 15px;
        border-radius: 10px;
    }

    .comment-author {
        font-size: 15px;
    }

    .comment-date {
        font-size: 12px;
    }

    .comment-content {
        font-size: 15px;
    }

    /* ===== WIDGETS ROW MOBILE ===== */
    .widgets-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .widget {
        padding: 20px;
        border-radius: 12px;
    }

    .widget h3 {
        font-size: 16px;
    }

    .widget-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Shabbat widget mobile */
    .shabbat-row {
        padding: 10px 0;
    }

    .shabbat-label {
        font-size: 14px;
    }

    .shabbat-time {
        font-size: 20px;
    }

    .shabbat-city {
        font-size: 13px;
    }

    .shabbat-note {
        font-size: 12px;
    }

    /* Emergency widget mobile */
    .emergency-item {
        padding: 12px;
        gap: 10px;
    }

    .emergency-icon {
        font-size: 20px;
        width: 30px;
    }

    .emergency-name {
        font-size: 14px;
    }

    .emergency-number {
        font-size: 16px;
    }

    /* ===== RELATED ARTICLES MOBILE ===== */
    .related-articles {
        margin-top: 30px;
    }

    .related-articles h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .related-card {
        padding: 18px;
        border-radius: 10px;
    }

    .related-card h3 {
        font-size: 15px;
    }

    .related-card time {
        font-size: 13px;
    }

    /* ===== NEWSLETTER MOBILE ===== */
    .newsletter-section {
        padding: 30px 0;
    }

    .newsletter-box {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        border-radius: 12px;
        gap: 20px;
    }

    .newsletter-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .newsletter-box h3 {
        font-size: 18px;
    }

    .newsletter-content p {
        font-size: 14px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        min-width: auto;
        gap: 10px;
    }

    .newsletter-form input {
        min-width: auto;
        padding: 15px;
        font-size: 16px;
    }

    .newsletter-form button {
        width: 100%;
        padding: 15px 20px;
        font-size: 15px;
    }

    .article-newsletter {
        margin-top: 25px;
    }

    /* ===== PAGINATION MOBILE ===== */
    .pagination {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .page-link {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* ===== FOOTER MOBILE ===== */
    .site-footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .footer-brand h4 {
        font-size: 16px;
    }

    .footer-brand p {
        font-size: 13px;
    }

    .footer-nav {
        justify-content: center;
        gap: 15px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* ===== FONT CONTROLS MOBILE ===== */
    .font-controls {
        bottom: 15px;
        right: 15px;
        padding: 8px 10px;
        border-radius: 10px;
        gap: 5px;
    }

    .font-controls span {
        display: none;
    }

    .font-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* ===== ALERTS MOBILE ===== */
    .alert {
        padding: 15px;
        font-size: 15px;
        border-radius: 10px;
    }

    /* ===== EMPTY STATE MOBILE ===== */
    .empty-state {
        padding: 50px 20px;
        border-radius: 12px;
    }

    .empty-icon {
        font-size: 60px;
    }

    .empty-state h2 {
        font-size: 18px;
    }

    .empty-state p {
        font-size: 15px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .weather-item {
        padding: 4px 6px;
    }

    .weather-city-name {
        font-size: 9px;
    }

    .weather-temp {
        font-size: 11px;
    }

    .featured-title {
        font-size: 20px;
    }

    .card-title {
        font-size: 17px;
    }

    .share-btn {
        min-width: 100%;
    }
}

/* Print styles */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .share-buttons,
    .related-articles,
    .pagination,
    .font-controls {
        display: none;
    }

    .article-full {
        box-shadow: none;
        padding: 0;
    }

    body {
        font-size: 12pt;
        background: white;
    }
}