/* ============================================================
   ATELIER WEB — Design system
   ============================================================ */

:root {
  --bg:        #07070c;
  --bg-soft:   #0c0c14;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  --text:      #f4f4f8;
  --muted:     #9797ac;
  --dim:       #6a6a80;

  --accent:    #7c5cff;
  --accent-2:  #22d3ee;
  --accent-3:  #f472b6;
  --grad:      linear-gradient(120deg, #7c5cff 0%, #4f7bff 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,92,255,.18), rgba(34,211,238,.14));

  --ok:     #34d399;
  --warn:   #fbbf24;
  --danger: #fb7185;
  --info:   #60a5fa;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
  --ring: 0 0 0 1px var(--border);

  --nav-h: 74px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
::selection { background: rgba(124, 92, 255, .35); }

/* ---------- Décor de fond ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob.b1 { width: 620px; height: 620px; top: -240px; left: -160px;
           background: radial-gradient(circle, #6d3cff, transparent 68%); }
.blob.b2 { width: 560px; height: 560px; top: 12%; right: -200px; animation-delay: -8s;
           background: radial-gradient(circle, #0e7490, transparent 68%); }
.blob.b3 { width: 700px; height: 700px; bottom: -280px; left: 28%; animation-delay: -15s;
           background: radial-gradient(circle, #be2a6f, transparent 70%); opacity: .32; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(70px, -50px) scale(1.14); }
  100% { transform: translate(-50px, 60px) scale(.94); }
}
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- Conteneurs ---------- */
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-sm { width: min(760px, 92vw); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.section.tight { padding: 70px 0; }

/* ---------- Header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 12, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; width: min(1280px, 94vw); }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800;
        letter-spacing: -.04em; font-size: 1.06rem; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; font-size: 15px; font-weight: 900; color: #fff;
  box-shadow: 0 6px 22px -6px rgba(124, 92, 255, .8);
  position: relative; overflow: hidden;
}
.logo-glyph { width: 22px; height: 22px; display: block; }
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: .9rem; font-weight: 500;
  color: var(--muted); transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-drawer-actions { display: none; }
.nav-overlay { display: none; }
.devis-short { display: none; }
.burger { display: none; background: none; border: 1px solid var(--border);
          border-radius: 10px; width: 40px; height: 40px; cursor: pointer;
          flex-shrink: 0; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--text);
               margin: 3.5px auto; border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 101;
  background: var(--grad); width: 0; transition: width .1s linear;
}

/* ---------- Bandeau d'annonce ---------- */
.announce {
  position: fixed; top: 0; left: 0; right: 0; z-index: 115;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 9px 46px; font-size: .86rem; font-weight: 600;
  line-height: 1.35; color: #fff;
}
.announce-promo   { background: var(--grad); }
.announce-info    { background: #1d4ed8; }
.announce-warning { background: #a8560a; }
body.has-announce { padding-top: var(--announce-h, 0px); }
body.has-announce .nav          { top: var(--announce-h, 0px); }
body.has-announce .progress-bar { top: var(--announce-h, 0px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-2);
             border-color: var(--border-2); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff;
               box-shadow: 0 12px 34px -12px rgba(124, 92, 255, .85); }
.btn-primary:hover { box-shadow: 0 20px 46px -14px rgba(124, 92, 255, 1); background: var(--grad); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 15px; font-size: .82rem; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); border-color: rgba(251, 113, 133, .3); }
.btn-danger:hover { background: rgba(251, 113, 133, .1); }

/* ---------- Éléments texte ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
       box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.grad-text { background: var(--grad); -webkit-background-clip: text;
             background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; }

.h-display { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.section-head { max-width: 660px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; }
.section-head .kicker { margin-bottom: 20px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.03rem; }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.card-hover:hover { transform: translateY(-5px); border-color: var(--border-2);
                    background: var(--surface-2); }
.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box,
              linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card-glow:hover::before { opacity: .8; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 90px) 0 100px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px;
              align-items: center; }
.hero h1 { margin: 24px 0 22px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta .num { font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; }
.hero-meta .lbl { font-size: .78rem; color: var(--dim); text-transform: uppercase;
                  letter-spacing: .07em; }

/* Fenêtre de navigateur animée */
.browser {
  border-radius: var(--r-lg); border: 1px solid var(--border-2); overflow: hidden;
  background: linear-gradient(160deg, #14141f, #0a0a11); box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-11deg) rotateX(4deg);
  transition: transform .8s var(--ease);
}
.browser:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px;
               border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a48; }
.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { margin-left: 10px; flex: 1; background: rgba(0,0,0,.35); border-radius: 7px;
               padding: 5px 12px; font-size: .72rem; color: var(--dim); }
.browser-body { padding: 22px; display: grid; gap: 14px; }
.skel { border-radius: 8px; background: linear-gradient(90deg,
        rgba(255,255,255,.05), rgba(255,255,255,.13), rgba(255,255,255,.05));
        background-size: 220% 100%; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel.hero-block { height: 92px; background: var(--grad-soft); border: 1px solid var(--border); }
.skel.line { height: 10px; }
.skel.line.w70 { width: 70%; } .skel.line.w45 { width: 45%; } .skel.line.w85 { width: 85%; }
.browser-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.browser-cards .skel { height: 56px; }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 20px 0;
           background: rgba(255,255,255,.02); }
.marquee-track { display: flex; gap: 46px; width: max-content;
                 animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 11px; color: var(--dim);
                font-weight: 600; font-size: .92rem; white-space: nowrap; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Onglets prestations ---------- */
.tabs { display: flex; gap: 8px; padding: 6px; border-radius: 16px;
        border: 1px solid var(--border); background: var(--surface);
        width: max-content; max-width: 100%; margin-bottom: 42px; overflow-x: auto; }
.tab { padding: 11px 20px; border-radius: 11px; border: none; background: transparent;
       color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer;
       white-space: nowrap; transition: .25s var(--ease); }
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff;
              box-shadow: 0 8px 24px -10px rgba(124, 92, 255, .9); }

.price-card { display: flex; flex-direction: column; }
.price-card.popular { border-color: rgba(124, 92, 255, .45);
                      background: linear-gradient(180deg, rgba(124,92,255,.09),
                      rgba(255,255,255,.02)); }
.ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(38deg);
          background: var(--grad); color: #fff; font-size: .66rem; font-weight: 800;
          letter-spacing: .1em; padding: 5px 42px; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 6px; }
.price .amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.045em; }
.price .unit { color: var(--dim); font-size: .88rem; }
.features { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; flex: 1; }
.features li { display: flex; gap: 11px; font-size: .89rem; color: var(--muted);
               align-items: flex-start; }
.check { flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%; margin-top: 3px;
         background: rgba(52, 211, 153, .14); color: var(--ok); display: grid;
         place-items: center; font-size: 10px; font-weight: 900; }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; }
.chip { padding: 8px 17px; border-radius: 999px; border: 1px solid var(--border);
        background: var(--surface); font-size: .84rem; font-weight: 600; cursor: pointer;
        color: var(--muted); transition: .25s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
             gap: 24px; }
.work {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; position: relative;
  transition: transform .45s var(--ease), border-color .45s;
}
.work:hover { transform: translateY(-7px); border-color: var(--border-2); }
.work-visual {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.work-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.14) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,.14) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .5;
}
.work-glyph {
  font-size: 3.1rem; font-weight: 900; letter-spacing: -.06em; color: rgba(255,255,255,.94);
  z-index: 1; text-shadow: 0 10px 40px rgba(0,0,0,.4);
  transform: translateY(-34px); transition: transform .55s var(--ease);
}
.work:hover .work-glyph { transform: translateY(-38px) scale(1.12) rotate(-3deg); }
.modal .work-glyph { transform: none; }
.work-mock {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 68%; height: 56%; border-radius: 12px 12px 0 0; z-index: 2;
  background: rgba(10,10,16,.9); border: 1px solid rgba(255,255,255,.2);
  border-bottom: none; padding: 11px; display: grid; gap: 7px; align-content: start;
  transition: transform .55s var(--ease); backdrop-filter: blur(8px);
}
.work:hover .work-mock { transform: translateX(-50%) translateY(-8px); }
.work-mock .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
.work-mock .bar.s { width: 55%; } .work-mock .bar.m { width: 78%; }
.work-mock .row { display: flex; gap: 6px; }
.work-mock .row div { flex: 1; height: 18px; border-radius: 5px;
                      background: rgba(255,255,255,.13); }
