/* ============================================
VARIABLES CSS - CHANGEZ VOS COULEURS ICI
============================================ */

:root {
    /* Palette rouge/noir - Remplacez ces valeurs par vos hex exacts */
    --clr-bg: #0B0B0D;
    --clr-surface: #121218;
    --clr-text: #EDEDF0;
    --clr-muted: #9EA3AE;
    --clr-accent: #E11931;
    --clr-accent-2: #FF4757;
    --clr-border: #1E1E24;
    
    /* Typographie - Modifiez les familles de police ici */
    --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 120ms ease-out;
}

/* Light mode - automatique via prefers-color-scheme */
[data-theme="light"] {
    --clr-bg: #FFFFFF;
    --clr-surface: #F5F5F7;
    --clr-text: #1D1D1F;
    --clr-muted: #6E6E73;
    --clr-accent: #E11931;
    --clr-accent-2: #FF4757;
    --clr-border: #D2D2D7;
}

/* ============================================
BASE STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background grid animé subtil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--clr-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--clr-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Pills flottantes rouges */
.floating-pill {
    position: fixed;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    border-radius: 50%;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

.pill-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite, pulse 3s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.pill-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 10%;
    animation: float 10s ease-in-out infinite, pulse 4s ease-in-out infinite;
    animation-delay: 2s, 1s;
}

.pill-3 {
    width: 130px;
    height: 130px;
    bottom: 15%;
    left: 15%;
    animation: float 12s ease-in-out infinite, pulse 3.5s ease-in-out infinite;
    animation-delay: 4s, 2s;
}

.pill-4 {
    width: 90px;
    height: 90px;
    top: 40%;
    right: 25%;
    animation: float 9s ease-in-out infinite, pulse 4.5s ease-in-out infinite;
    animation-delay: 1s, 0.5s;
}

.pill-5 {
    width: 180px;
    height: 180px;
    top: 60%;
    right: 45%;
    animation: float 9s ease-in-out infinite, pulse 4.5s ease-in-out infinite;
    animation-delay: 1s, 0.5s;
}

/* Animation de lévitation douce */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
    }
    25% { 
        transform: translateY(-20px) translateX(10px);
    }
    50% { 
        transform: translateY(-10px) translateX(-15px);
    }
    75% { 
        transform: translateY(-25px) translateX(5px);
    }
}

/* Animation de battement de cœur (pulsation) */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.25;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.40;
    }
}

/* ============================================
TYPOGRAPHY
============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--spacing-md); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--clr-accent-2); }

/* ============================================
HEADER & NAVIGATION
============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.85);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text);
}

.nav-ordi{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--clr-muted);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
    width: 100%;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.badge:hover {
    border-color: var(--clr-accent);
    transform: translateY(-2px);
}

/*Nav téléphone*/
.nav-mobile{
    display: none;
}

.hamburger {
  cursor: pointer;
}

.hamburger input {
  display: none;
}

.hamburger svg {
  /* The size of the SVG defines the overall size */
  height: 3em;
  /* Define the transition for transforming the SVG */
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: var(--clr-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  /* Define the transition for transforming the Stroke */
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.is-visible{
    pointer-events: auto;
}
/* ============================================
MAIN LAYOUT
============================================ */
main {
    padding-top: 80px;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================
HERO SECTION
============================================ */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
}

.hero h1 .accent {
    color: var(--clr-accent);
}

.hero .subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--clr-muted);
    margin-bottom: var(--spacing-sm);
}

.hero .baseline {
    font-size: 1.1rem;
    color: var(--clr-text);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    padding: 1rem 2rem;
    background: var(--clr-surface);
    border-radius: 12px;
    border: 1px solid var(--clr-border);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
BUTTONS
============================================ */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:focus {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--clr-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--clr-accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 25, 49, 0.3);
    color: white;
}

.btn-ghost {
    padding: 10px 20px;
    text-transform: uppercase;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    color: var(--clr-muted);
    text-shadow: none;
    background: transparent;
    cursor: pointer;
    box-shadow: transparent;
    border: 1px solid var(--clr-muted);
    transition: 0.5s ease;
    user-select: none;
}

