@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;500&display=swap');
:root {
    --primary: #2196f3;
    --secondary: #00bcd4;
    --accent: #ffd600;
    --bg: #f5f7fa;
    --white: #fff;
    --dark: #222;
    --gray: #c3cfe2;
    --radius: 18px;
    --shadow: 0 4px 24px rgba(33,150,243,0.08);
    --transition: 0.3s cubic-bezier(.4,2,.6,1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}
body {
    background: var(--bg);
    color: var(--dark);
    min-height: 100vh;
    scroll-behavior: smooth;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition);
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}
.profile {
    display: flex;
    align-items: center;
    gap: 18px;
}
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(33,150,243,0.12);
    animation: fadeIn 1s;
}
.job-title {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1.1rem;
}
nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}
nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition);
}
nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    position: absolute;
    left: 0;
    bottom: -4px;
}
nav a:hover {
    color: var(--primary);
}
nav a:hover::after {
    width: 100%;
}
.socials a img {
    width: 28px;
    margin-left: 10px;
    filter: grayscale(1) brightness(0.7);
    transition: filter var(--transition), transform var(--transition);
}
.socials a img:hover {
    filter: none;
    transform: scale(1.15) rotate(-8deg);
}
.hero {
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0 60px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    animation: fadeInDown 1.2s;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.cta {
    display: inline-block;
    margin-top: 32px;
    padding: 16px 48px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 32px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    animation: fadeIn 1.5s;
}
.cta:hover {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.07);
}
.about {
    margin-top: 60px;
    margin-bottom: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    animation: fadeIn 1.2s;
}
.about-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.about-img {
    width: 220px;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(33,150,243,0.10);
    animation: fadeInRight 1.2s;
}
.about-list {
    margin-top: 18px;
    list-style: none;
    color: var(--primary);
    font-size: 1.05rem;
}
.skills {
    margin-bottom: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    animation: fadeIn 1.3s;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 24px;
}
.skill-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(33,150,243,0.07);
    padding: 24px 18px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeInUp 1.1s;
}
.skill-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(33,150,243,0.13);
}
.projects {
    margin-bottom: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    animation: fadeIn 1.4s;
}
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.project-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(33,150,243,0.09);
    width: 330px;
    padding: 0 0 18px 0;
    text-align: left;
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    animation: fadeInUp 1.2s;
    position: relative;
}
.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: filter var(--transition), transform var(--transition);
}
.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 36px rgba(33,150,243,0.18);
}
.project-card:hover img {
    filter: brightness(0.92) blur(1px);
    transform: scale(1.04);
}
.project-content {
    padding: 18px 20px 0 20px;
}
.project-content h3 {
    color: var(--primary);
    margin-bottom: 8px;
}
.tags {
    margin: 10px 0 12px 0;
}
.tags span {
    background: var(--secondary);
    color: var(--white);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.9rem;
    margin-right: 6px;
    display: inline-block;
    margin-bottom: 3px;
}
.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}
.project-link:hover {
    color: var(--accent);
}
.testimonials {
    margin-bottom: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    animation: fadeIn 1.5s;
}
.testimonial-list {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(33,150,243,0.07);
    padding: 28px 22px;
    max-width: 350px;
    font-style: italic;
    color: #444;
    animation: fadeInUp 1.2s;
}
.testimonial-card span {
    display: block;
    margin-top: 12px;
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}
.contact {
    margin-bottom: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    animation: fadeIn 1.6s;
}
.contact form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    gap: 16px;
}
.contact input, .contact textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--gray);
    font-size: 1rem;
    resize: none;
    background: var(--bg);
    transition: border var(--transition), box-shadow var(--transition);
}
.contact input:focus, .contact textarea:focus {
    border: 1.5px solid var(--primary);
    outline: none;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
}
.contact button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
}
.contact button:hover {
    background: var(--secondary);
    transform: scale(1.04);
}
footer {
    background: var(--dark);
    color: var(--white);
    padding: 24px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 40px;
    box-shadow: 0 -2px 12px rgba(33,150,243,0.07);
}
.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-socials a img {
    width: 28px;
    margin-left: 10px;
    filter: grayscale(1) brightness(0.7);
    transition: filter var(--transition), transform var(--transition);
}
.footer-socials a img:hover {
    filter: none;
    transform: scale(1.15) rotate(-8deg);
}
/* Table services */
.services-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}
.services-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 auto 18px auto;
    font-size: 1.05rem;
    min-width: 320px;
    animation: fadeIn 1.2s;
}
.services-table th, .services-table td {
    padding: 14px 12px;
    text-align: left;
}
.services-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.08rem;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}
.services-table tr:nth-child(even) {
    background: var(--bg);
}
.services-table tr:hover td {
    background: var(--secondary);
    color: var(--white);
    transition: background 0.2s, color 0.2s;
}
.services-table td {
    border-bottom: 1px solid var(--gray);
}
.services-table tr:last-child td {
    border-bottom: none;
}
.services-note {
    text-align: center;
    color: var(--primary);
    font-size: 1.02rem;
    margin-top: 10px;
    margin-bottom: 0;
}
/* Paiement & sécurité */
.payment-info {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    margin: 40px auto 40px auto;
    max-width: 700px;
    animation: fadeIn 1.2s;
}
.payment-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}
.payment-list li {
    font-size: 1.08rem;
    margin-bottom: 6px;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-security {
    color: #333;
    font-size: 1.04rem;
    margin-top: 0;
    line-height: 1.6;
}
/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 36px;
    height: 36px;
    gap: 6px;
    z-index: 120;
}
.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}
@media (max-width: 900px) {
    nav ul.nav-list {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 260px;
    height: 100vh;
    background: rgba(30, 34, 45, 0.97);
    color: #fff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
    z-index: 200;
    transition: left 0.35s cubic-bezier(.4,2,.6,1);
    display: flex;
    flex-direction: column;
    padding-top: 24px;
}
.mobile-menu.open {
    left: 0;
}
.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 18px 12px 0;
}
.close-mobile-menu {
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
    border-radius: 4px;
    padding: 2px 8px;
    user-select: none;
}
.close-mobile-menu:hover, .close-mobile-menu:focus, .close-mobile-menu.active {
    color: #e53935;
    background: rgba(255,255,255,0.08);
}
.mobile-menu ul {
    list-style: none;
    padding: 0 0 0 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.18rem;
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-menu ul li a:hover {
    color: var(--accent);
}
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(30,34,45,0.35);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-menu.open::before {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 1000px) {
    .header-flex, .footer-flex {
        flex-direction: column;
        gap: 18px;
    }
    .about-flex {
        flex-direction: column;
        gap: 24px;
    }
    .project-list, .testimonial-list {
        flex-direction: column;
        gap: 24px;
    }
}
@media (max-width: 700px) {
    .container {
        width: 98%;
        padding: 0 2vw;
    }
    .about, .skills, .projects, .testimonials, .contact {
        padding: 24px 6px;
    }
    .hero {
        padding: 48px 0 32px 0;
    }
    .services-table th, .services-table td {
        padding: 10px 6px;
        font-size: 0.98rem;
    }
    .payment-info {
        padding: 18px 6px;
    }
    .payment-list li {
        font-size: 1rem;
    }
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
