/* ============================================================
   Forma' Studio — système visuel "POP"
   Unbounded + Sora + Space Mono
   Crème / dégradés teal→violet / coraux — pas de noir
   ============================================================ */

:root {
  --cream: #FFFDF8;
  --cream-2: #FBF7FF;
  --ink: #21253f;
  --muted: #545a78;
  --teal: #16B6AE;
  --violet: #8B5CF6;
  --coral: #F0688C;
  --orange: #FF9D6C;
  --line: #ece6f8;
  --accent: #FF7A55;        /* accent complémentaire chaud (corail), dosé avec parcimonie */
  --accent-soft: #FFEDE4;
  --grad: linear-gradient(90deg, #16B6AE, #8B5CF6);
  --grad-tilt: linear-gradient(150deg, #16B6AE, #8B5CF6);
  /* spectre signature teal->violet, découpé en 3 tranches cohérentes */
  --g1: linear-gradient(155deg, #18C0B5, #2E9FC4);
  --g2: linear-gradient(155deg, #5286D8, #8268E0);
  --g3: linear-gradient(155deg, #8B5CF6, #6E3FD6);
  --r-card: 26px;
  --r-big: 40px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

h1, h2, h3, h4 { font-family: "Unbounded", sans-serif; letter-spacing: -.02em; margin: 0; }

.mono { font-family: "Space Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------------- Navigation ---------------- */
.nav { position: sticky; top: 0; z-index: 50;
  background: linear-gradient(100deg, #D2E3FF 0%, #E4DAFF 48%, #CCF0E9 100%);
  box-shadow: inset 0 3px 0 var(--accent);
  padding-bottom: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 24px));
  filter: drop-shadow(0 9px 18px rgba(33,37,63,.12)); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; gap: 32px; }
.logo {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap; color: var(--ink);
  display: inline-flex; align-items: center;
}
.logo img { display: block; height: 40px; width: auto; }
.footer-bottom .logo img { height: 36px; }
.logo b {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted);
  padding: 8px 16px; border-radius: 100px; white-space: nowrap; transition: .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--cream-2); }
.nav-links a.active { color: var(--violet); background: #fff; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 11px 22px !important; border-radius: 100px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: .15s;
}
.nav-cta:hover { background: var(--violet); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 16px 30px; border-radius: 100px; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(106,79,224,.28); }
.btn-pri:hover { box-shadow: 0 14px 30px rgba(106,79,224,.4); }
.btn-sec { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-sec:hover { border-color: var(--violet); color: var(--violet); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Section helpers ---------------- */
.section { padding: 76px 0; }
.section.tight { padding: 52px 0; }
.sect-h { display: flex; align-items: baseline; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.sect-h .num { font-family: "Space Mono", monospace; font-size: 15px; color: var(--teal); }
.sect-h h2 { font-weight: 700; font-size: clamp(30px, 4vw, 44px); }
.sect-h .lead { margin-left: auto; max-width: 38ch; color: var(--muted); font-size: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: "Space Mono", monospace;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #6a4fd0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 100px; padding: 7px 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.grad-text.v { background: linear-gradient(90deg,#8B5CF6,#C264C9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-text.t { background: linear-gradient(90deg,#16B6AE,#3DBE9A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------------- Image placeholders ---------------- */
.ph {
  background-image: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 12px);
  display: flex; align-items: flex-end; justify-content: flex-start; border-radius: var(--r-card);
}
.ph span {
  font-family: "Space Mono", monospace; font-size: 12.5px; letter-spacing: .03em;
  padding: 12px 14px; text-transform: lowercase; opacity: .92;
}
.ph.teal   { color: #0e8f9a; background-color: #e4f7f5; }
.ph.violet { color: #6e3fd6; background-color: #efe8fd; }
.ph.coral  { color: #4f6fd0; background-color: #e8ecfc; }
.ph.orange { color: #2e8fb0; background-color: #e2f1f7; }
.ph.blue   { color: #4f6fd0; background-color: #e8ecfc; }

/* ---------------- Footer ---------------- */
.footer { margin-top: 0; }
.footer-cta {
  max-width: var(--maxw); margin: 0 auto; background: var(--grad-tilt); color: #fff;
  border-radius: var(--r-big) var(--r-big) 0 0; padding: 60px 48px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.footer-cta h2 { font-weight: 700; font-size: clamp(28px, 4vw, 42px); }
.footer-cta .mailbtn {
  margin-left: auto; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700;
  padding: 15px 28px; border-radius: 100px; font-size: 15px; transition: .15s;
}
.footer-cta .mailbtn:hover { transform: translateY(-2px); }
.footer-bottom {
  background: var(--ink); color: #b9bcd6;
}
.footer-bottom .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 32px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px;
}
.footer-bottom .logo { color: #fff; }
.footer-bottom .fl { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; color: #b9bcd6; }
.footer-bottom a:hover { color: #fff; }

/* ---------------- Menu mobile (hamburger + tiroir) ---------------- */
.nav-toggle { display: none; }
.mobile-drawer { display: none; }

@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .nav-inner { gap: 16px; }
  .nav-links { display: none; }
  .logo img { height: 34px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    position: fixed; top: 20px; right: 18px; z-index: 60;
    width: 46px; height: 46px; padding: 0; border: none; cursor: pointer;
    background: rgba(244,241,232,.7); border-radius: 50%; backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(29,27,58,.12);
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2.5px; margin: 0 auto; border-radius: 2px;
    background: var(--ink); transition: transform .3s ease, opacity .2s ease;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .mobile-drawer {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: linear-gradient(160deg, #F4F1E8 0%, #E7DEF8 55%, #CDEDE6 100%);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  }
  .mobile-drawer.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-drawer .md-links {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    min-height: 100%; padding: 100px 30px 48px;
  }
  .mobile-drawer a {
    font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 25px; letter-spacing: -.02em;
    color: var(--ink); text-decoration: none; padding: 18px 4px;
    border-bottom: 1.5px solid rgba(29,27,58,.13);
  }
  .mobile-drawer a.active { color: var(--accent); }
  .mobile-drawer a.nav-cta {
    margin-top: 22px; border: none; border-radius: 999px; background: var(--ink); color: #fff;
    text-align: center; padding: 18px; font-size: 19px;
  }
}

/* ============================================================
   Fond "atelier graphique" — grille de points + formes au trait,
   en parallaxe. Injecté sur chaque page via parallax-bg.js.
   ============================================================ */
.bg-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(33,37,63,.07) 1.4px, transparent 1.4px);
  background-size: 32px 32px; -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 55%, transparent 100%); }
.bg-parallax { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
body > nav, body > header, body > section, body > footer { position: relative; z-index: 1; }
.bg-parallax .shape { position: absolute; will-change: transform; }
.bg-parallax .ring { border-radius: 50%; border: 2px solid rgba(22,182,174,.5); }
.bg-parallax .square { border: 2px solid rgba(139,92,246,.45); border-radius: 6px; }
.bg-parallax .tri { width: 0; height: 0; }
.bg-parallax .plus { background:
    linear-gradient(rgba(255,122,85,.7),rgba(255,122,85,.7)) center/100% 2px no-repeat,
    linear-gradient(rgba(255,122,85,.7),rgba(255,122,85,.7)) center/2px 100% no-repeat; }
.bg-parallax .dot { border-radius: 50%; }
.bg-parallax .r1 { width: 150px; height: 150px; top: 120px; left: -46px; }
.bg-parallax .r2 { width: 84px; height: 84px; top: 62%; right: 6%; border-color: rgba(139,92,246,.4); }
.bg-parallax .sq1 { width: 118px; height: 118px; top: 30%; left: -34px; }
.bg-parallax .sq2 { width: 70px; height: 70px; bottom: 130px; right: -22px; border-color: rgba(22,182,174,.42); }
.bg-parallax .t1 { top: 46%; right: 12%; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid rgba(255,122,85,.34); }
.bg-parallax .p1 { width: 40px; height: 40px; top: 150px; right: 16%; }
.bg-parallax .p2 { width: 30px; height: 30px; bottom: 22%; left: 12%; }
.bg-parallax .d1 { width: 14px; height: 14px; top: 40%; left: 18%; background: rgba(22,182,174,.55); }
.bg-parallax .d2 { width: 11px; height: 11px; top: 24%; right: 22%; background: rgba(139,92,246,.5); }
.bg-parallax .d3 { width: 16px; height: 16px; bottom: 30%; right: 30%; background: rgba(255,122,85,.5); }

/* --- Responsive fin de parcours + garde-fous export --- */
img, svg, video { max-width: 100%; }
img { height: auto; }
@media (max-width: 560px) {
  :root { --r-card: 20px; --r-big: 28px; }
  body { font-size: 16px; }
  .wrap, .nav-inner, .footer-bottom .inner { padding-left: 20px; padding-right: 20px; }
  .footer-cta { padding: 40px 24px; border-radius: var(--r-big) var(--r-big) 0 0; }
  .footer-cta .mailbtn { margin-left: 0; }
  .btn { padding: 14px 24px; font-size: 15px; width: 100%; text-align: center; }
  .cta-row { width: 100%; }
  .sect-h .lead, .duo-head .lead { margin-left: 0; }
}
@media (max-width: 380px) {
  .wrap, .nav-inner, .footer-bottom .inner { padding-left: 16px; padding-right: 16px; }
}
@media print { .nav, .nav-toggle, .mobile-drawer, .bg-grid, .bg-parallax { display: none !important; } }
