:root {
  --bg: #0b0d12;
  --surface: #141824;
  --surface2: #1b2030;
  --line: #262c3f;
  --text: #f2f4fa;
  --muted: #a3abc2;
  --lime: #c6ff3d;
  --on-lime: #10140a;
  --violet: #8b7bff;
  --font-h: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
:root{
--bg:#f6f7fb;--surface:#fff;--surface2:#eef0f7;--line:#dde1ee;
--text:#12151f;--muted:#4d556b;--lime:#4d7a00;--on-lime:#fff;--violet:#5b49e6;color-scheme:light;
}
/*
@media (prefers-color-scheme:light){
:root:not([data-theme="dark"]){
--bg:#f6f7fb;--surface:#fff;--surface2:#eef0f7;--line:#dde1ee;
--text:#12151f;--muted:#4d556b;--lime:#4d7a00;--on-lime:#fff;--violet:#5b49e6;color-scheme:light;
}
}*/
:root[data-theme="dark"] {
  color-scheme: dark
}

* {
  box-sizing: border-box;
  margin: 0
}

:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  height: 100%
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-b);
  -webkit-font-smoothing: antialiased;
  min-height: 100%
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 30
}

a {
  color: inherit
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 8px
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--lime);
  color: var(--on-lime);
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 50
}

.skip:focus {
  left: 8px
}

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font: 800 1.1rem var(--font-h)
}

.logo i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: var(--on-lime);
  font-style: normal
}

.nav nav {
  display: flex;
  gap: .25rem;
  align-items: center
}

.nav nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .65rem .9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem
}

.nav nav a:hover {
  color: var(--text);
  background: var(--surface)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font: 700 1rem var(--font-b);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s
}

.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--lime) 70%, transparent)
}

.btn-lime:hover {
  transform: translateY(-2px)
}

.btn-quiet {
  border-color: var(--line);
  background: var(--surface)
}

.btn-quiet:hover {
  background: var(--surface2)
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 4vw, 6rem) 0 clamp(3rem, 7vw, 5rem)
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
  z-index: -1
}

.hero::before {
  width: 480px;
  height: 480px;
  background: var(--lime);
  top: -160px;
  left: -120px
}

.hero::after {
  width: 420px;
  height: 420px;
  background: var(--violet);
  right: -100px;
  top: 60px
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--lime);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: .4rem .9rem;
  border-radius: 999px
}

h1,
h2,
h3 {
  font-family: var(--font-h);
  line-height: 1.08;
  letter-spacing: -.02em
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.8rem);
  font-weight: 800;
  margin: 1.2rem 0 1rem
}

h1 em {
  font-style: normal;
  color: var(--lime)
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 2rem 0 1.6rem
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0
}

.chips li {
  font-size: .9rem;
  color: var(--muted);
  padding: .35rem .8rem;
  border: 1px dashed var(--line);
  border-radius: 999px
}

.chips li::before {
  content: "✓ ";
  color: var(--lime)
}

/* ===== Tchat style Discussionner ===== */
.chat {
--c-bg: #1c1f24;
--c-panel: #2b2e33;
--c-side: #0d1b26;
--c-side-row: #11232f;
--c-line: #3a3f47;
--c-time: #9a9a9a;
--c-cyan: #19e6e6;
--c-orange: #ff7a2e;
--c-pink: #f08bd9;
--c-green: #5cff5c;
--c-blue: #5aa9ff;
--c-white: #e9e9e9;

display: flex;
flex-direction: column;
background: var(--c-bg);
color: var(--c-white);
border: 1px solid #000;
border-radius: 14px;
overflow: hidden;
font: 400 .85rem/1.45 var(--font-b);
box-shadow: 0 30px 80px -30px #000a;
transform: rotate(1deg);
}

