@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f7f8fb;
    position: relative;
    overflow-x: hidden; /* Empêche le scroll horizontal */
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    /* Fond sobre, pro et léger (remplace l'image) */
    background:
        radial-gradient(1000px 600px at 10% 10%, rgba(52, 152, 219, 0.20), rgba(52, 152, 219, 0) 60%),
        radial-gradient(900px 520px at 90% 20%, rgba(231, 76, 60, 0.12), rgba(231, 76, 60, 0) 55%),
        radial-gradient(900px 600px at 50% 110%, rgba(44, 62, 80, 0.14), rgba(44, 62, 80, 0) 60%),
        linear-gradient(180deg, #f6f8fc 0%, #eef2f7 50%, #f7f8fb 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eef1f6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.5rem 0.75rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-initial {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
    }
}

.logo-initial {
    display: inline-block;
    padding: 0.3rem 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.logo-initial:hover {
    transform: translateY(-3px);
}

.logo-initial:first-child {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.logo-initial:nth-child(2) {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.logo-initial:last-child {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

/* Sélecteur de langue */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: #f5f6fa;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.lang-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links li {
        margin-left: 0;
        width: 100%;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: #f1f5fb;
}

/* Hero Section */
.hero {
    /* min-height + auto : le bloc s’agrandit avec le contenu ; sinon height:100vh fait déborder
       le texte sous le viewport et la section suivante (z-index plus haut) masque les boutons */
    min-height: 100vh;
    height: auto;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 4rem;
    z-index: 3;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 70, 0.55); /* filtre sombre, ajustable */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    padding: 2rem 3rem;
    z-index: 2;
    position: relative;
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(10px);
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto 1.75rem;
    padding: 0;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 2.4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(44,62,80,0.5);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

.hero-actions .cta-button {
    margin-top: 0;
}

.cta-secondary {
    background-color: var(--secondary-color);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-availability {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: #fff;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(231, 76, 60, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: none;
}

.cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

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

section:not(.hero) {
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
}

section:not(.hero) h2 {
    margin-top: 4.5rem;
}

/* Home intro (accueil) */
.home-intro {
    background: transparent;
}

.home-intro h2 {
    margin-top: 0;
}

/* Home proof (En bref) */
.home-proof {
    background: transparent;
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.home-proof h2 {
    margin-top: 0;
    margin-bottom: 1.8rem;
}

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

.proof-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5ebf4;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.proof-card h3 {
    margin-bottom: 0.35rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.proof-card p {
    margin: 0;
    color: #5e6b7a;
    line-height: 1.6;
}

.home-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.home-intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2a3a;
    margin-bottom: 1rem;
}

.home-intro-cards {
    display: grid;
    gap: 1rem;
}

.mini-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5ebf4;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.mini-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.mini-card p {
    margin: 0;
    color: #5e6b7a;
    line-height: 1.6;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* Section recrutement */
.job-focus {
    background-color: transparent;
    border-top: 1px solid #e9edf5;
    border-bottom: 1px solid #e9edf5;
}

.job-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.job-highlight > div {
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef1f6;
}

.job-highlight h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.job-highlight ul {
    padding-left: 1.2rem;
}

.job-highlight li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pill {
    background: #fff;
    border: 1px solid #e2e6ee;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.job-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Databridge */
.databridge-hero {
    background-color: #ffffff;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.databridge-hero h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 2.7rem;
}

.databridge-logo {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 220px;
    width: 100%;
    height: auto;
}

.databridge-lead {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0.75rem auto;
    text-align: center;
    color: var(--text-color);
}

.databridge-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .databridge-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .databridge-cta .cta-button {
        width: 100%;
        max-width: 300px;
        margin-left: 0 !important;
    }
}

.databridge-section {
    background-color: transparent;
}

.databridge-section:nth-of-type(even) {
    background-color: transparent;
}

.databridge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.databridge-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 3px 12px rgba(44,62,80,0.08);
}

.databridge-card h3 {
    margin-bottom: 0.7rem;
    color: var(--primary-color);
}

.databridge-list {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 1.2rem;
    line-height: 1.7;
}

.databridge-list li {
    margin-bottom: 0.6rem;
}

.databridge-quote {
    background-color: var(--primary-color);
    color: #fff;
}

.databridge-quote p {
    text-align: center;
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* PDF Viewer Section */
.pdf-viewer-container {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pdf-viewer-header p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.pdf-viewer-header i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.pdf-viewer-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #f5f5f5;
    overflow: visible; /* Permet de voir toutes les pages */
}

#pdf-pages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

#pdf-pages-container canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    background: white;
}

#pdf-loading {
    padding: 3rem;
    text-align: center;
    color: #666;
}

#pdf-loading i {
    display: block;
    margin-bottom: 1rem;
}

.pdf-viewer-fallback {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.pdf-viewer-fallback a {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pdf-viewer-container {
        padding: 1rem;
    }
    
    .pdf-viewer-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-viewer-header .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .pdf-viewer-wrapper {
        padding: 1rem;
    }
    
    #pdf-pages-container {
        gap: 1.5rem;
        padding: 0;
    }
    
    #pdf-pages-container canvas {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .pdf-viewer-container {
        padding: 0.75rem;
    }
    
    .pdf-viewer-header p {
        font-size: 0.9rem;
    }
    
    .pdf-viewer-wrapper {
        padding: 0.75rem;
    }
    
    #pdf-pages-container {
        gap: 1rem;
        padding: 0;
    }
    
    #pdf-pages-container canvas {
        width: 100% !important;
    }
}