/* Mini-maquette de site dans les cartes portfolio */
.mini-site { position: absolute; inset: 0; display: flex; flex-direction: column;
             background: #0d0d14; overflow: hidden; }
.mini-bar { display: flex; align-items: center; gap: 5px; padding: 8px 11px;
            background: rgba(255,255,255,.06); flex-shrink: 0; }
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mini-url { margin-left: 8px; font-size: .6rem; color: rgba(255,255,255,.4);
            background: rgba(0,0,0,.3); padding: 2px 9px; border-radius: 5px;
            font-family: ui-monospace, monospace; }
.mini-page { flex: 1; background: linear-gradient(160deg,
             color-mix(in srgb, var(--m1) 22%, #0d0d14),
             color-mix(in srgb, var(--m2) 14%, #0d0d14)); padding: 11px 13px;
             display: flex; flex-direction: column; gap: 10px; }
.mini-nav { display: flex; align-items: center; gap: 8px; }
.mini-logo { font-size: .6rem; font-weight: 800; color: #fff; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.mini-links { display: flex; gap: 5px; margin-left: auto; }
.mini-links b { width: 16px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); }
.mini-cta { width: 26px; height: 11px; border-radius: 4px;
            background: linear-gradient(135deg, var(--m1), var(--m2)); }
.mini-hero { display: flex; gap: 12px; align-items: center; flex: 1; }
.mini-hero-txt { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mini-h1 { height: 9px; width: 92%; border-radius: 3px; background: rgba(255,255,255,.85); }
.mini-h1.short { width: 60%; }
.mini-p { height: 4px; width: 80%; border-radius: 2px; background: rgba(255,255,255,.35); margin-top: 2px; }
.mini-p.short { width: 50%; }
.mini-btn { height: 12px; width: 46px; border-radius: 4px; margin-top: 5px;
            background: linear-gradient(135deg, var(--m1), var(--m2)); }
.mini-hero-art { width: 40%; aspect-ratio: 1; border-radius: 8px;
                 background: linear-gradient(150deg, var(--m1), var(--m2)); display: grid;
                 place-items: center; font-size: 1.7rem;
                 box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.mini-cards { display: flex; gap: 7px; }
.mini-cards span { flex: 1; height: 20px; border-radius: 5px; background: rgba(255,255,255,.1);
                   border: 1px solid rgba(255,255,255,.08); }
.work:hover .mini-hero-art { transform: scale(1.06) rotate(-2deg); transition: transform .5s var(--ease); }
.demo-flag { position: absolute; top: 12px; right: 12px; z-index: 3;
             background: rgba(10,10,16,.82); backdrop-filter: blur(6px); color: #fff;
             font-size: .68rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
             border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; gap: 5px; }
.demo-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
                     background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.work-body { padding: 22px 24px 26px; }
.work-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-size: .7rem; padding: 4px 10px; border-radius: 999px; color: var(--dim);
       border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.work-metrics { display: flex; gap: 20px; margin-top: 18px; padding-top: 18px;
                border-top: 1px solid var(--border); }
.work-metrics .m-val { font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; }
.work-metrics .m-lbl { font-size: .68rem; color: var(--dim); text-transform: uppercase;
                       letter-spacing: .05em; }

/* ---------- Modale ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(4, 4, 8, .8);
  backdrop-filter: blur(10px); display: grid; place-items: center; padding: 24px;
  animation: fade .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(820px, 100%); max-height: 88vh; overflow-y: auto; border-radius: var(--r-lg);
  border: 1px solid var(--border-2); background: var(--bg-soft); box-shadow: var(--shadow-lg);
  animation: pop .45s var(--ease);
}
.modal.wide { width: min(1000px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.modal-head { padding: 26px 30px; border-bottom: 1px solid var(--border);
              display: flex; justify-content: space-between; gap: 20px;
              align-items: flex-start; position: sticky; top: 0;
              background: var(--bg-soft); z-index: 2; }
.modal-body { padding: 30px; }
.modal-foot { padding: 20px 30px; border-top: 1px solid var(--border);
              display: flex; gap: 12px; justify-content: flex-end; }
.x-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px;
         width: 34px; height: 34px; cursor: pointer; flex-shrink: 0; font-size: 16px;
         line-height: 1; transition: .2s; }
.x-btn:hover { background: var(--surface-2); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--muted); }
.field .req { color: var(--accent-3); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.035); transition: border-color .25s, background .25s,
  box-shadow .25s; font-size: .93rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(124, 92, 255, .6); background: rgba(255,255,255,.055);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .13);
}
.textarea { min-height: 118px; resize: vertical; font-family: inherit; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239797ac' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 38px; }
.select option { background: #14141c; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: .85rem; margin-bottom: 14px;
              padding: 11px 15px; border-radius: 10px; background: rgba(251,113,133,.1);
              border: 1px solid rgba(251,113,133,.25); }
.form-ok { color: var(--ok); font-size: .85rem; margin-bottom: 14px; padding: 11px 15px;
           border-radius: 10px; background: rgba(52,211,153,.1);
           border: 1px solid rgba(52,211,153,.25); }
.checkbox { display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
            font-size: .88rem; color: var(--muted); }
.checkbox input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent);
                  flex-shrink: 0; cursor: pointer; }

/* ---------- Recherche de domaine ---------- */
.domain-search { display: flex; gap: 12px; margin-bottom: 30px; }
.domain-search .input { font-size: 1.02rem; padding: 17px 20px; }
.dom-list { display: grid; gap: 11px; }
.dom-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border-radius: var(--r); border: 1px solid var(--border); background: var(--surface);
  transition: border-color .3s, background .3s; flex-wrap: wrap;
}
.dom-row:hover { border-color: var(--border-2); background: var(--surface-2); }
.dom-row.taken { opacity: .48; }
.dom-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.dom-status { font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
              text-transform: uppercase; letter-spacing: .05em; }
.dom-status.free { background: rgba(52,211,153,.14); color: var(--ok); }
.dom-status.busy { background: rgba(255,255,255,.06); color: var(--dim); }
.dom-price { margin-left: auto; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

/* ---------- Assistant ---------- */
.chat-shell { border: 1px solid var(--border); border-radius: var(--r-lg);
              background: var(--surface); overflow: hidden; display: flex;
              flex-direction: column; height: min(720px, 84vh); min-height: 520px; }
.chat-head { padding: 18px 22px; border-bottom: 1px solid var(--border);
             display: flex; align-items: center; gap: 14px;
             background: rgba(255,255,255,.02); }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad);
               display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.chat-progress { height: 3px; background: rgba(255,255,255,.07); }
.chat-progress i { display: block; height: 100%; background: var(--grad); width: 0;
                   transition: width .6s var(--ease); }
.chat-body { flex: 1; overflow-y: auto; padding: 26px 22px; display: flex;
             flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.bubble { max-width: 82%; padding: 14px 18px; border-radius: 18px; font-size: .93rem;
          animation: rise .45s var(--ease) both; line-height: 1.55; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.bubble.bot { background: var(--surface-2); border: 1px solid var(--border);
              border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--grad); color: #fff; border-bottom-right-radius: 6px;
             align-self: flex-end; font-weight: 500; }
.typing { display: flex; gap: 5px; align-items: center; padding: 16px 20px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim);
            animation: bounce 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; }
                    30% { transform: translateY(-6px); opacity: 1; } }
.chat-foot { border-top: 1px solid var(--border); padding: 18px 22px;
             background: rgba(255,255,255,.02); max-height: 58%; overflow-y: auto;
             flex-shrink: 0; }
.chat-body { min-height: 140px; }
.opt-grid { display: grid; gap: 9px; }
.opt {
  text-align: left; padding: 13px 17px; border-radius: 13px; border: 1px solid var(--border);
  background: rgba(255,255,255,.035); cursor: pointer; transition: .25s var(--ease);
  display: flex; align-items: center; gap: 12px;
}
.opt:hover { border-color: rgba(124,92,255,.55); background: rgba(124,92,255,.1);
             transform: translateX(4px); }
.opt.selected { border-color: var(--accent); background: rgba(124,92,255,.16); }
.opt-label { font-weight: 600; font-size: .9rem; }
.opt-hint { font-size: .78rem; color: var(--dim); margin-top: 1px; }
.opt-check { margin-left: auto; width: 20px; height: 20px; border-radius: 6px;
             border: 1px solid var(--border-2); display: grid; place-items: center;
             font-size: 11px; flex-shrink: 0; }
.opt.selected .opt-check { background: var(--accent); border-color: var(--accent);
                           color: #fff; }
.chat-input-row { display: flex; gap: 10px; }
.estimate-box { border: 1px solid rgba(124,92,255,.35); border-radius: var(--r);
                background: var(--grad-soft); padding: 20px; margin: 6px 0;
                animation: rise .5s var(--ease) both; }
.estimate-lines { display: grid; gap: 7px; margin: 14px 0; font-size: .85rem; }
.estimate-lines div { display: flex; justify-content: space-between; gap: 14px;
                      color: var(--muted); }
.estimate-wishes { margin: 12px 0; padding: 11px 13px; border-radius: 12px;
                   background: rgba(255,255,255,.04); border: 1px solid var(--border);
                   line-height: 1.5; }
.estimate-note { margin-top: 14px; padding: 13px 15px; border-radius: 12px;
                 font-size: .82rem; line-height: 1.5; color: var(--muted);
                 background: rgba(124,92,255,.10);
                 border: 1px solid rgba(124,92,255,.28); }
.estimate-note strong { color: var(--text); }

/* ---------- Étapes / process ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 24px; padding: 26px 0;
        border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border);
            display: grid; place-items: center; font-weight: 800; font-size: 1rem;
            background: var(--surface); }
.step:hover .step-num { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 0;
         font-weight: 600; font-size: 1.02rem; cursor: pointer; display: flex;
         justify-content: space-between; gap: 20px; align-items: center; }
.faq-q i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
           border: 1px solid var(--border); display: grid; place-items: center;
           font-style: normal; transition: .3s var(--ease); font-size: 14px; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--grad);
                          border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a > div { padding-bottom: 22px; color: var(--muted); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--border); padding: 66px 0 34px; margin-top: 40px;
          background: rgba(255,255,255,.015); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
               margin-bottom: 46px; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
             color: var(--dim); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .89rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex;
                 justify-content: space-between; gap: 18px; flex-wrap: wrap;
                 font-size: .82rem; color: var(--dim); }

/* ---------- Authentification ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center;
             padding: calc(var(--nav-h) + 50px) 0 70px; }
.auth-card { width: min(460px, 92vw); }
.auth-switch { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.auth-switch button { background: none; border: none; color: var(--accent-2);
                      font-weight: 600; cursor: pointer; padding: 0; }
.demo-hint { margin-top: 22px; padding: 14px 16px; border-radius: 12px;
             border: 1px dashed var(--border-2); background: rgba(255,255,255,.02);
             font-size: .8rem; color: var(--dim); }

/* ---------- Tableau de bord ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh;
        padding-top: var(--nav-h); }
.side { border-right: 1px solid var(--border); padding: 30px 18px;
        background: rgba(255,255,255,.015); position: sticky; top: var(--nav-h);
        height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.side-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
              color: var(--dim); padding: 0 12px; margin-bottom: 12px; }
.side-nav { display: grid; gap: 3px; margin-bottom: 28px; }
.side-nav button {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px;
  border: none; background: none; cursor: pointer; color: var(--muted); font-size: .89rem;
  font-weight: 500; text-align: left; width: 100%; transition: .22s var(--ease);
}
.side-nav button:hover { background: var(--surface); color: var(--text); }
.side-nav button.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.side-nav button.active .ico { background: var(--grad); }
.ico { width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2);
       display: grid; place-items: center; font-size: 14px; flex-shrink: 0;
       transition: background .25s; }
.badge-count { margin-left: auto; background: var(--accent-3); color: #fff; font-size: .68rem;
               font-weight: 800; padding: 2px 7px; border-radius: 999px; min-width: 20px;
               text-align: center; }
.dash-main { padding: 34px 38px 70px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
             margin-bottom: 30px; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px; margin-bottom: 32px; }
.kpi { padding: 22px; border-radius: var(--r); border: 1px solid var(--border);
       background: var(--surface); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
              background: var(--grad); opacity: .6; }
.kpi .val { font-size: 2rem; font-weight: 800; letter-spacing: -.045em; margin-bottom: 2px; }
.kpi .lbl { font-size: .78rem; color: var(--dim); text-transform: uppercase;
            letter-spacing: .06em; }

.panel { border: 1px solid var(--border); border-radius: var(--r-lg);
         background: var(--surface); overflow: hidden; margin-bottom: 22px; }
.panel-head { padding: 18px 24px; border-bottom: 1px solid var(--border);
              display: flex; justify-content: space-between; align-items: center; gap: 16px;
              flex-wrap: wrap; }
.panel-head h3 { font-size: 1rem; }
.panel-body { padding: 24px; }
.panel-body.flush { padding: 0; }

.list-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px;
            border-bottom: 1px solid var(--border); transition: background .22s;
            cursor: pointer; }
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--surface); }
.list-row.unread { background: rgba(124, 92, 255, .06); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
          font-weight: 800; font-size: .82rem; flex-shrink: 0; background: var(--grad);
          color: #fff; }
.list-main { flex: 1; min-width: 0; }
.list-main .t { font-weight: 600; font-size: .93rem; }
.list-main .s { font-size: .82rem; color: var(--dim); overflow: hidden;
                text-overflow: ellipsis; white-space: nowrap; }
.list-side { text-align: right; flex-shrink: 0; }

.status { font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
          text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
          display: inline-block; }
.st-nouveau, .st-a_traiter, .st-demande { background: rgba(96,165,250,.15); color: var(--info); }
.st-en_cours, .st-conception, .st-envoye, .st-integration {
  background: rgba(251,191,36,.15); color: var(--warn); }
.st-devis_envoye { background: rgba(124,92,255,.18); color: #a78bfa; }
.st-accepte, .st-confirme, .st-termine, .st-livre, .st-traite {
  background: rgba(52,211,153,.15); color: var(--ok); }
.st-refuse, .st-annule { background: rgba(251,113,133,.15); color: var(--danger); }
.st-cadrage, .st-brouillon, .st-ouvert { background: rgba(255,255,255,.07); color: var(--muted); }
.st-emise { background: rgba(96,165,250,.15); color: var(--info); }
.st-payee { background: rgba(52,211,153,.15); color: var(--ok); }
.st-annulee { background: rgba(251,113,133,.15); color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; padding: 13px 16px; font-size: .74rem; text-transform: uppercase;
            letter-spacing: .06em; color: var(--dim); border-bottom: 1px solid var(--border);
            font-weight: 700; white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--surface); }
.table-wrap { overflow-x: auto; }

.progress { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08);
            overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px;
              transition: width 1s var(--ease); }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 30px 1fr; gap: 16px; position: relative;
           padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 14px; top: 26px; bottom: 0;
                   width: 1px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border);
          background: var(--bg-soft); display: grid; place-items: center; font-size: 12px;
          z-index: 1; }
.tl-item.termine .tl-dot { background: rgba(52,211,153,.16); border-color: var(--ok);
                           color: var(--ok); }
.tl-item.en_cours .tl-dot { background: var(--grad); border-color: transparent; color: #fff; }

/* Messagerie */
.thread-view { display: grid; grid-template-columns: 320px 1fr; height: 620px;
               border: 1px solid var(--border); border-radius: var(--r-lg);
               overflow: hidden; background: var(--surface); }
.thread-list { border-right: 1px solid var(--border); overflow-y: auto; }
.thread-pane { display: flex; flex-direction: column; min-width: 0; }
.thread-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex;
               flex-direction: column; gap: 13px; }
.msg { max-width: 78%; padding: 13px 17px; border-radius: 16px; font-size: .91rem;
       animation: rise .35s var(--ease) both; }
.msg.them { background: var(--surface-2); border: 1px solid var(--border);
            border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.mine { background: var(--grad); color: #fff; border-bottom-right-radius: 5px;
            align-self: flex-end; }
.msg .meta { font-size: .7rem; opacity: .65; margin-bottom: 4px; }
.thread-compose { border-top: 1px solid var(--border); padding: 16px 20px; display: flex;
                  gap: 11px; align-items: flex-end; }
.thread-compose .textarea { min-height: 46px; max-height: 130px; padding: 12px 15px; }
.empty { padding: 60px 30px; text-align: center; color: var(--dim); }
.empty .big { font-size: 2.6rem; margin-bottom: 12px; opacity: .5; }

/* ---------- Pages légales ---------- */
.legal-body { font-size: .95rem; color: var(--muted); line-height: 1.75; }
.legal-body h2 { font-size: 1.08rem; color: var(--text); margin: 38px 0 14px;
                 padding-top: 22px; border-top: 1px solid var(--border); }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body p { margin-bottom: 13px; }
.legal-body ul { padding-left: 20px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 7px; }
.legal-body a { color: var(--accent-2); text-decoration: underline;
                text-underline-offset: 3px; }
.legal-body strong { color: var(--text); }
.legal-body dl { display: grid; grid-template-columns: 210px 1fr; gap: 10px 20px;
                 margin: 0 0 14px; }
.legal-body dt { color: var(--dim); font-size: .84rem; }
.legal-body dd { margin: 0; color: var(--text); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .84rem;
               margin-bottom: 16px; display: block; overflow-x: auto; }
.legal-table th { text-align: left; padding: 10px 12px; color: var(--dim);
                  border-bottom: 1px solid var(--border); font-size: .76rem;
                  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.legal-table td { padding: 11px 12px; border-bottom: 1px solid var(--border);
                  vertical-align: top; }
mark.todo { background: rgba(251, 191, 36, .16); color: var(--warn); padding: 1px 8px;
            border-radius: 6px; font-size: .86em; font-weight: 600; }
.notice { border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07);
          border-radius: var(--r); padding: 16px 20px; font-size: .87rem;
          color: var(--muted); margin-bottom: 34px; }
.notice strong { color: var(--warn); }

/* ---------- Interrupteur (switch) ---------- */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
                  background: rgba(255,255,255,.14); transition: .3s var(--ease);
                  border: 1px solid var(--border); }
.switch .slider::before { content: ""; position: absolute; height: 18px; width: 18px;
                          left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
                          transition: .3s var(--ease); }
.switch input:checked + .slider { background: var(--grad); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(20px); }

.pay-explain { border: 1px solid rgba(124,92,255,.28); background: var(--grad-soft);
               border-radius: var(--r); padding: 14px 16px; font-size: .87rem;
               color: var(--muted); }
.pay-explain strong { color: var(--text); }

/* ---------- Paiement ---------- */
.pay-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px;
           border: 1px solid var(--border); border-radius: var(--r);
           background: var(--surface); flex-wrap: wrap; }
.pay-row.paid { border-color: rgba(52, 211, 153, .3);
                background: rgba(52, 211, 153, .05); }
.pay-amount { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.iban-box { border: 1px dashed var(--border-2); border-radius: var(--r);
            padding: 18px 20px; background: rgba(255, 255, 255, .02); }
.iban-line { display: flex; justify-content: space-between; gap: 16px;
             padding: 7px 0; font-size: .89rem; align-items: center; }
.iban-line + .iban-line { border-top: 1px solid var(--border); }
.iban-line .v { font-family: ui-monospace, "SF Mono", Menlo, monospace;
                font-weight: 600; color: var(--text); word-break: break-all;
                text-align: right; }
.copy-btn { border: 1px solid var(--border); background: var(--surface);
            border-radius: 8px; padding: 3px 10px; font-size: .72rem; cursor: pointer;
            color: var(--muted); flex-shrink: 0; }
.copy-btn:hover { background: var(--surface-2); color: var(--text); }
.pay-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.pay-tab { flex: 1; padding: 14px; border-radius: var(--r); border: 1px solid var(--border);
           background: var(--surface); cursor: pointer; text-align: center;
           transition: .25s var(--ease); }
.pay-tab:hover { border-color: var(--border-2); }
.pay-tab.active { border-color: var(--accent); background: rgba(124, 92, 255, .12); }
.pay-tab .t { font-weight: 700; font-size: .92rem; }
.pay-tab .s { font-size: .74rem; color: var(--dim); margin-top: 3px; }

@media (max-width: 720px) {
  .legal-body dl { grid-template-columns: 1fr; gap: 3px 0; }
  .legal-body dt { margin-top: 10px; }
  .pay-tabs { flex-direction: column; }
}

/* ---------- Notation / étoiles ---------- */
.stars-view { color: #fbbf24; letter-spacing: 1px; font-size: .95rem; white-space: nowrap; }
.stars-view .empty { color: rgba(255,255,255,.18); }
.stars-pick { display: flex; gap: 6px; }
.stars-pick .star { background: none; border: none; cursor: pointer; font-size: 2rem;
                    line-height: 1; color: rgba(255,255,255,.2); transition: color .15s, transform .15s; padding: 0; }
.stars-pick .star:hover { transform: scale(1.15); }
.stars-pick .star.on { color: #fbbf24; }
.rate-block { border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.06);
              border-radius: var(--r); padding: 18px; }
.rating-done { color: var(--muted); font-size: .9rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: grid;
          gap: 11px; max-width: 360px; }
.toast { padding: 15px 20px; border-radius: 14px; border: 1px solid var(--border-2);
         background: rgba(16, 16, 24, .96); backdrop-filter: blur(14px);
         box-shadow: var(--shadow); font-size: .89rem;
         animation: slide-in .45s var(--ease) both; display: flex; gap: 12px;
         align-items: flex-start; }
@keyframes slide-in { from { opacity: 0; transform: translateX(50px); } }
.toast.out { animation: slide-out .35s var(--ease) forwards; }
@keyframes slide-out { to { opacity: 0; transform: translateX(50px); } }
.toast.ok { border-left: 3px solid var(--ok); }
.toast.err { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease),
          transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }  .reveal.d6 { transition-delay: .48s; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25);
           border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { display: grid; place-items: center; min-height: 60vh; }

.divider { height: 1px; background: var(--border); margin: 26px 0; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.mt { margin-top: 18px; } .mt-lg { margin-top: 34px; } .mb { margin-bottom: 18px; }
.nowrap { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .browser { transform: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: none;
          border-bottom: 1px solid var(--border); }
  .side-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .dash-main { padding: 26px 20px 60px; }
  .thread-view { grid-template-columns: 1fr; height: auto; }
  .thread-list { max-height: 250px; border-right: none;
                 border-bottom: 1px solid var(--border); }
  .thread-msgs { min-height: 340px; }
}

@media (max-width: 720px) {
  .section { padding: 74px 0; }
  /* ---- Barre latérale mobile (drawer) ---- */
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(82vw, 330px); height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; margin-left: 0;
    padding: calc(var(--announce-h, 0px) + var(--nav-h) + 20px) 18px 26px;
    background: rgba(9, 9, 15, .98); backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 70px -24px rgba(0, 0, 0, .75);
    transform: translateX(105%); transition: transform .38s var(--ease);
    overflow-y: auto; z-index: 130;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 1rem; border-radius: 12px; }
  .nav-links a.active { background: var(--surface); }
  .nav-links a.active::after { display: none; }
  .nav-drawer-actions {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
  }
  .nav-drawer-actions .btn { width: 100%; justify-content: center; padding: 13px 16px; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 120;
    background: rgba(4, 4, 8, .55); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .38s var(--ease);
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .burger { display: block; }
  /* Barre du haut : logo compact + bouton devis raccourci + burger */
  .nav .wrap { gap: 10px; }
  .logo { font-size: .98rem; }
  .nav-space { display: none; }
  .devis-full { display: none; }
  .devis-short { display: inline; }
  .nav-devis { padding: 8px 14px; font-size: .86rem; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .domain-search { flex-direction: column; }
  .work-grid { grid-template-columns: 1fr; }
  .modal-body, .modal-head { padding: 22px; }
  .hero { padding-top: calc(var(--nav-h) + 54px); }
  .bubble { max-width: 92%; }
  .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
