/* Espace apprenant CFAV — Mon apprentissage (finitions) */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

body.page-learner-udemy {
    --learn-ink: #0c2d4a;
    --learn-blue: #1a4d7a;
    --learn-blue-soft: #e8f1f8;
    --learn-gold: #c9a227;
    --learn-gold-soft: #f7f0dc;
    --learn-muted: #5b6b7c;
    --learn-line: rgba(26, 77, 122, 0.1);
    --learn-surface: #f4f7fa;
    --learn-sidebar-w: 272px;
    --site-chrome-offset: 0px;
    background: var(--learn-surface);
    color: var(--learn-ink);
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

/* Menu principal du site masqué dans l'espace apprenant */
body.page-learner-udemy .site-chrome,
body.page-platform.page-learner-auth .site-chrome {
    display: none !important;
}

body.page-learner-udemy footer,
body.page-platform.page-learner-auth footer {
    display: none !important;
}

body.page-platform.page-learner-auth {
    --site-chrome-offset: 0px;
    padding-top: 0 !important;
}

body.page-learner-udemy .platform-main,
body.page-learner-udemy .page-content,
body.page-learner-udemy .learn-page-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none;
    height: 100vh;
    height: 100dvh;
}

.learn-shell {
    display: grid;
    grid-template-columns: var(--learn-sidebar-w) minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    max-width: none;
    margin: 0;
    background: var(--learn-surface);
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.learn-sidebar {
    --side-ink: #f4f7fb;
    --side-muted: rgba(232, 241, 248, 0.62);
    --side-line: rgba(255, 255, 255, 0.1);
    --side-hover: rgba(255, 255, 255, 0.08);
    --side-active: rgba(212, 175, 55, 0.18);
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.18), transparent 42%),
        linear-gradient(175deg, #0d3558 0%, #0a2a46 48%, #082238 100%);
    color: var(--side-ink);
    padding: 1.2rem 0.95rem 1.05rem;
    padding-top: max(1.2rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1.05rem, env(safe-area-inset-bottom, 0px));
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 30;
    border-right: 1px solid rgba(8, 34, 56, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 8px 0 28px rgba(8, 34, 56, 0.18);
}

.learn-sidebar-top {
    padding: 0.1rem 0.4rem 0.95rem;
    border-bottom: 1px solid var(--side-line);
    margin: 0;
}

.learn-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1.2rem;
}

.learn-brand-mark img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 11px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    background: #fff;
}

.learn-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    background: var(--learn-surface);
    padding: 0;
}

.learn-hero {
    flex: 0 0 auto;
    position: relative;
    z-index: 20;
    overflow: hidden;
    border-radius: 0;
    padding: 1rem 1.5rem;
    margin: 0;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(15, 58, 95, 0.98) 0%, rgba(26, 77, 122, 0.96) 55%, rgba(45, 90, 71, 0.95) 100%),
        radial-gradient(circle at 90% 20%, rgba(212, 175, 55, 0.35), transparent 40%);
    box-shadow: 0 8px 24px rgba(12, 45, 74, 0.18);
}

.learn-main-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.15rem 1.5rem 2rem;
    -webkit-overflow-scrolling: touch;
}

@keyframes learnFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes learnCardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.learn-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0.1rem;
    padding: 0.85rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.learn-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 0.84rem;
    color: #0c2d4a;
    background: linear-gradient(145deg, #f3df9a, #d4af37);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.learn-sidebar-user {
    min-width: 0;
}

.learn-sidebar-brand strong,
.learn-sidebar-user strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learn-sidebar-brand span,
.learn-sidebar-user span {
    display: block;
    font-size: 0.72rem;
    color: var(--side-muted);
    margin-top: 0.18rem;
}

.learn-side-nav {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1;
    min-height: 0;
    padding: 0.2rem 0 0;
    margin: 0;
}

.learn-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.learn-nav-label {
    margin: 0 0.7rem 0.45rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 241, 248, 0.45);
}

.learn-side-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.7rem;
    border-radius: 12px;
    color: rgba(244, 247, 251, 0.82);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.25;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.learn-nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #c9a227;
    color: #0c2d4a;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25rem;
    text-align: center;
}

.learn-nav-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(244, 247, 251, 0.78);
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.learn-nav-ico svg {
    width: 16px;
    height: 16px;
    display: block;
}

.learn-side-nav a:hover {
    background: var(--side-hover);
    color: #fff;
    transform: translateX(2px);
    box-shadow: none;
}

