/* Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --accent: #059669;
    --transition: all 0.3s ease;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: var(--header-bg-scrolled);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

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

.logo i {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Bascule de thème clair / sombre */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--dark);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.theme-toggle i {
    position: absolute;
    font-size: 1.05rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.theme-icon-light { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-icon-dark { opacity: 1; transform: rotate(0) scale(1); }

[data-theme="dark"] .theme-icon-dark { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="dark"] .theme-icon-light { opacity: 1; transform: rotate(0) scale(1); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--hero-tint-strong) 0%, var(--hero-tint-mid) 38%, var(--hero-tint-soft) 100%), url("images/image.png") right center / cover no-repeat;
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: -1;
    opacity: 0.34;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.profile-circle::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: var(--light);
    z-index: 1;
}

.profile-circle::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: url('images/pic-ricardo.png') center/cover no-repeat;
    z-index: 2;
}

.greeting {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.hero-btns {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.5s;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
}

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

/* About Section */
.about {
    background: var(--surface-alt);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
    transition: var(--transition);
}

.about-img:hover {
    transform: rotate(0);
}

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

.about-text {
    flex: 1;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-description {
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-category {
    background: var(--surface);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

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

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul li {
    margin-bottom: 15px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--light-gray);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--surface);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-gray);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.wordpress {
    background: #21759b;
    color: white;
}

.ecommerce {
    background: #7c3aed;
    color: white;
}

.frontend {
    background: #059669;
    color: white;
}

.project-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 5px 12px;
    background: var(--light-gray);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--light-gray);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 50px;
}

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

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    top: 30px;
    left: calc(50% - 10px);
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    left: calc(100% - 10px);
}

.timeline-item:nth-child(even)::before {
    left: calc(-10px);
}

.timeline-content {
    background: var(--surface);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-company {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--gray);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
}

.contact-form {
    background: var(--surface);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Footer */
footer {
    background: var(--ink);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Cursor effect */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }

    .hero-content,
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .about-text,
    .about-img {
        flex: none;
        width: 100%;
    }

    .about-img {
        margin: 0 auto;
    }

    .profile-circle {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

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

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 20px;
    }
}

