/* ============================================================
   Hopsigne — base commune (site)
   Palette : #9765C8 violet · #099A97 teal · #15CDA9 menthe · #F0E4E4 poudre
   ============================================================ */
:root {
  --violet: #9765c8;
  --violet-deep: #6d3fa3;
  --teal: #099a97;
  --teal-deep: #067471;
  --mint: #15cda9;
  --blush: #f0e4e4;

  --ink: #1b1421;
  --ink-2: #4b4352;
  --ink-3: #8b8290;
  --line: rgba(27, 20, 33, 0.1);
  --paper: #fbf7f6;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-paper: 0 1px 0 rgba(27, 20, 33, 0.04), 0 2px 6px rgba(27, 20, 33, 0.05), 0 24px 48px -24px rgba(27, 20, 33, 0.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* « masqué » doit toujours gagner sur les styles d'affichage */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--mint); color: var(--ink); }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(251, 247, 246, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.05em; display: flex; align-items: baseline; }
.logo .dot { color: var(--mint); }
.logo small { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(27,20,33,.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--ink); margin-top: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 2px 0 #000; }
.btn-dark:hover { background: #000; }
.btn-mint { background: var(--mint); color: var(--ink); box-shadow: 0 2px 0 var(--teal-deep); }
.btn-mint:hover { background: #1ad9b4; }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 2px 0 var(--violet-deep); }
.btn-violet:hover { background: #a271d3; }
.btn-line { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 750; letter-spacing: -0.04em; line-height: .98; }
h2 { font-size: clamp(38px, 5.4vw, 72px); }
h3 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.kicker { font-family: var(--hand); font-size: 28px; line-height: 1; color: var(--violet); display: inline-block; transform: rotate(-2deg); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 600px; margin: 0; }
.muted { color: var(--ink-3); }
.hl { position: relative; isolation: isolate; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; background: var(--mint); z-index: -1; border-radius: 3px; transform: skewX(-8deg); }

section { padding: 110px 0; position: relative; }

/* ---------- Ad slots ---------- */
.ad-slot {
  position: relative; display: grid; place-items: center; border-radius: 14px;
  border: 1.5px dashed rgba(27,20,33,.16); color: var(--ink-3); font-size: 13px; background: rgba(255,255,255,.5);
}
.ad-slot::before { content: "Publicité"; position: absolute; top: 8px; left: 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.ad-leaderboard { height: 110px; max-width: 970px; margin: 0 auto; }

/* ---------- FAQ en conversation ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side h2 { margin: 12px 0 18px; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.faq-chips button { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 500; transition: border-color .2s, background .2s; }
.faq-chips button:hover { border-color: var(--ink); }
.faq-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-paper); display: grid; gap: 14px; min-height: 420px; align-content: start; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.chat-head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 12.5px; color: var(--teal); }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; animation: bubble .45s var(--ease) both; }
.bubble.q { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.a { justify-self: start; background: var(--blush); border-bottom-left-radius: 6px; }
.bubble.a b { font-weight: 650; }
.typing { justify-self: start; background: var(--blush); border-radius: 20px; padding: 14px 16px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 80px 0 40px; font-size: 14px; }
footer .big { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 12vw, 170px); letter-spacing: -0.06em; line-height: .8; color: #fff; }
footer .big span { color: var(--mint); }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
footer nav { display: flex; gap: 24px; }
footer a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* nav : connexion */
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-login { font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); }
.nav-login:hover { color: var(--ink); background: rgba(27,20,33,.05); }
.facts li.counter { background: var(--ink); color: #fff; border-color: var(--ink); }
.facts li.counter b { color: var(--mint); }

/* Hopsigne */
.logo .ez { color: var(--violet); }
footer .big i { font-style: normal; color: var(--violet); }

/* ================= téléphone : navigation ================= */
@media (max-width: 900px) {
  .nav-links { display: flex; }
}
@media (max-width: 640px) {
  .nav { height: 58px; }
  .nav .container { width: calc(100% - 28px); gap: 8px; }
  .logo { font-size: 20px; }
  .nav-links a { padding: 6px 9px; font-size: 14px; }
  .nav-links a.active::after { margin-top: 2px; }
  .nav-login { display: none; }
  .nav-right .btn { height: 34px; padding: 0 11px; font-size: 13px; }
  .container { width: calc(100% - 32px); }
  section { padding: 64px 0; }
  h2 { font-size: 40px; }
  .chat { padding: 18px; border-radius: 22px; min-height: 360px; }
  .bubble { max-width: 90%; font-size: 15px; }
  footer { padding: 56px 0 32px; }
  footer nav { flex-wrap: wrap; gap: 14px 20px; }
}
@media (max-width: 420px) {
  .nav-links a:first-child { display: none; }  /* le logo ramène déjà à l'accueil */
  .nav-right .btn { padding: 0 10px; font-size: 12.5px; }
}

/* connecté : accès direct à l'espace */
.nav-me { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: background .2s; }
.nav-me:hover { background: #000; }
.nav-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 420px) { .nav-me-l { display: none; } .nav-me { padding: 0 5px; } }

/* liens vers les guides */
.foot-guides { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; font-size: 14px; }
.foot-guides b { color: #fff; width: 100%; }
.foot-guides a:hover { color: #fff; }
.guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.guide-links span { font-weight: 650; margin-right: 4px; }
.guide-links a { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.guide-links a:hover { border-color: var(--ink); }

/* bandeau « Nos guides » */
.guides-marquee { margin-top: 34px; background: #fff; border-radius: 24px; padding: 18px 0 20px; box-shadow: var(--shadow-paper); overflow: hidden; }
.gm-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 24px 14px; }
.gm-head span { font-family: var(--display); font-weight: 750; font-size: 20px; letter-spacing: -0.02em; }
.gm-head a { font-size: 14px; font-weight: 600; color: var(--teal-deep); }
.gm-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gm-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.gm-track { display: flex; gap: 10px; width: max-content; padding: 4px 0; will-change: transform; }
.gm-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.gm-item i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--violet); color: #fff; font-style: normal; font-size: 15px; }
.gm-item b { color: var(--ink-3); font-weight: 700; transition: transform .2s var(--ease), color .2s; }
.gm-item:hover, .gm-item:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.gm-item:hover b, .gm-item:focus-visible b { color: var(--mint); transform: translateX(3px); }
.gm-item:nth-child(3n+2) i { background: var(--teal); }
.gm-item:nth-child(3n) i { background: var(--mint); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .gm-viewport { overflow-x: auto; } }

/* « Mon espace » en turquoise */
.nav-me { background: #15cda9; color: var(--ink); box-shadow: 0 2px 0 var(--teal); }
.nav-me:hover { background: #1ad9b4; }
.nav-me .nav-av { background: var(--ink); color: #fff; }

/* ================= Logo « Hopsigne. » ================= */
/* H turquoise avec ombre décalée (rappel du badge), « op » encre, « signe » violet, point turquoise */
.logo .lh { color: #15cda9; text-shadow: 1.5px 1.5px 0 var(--ink); margin-right: .5px; }
.logo .ez { color: var(--violet); }
.logo .dot { color: #15cda9; }
footer .big b { color: #15cda9; font-weight: inherit; text-shadow: .045em .045em 0 var(--violet); }
footer .big i { font-style: normal; color: var(--violet); }
footer .big span { color: #15cda9; }

/* ================= Logo « hop signe » (pastille + signature manuscrite) ================= */
.mk { display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.mk b { font-family: var(--display); font-weight: 800; letter-spacing: -.05em; background: #15cda9; color: var(--ink); padding: .04em .2em .12em; border-radius: .26em; transform: rotate(-6deg); display: inline-block; box-shadow: .07em .07em 0 var(--ink); text-shadow: none; }
.mk i { font-family: var(--hand); font-style: normal; font-weight: 700; color: var(--violet); font-size: 1.42em; margin-left: .08em; transform: rotate(-4deg) translateY(.04em); display: inline-block; letter-spacing: 0; }
.logo .mk { font-size: 22px; }
footer .big .mk b { box-shadow: .05em .05em 0 var(--violet); color: var(--ink); }
footer .big .mk i { color: #c9a6ee; }
@media (max-width: 640px) { .logo .mk { font-size: 18px; } }
@media (max-width: 420px) { .logo .mk { font-size: 16px; } .nav-links a { padding: 6px 7px; } .nav-right .btn { padding: 0 9px; } }
