/* ===========================================================================
   Indepro - Header sticky + Footer
   =========================================================================== */

/* === ACCESSIBILITE : skip link (WCAG 2.4.1 Bypass Blocks) === */
/* Cache visuellement par defaut, devient visible et focusable au tab clavier. */
.indepro-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 12px 18px;
    background: #ebbb81;
    color: #07070b;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: top 0.2s ease;
}
.indepro-skip-link:focus,
.indepro-skip-link:focus-visible {
    top: 16px;
    outline: 2px solid #07070b;
    outline-offset: 2px;
}

/* === HEADER === */
.indepro-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.indepro-header.is-scrolled {
    background: rgba(7, 7, 11, 0.78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.indepro-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.indepro-header.is-scrolled .indepro-header__inner {
    padding: 12px 32px;
}

.indepro-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f2f1ed;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 20px;
    transition: opacity 0.3s ease;
}
.indepro-header__logo:hover {
    opacity: 0.85;
}
.indepro-header__logo-mark {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 9px;
}
.indepro-header__logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.005em;
    line-height: 1;
    /* whitespace-nowrap pour pas que ça wrap, padding-right pour
       pas que l'italique du O soit cropé par les ancêtres flex */
    white-space: nowrap;
    padding-right: 4px;
}
.indepro-header__logo-text b {
    font-weight: 800;
    font-style: normal;
    color: #f2f1ed;
    margin-right: 1px;
}
.indepro-header__logo-text i {
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(135deg, #ebbb81, #f2c088);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* padding-right pour donner de l'air au glyphe italique du O */
    padding-right: 6px;
    margin-right: -4px;
}

.indepro-header__nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}
.indepro-header__nav a {
    position: relative;
    color: rgba(242, 241, 237, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 6px 0;
    transition: color 0.3s ease;
}
.indepro-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #ebbb81;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.indepro-header__nav a:hover {
    color: #ebbb81;
}
.indepro-header__nav a:hover::after {
    transform: scaleX(1);
}

.indepro-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ebbb81;
    color: #07070b;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
}
.indepro-header__cta:hover {
    transform: translateY(-1px);
    background: #f2c088;
    box-shadow: 0 6px 20px rgba(235, 187, 129, 0.3);
}
.indepro-header__cta svg {
    transition: transform 0.3s ease;
}
.indepro-header__cta:hover svg {
    transform: translate(2px, -2px);
}

/* Icône de connexion (visiteurs non connectés uniquement). Cercle ghost gold. */
.indepro-header__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(235, 187, 129, 0.45);
    color: #ebbb81;
    background: transparent;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-right: 4px;
}
.indepro-header__login:hover,
.indepro-header__login:focus-visible {
    background: #ebbb81;
    border-color: #ebbb81;
    color: #07070b;
    transform: translateY(-1px);
    outline: none;
}
.indepro-header__login svg {
    width: 18px;
    height: 18px;
}
@media (max-width: 900px) {
    .indepro-header__login { display: none; }
}

/* Equivalent dans le menu mobile : pleine largeur, secondaire (ghost gold). */
.indepro-header__mobile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    border: 1.5px solid rgba(235, 187, 129, 0.5);
    border-radius: 10px;
    color: #ebbb81;
    background: transparent;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.indepro-header__mobile-login:hover,
.indepro-header__mobile-login:focus-visible {
    background: rgba(235, 187, 129, 0.12);
    border-color: #ebbb81;
    outline: none;
}

/* Le header.__nav est masqué en mobile : le dropdown ne risque pas de se déclencher,
   mais on annule explicitement les hover/focus pour les écrans tactiles. */
