/*
Theme Name: Tutor Starter Child
Theme URI: https://darija-arabe.com/tutor-starter-child/
Description: Thème enfant pour le thème Tutor Starter de Darija-Arabe.com
Author: Votre Nom ou Nom de l'Agence
Author URI: https://darija-arabe.com
Template: tutorstarter
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, responsive-layout, accessibility-ready
Text Domain: tutor-starter-child
*/

/* Ajoutez vos styles personnalisés ici */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Masquer header et footer WordPress spécifiques */
.site-header:not(.custom-header),
#masthead:not(.custom-header),
.main-navigation:not(.custom-header nav),
.site-branding:not(.custom-header .logo),
.site-footer:not(.custom-footer),
#colophon:not(.custom-footer) {
    display: none !important;
}

/* S'assurer que nos éléments personnalisés s'affichent */
.custom-header,
.custom-footer {
    display: block !important;
    visibility: visible !important;
}

/* Container principal */
.darija-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header personnalisé avec couleurs marocaines */
.custom-header {
    background: linear-gradient(135deg, #C1272D 0%, #006233 100%);
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '🇲🇦';
    font-size: 1.2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

/* Hero Section avec motifs marocains */
.hero {
    background: linear-gradient(135deg, #C1272D 0%, #006233 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="moroccan" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><polygon points="20,5 25,15 35,15 27,23 30,33 20,27 10,33 13,23 5,15 15,15" fill="rgba(255,215,0,0.1 )"/></pattern></defs><rect width="100" height="100" fill="url(%23moroccan)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.site-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero .description {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto 30px;
    opacity: 0.8;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #C1272D;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #C1272D;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #C1272D;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Section Maroc Destination */
.morocco-destination {
    background: linear-gradient(135deg, #006233 0%, #228B22 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.morocco-destination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="geometric" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="rgba(255,255,255,0.1 )"/><rect x="10" y="10" width="10" height="10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23geometric)"/></svg>');
    opacity: 0.3;
}

.morocco-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.morocco-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Trust Section avec couleurs marocaines */
.trust-section {
    background: linear-gradient(45deg, #F5F5F5 0%, #FFFFFF 100%);
    padding: 40px 0;
    border-top: 3px solid #C1272D;
    border-bottom: 3px solid #006233;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: center;
}

.trust-item {
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(193, 39, 45, 0.1);
    border-left: 4px solid #C1272D;
}

.trust-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #C1272D;
    display: block;
}

.trust-label {
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Avantages Section */
.advantages {
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.advantage-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid #C1272D;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-top-color: #006233;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #C1272D, #006233);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #C1272D;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Méthodes Section */
.methods {
    background: white;
}

.methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.method-card {
    background: linear-gradient(135deg, #C1272D 0%, #006233 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.method-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.method-card > p {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

.method-features {
    list-style: none;
    position: relative;
    z-index: 2;
}

.method-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.method-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
}

/* Méthode phonétique */
.phonetic-method {
    text-align: center;
    margin-top: 30px;
    padding: 25px 15px;
    background: linear-gradient(45deg, #F5F5F5, #FFFFFF);
    border-radius: 15px;
    border: 2px solid #FFD700;
}

.phonetic-method h3 {
    color: #C1272D;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.phonetic-method p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
}

/* Darija Section avec motifs berbères */
.darija-section {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.darija-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="berber" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M12.5,5 L20,12.5 L12.5,20 L5,12.5 Z" fill="rgba(255,255,255,0.05 )" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23berber)"/></svg>');
    opacity: 0.3;
}

.darija-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.darija-text h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.darija-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    background: rgba(255,255,255,0.1);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #FFD700;
}

.feature-item p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.darija-image {
    text-align: center;
    margin-top: 20px;
}

.arabic-demo {
    background: rgba(255,255,255,0.1);
    padding: 25px 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.3);
}

.arabic-text {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: 1.3rem;
    text-align: right;
    direction: rtl;
    color: #FFD700;
    margin: 15px 0;
}

.arabic-demo p {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Culture Section */
.culture-section {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    position: relative;
    overflow: hidden;
}

.culture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="zellige" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect x="2" y="2" width="16" height="16" fill="none" stroke="rgba(139,69,19,0.1 )" stroke-width="1"/><circle cx="10" cy="10" r="3" fill="rgba(139,69,19,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23zellige)"/></svg>');
    opacity: 0.3;
}

.culture-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.culture-content h2 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.culture-item {
    background: rgba(255,255,255,0.2);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139,69,19,0.2);
}

.culture-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.culture-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #8B4513;
    font-weight: 700;
}

.culture-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #654321;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #C1272D 0%, #006233 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="star" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><polygon points="25,10 30,20 40,20 32,28 35,38 25,32 15,38 18,28 10,20 20,20" fill="rgba(255,215,0,0.1 )"/></pattern></defs><rect width="100" height="100" fill="url(%23star)"/></svg>');
    opacity: 0.2;
}

.final-cta-content {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.final-cta p {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.final-cta .cta-buttons .btn {
    background: #FFD700;
    color: #C1272D;
    margin: 5px;
    font-size: 0.9rem;
    padding: 10px 20px;
    min-width: 120px;
    font-weight: 700;
}

.final-cta .cta-buttons .btn:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Footer personnalisé avec couleurs marocaines */
.custom-footer {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,215,0,0.1 )"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.footer-section h4 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9rem;
    display: block;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-bottom {
    border-top: 1px solid rgba(255,215,0,0.3);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #C1272D 0%, #006233 100%);
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero {
        padding: 80px 0 50px;
        margin-top: 70px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .description {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        max-width: 250px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .trust-number {
        font-size: 1.5rem;
    }

    .trust-label {
        font-size: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-item {
        padding: 15px 10px;
    }

    .feature-item h4 {
        font-size: 0.9rem;
    }

    .feature-item p {
        font-size: 0.75rem;
    }

    .morocco-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .culture-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .advantage-card, .method-card {
        padding: 20px 15px;
    }

    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .trust-number {
        font-size: 1.3rem;
    }

    .arabic-text {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Animation spéciale pour les étoiles */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.twinkle {
    animation: twinkle 2s infinite;
}
