/* ==========================================================================
   Thot Advisory — Home v2 (prototype clair)
   Grammaire : fond clair, typo grande échelle, hairlines, accent jaspe rare,
   mouvement concentré dans un objet (héro + marquee), pas de reveals.
   ========================================================================== */

:root {
  --bg: #F7F4F0;
  --blanc: #FFFFFF;
  --ivoire: #EDE2E0;
  --ink: #000930;
  --muted: #47517A;
  --hair: rgba(0, 9, 48, 0.12);
  --hair-soft: rgba(0, 9, 48, 0.07);
  --royal: #355AA5;
  --royal-300: #8BA1CC;
  --royal-400: #B0C0DB;
  --royal-pale: #E8EDF6;
  --jaspe-200: #DF7D68;
  --jaspe: #D5573B;
  --jaspe-dark: #B8492F;
  --nuit: #000930;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(56px, 6vw, 72px) 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--blanc); }

/* ---------- typographie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hair); border-radius: 999px; padding: 6px 14px;
  background: var(--blanc);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--jaspe); }

h1 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
}
h2.sec {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  max-width: 640px;
}
.sec-head { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sec-head .lead { font-size: 1.05rem; color: var(--muted); max-width: 620px; }
.sec-head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font-size: 0.95rem; font-weight: 600; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.btn--primary { background: var(--jaspe); color: var(--blanc); }
.btn--primary:hover { background: var(--jaspe-dark); transform: translateY(-1px); }
.btn--dark { background: var(--nuit); color: var(--blanc); }
.btn--dark:hover { background: #1D3774; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn--ghost:hover { border-color: var(--ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem; color: var(--jaspe);
}
.arrow-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247, 244, 240, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair-soft);
}
.hdr__in { max-width: var(--container); margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__logo img { height: 40px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: 10px; }
.hdr__link { white-space: nowrap; font-size: 0.93rem; font-weight: 500; color: var(--ink); opacity: 0.8; padding: 9px 13px; border-radius: 9px; transition: opacity 0.15s ease, background-color 0.15s ease; }
.hdr__link:hover, .dd:hover .hdr__link, .dd:focus-within .hdr__link { opacity: 1; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px var(--hair-soft); }
.hdr__cta { padding: 12px 22px; font-size: 0.88rem; }

/* dropdown clair */
.dd { position: relative; }
.dd__panel {
  position: absolute; top: 100%; left: 50%;
  padding-top: 14px; transform: translateX(-50%) translateY(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.2s;
}
.dd:hover .dd__panel, .dd:focus-within .dd__panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dd__in {
  width: 330px; background: var(--blanc); border: 1px solid var(--hair);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 9, 48, 0.12);
  padding: 8px;
}
.dd__item { display: block; padding: 11px 14px; border-radius: var(--radius-sm); transition: background-color 0.12s ease; }
.dd__item:hover { background: var(--bg); }
.dd__item b { display: block; font-size: 0.9rem; font-weight: 600; }
.dd__item span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.dd__chev { width: 10px; height: 10px; opacity: 0.5; transition: transform 0.2s ease; }
.dd:hover .dd__chev { transform: rotate(180deg); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.mnav { display: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 88px 0 24px; position: relative; overflow: hidden;
}
.hero .wrap { width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--jaspe); }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* visuel hero : objet qui vit */
.viz { position: relative; height: 470px; }
.viz svg { width: 100%; height: 100%; overflow: visible; }

.vb { transform-box: fill-box; transform-origin: center bottom; animation: vbgrow 5.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes vbgrow { 0% { transform: scaleY(0.55); } 35% { transform: scaleY(1); } 70% { transform: scaleY(0.78); } 100% { transform: scaleY(0.55); } }

.vline { stroke-dasharray: 430; stroke-dashoffset: 430; animation: vline 7.5s ease-in-out infinite; }
@keyframes vline { 0% { stroke-dashoffset: 430; opacity: 1; } 42% { stroke-dashoffset: 0; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 92% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 430; opacity: 0; } }
.vdot { opacity: 0; animation: vdot 7.5s ease-in-out infinite; }
@keyframes vdot { 0%, 38% { opacity: 0; transform: scale(0.6); } 46%, 80% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; } }
.vdot { transform-box: fill-box; transform-origin: center; }

.vfloat { transform-box: fill-box; animation: vfloat 6.5s ease-in-out infinite alternate; animation-delay: var(--fd); }
@keyframes vfloat { from { transform: translateY(0); } to { transform: translateY(-10px); } }

.fxflow { stroke-dasharray: 7 93; stroke-dashoffset: 100; animation: fxflow 4.6s linear infinite; }
@keyframes fxflow { to { stroke-dashoffset: 0; } }
.fxnode { transform-box: fill-box; transform-origin: center; animation: fxpulse 4.6s ease-in-out infinite; animation-delay: var(--nd); }
@keyframes fxpulse { 0%, 12%, 100% { transform: scale(1); } 6% { transform: scale(1.07); } }
.fxlbl { font-family: 'Inter', Arial, sans-serif; font-size: 13px; font-weight: 600; fill: #47517A; }

@media (prefers-reduced-motion: reduce) { .vb, .vline, .vdot, .vfloat, .fxflow, .fxnode, .marquee2__track { animation: none !important; } .vline { stroke-dashoffset: 0; } .vdot { opacity: 1; } }

/* ---------- bandeau e-facturation ---------- */
.notice { padding-top: 24px; }
.notice__card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--blanc); border: 1px solid var(--hair);
  border-left: 4px solid var(--jaspe);
  border-radius: var(--radius); padding: 28px 32px;
}
.notice__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jaspe); }
.notice__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin: 6px 0 8px; }
.notice__text { font-size: 0.95rem; color: var(--muted); max-width: 640px; }
.notice__text a { color: var(--royal); font-weight: 600; }
.notice__cta { flex: none; }

