/* =============================================
   GRACE GHOMSSI — Site vitrine
   Développeuse freelance Java/Angular & IA
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: #1a1a1a; background: #fff; line-height: 1.6; }

.gold { color: #d4a96a; }
.badge-ai { background: #7c3aed22; border: 1px solid #7c3aed55; color: #a78bfa; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-left: 6px; vertical-align: middle; }

/* ── NAV ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: #0f0f0f; position: sticky; top: 0; z-index: 100; }
.nav-logo { font-size: 15px; font-weight: 600; color: #d4a96a; letter-spacing: 1px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: #d4a96a; }
.nav-cta { background: #d4a96a; color: #0f0f0f; padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; }
.nav-burger { display: none; background: none; border: none; color: white; font-size: 22px; cursor: pointer; }
.mobile-menu { display: none; background: #1a1a1a; padding: 1rem 2rem; flex-direction: column; gap: 1rem; }
.mobile-menu a { color: #ccc; text-decoration: none; font-size: 15px; padding: 0.5rem 0; border-bottom: 1px solid #333; }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, #0f0f0f 0%, #1a1208 100%); padding: 5rem 2rem 4rem; text-align: center; color: white; }
.hero-badge { display: inline-block; border: 1px solid #d4a96a44; color: #d4a96a; padding: 5px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(26px, 5vw, 44px); font-weight: 600; margin-bottom: 1rem; line-height: 1.2; }
.hero-sub { color: #999; font-size: 15px; max-width: 520px; margin: 0 auto 2rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary { background: #d4a96a; color: #0f0f0f; padding: 13px 30px; border-radius: 25px; font-size: 15px; font-weight: 600; text-decoration: none; transition: opacity 0.2s, transform 0.1s; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: white; border: 1px solid #444; padding: 13px 30px; border-radius: 25px; font-size: 15px; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: #d4a96a; color: #d4a96a; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; }
.stat-num { font-size: 24px; font-weight: 700; color: #d4a96a; }
.stat-label { font-size: 12px; color: #666; margin-top: 2px; }

/* ── SECTIONS ── */
.section { padding: 4rem 2rem; max-width: 960px; margin: 0 auto; }
.section-alt { background: #faf8f5; padding: 4rem 2rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-title { font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: #777; font-size: 15px; margin-bottom: 2.5rem; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.service-card { background: white; border: 1px solid #eee; border-radius: 12px; padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.service-icon { font-size: 28px; margin-bottom: 0.75rem; }
.service-icon.purple { color: #a78bfa; }
.service-icon.gold { color: #d4a96a; }
.service-icon.teal { color: #5dcaa5; }
.service-icon.gray { color: #888; }
.service-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.service-desc { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 1rem; }
.service-price { font-size: 14px; color: #d4a96a; font-weight: 600; }

/* ── PORTFOLIO ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.project-card { background: white; border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.project-preview { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.project-preview.dark { background: #1a1a1a; }
.project-preview.light { background: #f5f0ea; }
.project-info { padding: 1.25rem; }
.project-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.project-desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 10px; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { background: #f5f5f5; border: 1px solid #eee; border-radius: 10px; padding: 3px 10px; font-size: 11px; color: #666; }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d4a96a; text-decoration: none; font-weight: 500; }
.project-link:hover { text-decoration: underline; }

/* ── STACK ── */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.75rem; }
.stack-item { background: white; border: 1px solid #eee; border-radius: 10px; padding: 1.25rem 1rem; text-align: center; transition: border-color 0.2s; }
.stack-item:hover { border-color: #d4a96a; }
.stack-icon { font-size: 28px; margin-bottom: 8px; }
.stack-name { font-size: 12px; font-weight: 600; color: #444; }

/* ── CONTACT ── */
.contact-card { background: white; border: 1px solid #eee; border-radius: 12px; padding: 2rem; max-width: 520px; margin: 0 auto; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #888; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; color: #333; background: white; transition: border-color 0.2s; }
input:focus, textarea:focus { outline: none; border-color: #d4a96a; }
textarea { resize: vertical; }
.send-btn { width: 100%; background: #d4a96a; color: #0f0f0f; border: none; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.2s; margin-top: 0.5rem; }
.send-btn:hover { opacity: 0.9; }
.send-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.success-msg { display: none; background: #eaf5ef; border: 1px solid #a3d9b8; border-radius: 8px; padding: 1rem; text-align: center; font-size: 14px; color: #2d7a4f; margin-top: 1rem; }
.error-msg { display: none; background: #fdecea; border: 1px solid #f5c6c6; border-radius: 8px; padding: 1rem; text-align: center; font-size: 14px; color: #c0392b; margin-top: 1rem; }
.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.contact-link { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid #eee; border-radius: 10px; padding: 10px 18px; text-decoration: none; color: #333; font-size: 13px; font-weight: 500; transition: border-color 0.2s; }
.contact-link:hover { border-color: #d4a96a; }

/* ── FOOTER ── */
.footer { background: #0f0f0f; color: #555; padding: 2rem; text-align: center; font-size: 14px; }
.footer strong { color: #d4a96a; }
.footer-sub { display: block; margin-top: 6px; font-size: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero { padding: 3rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3rem 1.25rem; }
  .section-alt { padding: 3rem 1.25rem; }
}
