/* =========================================================================
   AUTEURS — Page /auteurs  (style hc-team)
   ========================================================================= */

.hc-team {
    color: var(--ink);
    line-height: 1.65;
    /* Pleine largeur, sort de la colonne étroite du thème */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: var(--paper);
}

.hc-team * { box-sizing: border-box; }
.hc-team .hc-inner { max-width: 1080px; margin: 0 auto; padding: 0 5vw 4rem; }

/* ---- HERO ---- */
.hc-hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 4.5rem 2rem 4rem;
    overflow: hidden;
}

.hc-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
        radial-gradient(circle at 82% 72%, color-mix(in srgb, var(--plum) 45%, transparent), transparent 55%);
    pointer-events: none;
}

.hc-hero-inner { max-width: 760px; margin: 0 auto; position: relative; }

.hc-kicker {
    font-family: var(--sans);
    text-transform: uppercase; letter-spacing: .32em;
    font-size: .72rem; font-weight: 700;
    color: var(--accent); margin: 0 0 1.2rem;
}

.hc-hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    line-height: 1.05; margin: 0 0 1.3rem;
    font-weight: 700; letter-spacing: -.01em;
    color: var(--paper); font-family: var(--serif);
}

.hc-hero h1 em {
    color: var(--ink); background: var(--accent);
    font-style: italic; padding: 0 .18em; border-radius: 8px;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.hc-hero p {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    max-width: 620px; margin: 0 auto; opacity: .88;
    font-family: var(--serif);
}

.hc-meta {
    display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
    margin-top: 2.2rem;
    font-family: var(--sans);
    font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
    position: relative; opacity: .85;
}

.hc-meta strong { color: var(--accent); }

/* ---- SECTION HEADER ---- */
.hc-pole {
    display: flex; align-items: baseline; gap: 1.1rem;
    margin: 3.5rem 0 1.8rem;
}

.hc-pole h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700;
    letter-spacing: -.01em; margin: 0; font-family: var(--serif);
}

.hc-pole h2 span { background: var(--accent); padding: 0 .15em; border-radius: 6px; }
.hc-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }

/* ---- GRILLE ---- */
.hc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

@media (max-width: 900px) {
    .hc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .hc-grid { grid-template-columns: 1fr; max-width: 380px; }
}

/* ---- CARTE ---- */
.hc-card {
    border: 2px solid var(--ink);
    background: #fff;
    border-radius: 22px;
    padding: 1.8rem 1.4rem 1.6rem;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    display: flex;
    flex-direction: column;
}

.hc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(21,21,15,.16), 6px 6px 0 var(--accent);
    background: var(--ink);
    color: var(--paper);
}

/* Overlay cliquable pleine carte */
.hc-card__link {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: 1;
}

/* Les éléments interactifs au-dessus de l'overlay */
.hc-foot,
.hc-avatar {
    position: relative;
    z-index: 2;
}

/* ---- AVATAR ---- */
.hc-avatar {
    width: 84px; height: 84px;
    border-radius: 50%; object-fit: cover;
    filter: grayscale(.45);
    border: 3px solid var(--plum);
    background: var(--line);
    margin-bottom: 1.1rem;
    display: block;
    transition: filter .25s ease, border-color .25s ease;
}

.hc-card:hover .hc-avatar {
    filter: grayscale(0);
    border-color: var(--accent);
}

.hc-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--plum);
    background: color-mix(in srgb, var(--accent) 20%, var(--paper));
    border: 3px solid var(--plum);
}

.hc-card:hover .hc-avatar--initials {
    background: color-mix(in srgb, var(--accent) 20%, var(--ink));
    color: var(--accent);
    border-color: var(--accent);
}

/* ---- NOM ---- */
.hc-name {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    position: relative;
    z-index: 3;
    text-decoration: none;
    color: inherit;
    display: block;
}
.hc-name:hover { text-decoration: underline; }

/* ---- RÔLE / BIO ---- */
.hc-role {
    margin-top: .45rem;
    font-family: var(--sans);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--plum);
    transition: color .25s ease;
    flex: 1;
    position: relative;
    z-index: 2;
    /* Bio peut être longue — on la tronque */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
    font-size: .82rem;
    font-weight: 400;
    opacity: .8;
    line-height: 1.5;
}

.hc-card:hover .hc-role { color: color-mix(in srgb, var(--paper) 80%, transparent); opacity: 1; }

/* ---- FOOTER : réseaux + compteur ---- */
.hc-foot {
    margin-top: 1.1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    transition: border-color .25s ease;
    position: relative;
    z-index: 2;
}

.hc-card:hover .hc-foot {
    border-top-color: rgba(250,248,240,.2);
}

/* ---- Icônes réseaux ---- */
.hc-socials {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.hc-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: inherit;
    opacity: .45;
    text-decoration: none;
    transition: opacity .15s, background .15s;
    position: relative;
    z-index: 3;
}

.hc-social:hover { opacity: 1; background: var(--accent); color: var(--ink); }
.hc-card:hover .hc-social { opacity: .6; color: var(--paper); }
.hc-card:hover .hc-social:hover { opacity: 1; background: var(--accent); color: var(--ink); }

/* ---- Compteur d'articles ---- */
.hc-count {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    padding: .28rem .6rem .28rem .5rem;
    border: 1.5px solid currentColor;
    border-radius: 40px;
    white-space: nowrap;
    opacity: .6;
    transition: opacity .15s, background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.hc-count:hover { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hc-card:hover .hc-count { opacity: .7; }
.hc-card:hover .hc-count:hover { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---- Dark mode ---- */
html[data-theme="dark"] .hc-card,
html[data-color-scheme="Sombre"] .hc-card {
    background: color-mix(in srgb, var(--ink) 90%, var(--paper));
    border-color: rgba(250,248,240,.15);
}

html[data-theme="dark"] .hc-card:hover,
html[data-color-scheme="Sombre"] .hc-card:hover {
    background: color-mix(in srgb, var(--accent) 12%, var(--ink));
    border-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
    html[data-color-scheme="Auto"]:not([data-theme]) .hc-card {
        background: color-mix(in srgb, var(--ink) 90%, var(--paper));
        border-color: rgba(250,248,240,.15);
    }
}