.learn-side-nav a:hover .learn-nav-ico {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.learn-side-nav a.is-active {
    background: var(--side-active);
    color: #fff;
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.08);
    font-weight: 600;
}

.learn-side-nav a.is-active .learn-nav-ico {
    background: linear-gradient(145deg, #f0d78c, #d4af37);
    color: #0c2d4a;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.learn-nav-spacer {
    flex: 1 1 auto;
    min-height: 0.75rem;
}

.learn-nav-foot {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0 0.1rem;
    margin-top: 0.2rem;
    border-top: 1px solid var(--side-line);
}

.learn-side-nav a.learn-nav-logout {
    color: #f0b4b0;
}

.learn-side-nav a.learn-nav-logout .learn-nav-ico {
    background: rgba(180, 70, 70, 0.18);
    color: #f0b4b0;
}

.learn-side-nav a.learn-nav-logout:hover {
    background: rgba(180, 70, 70, 0.16);
    color: #ffd4d1;
}

.learn-side-nav a.learn-nav-logout:hover .learn-nav-ico {
    background: rgba(180, 70, 70, 0.28);
    color: #ffd4d1;
}

.learn-side-nav a::before,
.learn-side-nav a::after,
.learn-sidebar a::before,
.learn-sidebar a::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.learn-sidebar .logo,
.learn-sidebar .nav-menu {
    all: unset;
}
.learn-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.learn-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.learn-topbar-copy {
    min-width: 0;
    flex: 1 1 240px;
}

.learn-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 223, 128, 0.95);
}

.learn-topbar h1 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.learn-topbar p,
.learn-lede {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    max-width: 36rem;
    line-height: 1.45;
}

.learn-search {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    flex: 1 1 240px;
    max-width: 380px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.learn-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.72rem 1.05rem;
    font: inherit;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(6px);
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: none;
    max-width: none;
}

.learn-search input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.learn-search input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

.learn-search button,
.learn-search .learn-search-btn {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.72rem 1.15rem !important;
    min-height: 44px;
    background: linear-gradient(135deg, #e6c86a, #d4af37) !important;
    color: #0c2d4a !important;
    font: inherit !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, filter 0.15s ease;
    max-width: none;
    overflow: visible;
}

.learn-search button svg,
.learn-search .learn-search-btn svg {
    display: block;
    flex-shrink: 0;
}

.learn-search button:hover,
.learn-search .learn-search-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #0c2d4a !important;
}

.learn-search button:focus-visible,
.learn-search .learn-search-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.learn-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    margin: 0.35rem 0 1.5rem;
    animation: learnFadeIn 0.45s ease both;
}

.learn-stat {
    background: #fff;
    border: 1px solid var(--learn-line);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.learn-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--learn-blue), var(--learn-gold));
}

.learn-stat--progress::before {
    background: linear-gradient(180deg, #1a4d7a, #2e7d9e);
}

.learn-stat--done::before {
    background: linear-gradient(180deg, #2d5a47, #d4af37);
}

.learn-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 77, 122, 0.18);
    box-shadow: 0 10px 24px rgba(12, 45, 74, 0.08);
}

.learn-stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--learn-blue-soft);
    color: var(--learn-blue);
}

.learn-stat--done .learn-stat-ico {
    background: #e8f3ee;
    color: #2d5a47;
}

.learn-stat--progress .learn-stat-ico {
    background: #e8f1f8;
    color: #1a4d7a;
}

.learn-stat-ico svg {
    width: 18px;
    height: 18px;
    display: block;
}

.learn-stat-text {
    min-width: 0;
}

.learn-stat strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.65rem;
    color: var(--learn-blue);
    line-height: 1.1;
}

.learn-stat span {
    font-size: 0.8rem;
    color: var(--learn-muted);
    font-weight: 500;
}

.learn-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.15rem;
}

.learn-section-title {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    color: var(--learn-ink);
    letter-spacing: -0.02em;
}

.learn-section-sub {
    margin: 0.3rem 0 0;
    font-size: 0.88rem;
    color: var(--learn-muted);
}

.learn-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0.3rem;
    background: rgba(26, 77, 122, 0.06);
    border-radius: 14px;
    width: fit-content;
    max-width: 100%;
}

.learn-tab {
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    margin: 0;
    font: inherit;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--learn-muted);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.learn-tab em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(26, 77, 122, 0.1);
    color: var(--learn-blue);
}

.learn-tab:hover {
    color: var(--learn-blue);
}

.learn-tab.is-active {
    color: var(--learn-blue);
    background: #fff;
    box-shadow: 0 4px 14px rgba(12, 45, 74, 0.08);
}

