/* Liquid glass renforcé (sombre) */
.glass-panel {
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 8px 32px rgba(0, 0, 0, .37)
}

.gauge-ring {
    transition: stroke-dasharray 1.2s ease-out
}

:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px
}

@media (hover:none),
(pointer:coarse) {
    .cursor {
        display: none
    }

    * {
        cursor: auto !important
    }
}

@media (prefers-reduced-motion:reduce) {
    .gauge-ring {
        transition: none
    }
}

/* Mode clair */
html:not(.dark) body {
    background: radial-gradient(circle at 10% 20%, #f1f5ff 0%, #d8e3fb 90%);
    color: #0f172a
}

html:not(.dark) .glass-panel {
    background: rgba(255, 255, 255, .55);
    border-color: rgba(255, 255, 255, .9);
    box-shadow: inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .4), 0 10px 36px rgba(40, 60, 120, .16)
}

html:not(.dark) .glass-panel:hover {
    border-color: #fff
}

html:not(.dark) .glass-button {
    background: rgba(255, 255, 255, .55);
    border-color: rgba(15, 23, 42, .12);
    color: #0f172a
}

html:not(.dark) .glass-button:hover {
    background: rgba(255, 255, 255, .85);
    border-color: rgba(15, 23, 42, .2)
}

html:not(.dark) .glass-button.active {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 99, 235, .35)
}

html:not(.dark) .text-white {
    color: #0f172a
}

html:not(.dark) .text-slate-200 {
    color: #1e293b
}

html:not(.dark) .text-slate-300 {
    color: #334155
}

html:not(.dark) .text-slate-400,
html:not(.dark) .text-slate-500 {
    color: #475569
}

html:not(.dark) .text-cyan-300,
html:not(.dark) .text-cyan-400 {
    color: #0e7490
}

html:not(.dark) .text-blue-300,
html:not(.dark) .text-blue-400 {
    color: #1d4ed8
}

html:not(.dark) .text-purple-300,
html:not(.dark) .text-purple-400 {
    color: #7e22ce
}

html:not(.dark) .text-emerald-400 {
    color: #047857
}

html:not(.dark) .text-yellow-400 {
    color: #a16207
}

html:not(.dark) .hover\:text-cyan-300:hover,
html:not(.dark) .hover\:text-cyan-200:hover {
    color: #155e75
}

html:not(.dark) .bg-white\/5 {
    background: rgba(15, 23, 42, .045)
}

html:not(.dark) .hover\:bg-white\/10:hover {
    background: rgba(15, 23, 42, .08)
}

html:not(.dark) .border-white\/10,
html:not(.dark) .border-white\/5 {
    border-color: rgba(15, 23, 42, .1)
}

html:not(.dark) .bg-slate-900 {
    background: #fff
}

html:not(.dark) .bg-slate-900\/40 {
    background: rgba(255, 255, 255, .5)
}

html:not(.dark) .border-slate-900 {
    border-color: #e6edfb
}

html:not(.dark) .text-slate-800 {
    color: rgba(15, 23, 42, .12)
}

html:not(.dark) ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .06)
}

html:not(.dark) ::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .25)
}

html:not(.dark) .cursor {
    border-color: rgba(15, 23, 42, .45);
    background: rgba(255, 255, 255, .3);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, .7), 0 0 25px rgba(37, 99, 235, .15)
}

html:not(.dark) .cursor::after {
    background: #0f172a;
    box-shadow: 0 0 8px rgba(15, 23, 42, .35)
}