/* Outils */
.tools .container {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    max-width: 1280px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
    margin-top: 1.6rem;
    justify-items: center;
}

.tools-grid-llm {
    margin-top: 1.5rem;
}

.tool-item {
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 12px;
    padding: 1rem 0.8rem;
    text-align: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    width: 100%;
}

.tool-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    border-color: var(--secondary-color);
}

.tool-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.tool-icon img {
    max-height: 52px;
    max-width: 90px;
    width: auto;
    object-fit: contain;
}

.tool-icon-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: #f1f5fb;
    border: 1px solid #dbe3f2;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tools-subtitle {
    text-align: center;
    margin-top: 2rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* À propos */
.about {
    background-color: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    max-width: 820px;
    text-align: center;
    font-size: 1.05rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.skill-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    font-size: 1.05rem;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-logo {
    height: 48px;
    max-width: 90px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

/* Projets */
.projects-hero {
    padding-top: 120px;
    padding-bottom: 2.5rem;
    background: transparent;
}

.projects-hero h1 {
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 2.6rem;
}

.projects-lead {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: #5e6b7a;
    font-size: 1.05rem;
    line-height: 1.7;
}

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

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

.project-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-details {
    margin: 1.5rem 0;
}

.project-details h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.project-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-details ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.project-details ul {
    padding-left: 1rem;
    margin: 0.5rem 0;
    list-style-type: disc;
}

.project-details li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.project-details strong {
    color: var(--secondary-color);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.project-status {
    color: #e67e22;
    font-size: 1rem;
    font-weight: 700;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.project-actions .cta-button {
    margin-top: 0;
}

.project-value {
    margin: 0.8rem 0 0.2rem;
    color: #5e6b7a;
    line-height: 1.7;
}

.project-value strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .projects-hero h1 {
        font-size: 2.1rem;
    }

    .project-stack {
        justify-content: flex-start;
    }
}

/* Contact */
.contact {
    background-color: transparent;
}

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

.contact-lead {
    max-width: 900px;
    margin: -1.25rem auto 2.25rem;
    text-align: center;
    color: #5e6b7a;
    line-height: 1.7;
}

.contact-layout {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5ebf4;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.contact-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5fb;
    border: 1px solid #dbe3f2;
    color: var(--secondary-color);
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.contact-card-body strong {
    font-size: 1rem;
}

.contact-card-body span {
    color: #5e6b7a;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

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

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

.submit-button {
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--primary-color);
}

/* Section Featured (Actualités Tech & Cybersécurité) */
.featured-sections {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(231, 76, 60, 0.05) 100%);
    margin-top: 0;
    position: relative;
    z-index: 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

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

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

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.featured-card-tech:hover {
    border-color: rgba(52, 152, 219, 0.3);
}

.featured-card-cyber:hover {
    border-color: rgba(231, 76, 60, 0.3);
}

.featured-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.featured-card-tech .featured-card-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.2));
    color: var(--secondary-color);
}

.featured-card-cyber .featured-card-icon {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.2));
    color: var(--accent-color);
}

.featured-card:hover .featured-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.featured-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.featured-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.featured-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
}

.featured-list i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.featured-card-cyber .featured-list i {
    color: var(--accent-color);
}

.featured-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.featured-card-cyber .featured-button {
    background: var(--accent-color);
}

.featured-card-resources .featured-card-icon {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.2));
    color: #2ecc71;
}

.featured-card-resources:hover {
    border-color: rgba(46, 204, 113, 0.3);
}

.resources-categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.resource-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2ecc71;
    font-weight: 600;
}

.resource-category i {
    font-size: 0.85rem;
}

.featured-button:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-button i {
    transition: transform 0.3s ease;
}