.learn-tab.is-active em {
    background: linear-gradient(135deg, #ebe0a8, #d4af37);
    color: #0c2d4a;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.35rem;
}

.learn-card {
    background: #fff;
    border: 1px solid var(--learn-line);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: learnCardIn 0.5s ease both;
}

.learn-card:nth-child(2) { animation-delay: 0.06s; }
.learn-card:nth-child(3) { animation-delay: 0.12s; }
.learn-card:nth-child(4) { animation-delay: 0.18s; }
.learn-card:nth-child(5) { animation-delay: 0.24s; }
.learn-card:nth-child(6) { animation-delay: 0.3s; }

.learn-card:hover {
    transform: translateY(-6px);
    border-color: rgba(26, 77, 122, 0.22);
    box-shadow: 0 18px 40px rgba(12, 45, 74, 0.14);
}

.learn-card-cover {
    height: 148px;
    position: relative;
    padding: 1.05rem;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.learn-card-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 35%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.04) 10px,
            rgba(255, 255, 255, 0.04) 11px
        );
    pointer-events: none;
}

.learn-card-cover-top,
.learn-card-cover-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.learn-card-cover-foot {
    align-items: flex-end;
}

.learn-card-category {
    position: relative;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.learn-card-status {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.learn-card-status.is-done {
    background: rgba(45, 90, 71, 0.85);
}

.learn-card-status.is-progress {
    background: rgba(12, 45, 74, 0.55);
}

.learn-card-status.is-new {
    background: rgba(212, 175, 55, 0.9);
    color: #0c2d4a;
}

.learn-card-status.is-archived {
    background: rgba(90, 90, 90, 0.7);
}

.learn-card-mark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.92;
    letter-spacing: 0.04em;
}

.learn-card-percent {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.learn-card-body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.learn-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--learn-ink);
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.learn-card-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--learn-muted);
}

.learn-card-meta span {
    background: var(--learn-blue-soft);
    color: var(--learn-blue);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
}

.learn-progress-track {
    height: 7px;
    background: #e8eef4;
    border-radius: 999px;
    overflow: hidden;
}

.learn-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a4d7a 0%, #2e7d9e 55%, #d4af37 100%);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.learn-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: var(--learn-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

.learn-card-formateur-com {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: #2d5a47;
    line-height: 1.4;
}

.learn-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.45rem;
}

.learn-card-cta {
    padding: 0.5rem 1rem !important;
    font-size: 0.84rem !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 14px rgba(26, 77, 122, 0.2);
}

.learn-card-ref {
    font-size: 0.68rem;
    color: #94a3b8;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learn-modalite-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8eef4;
}

.learn-modalite-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.learn-modalite-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.learn-modalite-select {
    flex: 1 1 110px;
    min-width: 0;
    padding: 0.4rem 0.55rem;
    border: 1px solid #d5e0ea;
    border-radius: 10px;
    font: inherit;
    font-size: 0.82rem;
    background: #fff;
    color: #0f172a;
}

.learn-modalite-field {
    flex: 1 1 120px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.learn-modalite-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.learn-modalite-hint {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.learn-modalite-form--locked {
    opacity: 0.9;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    border-top: 0;
    margin-top: 0.75rem;
    border: 1px solid #e8eef4;
}

.learn-modalite-form--locked .learn-modalite-hint {
    margin: 0.25rem 0 0;
}

.learn-modalite-form .learn-card-cta {
    flex: 0 0 auto;
    align-self: flex-end;
    box-shadow: none !important;
}
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.learn-formateur-panel {
    background: #fff;
    border: 1px solid var(--learn-line);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(12, 45, 74, 0.05);
}

.learn-formateur-panel h2 {
    margin: 0 0 0.85rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    color: var(--learn-ink);
}

.learn-formateur-note {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #f7faf8;
    border-left: 3px solid #2d5a47;
    border-radius: 0 10px 10px 0;
}

.learn-formateur-note:last-child {
    margin-bottom: 0;
}

.learn-formateur-note p {
    margin: 0;
    color: #243447;
    line-height: 1.55;
}

.learn-formateur-note footer {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--learn-muted);
}

.learn-certs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.learn-certs-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--learn-line);
}

.learn-certs-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.learn-certs-list li:first-child {
    padding-top: 0;
}

.learn-certs-list strong {
    display: block;
    color: var(--learn-ink);
}

.learn-certs-list span {
    font-size: 0.78rem;
    color: var(--learn-muted);
}