/* onglets */
.chat-tabs {
display: flex;
gap: 4px;
padding: 8px 8px 0;
background: #14161a;
overflow-x: auto;
scrollbar-width: none;
}
.chat-tabs button {
flex: none;
min-height: 36px;
padding: 0 .9rem;
border: 0;
border-radius: 10px 10px 0 0;
background: #1f3a52;
color: var(--c-white);
font: 700 .8rem var(--font-b);
cursor: pointer;
}
.chat-tabs button.on { background: #24313f; box-shadow: inset 0 -2px 0 #e0a52b; }
.chat-tabs .green { color: var(--c-green); }
.chat-tabs .yellow { color: #ffe14a; }
.chat-tabs .badge {
display: inline-block;
min-width: 20px;
margin-left: .3rem;
padding: 0 .35rem;
border-radius: 6px;
background: #000;
color: #fff;
font-size: .72rem;
}

/* corps : messages + liste */
.chat-body {
display: grid;
grid-template-columns: 1fr 128px;
min-height: 340px;
}
.chat-main { display: flex; flex-direction: column; min-width: 0; padding: 10px; gap: 8px; }

.chat-welcome { color: var(--c-cyan); font-size: .85rem; }

.chat-log {
flex: 1;
padding: 10px 12px;
background: var(--c-panel);
border: 1px solid var(--c-line);
border-radius: 8px;
overflow-y: auto;
max-height: 260px;
scrollbar-width: thin;
}
.msg { display: block; margin: 0 0 .35rem; }
.msg time { color: var(--c-time); margin-right: .25rem; }
.msg .nick { font-weight: 600; }
.msg .nick.pink { color: var(--c-pink); }
.msg .nick.orange { color: #ffb066; }
.msg .nick.green { color: var(--c-green); }
.msg .t-cyan { color: var(--c-cyan); }
.msg .t-blue { color: var(--c-blue); }
.msg .t-orange { color: var(--c-orange); font-weight: 700; }
.msg .t-green { color: var(--c-green); }
.msg.sys { font-size: .75rem; font-style: italic; color: #bbb; }
.msg.sys time { color: var(--c-green); font-style: normal; }

/* saisie */
.chat-tools { display: flex; align-items: center; gap: 6px; padding-left: 2px; }
.chat-tools .ico {
width: 24px; height: 24px;
display: grid; place-items: center;
border: 1px solid #555;
border-radius: 4px;
background: #000;
color: #fff;
font-size: .8rem;
}
.chat-tools .ico.blue { background: #0a0a7a; }
.chat-input { display: flex; gap: 8px; align-items: stretch; }
.chat-input textarea {
flex: 1;
min-height: 64px;
resize: none;
padding: .6rem .7rem;
background: #24272c;
color: var(--c-white);
border: 1px solid var(--c-line);
border-radius: 6px;
font: inherit;
}
.chat-input textarea::placeholder { color: #777; }
.chat-input button {
align-self: flex-end;
min-height: 44px;
padding: 0 1rem;
border: 1px solid #666;
border-radius: 8px;
background: #4a4d52;
color: #fff;
font: 600 .85rem var(--font-b);
cursor: pointer;
}
.chat-input button:hover { background: #5a5d63; }

/* liste des connectés */
.chat-users {
display: flex;
flex-direction: column;
background: var(--c-side);
border-left: 1px solid #000;
}
.chat-filters { display: flex; gap: 4px; padding: 8px 6px 4px; }
.chat-filters button {
flex: 1;
min-height: 30px;
border: 0;
border-radius: 8px;
background: #1d3b4d;
color: #fff;
font: 700 .7rem var(--font-b);
cursor: pointer;
}
.chat-filters button.on { background: #3a6179; }
.chat-count { padding: 2px 10px 6px; font-size: .7rem; color: #cfd8de; }
.chat-users ul { list-style: none; padding: 0; margin: 0; overflow-y: auto; }
.chat-users li {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px;
border-left: 3px solid #2f95d6;
font-weight: 700;
font-size: .8rem;
}
.chat-users li:nth-child(odd) { background: var(--c-side-row); }
.chat-users li.f { border-left-color: #e0357f; }
.chat-users .pic {
position: relative;
flex: none;
width: 30px; height: 30px;
border-radius: 50%;
border: 2px solid #3a4a56;
display: grid; place-items: center;
font-size: .75rem;
color: var(--on-lime);
background: var(--lime);
}
.chat-users .pic::after {
content: "";
position: absolute;
right: -2px; bottom: -2px;
width: 10px; height: 10px;
border-radius: 50%;
background: #35c759;
border: 2px solid var(--c-side);
}
.chat-users .n1 { color: #ff8a8a; }
.chat-users .n2 { color: #ffb066; }
.chat-users .n3 { color: var(--c-green); }
.chat-users .n4 { color: var(--c-blue); }

@media (max-width: 860px) {
.chat { transform: none; }
.chat-body { grid-template-columns: 1fr; }
.chat-users { display: none; }
}

section {
  padding: clamp(3rem, 7vw, 5.5rem) 0
}

.head {
  max-width: 640px;
  margin-bottom: 2rem
}

.head .k {
  color: var(--lime);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  margin: .5rem 0 .8rem
}

.head p {
  color: var(--muted)
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.8rem
}

.filters button {
  min-height: 46px;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 600 .95rem var(--font-b);
  cursor: pointer
}

.filters button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--on-lime);
  border-color: var(--lime)
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0
}

.grid li[hidden] {
  display: none
}

.card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  height: 100%;
  padding: 1.4rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: transform .25s, border-color .25s, background .25s
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--lime);
  background: var(--surface2)
}

.tag {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 600;
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 14%, transparent);
  padding: .2rem .7rem;
  border-radius: 999px
}

.card h3 {
  font-size: 1.9rem;
  font-weight: 800
}

.card p {
  color: var(--muted);
  flex: 1
}

.card .src {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  font-weight: 600;
  padding-top: .8rem;
  border-top: 1px solid var(--line)
}

.card .src span:last-child {
  color: var(--lime);
  font-size: 1.2rem;
  transition: transform .2s
}

.card:hover .src span:last-child {
  transform: translateX(4px)
}

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  counter-reset: s
}

.how div {
  counter-increment: s;
  padding: 1.6rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line)
}

.how div::before {
  content: "0" counter(s);
  font: 800 2.4rem var(--font-h);
  color: var(--lime);
  display: block;
  margin-bottom: .4rem
}

.how h3 {
  font-size: 1.25rem;
  margin-bottom: .4rem
}

.how p {
  color: var(--muted)
}

.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem
}

.guide h3 {
  font-size: 1.35rem;
  margin: 1.6rem 0 .5rem
}

.guide p {
  color: var(--muted);
  margin-bottom: .8rem
}

.safe {
  background: linear-gradient(135deg, color-mix(in srgb, var(--lime) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.5rem)
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0
}

.faq summary {
  cursor: pointer;
  font: 700 1.1rem var(--font-h);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  align-items: center
}

.faq summary::after {
  content: "+";
  color: var(--lime);
  font-size: 1.6rem
}

.faq details[open] summary::after {
  content: "–"
}

.faq details p {
  color: var(--muted);
  margin-top: .6rem;
  max-width: 70ch
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: .92rem
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem
}

footer a {
  display: inline-block;
  padding: .5rem .3rem;
  margin-left: .8rem
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 600 .95rem var(--font-b);
  cursor: pointer
}

.menu-btn .bars {
  width: 18px;
  height: 12px;
  background: linear-gradient(var(--text) 0 0) top/100% 2px no-repeat, linear-gradient(var(--text) 0 0) center/100% 2px no-repeat, linear-gradient(var(--text) 0 0) bottom/100% 2px no-repeat;
  transition: transform .2s
}

@media (max-width:860px) {

  .hero .wrap,
  .guide {
    grid-template-columns: 1fr
  }

  .chat {
    transform: none
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 0
  }

  .nav nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap
  }

  .js .menu-btn {
    display: inline-flex
  }

  .js .nav nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    padding: .4rem 0 1rem
  }

  .js .nav nav.open {
    display: flex
  }

  .js .nav nav a {
    padding: .9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text)
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}


    /* À ajouter à la fin de /css/theme.css — formulaire « Chat Québec » */
.join { max-width: 560px; margin-inline: auto }
.join .lead { margin: 1rem 0 1.75rem; color: var(--muted) }

.join-card {
  display: grid;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.join-card .field { display: grid; gap: .4rem; border: 0; padding: 0; min-width: 0 }
.join-card label,
.join-card legend { font-weight: 600; font-size: .95rem; padding: 0 }

.join-card input[type="text"],
.join-card input[type="number"],
.join-card select {
  width: 100%;
  min-height: 48px;
  padding: .7rem 1rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 500 1rem var(--font-b);
}
.join-card input:focus-visible,
.join-card select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px }
.join-card [aria-invalid="true"] { border-color: #ff6b6b }

.join-card .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem }
.join-card .choice { position: relative; cursor: pointer }
.join-card .choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer }
.join-card .choice span {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface2);
  font-weight: 600;
  transition: background .2s, border-color .2s;
}
.join-card .choice input:checked + span {
  background: var(--lime); color: var(--on-lime); border-color: var(--lime);
}
.join-card .choice input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px }

