/**
 * Pages auteur (resources/views/author.blade.php).
 *
 * Feuille de style autonome, chargée directement par wp_enqueue_style() sur
 * is_author() (voir app/setup.php) et NON compilée par Laravel Mix : la page
 * auteur ne doit pas dépendre d'une reconstruction de dist/. Elle ne contient
 * donc que du CSS standard - pas de directive Tailwind (@apply, @screen...).
 *
 * Palette reprise du thème : jaune #fed300, noir #000, rouge #e51a29.
 * Les titres héritent du `font-weight: 800; font-style: italic` défini dans
 * common/base.css et de la police « Work Sans Bold » (classe .boldFont).
 */

.pageAuteur {
    --pageAuteur-jaune: #fed300;
    --pageAuteur-noir: #000;
    --pageAuteur-gris: #6b6b6b;

    width: 100%;
    overflow-x: hidden;
}

/* ------------------------------------------------------------------ */
/*  En-tête : bandeau jaune, photo + identité                          */
/* ------------------------------------------------------------------ */

.pageAuteur-entete {
    background-color: var(--pageAuteur-jaune);
    /* Dégage la hauteur du header fixe du thème. */
    padding: 7.5rem 1.5rem 3rem;
}

.pageAuteur-enteteInner,
.pageAuteur-corpsInner,
.pageAuteur-articlesInner {
    max-width: 1160px;
    margin: 0 auto;
}

/* .customLink.back dessine sa flèche en bas de sa propre boîte : il faut de la
   marge sous le lien pour qu'elle ne touche pas la photo. */
.pageAuteur-retour {
    margin-bottom: 2.25rem;
}

.pageAuteur-profil {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cadre portrait 3:4 : convient au plan serré comme au plan large. */
.pageAuteur-photo {
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 3 / 4;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pageAuteur-photoImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.pageAuteur-initiales {
    font-family: 'Work Sans Bold', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--pageAuteur-noir);
}

.pageAuteur-identite {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.pageAuteur-nom {
    font-family: 'Work Sans Bold', sans-serif;
    font-size: 2.5rem;
    line-height: 1.05;
    margin: 0;
}

.pageAuteur-fonction {
    margin: 0.75rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    max-width: 30ch;
}

/* Bouton LinkedIn : pilule noire, inversée au survol. */
.pageAuteur-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.75rem;
    padding: 0.875rem 1.5rem;
    background-color: var(--pageAuteur-noir);
    border: 2px solid var(--pageAuteur-noir);
    color: #fff;
    font-family: 'Work Sans Bold', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pageAuteur-linkedin:hover,
.pageAuteur-linkedin:focus-visible {
    background-color: transparent;
    color: var(--pageAuteur-noir);
    transform: scale(1.03);
}

.pageAuteur-linkedinIcone {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/*  Corps : biographie + champs d'expertise                            */
/* ------------------------------------------------------------------ */

.pageAuteur-corps {
    background-color: #fff;
    padding: 3.5rem 1.5rem;
}

.pageAuteur-corpsInner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.pageAuteur-sousTitre {
    font-family: 'Work Sans Bold', sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--pageAuteur-noir);
}

.pageAuteur-bioTexte {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.pageAuteur-bioTexte p {
    margin: 0 0 1.5rem;
}

.pageAuteur-bioTexte p:last-child {
    margin-bottom: 0;
}

.pageAuteur-bioTexte a {
    text-decoration: underline;
}

.pageAuteur-expertiseListe {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.pageAuteur-expertiseItem {
    padding: 0.5rem 1rem;
    border: 2px solid var(--pageAuteur-noir);
    font-size: 0.9375rem;
    line-height: 1.3;
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/*  Articles associés                                                  */
/* ------------------------------------------------------------------ */

.pageAuteur-articles {
    background-color: #fff;
    border-top: 6px solid var(--pageAuteur-noir);
    padding: 3.5rem 1.5rem 5rem;
}

.pageAuteur-articlesTitre {
    font-family: 'Work Sans Bold', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    margin: 0 0 2.5rem;
}

.pageAuteur-grille {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 2rem;
}

.pageAuteur-carte {
    display: flex;
    flex-direction: column;
}

.pageAuteur-carteVisuel {
    display: block;
    aspect-ratio: 3 / 2;
    background-color: var(--pageAuteur-jaune);
    overflow: hidden;
}

.pageAuteur-carteImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pageAuteur-carte:hover .pageAuteur-carteImage {
    transform: scale(1.06);
}

.pageAuteur-carteTexte {
    padding-top: 1.125rem;
}

.pageAuteur-carteDate {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--pageAuteur-gris);
}

.pageAuteur-carteTitre {
    font-family: 'Work Sans Bold', sans-serif;
    font-size: 1.375rem;
    line-height: 1.25;
    margin: 0;
}

.pageAuteur-carteTitre a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.pageAuteur-carteTitre a:hover {
    color: #e51a29;
}

/* Le .customLink du thème embarque déjà son propre rembourrage vertical. */
.pageAuteur-carteLien {
    align-self: flex-start;
}

.pageAuteur-aucunArticle {
    margin: 0 0 1rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 60ch;
}

/* Navigation entre les pages d'archive (get_the_posts_navigation). */
.pageAuteur-articles .navigation.posts-navigation {
    margin-top: 3rem;
}

.pageAuteur-articles .navigation.posts-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pageAuteur-articles .navigation.posts-navigation a {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background-color: var(--pageAuteur-jaune);
    font-family: 'Work Sans Bold', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pageAuteur-articles .navigation.posts-navigation a:hover {
    transform: scale(1.05);
}

.pageAuteur-articles .navigation.posts-navigation .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/*  Points de rupture                                                  */
/* ------------------------------------------------------------------ */

@media (min-width: 640px) {
    .pageAuteur-profil {
        flex-direction: row;
        align-items: flex-end;
        gap: 2.5rem;
    }

    .pageAuteur-nom {
        font-size: 3.25rem;
    }

    .pageAuteur-grille {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pageAuteur-entete {
        padding: 10rem 2.5rem 4rem;
    }

    .pageAuteur-corps,
    .pageAuteur-articles {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .pageAuteur-photo {
        width: 290px;
    }

    .pageAuteur-nom {
        font-size: 4rem;
    }

    .pageAuteur-corpsInner {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 4rem;
    }

    .pageAuteur-articlesTitre {
        font-size: 2.75rem;
    }

    .pageAuteur-grille {
        grid-template-columns: repeat(3, 1fr);
    }
}