.learn-empty {
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 241, 248, 0.9), transparent 55%),
        linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid var(--learn-line);
    border-radius: 20px;
    padding: 3rem 1.75rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(12, 45, 74, 0.05);
    animation: learnFadeIn 0.45s ease both;
}

.learn-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.1rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--learn-blue-soft), var(--learn-gold-soft));
    color: var(--learn-blue);
    box-shadow: 0 8px 20px rgba(26, 77, 122, 0.1);
}

.learn-empty-icon svg {
    display: block;
}

.learn-empty h2 {
    margin: 0 0 0.5rem;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--learn-blue);
    font-size: 1.45rem;
}

.learn-empty p {
    margin: 0 auto 1.45rem;
    color: var(--learn-muted);
    max-width: 28rem;
    line-height: 1.55;
}

.learn-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.learn-empty .btn {
    border-radius: 999px !important;
}

.learn-default-video {
    margin: 0.85rem 0 1.15rem;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--learn-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(12, 45, 74, 0.07);
}

.learn-default-video-head {
    padding: 0.85rem 1rem 0.65rem;
}

.learn-default-video-badge {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: var(--learn-gold-soft);
    color: #7c5a08;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.learn-default-video-head h2 {
    margin: 0 0 0.35rem;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    color: var(--learn-ink);
}

.learn-default-video-head p {
    margin: 0;
    color: var(--learn-muted);
    font-size: 0.9rem;
}

.learn-default-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0c2d4a;
}

.learn-default-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.learn-profile-panel {
    background: #fff;
    border: 1px solid var(--learn-line);
    border-radius: 16px;
    padding: 1.35rem 1.4rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 8px 24px rgba(12, 45, 74, 0.05);
}

.learn-profile-panel h2 {
    font-family: 'Fraunces', Georgia, serif;
}

.learn-hero-link {
    position: relative;
    z-index: 1;
    align-self: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.learn-hero-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.learn-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 1.25rem;
    align-items: start;
    animation: learnFadeIn 0.45s ease both;
}

.learn-profile-card {
    background: #fff;
    border: 1px solid var(--learn-line);
    border-radius: 18px;
    padding: 1.4rem 1.45rem;
    box-shadow: 0 10px 28px rgba(12, 45, 74, 0.06);
}

.learn-profile-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--learn-line);
}

.learn-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0c2d4a;
    background: linear-gradient(145deg, #f3df9a, #d4af37);
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.learn-profile-intro {
    min-width: 0;
}

.learn-profile-intro h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    color: var(--learn-ink);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}

.learn-profile-intro p {
    margin: 0.3rem 0 0;
    color: var(--learn-muted);
    font-size: 0.88rem;
}

.learn-profile-facts {
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.learn-profile-fact {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #e8eef4;
}

.learn-profile-fact dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a9aab;
}

.learn-profile-fact dd {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--learn-ink);
    word-break: break-word;
}

.learn-profile-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--learn-line);
}

.learn-profile-text-link {
    color: var(--learn-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.learn-profile-text-link:hover {
    text-decoration: underline;
}

.learn-profile-security-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.learn-profile-security-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--learn-blue-soft);
    color: var(--learn-blue);
}

.learn-profile-security-head h2 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    color: var(--learn-ink);
}

.learn-profile-security-head p {
    margin: 0.3rem 0 0;
    color: var(--learn-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.learn-profile-form .form-group {
    margin-bottom: 1rem;
}

.learn-profile-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--learn-ink);
}

.learn-profile-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5e0ea;
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    font: inherit;
    background: #fff;
    color: var(--learn-ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.learn-profile-form input[type="password"]:focus {
    outline: none;
    border-color: #1a4d7a;
    box-shadow: 0 0 0 3px rgba(26, 77, 122, 0.12);
}

.learn-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--learn-muted);
}

.learn-profile-form-actions {
    margin-top: 0.35rem;
}

.learn-profile-form-actions .btn {
    border-radius: 999px !important;
    padding: 0.7rem 1.25rem !important;
}

.learn-menu-toggle {
    display: none;
    margin: 0 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 0.45rem;
}

