/* Portfolio professionnel - CSS pur sans Tailwind */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: hsl(214, 19%, 14%);
    background-color: hsl(0, 0%, 98%);
    overflow-x: hidden;
}

/* Variables CSS (équivalent des tokens Tailwind) */
:root {
    /* Couleurs */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(214, 19%, 14%);
    --primary: hsl(142, 69%, 24%);
    --primary-foreground: hsl(0, 0%, 98%);
    --primary-light: hsl(142, 45%, 35%);
    --secondary: hsl(213, 94%, 68%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --secondary-dark: hsl(213, 84%, 45%);
    --muted: hsl(210, 20%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --accent: hsl(210, 40%, 95%);
    --accent-foreground: hsl(214, 19%, 14%);
    --border: hsl(214, 32%, 91%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(214, 19%, 14%);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(142, 69%, 24%), hsl(213, 84%, 45%));
    --gradient-subtle: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(210, 20%, 98%));
    --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(210, 20%, 96%));
    
    /* Ombres */
    --shadow-soft: 0 1px 3px 0 hsl(214, 19%, 14% / 0.1);
    --shadow-medium: 0 4px 6px -1px hsl(214, 19%, 14% / 0.1);
    --shadow-large: 0 10px 15px -3px hsl(214, 19%, 14% / 0.1);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Radius */
    --radius: 0.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
    border: none;
}

.btn-ghost:hover {
    background-color: var(--accent);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    border: 1px solid transparent;
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.badge-glass {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.badge-glass:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.badge-success {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.badge-warning {
    background-color: hsl(45, 93%, 47%);
    color: hsl(45, 93%, 9%);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition-smooth);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-medium);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.header-cta {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header-cta {
        display: flex;
    }
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background-color: var(--foreground);
    transition: var(--transition-smooth);
}

.nav-mobile {
    display: none;
    margin-top: 0.5rem;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-content {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-medium);
}

.nav-mobile-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    transition: var(--transition-smooth);
}

.nav-mobile-link:hover {
    color: var(--primary);
    background-color: var(--accent);
}

.nav-mobile-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0.5rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('src/assets/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(56, 142, 60, 0.9) 0%, 
        rgba(56, 142, 60, 0.7) 50%, 
        rgba(33, 150, 243, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-inner {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 2.25rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-info {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    animation: scaleIn 0.5s ease-out 0.6s both;
}

@media (min-width: 768px) {
    .hero-info {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.info-card span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.125rem;
    margin-top: 0.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-gradient-subtle {
    background: var(--gradient-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 2rem;
    text-align: center;
}

.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-header-inline h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
}

/* Cards */
.document-card, .project-card, .report-card, .source-card, .news-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.document-card:hover, .project-card:hover, .report-card:hover, .source-card:hover, .news-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    text-align: center;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--muted-foreground);
}

.card-content {
    padding: 0 1.5rem 1.5rem;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(56, 142, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition-smooth);
    color: var(--primary);
}

.document-card:hover .card-icon, .source-card:hover .card-icon {
    background-color: rgba(56, 142, 60, 0.2);
}

/* Grids */
.documents-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.projects-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reports-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sources-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .sources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

/* Document Cards Specific */
.badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.document-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Compétences */
.competences-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.card-header-large {
    padding: 2rem 1.5rem;
    text-align: center;
}

.card-header-large h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.card-header-large p {
    color: var(--muted-foreground);
}

.competences-grid {
    display: grid;
    gap: 1.5rem;
    padding: 0 1.5rem 2rem;
}

@media (min-width: 768px) {
    .competences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .competences-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.competence-category h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.skill-badge:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Project Cards Specific */
.project-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tech-badge {
    padding: 0.125rem 0.375rem;
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.75rem;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

/* Report Cards Specific */
.report-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.report-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Veille Section */
.veille-sources, .veille-topics, .veille-news {
    margin-bottom: 4rem;
}

.source-type {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.source-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.category-badge {
    padding: 0.125rem 0.375rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.75rem;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.topic-badge:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.news-source {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-card, .download-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.1);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.download-btn:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.download-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--accent);
    border-radius: calc(var(--radius) - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.download-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.download-title {
    font-weight: 500;
    color: var(--foreground);
}

.download-size {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.download-arrow {
    color: var(--muted-foreground);
}

.download-all {
    margin-top: 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-10px);
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
    }
    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1.125rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 142, 60, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 142, 60, 0.5);
}