/* ===============================================
           PORTFOLIO.CSS - INFINITY DEV
           Version minimaliste et professionnelle
           =============================================== */

/* VARIABLES & RESET */
:root {
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --cyan: #00D9D9;
    --cyan-dark: #00B8B8;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E7EB;
    --gray-300: #E0E0E0;
    --gray-500: #9CA3AF;
    --gray-700: #4B5563;
    --gray-900: #1F2937;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --container: 1280px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* TYPOGRAPHIE */
h1,
h2,
h3,
h4,
.logo,
.btn-primary {
    font-family: 'Space Grotesk', monospace;
}

h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    color: var(--gray-700);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

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

.badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* BOUTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

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

/* HEADER & NAVIGATION */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-300);
    height: 80px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: px 24px;
}

.logo img {
    width: 90px;
    height: auto;
}

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

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.btn-devis {
    padding: 10px 20px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-devis:hover {
    background: var(--cyan);
    color: var(--black);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
}

/* PAGE HEADER */
.page-header {
    padding: 80px 0 60px;
    background: #010422;
    text-align: center;
}

.page-header span {
    color: #00B8B8;
}

.page-header-content h1 {
    margin-bottom: 16px;
    color: white;
}

.page-header-content p {
    font-size: 18px;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* BIO SECTION (FONDATEUR) */
.bio-section {
    padding: 60px 0;
    background: var(--white);
}

.bio-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.bio-card {
    text-align: center;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
}

.bio-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
}

.bio-card h3 {
    margin-bottom: 8px;
}

.bio-card .bio-title {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 500;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-card i {
    font-size: 32px;
    color: var(--cyan);
    margin-bottom: 16px;
}

.skill-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

/* PORTFOLIO GALLERY */
.portfolio-gallery {
    padding: 60px 0;
    background: var(--gray-100);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cyan);
    color: var(--black);
    border-color: var(--cyan);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.portfolio-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--gray-700);
}

/* CTA SECTION */
.cta-final {
    padding: 80px 0;
    background: var(--black);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
    color: var(--white);
}

.cta-content p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--black);
}

.cta-buttons .btn-primary:hover {
    background: var(--cyan);
    color: var(--black);
}

/* FOOTER */
.footer {
    background: var(--gray-100);
    padding: 60px 0 24px;
    border-top: 1px solid var(--gray-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--black);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-700);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--cyan);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    width: 20px;
    color: var(--cyan);
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    color: var(--gray-700);
    transition: var(--transition);
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-300);
    font-size: 13px;
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--cyan);
}

/* ANIMATIONS */
.bio-section,
.portfolio-gallery,
.cta-final {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bio-section.visible,
.portfolio-gallery.visible,
.cta-final.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header .container {
        padding: 12px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: left 0.3s ease;
        z-index: 99;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 48px 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .btn-devis {
        display: none;
    }

    .page-header {
        padding: 50px 0 40px;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bio-card {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .portfolio-gallery {
        padding: 50px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .filter-buttons {
        gap: 12px;
    }

    .filter-btn {
        padding: 6px 18px;
        font-size: 13px;
    }

    .cta-final {
        padding: 50px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 280px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-contact ul {
        align-items: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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