/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #3B82F6;
    --primary-dark: #1E40AF;
    --secondary-color: #60A5FA;
    --accent-color: #F59E0B;
    --success-color: #10B981;
    --warning-color: #EF4444;
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-light: #9CA3AF;
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ===== UTILITAIRES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 1rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease forwards 0.6s;
    opacity: 0;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease forwards 0.8s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards 1s;
    opacity: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease forwards 1.2s;
    opacity: 0;
}

.profile-container {
    position: relative;
}

.profile-image {
    width: clamp(200px, 40vw, 300px);
    height: clamp(200px, 40vw, 300px);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SECTIONS GÉNÉRALES ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 9999px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: -1.5rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-left,
.about-right {
    width: 100%;
}

.text-block {
    margin-bottom: 2rem;
}

.text-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== STATS SECTIONS ===== */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section:last-child {
    margin-bottom: 0;
}

.stats-title {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stats-grid-small {
    grid-template-columns: repeat(2, 1fr);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== FORMATION SHOWCASE ===== */
.formation-showcase {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.formation-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.formation-logo {
    flex-shrink: 0;
}

.formation-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 12px;
}

.formation-header .text-block h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.formation-section {
    margin-bottom: 2rem;
}

.formation-section:last-child {
    margin-bottom: 0;
}

.formation-section > p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.formation-section h4 {
    font-size: 1.125rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formation-section h4 i {
    color: #3b82f6;
}

/* Domaines Grid */
.domaines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.domaine-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.domaine-item:hover {
    transform: translateX(5px);
    border-color: #3b82f6;
}

.domaine-item i {
    font-size: 1.25rem;
    color: #3b82f6;
    width: 24px;
    text-align: center;
}

.domaine-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Chiffres Grid */
.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.chiffre-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chiffre-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.chiffre-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.chiffre-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BTS Card */
.formation-bts {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.bts-card {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 2px solid #3b82f6;
    overflow: hidden;
}

.bts-header {
    background: #3b82f6;
    padding: 1.5rem;
    color: white;
}

.bts-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.bts-header h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bts-option {
    font-size: 0.95rem;
    opacity: 0.9;
}

.bts-content {
    padding: 1.5rem;
}

.bts-content > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

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

.bts-skill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.bts-skill:hover {
    border-color: #3b82f6;
    background: var(--bg-primary);
}

.bts-skill i {
    color: #3b82f6;
    font-size: 0.75rem;
}

/* ===== EXPERIENCE SHOWCASE ===== */
.experience-showcase {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.experience-logo {
    flex-shrink: 0;
}

.experience-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 12px;
}

.experience-intro h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-meta i {
    color: #3b82f6;
}

.experience-section {
    margin-bottom: 2rem;
}

.experience-section:last-child {
    margin-bottom: 0;
}

.experience-section > p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Titres bleus - Entreprise */
.section-title-blue {
    font-size: 1.125rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title-blue i {
    color: #3b82f6;
}

/* Stats Entreprise */
.experience-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.experience-stat {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.experience-stat:hover {
    transform: translateY(-3px);
}

.experience-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.experience-stat .stat-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Role Card */
.experience-role {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.role-card {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 2px solid #3b82f6;
    overflow: hidden;
}

.role-header {
    background: #3b82f6;
    padding: 1.5rem;
    color: white;
}

.role-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.role-header h6 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.role-service {
    font-size: 0.9rem;
    opacity: 0.9;
}

.role-content {
    padding: 1.5rem;
}

.role-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.role-missions h3 {
    font-size: 1rem;
    color: #3b82f6;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-missions h3 i {
    color: #3b82f6;
}

.role-missions ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
}

.role-missions li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.role-missions li i {
    color: #3b82f6;
    margin-top: 0.2rem;
}

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

.role-skills span {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.role-skills span:hover {
    border-color: #3b82f6;
}

/* ===== SKILLS ===== */
.skills {
    background: var(--bg-primary);
}

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

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-percentage {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 9999px;
    transition: width 1.5s ease;
}

/* ===== PROJECTS ===== */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

.project-actions .btn {
    flex: 1;
    min-width: 120px;
}

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

.certification-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.certification-card:hover::before {
    transform: scaleX(1);
}

.certification-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition);
}

.cert-icon.obtained {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.certification-card:hover .cert-icon {
    transform: scale(1.1) rotate(10deg);
}

.certification-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-org {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cert-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-status.obtained {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

.cert-status.in-progress {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cert-status.planned {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--secondary-color);
    gap: 0.7rem;
}

/* ===== VEILLE TECHNOLOGIQUE ===== */
.veille {
    background: var(--bg-primary);
}

.veille-status {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-item i {
    color: #10b981;
}

/* Introduction 0-day */
.zeroday-intro {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #334155;
}

.zeroday-intro-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.zeroday-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zeroday-icon i {
    font-size: 2.5rem;
    color: white;
}

.zeroday-text h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.75rem;
}

.zeroday-text p {
    color: #94a3b8;
    line-height: 1.7;
}

/* Onglets */
.veille-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tab-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.tab-button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Grille veille */
.veille-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.veille-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.veille-panel-large {
    grid-column: span 1;
}

.veille-panel-full {
    grid-column: span 2;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.panel-header h3 i {
    color: #3b82f6;
}

.panel-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
}

.refresh-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.panel-content {
    padding: 1rem 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

/* Scrollbar personnalisée */
.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

/* Feed items */
.feed-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--bg-primary);
    border-left: 4px solid #6b7280;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-item:last-child {
    margin-bottom: 0;
}

.feed-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feed-item.critical {
    border-left-color: #ef4444;
}

.feed-item.high {
    border-left-color: #f97316;
}

.feed-item.medium {
    border-left-color: #eab308;
}

.feed-item.low {
    border-left-color: #22c55e;
}

.feed-item.exploited {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-primary) 100%);
}

.feed-severity {
    flex-shrink: 0;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.severity-badge.critical {
    background: #ef4444;
    color: white;
}

.severity-badge.high {
    background: #f97316;
    color: white;
}

.severity-badge.medium {
    background: #eab308;
    color: #1f2937;
}

.severity-badge.low {
    background: #22c55e;
    color: white;
}

.severity-badge.unknown {
    background: #6b7280;
    color: white;
}

.severity-badge.exploited {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    word-break: break-word;
}

.feed-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.feed-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.feed-meta i {
    color: #3b82f6;
    font-size: 0.75rem;
}

.feed-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-link {
    font-size: 0.8rem;
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: #3b82f6;
    color: white;
}

/* Severity Chart */
.severity-chart {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

.donut-chart {
    position: relative;
    width: 150px;
    height: 150px;
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--bg-primary);
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.circle.critical {
    stroke: #ef4444;
}

.circle.high {
    stroke: #f97316;
}

.circle.medium {
    stroke: #eab308;
}

.circle.low {
    stroke: #22c55e;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-total {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.chart-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.severity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.critical {
    background: #ef4444;
}

.legend-color.high {
    background: #f97316;
}

.legend-color.medium {
    background: #eab308;
}

.legend-color.low {
    background: #22c55e;
}

/* Sources */
.veille-sources {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.veille-sources h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-align: center;
}

.sources-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.source-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.source-link:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.source-link i {
    font-size: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    transition: all 0.3s ease;
}

.status-dot.active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.inactive {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

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

/* Auto-refresh indicator */
.auto-refresh-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 0.85rem;
}

.auto-refresh-indicator i {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading & Error & No Data */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
    gap: 1rem;
}

.loading i {
    font-size: 2rem;
    color: #3b82f6;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
}

.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    color: #3b82f6;
    font-size: 2rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-sidebar {
    position: sticky;
    top: 100px;
}

.contact-intro {
    margin-bottom: 3rem;
}

.contact-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-details h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.method-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.method-details a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.method-details p {
    color: var(--text-secondary);
}

.contact-social {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-social h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-social .social-links {
    display: flex;
    gap: 1rem;
}

.contact-social .social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    font-size: 1.25rem;
}

.contact-social .social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

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

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

.form-notice {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .veille-grid {
        grid-template-columns: 1fr;
    }
    
    .veille-panel-large,
    .veille-panel-full {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        padding: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .formation-showcase,
    .experience-showcase {
        padding: 1.5rem;
    }
    
    .formation-header,
    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .experience-meta {
        justify-content: center;
    }
    
    .chiffres-grid,
    .experience-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .domaines-grid {
        grid-template-columns: 1fr;
    }

    .about-right .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zeroday-intro {
        padding: 1.5rem;
    }
    
    .zeroday-intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .zeroday-icon {
        width: 60px;
        height: 60px;
    }
    
    .zeroday-icon i {
        font-size: 1.75rem;
    }
    
    .zeroday-text h3 {
        font-size: 1.25rem;
    }
    
    .veille-status {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        padding: 1rem;
    }
    
    .veille-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        justify-content: center;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .panel-actions {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
    }
    
    .panel-content {
        padding: 1rem;
    }
    
    .feed-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .feed-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sources-grid {
        flex-direction: column;
    }
    
    .source-link {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-methods {
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .formation-header .text-block h3,
    .experience-intro h3 {
        font-size: 1.5rem;
    }
    
    .chiffres-grid,
    .experience-stats {
        grid-template-columns: 1fr;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-right .stats-grid {
        grid-template-columns: 1fr;
    }

    .severity-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .donut-chart {
        width: 120px;
        height: 120px;
    }
    
    .chart-total {
        font-size: 1.5rem;
    }

    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-social .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

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