/* ==========================================
   ROSE BOOK - DESIGN PROFESSIONNEL DEI
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Palette Professionnelle DEI */
    --primary: #6B46C1;        /* Violet profond - diversité */
    --primary-light: #9B7FCC;  /* Violet clair */
    --secondary: #EC4899;      /* Rose - inclusion */
    --accent: #14B8A6;         /* Turquoise - équité */
    --gold: #F59E0B;           /* Or - excellence */
    
    /* Neutres élégants */
    --dark: #1F2937;
    --text: #374151;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-lighter: #F3F4F6;
    --border: #E5E7EB;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-soft: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    
    /* Ombres professionnelles */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Variables CV dynamiques */
    --cv-primary: var(--primary);
    --cv-accent: var(--secondary);
    --cv-surface: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typographie élégante */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

/* ==========================================
   HEADER & NAVIGATION - DESIGN PROFESSIONNEL
   ========================================== */

header {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-lighter);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.lang-switcher button {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.lang-switcher button.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   SECTIONS & CONTAINERS - DESIGN ÉLÉGANT
   ========================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section avec fond alterné */
.section-alt {
    background: white;
    margin: 4rem 0;
    padding: 5rem 0;
}

/* Empty state élégant */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 1rem;
    border: 2px dashed var(--border);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* ==========================================
   HERO SECTION - ÉLÉGANT & PROFESSIONNEL
   ========================================== */

.hero {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.profile-image:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton élégant pour hero vide */
.hero-skeleton {
    background: var(--bg-lighter);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.hero-skeleton .skeleton-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    margin: 0 auto 2rem;
}

.hero-skeleton .skeleton-line {
    height: 3rem;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
    margin: 0 auto 1rem;
    max-width: 500px;
}

.hero-skeleton .skeleton-text {
    height: 1.5rem;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
    margin: 0 auto;
    max-width: 600px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   CARDS - DESIGN MODERNE PROFESSIONNEL
   ========================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-lighter);
    border-radius: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-light);
    color: white;
}

/* Skeleton pour cards vides */
.card-skeleton {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card-skeleton .skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.card-skeleton .skeleton-content {
    padding: 2rem;
}

.card-skeleton .skeleton-title {
    height: 1.5rem;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.card-skeleton .skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-skeleton .skeleton-text:last-child {
    width: 70%;
}

/* ==========================================
   BUTTONS - DESIGN MODERNE PROFESSIONNEL
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   CV SECTIONS - DESIGN PROFESSIONNEL
   ========================================== */

.cv-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.cv-hero {
    background: linear-gradient(135deg, var(--cv-primary, var(--primary)) 0%, var(--cv-accent, var(--secondary)) 100%);
    color: white;
    border-radius: 2rem;
    padding: 4rem 3rem 3rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cv-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 55%);
    pointer-events: none;
}

.cv-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.cv-identity {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cv-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: var(--shadow-md);
}

.cv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cv-identity-text {
    flex: 1;
    min-width: 240px;
}

.cv-overline {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.cv-hero h1 {
    color: white;
    font-size: clamp(2.2rem, 2.8vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.cv-headline {
    font-size: 1.125rem;
    max-width: 680px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

.cv-summary {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 2rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    font-size: 1.05rem;
    line-height: 1.8;
}

.cv-summary p {
    margin: 0;
}

.cv-header-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.cv-header-card {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 1.25rem;
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cv-header-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.cv-header-card p {
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.6;
}

.cv-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 2.5rem;
}

.cv-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cv-section-card {
    background: var(--cv-surface);
    border-radius: 1.75rem;
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(107, 70, 193, 0.08);
    position: relative;
    overflow: hidden;
}

.cv-section-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cv-section-card:hover::after {
    opacity: 1;
}

.cv-section-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    color: var(--dark);
}

.cv-section-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cv-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cv-contact-summary {
    margin-bottom: 1.25rem;
    color: var(--text);
    line-height: 1.7;
}

.cv-contact-summary p {
    margin: 0 0 0.75rem;
}

.cv-contact-summary p:last-child {
    margin-bottom: 0;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.97rem;
    color: var(--text);
}

.cv-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.9rem;
    background: rgba(107, 70, 193, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.cv-badge-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cv-skill-item {
    background: rgba(107, 70, 193, 0.06);
    border-radius: 1rem;
    padding: 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--dark);
}

.cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(107, 70, 193, 0.08);
    color: var(--primary);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.87rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cv-skill-bar {
    height: 8px;
    background: rgba(107, 70, 193, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.cv-skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--cv-primary, var(--primary)), var(--cv-accent, var(--secondary)));
    border-radius: inherit;
}

.cv-language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.3rem;
    border-radius: 1rem;
    background: rgba(107, 70, 193, 0.06);
    color: var(--text);
}

.cv-language-item strong {
    font-size: 1rem;
}

.cv-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--cv-primary, var(--primary)), rgba(236, 72, 153, 0.6));
}