/* Le texte long ne casse jamais la mise en page */
.glass-panel {
    overflow-wrap: anywhere
}
/* En-tête et colonne de gauche toujours visibles au défilement (écrans larges) */
@media (min-width:768px) {
    .sticky-header {
        position: sticky;
        top: 12px;
        z-index: 30
    }

    /* La colonne tient en entier dans l'écran : le script réduit son échelle (zoom) si l'écran est bas.
       Défilement interne = simple filet de sécurité sur un écran vraiment minuscule. */
    .sticky-side {
        position: sticky;
        top: calc(var(--hh, 150px) + 36px);
        align-self: start;
        max-height: calc(100vh - var(--hh, 150px) - 48px - var(--below, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        margin: 0 -8px;
        padding: 0 8px 12px
    }

    main.grid {
        min-height: calc(100vh - var(--hh, 150px) - 48px - var(--below, 0px))
    }

    /* Le pied de page remonte sous la colonne de droite : la colonne fixe de gauche peut descendre jusqu'en bas de l'écran */
    main.grid > .md\:col-span-2 {
        padding-bottom: var(--pad, 0px)
    }

    footer {
        margin-top: calc(1.5rem - var(--pad, 0px)) !important;
        position: relative;
        z-index: 1
    }

    /* Effet 3D : le contenu qui monte sous l'en-tête bascule vers l'arrière-plan */
    .fx3d {
        transform-origin: 50% 100%;
        will-change: transform, opacity
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx3d {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important
    }
}

html:not(.dark) .sticky-header {
    background: rgba(255, 255, 255, .68)
}

.dark .sticky-header {
    background: rgba(8, 12, 22, .66)
}

/* Écrans peu hauts : cartes de gauche plus compactes pour que tout reste visible */
@media (min-width:768px) and (max-height:880px) {
    #side-fit > * + * {
        margin-top: .75rem !important
    }

    #side-fit .glass-panel {
        padding: 1rem !important
    }

    #side-fit .glass-panel > a {
        padding: .5rem .75rem !important
    }

    #side-fit .space-y-3 > * + * {
        margin-top: .5rem !important
    }

    #side-fit h3 {
        margin-bottom: .5rem !important
    }

    #side-fit .mb-4,
    #side-fit .mt-4 {
        margin-top: .5rem !important;
        margin-bottom: .5rem !important
    }

    #side-fit .mt-4.pt-4 {
        padding-top: .5rem !important
    }
}

/* Onglets Aperçu et Parcours : la page entière défile normalement, sans en-tête ni colonne fixes */
@media (min-width:768px) {
    body.flow-page .sticky-header {
        position: relative;
        top: auto
    }

    body.flow-page .sticky-side {
        position: static;
        max-height: none;
        overflow: visible
    }

    body.flow-page main.grid {
        min-height: 0
    }

    body.flow-page footer {
        margin-top: 1.5rem !important
    }
}

/* Compétences et Stages & Projets : la colonne de gauche défile avec la page,
   puis reste collée en bas de l'écran une fois les Coordonnées atteintes */
@media (min-width:768px) {
    body.flow-page.side-stick .sticky-side {
        position: sticky;
        top: var(--side-top, 16px);
        align-self: start
    }
}

/* Colonne de gauche (Statut, Profil, Coordonnées) : texte plus grand */
#side-fit .text-xs {
    font-size: .84rem;
    line-height: 1.3rem
}

#side-fit .text-sm {
    font-size: .97rem;
    line-height: 1.6rem
}

#side-fit .text-lg {
    font-size: 1.25rem;
    line-height: 1.75rem
}

#side-fit .text-2xl {
    font-size: 1.75rem;
    line-height: 2.2rem
}

#side-fit i[data-lucide],
#side-fit svg.lucide {
    width: 1.1rem;
    height: 1.1rem
}

/* ---- Projets : cartes « spatiales » 3D (même style que le répertoire de sites) ---- */
.sc-persp {
    perspective: 1200px
}

.sc-card {
    --hair: rgba(255, 248, 240, .13);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    color: #faf7f2;
    transform-style: preserve-3d;
    background: linear-gradient(155deg, rgba(255, 248, 240, .075) 0%, rgba(18, 17, 28, .55) 100%), rgba(12, 11, 20, .55);
    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    border: 1px solid var(--hair);
    box-shadow: 0 20px 44px -15px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 248, 240, .22);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .3s ease;
    will-change: transform;
    overflow: hidden;
    animation: scReveal .6s cubic-bezier(.16, 1, .3, 1) backwards
}

.sc-card:hover {
    border-color: rgba(255, 248, 240, .28);
    box-shadow: 0 32px 64px -18px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 248, 240, .35)
}

/* Reflet lumineux chaud-froid qui suit le curseur */
.sc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity .3s ease;
    background: radial-gradient(480px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 224, 190, .12), rgba(129, 140, 248, .06) 40%, transparent 70%)
}

.sc-card:hover::after {
    opacity: 1
}

@keyframes scReveal {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

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

.sc-top {
    padding: .75rem .75rem 0;
    position: relative;
    z-index: 4
}

.sc-media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(12, 10, 9, .8)
}