@media (max-width: 768px) {

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

    .hero-title {
        font-size: 2.3rem;
    }

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

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

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

    .footer-content {
        text-align: center;
    }

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

@media (max-width: 576px) {
    .hero {
        text-align: center;
    }

    .profile-circle {
        width: 250px;
        height: 250px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .section {
        padding: 60px 0;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 1100px) {

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 400px);
        background: var(--surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

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

    .hamburger {
        display: block;
    }
}
/* =========================================================
   PORTFOLIO V2 - enrichissement visuel et responsive
   Les interactions et animations existantes sont conservées.
   ========================================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --ink: #0f172a;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --surface-alt: #f1f5f9;
    --surface-alt-2: #eef3f8;
    --card-glass: rgba(255, 255, 255, 0.58);
    --img-border: rgba(255, 255, 255, 0.8);
    --chip-glass: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-bg-scrolled: rgba(255, 255, 255, 0.98);
    --hero-tint-strong: rgba(248, 250, 252, 0.96);
    --hero-tint-mid: rgba(248, 250, 252, 0.72);
    --hero-tint-soft: rgba(248, 250, 252, 0.20);
    --border: rgba(15, 23, 42, 0.09);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.14);
    --radius: 18px;
    color-scheme: light;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --secondary: #a78bfa;
    --dark: #f1f5f9;
    --light: #0b1220;
    --gray: #94a3b8;
    --light-gray: #263449;
    --surface: #131c2e;
    --surface-soft: #16233a;
    --surface-alt: #101828;
    --surface-alt-2: #0d1626;
    --card-glass: rgba(255, 255, 255, 0.04);
    --img-border: rgba(255, 255, 255, 0.1);
    --chip-glass: rgba(15, 23, 42, 0.75);
    --header-bg: rgba(11, 18, 32, 0.85);
    --header-bg-scrolled: rgba(11, 18, 32, 0.94);
    --hero-tint-strong: rgba(11, 18, 32, 0.96);
    --hero-tint-mid: rgba(11, 18, 32, 0.75);
    --hero-tint-soft: rgba(11, 18, 32, 0.2);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

html { scroll-padding-top: 90px; }
body { background: var(--light); }

body, header, footer, .skill-category, .project-card, .timeline-content,
.contact-form, .quality-card, .form-control, .info-item, .about-principles div,
.tech-tag, .project-category, .filter-btn, .social-icons a, .footer-social a,
.theme-toggle {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
::selection { background: rgba(37, 99, 235, .18); color: var(--dark); }

.logo-pic {
    display: inline-block;
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: url("images/logo.png") center / cover no-repeat;
}

.hamburger {
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 9px;
    border-radius: 10px;
}
.hamburger span { display:block; width:24px; height:2px; margin:5px auto; background:var(--dark); transition:var(--transition); }
.hamburger.is-open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity:0; }
.hamburger.is-open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.hero { background: radial-gradient(circle at 80% 20%, rgba(124,58,237,.09), transparent 34%), linear-gradient(180deg, var(--surface) 0%, var(--light) 100%); }
.hero::before { opacity: .34; filter: saturate(.82); }
.hero::after { content:''; position:absolute; inset:auto 0 0; height:1px; background:linear-gradient(90deg,transparent,rgba(37,99,235,.2),transparent); }
.hero-content { position:relative; z-index:2; }
.hero-title { letter-spacing:-.045em; font-size:clamp(3rem,6vw,5rem); margin-bottom:16px; }
.hero-title span { display:block; color:var(--primary); }
.hero-role { max-width:680px; margin-bottom:14px; font-size:clamp(1.1rem,2vw,1.45rem); font-weight:650; line-height:1.45; }
.hero-role strong { color:var(--secondary); margin:0 4px; }
.hero-subtitle { font-size:1.08rem; line-height:1.8; }
.hero-btns .btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; }
.social-icons a { font-weight:800; font-size:.82rem; letter-spacing:-.03em; }
.hero-orb { position:absolute; border-radius:50%; pointer-events:none; filter:blur(2px); opacity:.7; }
.hero-orb-one { width:260px; height:260px; right:8%; top:16%; background:rgba(37,99,235,.08); }
.hero-orb-two { width:150px; height:150px; left:3%; bottom:10%; background:rgba(124,58,237,.07); }
.hero-image { min-height:440px; }
.profile-circle { width:clamp(270px,32vw,390px); height:clamp(270px,32vw,390px); background:linear-gradient(145deg,#2563eb,#7c3aed); border:10px solid rgba(255,255,255,.78); box-shadow:0 30px 80px rgba(37,99,235,.2); }
.profile-initials { position:relative; z-index:3; font-size:clamp(5rem,11vw,9rem); font-weight:800; letter-spacing:-.09em; color:var(--dark); }
.profile-label { position:absolute; z-index:4; bottom:25%; padding:7px 12px; border:1px solid rgba(15,23,42,.08); border-radius:999px; background:rgba(255,255,255,.8); font-size:.7rem; letter-spacing:.15em; font-weight:800; color:var(--gray); }
.floating-badge { position:absolute; z-index:5; padding:11px 15px; border:1px solid rgba(15,23,42,.08); border-radius:12px; box-shadow:var(--shadow); backdrop-filter:blur(10px); font-size:.78rem; font-weight:800; letter-spacing:.04em; }
.badge-top { top:12%; right:2%; }
.badge-bottom { bottom:30%; left:3%; }
.scroll-hint { position:absolute; bottom:-100px; left:0px; display:inline-flex; align-items:center; gap:10px; color:var(--gray); font-size:.82rem; font-weight:650; }
.scroll-hint span { display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--light-gray); border-radius:50%; color:var(--primary); }

.section { padding:110px 0; }
.section-heading { margin-bottom:52px; }
.section-kicker { display:block; margin-bottom:10px; color:var(--primary); font-size:.76rem; font-weight:800; letter-spacing:.16em; }
.section-lead { max-width:650px; margin:0 auto; color:var(--gray); font-size:1.05rem; }
.section-heading:not(.text-center) .section-lead { margin-left:0; }

.about { background:linear-gradient(180deg,var(--surface-alt) 0%,var(--surface-alt-2) 100%); }
.about-content { gap:70px; }
.about-img { position:relative; border:1px solid var(--img-border); }
.about-img-caption { position:absolute; left:20px; bottom:20px; display:flex; gap:8px; align-items:center; padding:10px 14px; border-radius:10px; background:rgba(15,23,42,.82); color:#fff; font-size:.82rem; backdrop-filter:blur(8px); }
.about-img-caption span { color:#cbd5e1; }
.about-title { font-size:clamp(1.9rem,3vw,2.6rem); letter-spacing:-.04em; }
.about-description { line-height:1.8; }
.about-principles { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:30px 0; }
.about-principles div { padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--card-glass); }
.about-principles span { display:block; margin-bottom:4px; color:var(--primary); font-size:.72rem; font-weight:800; }
.about-principles strong { font-size:.92rem; }
.info-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-bottom:26px; }
.info-item { margin-bottom:0; padding:14px; border:1px solid var(--border); border-radius:13px; background:var(--card-glass); }
.info-icon { width:40px; height:40px; flex:0 0 40px; border-radius:10px; background:var(--primary); color:#fff; display:grid; place-items:center; font-size:.76rem; font-weight:800; }
.info-item h4 { font-size:.78rem; color:var(--gray); margin-bottom:2px; }
.info-item p { font-size:.9rem; font-weight:650; }
.btn-small { padding:10px 18px; font-size:.9rem; display:inline-flex; gap:8px; align-items:center; }

.skills-container { margin-top:0; }
.skill-category { position:relative; border:1px solid var(--border); border-top:0; overflow:hidden; }
.skill-category::before { content:''; position:absolute; top:0; left:0; width:100%; height:4px; background:linear-gradient(90deg,var(--primary),var(--secondary)); }
.skill-number { position:absolute; right:28px; top:17px; color:#cbd5e1; font-size:1rem; font-weight:800; }
.skill-category h3 { padding-right:40px; }
.skill-icon { display:inline-grid; place-items:center; width:40px; height:40px; border-radius:10px; background:var(--surface-soft); color:var(--primary); font-size:1.2rem; font-weight:800; }
.learning-strip { margin-top:24px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 20px; border:1px solid rgba(37,99,235,.14); border-radius:14px; background:var(--surface); }
.learning-strip > div { display:flex; align-items:center; gap:9px; white-space:nowrap; }
.learning-strip p { color:var(--gray); font-size:.9rem; }
.status-dot { width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px rgba(5,150,105,.1); }

.projects-section { background:var(--surface); }
.projects-filter { margin-top:0; }
.filter-btn { border:1px solid transparent; }
.filter-btn.active, .filter-btn:hover { border-color:var(--primary); }
.projects-grid { align-items:stretch; }
.project-card { display:flex; flex-direction:column; border:1px solid var(--border); }
.project-card.is-hidden { display:none; }
.project-card:hover { border-color:rgba(37,99,235,.2); }
.project-img { position:relative; height:220px; background:var(--surface-alt); }
.project-img::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(15,23,42,.48)); pointer-events:none; }
.project-index, .project-status { position:absolute; z-index:2; top:15px; padding:6px 10px; border-radius:999px; background:var(--chip-glass); color:var(--dark); font-size:.68rem; font-weight:800; }
.project-index { left:15px; }
.project-status { right:15px; color:var(--primary); }
.project-content { display:flex; flex:1; flex-direction:column; padding:26px; }
.project-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; color:var(--gray); font-size:.74rem; font-weight:650; }
.project-category { margin-bottom:0; font-weight:750; }
.project-title { letter-spacing:-.03em; }
.project-description { line-height:1.72; }
.project-tech { margin-top:auto; padding-top:4px; }
.tech-tag { border:1px solid var(--border); background:var(--surface-alt); }
.project-actions { display:flex; gap:18px; flex-wrap:wrap; margin-top:4px; }
.project-link { display:inline-flex; align-items:center; gap:7px; width:max-content; color:var(--primary); font-size:.88rem; font-weight:800; }
.project-link:hover { gap:11px; }
.secondary-link { color:var(--gray); }
.disabled { color:#94a3b8; cursor:default; }
.project-roadmap { display:flex; flex-wrap:wrap; gap:8px; margin:2px 0 18px; }
.project-roadmap span { padding:6px 9px; border-radius:8px; background:var(--surface-alt); color:var(--gray); font-size:.72rem; font-weight:700; }
.projects-footer { display:flex; justify-content:center; margin-top:42px; }

.timeline-content { border:1px solid var(--border); }
.timeline-badge { display:inline-block; margin-left:8px; padding:4px 8px; border-radius:999px; background:#ecfdf5; color:#047857; font-size:.68rem; vertical-align:middle; }
.timeline-badge.current { background:#eff6ff; color:var(--primary); }

.qualities-section { background:var(--surface-alt); }
.qualities-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.quality-card { position:relative; padding:28px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.quality-index { display:block; margin-bottom:28px; color:#cbd5e1; font-weight:800; }
.quality-card h3 { margin-bottom:20px; }
.tag-list { display:flex; flex-wrap:wrap; gap:8px; }
.tag-list span { padding:7px 10px; border-radius:999px; background:var(--surface-alt); color:var(--gray); font-size:.78rem; }
.language-row { display:flex; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--light-gray); }
.language-row:last-child { border-bottom:0; }
.language-row span { color:var(--gray); font-size:.86rem; text-align:right; }

.opportunity-section { padding-top:70px; padding-bottom:70px; background:var(--surface); }
.opportunity-card { display:flex; align-items:center; justify-content:space-between; gap:35px; padding:42px; border-radius:22px; background:linear-gradient(135deg,var(--surface-soft),var(--surface-alt-2)); border:1px solid rgba(37,99,235,.1); }
.opportunity-card h2 { margin:5px 0 12px; font-size:clamp(1.8rem,4vw,3rem); letter-spacing:-.04em; }
.opportunity-card p { max-width:720px; color:var(--gray); line-height:1.8; }
.opportunity-card .btn { flex:0 0 auto; }

.contact-section { background:var(--light); }
.contact-container { align-items:start; }
.contact-item { padding:14px 0; }
.contact-icon { width:48px; height:48px; border-radius:13px; background:var(--ink); color:#fff; display:grid; place-items:center; font-size:.72rem; font-weight:800; flex:0 0 48px; }
.contact-form { border:1px solid var(--border); box-shadow:var(--shadow); }
.form-note { margin-bottom:24px; padding:14px 16px; border-radius:12px; background:var(--surface-alt); border:1px solid var(--border); }
.form-note span { color:var(--primary); font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.form-note p { margin-top:4px; color:var(--gray); font-size:.88rem; }
.form-control { background:var(--surface); color:var(--dark); }

.form-status { min-height: 1.2em; font-size: .88rem; font-weight: 600; margin: -6px 0 4px; }
.form-status.success { color: #059669; }
.form-status.error { color: #dc2626; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.contact-form.is-loading { position: relative; pointer-events: none; }
.contact-form.is-loading .form-group,
.contact-form.is-loading .form-actions { opacity: .55; transition: opacity .2s ease; }
.contact-form.is-loading #submitBtn { opacity: 1; }

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: btnSpin .7s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #fff;
}
.form-control:focus { box-shadow:0 0 0 4px rgba(37,99,235,.08); }

footer { background:var(--ink); }
.footer-column p { color:#cbd5e1; }
.footer-social a { font-size:.75rem; font-weight:800; }

/* Scroll reveal - cascade échelonnée, easing plus doux */
.section-heading, .about-description, .info-item, .about-principles, .skill-category, .learning-strip, .projects-filter, .project-card, .timeline-item, .quality-card, .opportunity-card, .contact-item, .contact-form {
    opacity: 0;
    transform: translateY(34px) scale(.98);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    transition-delay: calc(var(--delay, 0) * 1ms);
    will-change: opacity, transform;
}
.section-heading.visible, .about-description.visible, .info-item.visible, .about-principles.visible, .skill-category.visible, .learning-strip.visible, .projects-filter.visible, .project-card.visible, .timeline-item.visible, .quality-card.visible, .opportunity-card.visible, .contact-item.visible, .contact-form.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* La timeline garde son axe central : les items glissent depuis leur côté */
.timeline-item { transform: translateY(18px) translateX(-32px); }
.timeline-item:nth-child(even) { transform: translateY(18px) translateX(32px); }
.timeline-item.visible { transform: translateY(0) translateX(0); }

@keyframes filterReveal { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.cursor.is-hovering { transform:translate(-50%,-50%) scale(2); }
.cursor-follower.is-hovering { transform:translate(-50%,-50%) scale(1.5); }

/* Barre de progression de lecture */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1100;
    transition: width .1s linear;
}

@media (max-width: 992px) {
    .hero-content { gap:30px; }
    .hero-image { min-height:380px; }
    .floating-badge { font-size:.7rem; }
    .badge-top { right: -10%; }
    .qualities-grid { grid-template-columns:1fr 1fr; }
    .quality-card:last-child { grid-column:1 / -1; }
    .learning-strip { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 768px) {
    .container { width:94%; padding:0 14px; }
    .section { padding:82px 0; }
    .navbar { padding:15px 0; }
    .nav-links { top:70px; height:calc(100vh - 70px); padding:30px 20px; }
    .hero { min-height:auto; padding:130px 0 80px; }
    .hero-content { flex-direction:column; text-align:center; }
    .hero-text { width:100%; }
    .hero-subtitle { margin-left:auto; margin-right:auto; }
    .hero-btns { justify-content:center; flex-wrap:wrap; }
    .hero-btns .btn { width:auto; min-width:190px; }
    .social-icons { justify-content:center; }
    .hero-image { width:100%; min-height:340px; }
    .profile-circle { width:280px; height:280px; }
    .badge-top { right:10%; }
    .badge-bottom { left:10%; }
    .scroll-hint { position:relative; left:auto; bottom:auto; justify-content:center; margin-top:30px; }
    .info-grid { grid-template-columns:1fr; }
    .about-principles { grid-template-columns:1fr; }
    .qualities-grid { grid-template-columns:1fr; }
    .quality-card:last-child { grid-column:auto; }
    .opportunity-card { align-items:flex-start; flex-direction:column; padding:30px; }
    .opportunity-card .btn { width:auto; }
    .contact-form { padding:28px; }
}

@media (max-width: 576px) {
    .hero-title { font-size:2.65rem; }
    .hero-role { font-size:1.05rem; }
    .hero-btns { flex-direction:column; width:100%; }
    .hero-btns .btn, .opportunity-card .btn { width:100%; }
    .hero-image { min-height:300px; }
    .profile-circle { width:235px; height:235px; border-width:7px; }
    .profile-initials { font-size:5rem; }
    .profile-label { bottom:22%; font-size:.58rem; }
    .floating-badge { padding:8px 10px; font-size:.62rem; }
    .badge-top { top:7%; right:0; }
    .badge-bottom { bottom: 30%; left: 50px; }
    .project-img { height:190px; }
    .project-content { padding:22px; }
    .project-meta { align-items:flex-start; flex-direction:column; }
    .project-actions { gap:12px; }
    .projects-filter { gap:8px; }
    .filter-btn { padding:9px 13px; font-size:.82rem; }
    .timeline-content { padding:23px; }
    .timeline-badge { margin:6px 0 0; }
    .copyright { font-size:.78rem; }
}

@media (hover: none), (pointer: coarse) {
    .cursor, .cursor-follower { display:none !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior:auto; }
    *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
    .section-heading, .about-description, .info-item, .about-principles, .skill-category, .learning-strip, .projects-filter, .project-card, .timeline-item, .quality-card, .opportunity-card, .contact-item, .contact-form, .timeline-item:nth-child(even) { opacity:1; transform:none; }
    .profile-circle { animation:none; }
    #scroll-progress { display:none; }
}


/* Iconographie enrichie */
.greeting-icon, .skill-icon, .info-icon, .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.greeting-icon i, .skill-icon i, .info-icon i, .contact-icon i {
    line-height: 1;
}
.social-icons a, .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.social-icons a i, .footer-social a i {
    font-size: 1rem;
}
.hero::before {
    background-position: center right;
}
@media (max-width: 768px) {
    .hero::before {
        width: 100%;
        opacity: .16;
        clip-path: none;
        background: linear-gradient(180deg, var(--hero-tint-strong), var(--hero-tint-mid)), url("images/image.png") center / cover no-repeat;
    }
}

/* ---------------------------------------------------
   Protection des images (sélection, drag, appui long mobile)
   --------------------------------------------------- */
img,
.profile-circle,
.profile-circle::after,
.logo-pic,
.project-img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}
