/* ==========================================================================
   AEM Conseil — Agence de création de sites internet
   Feuille de style principale (site vitrine)
   ========================================================================== */

:root {
  --ink: #0b1020;
  --ink-soft: #1a2138;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --muted: #5b6478;
  --line: #e6e8ef;
  --brand: #5b4bff;
  --brand-2: #14b8f0;
  --brand-grad: linear-gradient(120deg, #6d5efc 0%, #14b8f0 100%);
  --accent: #ff6b3d;
  --ok: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(16, 24, 64, .18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 64, .28);
  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .4em; }
h2.section-title { font-size: clamp(28px, 4vw, 44px); }
.section-lead { color: var(--muted); font-size: 18px; max-width: 620px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Boutons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 12px 24px -8px rgba(91, 75, 255, .5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand-grad);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 8px 18px -6px rgba(91,75,255,.6);
}
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--ink-soft); font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(20,184,240,.35), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(109,94,252,.45), transparent 60%);
}
.hero-inner { position: relative; padding: 100px 0 110px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); color: #fff; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: #c7cde0; max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-badges div { font-size: 14px; color: #aab2cc; }
.hero-badges strong { display: block; font-family: var(--display); font-size: 26px; color: #fff; }

/* Mockup navigateur dans le hero */
.browser {
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12); background: #fff; transform: rotate(1.5deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #eef0f6; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cfd4e2; display: inline-block; }
.browser-bar .url { margin-left: 12px; font-size: 12px; color: #8b93a7; background: #fff; padding: 4px 12px; border-radius: 6px; flex: 1; }
.browser-body { aspect-ratio: 16/10.5; background:
  linear-gradient(180deg, #101632, #1c2550);
  position: relative; color: #fff; padding: 26px; }
.browser-body .bb-nav { display: flex; gap: 14px; font-size: 11px; color: #aab4dd; margin-bottom: 26px; }
.browser-body .bb-title { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.browser-body .bb-p { width: 70%; height: 8px; background: rgba(255,255,255,.18); border-radius: 4px; margin-bottom: 8px; }
.browser-body .bb-p.short { width: 45%; }
.browser-body .bb-btn { margin-top: 20px; display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--brand-grad); font-size: 12px; font-weight: 600; }
.browser-body .bb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.browser-body .bb-card { height: 54px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }

/* Bandeau logos / confiance */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; padding: 26px 24px; }
.trust span { color: var(--muted); font-size: 14px; font-weight: 500; }

/* Grilles génériques ------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cartes services */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px; background: rgba(91,75,255,.1);
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Portfolio --------------------------------------------------------------- */
.folio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.folio-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); transition: transform .2s;
}
.folio-item:hover { transform: translateY(-6px); }
.folio-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.folio-thumb .preview { position: absolute; inset: 0; }
.folio-meta { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.folio-meta h3 { margin: 0; font-size: 20px; }
.folio-meta .tag { font-size: 12px; color: var(--muted); }
.folio-meta .go { font-weight: 600; color: var(--brand); font-size: 14px; white-space: nowrap; }

/* Process ----------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 18px; }
.step .num {
  font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff;
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-grad);
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* Tarifs ------------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
}
.plan.featured { border-color: transparent; box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before {
  content: 'Le plus choisi'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan .desc { color: var(--muted); font-size: 14px; min-height: 40px; margin-bottom: 18px; }
.plan .price { font-family: var(--display); font-size: 42px; font-weight: 700; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.plan li { font-size: 14.5px; padding-left: 28px; position: relative; color: var(--ink-soft); }
.plan li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700;
  width: 20px; height: 20px; background: rgba(22,163,74,.12); border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
}
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 15px; }

/* Bloc "sur mesure / devis" */
.custom-cta {
  margin-top: 30px; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.custom-cta::before { content:''; position:absolute; inset:0; background: radial-gradient(50% 120% at 90% 0, rgba(20,184,240,.3), transparent 60%); }
.custom-cta > * { position: relative; }
.custom-cta h3 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.custom-cta p { color: #c7cde0; margin: 0; }

/* Pourquoi nous ----------------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.feature { display: flex; gap: 16px; }
.feature .fi { font-size: 26px; flex: none; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.5vw, 38px); }
.contact-info p { color: var(--muted); font-size: 17px; }
.contact-info .line { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 500; }
.contact-info .line span { font-size: 20px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; background: #fbfbfe; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(91,75,255,.35); border-color: var(--brand); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #aeb6cf; padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-family: var(--display); font-size: 15px; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 9px; color: #aeb6cf; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* Reveal au scroll -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Sécurité : sans JavaScript, tout le contenu reste visible (pas de page vide). */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4, .steps, .pricing, .feature-row { grid-template-columns: 1fr 1fr; }
  .folio, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap: 28px; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 16px;
  }
  .grid-3, .grid-4, .steps, .pricing, .feature-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .custom-cta { flex-direction: column; align-items: flex-start; }
}