/* Parallaxe interne sur la capture au survol */
.sc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.02);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s ease
}

.sc-img.on {
    opacity: 1;
    pointer-events: auto
}

/* Pas de capture : visuel de remplacement dans les mêmes tons */
.sc-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    background: radial-gradient(circle at 15% 15%, rgba(251, 146, 60, .3), transparent 55%), radial-gradient(circle at 85% 85%, rgba(129, 140, 248, .35), transparent 60%), linear-gradient(135deg, #17111d, #0d0c16 50%, #0a1024)
}

.sc-ph span {
    font: 500 .75rem 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .04em;
    color: rgba(250, 247, 242, .65)
}

.sc-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 4rem;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .3), transparent)
}

.sc-chip {
    font: 500 10px/1.5 'Plus Jakarta Sans', sans-serif;
    padding: 2px 8px;
    border-radius: .375rem;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #e7e5e4
}

.sc-tags {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2
}

.sc-tags .sc-chip:not(.sc-num) {
    font: 500 11px/1.5 'Plus Jakarta Sans', sans-serif;
    padding: 2px 10px
}

.sc-num {
    color: #fde68a
}

.sc-acts {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: flex;
    gap: 6px;
    z-index: 2
}

.sc-btn {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7e5e4;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .2);
    transition: background .2s, color .2s, opacity .2s;
    font-size: 18px;
    line-height: 1
}

.sc-btn:hover {
    background: rgba(0, 0, 0, .9);
    color: #fff
}

.sc-btn svg {
    width: 14px;
    height: 14px
}

.sc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2
}

.shot-prev {
    left: 10px
}

.shot-next {
    right: 10px
}

/* Sur ordinateur, flèches et boutons apparaissent au survol de la carte */
@media (min-width:640px) and (hover:hover) {

    .sc-acts,
    .sc-nav {
        opacity: 0;
        transition: opacity .2s
    }

    .sc-card:hover .sc-acts,
    .sc-card:hover .sc-nav,
    .sc-media:focus-within .sc-acts,
    .sc-media:focus-within .sc-nav {
        opacity: 1
    }
}

.sc-bar {
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .625rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.sc-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: .375rem;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .1)
}

.shot-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    transition: all .2s
}

.shot-dot:hover {
    background: rgba(255, 255, 255, .75)
}

.shot-dot.on {
    width: 16px;
    background: #fcd34d
}

.sc-bar .shot-count {
    border-color: rgba(255, 255, 255, .1);
    color: #d6d3d1
}

.sc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    position: relative;
    z-index: 4
}

.sc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem
}

.sc-host {
    font: 400 11px 'Plus Jakarta Sans', sans-serif;
    color: #a8a29e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sc-status {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 400 10px/1.5 'Plus Jakarta Sans', sans-serif;
    padding: 2px 8px;
    border-radius: .375rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #e7e5e4
}

.sc-status i {
    width: 6px;
    height: 6px;
    border-radius: 999px
}

.sc-title {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #f5f5f4
}

.sc-desc {
    margin-top: .5rem;
    font-size: .875rem;
    line-height: 1.6;
    color: rgba(214, 211, 209, .75)
}

.sc-techs {
    margin-top: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.sc-techs span {
    font: 400 10px/1.5 'Plus Jakarta Sans', sans-serif;
    padding: 2px 8px;
    border-radius: .375rem;
    background: rgba(255, 248, 240, .04);
    border: 1px solid var(--hair);
    color: rgba(250, 247, 242, .66)
}

.sc-foot {
    margin-top: 1.25rem;
    padding-top: .875rem;
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.sc-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1rem;
    border-radius: .75rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .025em;
    color: #fff;
    background: linear-gradient(135deg, rgba(251, 146, 60, .24) 0%, rgba(129, 140, 248, .24) 100%);
    border: 1px solid rgba(255, 248, 240, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: all .25s cubic-bezier(.22, 1, .36, 1)
}

.sc-cta:hover {
    background: linear-gradient(135deg, rgba(251, 146, 60, .38) 0%, rgba(129, 140, 248, .38) 100%);
    border-color: rgba(255, 248, 240, .5);
    transform: translateY(-1px)
}

.sc-cta svg {
    width: 14px;
    height: 14px;
    transition: transform .2s
}

.sc-cta:hover svg {
    transform: translate(2px, -2px)
}

.sc-btn:focus-visible,
.shot-dot:focus-visible,
.sc-cta:focus-visible,
.lb-th:focus-visible,
.lb-x:focus-visible,
.lb-nav:focus-visible {
    outline: 2px solid #fcd34d;
    outline-offset: 2px;
    opacity: 1
}

/* Visionneuse plein écran */
.lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .9);
    backdrop-filter: blur(24px)
}

