/**
 * Block: bloc_text_01
 * Description: Simple text block with tagline, headline, paragraph and CTA buttons
 *
 * Figma Specs:
 * - Container: 1440px wide, bg white, padding 64px/80px
 * - Content: 1312px wide, gap 40px
 * - Text gap: 24px
 * - Button gap: 16px
 * - Colors: #232425 (text), #2464D1 (brand primary)
 */

/* ========================================
   CONTAINER
   ======================================== */

.bloc-text-01 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 80px 64px;
    /* Surcharge arrondi global .entry-content > [class*="bloc-"] (8px) : coins haut et bas à 0 pour joints nets */
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.bloc-text-01__container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    max-width: 1312px;
}

/* ========================================
   CONTENT (Text Area)
   ======================================== */

.bloc-text-01__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    color: #232425;
}

.bloc-text-01__content--wrapped {
    padding: var(--bloc-text-01-intro-wrapper-padding, 24px);
}

/* Width variants */
.bloc-text-01__content--boxed {
    max-width: 800px;
    margin: 0 auto;
}

.bloc-text-01__content--fullwidth {
    max-width: 100%;
}

/* Tagline */
.bloc-text-01__tagline {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

/* Headline */
.bloc-text-01__headline {
    font-family: inherit;
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    width: 100%;
}

/* Paragraph */
.bloc-text-01__paragraph {
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    width: 100%;
}

/* ========================================
   BUTTONS (rendered via usine_render_button)
   ======================================== */

.bloc-text-01__buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

/* ========================================
   WRAPPED-SHELL MODE
   ======================================== */

.bloc-text-01--wrapped-shell {
    padding-top: 0;
    padding-bottom: 0;
}

/* Stack text01+feat02 uniquement (flag flexible) : surlignage titre (« VS », « services », etc.) */
.usine-bloc-stack--text01-feat02 .bloc-text-01__headline .bloc-text-01__headline-highlight {
    color: #9f2b2c !important;
}

/* Override ciblé demandé : "VS" du stack text01-feat02 en bleu */
.usine-bloc-stack--text01-feat02 .bloc-text-01__headline .bloc-text-01__headline-highlight {
    color: #FF5700 !important;
}

/*
 * Stack text01 + feat02 : padding bas du bloc texte = 0 uniquement dans ce wrapper (jointure avec features-02).
 * !important pour passer outre le padding-bottom inline ACF sur la section.
 */
main#primary > .page-content-wrapper > .entry-content > .usine-bloc-stack.usine-bloc-stack--text01-feat02 > section.bloc-text-01,
body.home main#primary > .page-content-wrapper > .entry-content > .usine-bloc-stack.usine-bloc-stack--text01-feat02 > section.bloc-text-01 {
    padding-bottom: 0 !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .bloc-text-01 {
        padding: 60px 40px;
    }

    .bloc-text-01__headline {
        font-size: 40px;
    }

    .bloc-text-01__content--boxed {
        max-width: 600px;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .bloc-text-01 {
        padding: 48px 24px;
    }

    .bloc-text-01__container {
        gap: 32px;
    }

    .bloc-text-01__content {
        gap: 16px;
    }

    .bloc-text-01__headline {
        font-size: 32px;
    }

    .bloc-text-01__paragraph {
        font-size: 16px;
    }

    .bloc-text-01__buttons {
        flex-direction: column;
        width: 100%;
    }

    .bloc-text-01__content--boxed {
        max-width: 100%;
    }
}
