/* ========================================
   MORNING FRENCH - HOMEPAGE.CSS
   Styles pour la page d'accueil (index.html)
   Complément à style.css
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    color: white;
    padding: 120px 20px;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 61, 58, 0.7) 0%, rgba(80, 85, 80, 0.65) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.hero-branding {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 4;
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0px 4px 12px rgba(0,0,0,0.35));
}

.hero-subtitle {
    margin-top: 15px;
    color: #f3f0ec;
    font-size: 1.2em;
    letter-spacing: 1px;
    text-shadow: 0px 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 10px;
}

.hero-note {
    font-size: 0.95em;
    color: #f3f0ec;
    opacity: 0.9;
    margin-top: 10px;
}

/* ========================================
   CTA BUTTONS
   ======================================== */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        gap: 20px;
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d4a59a 0%, #c9897c 100%);
    color: white;
    padding: 20px 50px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(201, 137, 124, 0.3);
    white-space: normal;
    line-height: 1.4;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 137, 124, 0.5);
}

.btn-line {
    background: #06C755 !important;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3) !important;
}

.line-icon {
    width: 24px;
    height: 24px;
    fill: white;
    margin-right: 10px;
}

/* ========================================
   SECTION COMMUNE
   ======================================== */
.section {
    background: white;
    margin: 40px auto;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
}

.section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a59a, #c9897c);
}

/* ========================================
   PROJECTS GRID
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.project-card {
    padding: 25px;
    background: var(--light-bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 165, 154, 0.3);
}

.project-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.95em;
    color: var(--secondary-text);
    line-height: 1.6;
}

.other-projects {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffecd0 100%);
    border-radius: 12px;
    border: 2px dashed var(--accent-color);
}

.other-projects h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.other-projects p {
    text-align: center;
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.other-projects-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #d4a59a 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

.other-projects-btn:hover {
    transform: scale(1.05);
}

/* ========================================
   FEATURES (3 piliers)
   ======================================== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid rgba(212, 165, 154, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card.conversation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/40min-conversation.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.3;
}

.feature-card.email-card {
    background: rgba(255, 255, 255, 0.88);
}

.feature-card.email-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/email-background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.3;
}

.feature-card.drive-card {
    background: rgba(255, 255, 255, 0.88);
}

.feature-card.drive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/drive-background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.3;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(212, 165, 154, 0.4);
    border-color: var(--accent-color);
}

.feature-card .icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin: 15px 0;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.pricing-card {
    background: var(--light-bg-color);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 165, 154, 0.3);
}

.pricing-card-recommended {
    border: 3px solid #2e7d32;
    box-shadow: 0 10px 40px rgba(46, 125, 50, 0.2);
}

.pricing-card-recommended:hover {
    border-color: #1b5e20;
    box-shadow: 0 15px 50px rgba(46, 125, 50, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
}

.pricing-card-recommended .pricing-badge {
    background: #2e7d32;
}

.pricing-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.pricing-price {
    font-size: 2.5em;
    color: var(--accent-color);
    font-weight: bold;
    margin: 15px 0;
}

.pricing-per-lesson {
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.pricing-savings {
    background: #c8e6c9;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    color: #1b5e20;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.95em;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ========================================
   SCHEDULE
   ======================================== */
.schedule-list {
    list-style: none;
    margin: 20px 0;
}

.schedule-list li {
    background: var(--light-bg-color);
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.schedule-list li strong {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* ========================================
   TEACHER SECTION
   ======================================== */
.teacher-section {
    text-align: center;
    margin: 30px auto;
    max-width: 700px;
}

.teacher-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin: 0 auto 30px;
    display: block;
    border: 4px solid var(--dark-bg-color);
}

.teacher-info h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.teacher-info .teacher-origin {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-bottom: 25px;
    font-style: italic;
}

.teacher-info p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 40px auto;
}

.contact-form-section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}

.contact-form-section p {
    text-align: center;
    color: var(--secondary-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.form-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, #505550 100%);
    color: white;
    font-size: 1.1em;
    padding: 15px 20px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(58, 61, 58, 0.3);
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 30px auto 0;
}

.form-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(58, 61, 58, 0.5);
}

.required {
    color: var(--accent-color);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-section {
    background: white;
    margin: 40px auto;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
}

.faq-section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a59a, #c9897c);
}

.faq-subtitle {
    text-align: center;
    color: var(--secondary-text);
    margin-bottom: 30px;
    font-size: 1em;
}

.faq-item {
    border-bottom: 1px solid var(--dark-bg-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Noto Sans JP', sans-serif;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    color: var(--accent-color);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 20px 0;
}

.faq-answer-inner {
    color: #555;
    font-size: 1em;
    line-height: 1.8;
    border-left: 3px solid var(--dark-bg-color);
    padding-left: 15px;
}

.faq-answer-inner strong {
    color: var(--primary-color);
}

/* ========================================
   SOCIAL ICONS (footer)
   ======================================== */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(240, 235, 229, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0ebe5;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(240, 235, 229, 0.3);
}

.social-icon span {
    font-weight: bold;
}

.social-icon:hover {
    background: #ffffff;
    color: #3a3d3a;
    transform: scale(1.15);
    cursor: pointer;
    border-color: #ffffff;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero-branding {
        top: 20px;
        left: 20px;
    }

    .hero-logo {
        height: 80px;
    }

    .cta-button {
        font-size: 1em;
        padding: 15px 30px;
    }

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

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

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

    .teacher-photo {
        width: 150px;
        height: 150px;
    }

    .section {
        padding: 30px 20px;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .contact-form-section {
        padding: 30px 20px;
    }

    .faq-section {
        padding: 30px 20px;
    }

    .faq-section h2 {
        font-size: 1.5em;
    }

    .faq-question {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .contact-form-section h2 {
        font-size: 1.2em;
        white-space: normal;
        padding: 0 10px;
    }
}