@media (min-width:640px) {
    .lb {
        padding: 2rem
    }
}

.lb[hidden] {
    display: none
}

html.lb-open {
    overflow: hidden
}

.lb-in {
    width: 100%;
    max-width: 64rem;
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.lb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 .25rem
}

.lb-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff
}

.lb-meta {
    font: 400 .75rem 'Plus Jakarta Sans', sans-serif;
    color: #a8a29e
}

.lb-x,
.lb-nav {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 248, 240, .04);
    border: 1px solid rgba(255, 248, 240, .13);
    transition: all .22s ease
}

.lb-x:hover,
.lb-nav:hover {
    background: rgba(255, 248, 240, .1);
    border-color: rgba(255, 248, 240, .28)
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .6);
    font-size: 22px;
    line-height: 1
}

.lb-prev {
    left: 1rem
}

.lb-next {
    right: 1rem
}

.lb-nav[hidden] {
    display: none
}

.lb-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    background: #0c0a09
}

.lb-img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.lb-strip {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .25rem 0
}

.lb-th {
    width: 64px;
    height: 40px;
    flex: none;
    border-radius: .5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    opacity: .55;
    transition: all .2s
}

.lb-th:hover {
    opacity: 1
}

.lb-th.on {
    opacity: 1;
    border-color: #fcd34d;
    transform: scale(1.05)
}

.lb-th img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

@media (prefers-reduced-motion: reduce) {

    .sc-card,
    .sc-img {
        animation: none !important;
        transition: opacity .2s !important;
        transform: none !important
    }
}

/* ---- Veille technologique ---- */
.sc-desc.full {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    white-space: pre-line
}

.sc-pts {
    margin-top: .75rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px
}

.sc-pts li {
    position: relative;
    padding-left: 1.1rem;
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(250, 247, 242, .8)
}

.sc-pts li::before {
    content: "";
    position: absolute;
    left: .1rem;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fcd34d
}

.sc-src {
    margin-top: .75rem;
    font-size: .78rem;
    color: #a8a29e
}

.veille-pill {
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: inherit;
    cursor: pointer;
    transition: background .2s, border-color .2s
}

.veille-pill:hover {
    background: rgba(255, 255, 255, .12)
}

.veille-pill.on {
    border-color: #22d3ee;
    color: #22d3ee;
    background: rgba(34, 211, 238, .12)
}

html:not(.dark) .veille-pill {
    border-color: rgba(15, 23, 42, .18);
    background: rgba(255, 255, 255, .6)
}

html:not(.dark) .veille-pill.on {
    border-color: #0e7490;
    color: #0e7490
}

/* ---- Cartes de projets et de veille en mode clair ---- */
html:not(.dark) .sc-card {
    --hair: rgba(15, 23, 42, .12);
    color: #0f172a;
    background: linear-gradient(155deg, rgba(255, 255, 255, .95) 0%, rgba(241, 245, 249, .75) 100%), rgba(255, 255, 255, .7);
    border-color: rgba(15, 23, 42, .12);
    box-shadow: 0 20px 40px -22px rgba(15, 23, 42, .35), inset 0 1px 0 rgba(255, 255, 255, .9)
}

html:not(.dark) .sc-card:hover {
    border-color: rgba(8, 145, 178, .4);
    box-shadow: 0 30px 56px -24px rgba(15, 23, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .95)
}

html:not(.dark) .sc-card::after {
    background: radial-gradient(480px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(34, 211, 238, .16), rgba(129, 140, 248, .08) 40%, transparent 70%)
}

html:not(.dark) .sc-media {
    border-color: rgba(15, 23, 42, .12)
}