.btn-ghost:hover,
:focus {
  color: #ffffff;
  background: var(--clr-accent);
  border: 1px solid var(--clr-accent);
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
  box-shadow: 0 0 5px var(--clr-accent), 0 0 20px var(--clr-accent), 0 0 50px var(--clr-accent),
    0 0 100px var(--clr-accent);
}

/* ============================================
TIMELINE (Expériences)
============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--clr-border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--clr-accent);
    border: 3px solid var(--clr-bg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text);
}

.timeline-date {
    color: var(--clr-accent);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-company {
    color: var(--clr-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--clr-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.timeline-description ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.timeline-description li {
    margin-bottom: 0.25rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    list-style: none;
    display: inline-block;
    margin: 0.25rem;
    padding: 0.375rem 0.875rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--clr-text);
    transition: all var(--transition-fast);
}

/* ============================================
PROJECTS
============================================ */
.projects-list {
    display: grid;
    gap: 1.5rem;
}

.project-item {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.project-item:hover {
    border-color: var(--clr-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text);
}

.project-description {
    color: var(--clr-muted);
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

/* ============================================
SKILLS
============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--clr-accent);
}

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

.skill-list li {
    padding: 0.5rem 0;
    color: var(--clr-muted);
    border-bottom: 1px solid var(--clr-border);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* ============================================
SOFT SKILLS
============================================ */
.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.soft-skill {
    list-style: none;
    display: inline-block;
    margin: 0.25rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.soft-skill:hover {
    border-color: var(--clr-accent);
    transform: scale(1.05);
}

/* ============================================
EDUCATION
============================================ */
.education-item {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.education-degree {
    font-size: 1.25rem;
    font-weight: 700;
}

.education-date {
    color: var(--clr-accent);
    font-weight: 600;
}

.education-school {
    color: var(--clr-muted);
}

/* ============================================
AVAILABILITY
============================================ */
.availability-card {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.availability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.availability-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.availability-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* ============================================
INTERESTS
============================================ */
.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.interests-list li {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

/* ============================================
   CONTACT FORM
============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-form {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgb(34, 197, 94);
    color: rgb(134, 239, 172);
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgb(239, 68, 68);
    color: rgb(252, 165, 165);
    display: block;
}

/* ============================================
FOOTER
============================================ */
footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 2rem;
    text-align: center;
    color: var(--clr-muted);
}

/* ============================================
RESPONSIVE
============================================ */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    .theme-toggle{
        display: none;
    }

    .nav-ordi{
        display: flex;
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: 87px;
        background: var(--clr-surface);
        border: 1px solid var(--clr-border);
        border-radius: 12px;
        z-index: 999;
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0.75rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
        text-align: center;

        /* états pour l'animation */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition:
            max-height 420ms cubic-bezier(.2,.9,.2,1),
            opacity 260ms ease,
            transform 300ms ease;
        -webkit-tap-highlight-color: transparent;
        pointer-events: none;
    }

    .nav-ordi.is-visible{
        max-height: calc(100vh - 96px);
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-ordi .nav-links{
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0.5rem;
    }

    .nav-ordi .nav-links a{
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 320ms ease, transform 320ms ease;
        transition-delay: 0ms;
    }

    .nav-ordi.is-visible .nav-links a{
        opacity: 1;
        transform: translateY(0);
    }


    .nav-ordi.is-visible .nav-links a:nth-child(1){ transition-delay: 60ms; }
    .nav-ordi.is-visible .nav-links a:nth-child(2){ transition-delay: 120ms; }
    .nav-ordi.is-visible .nav-links a:nth-child(3){ transition-delay: 180ms; }
    .nav-ordi.is-visible .nav-links a:nth-child(4){ transition-delay: 240ms; }
    .nav-ordi.is-visible .nav-links a:nth-child(5){ transition-delay: 300ms; }
    .nav-ordi.is-visible .nav-links a:nth-child(6){ transition-delay: 360ms; }

    .nav-ordi>.theme-toggle{
        margin-top: 0.5rem;
        align-self: flex-end;
    }

    .logo-ordinateur{
        display: none;
    }

    .nav-mobile{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero-cta {
        width: 100%;
        max-width: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: var(--spacing-md) 2.5rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before{
        left : -1.5rem
    }

    .nav-ordi>.theme-toggle{
        margin-top: 1.5rem;
    }

    .logo-ordinateur{
        display: none;
    }

    .nav-mobile{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-cta {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: var(--spacing-md) 2.5rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before{
        left : -1.5rem
    }
}

.theme-toggle:hover {
    background: var(--clr-surface);
    transform: rotate(180deg);
}

.theme-toggle:focus {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

/* ============================================
   STYLES POUR GÉNÉRATION PDF (html2pdf.js)
   ============================================ */
body.pdf-generating {
    background: white !important;
}

/* Masquer les éléments inutiles */
body.pdf-generating header,
body.pdf-generating .theme-toggle,
body.pdf-generating .floating-pill,
body.pdf-generating .contact-form,
body.pdf-generating footer,
body.pdf-generating .hero-cta,
body.pdf-generating .project-links,
body.pdf-generating .btn,
body.pdf-generating body::before {
    display: none !important;
    visibility: hidden !important;
}

/* Réinitialiser le layout pour PDF */
body.pdf-generating main {
    padding-top: 0 !important;
    max-width: 100% !important;
    background: white !important;
}

body.pdf-generating section {
    page-break-inside: avoid !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 0.4rem 1rem !important;
    margin-bottom: 0.6rem !important;
    max-width: 100% !important;
    background: white !important;
}

/* Hero section compacte et professionnelle */
body.pdf-generating .hero {
    min-height: auto !important;
    padding: 0.5rem 1rem 1rem !important;
    margin-bottom: 0.8rem !important;
    text-align: left !important;
    align-items: flex-start !important;
}

body.pdf-generating .hero h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.3rem !important;
    color: #1D1D1F !important;
}

body.pdf-generating .hero h1 .accent {
    color: #E11931 !important;
}

body.pdf-generating .hero .subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 0.4rem !important;
    color: #333 !important;
}

body.pdf-generating .hero .baseline {
    font-size: 0.95rem !important;
    padding: 0.6rem 1rem !important;
    margin: 0 0 0.6rem 0 !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-left: 4px solid #E11931 !important;
    color: #333 !important;
}

/* Titres de sections */
body.pdf-generating h2 {
    font-size: 1.4rem !important;
    margin-bottom: 0.6rem !important;
    margin-top: 0.3rem !important;
    border-bottom: 2px solid #E11931 !important;
    padding-bottom: 0.3rem !important;
    color: #1D1D1F !important;
}

body.pdf-generating h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.3rem !important;
    color: #1D1D1F !important;
}

/* Section À propos */
body.pdf-generating #about p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
    color: #333 !important;
}

/* Timeline ultra-optimisée */
body.pdf-generating .timeline {
    padding-left: 1.2rem !important;
}

body.pdf-generating .timeline::before {
    width: 2px !important;
    background: #E11931 !important;
    left: 0 !important;
}

body.pdf-generating .timeline-item {
    margin-bottom: 0.8rem !important;
    padding-left: 1.2rem !important;
    page-break-inside: avoid !important;
}

body.pdf-generating .timeline-item::before {
    width: 10px !important;
    height: 10px !important;
    left: -1.25rem !important;
    top: 0.35rem !important;
    background: #E11931 !important;
    border: 2px solid white !important;
}

body.pdf-generating .timeline-header {
    margin-bottom: 0.3rem !important;
}

body.pdf-generating .timeline-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1D1D1F !important;
}

body.pdf-generating .timeline-company {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
    color: #555 !important;
}

body.pdf-generating .timeline-date {
    font-size: 0.85rem !important;
    color: #E11931 !important;
    font-weight: 600 !important;
}

body.pdf-generating .timeline-description {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.3rem !important;
    color: #444 !important;
}

body.pdf-generating .timeline-description ul {
    margin-top: 0.3rem !important;
    padding-left: 1.2rem !important;
}

body.pdf-generating .timeline-description li {
    margin-bottom: 0.15rem !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #444 !important;
}

/* Badges de technologie */
body.pdf-generating .tech-badges {
    gap: 0.35rem !important;
    margin-top: 0.4rem !important;
}

body.pdf-generating .badge {
    padding: 0.2rem 0.6rem !important;
    font-size: 0.75rem !important;
    border: 1px solid #ddd !important;
    background: #f8f8f8 !important;
    color: #333 !important;
    border-radius: 4px !important;
}

/* Projets compacts */
body.pdf-generating .projects-list {
    gap: 0.6rem !important;
}

body.pdf-generating .project-item {
    padding: 0.6rem !important;
    border: 1px solid #ddd !important;
    background: #fafafa !important;
    page-break-inside: avoid !important;
}

body.pdf-generating .project-title {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
    color: #1D1D1F !important;
    font-weight: 600 !important;
}

body.pdf-generating .project-description {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.4rem !important;
    color: #444 !important;
}

/* Compétences en 2 colonnes */
body.pdf-generating .skills-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
}

body.pdf-generating .skill-category h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    color: #E11931 !important;
    font-weight: 600 !important;
}

body.pdf-generating .skill-list {
    list-style: none !important;
}

body.pdf-generating .skill-list li {
    padding: 0.25rem 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #444 !important;
    border-bottom: 1px solid #eee !important;
}

body.pdf-generating .skill-list li:last-child {
    border-bottom: none !important;
}

/* Soft skills en ligne */
body.pdf-generating .soft-skills {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

body.pdf-generating .soft-skill {
    padding: 0.35rem 0.8rem !important;
    font-size: 0.8rem !important;
    border: 1px solid #ddd !important;
    background: #f8f8f8 !important;
    color: #333 !important;
    border-radius: 4px !important;
}

/* Formation */
body.pdf-generating .education-item {
    padding: 0.6rem !important;
    margin-bottom: 0.6rem !important;
    border: 1px solid #ddd !important;
    background: #fafafa !important;
    page-break-inside: avoid !important;
}

body.pdf-generating .education-degree {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1D1D1F !important;
}

body.pdf-generating .education-school {
    font-size: 0.85rem !important;
    color: #555 !important;
}

body.pdf-generating .education-date {
    font-size: 0.85rem !important;
    color: #E11931 !important;
    font-weight: 600 !important;
}

/* Disponibilité */
body.pdf-generating .availability-card {
    padding: 0.8rem !important;
    background: linear-gradient(135deg, #E11931, #FF4757) !important;
    color: white !important;
    border-radius: 6px !important;
}

body.pdf-generating .availability-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
    color: white !important;
}

body.pdf-generating .availability-info {
    gap: 1.5rem !important;
    margin-top: 0.5rem !important;
}

body.pdf-generating .availability-item {
    font-size: 0.85rem !important;
}

body.pdf-generating .availability-item strong {
    font-size: 0.9rem !important;
    display: block !important;
    margin-bottom: 0.2rem !important;
}

/* Loisirs */
body.pdf-generating .interests-list {
    gap: 0.5rem !important;
    list-style: none !important;
}

body.pdf-generating .interests-list li {
    padding: 0.35rem 0.8rem !important;
    font-size: 0.8rem !important;
    border: 1px solid #ddd !important;
    background: #f8f8f8 !important;
    color: #333 !important;
    border-radius: 4px !important;
}

/* Contact */
body.pdf-generating .contact-grid {
    grid-template-columns: 1fr !important;
}

body.pdf-generating .contact-info h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    color: #1D1D1F !important;
}

body.pdf-generating .contact-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    list-style: none !important;
}

body.pdf-generating .contact-links li {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
    color: #333 !important;
}

body.pdf-generating .contact-links a {
    color: #E11931 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Forcer les couleurs pour le PDF */
body.pdf-generating * {
    box-shadow: none !important;
    text-shadow: none !important;
}