/* ========================================
   VARIABLES CSS & RESET
   ======================================== */

:root {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-light-bg: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a span {
    color: var(--primary-color);
}

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

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ========================================
   SECTION HÉROS
   ======================================== */

.hero {
    margin-top: 80px;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: slideInDown 0.6s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    animation: slideInUp 0.6s ease 0.1s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideInUp 0.6s ease 0.3s both;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 0.6s ease 0.2s both;
}

.profile-img {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.profile-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BOUTONS
   ======================================== */

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ========================================
   CONTENEUR GÉNÉRAL
   ======================================== */

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SECTION À PROPOS
   ======================================== */

.about {
    padding: 8rem 2rem;
    background: var(--light-bg);
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SECTION EXPÉRIENCE
   ======================================== */

.experience {
    padding: 8rem 2rem;
    background: white;
}

.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.company-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 100px;
}

.company-logo {
    max-height: 85px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
}

.company-logo:hover {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
    transform: scale(1.08);
    opacity: 1;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
}

.timeline-item:nth-child(even) {
    margin-left: 0;
}

.timeline-item:nth-child(odd) {
    margin-right: 0;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-list {
    list-style: none;
    margin: 1rem 0;
}

.experience-list li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tag {
    background: white;
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

/* ========================================
   SECTION FORMATION
   ======================================== */

.education {
    padding: 8rem 2rem;
    background: var(--light-bg);
}

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

.education-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

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

.education-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.education-school {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-date {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   SECTION COMPÉTENCES
   ======================================== */

.skills {
    padding: 8rem 2rem;
    background: white;
}

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

.skill-category {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-tag {
    background: white;
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects {
    padding: 8rem 2rem;
    background: white;
}

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

.project-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

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

.project-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
    min-width: 200px;
    font-weight: 700;
    line-height: 1.3;
}

.project-type {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: justify;
}

.project-tech {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: white;
    color: var(--primary-color);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    border: 1.5px solid var(--border-color);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-tag:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.project-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.65rem;
    color: var(--text-light);
    margin: 0.4rem 0 0 0;
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   TECH STACK EXPERTISE SECTION
   ======================================== */

.tech-stack-section {
    padding: 8rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.tech-stack-section .section-subtitle {
    text-align: center;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-stack-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.tech-stack-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tech-stack-category h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.tech-stack-category i {
    font-size: 1.3rem;
}

.tech-stack-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tech-stack-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.tech-stack-item::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-section {
    padding: 8rem 2rem;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-color);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.blog-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-weight: 700;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.blog-link:hover {
    gap: 0.8rem;
    color: var(--secondary-color);
}

.blog-link i {
    transition: var(--transition);
}

/* ========================================
   SECTION RECOMMENDATIONS
   ======================================== */

.recommendations-section {
    padding: 4rem 2rem;
    background: #f0f4f8;
}

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

.recommendation-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.recommendation-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-left: 6px solid var(--primary-color);
}

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

.recommender-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.recommender-title {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    flex-shrink: 0;
}

.recommendation-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.linkedin-badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0077B5, #00A0DF);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: 600;
}

.linkedin-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* ========================================
   SECTION CERTIFICATIONS
   ======================================== */

.certifications {
    padding: 8rem 2rem;
    background: var(--light-bg);
}

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

.certification-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    display: block;
    text-decoration: none;
    color: inherit;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certification-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cert-date {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   SECTION CONTACT
   ======================================== */

.contact {
    padding: 8rem 2rem;
    background: white;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.contact-button:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.contact-button i {
    font-size: 1.3rem;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item p {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

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

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

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

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.contact-form .btn {
    align-self: flex-start;
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1rem;
    color: var(--text-light-bg);
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer .social-links a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

@keyframes slideInRight {
    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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

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

    .experience-timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .profile-img {
        width: 250px;
        height: 350px;
    }

    .hero-buttons {
        animation: none;
    }

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

    .experience-timeline::before {
        left: 10px;
    }

    .timeline-item::before {
        left: 10px;
    }

    .timeline-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

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

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

    .contact-content {
        gap: 2rem;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 3rem 1rem;
        margin-top: 60px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .profile-img {
        width: 200px;
        height: 280px;
    }

    .about,
    .experience,
    .education,
    .skills,
    .certifications,
    .contact {
        padding: 4rem 1rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .contact-button {
        width: 100%;
        justify-content: center;
    }

    .contact-item {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .contact-details {
        margin-bottom: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat {
        padding: 1.5rem 1rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .skills-grid {
        gap: 1rem;
    }

    .skill-category {
        padding: 1.5rem 1rem;
    }
}