:root{
    --bg: #f4f6f8;
    --dark: #121212;
    --muted:#f0f0f3;
    --accent: #18d3c6;
    --card:#ffffff;
    --text:#111;
    --radius:12px;
}

*{box-sizing:border-box}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

/* HEADER */
header{
    background: var(--dark);
    color: white;
}
.header-inner{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 28px;
}
.logo{font-weight:700;font-size:20px}
.logo .accent{color:var(--accent);font-weight:800}
nav a{color:#cfcfcf;margin-left:22px;text-decoration:none;font-size:14px}
nav a:hover{color:var(--accent)}
nav a.active{color:var(--accent);font-weight:600}
#accueil-link { color: var(--accent); }

/* GENERIC SECTION */
.section{padding:60px 20px}
.section h2{ text-align:center;margin-bottom:28px}

/* specific projects heading style */
.projects > h2,
.about h2 {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
}
.container{max-width:1100px;margin:0 auto}
.section .btn{display:inline-block}

/* HERO */
.hero {
    background: #fff;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
    height: 100%;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin: 0 0 5px;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
}

.hero-content .highlight {
    color: var(--accent);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 auto 25px;
    line-height: 1.5;
    max-width: 500px;
    font-weight: 400;
    text-align: center;
}

.btn {
    background: var(--accent);
    color: white;
    padding: 15px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(24, 211, 198, 0.2);
    width: fit-content;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(24, 211, 198, 0.3);
}

.hero-illustration {
    position: relative;
    width: 50%;
    text-align: right;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    display: inline-block;
    vertical-align: middle;
}

.tech-icons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.tech-icons .icon {
    background: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        padding: 60px 20px;
    }
    
    .hero-content, 
    .hero-illustration {
        max-width: 100%;
        width: 100%;
        padding: 0;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        white-space: normal;
        margin: 0 auto 10px;
    }
    
    .hero-subtitle {
        margin: 0 auto 20px;
    }
    
    .btn {
        margin: 20px auto 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .hero-illustration {
        margin-top: 20px;
    }
    
    .hero-image {
        max-height: 400px;
    }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* ABOUT */
.about-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:30px}
.about-text{flex:1}
.about-text .accent {
    color: var(--accent);
    font-weight: 600;
}
.about-photo{flex:0 0 240px;display:flex;align-items:center;justify-content:center}
.about-photo img{width:220px;height:220px;border-radius:50%;object-fit:cover;border:6px solid var(--accent);box-shadow:0 10px 30px rgba(24,211,198,0.08)}

/* PROJECTS */
.projects {background: white; padding: 60px 20px;}
.projects .projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;max-width:1100px;margin:10px auto;padding-top:6px}
.projet{background:var(--bg);padding:28px 22px;border-radius:14px;box-shadow:0 4px 6px rgba(0,0,0,0.05);text-align:center;min-height:180px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;border:1px solid rgba(0,0,0,0.05)}
.projet h3{margin:0 0 8px;font-size:15px;color:#222}
.projet p{color:#555;font-size:13px;margin:0 0 8px;line-height:1.45}
.projet .tags{color:#9aa0a6;font-size:13px;margin:12px 0}
.projet .btn{padding:6px 16px;border-radius:4px;background:var(--accent);box-shadow:none;font-size:14px}

/* SKILLS */
.skills {
    background-color: #f8f9fa;
    padding: 80px 20px;
}

.skills h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2.5rem;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.skills-category {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
}

.skills-category h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #18d3c6;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-category {
        width: 100%;
        max-width: 100%;
    }
}

/* CONTACT (dark) */
.contact-dark {
    background: #111;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.contact-dark .container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-dark h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.contact-dark .accent,
#projets {
    color: var(--accent);
}

.contact-form {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(24, 211, 198, 0.2);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px auto 0;
    width: auto;
    display: block;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 211, 198, 0.3);
}


/* FOOTER */
/* Footer (light strip) */
.site-footer{background:#f6f7f9;border-top:1px solid #e6e6e9}
.site-footer .footer-inner{max-width:1100px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:14px 20px;color:#424244}
.footer-left{font-size:14px}
.footer-author{color:var(--accent);font-weight:700;margin:0 6px}
.footer-right{font-size:14px;color:#616166}

@media (max-width:700px){
    .site-footer .footer-inner{flex-direction:column;gap:8px;text-align:center}
}

/* small screens */
@media (max-width:900px){
    .projects .projects-grid{grid-template-columns:repeat(2,1fr)}
    .about-inner{flex-direction:column;text-align:center}
    .about-photo{flex:0 0 auto}
    .about-photo img{width:180px;height:180px;border-width:4px}
    .hero{flex-direction:column;padding:30px}
    .contact-dark form{grid-template-columns:1fr}
    .contact-dark textarea{grid-column:1}
}

@media (max-width:560px){
    .projects .projects-grid{grid-template-columns:1fr}
    .hero-content h2{font-size:26px}
}