/* ---------- chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 32px; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__n { font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--jaspe); line-height: 1; }
.stat__l { font-size: 0.92rem; color: var(--muted); margin-top: 10px; max-width: 180px; }

/* ---------- expertises ---------- */
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.xp {
  background: var(--blanc); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 32px 30px 28px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.xp:hover { border-color: rgba(0, 9, 48, 0.25); box-shadow: 0 10px 34px rgba(0, 9, 48, 0.06); }
.xp__icon { width: 44px; height: 44px; color: var(--ink); margin-bottom: 20px; }
.xp__icon svg { width: 100%; height: 100%; }
.xp h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.xp__text { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.xp ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.xp li { font-size: 0.9rem; padding-left: 16px; position: relative; }
.xp li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--jaspe); }
.xp li a { border-bottom: 1px solid rgba(53, 90, 165, 0.4); transition: border-color 0.15s ease, color 0.15s ease; }
.xp li a:hover { color: var(--royal); border-color: var(--royal); }
.xp .arrow-link { margin-top: auto; }

.xstrip {
  margin-top: 20px; background: var(--royal-pale); border-radius: var(--radius);
  padding: 26px 32px; display: flex; align-items: center; gap: 40px;
}
.xstrip__head { flex: none; max-width: 300px; }
.xstrip__head h3 { font-size: 1.05rem; font-weight: 700; }
.xstrip__head p { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.xstrip ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.xstrip li { font-size: 0.83rem; font-weight: 500; background: var(--blanc); border: 1px solid var(--hair-soft); border-radius: 999px; padding: 7px 14px; }

/* ---------- missions ---------- */
.mi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mi h3 { font-size: 1.02rem; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.mi ul { display: flex; flex-direction: column; }
.mi li { font-size: 0.9rem; color: var(--muted); padding: 11px 0; border-bottom: 1px solid var(--hair-soft); line-height: 1.5; }
.mi li:last-child { border-bottom: none; }

/* ---------- approche ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stp { background: var(--blanc); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px 26px; position: relative; overflow: hidden; }
.stp__n { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ivoire); -webkit-text-stroke: 1.5px var(--royal); color: transparent; line-height: 1; margin-bottom: 16px; }
.stp h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.stp p { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.stp__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stp__tags span { font-size: 0.72rem; font-weight: 500; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 4px 10px; }

/* ---------- points de vue ---------- */
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pv {
  background: var(--blanc); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pv:hover { border-color: rgba(0, 9, 48, 0.25); box-shadow: 0 10px 34px rgba(0, 9, 48, 0.06); }
.pv__meta { font-size: 0.78rem; font-weight: 600; color: var(--royal); }
.pv h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.pv p { font-size: 0.88rem; color: var(--muted); }
.pv .arrow-link { margin-top: auto; font-size: 0.88rem; }

/* ---------- références (marquee) ---------- */
.refs { padding: 40px 0; border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); background: var(--blanc); }
.refs__label { text-align: center; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.marquee2 { overflow: hidden; position: relative; }
.marquee2::before, .marquee2::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee2::before { left: 0; background: linear-gradient(90deg, var(--blanc), transparent); }
.marquee2::after { right: 0; background: linear-gradient(270deg, var(--blanc), transparent); }
.marquee2__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: mq 36s linear infinite; }
.marquee2__track span, .marquee2__track a { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); opacity: 0.45; white-space: nowrap; transition: opacity 0.15s ease; }
.marquee2__track a:hover { opacity: 1; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- équipe ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tm { background: var(--blanc); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; display: flex; gap: 26px; }
.tm__photo { flex: none; width: 132px; height: 168px; border-radius: var(--radius-sm); overflow: hidden; }
.tm__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tm h3 { font-size: 1.2rem; font-weight: 700; }
.tm__role { font-size: 0.85rem; font-weight: 600; color: var(--jaspe); margin: 3px 0 12px; }
.tm__bio { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.tm__mail { font-size: 0.85rem; font-weight: 600; color: var(--royal); }

/* ---------- réseau consultants ---------- */
.net-bens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; }
.ben { border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px 26px; background: var(--blanc); }
.ben h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.ben p { font-size: 0.85rem; color: var(--muted); }
.net-steps { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.net-steps b { color: var(--ink); font-weight: 700; }
.net-steps .sep { color: var(--jaspe); font-weight: 800; }

/* ---------- formulaires ---------- */
.formcard { background: var(--blanc); border: 1px solid var(--hair); border-radius: var(--radius); padding: 40px; max-width: 860px; margin: 0 auto; }
.formcard h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form__honeypot { position: absolute; left: -9999px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 0.82rem; font-weight: 600; }
.form__input, .form__select, .form__textarea {
  font-family: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius-sm);
  padding: 13px 15px; width: 100%; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--royal); background: var(--blanc);
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__error { display: none; font-size: 0.78rem; color: var(--jaspe); }
.form.was-validated :invalid + .form__error, .form__group--error .form__error { display: block; }
.partner-form__disclaimer, .form__disclaimer { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ---------- contact ---------- */
.contact-grid2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.ct-info { display: flex; flex-direction: column; gap: 22px; }
.ct-block { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--blanc); padding: 22px 26px; }
.ct-block h4 { font-size: 0.95rem; font-weight: 700; }
.ct-block p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.ct-block a { color: var(--royal); font-weight: 600; }

/* ---------- footer ---------- */
.ftr { background: var(--nuit); color: rgba(255, 255, 255, 0.75); padding: 56px 0 24px; margin-top: 64px; }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.ftr__logo { height: 52px; width: auto; opacity: 0.85; margin-bottom: 14px; }
.ftr h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blanc); margin-bottom: 14px; }
.ftr a { display: block; font-size: 0.88rem; padding: 4px 0; transition: color 0.15s ease; }
.ftr a:hover { color: var(--blanc); }
.ftr address { font-style: normal; font-size: 0.88rem; line-height: 1.7; }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; font-size: 0.8rem; opacity: 0.6; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .fan { height: 320px; max-width: 480px; }
  .xp-grid, .pv-grid, .net-bens { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 768px) {
  .hdr__nav { display: none; }
  .burger { display: block; }
  .mnav {
    display: none; position: fixed; inset: 72px 0 0 0; background: var(--bg); z-index: 99;
    padding: 32px; flex-direction: column; gap: 4px; overflow-y: auto;
  }
  .mnav.open { display: flex; }
  .mnav a { font-size: 1.3rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); }
  .mnav a.sub { font-size: 1rem; font-weight: 500; color: var(--muted); padding-left: 18px; }
  .section { padding: 48px 0; }
  .wrap { padding: 0 22px; }
  .hdr__in { padding: 0 22px; }
  .notice__card { flex-direction: column; align-items: flex-start; }
  .xp-grid, .pv-grid, .net-bens, .steps, .form__row, .contact-grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .xstrip { flex-direction: column; align-items: flex-start; gap: 18px; }
  .tm { flex-direction: column; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .formcard { padding: 26px; }
  .sec-head--row { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   Scène hero « back-office vivant » (GSAP)
   ========================================================================== */
.scene { position: relative; height: 480px; }
.scene__tilt { position: absolute; inset: 0; will-change: transform; }
.sc-grid {
  position: absolute; inset: -10px;
  background-image: radial-gradient(rgba(0, 9, 48, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 38%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 38%, transparent 78%);
}
.sc-lbl { position: absolute; left: 50%; transform: translateX(-50%); bottom: -26px; font-size: 0.72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sc-lbl--under { bottom: -30px; }

.sc-inbox { position: absolute; left: 18px; bottom: 96px; width: 108px; height: 76px; }
.sc-tray { position: absolute; inset: 0; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--blanc); box-shadow: 0 10px 26px rgba(0, 9, 48, 0.07); }
.sc-tray i { position: absolute; left: 14px; right: 14px; height: 7px; border-radius: 4px; background: var(--royal-pale); }
.sc-tray i:nth-child(1) { top: 15px; }
.sc-tray i:nth-child(2) { top: 32px; right: 30px; }
.sc-tray i:nth-child(3) { top: 49px; right: 44px; }

.sc-scanner { position: absolute; left: 218px; top: 128px; width: 152px; height: 186px; }
.sc-c { position: absolute; width: 20px; height: 20px; border: 2.5px solid var(--royal); opacity: 0.75; }
.sc-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.sc-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.sc-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.sc-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.sc-beam { position: absolute; left: 6px; right: 6px; top: 8px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--jaspe), transparent); opacity: 0; box-shadow: 0 0 14px rgba(213, 87, 59, 0.55); }

.sc-chips { position: absolute; left: 388px; top: 148px; display: flex; flex-direction: column; gap: 9px; }
.sc-chip { font-size: 0.72rem; font-weight: 700; color: var(--ink); background: var(--blanc); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 11px; box-shadow: 0 6px 16px rgba(0, 9, 48, 0.08); width: max-content; opacity: 0; }

.sc-stack { position: absolute; right: 26px; bottom: 92px; width: 104px; height: 84px; }
.sc-stackcard { position: absolute; left: 0; right: 0; height: 66px; border-radius: 10px; background: var(--blanc); border: 1.5px solid var(--hair); }
.sc-stackcard.s3 { top: 0; transform: rotate(-3deg); opacity: 0.5; }
.sc-stackcard.s2 { top: 7px; transform: rotate(2deg); opacity: 0.75; }
.sc-stackcard.s1 { top: 14px; box-shadow: 0 10px 26px rgba(0, 9, 48, 0.08); }
.sc-stackcard.s1::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--jaspe); font-weight: 800; font-size: 1.3rem; }