.join-card .btn { width: 100%; cursor: pointer }
.join-note { font-size: .85rem; color: var(--muted) }

.join-errors {
  border: 1px solid #ff6b6b;
  border-radius: 14px;
  padding: .8rem 1rem;
  font-size: .92rem;
}
.join-errors ul { margin: .3rem 0 0 1.1rem }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }


/* Bloc texte SXO */
.seo-text {
  max-width: 1120px;
  margin: 48px auto;
  padding: 28px clamp(18px, 4vw, 36px);
  background: var(--card, rgba(255, 255, 255, .04));
  border: 1px solid var(--line, rgba(255, 255, 255, .08));
  border-radius: 18px;
  color: var(--muted, #b7bdc9);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.seo-text h2 {
  margin: 0 0 14px;
  color: var(--text, #fff);
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.seo-text p {
  margin: 0 0 14px;
}

.seo-text p:last-child {
  margin-bottom: 0;
}

.seo-text strong {
  color: var(--text, #fff);
  font-weight: 600;
}

.seo-text a {
  color: var(--lime, #c6f432);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.seo-text a:hover,
.seo-text a:focus-visible {
  text-decoration-thickness: 2px;
  outline: none;
}

/* Mobile : on respecte les bords et la safe-area */
@media (max-width: 860px) {
  .seo-text {
    margin: 32px 16px;
    border-radius: 14px;
  }
}

.h1 {
	font-size: 3.5rem;
}

.text-gray {
	color: #585858;
}