/* =============================================================
   TOPCASTING – Header topbar + bannière pages internes
   À ajouter dans public/assets/frontend/css/topcasting.css
   (ou dans un fichier séparé inclus dans le master layout)
============================================================= */

/* ── Topbar ──────────────────────────────────────────────────── */
.tc-topbar {
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.tc-topbar a {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}
.tc-topbar a:hover { color: var(--tc-theme2-color); }
.tc-topbar__icon {
    width: 26px; height: 26px;
    background: var(--tc-theme-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
}
.tc-topbar__sep { color: rgba(255,255,255,.2); }

/* ── Header principal ─────────────────────────────────────────── */
.tc-header {
    background: var(--tc-dark-bg, #0f0035);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: background .35s, box-shadow .35s;
}
.tc-header.sticky,
.tc-header--scrolled {
    background: rgba(15,0,53,.97);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.tc-header__inner {
    height: 72px;
    gap: 24px;
}
.tc-header__logo-img {
    max-height: 60px;
    width: auto;
}

/* ── Navigation ───────────────────────────────────────────────── */
.tc-nav__list { gap: 0; }
.tc-nav__link {
    color: rgba(255,255,255,.85);
    font-size: 15px;
    font-weight: 500;
    padding: 24px 14px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}
.tc-nav__item:hover .tc-nav__link,
.tc-nav__item.active .tc-nav__link {
    color: var(--tc-theme2-color);
}

/* Dropdown */
.tc-nav__item--dropdown { position: relative; }
.tc-nav__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    min-width: 210px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .22s ease;
    z-index: 100;
}
.tc-nav__item--dropdown:hover .tc-nav__dropdown,
.tc-header__account:hover .tc-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tc-nav__dropdown li a,
.tc-nav__dropdown li span {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--tc-text, #374151);
    font-size: 14px;
    text-decoration: none;
    transition: background .18s;
}
.tc-nav__dropdown li a:hover { background: #f3f0ff; color: var(--tc-theme-color); }

/* ── CTA header ───────────────────────────────────────────────── */
.tc-header__cta {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    background: var(--tc-theme-color);
    transition: background .25s, transform .25s;
    white-space: nowrap;
}
.tc-header__cta:hover {
    background: var(--tc-theme2-color);
    transform: translateY(-1px);
}
.tc-header__cta-plus {
    background: var(--tc-theme2-color);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: #1f2937;
    font-size: 16px;
    flex-shrink: 0;
}
.tc-header__cta-text {
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Compte */
.tc-header__account { position: relative; }
.tc-header__account-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.85);
    cursor: pointer;
    padding: 4px 6px;
    transition: color .2s;
}
.tc-header__account-btn:hover { color: var(--tc-theme2-color); }

/* ── Hamburger mobile ─────────────────────────────────────────── */
.tc-hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/* =============================================================
   BANNIÈRE PAGES INTERNES
   Inspirée du design Lestin :
   grande image/couleur de fond + overlay sombre + titre centré
============================================================= */
.tc-page-banner {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Overlay */
.tc-page-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Contenu */
.tc-page-banner__inner {
    padding: 60px 0 50px;
    text-align: center;
}
.tc-page-banner__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}
.tc-page-banner__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    margin-bottom: 0;
}

/* Breadcrumbs */
.tc-breadcrumb {
    justify-content: center;
    margin-bottom: 12px !important;
}
.tc-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}
.tc-breadcrumb .breadcrumb-item a:hover { color: var(--tc-theme2-color); }
.tc-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); font-size: 14px; }
.tc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(255,255,255,.35);
}

/* Effet parallax léger */
@media (min-width: 992px) {
    .tc-page-banner { background-attachment: fixed; }
}

/* ── Admin : page settings bannières ─────────────────────────── */
/* Prévisualisation couleur dans le formulaire admin */
.tc-color-preview {
    width: 32px; height: 32px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

/* =============================================================
   TOUTES LES PAGES INTERNES : padding cohérent
============================================================= */
.tc-page-body { padding: 80px 0; }

@media (max-width: 991px) {
    .tc-page-banner { min-height: 180px; }
    .tc-page-banner__inner { padding: 40px 0 32px; }
    .tc-page-banner__title { font-size: 1.6rem; }
    .tc-topbar { display: none !important; }
    .tc-header__inner { height: 64px; }
}
