@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;
}
a{
    text-decoration: none;
}



.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); }
}

/* =====================
   Modern layout overrides
   ===================== */
:root {
    --brand: #0b0c1e;
    --text: #111318;
    --muted: #6b7280;
    --bg-soft: #f6f7fb;
    --surface: #ffffff;
    --ring: #e7e9ee;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--ring);
    z-index: 1000;
}
.navbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 0; }
.brand { display:flex; align-items:center; gap:8px; color:var(--text); text-decoration:none; font-weight:700; }
.brand .chevrons { color: var(--brand); }
.primary-nav { flex:1; display:flex; justify-content:center; }
.primary-nav ul { list-style:none; display:flex; gap:24px; }
.primary-nav a { color:#2b2f36; font-weight:600; text-decoration:none; position:relative; }
.primary-nav a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--brand); transition:width .25s; }
.primary-nav a:hover::after { width:100%; }
.nav-icons { display:flex; align-items:center; gap:16px; color:#4b5563; }
.nav-icons a { color:#4b5563; }
.nav-icons a:hover { color:var(--brand); }
.hamburger { display:none; width:38px; height:38px; border-radius:10px; border:1px solid var(--ring); background:var(--surface); cursor:pointer; align-items:center; justify-content:center; gap:4px; padding:0 6px; }
.hamburger span { display:block; width:20px; height:2px; background:#4b5563; border-radius:2px; }

/* Hero */
.hero-intro { background: linear-gradient(180deg, #fafbfe 0%, #f8f9fc 100%); padding: 72px 0 48px; }
.hero-wrap { text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px; }
.avatar-circle { width:110px; height:110px; border-radius:50%; background:#cfd2d9; color:#0f172a; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:28px; }
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight:800; color:#0f1115; letter-spacing:.5px; }
.hero-sub { color:#5b6170; font-size: clamp(16px, 2.2vw, 22px); max-width:900px; }
.hero-quote { color:#7a7f8c; font-style:italic; margin-top:6px; }
.hero-ctas { display:flex; gap:14px; margin-top:10px; flex-wrap:wrap; justify-content:center; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 20px; border-radius:12px; text-decoration:none; font-weight:700; border:1px solid transparent; }
.btn-primary { background:#0b0c1e; color:#fff; }
.btn-primary:hover { filter:brightness(1.08); }
.btn-outline { background:var(--surface); color:#0b0c1e; border-color:var(--ring); }
.btn-outline:hover { border-color:#cfd2d9; }
.btn-soft { background:#ffffff; color:#0b0c1e; border-color:var(--ring); box-shadow:0 1px 3px #0000000d; }
.btn.full { width:100%; }
.tech-chips { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:14px; }
.tech-chips span { padding:8px 12px; border-radius:999px; background:#eef1f6; color:#3c4250; font-weight:600; font-size:.95rem; }
.scroll-down { display:inline-block; margin-top:18px; color:#9aa0ad; text-decoration:none; font-size:22px; }

/* Sections */
.section-head { text-align:center; margin: 18px 0 28px; }
.section-head h2 { font-size: clamp(28px, 5vw, 44px); }
.section-head p { color:#666c78; }

/* About */
.about-section { background: var(--bg-soft); padding: 56px 0; }
.about-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap:28px; align-items:start; }
.about-text h3 { margin:18px 0 10px; }
.about-text ul { margin-left:18px; display:grid; gap:8px; }
.about-cards { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; }
.pill-card { background:var(--surface); border:1px solid var(--ring); border-radius:16px; padding:18px; box-shadow: 0 1px 3px #0000000a; }
.pill-icon { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#eef1f6; color:#0b0c1e; font-weight:800; margin-bottom:8px; }

/* Projects */
.projects-section { padding:56px 0; }
.projects-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:22px; }
.project-card { background:var(--surface); border:1px solid var(--ring); border-radius:18px; overflow:hidden; box-shadow:0 2px 10px #0000000a; display:flex; flex-direction:column; }
.project-card img { aspect-ratio: 16/9; width:100%; object-fit:cover; }
.project-body { padding:16px; display:flex; flex-direction:column; gap:10px; }
.project-title { font-size:1.15rem; font-weight:700; }
.project-desc { color:#606572; }
.project-tags { display:flex; gap:8px; flex-wrap:wrap; }
.project-tags span { padding:6px 10px; border-radius:999px; background:#eef1f6; color:#3c4250; font-weight:600; font-size:.9rem; }
.project-actions { display:flex; gap:10px; margin-top:auto; }
.project-actions a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px; border:1px solid var(--ring); color:#4b5563; }
.project-actions a:hover { color:var(--brand); border-color:#cfd2d9; }
.section-actions { display:flex; justify-content:center; margin-top:18px; }

/* Skills */
.skills-section { background: var(--bg-soft); padding:56px 0; }
.skills-cards { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:22px; }
.skill-card { background:var(--surface); border:1px solid var(--ring); border-radius:18px; padding:18px; box-shadow:0 2px 10px #0000000a; }
.skill-bars { list-style:none; display:grid; gap:14px; }
.skill-bars li { display:grid; gap:8px; }
.bar-label { display:flex; align-items:center; justify-content:space-between; font-weight:600; }
.bar-track { height:8px; background:#eceef3; border-radius:999px; overflow:hidden; }
.bar-fill { height:100%; background:#0b0c1e; width:0; transition: width .7s ease; }

.stats { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; margin-top:22px; }
.stat { text-align:center; color:#6a6f7b; background:var(--surface); border:1px solid var(--ring); border-radius:16px; padding:16px; }
.stat .num { display:block; font-size:32px; font-weight:800; color:#0f1115; }

/* Contact */
.contact-section { padding:56px 0; }
.contact-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:22px; align-items:start; }
.contact-form form { background:var(--surface); border:1px solid var(--ring); border-radius:18px; padding:18px; display:grid; gap:12px; }
.contact-form input, .contact-form textarea { padding:12px 12px; border:1px solid var(--ring); border-radius:10px; background:#fff; font:inherit; }
.contact-form label { font-weight:600; color:#2b2f36; }
.contact-info { display:grid; gap:18px; }
.info-card { background:var(--surface); border:1px solid var(--ring); border-radius:18px; padding:16px; }
.availability .dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px #22c55e22; margin-right:8px; vertical-align:middle; }

/* Footer */
.site-footer { background:#0b0c1e; color:#d5d7de; margin-top:32px; }
.footer-grid { display:grid; grid-template-columns: 1.2fr .8fr .8fr; gap:22px; padding:28px 0; }
.footer-brand { color:#fff; text-decoration:none; }
.footer-nav { display:grid; gap:8px; }
.footer-nav h4 { color:#eef1f6; margin-bottom:6px; }
.footer-nav a { color:#cbd0da; text-decoration:none; }
.footer-nav a:hover { color:#fff; }
.footer-icons a { color:#cbd0da; }
.footer-icons a:hover { color:#fff; }
.footer-bottom { border-top:1px solid #1b1c2a; padding:12px 0; color:#aeb3bf; }
.footer-bottom .container { display:flex; justify-content:space-between; }

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr; }
  .skills-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .primary-nav { display:none; }
  .hamburger { display:flex; }
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
