/* -------------------------------------------------------------
    Conteneur principal
   ------------------------------------------------------------- */
.banner-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-image: url('../../assets/images/banner-claire.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .banner-section {
    background-image: url('../../assets/images/banner.webp');
}

/* -------------------------------------------------------------
    Overlay sombre
   ------------------------------------------------------------- */
.banner-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 4rem 2.5rem;
    background: rgba(10, 10, 10, 0.308);
}

/* -------------------------------------------------------------
    Scanlines
   ------------------------------------------------------------- */
.banner-scanlines {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* -------------------------------------------------------------
    Contenu centré
   ------------------------------------------------------------- */
.banner-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* -------------------------------------------------------------
    Avatar
   ------------------------------------------------------------- */
.banner-avatar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.banner-avatar img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    outline: 2px solid rgba(200, 200, 200, 0.4);
    outline-offset: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: block;
}

.banner-avatar__fallback {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--border-soft), var(--paper));
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 2px solid rgba(200, 200, 200, 0.4);
    outline-offset: 2px;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.5);
}

.banner-avatar__fallback span {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ink);
    font-family: 'Playfair Display', serif;
}

/* -------------------------------------------------------------
    Titre
   ------------------------------------------------------------- */
.banner-title {
    font-size: clamp(2.6rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.5rem;
    cursor: default;
    max-width: 800px;
}

/* -------------------------------------------------------------
    Profession
   ------------------------------------------------------------- */
.banner-profession {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------
    Typewriter
   ------------------------------------------------------------- */
.banner-typewriter {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: var(--ink);
    min-height: 1.4rem;
    margin-bottom: 2rem;
}

/* -------------------------------------------------------------
    Localisation
   ------------------------------------------------------------- */
.banner-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 12px;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.banner-location__icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* -------------------------------------------------------------
    CTA
   ------------------------------------------------------------- */
.banner-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.banner-cta__btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.banner-cta__btn--primary {
    background: var(--ink);
    color: var(--border);
    border: 1px solid transparent;
}

.banner-cta__btn--primary:hover {
    background: var(--border-soft);
}

.banner-cta__btn--secondary {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.banner-cta__btn--secondary:hover {
    border-color: var(--border-soft);
    color: var(--paper);
}

/* -------------------------------------------------------------
    Fallback (sans personalInfo)
   ------------------------------------------------------------- */
.banner-fallback__role {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.banner-fallback__title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1rem;
}

.banner-fallback__sub {
    font-size: 0.875rem;
    color: var(--muted);
}

/* -------------------------------------------------------------
    Animation fade (--d = delay custom property)
   ------------------------------------------------------------- */
.banner-fade {
    opacity: 0;
    transform: translateY(10px);
    animation: bannerFadeIn 0.5s ease forwards;
    animation-delay: var(--d, 0s);
}

@keyframes bannerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}