/*
 * Page L'Association — BVL
 */


/* ==========================================================
   CONTENEUR PRINCIPAL
   ========================================================== */

.association-bvl {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 90px;
    color: #444;
}


/* ==========================================================
   PRÉSENTATION GÉNÉRALE
   ========================================================== */

.presentation-association {
    max-width: 950px;
    margin: 0 auto 80px;
    padding: 55px 60px;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            rgba(232, 18, 22, 0.06),
            rgba(255, 210, 0, 0.12)
        );
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}


/*
 * Élément décoratif discret.
 */
.presentation-association::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 210, 0, 0.16);
}


.presentation-association::after {
    content: "";
    position: absolute;
    bottom: -110px;
    left: -110px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(232, 18, 22, 0.07);
}


.presentation-association > * {
    position: relative;
    z-index: 1;
}


.presentation-association h1 {
    margin: 0;
    color: #e81216;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
}


.sous-titre-association {
    max-width: 760px;
    margin: 22px auto 0;
    color: #8b7200;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.5;
    font-weight: 600;
}


.texte-presentation-association {
    max-width: 800px;
    margin: 34px auto 0;
    color: #4f4f4f;
    font-size: 1.12rem;
    line-height: 1.85;
}


.texte-presentation-association p {
    margin: 0 0 1.2em;
}


.texte-presentation-association p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   BLOCS INSTITUTIONNELS
   ========================================================== */

.bloc-institutionnel {
    margin: 0 0 55px;
    padding: 18px;
    border-radius: 30px;
    background: #fff;
}


.contenu-bloc-institutionnel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 55px;
    min-height: 360px;
    padding: 50px;
    border-radius: 24px;
    background: #f8f8f8;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}


/*
 * Fine ligne décorative reprenant les couleurs catalanes.
 */
.contenu-bloc-institutionnel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background:
        linear-gradient(
            to bottom,
            #e81216 0%,
            #e81216 50%,
            #ffd200 50%,
            #ffd200 100%
        );
}


/*
 * Alternance image / texte.
 */
.bloc-institutionnel--inverse
.contenu-bloc-institutionnel {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}


.bloc-institutionnel--inverse
.texte-bloc-institutionnel {
    order: 2;
}


.bloc-institutionnel--inverse
.image-bloc-institutionnel {
    order: 1;
}


/* ==========================================================
   TEXTE DES RUBRIQUES
   ========================================================== */

.texte-bloc-institutionnel {
    padding: 10px 10px 10px 20px;
}


.texte-bloc-institutionnel h2 {
    margin: 0 0 26px;
    color: #e81216;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
}


/*
 * Petit trait jaune sous chaque titre.
 */
.texte-bloc-institutionnel h2::after {
    content: "";
    display: block;
    width: 76px;
    height: 5px;
    margin-top: 16px;
    border-radius: 50px;
    background: #ffd200;
}


.contenu-texte-rubrique {
    color: #4d4d4d;
    font-size: 1.08rem;
    line-height: 1.85;
}


.contenu-texte-rubrique p {
    margin: 0 0 1.15em;
}


.contenu-texte-rubrique p:last-child {
    margin-bottom: 0;
}


.contenu-texte-rubrique ul,
.contenu-texte-rubrique ol {
    margin: 1.2em 0;
    padding-left: 1.5em;
}


.contenu-texte-rubrique li {
    margin-bottom: 0.65em;
}


.contenu-texte-rubrique a {
    color: #c90f13;
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}


/* ==========================================================
   IMAGES DES RUBRIQUES
   ========================================================== */

.image-bloc-institutionnel {
    width: 100%;
    position: relative;
}


.image-bloc-institutionnel::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: rgba(255, 210, 0, 0.32);
    transform: rotate(2deg);
}


.image-rubrique {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.14);
    position: relative;
    z-index: 1;
}


/* ==========================================================
   BLOC SANS IMAGE
   ========================================================== */

.bloc-institutionnel:not(:has(.image-bloc-institutionnel))
.contenu-bloc-institutionnel {
    display: block;
    min-height: auto;
}


.bloc-institutionnel:not(:has(.image-bloc-institutionnel))
.texte-bloc-institutionnel {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}


.bloc-institutionnel:not(:has(.image-bloc-institutionnel))
.texte-bloc-institutionnel h2::after {
    margin-right: auto;
    margin-left: auto;
}


/* ==========================================================
   TABLETTES
   ========================================================== */

@media screen and (max-width: 980px) {

    .association-bvl {
        width: min(100% - 36px, 900px);
        padding-top: 50px;
    }


    .presentation-association {
        margin-bottom: 55px;
        padding: 45px 38px;
        border-radius: 24px;
    }


    .contenu-bloc-institutionnel,
    .bloc-institutionnel--inverse
    .contenu-bloc-institutionnel {
        grid-template-columns: 1fr;
        gap: 35px;
        min-height: auto;
        padding: 40px;
    }


    .bloc-institutionnel--inverse
    .texte-bloc-institutionnel,
    .bloc-institutionnel--inverse
    .image-bloc-institutionnel {
        order: initial;
    }


    .texte-bloc-institutionnel {
        padding: 5px 10px;
    }


    .image-rubrique {
        height: min(460px, 55vw);
    }

}


/* ==========================================================
   SMARTPHONES
   ========================================================== */

@media screen and (max-width: 600px) {

    .association-bvl {
        width: calc(100% - 24px);
        padding: 30px 0 60px;
    }


    .presentation-association {
        margin-bottom: 35px;
        padding: 38px 22px;
        border-radius: 20px;
    }


    .presentation-association h1 {
        font-size: 2.45rem;
    }


    .sous-titre-association {
        margin-top: 16px;
        font-size: 1.05rem;
    }


    .texte-presentation-association {
        margin-top: 25px;
        font-size: 1rem;
        line-height: 1.7;
    }


    .bloc-institutionnel {
        margin-bottom: 28px;
        padding: 0;
    }


    .contenu-bloc-institutionnel,
    .bloc-institutionnel--inverse
    .contenu-bloc-institutionnel {
        gap: 28px;
        padding: 30px 22px;
        border-radius: 20px;
    }


    .contenu-bloc-institutionnel::before {
        width: 6px;
    }


    .texte-bloc-institutionnel {
        padding: 0 4px 0 10px;
    }


    .texte-bloc-institutionnel h2 {
        margin-bottom: 20px;
        font-size: 2rem;
    }


    .texte-bloc-institutionnel h2::after {
        width: 58px;
        height: 4px;
        margin-top: 12px;
    }


    .contenu-texte-rubrique {
        font-size: 1rem;
        line-height: 1.7;
    }


    .image-bloc-institutionnel::before {
        top: 10px;
        left: 10px;
    }


    .image-rubrique {
        height: 250px;
        border-radius: 18px;
    }

}