.cv-timeline-item {
    position: relative;
    padding-left: 1.25rem;
}

.cv-header-card-body {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cv-header-card-body p {
    margin: 0;
}

.cv-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--cv-primary, var(--primary));
}

.cv-timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cv-timeline-header h3 {
    font-size: 1.25rem;
    color: var(--dark);
}

.cv-timeline-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-description {
    margin-top: 0.75rem;
    color: var(--text);
    line-height: 1.7;
}

.cv-empty {
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.cv-interest-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cv-interest-icon {
    font-size: 1.5rem;
}

.cv-interest-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.cv-interest-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.cv-certification-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(107, 70, 193, 0.1);
}

.cv-certification-item h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

.cv-certification-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.cv-certification-item a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cv-primary, var(--primary));
    text-decoration: none;
}

.cv-certification-item a:hover {
    text-decoration: underline;
}

.cv-research-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(107, 70, 193, 0.1);
    background: rgba(107, 70, 193, 0.04);
}

.cv-research-link {
    align-self: flex-start;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(107, 70, 193, 0.12);
    color: var(--cv-primary, var(--primary));
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cv-research-link:hover {
    background: rgba(107, 70, 193, 0.18);
}

@media (max-width: 1100px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-column-left {
        order: 2;
    }

    .cv-column-right {
        order: 1;
    }
}

@media (max-width: 768px) {
    .cv-wrapper {
        padding: 3rem 1.5rem 4rem;
    }

    .cv-hero {
        padding: 3rem 2rem 2.5rem;
    }

    .cv-summary {
        padding: 1.5rem;
    }

    .cv-section-card {
        padding: 1.75rem;
    }
}

.cv-section {
    margin-bottom: 4rem;
}

.cv-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cv-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

.cv-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.cv-item:hover::before {
    height: 100%;
}

.cv-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.cv-item .meta {
    color: var(--text-lighter);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-item .description {
    color: var(--text);
    line-height: 1.7;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.skill-item h4 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.125rem;
}

.skill-bar {
    background: var(--bg-lighter);
    height: 12px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: 1rem;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Skeleton pour CV vide */
.cv-skeleton-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.cv-skeleton-title {
    height: 1.5rem;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.cv-skeleton-meta {
    height: 1rem;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
    width: 40%;
    margin-bottom: 1rem;
}

.cv-skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.cv-skeleton-text:last-child {
    width: 80%;
}

/* ==========================================
   IFRAME (LINKEDIN)
   ========================================== */

.post-iframe {
    margin: 20px 0;
    max-width: 100%;
}

.post-iframe iframe {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* ==========================================
   FOOTER - DESIGN PROFESSIONNEL
   ========================================== */

footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
    border-top: 4px solid var(--primary);
}

footer p {
    opacity: 0.9;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Contact form styling */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

#contactSuccess {
    padding: 1.25rem;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}
