/* ===========================
   AKRAM WEB STUDIO — MAIN CSS
   Moderne, clean, responsive
   =========================== */

/* ---- Reset minimal ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html:focus-within { scroll-behavior: smooth; }
body { margin: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Variables ---- */
:root{
  /* Couleurs (pas noir, style premium) */
  --bg: #f7f8ff;
  --bg2: #ffffff;
  --text: #0f172a;
  --muted: #556277;

  --primary: #5b6cff;      /* bleu violet */
  --primary2: #22c55e;     /* vert accent */
  --accent: #ff7a59;       /* orange accent */
  --line: rgba(15, 23, 42, 0.12);

  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow2: 0 10px 30px rgba(15, 23, 42, 0.10);

  --radius: 18px;
  --radius2: 24px;

  --container: 1100px;
}

/* ---- Typo ---- */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 10% -20%, rgba(91,108,255,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(255,122,89,.14), transparent 55%),
              linear-gradient(#ffffff, #ffffff);
  color: var(--text);
}

h1, h2, h3 { margin: 0 0 8px; letter-spacing: -0.02em; }
p { margin: 0 0 10px; line-height: 1.65; }

.lead { font-size: 1.08rem; }
.muted { color: var(--muted); }
.tiny { font-size: .88rem; }

.grad{
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Layout helpers ---- */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section{ padding: 56px 0; }
.section.soft{
  background: linear-gradient(180deg, rgba(91,108,255,.08), rgba(255,122,89,.06));
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.center{ display:flex; justify-content:center; }

/* ---- Skip link ---- */
.skip-link{
  position:absolute; left:-9999px; top: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 10px;
  box-shadow: var(--shadow2);
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

/* ---- Header / Nav ---- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display:flex; align-items:center; gap: 12px;
  min-width: 220px;
}
.brand-logo{
  width: 38px; height: 38px;
  border-radius: 12px;
  box-shadow: var(--shadow2);
}
.brand-text{ display:flex; flex-direction:column; line-height: 1.1; }
.brand-name{ font-weight: 800; }
.brand-tag{ font-size: .85rem; color: var(--muted); }

.nav{ display:flex; align-items:center; gap: 10px; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav-links a{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  opacity: .92;
}

.nav-links a:hover{
  background: rgba(91,108,255,.10);
}

.nav-links a.active{
  background: rgba(91,108,255,.14);
  border: 1px solid rgba(91,108,255,.18);
}

/* burger */
.nav-toggle{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  box-shadow: var(--shadow2);
}
.nav-toggle span{
  display:block;
  width: 18px; height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow2);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active{ transform: translateY(0px); }

.btn-primary{
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 18px 50px rgba(91,108,255,.25);
}

.btn-ghost{
  background: rgba(255,255,255,.85);
}

.btn-full{ width: 100%; }

/* ---- Cards ---- */
.card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

/* ---- Page hero ---- */
.page-hero{
  position: relative;
  padding: 46px 0 26px;
  overflow: hidden;
}

.page-hero .lead{ max-width: 720px; }

.page-hero-bg{
  position:absolute;
  inset: -20px -20px auto -20px;
  height: 220px;
  background: radial-gradient(600px 200px at 10% 30%, rgba(91,108,255,.22), transparent 60%),
              radial-gradient(520px 200px at 90% 10%, rgba(255,122,89,.18), transparent 55%);
  filter: blur(10px);
  z-index: -1;
}

/* ---- Work cards ---- */
.work{
  overflow:hidden;
  border-radius: var(--radius2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow2);
}
.work-thumb{
  height: 150px;
  background: radial-gradient(320px 140px at 30% 30%, rgba(91,108,255,.22), transparent 60%),
              radial-gradient(320px 140px at 80% 10%, rgba(255,122,89,.18), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.9));
}
.work-thumb.alt{
  background: radial-gradient(320px 140px at 30% 30%, rgba(34,197,94,.20), transparent 60%),
              radial-gradient(320px 140px at 80% 10%, rgba(91,108,255,.16), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.9));
}
.work-thumb.alt2{
  background: radial-gradient(320px 140px at 30% 30%, rgba(255,122,89,.20), transparent 60%),
              radial-gradient(320px 140px at 80% 10%, rgba(34,197,94,.16), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.9));
}
.work-body{ padding: 14px; }
.chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(91,108,255,.10);
  font-size: .85rem;
}

/* ---- CTA ---- */
.cta{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius2);
  background: linear-gradient(90deg, rgba(91,108,255,.14), rgba(255,122,89,.10));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow2);
}

.cta-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* ---- FAQ ---- */
.faq details{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow2);
  margin-bottom: 10px;
}
.faq summary{
  cursor:pointer;
  font-weight: 700;
}
.faq p{ margin-top: 10px; color: var(--muted); }

/* ---- Footer ---- */
.site-footer{
  padding: 28px 0 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.footer-title{ font-weight: 800; margin-bottom: 8px; }
.footer-links li a{
  display:inline-block;
  padding: 6px 0;
  color: var(--muted);
}
.footer-links li a:hover{ color: var(--text); }

.footer-brand{
  display:flex; gap: 10px; align-items:center;
}

.footer-bottom{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

/* ---- Toast ---- */
.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  min-width: 220px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reveal animation ---- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* ---- Forms ---- */
.form label{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-weight: 650;
}
.form input, .form select, .form textarea{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,.92);
  outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus{
  border-color: rgba(91,108,255,.38);
  box-shadow: 0 0 0 4px rgba(91,108,255,.12);
}
.form .row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta{ flex-direction: column; align-items:flex-start; }
}

@media (max-width: 780px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute;
    right: 16px;
    top: 64px;
    width: min(360px, calc(100% - 32px));
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: var(--shadow);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width: 100%; }
  .form .row{ grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html:focus-within{ scroll-behavior: auto; }
  .reveal{ transition:none; }
  .btn{ transition:none; }
}