.sc-dash { position: absolute; right: 4px; top: 6px; width: 208px; background: var(--blanc); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px 10px; box-shadow: 0 16px 40px rgba(0, 9, 48, 0.09); }
.sc-dash__head { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jaspe); }
.sc-dash__kpi { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sc-dash__kpi b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-dash__kpi span { font-size: 0.72rem; color: var(--muted); }

.sc-notif { position: absolute; left: 190px; top: 40px; display: flex; align-items: center; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--blanc); border: 1px solid var(--hair); border-radius: 999px; padding: 8px 16px; box-shadow: 0 12px 30px rgba(0, 9, 48, 0.12); opacity: 0; }
.sc-ok { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--jaspe); color: #fff; font-size: 0.7rem; }

.sc-invoice { position: absolute; left: 234px; top: 146px; width: 120px; height: 150px; background: var(--blanc); border: 1.5px solid rgba(0, 9, 48, 0.2); border-radius: 10px; padding: 12px; box-shadow: 0 18px 40px rgba(0, 9, 48, 0.13); opacity: 0; }
.sc-inv__head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sc-inv__head i { width: 16px; height: 16px; border-radius: 5px; background: var(--royal-pale); border: 1px solid var(--hair); }
.sc-inv__head b { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); }
.sc-inv__lines i { display: block; height: 6px; border-radius: 3px; background: var(--royal-pale); margin-bottom: 7px; }
.sc-inv__total { margin-top: 12px; display: flex; justify-content: flex-end; }
.sc-inv__total i { width: 46%; height: 9px; border-radius: 4px; background: var(--royal); opacity: 0.55; }
.sc-stamp { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border: 2.5px solid var(--jaspe); border-radius: 50%; color: var(--jaspe); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.85); opacity: 0; }

