/*
 * Styles specifically for the "À Propos" page (template-about.php)
 */

/* 1. Hero Section */
.about-hero-section {
    padding: 6rem 2rem;
    background-color: var(--color-primary-accent);
    text-align: center;
    color: var(--color-text-light);
}

.about-hero-section .hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-text-light);
    margin: 0;
}

.about-hero-section .hero-subtitle {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--color-secondary-accent);
    margin-top: 0.5rem;
}

.about-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Modification: Utilisation de grid-template-areas pour l'inversion sans RTL */
.about-content-section.vision-section {
    grid-template-areas: "visual text";
}

.about-content-section.vision-section .section-visual {
    grid-area: visual;
}

.about-content-section.vision-section .section-text {
    grid-area: text;
}

.about-content-section .section-text h2 {
    font-size: 2.8rem;
    margin-top: 0;
}

.about-content-section .section-text p {
    line-height: 1.7;
}

.decorative-rectangles {
    position: relative;
    width: 100%;
    height: 400px;
}

.decorative-rectangles::before,
.decorative-rectangles::after {
    content: '';
    display: block;
    position: absolute;
    width: 80%;
    height: 100%;
    border-radius: 8px;
}

/* Back rectangle (purple) */
.decorative-rectangles::before {
    background-color: var(--color-primary-accent);
    bottom: 0;
    left: 0;
}

/* Front rectangle (light grey) */
.decorative-rectangles::after {
    background-color: #E0E0E0;
    top: 0;
    right: 0;
    transform: translate(20px, -20px);
}

.text-banner-section {
    background-color: var(--color-sage-green);
    padding: 6rem 2rem;
    text-align: center;
}

.text-banner-section .section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.text-banner-section .content-card {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.text-banner-section .content-card p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.text-banner-section .quote {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-primary-accent);
    margin-top: 2rem;
    display: block;
}

.philosophy-section {
    text-align: center;
}

.philosophy-section .quote {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.philosophy-section::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--color-text-light);
    margin: 0 auto 1rem auto;
}

.philosophy-section .subtitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablettes & Mobiles)
   ========================================================================== */

/* --- Tablettes --- */
@media (max-width: 1024px) {
    .about-content-section {
        gap: 2rem;
        padding: 4rem 2rem;
    }

    /* On réduit un peu la taille des gros rectangles sur tablette */
    .decorative-rectangles {
        height: 300px;
    }
}

/* --- Mobiles --- */
@media (max-width: 768px) {

    /* 1. Typographie (On réduit la taille des gros titres) */
    .about-hero-section .hero-title {
        font-size: 2.5rem;
    }

    .about-hero-section .hero-subtitle {
        font-size: 1.5rem;
    }

    .about-content-section .section-text h2,
    .text-banner-section .section-title {
        font-size: 2rem;
    }

    /* 2. Grilles (Passage de 2 colonnes à 1 colonne) */
    .about-content-section {
        grid-template-columns: 1fr;
        padding: 4rem 1.5rem;
        text-align: center;
        /* Centre le texte sur mobile pour faire plus propre */
    }

    /* Gestion spécifique de la section inversée (Vision) */
    .about-content-section.vision-section {
        grid-template-areas:
            "visual"
            "text";
        /* Empile l'image en haut et le texte en bas */
    }

    /* 3. Rectangles décoratifs (On empêche le débordement) */
    .decorative-rectangles {
        height: 250px;
        width: 90%;
        /* On réduit la largeur pour laisser de la place au décalage */
        margin: 0 auto;
        /* On centre le bloc */
    }

    .decorative-rectangles::after {
        transform: translate(10px, -10px);
        /* On réduit le décalage pour ne pas sortir de l'écran */
    }

    /* 4. Espacements et Paddings généraux */
    .about-hero-section {
        padding: 4rem 1.5rem;
    }

    .text-banner-section {
        padding: 4rem 1.5rem;
    }

    .text-banner-section .content-card {
        padding: 1.5rem;
        /* Moins de padding intérieur sur la carte */
    }

    .text-banner-section .quote,
    .philosophy-section .subtitle {
        font-size: 1.3rem;
    }
}