/* Landing Page */
.landing-page {
    font-family: 'Rubik', sans-serif;
    background-color: #f5f5f5;
}

/* Header spécifique à la landing page */
.landing-page .mdl-layout__header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.landing-page .mdl-layout__header .mdl-layout-title {
    color: white;
}

.landing-page .mdl-layout__header .mdl-navigation__link {
    color: white;
    font-weight: 500;
    opacity: 1;
}

.landing-page .mdl-layout__header .mdl-button {
    color: white;
    margin-left: 16px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: white;
    text-align: center;
    padding: 120px 24px;
    margin-bottom: 48px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content p {
    color: white;
    font-size: 1.5em;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Demo Section */
.demo-section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 48px;
    color: var(--text-color);
}

/* Features Section */
.features-grid{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap : 1rem;
}
.features-section {
    background-color: white;
    padding: 64px 24px;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 48px;
    color: var(--text-color);
}

.feature-card .mdl-card__title {
    background-color: var(--primary-color);
    padding: 16px;
}

.feature-card .mdl-card__title-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
}
.feature-card .mdl-card__supporting-text{
    color : black;
    font-size: 1rem;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a237e 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 64px 24px;
}

.cta-section h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 16px;
}

.cta-section p {
    color: white;
    font-size: 1.2em;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Dialog Styles */
.mdl-dialog {
    width: 400px;
    padding: 24px;
    border-radius: 4px;
}

.mdl-dialog__title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 24px;
}

/* Boutons dans le header */
.landing-page .mdl-layout__header .mdl-button--raised {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.landing-page .mdl-layout__header .mdl-button--raised.mdl-button--colored {
    background-color: var(--secondary-color);
    border: none;
}

.landing-page .mdl-layout__header .mdl-button--raised:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.landing-page .mdl-layout__header .mdl-button--raised.mdl-button--colored:hover {
    background-color: var(--secondary-color);
    opacity: 0.9;
}

/* Header Navigation */
.mdl-layout__header {
    background-color: transparent;
    box-shadow: none;
}

.mdl-layout__header.is-compact,
.mdl-layout__header.is-scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mdl-layout__header .mdl-navigation__link {
    color: white;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.mdl-layout__header .mdl-navigation__link:hover {
    opacity: 1;
}

.mdl-layout__header .mdl-button {
    margin-left: 16px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }


}

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 80px 16px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .code-editors {
        flex-direction: column;
    }

    .mdl-dialog {
        width: 90%;
    }

    .demo-section,
    .features-section,
    .cta-section {
        padding: 40px 16px;
    }

}

/* Animations */
.hero-content,
.feature-card,
.demo-container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mdl-button {
    position: relative;
    overflow: hidden;
}

.mdl-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.mdl-button:hover::after {
    width: 300%;
    height: 300%;
}