@media (max-width: 1024px) { .scene { height: 400px; max-width: 560px; transform: scale(0.85); transform-origin: top left; } }


/* hero particules */
.pwrap { position: relative; height: 424px; }
#pcanvas { position: absolute; inset: 0; display: block; }
@media (max-width: 1024px) { .pwrap { height: 380px; } }


.pcaption {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: var(--blanc); border: 1px solid var(--hair); border-radius: 999px;
  padding: 7px 16px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 9, 48, 0.06);
}
/* ---- transformation du bandeau au scroll : barre -> ile flottante ---- */
.hdr { transition: background-color 0.35s ease, border-color 0.35s ease; }
.hdr__in {
  transition: max-width 0.4s cubic-bezier(0.3, 0.9, 0.3, 1), height 0.35s ease,
              margin 0.35s ease, padding 0.35s ease, background-color 0.35s ease,
              border-radius 0.4s cubic-bezier(0.3, 0.9, 0.3, 1), box-shadow 0.35s ease;
  border: 1px solid transparent; border-radius: 18px;
}
.hdr--up { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr--up .hdr__in {
  max-width: 984px; height: 60px; margin-top: 10px;
  padding: 0 12px 0 14px;
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-color: var(--hair);
  box-shadow: 0 14px 40px rgba(0, 9, 48, 0.12);
}
.hdr--up .hdr__cta { padding: 10px 18px; }

/* bascule logotype -> tuile monogramme */
.hdr__logo { position: relative; display: flex; align-items: center; }
.hdr__logo-word { max-width: 200px; transition: opacity 0.25s ease, transform 0.3s ease, max-width 0.35s ease; }
.hdr__logo-tile {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) scale(0.85);
  width: 40px; height: 40px; border-radius: 11px; background: var(--nuit);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease, transform 0.3s ease;
}
.hdr__logo-tile img { width: 22px; height: 22px; }
.hdr--up .hdr__logo-word { opacity: 0; transform: scale(0.9); max-width: 40px; }
.hdr--up .hdr__logo-tile { opacity: 1; transform: translateY(-50%) scale(1); }


