/* Pages refaites sous l'en-tête (templates/la-planete.php, templates/les-equipes.php), aux couleurs de la charte Veternity. */

/* Sections pleine largeur : le thème place le contenu de la page dans une boîte centrée. */
body:has(.vf-page) {
    overflow-x: clip;
}

.vf-page {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #1e1f1f;
}

.vf-page__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

body .vf-page__titre {
    margin: 0 0 56px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
    color: #5d1451;
}

/* 1. Introduction et chiffres clés */
.vf-page__intro {
    padding: 72px 0 96px;
    background: #ffffff;
}

.vf-page__intro-grille {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.vf-page__surtitre {
    display: inline-block;
    margin: 0 0 22px;
    padding: 7px 16px 6px;
    border-radius: 10px;
    background-color: #9b4385;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.vf-page__chapo {
    margin: 0;
    font-size: 19px;
    line-height: 1.75;
}

.vf-page__chiffres {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vf-page__chiffres li {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 26px;
    border-radius: 18px;
    background: linear-gradient(120deg, #f7edf4, #f4f2f2);
}

.vf-page__chiffres strong {
    flex: 0 0 132px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #5d1451;
}

.vf-page__chiffres span {
    font-size: 15px;
    line-height: 1.5;
}

/* 2. Actions : photo (ou tuile illustrée) et texte en alternance, sur fond crème */
.vf-page__actions {
    padding: 104px 0 72px;
    background: #f4f2f2;
}

.vf-page__actions .vf-page__titre {
    text-align: center;
}

.vf-action {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 96px;
}

.vf-action:nth-of-type(even) .vf-action__visuel {
    order: 2;
}

.vf-action__visuel {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 60px -30px rgba(70, 21, 62, 0.45);
}

.vf-action__visuel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf-action__tuile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
        linear-gradient(135deg, #46153e 0%, #5d1451 45%, #9b4385 100%);
}

.vf-action__tuile svg {
    width: 34%;
    height: auto;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vf-action__numero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9b4385;
}

.vf-action__numero::after {
    content: "";
    width: 48px;
    height: 2px;
    border-radius: 2px;
    background-color: #9b4385;
}

body .vf-action__titre {
    margin: 0 0 20px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    color: #5d1451;
}

.vf-action__texte p:not(.vf-action__numero) {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.8;
}

/* 3. Transition écologique : dégradé du violet au violet clair (le violet foncé est celui du pied de page, juste dessous). */
.vf-page__transition {
    padding: 104px 0;
    background: linear-gradient(135deg, #5d1451 0%, #7a2a6a 55%, #9b4385 100%);
    color: #ffffff;
}

.vf-page__transition-grille {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 72px;
    align-items: center;
}

body .vf-page__transition .vf-page__titre {
    margin-bottom: 28px;
    color: #ffffff;
}

.vf-page__transition p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.vf-page__cendres {
    margin-top: 40px;
    padding: 28px 32px;
    border-left: 3px solid #f0d9ea;
    border-radius: 0 18px 18px 0;
    background-color: rgba(255, 255, 255, 0.07);
}

body .vf-page__cendres h3 {
    margin: 0 0 10px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: none;
    color: #f0d9ea;
}

.vf-page__transition-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
}

/* Tablette et mobile */
@media (max-width: 1023px) {
    .vf-page__intro-grille,
    .vf-page__transition-grille {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vf-action {
        gap: 44px;
    }

    .vf-page__transition-photo {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    body .vf-page__titre {
        margin-bottom: 36px;
        font-size: 32px;
    }

    .vf-page__intro {
        padding: 48px 0 64px;
    }

    .vf-page__chapo {
        font-size: 17px;
    }

    .vf-page__chiffres strong {
        flex-basis: 104px;
        font-size: 36px;
    }

    .vf-page__actions,
    .vf-page__transition {
        padding: 72px 0;
    }

    .vf-action {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 64px;
    }

    .vf-action:nth-of-type(even) .vf-action__visuel {
        order: 0;
    }

    body .vf-action__titre {
        font-size: 25px;
    }

    .vf-page__cendres {
        padding: 22px 22px;
    }
}

/* Bandeau de chiffres clés (Les équipes : enquête Brilliant 2024) : dégradé violet, chiffres en Abhaya Libre. */
.vf-page__stats {
    padding: 88px 0;
    background: linear-gradient(135deg, #5d1451 0%, #7a2a6a 55%, #9b4385 100%);
    color: #ffffff;
    text-align: center;
}

body .vf-page__stats .vf-page__titre {
    margin-bottom: 12px;
    color: #ffffff;
}

.vf-page__source {
    margin: 0 0 48px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.vf-page__stats ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vf-page__stats li {
    padding: 30px 22px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.vf-page__stats strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}

.vf-page__stats span {
    display: block;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

/* Liste de points (titre en gras + texte) dans une action. */
.vf-action__points {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.vf-action__points li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.75;
}

.vf-action__points li::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9b4385;
}

.vf-action__points strong {
    color: #5d1451;
}

body .vf-action__sous-titre {
    margin: 26px 0 10px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    text-transform: none;
    color: #1e1f1f;
}

/* Photos en hauteur (portrait) : cadrage centré sur le haut. */
.vf-action__visuel--portrait img {
    object-position: center 30%;
}

@media (max-width: 1023px) {
    .vf-page__stats ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .vf-page__stats {
        padding: 64px 0;
    }

    .vf-page__stats ul {
        gap: 12px;
    }

    .vf-page__stats li {
        padding: 22px 14px;
    }

    .vf-page__stats strong {
        font-size: 38px;
    }

    .vf-page__stats span {
        font-size: 13px;
    }
}

/* Introduction sans colonne de chiffres (Les équipes). */
.vf-page__intro-grille--seule {
    grid-template-columns: minmax(0, 780px);
}

body .vf-page__titre--intro {
    margin-bottom: 22px;
}

.vf-action__texte .vf-action__sous-titre:first-of-type {
    margin-top: 0;
}

/* Une histoire unique : exergue, texte, « Notre rôle », frise des dates. */
/* body : le thème centre et met en italique les citations (blockquote). */
body .vf-page__exergue {
    margin: 34px 0;
    padding: 6px 0 6px 26px;
    border-left: 4px solid #9b4385;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    color: #5d1451;
}

.vf-page__texte {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
}

.vf-page__texte strong {
    color: #5d1451;
}

.vf-page__role {
    padding: 80px 0;
    background-color: #ffffff;
}

.vf-page__role-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.vf-page__role-image img {
    display: block;
    width: 100%;
    height: auto;
}

.vf-page__role-texte {
    margin: 0;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.45;
    color: #1e1f1f;
}

.vf-page__role-texte span {
    font-weight: 800;
    color: #9b4385;
}

.vf-page__frise {
    padding: 104px 0 96px;
    background: #f4f2f2;
}

.vf-page__frise .vf-page__titre {
    text-align: center;
}

.vf-frise {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Ligne verticale au centre de la frise. */
.vf-frise::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: linear-gradient(180deg, #9b4385, #5d1451);
}

.vf-frise__etape {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    margin-bottom: 56px;
}

/* Point sur la ligne pour chaque date. */
.vf-frise__etape::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 22px;
    height: 22px;
    border: 5px solid #f4f2f2;
    border-radius: 50%;
    background-color: #5d1451;
    box-shadow: 0 0 0 3px #9b4385;
}

.vf-frise__visuel {
    grid-row: 1;
    grid-column: 3;
    justify-self: start;
}

.vf-frise__contenu {
    grid-row: 1;
    grid-column: 1;
    padding: 30px 32px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 20px 45px -26px rgba(70, 21, 62, 0.35);
}

.vf-frise__etape:nth-child(even) .vf-frise__visuel {
    grid-column: 1;
    justify-self: end;
}

.vf-frise__etape:nth-child(even) .vf-frise__contenu {
    grid-column: 3;
}

.vf-frise__visuel--photo {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 20px 40px -20px rgba(70, 21, 62, 0.55), 0 0 0 6px #ffffff;
}

.vf-frise__visuel--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf-frise__visuel--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 120px;
    padding: 18px 24px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 20px 40px -24px rgba(70, 21, 62, 0.45);
}

.vf-frise__visuel--logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vf-frise__annee {
    margin: 0 0 6px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: #9b4385;
}

body .vf-frise__titre {
    margin: 0 0 12px;
    font-family: "Abhaya Libre", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    color: #5d1451;
}

.vf-frise__contenu p:not(.vf-frise__annee) {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.75;
}

@media (max-width: 1023px) {
    .vf-page__role-grille {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile : ligne à gauche, image puis texte à droite. */
@media (max-width: 767px) {
    body .vf-page__exergue {
        font-size: 21px;
    }

    .vf-page__role {
        padding: 56px 0;
    }

    .vf-page__role-texte {
        font-size: 23px;
    }

    .vf-page__frise {
        padding: 72px 0 56px;
    }

    .vf-frise::before {
        left: 13px;
    }

    .vf-frise__etape,
    .vf-frise__etape:nth-child(even) {
        grid-template-columns: 28px 1fr;
        column-gap: 16px;
        row-gap: 16px;
        align-items: start;
        margin-bottom: 40px;
    }

    .vf-frise__etape::after {
        grid-column: 1;
        width: 18px;
        height: 18px;
        border-width: 4px;
    }

    .vf-frise__visuel,
    .vf-frise__etape:nth-child(even) .vf-frise__visuel {
        grid-row: 1;
        grid-column: 2;
        justify-self: start;
    }

    .vf-frise__contenu,
    .vf-frise__etape:nth-child(even) .vf-frise__contenu {
        grid-row: 2;
        grid-column: 2;
        padding: 22px 20px;
    }

    .vf-frise__visuel--photo {
        width: 120px;
        height: 120px;
    }

    .vf-frise__visuel--logo {
        width: 180px;
        height: 88px;
        padding: 14px 18px;
    }

    .vf-frise__annee {
        font-size: 32px;
    }
}
