/* Styles spécifiques aux articles */

.article {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-meta .category a {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

.article-meta .date {
    color: #6c757d;
}

.article-meta .read-time {
    color: #6c757d;
    padding: 0.3rem 0.8rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.article h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.article-image figcaption {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Table des matières */
.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.table-of-contents h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #2980b9;
}

.table-of-contents a::before {
    content: "→ ";
    margin-right: 0.5rem;
}

/* Contenu de l'article */
.article-content {
    padding: 2rem;
    line-height: 1.8;
}

.article-content h2 {
    color: #2c3e50;
    margin: 2.5rem 0 1rem 0;
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.article-content h3 {
    color: #34495e;
    margin: 2rem 0 0.8rem 0;
    font-size: 1.4rem;
}

.article-content h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Boîtes spéciales */
.highlight-box, .cultural-note, .technique-box, .disaster-box, .info-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid;
}

.highlight-box {
    background: #e8f6f3;
    border-left-color: #1abc9c;
}

.cultural-note {
    background: #fef7e0;
    border-left-color: #f39c12;
}

.technique-box {
    background: #e7f3ff;
    border-left-color: #3498db;
}

.disaster-box {
    background: #fdf2f2;
    border-left-color: #e74c3c;
}

.info-box {
    background: #f8f9ff;
    border-left-color: #8e44ad;
}

/* Expressions japonaises */
.expression-card {
    background: #ffffff;
    color: #2c3e50;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.expression-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    border-radius: 20px 20px 0 0;
}

.japanese-text, .chinese-text {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.pronunciation, .pinyin, .romaji {
    font-size: 1.3rem;
    color: #5a6c7d;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.meaning {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.usage {
    color: #6c757d;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
}

/* Grille d'expressions */
.expressions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.expression-item {
    background: white;
    border: 1px solid #f1f3f4;
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.expression-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12);
    border-radius: 16px 16px 0 0;
}

.expression-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.expression-item .japanese, .expression-item .chinese {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.8rem;
}

.expression-item .romaji {
    color: #3498db;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.expression-item .level {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Niveaux de politesse */
.keigo-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.level-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.level-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.level-name {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.level-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.level-card li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

/* Types de révérences */
.ojigi-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ojigi-type {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.angle {
    font-size: 2rem;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.ojigi-type h4 {
    margin-bottom: 1rem;
    color: white;
}

/* Situations spécifiques */
.gift-etiquette, .business-thanks {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.gift-etiquette p, .business-thanks p {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Erreurs à éviter */
.error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.error-card {
    background: #fdf2f2;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 1.5rem;
}

.error-card h4 {
    color: #c0392b;
    margin-bottom: 1rem;
}

.error-card p {
    color: #2c3e50;
    margin-bottom: 0;
}

/* Exemples pratiques */
.practical-examples {
    margin: 2rem 0;
}

.example {
    background: #e8f6f3;
    border-left: 4px solid #1abc9c;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.example h4 {
    color: #16a085;
    margin-bottom: 1rem;
}

.response {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.explanation {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0;
}

/* Citations */
blockquote.final-quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
    border: none;
}

blockquote.final-quote p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: white;
}

blockquote.final-quote cite {
    font-size: 1rem;
    opacity: 0.9;
}

/* Stats et chiffres */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1rem;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat .label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding-left: 120px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Widgets d'insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.insight-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.insight-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.insight-card p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer article */
.article-footer {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    margin: 0.2rem 0.3rem 0.2rem 0;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* Tags avec liens */
a.tag:hover {
    background: #2980b9;
}

/* Tags sans liens (span) */
span.tag {
    background: #95a5a6;
    cursor: default;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.article-share h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.copy-link { background: #6c757d; }

/* Articles liés */
.related-articles {
    margin: 3rem 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

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

.related-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    font-size: 1.1rem;
}

.related-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-card h3 a:hover {
    color: #3498db;
}

.related-card p {
    padding: 0 1rem 1rem;
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .article h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 1rem;
    }

    .article-header {
        padding: 1rem;
    }

    .article-footer {
        padding: 1rem;
    }

    .expressions-grid {
        grid-template-columns: 1fr;
    }

    .keigo-levels {
        grid-template-columns: 1fr;
    }

    .ojigi-types {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        text-align: center;
    }

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

/* Zones publicitaires dans les articles */
.article-ad {
    max-width: 728px;
    height: 90px;
    margin: 2rem auto;
}

.article-ad-middle {
    max-width: 300px;
    height: 250px;
    margin: 3rem auto;
    float: right;
    margin-left: 2rem;
}

.article-ad-bottom {
    max-width: 728px;
    height: 90px;
    margin: 3rem auto;
}

@media (max-width: 768px) {
    .article-ad-middle {
        float: none;
        margin: 2rem auto;
        max-width: 320px;
        height: 50px;
    }
}