/* ==========================================================================
   Survols « inversion » (adaptation koncile, couleurs charte)
   ========================================================================== */
.xp, .pv {
  position: relative; overflow: hidden;
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.xp::before, .pv::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 9px;
  background: repeating-linear-gradient(-55deg, var(--jaspe) 0 16px, #C24A30 16px 32px);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.28s ease;
}
.xp:hover, .pv:hover { background: var(--nuit); border-color: var(--nuit); box-shadow: 0 22px 54px rgba(0, 9, 48, 0.22); }
.xp:hover::before, .pv:hover::before { transform: scaleY(1); }

.xp h3, .xp__text, .xp li, .xp .xp__icon, .pv h3, .pv p, .pv__meta { transition: color 0.28s ease; }
.xp:hover h3, .pv:hover h3 { color: var(--blanc); }
.xp:hover .xp__text, .xp:hover li, .pv:hover p { color: var(--royal-400); }
.xp:hover .xp__icon { color: var(--blanc); }
.xp:hover li a { color: var(--blanc); border-color: rgba(255, 255, 255, 0.35); }
.xp:hover .arrow-link, .pv:hover .arrow-link { color: var(--jaspe-200); }
.pv:hover .pv__meta { color: var(--royal-300); }
.xp li::before { transition: background-color 0.28s ease; }
.xp:hover li::before { background: var(--jaspe-200); }

/* chips de la bande execution : inversion unitaire */
.xstrip li { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; cursor: default; }
.xstrip li:hover { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }

/* bandeau e-facturation : affordance */
.notice__card { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.notice__card:hover { border-color: rgba(213, 87, 59, 0.5); box-shadow: 0 16px 44px rgba(0, 9, 48, 0.09); }
.notice__text a { position: relative; }
.notice__text a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--royal); transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease; }
.notice__card:hover .notice__text a::after { transform: scaleX(1); }