@media (max-width: 900px), (hover: none) {
    .indepro-header__sub { display: none !important; }
    .indepro-header__item--has-sub:hover .indepro-header__sub,
    .indepro-header__item--has-sub:focus-within .indepro-header__sub {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Burger mobile */
.indepro-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.indepro-header__burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #f2f1ed;
    border-radius: 1px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}
.indepro-header__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.indepro-header__burger.is-open span:nth-child(2) {
    opacity: 0;
}
.indepro-header__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile fullscreen */
.indepro-header__mobile {
    position: fixed;
    inset: 0;
    background: rgba(7, 7, 11, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 99;
}
.indepro-header__mobile.is-open {
    opacity: 1;
    visibility: visible;
}
.indepro-header__mobile a {
    color: #f2f1ed;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.3s ease, transform 0.3s ease;
}
.indepro-header__mobile a:hover {
    color: #ebbb81;
    transform: translateX(4px);
}
.indepro-header__mobile-cta {
    margin-top: 16px;
    padding: 14px 28px;
    background: #ebbb81;
    color: #07070b !important;
    border-radius: 10px;
    font-size: 18px !important;
    font-weight: 700;
}
.indepro-header__mobile-cta:hover {
    background: #f2c088 !important;
    color: #07070b !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 900px) {
    .indepro-header__nav,
    .indepro-header__cta {
        display: none;
    }
    .indepro-header__burger {
        display: flex;
        margin-left: auto;
    }
    .indepro-header__inner {
        padding: 14px 20px;
    }
}

/* === FOOTER === */
.indepro-footer {
    background: #050508;
    color: rgba(242, 241, 237, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 32px 40px;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
}
.indepro-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 2.6fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.indepro-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}
.indepro-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f2f1ed;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
}
.indepro-footer__logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -0.005em;
    line-height: 1;
    white-space: nowrap;
    padding-right: 4px;
}
.indepro-footer__logo-text b {
    font-weight: 800;
    font-style: normal;
    color: #f2f1ed;
    margin-right: 1px;
}
.indepro-footer__logo-text i {
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(135deg, #ebbb81, #f2c088);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 6px;
    margin-right: -4px;
}
.indepro-footer__logo-mark {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
}
.indepro-footer__tagline {
    color: rgba(242, 241, 237, 0.65);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}
.indepro-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1.5px solid rgba(235, 187, 129, 0.6);
    color: #ebbb81 !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-top: 4px;
}
.indepro-footer__cta:hover {
    background: #ebbb81;
    color: #07070b !important;
    border-color: #ebbb81;
}
.indepro-footer__cta svg {
    transition: transform 0.3s ease;
}
.indepro-footer__cta:hover svg {
    transform: translate(2px, -2px);
}