html:not(.dark) .sc-ph {
    background: radial-gradient(circle at 15% 15%, rgba(251, 146, 60, .28), transparent 55%), radial-gradient(circle at 85% 85%, rgba(129, 140, 248, .3), transparent 60%), linear-gradient(135deg, #f8fafc, #e8eefb)
}

html:not(.dark) .sc-ph span {
    color: #475569
}

html:not(.dark) .sc-title {
    color: #0f172a
}

html:not(.dark) .sc-desc {
    color: #475569
}

html:not(.dark) .sc-host,
html:not(.dark) .sc-src {
    color: #64748b
}

html:not(.dark) .sc-status {
    background: rgba(15, 23, 42, .05);
    border-color: rgba(15, 23, 42, .12);
    color: #334155
}

html:not(.dark) .sc-techs span {
    background: rgba(15, 23, 42, .04);
    color: #475569
}

html:not(.dark) .sc-pts li {
    color: #334155
}

html:not(.dark) .sc-pts li::before {
    background: #0e7490
}

html:not(.dark) .sc-foot {
    border-top-color: rgba(15, 23, 42, .1)
}

html:not(.dark) .sc-cta {
    color: #0f172a;
    background: linear-gradient(135deg, rgba(251, 146, 60, .18) 0%, rgba(99, 102, 241, .18) 100%);
    border-color: rgba(15, 23, 42, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85)
}

html:not(.dark) .sc-cta:hover {
    background: linear-gradient(135deg, rgba(251, 146, 60, .3) 0%, rgba(99, 102, 241, .3) 100%);
    border-color: rgba(15, 23, 42, .32)
}

/* Tous les onglets commencent au même niveau que « Statut actuel » (les onglets 2 à 5 avaient 24 px de marge en trop) */
main.grid > .md\:col-span-2 > .tab-content {
    margin-top: 0 !important
}

/* Logo de l'établissement (Diplômes) : petit et discret, à côté du nom */
.edu-inst {
    display: flex;
    align-items: center;
    gap: .5rem
}

.edu-logo {
    flex: none;
    height: 22px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    padding: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .15);
    opacity: .92
}

html:not(.dark) .edu-logo {
    border-color: rgba(15, 23, 42, .12);
    background: #fff
}

/* Nom de l'établissement ou de l'entreprise cliquable (Parcours) */
.edu-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: inherit;
    text-decoration: none;
    transition: color .2s
}

.edu-link:hover {
    color: #67e8f9;
    text-decoration: underline;
    text-underline-offset: 3px
}

.edu-link svg {
    opacity: .55;
    flex: none
}

html:not(.dark) .edu-link:hover {
    color: #0e7490
}

/* Petit encadré « Alternance » dans les formations */
.alt-box {
    margin-top: .65rem !important;
    max-width: 34rem;
    padding: .6rem .8rem;
    border-radius: .9rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04)
}

.alt-head {
    display: flex;
    align-items: center;
    gap: .75rem
}

.alt-logo {
    flex: none;
    height: 30px;
    width: auto;
    max-width: 84px;
    object-fit: contain;
    padding: 3px 6px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .92)
}

.alt-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a78bfa
}

.alt-name {
    font-size: .9rem;
    font-weight: 600;
    color: #f1f5f9
}

.alt-meta {
    font-size: .78rem;
    color: #94a3b8
}

.alt-text {
    margin-top: .4rem;
    font-size: .8rem;
    line-height: 1.5;
    color: #94a3b8;
    white-space: pre-line
}

html:not(.dark) .alt-box {
    border-color: rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .6)
}

html:not(.dark) .alt-logo {
    border: 1px solid rgba(15, 23, 42, .1);
    background: #fff
}

html:not(.dark) .alt-label {
    color: #6d28d9
}

html:not(.dark) .alt-name {
    color: #0f172a
}

html:not(.dark) .alt-meta,
html:not(.dark) .alt-text {
    color: #475569
}

/* Logos cliquables (Parcours) : un clic les agrandit */
.logo-zoom {
    display: inline-flex;
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 7px;
    cursor: zoom-in;
    transition: transform .2s
}

.logo-zoom:hover {
    transform: scale(1.1)
}

.logo-zoom:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px
}

/* Visionneuse en mode logo : fond clair, logo bien visible */
.lb.lb-logo .lb-stage {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center
}

.lb.lb-logo .lb-img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    min-height: 55%;
    object-fit: contain
}

/* La ville (en haut) ouvre Google Maps */
.loc-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s
}

.loc-link[href]:hover {
    color: #67e8f9;
    text-decoration: underline;
    text-underline-offset: 3px
}

html:not(.dark) .loc-link[href]:hover {
    color: #0e7490
}
