/* ========================================
   MORNING FRENCH - STYLE.CSS
   Feuille de style pour toutes les pages thématiques
   ======================================== */

/* VARIABLES CSS */
:root {
    --primary-color: #3a3d3a;
    --secondary-text: #666;
    --accent-color: #c9897c;
    --light-bg-color: #faf8f5;
    --dark-bg-color: #f0ebe5;
    --footer-bg: #3a3d3a;
    --line-green: #06C755;
}

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

/* BODY */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--light-bg-color) 0%, var(--dark-bg-color) 100%);
}

/* CONTAINER */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.page-header {
    text-align: center;
    padding-top: 50px;
    display: block;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #d4a59a;
}

/* ========================================
   TITRE PRINCIPAL
   ======================================== */
.content-header {
    text-align: center;
    padding: 40px 0 30px;
}

.content-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.content-header .subtitle {
    font-size: 1.2em;
    color: var(--secondary-text);
    margin-bottom: 20px;
}

/* ========================================
   BLOC PRINCIPAL
   ======================================== */
.main-content-block {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* ========================================
   SECTIONS DE PHRASES
   ======================================== */
.phrase-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, var(--light-bg-color) 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.phrase-section:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(212, 165, 154, 0.3);
}

.phrase-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.phrase-icon {
    font-size: 2em;
}

.phrase-title {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: bold;
}

.french-phrase {
    font-size: 1.8em;
    color: var(--accent-color);
    font-weight: bold;
    margin: 10px 0;
    font-family: Georgia, serif;
}

.pronunciation {
    color: var(--secondary-text);
    font-size: 1em;
    margin: 5px 0;
    font-style: italic;
}

.japanese-translation {
    color: var(--primary-color);
    font-size: 1.2em;
    margin: 10px 0;
}

/* ========================================
   NOTES CULTURELLES
   ======================================== */
.cultural-notes {
    background: #e8f4f8;
    padding: 25px;
    border-radius: 15px;
    margin: 40px 0;
    border-left: 5px solid #5ca9c4;
}

.cultural-notes h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.cultural-notes ul {
    list-style: none;
    padding-left: 0;
}

.cultural-notes li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
}

.cultural-notes li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* ========================================
   ERREURS COURANTES
   ======================================== */
.mistakes {
    background: #ffe8e8;
    padding: 25px;
    border-radius: 15px;
    margin: 40px 0;
    border-left: 5px solid #e57373;
}

.mistakes h2 {
    color: #c62828;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.mistake-item {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
}

.wrong {
    color: #c62828;
    font-size: 1.2em;
    margin: 5px 0;
}

.correct {
    color: #2e7d32;
    font-size: 1.2em;
    margin: 5px 0;
}

.explanation {
    color: var(--secondary-text);
    font-size: 0.95em;
    margin-top: 8px;
}

/* ========================================
   DIVIDER
   ======================================== */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 40px 0;
}

/* ========================================
   INFOGRAPHIE
   ======================================== */
.infographie-section {
    margin: 40px 0;
}

.infographie-section h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.infographie-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========================================
   QUIZ - TRIGGER
   ======================================== */
.quiz-trigger {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffecd0 100%);
    border-radius: 15px;
    border: 2px dashed var(--accent-color);
}

.quiz-trigger h2 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.quiz-trigger p {
    color: var(--secondary-text);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.quiz-button {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a59a 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 165, 154, 0.3);
}

.quiz-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 154, 0.5);
}

/* ========================================
   QUIZ - CONTAINER
   ======================================== */
.quiz-container {
    display: none;
    margin: 40px 0;
    padding: 35px;
    background: white;
    border-radius: 15px;
    border: 3px solid var(--accent-color);
    animation: slideDown 0.5s ease;
}

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

.quiz-container.active {
    display: block;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--dark-bg-color);
}

.quiz-header h2 {
    color: var(--primary-color);
    font-size: 1.8em;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.progress-dot.completed {
    background: #2e7d32;
}

/* ========================================
   QUIZ - QUESTIONS
   ======================================== */
.question-card {
    display: none;
}

.question-card.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.question-number {
    color: var(--accent-color);
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    padding: 18px 25px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.answer-option:hover {
    background: var(--light-bg-color);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.answer-option.selected {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.answer-option.correct {
    background: #c8e6c9;
    border-color: #2e7d32;
    color: #1b5e20;
}

.answer-option.incorrect {
    background: #ffcdd2;
    border-color: #c62828;
    color: #b71c1c;
}

.answer-option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.feedback.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.feedback.correct {
    background: #c8e6c9;
    color: #1b5e20;
}

.feedback.incorrect {
    background: #ffcdd2;
    color: #b71c1c;
}

.next-button {
    margin-top: 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.next-button.show {
    display: inline-block;
}

.next-button:hover {
    background: #505550;
    transform: translateY(-2px);
}

/* ========================================
   QUIZ - RÉSULTATS
   ======================================== */
.quiz-result {
    display: none;
    text-align: center;
    padding: 40px;
}

.quiz-result.show {
    display: block;
    animation: slideDown 0.5s ease;
}

.score-display {
    font-size: 4em;
    font-weight: bold;
    color: var(--accent-color);
    margin: 20px 0;
}

.result-message {
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 20px 0;
}

.result-emoji {
    font-size: 5em;
    margin: 20px 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a59a 100%);
    border-radius: 15px;
    color: white;
    margin: 40px 0;
}

.cta-footer h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.cta-footer p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--accent-color);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 50px 20px 30px;
    margin-top: 50px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-main h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #d4a59a;
}

.footer-main p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #f0ebe5;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4a59a;
}

.footer-social {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(240, 235, 229, 0.2);
    border-bottom: 1px solid rgba(240, 235, 229, 0.2);
}

.footer-social p {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(240, 235, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2em;
    cursor: not-allowed;
}

.footer-bottom {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(240, 235, 229, 0.2);
}

.footer-bottom p {
    margin: 8px 0;
    font-size: 0.9em;
}

.footer-claude {
    margin-top: 15px;
    padding-top: 15px;
    font-size: 0.85em;
    color: #d4a59a;
    font-style: italic;
}

/* ========================================
   BOUTON FLOTTANT LINE
   ======================================== */
.floating-line {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: var(--line-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-line:hover {
    transform: scale(1.1);
}

.floating-line svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .main-content-block {
        padding: 25px;
    }

    .content-header h1 {
        font-size: 1.8em;
    }

    .french-phrase {
        font-size: 1.4em;
    }

    .phrase-section {
        padding: 20px;
    }

    .question-text {
        font-size: 1.2em;
    }

    .score-display {
        font-size: 3em;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}