.indepro-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.indepro-footer__col h4 {
    color: #f2f1ed;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 18px 0;
}
.indepro-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.indepro-footer__col a {
    color: rgba(242, 241, 237, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.indepro-footer__col a:hover {
    color: #ebbb81;
    transform: translateX(2px);
}

.indepro-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(242, 241, 237, 0.4);
    font-size: 12px;
}
.indepro-footer__bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .indepro-footer {
        padding: 60px 20px 30px;
    }
    .indepro-footer__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .indepro-footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
    .indepro-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Décale le contenu pour ne pas être sous le header sticky */
body {
    /* Pas de padding-top : le hero gère son propre padding interne et
       on veut qu'il commence en haut de la page. Le header sticky est
       transparent au load, il ne masque rien. */
}

/* ============================================================
   DROPDOWN MENU (desktop)
   ============================================================ */
.indepro-header__item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.indepro-header__item--has-sub .indepro-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 6px 0;
    color: rgba(242, 241, 237, 0.75);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.3s ease;
}
.indepro-header__item--has-sub .indepro-header__btn svg {
    transition: transform 0.3s ease;
    margin-top: 1px;
}
.indepro-header__item--has-sub:hover .indepro-header__btn,
.indepro-header__item--has-sub:focus-within .indepro-header__btn {
    color: #ebbb81;
}
.indepro-header__item--has-sub:hover .indepro-header__btn svg,
.indepro-header__item--has-sub:focus-within .indepro-header__btn svg {
    transform: rotate(180deg);
}
.indepro-header__sub {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 300px;
    padding: 10px;
    background: rgba(20, 17, 13, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(235, 187, 129, 0.18);
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(235, 187, 129, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    pointer-events: none;
    /* Doit etre au-dessus de cours-tabs sticky (110) ET du progress-pill ouvert (200). */
    z-index: 210;
}
.indepro-header__sub::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.indepro-header__item--has-sub:hover .indepro-header__sub,
.indepro-header__item--has-sub:focus-within .indepro-header__sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.indepro-header__sub a {
    display: block !important;
    padding: 12px 14px !important;
    border-radius: 9px;
    text-decoration: none !important;
    color: #f2f1ed !important;
    transition: background 0.25s ease;
}
.indepro-header__sub a:hover {
    background: rgba(235, 187, 129, 0.08);
}
.indepro-header__sub a::after { display: none !important; }
.indepro-header__sub-t {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f2f1ed;
    margin-bottom: 2px;
    transition: color 0.25s ease;
}
.indepro-header__sub a:hover .indepro-header__sub-t { color: #ebbb81; }
.indepro-header__sub-x {
    display: block;
    font-size: 12px;
    color: rgba(242, 241, 237, 0.55);
    line-height: 1.4;
}

/* ============================================================
   MOBILE MENU - restylé en colonnes hierarchiques
   ============================================================ */
.indepro-header__mobile {
    /* Override : pas centré, mais layout vertical scroll */
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 88px 24px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.indepro-header__mobile-inner {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.indepro-header__mobile-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.indepro-header__mobile-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #ebbb81;
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(235, 187, 129, 0.15);
}
/* Accordion mobile (Programme) */
.indepro-header__mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    border-bottom: 1px solid rgba(235, 187, 129, 0.15);
    padding-bottom: 12px;
    margin-bottom: 6px;
}
.indepro-header__mobile-toggle .indepro-header__mobile-label {
    margin: 0;
    padding: 0;
    border: 0;
    flex: 1;
    text-align: left;
}
.indepro-header__mobile-toggle svg {
    color: #ebbb81;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.indepro-header__mobile-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.indepro-header__mobile-sub {
    display: flex !important;
    flex-direction: column;
    gap: 4px !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.indepro-header__mobile-toggle[aria-expanded="true"] + .indepro-header__mobile-sub {
    max-height: 500px;
    opacity: 1;
}
.indepro-header__mobile-sub a {
    font-size: 22px !important;
    text-align: left !important;
    padding: 10px 0 !important;
    transform: none !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f2f1ed !important;
    text-decoration: none;
}
.indepro-header__mobile-sub a:hover {
    color: #ebbb81 !important;
    transform: translateX(6px) !important;
}
.indepro-header__mobile-group a:not(.indepro-header__mobile-cta) {
    font-size: 22px !important;
    text-align: left !important;
    padding: 10px 0 !important;
    transform: none !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f2f1ed !important;
}
.indepro-header__mobile-group a:not(.indepro-header__mobile-cta):hover {
    color: #ebbb81 !important;
    transform: translateX(6px) !important;
}
.indepro-header__mobile-cta {
    margin-top: 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px !important;
    border-radius: 12px;
    background: linear-gradient(135deg, #ebbb81, #c99a5b) !important;
    color: #07070b !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 18px 40px rgba(235, 187, 129, 0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.indepro-header__mobile-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 24px 50px rgba(235, 187, 129, 0.4) !important;
    background: linear-gradient(135deg, #f2c088, #ebbb81) !important;
}
.indepro-header__mobile-note {
    text-align: center;
    color: rgba(242, 241, 237, 0.5);
    font-size: 12.5px;
    margin: 0;
}

/* ===========================================================================
   HEADER MEMBRE (variant)
   =========================================================================== */
.indepro-header--member.is-scrolled {
    background: rgba(7, 7, 11, 0.85);
    border-bottom-color: rgba(235, 187, 129, 0.18);
}
.indepro-header--member .indepro-header__inner {
    gap: 24px;
}
.indepro-header--member .indepro-header__logo-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    padding: 3px 9px;
    background: linear-gradient(135deg, rgba(235, 187, 129, 0.2), rgba(235, 187, 129, 0.08));
    border: 1px solid rgba(235, 187, 129, 0.45);
    border-radius: 999px;
    color: #ebbb81;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.indepro-header--member .indepro-header__nav {
    flex: 1;
    justify-content: center;
    gap: 6px;
    display: flex;
    align-items: center;
}
.indepro-header--member .indepro-header__lk {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: rgba(242, 241, 237, 0.78);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.3s ease, background 0.3s ease;
}
.indepro-header--member .indepro-header__lk svg {
    color: rgba(235, 187, 129, 0.7);
    transition: color 0.3s ease;
}
.indepro-header--member .indepro-header__lk:hover {
    color: #f2f1ed;
    background: rgba(235, 187, 129, 0.06);
}
.indepro-header--member .indepro-header__lk:hover svg {
    color: #ebbb81;
}

/* Header membre : nav refondue Formation/Communauté/Outils.
   On reapplique les styles de la nav publique (__btn + <a>) qui ne s'etaient
   pas appliques car .indepro-header--member force son propre layout flex. */
.indepro-header--member .indepro-header__nav > a,
.indepro-header--member .indepro-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 0;
    color: rgba(242, 241, 237, 0.78);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
}
.indepro-header--member .indepro-header__nav > a:hover,
.indepro-header--member .indepro-header__btn:hover,
.indepro-header--member .indepro-header__item--has-sub:hover .indepro-header__btn,
.indepro-header--member .indepro-header__item--has-sub:focus-within .indepro-header__btn {
    color: #f2f1ed;
    background: rgba(235, 187, 129, 0.06);
}
.indepro-header--member .indepro-header__btn svg {
    color: rgba(235, 187, 129, 0.7);
    transition: transform 0.3s ease, color 0.3s ease;
}
.indepro-header--member .indepro-header__item--has-sub:hover .indepro-header__btn svg,
.indepro-header--member .indepro-header__item--has-sub:focus-within .indepro-header__btn svg {
    color: #ebbb81;
    transform: rotate(180deg);
}
.indepro-header--member .indepro-header__nav > a::after {
    display: none;
}
/* Container du dropdown : permet le hover/focus. */
.indepro-header--member .indepro-header__item--has-sub {
    position: relative;
}

/* User dropdown */
.indepro-header__user {
    position: relative;
}
.indepro-header__user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: rgba(7, 7, 11, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #f2f1ed;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.indepro-header__user-btn:hover {
    border-color: rgba(235, 187, 129, 0.4);
    background: rgba(235, 187, 129, 0.08);
}
.indepro-header__user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ebbb81, #c99a5b);
    color: #07070b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(235, 187, 129, 0.32);
    overflow: hidden;
}
.indepro-header__user-avatar--photo {
    background: #0a0a0a;
    box-shadow: 0 0 0 1px rgba(235, 187, 129, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.indepro-header__user-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.indepro-header__user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.indepro-header__user-btn svg {
    color: rgba(242, 241, 237, 0.5);
    transition: transform 0.3s ease;
}
.indepro-header__user.is-open .indepro-header__user-btn svg {
    transform: rotate(180deg);
}
.indepro-header__sub--user {
    right: 0;
    left: auto;
    min-width: 240px;
    transform: translateX(0) translateY(8px);
}
.indepro-header__user:hover .indepro-header__sub--user,
.indepro-header__user:focus-within .indepro-header__sub--user {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
    pointer-events: auto;
}
.indepro-header__user::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}

/* Hide CTA "Candidater" on member header (au cas ou) + reduce nav font sur tablet */
@media (max-width: 1024px) {
    .indepro-header--member .indepro-header__nav { display: none; }
    .indepro-header--member .indepro-header__user-name { display: none; }
}
@media (max-width: 768px) {
    .indepro-header--member .indepro-header__user { display: none; }
    .indepro-header--member .indepro-header__logo-badge { display: none; }
}



/* ===========================================================================
   Fix burger mobile (2026-04-26).
   PIEGE : le menu mobile est descendant du <header>. Si le header a un
   backdrop-filter (etat is-scrolled OU fix initial), il devient containing
   block pour ses descendants `position: fixed` -- le menu se contraint a la
   hauteur du header (69px) au lieu de 100vh. Solution : neutraliser
   backdrop-filter et filter sur le header quand le menu est ouvert.
   =========================================================================== */
body:has(.indepro-header__mobile.is-open) .indepro-header,
body:has(.indepro-header__mobile.is-open) .indepro-header.is-scrolled {
    background: rgba(7, 7, 11, 0.98) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    z-index: 110 !important;
}

/* Le burger reste sur le calque visible quand le menu est ouvert. */
body:has(.indepro-header__mobile.is-open) .indepro-header__burger {
    position: relative;
    z-index: 111;
}

/* === HEADER COURS / variantes specifiques pages de formation === */

/* CTA Espace membre : variante avec icone user a gauche, fond gold subtil. */
.indepro-header__cta--member {
    background: rgba(235, 187, 129, 0.08) !important;
    border: 1px solid rgba(235, 187, 129, 0.3) !important;
    color: #ebbb81 !important;
    padding: 9px 16px !important;
    font-weight: 600 !important;
}
.indepro-header__cta--member:hover {
    background: rgba(235, 187, 129, 0.15) !important;
    border-color: #ebbb81 !important;
    color: #ebbb81 !important;
    box-shadow: 0 6px 20px rgba(235, 187, 129, 0.18) !important;
}
.indepro-header__cta--member svg {
    color: #ebbb81;
    flex-shrink: 0;
}
.indepro-header__cta--member:hover svg {
    transform: none !important;
}

/* Dropdown Formation : layout icone gauche + body 2 lignes. */
.indepro-header__sub--cours {
    min-width: 360px;
    padding: 8px;
}
.indepro-header__sub--cours a {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px !important;
}
.indepro-header__sub-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(235, 187, 129, 0.1);
    border: 1px solid rgba(235, 187, 129, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ebbb81;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.indepro-header__sub--cours a:hover .indepro-header__sub-icon {
    background: rgba(235, 187, 129, 0.18);
    border-color: rgba(235, 187, 129, 0.5);
}
.indepro-header__sub-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

/* === Lien "Ma fiche freelance" dans dropdown user (status dot en ligne/hors ligne) === */
.indepro-header__sub-fiche .indepro-header__sub-t {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.indepro-header__sub-fiche-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5e5e5e;
    flex-shrink: 0;
}
.indepro-header__sub-fiche.is-on .indepro-header__sub-fiche-dot {
    background: #ebbb81;
    box-shadow: 0 0 0 3px rgba(235,187,129,0.18), 0 0 8px rgba(235,187,129,0.5);
    animation: indepro-fiche-pulse 2.4s ease-in-out infinite;
}
@keyframes indepro-fiche-pulse {
    0%,100% { opacity: 1; }
    50%     { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
    .indepro-header__sub-fiche.is-on .indepro-header__sub-fiche-dot { animation: none !important; }
}

/* === Dropdown user avec icônes à gauche === */
.indepro-header__sub--user a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
.indepro-header__sub-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(235, 187, 129, 0.10);
    border: 1px solid rgba(235, 187, 129, 0.22);
    color: #ebbb81;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.indepro-header__sub-icon svg {
    width: 16px;
    height: 16px;
}
.indepro-header__sub--user a:hover .indepro-header__sub-icon {
    background: rgba(235, 187, 129, 0.18);
    border-color: rgba(235, 187, 129, 0.4);
}
.indepro-header__sub-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
/* Bouton déconnexion : icône légèrement différenciée (rouge subtle dans la palette gold) */
.indepro-header__sub--user a.indepro-header__sub-logout .indepro-header__sub-icon {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(242, 241, 237, 0.7);
}
.indepro-header__sub--user a.indepro-header__sub-logout:hover .indepro-header__sub-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(235, 187, 129, 0.3);
    color: #ebbb81;
}
