/*
Theme Name: Madeleine Coop
Theme URI:
Author: Madeleine Coop
Author URI:
Description: Thème bloc de Madeleine Coop, coopérative de services à la personne. Style institutionnel, vert Madeleine et anthracite.
Version: 1.0.0
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: madeleine-coop
*/

.site-stack > * {
    width: 100%;
    min-width: 0;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-family: var(--wp--preset--font-family--brand);
    font-size: var(--wp--preset--font-size--small);
    font-weight: var(--wp--custom--font-weight--bold);
    letter-spacing: var(--wp--custom--letter-spacing--wider);
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
}

.eyebrow::before {
    content: "";
    flex: none;
    width: 2rem;
    height: 3px;
    background: currentColor;
}

.eyebrow.has-text-align-center {
    justify-content: center;
}

.eyebrow--light,
.eyebrow--accent {
    color: var(--wp--preset--color--accent);
}

.eyebrow--light {
    color: var(--wp--preset--color--base);
}

.eyebrow--light::before {
    background: var(--wp--preset--color--accent);
}

.section-head {
    max-width: 52rem;
}

.section-head > * + * {
    margin-top: var(--wp--preset--spacing--medium);
}

.section-head .wp-block-heading {
    margin-top: var(--wp--preset--spacing--medium);
}

.section-head__lead {
    color: var(--wp--preset--color--neutral);
    line-height: var(--wp--custom--line-height--body);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

.site-logo {
    flex: none;
    margin: 0;
}

.site-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-logo a {
    display: block;
}

.site-logo a:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
}

.site-logo--footer {
    margin-bottom: var(--wp--preset--spacing--medium);
}

.fineprint {
    color: var(--wp--preset--color--neutral);
}

.metiers__more {
    align-items: center;
    gap: var(--wp--preset--spacing--medium);
    border-left: 4px solid var(--wp--preset--color--primary);
}

.metiers__more-text {
    flex: 1 1 28rem;
    margin: 0;
}

.page-hero__crumb {
    margin: 0 0 var(--wp--preset--spacing--small);
    color: var(--wp--preset--color--surface);
}

.page-hero__crumb a,
.page-hero .wp-block-post-title {
    color: var(--wp--preset--color--base);
}

.page-body {
    min-height: 30vh;
}

.notfound .eyebrow {
    justify-content: center;
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: madeleineFadeUp 0.7s ease 0.1s forwards;
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(16px);
    animation: madeleineFadeUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.55s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes madeleineFadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .fade-up,
    .animate-on-scroll,
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
    }
}