.learn-menu-toggle::before {
    content: '';
    width: 16px;
    height: 12px;
    background:
        linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
        linear-gradient(#fff, #fff) 0 5px / 100% 2px no-repeat,
        linear-gradient(#fff, #fff) 0 10px / 100% 2px no-repeat;
    flex-shrink: 0;
}

.learn-hero .learn-menu-toggle {
    position: relative;
    z-index: 2;
}

.learn-sidebar-backdrop {
    display: none;
}

/* Auth (hors dashboard) */
body.page-platform.page-learner-auth,
body.page-connexion.page-learner-auth {
    background:
        radial-gradient(circle at 12% 0%, rgba(232, 241, 248, 0.95), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(247, 240, 220, 0.7), transparent 36%),
        #f0f4f8;
}

body.page-platform:not(.page-learner-udemy) .learner-auth-panel,
body.page-connexion .learner-auth-panel {
    max-width: 34rem;
    margin: 0 auto 2rem;
}

body.page-platform .learner-login-box,
body.page-connexion .learner-login-box,
body.page-platform .learner-auth-card,
body.page-connexion .learner-auth-card {
    border-radius: 18px;
    border: 1px solid rgba(26, 77, 122, 0.1);
    box-shadow: 0 16px 40px rgba(12, 45, 74, 0.08);
}

/* —— Grands écrans —— */
@media (min-width: 1400px) {
    body.page-learner-udemy {
        --learn-sidebar-w: 292px;
    }

    .learn-main-inner {
        padding: 1.35rem 2rem 2.25rem;
        max-width: 1280px;
    }

    .learn-hero {
        padding: 1.15rem 2rem;
    }

    .learn-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    }
}

/* —— Laptop compact —— */
@media (max-width: 1100px) and (min-width: 901px) {
    body.page-learner-udemy {
        --learn-sidebar-w: 248px;
    }

    .learn-side-nav a {
        font-size: 0.86rem;
    }

    .learn-nav-ico {
        width: 30px;
        height: 30px;
    }

    .learn-main-inner {
        padding: 1rem 1.15rem 1.75rem;
    }
}

/* —— Tablette / mobile : menu tiroir —— */
@media (max-width: 900px) {
    body.page-learner-udemy {
        --learn-sidebar-w: 0px;
        overflow: hidden;
    }

    .learn-shell {
        grid-template-columns: 1fr;
    }

    .learn-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 300px);
        max-width: 100%;
        height: auto;
        max-height: none;
        z-index: 90;
        padding-top: max(1.05rem, env(safe-area-inset-top, 0px));
        padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
        box-shadow: 12px 0 40px rgba(12, 45, 74, 0.22);
    }

    .learn-sidebar.is-open {
        display: flex;
        flex-direction: column;
    }

    .learn-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 85;
        background: rgba(12, 45, 74, 0.42);
        backdrop-filter: blur(2px);
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .learn-sidebar-backdrop.is-visible {
        display: block;
    }

    .learn-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 44px;
    }

    .learn-hero {
        padding: 0.9rem max(1rem, env(safe-area-inset-right, 0px)) 1rem max(1rem, env(safe-area-inset-left, 0px));
    }

    .learn-main-inner {
        padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) 1.5rem max(1rem, env(safe-area-inset-left, 0px));
    }

    .learn-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .learn-search {
        max-width: none;
        width: 100%;
        flex: 1 1 auto;
    }

    .learn-search .learn-search-btn span {
        display: none;
    }

    .learn-search .learn-search-btn {
        padding: 0.72rem !important;
        width: 46px;
        min-width: 46px;
    }

    .learn-stats {
        grid-template-columns: 1fr;
    }

    .learn-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .learn-tabs {
        width: 100%;
    }

    .learn-profile-layout {
        grid-template-columns: 1fr;
    }

    .learn-hero--profile .learn-topbar {
        align-items: stretch;
    }

    .learn-hero-link {
        align-self: stretch;
        text-align: center;
    }

    .learn-card-meta {
        max-width: 100%;
    }
}

/* —— Petit téléphone —— */
@media (max-width: 560px) {
    .learn-topbar h1 {
        font-size: 1.35rem;
    }

    .learn-topbar p {
        font-size: 0.88rem;
    }

    .learn-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .learn-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.25rem;
    }

    .learn-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .learn-default-video-head h2 {
        font-size: 1.1rem;
    }

    .learn-profile-panel {
        padding: 1.1rem 1rem;
        border-radius: 14px;
    }

    .learn-sidebar {
        width: min(92vw, 320px);
    }
}

/* —— Réduction de hauteur (clavier / landscape mobile) —— */
@media (max-height: 520px) and (max-width: 900px) {
    .learn-sidebar-brand {
        padding: 0.55rem 0.7rem;
    }

    .learn-nav-group {
        padding: 0.2rem 0.15rem;
    }

    .learn-side-nav a {
        padding: 0.4rem 0.4rem;
    }

    .learn-nav-ico {
        width: 28px;
        height: 28px;
    }
}
