:root {
    --bg-body: #eef2f6;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --text-main: #1e293b;
    --text-muted: #475569;
    --accent: #2563eb;
    --accent-secondary: #10b981;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --border-color: #cbd5e1;
    --card-item-bg: #f8fafc;
}

[data-theme="dark"] {
    --bg-body: #090d16;
    --bg-card: #111827;
    --bg-sidebar: #070b14;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent: #3b82f6;
    --accent-secondary: #34d399;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --border-color: #1f2937;
    --card-item-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    z-index: 999;
    transition: width 0.1s ease-out;
}

.top-bar {
    width: 100%;
    min-height: 52px;
    padding: 0.5rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-group, .action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.42rem 0.95rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-download {
    background: var(--accent-secondary);
    color: #fff;
    border-color: var(--accent-secondary);
}

.cv-wrapper {
    width: 100%;
    min-height: calc(100vh - 52px);
    background: var(--bg-card);
    display: grid;
    grid-template-columns: 350px 1fr;
}

/* ================= COLONNE GAUCHE ================= */
.sidebar {
    background: var(--bg-sidebar);
    color: #f8fafc;
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.profile-box {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.65rem auto;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.spin-ring {
    transform-origin: 60px 60px;
    animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.profile-box h1 {
    font-size: 1.45rem;
    font-weight: 800;
}

.profile-box .subtitle {
    color: #93c5fd;
    font-size: 0.86rem;
    font-weight: 600;
    margin-top: 0.2rem;
    min-height: 2.4em;
}

.cursor {
    color: var(--accent-secondary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.badges-perso {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.badge-info {
    background: rgba(59, 130, 246, 0.22);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #e0f2fe;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.contact-list {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.contact-link {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.86rem;
}

.phone-highlight {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #34d399 !important;
    font-weight: 700;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
}

.sidebar-section h2 {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #93c5fd;
    margin-bottom: 0.55rem;
}

.company-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
}

.logo-sos { background: #1d4ed8; color: #fff; }
.logo-saas { background: #0f766e; color: #fff; }
.logo-usw { background: #ea580c; color: #fff; }
.logo-envie { background: #16a34a; color: #fff; }
.logo-uber { background: #000; color: #06c167; }
.logo-deliveroo { background: #00ccbc; color: #fff; }
.logo-laposte { background: #facc15; color: #1e3a8a; }
.logo-lidl { background: #0050aa; color: #fff000; }
.logo-demeco { background: #e11d48; color: #fff; }
.logo-oc { background: #7451eb; color: #fff; }
.logo-efma { background: #be123c; color: #fff; }
.portfolio-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.portfolio-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(147, 197, 253, 0.25);
    padding: 0.48rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    color: #f8fafc;
    font-size: 0.84rem;
    transition: transform 0.2s ease;
}

.portfolio-card:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

.port-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.portfolio-card > span {
    font-size: 0.76rem;
    color: var(--accent-secondary);
    font-weight: 600;
}

.lang-item {
    background: rgba(255,255,255,0.06);
    padding: 0.48rem 0.7rem;
    border-radius: 8px;
    margin-bottom: 0.45rem;
}

.lang-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
}

.lang-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.flag-img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
}

.lang-level {
    font-size: 0.78rem;
    color: #cbd5e1;
}

.lang-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

.lang-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 1.2s ease;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.tech-badge {
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 0.48rem 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
}

.tech-badge svg {
    width: 24px;
    height: 24px;
}

.diploma-card {
    background: rgba(255,255,255,0.06);
    border-left: 3px solid var(--accent-secondary);
    padding: 0.45rem 0.7rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
}

.diploma-year {
    font-weight: 700;
    color: var(--accent-secondary);
}

.hobbies-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hobby-pill, .soft-pill {
    background: rgba(255,255,255,0.08);
    padding: 0.32rem 0.72rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.soft-pill {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
}

.ref-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(16, 185, 129, 0.22));
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.ref-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 0.3rem;
    color: #93c5fd;
    font-weight: 700;
}

/* ================= COLONNE DROITE ================= */
.main-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.cv-hero-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    padding: 1rem 1.3rem;
}

.hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.hero-name {
    font-size: 1.65rem;
    font-weight: 800;
}

.hero-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}

.hero-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.32rem 0.75rem;
    border-radius: 50px;
    font-size: 0.84rem;
    text-decoration: none;
}

.hero-phone {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.hero-intro-box p {
    font-size: 0.92rem;
    line-height: 1.55;
}

.section-heading {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.skill-category {
    background: var(--card-item-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 11px;
    padding: 0.85rem 1rem;
    transition: transform 0.2s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
}

.skill-category.web-cat {
    border-left-color: var(--accent-secondary);
}

.skill-category h3 {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--accent);
}

.skill-category.web-cat h3 {
    color: var(--accent-secondary);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 0.86rem;
    line-height: 1.45;
    padding: 0.16rem 0 0.16rem 1rem;
    position: relative;
}

.skill-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.skill-category.web-cat .skill-list li::before {
    color: var(--accent-secondary);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.timeline-card {
    background: var(--card-item-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-card:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.job-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.badge-date {
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.18rem 0.55rem;
    border-radius: 14px;
    white-space: nowrap;
}

.timeline-title {
    font-weight: 700;
    font-size: 0.92rem;
}

.timeline-place {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.inline-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .cv-wrapper { grid-template-columns: 1fr; }
    .skills-grid, .timeline-grid { grid-template-columns: 1fr; }
}

@media print {
    .top-bar, .progress-bar { display: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
}


/* ================= PERSONNALISATION & ANIMATIONS ================= */
:root { --font-display: 'Sora', 'Inter', sans-serif; }
h1, h2, h3, .hero-name, .section-heading { font-family: var(--font-display); letter-spacing: -0.01em; }
html { scroll-behavior: smooth; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-secondary); outline-offset: 2px; }

/* Sidebar : motif discret + halo */
.sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(37,99,235,.35), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(16,185,129,.2), transparent 40%),
        var(--bg-sidebar);
}
.avatar { box-shadow: 0 0 0 6px rgba(59,130,246,.12), 0 10px 30px rgba(16,185,129,.25); }

/* Titres de section façon route */
.section-heading::after {
    height: 4px; border-radius: 4px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 26px);
    opacity: .55;
}

/* Bannière illustrée */
.hero-art { margin-top: 1rem; border-radius: 12px; overflow: hidden; height: 150px; box-shadow: 0 8px 24px var(--accent-glow); }
.hero-art svg { width: 100%; height: 100%; display: block; }
.truck { animation: drive 9s linear infinite; }
@keyframes drive { from { transform: translateX(-230px); } to { transform: translateX(680px); } }
.road-dash { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.cl { transform-box: fill-box; transform-origin: left; animation: typeLine 4s ease-in-out infinite; }
.l2 { animation-delay: .4s; } .l3 { animation-delay: .8s; } .l4 { animation-delay: 1.2s; }
@keyframes typeLine { 0%,10% { transform: scaleX(0); } 40%,85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.stars circle { animation: twinkle 3s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: 1.4s; }
@keyframes twinkle { 50% { opacity: .2; } }

/* Chiffres clés */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .9rem; }
.stat { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: .55rem .4rem; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); }
.stat span { font-size: .74rem; color: var(--text-muted); }

/* Timeline : trait + pastille sur les cartes */
.timeline-card { border-left: 4px solid var(--accent); position: relative; }
.timeline-card[data-category="web"] { border-left-color: var(--accent-secondary); }
.timeline-card:hover { box-shadow: 0 8px 22px var(--accent-glow); }
.skill-category:hover { box-shadow: 0 8px 22px var(--accent-glow); }
.company-logo { box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* Entrée de page : une séquence orchestrée */
.sidebar { animation: slideLeft .8s cubic-bezier(.2,.8,.2,1) both; }
.profile-box > * { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both; }
.profile-box > *:nth-child(1) { animation-delay: .25s; }
.profile-box > *:nth-child(2) { animation-delay: .35s; }
.profile-box > *:nth-child(3) { animation-delay: .45s; }
.profile-box > *:nth-child(4) { animation-delay: .55s; }
.profile-box > *:nth-child(5) { animation-delay: .65s; }
.cv-hero-header { animation: fadeUp .9s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-40px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* Apparition en cascade au défilement (cartes, listes) */
.pop:not(.visible) { opacity: 0; }
.pop.visible { animation: popIn .6s calc(var(--i, 0) * 70ms) cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.5rem; padding: 1.5rem; }
    .profile-box { grid-column: 1 / -1; }
    .contact-list { align-items: center; }
    .main-content { padding: 1.25rem; }
}
@media (max-width: 640px) {
    .top-bar { padding: .5rem .75rem; position: sticky; }
    .filter-group, .action-group { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
    .filter-group::-webkit-scrollbar, .action-group::-webkit-scrollbar { display: none; }
    .btn { white-space: nowrap; flex-shrink: 0; }
    #fullscreen-btn { display: none; }
    .sidebar { grid-template-columns: 1fr; }
    .hero-name { font-size: 1.35rem; }
    .hero-art { height: 110px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .timeline-top { flex-direction: column; align-items: flex-start; }
    .hero-pill { font-size: .78rem; }
    .main-content { padding: 1rem .85rem; }
}
@media (hover: none) { .btn:hover, .timeline-card:hover, .skill-category:hover, .portfolio-card:hover, .tech-badge:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .pop:not(.visible) { opacity: 1; }
}
@media print {
    .pop:not(.visible), .sidebar, .profile-box > *, .cv-hero-header { opacity: 1 !important; animation: none !important; }
}

/* Poids lourd : même vitesse que la voiture, décalé pour ne jamais se chevaucher */
.lorry { animation-delay: -4.5s; }

/* Développeur animé au clavier */
.dev-scene { margin-top: .8rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.dev-scene svg { display: block; width: 100%; height: auto; }
.arm { animation: typeArm .36s ease-in-out infinite alternate; transform-origin: 92px 92px; }
.arm-b { animation-delay: -.18s; animation-duration: .44s; }
@keyframes typeArm { from { transform: rotate(-3deg); } to { transform: rotate(2.5deg); } }
.dev-head { animation: nod 2.8s ease-in-out infinite; transform-origin: 84px 78px; }
@keyframes nod { 0%,100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }
.key { animation: keyHit .8s steps(1) infinite; }
@keyframes keyHit { 0% { fill: #38bdf8; } 30%,100% { fill: #94a3b8; } }
.caret { animation: blink .9s steps(1) infinite; }
.steam { animation: steam 2s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: .8; } 100% { opacity: 0; transform: translateY(-4px); } }

/* Personnages : marche, convoyage, distribution */
.dev-scene text { font-family: 'Inter', Arial, sans-serif; }
.leg { animation: legA .5s ease-in-out infinite alternate; }
.leg2 { animation-direction: alternate-reverse; }
.armw { animation: legA .5s ease-in-out infinite alternate-reverse; }
@keyframes legA { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }

/* Entrepôt : porte un colis, le pose sur la palette, repart */
.walk1 { animation: walk1 7s linear infinite; }
@keyframes walk1 { 0% { transform: translateX(0); } 46%,54% { transform: translateX(112px); } 100% { transform: translateX(0); } }
.walk1 .flip { animation: flipDir 7s steps(1) infinite; }
@keyframes flipDir { 0%,49% { transform: scaleX(1); } 50%,100% { transform: scaleX(-1); } }
.carry { animation: carryVis 7s steps(1) infinite; }
@keyframes carryVis { 0%,46% { opacity: 1; } 47%,100% { opacity: 0; } }
.newbox { animation: newbox 7s steps(1) infinite; }
@keyframes newbox { 0%,47% { opacity: 0; } 48%,96% { opacity: 1; } 97%,100% { opacity: 0; } }
.arm-carry { animation: armCarry 7s steps(1) infinite; }
@keyframes armCarry { 0%,46% { transform: rotate(-75deg); } 47%,100% { transform: rotate(8deg); } }

/* Convoyeur : décor qui défile, voiture qui roule */
.hills-far { animation: hills 8s linear infinite; --d: -160px; }
.hills-near { animation: hills 3s linear infinite; --d: -80px; }
@keyframes hills { to { transform: translateX(var(--d)); } }
.sign2 { animation: signMove 5s linear infinite; }
@keyframes signMove { from { transform: translateX(350px); } to { transform: translateX(-90px); } }
.bob { animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-1.5px); } }
.wheel { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Facteur : marche, dépose une lettre, le drapeau se lève */
.walk3 { animation: walk3 7s linear infinite; }
@keyframes walk3 {
    0% { transform: translateX(0); opacity: 1; } 48%,88% { transform: translateX(112px); opacity: 1; }
    96% { transform: translateX(112px); opacity: 0; } 96.1% { transform: translateX(0); opacity: 0; } 100% { transform: translateX(0); opacity: 1; }
}
.arm-give { animation: armGive 7s steps(1) infinite; }
@keyframes armGive { 0%,49% { transform: rotate(18deg); } 50%,70% { transform: rotate(-85deg); } 71%,100% { transform: rotate(10deg); } }
.letter { animation: letter 7s linear infinite; opacity: 0; }
@keyframes letter {
    0%,52% { opacity: 0; transform: translate(0,0); } 53% { opacity: 1; transform: translate(0,0); }
    62% { opacity: 1; transform: translate(14px,3px); } 64%,100% { opacity: 0; transform: translate(14px,3px); }
}
.flag { animation: flag 7s ease-in-out infinite; }
@keyframes flag { 0%,62% { transform: rotate(80deg); } 68%,90% { transform: rotate(0); } 97%,100% { transform: rotate(80deg); } }

/* Logos Codeforlife */
.logo-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px #22c55e55, 0 2px 8px rgba(34,197,94,.35); }
.portfolio-card.with-banner { flex-direction: column; align-items: stretch; gap: .45rem; }
.port-banner { width: 100%; height: 84px; object-fit: cover; border-radius: 6px; background: #000; }
.port-row { display: flex; justify-content: space-between; align-items: center; gap: .4rem; flex-wrap: wrap; }
.port-row > span { font-size: .76rem; color: var(--accent-secondary); font-weight: 600; }
.portfolio-card.with-banner:hover .port-banner { box-shadow: 0 0 18px rgba(34,197,94,.55); }

/* Export PDF : tout est visible, sans animation d'entrée */
.pdf-mode .pop, .pdf-mode .reveal, .pdf-mode .sidebar, .pdf-mode .profile-box > *, .pdf-mode .cv-hero-header, .pdf-mode .avatar {
    animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important;
}
.pdf-mode .cv-wrapper { min-height: 0; }
@media print { * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.pdf-mode .cv-wrapper { padding-bottom: 20px; overflow: visible; }
.pdf-mode .main-content, .pdf-mode .sidebar { overflow: visible; }

/* Pied de page */
.cv-footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 1.2rem 2rem;
    padding: 1.6rem 2rem 1rem;
    background: radial-gradient(circle at 0% 0%, rgba(37,99,235,.3), transparent 50%), var(--bg-sidebar);
    color: #e2e8f0;
    border-top: 4px solid var(--accent-secondary);
}
.foot-col { display: flex; flex-direction: column; gap: .3rem; font-size: .86rem; }
.foot-id strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.foot-id span { color: #cbd5e1; }
.foot-col h3 { font-size: .9rem; color: #93c5fd; margin-bottom: .2rem; }
.foot-col a { color: #f1f5f9; text-decoration: none; transition: color .2s ease, transform .2s ease; width: fit-content; }
.foot-col a:hover { color: var(--accent-secondary); transform: translateX(3px); }
.foot-bottom {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
    border-top: 1px solid rgba(255,255,255,.12); padding-top: .8rem; font-size: .78rem; color: #94a3b8;
}
.foot-top { color: var(--accent-secondary); text-decoration: none; font-weight: 700; }
@media (max-width: 960px) { .cv-footer { grid-template-columns: 1fr 1fr; } .foot-id { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cv-footer { grid-template-columns: 1fr; padding: 1.3rem 1rem .9rem; } .foot-bottom { flex-direction: column; align-items: flex-start; } }
.pdf-mode .cv-wrapper { padding-bottom: 0; }

/* Permis & CACES */
.permit-card { background: rgba(255,255,255,.06); border-left: 3px solid var(--accent-secondary); border-radius: 0 10px 10px 0; padding: .55rem .7rem; margin-bottom: .5rem; }
.permit-head { display: flex; align-items: center; gap: .6rem; }
.permit-ico { font-size: 1.3rem; }
.permit-head strong { display: block; font-size: .9rem; }
.permit-head small { color: #cbd5e1; font-size: .74rem; line-height: 1.25; display: block; }
.caces-thumb { display: block; margin-top: .55rem; border-radius: 8px; overflow: hidden; border: 1px solid rgba(147,197,253,.35); transition: transform .25s ease, box-shadow .25s ease; }
.caces-thumb:hover { transform: scale(1.03); box-shadow: 0 6px 18px rgba(16,185,129,.35); }
.caces-thumb img { display: block; width: 100%; height: auto; }
.caces-valid { margin-top: .55rem; font-size: .86rem; display: flex; align-items: center; gap: .45rem; color: #a7f3d0; }
.caces-valid strong { color: #fff; }
.caces-valid .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-secondary); animation: pulseDot 1.8s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); } 100% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }
.caces-since { display: block; color: #94a3b8; font-size: .74rem; margin: .1rem 0 .5rem 1rem; }
.caces-btn { display: block; text-align: center; width: 100%; font-size: .8rem; }

/* Logo Codeforlife : entier, centré, taille maîtrisée */
.port-banner { height: auto; max-height: 120px; width: auto; max-width: 100%; margin: 0 auto; display: block; object-fit: contain; object-position: center; background: #000; }
.portfolio-card.with-banner { align-items: center; }
.portfolio-card.with-banner .port-row { width: 100%; }
.portfolio-card.with-banner:hover .port-banner { box-shadow: none; filter: drop-shadow(0 0 8px rgba(34,197,94,.7)); }
.port-banner { width: 100%; height: 118px; max-height: none; border-radius: 6px; }
a.btn { display: inline-block; line-height: 1.5; }
