/* landing-page.css */

/* Les variables de couleurs et de thème sont maintenant globales (dans _theme-variables.css) */
/* Les variables de polices et de layout de base sont dans _base.css ou _layout.css */

.btn-lg { /* Décommenté pour la landing page */
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0 0 0; /* Espace haut réduit de 50%, bas mis à 0 */
    text-align: center;
    background-color: var(--light-gray-background);
}

.hero-section h1 {
    font-size: 2.25rem; /* ~36px pour mobile */
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.125rem; /* ~18px */
    color: var(--text-color-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.hero-section .btn-lg {
    margin-bottom: 0.5rem; /* Marge encore réduite */
}

.hero-image-placeholder {
    margin-top: 2rem;
    background-color: var(--light-gray-background); /* Utilisation de variable */
    padding: 2rem;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image-placeholder svg { /* Cible le SVG à l'intérieur */
    max-width: 100%; /* S'assure qu'il ne dépasse pas */
    height: auto;   /* Garde les proportions */
}

/* Styles spécifiques pour les SVG d'illustration si besoin */
.hero-illustration-svg, .benefits-illustration-svg {
    /* Par exemple, pour s'assurer qu'ils ne rétrécissent pas trop : */
    /* min-width: 150px; */
}


/* Sections génériques */
section {
    padding: 2rem 0;
}

section:nth-child(odd):not(.hero-section) { /* Alternance de fond pour certaines sections */
    background-color: var(--light-gray-background); /* Décommenté pour activer l'alternance */
}

section h2 {
    text-align: center;
    margin-bottom: 2.5rem; /* 40px */
}

/* Problem/Solution Section */
.problem-solution-section {
    padding-top: 0.5rem; /* Padding réduit pour correspondre à la marge */
    text-align: center;
}
.problem-solution-section p {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-grid {
    display: grid;
    gap: 2rem; /* 32px */
}

.feature-card {
    background-color: var(--card-background);
    padding: 2rem; /* 32px */
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; /* Ajout de transform à la transition */
}

.feature-card:hover {
    transform: translateY(-5px); /* Effet de soulèvement au survol */
    box-shadow: var(--card-shadow-hover, 0 8px 25px rgba(0,0,0,0.1)); /* Ombre un peu plus prononcée, prévoir une variable --card-shadow-hover */
}

.feature-icon {
    width: 60px; /* Peut être ajusté pour correspondre à la taille du SVG + padding */
    height: 60px; /* Peut être ajusté pour correspondre à la taille du SVG + padding */
    margin: 0 auto 1rem auto;
    display: inline-flex; /* Changé en inline-flex pour un meilleur contrôle du SVG */
    align-items: center;
    justify-content: center;
    color: var(--primary-color); /* La couleur du SVG sera héritée d'ici */
}

.feature-svg-icon {
    width: 48px; /* Taille du SVG comme défini dans le HTML */
    height: 48px; /* Taille du SVG comme défini dans le HTML */
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* Benefits Section */
.benefits-section ul {
    margin-bottom: 2rem;
}
.benefits-section li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 10px; /* Pour aligner avec l'icône */
}
.benefit-icon {
    display: inline-flex; /* Pour bien aligner le SVG à l'intérieur */
    align-items: center;
    justify-content: center;
    width: 28px; /* Ajustez si besoin pour la taille du SVG */
    height: 28px; /* Ajustez si besoin pour la taille du SVG */
    margin-right: 0.75rem;
    color: var(--secondary-color); /* Applique la couleur secondaire au SVG (currentColor) */
    flex-shrink: 0;
}

.benefit-svg-icon {
    width: 24px; /* Taille du SVG */
    height: 24px; /* Taille du SVG */
}

.benefits-image-placeholder {
    margin-top: 2rem;
    background-color: var(--light-gray-background); /* Utilisation de variable */
    padding: 2rem;
    border-radius: 8px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefits-image-placeholder svg { /* Cible le SVG à l'intérieur */
    max-width: 100%;
    height: auto;
}


/* CTA Central Section */
.cta-central-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}
.cta-central-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}
.cta-central-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}
.cta-central-section .btn-secondary { /* Utilisation du vert sur fond bleu */
    background-color: var(--secondary-color);
    color: var(--text-color); /* Texte foncé sur vert clair */
    border-color: var(--secondary-color);
}
.cta-central-section .btn-secondary:hover {
    background-color: #18c78c;
    border-color: #18c78c;
    color: var(--text-color);
}

.cta-central-section .cta-login-link {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.cta-central-section .cta-login-link a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.cta-central-section .cta-login-link a:hover {
    color: #e0eaff; /* Un blanc un peu moins vif au survol */
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    gap: 1.5rem; /* 24px */
}
.testimonial-card {
    background-color: var(--card-background); /* Changé de light-gray-background */
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.testimonial-card footer {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 4px;
    overflow: hidden; /* Pour les coins arrondis avec le header */
}
.accordion-header {
    background-color: var(--card-background); /* Utiliser card-background pour cohérence */
    color: var(--headings-color);
    cursor: pointer;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-family-titles);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}
.accordion-header:hover {
    background-color: var(--light-gray-background); /* Un fond légèrement différent au survol */
}
.accordion-header[aria-expanded="true"] {
    background-color: var(--light-gray-background);
}
body.dark-theme .accordion-header:hover,
body.dark-theme .accordion-header[aria-expanded="true"] {
    background-color: #3c4a60; /* Un fond légèrement différent au survol pour thème sombre */
}
.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem; /* Padding initial à 0 pour l'animation */
    background-color: var(--card-background); /* Utiliser card-background */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
    padding: 1rem 0; /* Padding interne pour le contenu */
    margin-bottom: 0;
    color: var(--text-color-light);
}

/* Responsive Design (Mobile-first approach) */

/* Tablet and larger (medium devices) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .hero-section h1 {
        font-size: 2.75rem; /* ~44px */
    }
    .hero-section p {
        font-size: 1.2rem; /* ~19px */
    }
    .hero-section {
        padding: 2.5rem 0 0 0; /* Espace haut réduit de 50%, bas à 0 pour tablette */
    }
    .hero-image-placeholder {
        min-height: 250px;
    }

    .problem-solution-section {
        padding-top: 0.75rem; /* Padding réduit pour tablette */
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }

    .benefits-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    .benefits-image-placeholder {
        margin-top: 0; /* Reset car il est dans la grille */
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

/* Desktop (large devices) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    h1 { font-size: 3rem; } /* ~48px */
    h2 { font-size: 2.25rem; } /* ~36px */

    .hero-section {
        padding: 3rem 0 0 0; /* Espace haut réduit de 50%, bas à 0 pour desktop */
        display: flex; /* Pour aligner texte et image côte à côte */
        align-items: center;
        text-align: left;
    }
    .hero-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 colonnes */
        gap: 2rem;
        align-items: center;
    }
    .hero-section h1, .hero-section p {
        margin-left: 0; /* Reset pour l'alignement à gauche */
        margin-right: 0;
    }
    .hero-image-placeholder {
        order: 1; /* Mettre l'image à droite */
        min-height: 300px;
    }

    .problem-solution-section {
        padding-top: 1rem; /* Padding réduit pour desktop */
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
    }
}

/* Extra large devices */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
}