/* ==========================================================================
   Mega-menu Expertises (deux zones, tuiles d'icones)
   ========================================================================== */
.dd__in--mega { width: 720px; display: flex; gap: 0; padding: 18px; }
.dd__col { flex: 1.25; display: flex; flex-direction: column; gap: 2px; }
.dd__col--side { flex: 0.9; padding-left: 20px; }
.dd__sep { width: 1px; background: var(--hair-soft); margin: 4px 0 4px 20px; }
.dd__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); opacity: 0.75; padding: 6px 12px 8px; }
.dd__item--mega { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; }
.dd__tile {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--nuit); color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease;
}
.dd__tile svg { width: 19px; height: 19px; }
.dd__item--mega:hover .dd__tile { background: var(--jaspe); }
.dd__mini { display: block; padding: 8px 12px; border-radius: 8px; transition: background-color 0.12s ease; }
.dd__mini:hover { background: var(--bg); }
.dd__mini b { display: block; font-size: 0.84rem; font-weight: 600; line-height: 1.35; }
.dd__mini span { font-size: 0.72rem; color: var(--muted); }
.dd__cta { margin: 10px 12px 4px; }


/* panneaux nav compacts */
.dd__in--s { width: 340px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.dd__step { display: flex; align-items: center; gap: 12px; }
.dd__step i { font-style: normal; font-weight: 800; font-size: 0.95rem; color: var(--jaspe); width: 26px; }
.dd__person { display: flex; align-items: center; gap: 12px; }
.dd__person img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; }
.dd__person > span { display: flex; flex-direction: column; }
.dd__person b { font-size: 0.88rem; font-weight: 600; }
.dd__person span span { font-size: 0.74rem; color: var(--muted); }
.dd__more b { color: var(--jaspe); }


/* etats des formulaires (branchement production) */
.form__error--visible { display: block; }
.form__input--error { border-color: var(--jaspe) !important; }
.form__success {
  display: none; margin-top: 16px; padding: 14px 18px;
  background: #E8F2EA; border: 1px solid #9CC5A5; border-radius: var(--radius-sm);
  color: #1E5A2C; font-size: 0.92rem; font-weight: 600;
}
.form__success--visible { display: block; }