.featured-button:hover i {
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .featured-card {
        padding: 1.75rem;
    }
    
    .featured-card h3 {
        font-size: 1.5rem;
    }
    
    .featured-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .featured-card {
        padding: 1.5rem;
    }
    
    .featured-card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .featured-card h3 {
        font-size: 1.3rem;
    }
    
    .featured-card p {
        font-size: 0.9rem;
    }
    
    .featured-list {
        font-size: 0.9rem;
    }
    
    .featured-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .featured-sections {
        padding: 3rem 0;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-card {
        padding: 2rem;
    }
    
    .featured-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .featured-card h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .featured-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .featured-list {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .featured-list li {
        margin-bottom: 0.75rem;
    }
    
    .featured-button {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .featured-sections {
        padding: 2.5rem 0;
    }
    
    .featured-card {
        padding: 1.5rem;
    }
    
    .featured-card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .featured-card h3 {
        font-size: 1.4rem;
    }
    
    .featured-card p {
        font-size: 1rem;
    }
    
    .featured-button {
        width: 100%;
        justify-content: center;
    }
}

/* Section Ressources détaillée */
.resources-detailed {
    padding: 5rem 0;
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
}

.resources-detailed h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resources-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.resource-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.resource-block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.resource-block-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.resource-block-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.resource-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.resource-item:hover {
    background: #e9ecef;
}

.resource-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.resource-item-content {
    flex: 1;
}

.resource-item-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.resource-item-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.resource-download,
.resource-read {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.resource-read {
    color: var(--accent-color);
}

.resource-download:hover,
.resource-read:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.resource-download i,
.resource-read i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.resource-download:hover i,
.resource-read:hover i {
    transform: translateX(3px);
}

.resource-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .resources-detailed h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .resources-detailed {
        padding: 3rem 0;
    }
    
    .resources-detailed h2 {
        font-size: 1.75rem;
    }
    
    .resources-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .resource-block {
        padding: 1.5rem;
    }
    
    .resource-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .featured-sections {
        padding: 2.5rem 0;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-card {
        padding: 1.5rem;
    }
    
    .featured-card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .featured-card h3 {
        font-size: 1.4rem;
    }
    
    .featured-card p {
        font-size: 0.95rem;
    }
    
    .featured-list {
        font-size: 0.9rem;
    }
    
    .resources-detailed {
        padding: 2.5rem 0;
    }
    
    .resource-block {
        padding: 1.25rem;
    }
    
    .resource-item {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.visitor-count {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
    display: none; /* Masqué par défaut */
}

.visitor-count.show {
    display: block; /* Affiché uniquement si la classe 'show' est ajoutée */
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 1.5rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.9rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Empêche le débordement horizontal */
    * {
        max-width: 100%;
    }
    
    /* Exceptions pour les éléments qui doivent pouvoir dépasser */
    .hero-content,
    .container,
    .timeline-container {
        max-width: 100%;
    }
    
    /* Hero responsive */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 1.5rem 1.25rem;
        margin: 0 10px;
        width: calc(100% - 20px);
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-availability {
        font-size: 1rem;
        margin-top: 1rem;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    /* Sections responsive */
    section {
        padding: 2.5rem 0;
    }
    
    section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 15px;
        line-height: 1.3;
    }
    
    /* About intro inline */
    .about-intro-inline {
        padding: 0 10px;
        margin: 1.5rem auto;
    }
    
    .about-intro-inline h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .about-intro-content {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .about-intro-content p {
        margin-bottom: 1rem;
    }
    
    /* Job focus */
    .job-focus {
        padding: 2rem 0;
    }
    
    .job-highlight {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .job-highlight > div {
        padding: 1.5rem;
    }
    
    .job-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .job-cta .cta-button {
        width: 100%;
        text-align: center;
        margin-top: 0;
    }
    
    /* Grilles responsive */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Tools grid */
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 1rem;
    }
    
    /* Projects grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-details {
        margin: 1.25rem 0;
    }
    
    .project-details h4 {
        font-size: 1.1rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 0;
    }
    
    .social-links a {
        font-size: 1.2rem;
        margin: 0 0.5rem;
    }
    
    /* Databridge section */
    .databridge-content {
        padding: 2rem 0;
    }
    
    .databridge-lead {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .databridge-hero h1 {
        font-size: 2rem;
    }
    
    .databridge-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact form */
    .contact-form-modern {
        padding: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Tableaux responsive */
    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Skills grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Empêche le zoom sur les inputs iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    .hero {
        padding: 70px 0 30px;
    }
    
    .hero-content {
        padding: 1.25rem 1rem;
        margin: 0 8px;
        width: calc(100% - 16px);
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .hero-availability {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .about-intro-inline {
        padding: 0 8px;
        margin: 1.25rem auto;
    }
    
    .about-intro-inline h3 {
        font-size: 1.2rem;
    }
    
    .about-intro-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 0.75rem;
    }
    
    .tool-item {
        padding: 0.75rem 0.5rem;
    }
    
    .tool-icon {
        height: 50px;
    }
    
    .tool-icon img {
        max-height: 45px;
        max-width: 80px;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .project-details h4 {
        font-size: 1rem;
    }
    
    .project-details p,
    .project-details li {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .databridge-lead {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .databridge-hero h1 {
        font-size: 1.75rem;
    }
    
    .databridge-card {
        padding: 1.25rem;
    }
    
    .job-highlight > div {
        padding: 1.25rem;
    }
    
    .pill {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    footer {
        padding: 1.25rem 0;
    }
    
    .social-links a {
        font-size: 1.1rem;
        margin: 0 0.4rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .contact-form textarea {
        height: 120px;
    }
} 