/* Paceshot · styles communs aux pages statiques (landing « / », « /fonctionnalites »).
   Jetons des deux thèmes, barre de navigation + menu mobile, boutons, titres de section,
   FAQ, CTA final, pied de page, révélation au défilement et widget de chat (préfixe pc-). */
@font-face { font-family: "Clash"; src: url("/assets/landing-v2/fonts/ClashDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Clash"; src: url("/assets/landing-v2/fonts/ClashDisplay-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash"; src: url("/assets/landing-v2/fonts/ClashDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* =========================================================
   THÈMES — toutes les couleurs passent par ces jetons.
   ardoise = thème sombre · corail = thème clair
   ========================================================= */
:root, [data-theme="ardoise"] {
  --bg: #1d2029; --bg-rgb: 29, 32, 41; --bg2: #22262f; --surface: #262a35; --surface2: #2c313d;
  --line: #353b48; --line2: #444b5a;
  --text: #eeeae3; --text-rgb: 238, 234, 227; --muted: #b5b8c1; --dim: #a2a6b1;
  --accent: #e8624a; --accent-rgb: 232, 98, 74; --accent2: #ff8a5c; --accent-ink: #f2876f; --on-accent: #1d0c07;
  --cta-bg: linear-gradient(135deg, #e8624a, #ff8a5c); --cta-ink: #1d0c07; --cta-glow: rgba(232, 98, 74, .34);
  --ok: #5ccb97; --chip-bg: rgba(232, 98, 74, .14); --chip-ink: #ffad98;
  --tint: linear-gradient(160deg, #2b303b, #22262f 70%); --demo-glow: rgba(232, 98, 74, .32); --grid: rgba(255, 255, 255, .045);
  --frame-shadow: 0 34px 80px rgba(6, 8, 14, .55), 0 0 0 1px rgba(255, 255, 255, .09);
  --card-shadow: none;
  --veil-rgb: 22, 24, 31; --fx: #ff8a5c; --photo-grad: linear-gradient(100deg, #ff7a5c 10%, #ff9a6c 55%, #ffc6a8);
  --hero-inset: 0px; --hero-r: 0px; --hero-end: var(--bg);
  --final-bg: radial-gradient(60% 60% at 50% 100%, rgba(232, 98, 74, .32), transparent 70%), linear-gradient(180deg, var(--bg), #1a1517);
  --final-photo: .62; --foot-bg: #181a21;
  --theme-dot: #1d2029;
  color-scheme: dark;
}
[data-theme="corail"] {
  --bg: #fcf9f5; --bg-rgb: 252, 249, 245; --bg2: #fbefe8; --surface: #ffffff; --surface2: #fdf6f2;
  --line: #efe2da; --line2: #e2cfc4;
  --text: #2a1912; --text-rgb: 42, 25, 18; --muted: #66534a; --dim: #725f56;
  --accent: #e8624a; --accent-rgb: 232, 98, 74; --accent2: #ff8a5c; --accent-ink: #b13d0e; --on-accent: #1d0c07;
  --cta-bg: linear-gradient(135deg, #e8624a, #ff8a5c); --cta-ink: #1d0c07; --cta-glow: rgba(232, 98, 74, .3);
  --ok: #007f4a; --chip-bg: #fde4d9; --chip-ink: #9c3510;
  --tint: #fbe3d6; --demo-glow: rgba(53, 101, 204, .16); --grid: rgba(120, 50, 20, .07);
  --frame-shadow: 0 30px 60px rgba(70, 30, 15, .2), 0 0 0 1px rgba(70, 30, 15, .1);
  --card-shadow: 0 1px 0 rgba(70, 30, 15, .04), 0 12px 30px rgba(70, 30, 15, .05);
  --veil-rgb: 32, 16, 10; --fx: #ff9a6c; --photo-grad: linear-gradient(100deg, #ff8a6c 10%, #ffa37a 55%, #ffd2b8);
  --hero-inset: 12px; --hero-r: 32px; --hero-end: rgba(32, 16, 10, .6);
  --final-bg: radial-gradient(70% 80% at 50% 110%, rgba(232, 98, 74, .55), transparent 70%), #2a1912;
  --final-photo: .5; --foot-bg: #fbefe8;
  --theme-dot: #fcf9f5;
  color-scheme: light;
}
:root { --r: 28px; --wrap: 1240px; --photo-ink: #f6f2ec; --photo-muted: rgba(246, 242, 236, .86); }

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding : les ancres du menu arrivent sous la barre collante (68 px) et non dessous */
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
html.theming, html.theming * { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Clash", ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; word-spacing: .1em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 99; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text); }
em { font-style: normal; color: var(--accent-ink); }
.grad { background: var(--photo-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
svg.i { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Contexte « sur photo / bloc sombre » : jetons locaux, quel que soit le thème */
.on-photo { --text: var(--photo-ink); --muted: var(--photo-muted); color: var(--photo-ink); }
.on-photo :focus-visible { outline-color: #fff; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 999px; border: 0; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--cta-bg); color: var(--cta-ink); box-shadow: 0 14px 34px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 18px 44px var(--cta-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-light { background: #fff; color: #17121f; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.btn-ghost { border: 1.5px solid var(--line2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.on-photo .btn-ghost { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); }
.on-photo .btn-ghost:hover { border-color: #fff; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* Navigation */
.nav { --nav-ink: var(--photo-ink); position: fixed; inset: 0 0 auto; z-index: 60; transition: background .3s, border-color .3s, backdrop-filter .3s, top .3s; border-bottom: 1px solid transparent; color: var(--nav-ink); }
[data-theme]:not([data-theme="ardoise"]) .nav:not(.solid) { top: var(--hero-inset); }
.nav.solid { --nav-ink: var(--text); background: rgba(var(--bg-rgb), .86); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 14px; }
.logo { flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Clash", sans-serif; font-weight: 700; font-size: 23px; letter-spacing: .005em; color: inherit; }
.logo img { height: 30px; width: auto; display: block; }
.logo .lg-d { display: none; }
/* Thèmes clairs : logo foncé sur la barre devenue opaque et dans le pied de page. */
[data-theme]:not([data-theme="ardoise"]) .nav.solid .logo .lg-w, [data-theme]:not([data-theme="ardoise"]) .cols .logo .lg-w { display: none; }
[data-theme]:not([data-theme="ardoise"]) .nav.solid .logo .lg-d, [data-theme]:not([data-theme="ardoise"]) .cols .logo .lg-d { display: block; }
.logo b { color: #e8624a; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .86; transition: opacity .2s; white-space: nowrap; }
.nav-links a[aria-current="page"] { opacity: 1; color: var(--accent2); }
/* Écrans moyens : les liens secondaires (.nl-opt) restent dans le menu burger et le pied de page */
@media (max-width: 1400px) { .nav-links .nl-opt { display: none; } }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav-right > a:not(.btn) { text-decoration: none; opacity: .86; }
.nav .btn { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.nav.solid .btn-primary, .nav .btn-primary { box-shadow: none; }

/* Sélecteur de thème */
.themes { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .14); backdrop-filter: blur(8px); }
.nav.solid .themes { border-color: var(--line); background: var(--surface); }
.themes button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.themes button span { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .15); transition: transform .2s; }
.themes button:hover span { transform: scale(1.12); }
.themes button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid currentColor; }
.themes button:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
/* 4 liens seulement (Photographes, Coureurs, Tarifs, Fonctionnalités) : la barre tient à partir de 960 px. */
@media (max-width: 959px) { .nav-links { display: none; } }
@media (min-width: 1061px) and (max-width: 1280px) { .nav-links { gap: 18px; font-size: 14.5px; } .nav-right { gap: 12px; } }
/* Menu mobile (burger) : sous 960 px, les liens de section passent dans un panneau déroulant */
.burger { display: none; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .14); backdrop-filter: blur(8px); color: inherit; cursor: pointer; }
.nav.solid .burger { border-color: var(--line); background: var(--surface); }
.burger i { grid-area: 1 / 1; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .15s; }
.burger i:nth-child(1) { transform: translateY(-6px); } .burger i:nth-child(3) { transform: translateY(6px); }
.burger[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: rotate(-45deg); }
.burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.menu { position: absolute; top: calc(100% + 8px); right: max(16px, (100% - var(--wrap)) / 2); width: min(380px, 100% - 32px); max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; border-radius: 22px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .12); transform-origin: top right; animation: menu-in .22s cubic-bezier(.2, .8, .2, 1); }
.menu[hidden] { display: none; }
.menu.is-closing { animation: menu-out .18s ease forwards; pointer-events: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-h { margin: 6px 12px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu ul + .menu-h { margin-top: 16px; }
.menu ul a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 17px; text-decoration: none; color: var(--text); }
.menu ul a:hover, .menu ul a:focus-visible { background: var(--surface2); }
.menu ul a[aria-current="page"] { color: var(--accent-ink); }
.menu-feat { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin: 8px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--chip-bg); color: var(--chip-ink); font-weight: 700; font-size: 17px; text-decoration: none; }
.menu-feat small { display: block; font-weight: 600; font-size: 13px; opacity: .85; }
.menu-feat svg { width: 20px; height: 20px; flex: none; }
.menu-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-foot .btn { min-height: 48px; padding: 12px 14px; font-size: 15px; }
@media (max-width: 959px) { .burger { display: grid; } }
/* Téléphones : le menu devient une feuille plein écran sous la barre ; la page ne défile plus derrière */
@media (max-width: 560px) {
  /* absolu et non fixe : le flou de la barre (backdrop-filter) en fait le bloc conteneur */
  .menu { position: absolute; top: 100%; left: 0; right: 0; width: auto; height: calc(100dvh - 68px); max-height: none; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; background: var(--bg); transform-origin: top center; }
  html.menu-lock, html.menu-lock body { overflow: hidden; }
  html.menu-lock .pc { display: none; }
  .menu ul a { font-size: 19px; min-height: 52px; }
  .menu-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 300px) { .menu-foot .btn { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu.is-closing { animation: none; } .burger i { transition: none; } }
/* Écrans tactiles : cibles de 44 px (pastilles de thème, bouton d'essai, lien Connexion) */
@media (max-width: 1023px) {
  .nav .btn { min-height: 44px; }
  .nav-right .login { padding: 12px 0; }
  .themes button { width: 44px; height: 44px; }
  .themes button[aria-pressed="true"]::after { inset: 7px; }
}
/* Sous 561 px : une seule pastille, celle de l'autre thème ; un appui bascule (la barre garde de l'air dès 320 px) */
@media (max-width: 560px) {
  .themes, .nav.solid .themes { padding: 0; border: 0; background: none; backdrop-filter: none; }
  .themes button[aria-pressed="true"] { display: none; }
}
@media (max-width: 560px) { .nav-right .login { display: none; } .nav .btn { padding: 10px 14px; } .logo { font-size: 20px; } .logo img { height: 24px; width: auto; } .nav-right { gap: 8px; } .nav .wrap { gap: 8px; } }
@media (max-width: 374px) { .logo img { height: 21px; } .nav .btn { padding: 10px 12px; } .nav-right, .nav .wrap { gap: 6px; } }
@media (max-width: 440px) { .nav .logo span { display: none; } }
/* Burger en plus dans la barre : logo un peu plus petit sur téléphone, et sous 360 px seul le symbole
   (les 31 % de gauche de l'image) reste visible ; le nom complet est dans l'aria-label. */
@media (max-width: 413px) { .nav .logo img { height: 19px; } }
@media (max-width: 359px) { .nav .logo { width: 44px; overflow: hidden; justify-content: flex-start; } .nav .logo img { height: 24px; max-width: none; } }
/* Pastille d'accroche des en-têtes (sur photo) */
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; color: var(--photo-ink); }
.badge .cam { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.badge .cam svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  [data-theme]:not([data-theme="ardoise"]) { --hero-inset: 8px; --hero-r: 22px; }
  .badge { font-size: 13.5px; }
}

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 660px; margin: 0 auto 34px; text-wrap: pretty; }

.lead strong { color: var(--text); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Petits écrans : le libellé long passe à la ligne au lieu de sortir de l'écran */
@media (max-width: 420px) { .ctas .btn { white-space: normal; text-align: center; padding-inline: 20px; } }

/* Titres de section */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); font-weight: 700; font-size: 15px; margin-bottom: 20px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.sec-head { text-align: center; max-width: 880px; margin: 0 auto 56px; }
/* min(…, (100vw − 32px) / K) : K = largeur du mot ou du groupe le plus long, en em, pour qu'il tienne sur 320 px */
.sec-head h2 { font-size: min(clamp(36px, 5.4vw, 74px), calc((100vw - 32px) / 9.4)); text-transform: uppercase; line-height: .95; }
.sec-head p { color: var(--muted); font-size: 19px; margin: 20px auto 0; max-width: 680px; text-wrap: pretty; }
.sec-head p strong { color: var(--text); font-weight: 600; }

/* FAQ deux colonnes */
.faq-sec { padding: 110px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq-side { position: sticky; top: 110px; container-type: inline-size; }
.faq-grid h2 { font-size: clamp(16px, 12cqi, 78px); text-transform: uppercase; line-height: .93; }
.faq-side p { color: var(--muted); margin-top: 22px; }
.faq-side a { color: var(--accent-ink); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line2); }
.faq details:first-child { border-top: 1px solid var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 4px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; transition: color .2s; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-4px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq .ans { padding: 0 4px 24px; color: var(--muted); max-width: 680px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } .faq-side { position: static; } }

/* CTA final : bloc sombre (ardoise) ou bloc de couleur (thèmes clairs) */
.final-wrap { padding: 0 var(--hero-inset); }
.final { container-type: inline-size; position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 140px 0 0; background: var(--final-bg); border-radius: var(--hero-r); }
.final-bg { position: absolute; inset: 0; z-index: -1; background: url("/assets/landing-v2/img/sancy-876.webp") center 45% / cover no-repeat; opacity: var(--final-photo); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 95%); }
.final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 38%, rgba(10, 12, 16, .55), transparent 75%); pointer-events: none; }
.final h2 { font-size: min(clamp(46px, 7.6vw, 108px), calc((100cqi - 32px) / 9.6)); text-transform: uppercase; line-height: .92; margin: 0 auto 28px; }
.final .l2 { display: block; }
.final .lead { color: var(--photo-muted); }
.collage { position: relative; margin: 100px auto 0; height: clamp(200px, 26vw, 340px); width: min(1300px, 100%); overflow: hidden; }
.collage > * { position: absolute; bottom: -60px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.collage > *:hover { transform: translateY(-14px) rotate(var(--r, 0deg)) !important; }
.collage .c1 { left: 2%; width: 30%; transform: rotate(-6deg); --r: -6deg; }
.collage .c2 { left: 24%; width: 22%; transform: rotate(3deg); bottom: -10px; --r: 3deg; z-index: 2; }
.collage .c3 { left: 42%; width: 16%; z-index: 3; bottom: auto; top: 0; border-radius: 30px; }
.collage .c4 { right: 22%; width: 22%; transform: rotate(-3deg); bottom: -10px; --r: -3deg; z-index: 2; }
.collage .c5 { right: 2%; width: 30%; transform: rotate(6deg); --r: 6deg; }
.collage img { width: 100%; height: auto; }
@media (max-width: 700px) { .collage .c1, .collage .c5 { display: none; } .collage .c2 { left: 2%; width: 34%; } .collage .c4 { right: 2%; width: 34%; } .collage .c3 { left: 33%; width: 34%; } .final { padding-top: 100px; } }

/* Pied de page */
.foot { position: relative; padding: 70px 0 34px; background: var(--foot-bg); overflow: hidden; margin-top: var(--hero-inset); }
.giant { font-family: "Clash", sans-serif; font-weight: 700; font-size: clamp(32px, 17vw, 268px); line-height: .8; letter-spacing: -.03em; text-align: center; margin: 0 0 50px; background: linear-gradient(180deg, rgba(var(--text-rgb), .14), rgba(var(--text-rgb), .02)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.giant b { background: linear-gradient(180deg, rgba(232, 98, 74, .6), rgba(232, 98, 74, .06)); -webkit-background-clip: text; background-clip: text; }
.cols { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 30px; padding-top: 40px; border-top: 1px solid var(--line); }
.cols h4 { margin: 0 0 14px; font-size: 15px; color: var(--text); }
.cols a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 15px; }
.cols a:hover { color: var(--text); }
.cols a.logo { display: inline-flex; padding: 0; font-size: 23px; color: var(--text); }
.cols p { color: var(--muted); font-size: 15px; max-width: 320px; margin-top: 14px; }
.copy { margin-top: 40px; color: var(--dim); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1023px) { .cols a { padding: 10px 0; } }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr 1fr; } .cols > :first-child { grid-column: span 2; } }

/* Révélation au défilement */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; } .js .rv.d2 { transition-delay: .2s; } .js .rv.d3 { transition-delay: .3s; }

/* =========================================================
   CHAT — widget de messagerie humaine avec Paceshot (bas droite).
   Lanceur rond + panneau Accueil / Discuter, couleurs du thème actif.
   Texte des messages toujours posé en textContent.
   ========================================================= */
.pc { position: fixed; right: 20px; bottom: 20px; z-index: 70; font-size: 16px; }
.pc svg { width: 20px; height: 20px; flex: none; }
.pc button, .pc input, .pc textarea { font-family: inherit; }
.pc :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-launch { position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--cta-bg); color: var(--cta-ink); cursor: pointer; box-shadow: 0 14px 34px var(--cta-glow), 0 2px 6px rgba(0, 0, 0, .22); transition: transform .2s ease, box-shadow .2s ease; }
.pc-launch:hover { transform: translateY(-2px) scale(1.03); }
.pc-launch svg { grid-area: 1 / 1; width: 27px; height: 27px; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.pc-launch .pc-i-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.pc.is-open .pc-launch .pc-i-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.pc.is-open .pc-launch .pc-i-close { opacity: 1; transform: none; }
.pc-count { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #fff; color: #c9442a; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.pc-count[hidden] { display: none; }

.pc-panel { position: absolute; right: 0; bottom: 76px; width: 380px; height: min(600px, calc(100dvh - 120px)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .14); transform-origin: bottom right; animation: pc-in .26s cubic-bezier(.2, .8, .2, 1); transition: width .25s ease, height .25s ease; }
.pc-panel[hidden] { display: none; }
.pc-panel.is-big { width: 480px; height: calc(100dvh - 120px); }
.pc-panel.is-closing { animation: pc-out .18s ease forwards; pointer-events: none; }
@keyframes pc-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pc-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.pc-view { grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, visibility 0s; }
.pc-panel[data-view="home"] .pc-chat { transform: translateX(40px); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .3s; }
.pc-panel[data-view="chat"] .pc-home { transform: translateX(-40px); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .3s; }

.pc-ib { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; transition: background .15s; }
.pc-ib:hover { background: rgba(var(--text-rgb), .08); }
.pc-ib svg { width: 19px; height: 19px; }
.pc-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pc-x { display: none; }
.pc-menu-wrap { position: relative; }
.pc-menu { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; min-width: 250px; padding: 6px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); animation: pc-pop .16s ease-out; }
.pc-menu[hidden] { display: none; }
.pc-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pc-menu button:hover, .pc-menu button:focus-visible { background: var(--surface2); outline: none; }
.pc-menu button[hidden] { display: none; }
@keyframes pc-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* Accueil */
.pc-hero { position: relative; padding: 16px 16px 54px; color: var(--cta-ink); background: var(--cta-bg); overflow: hidden; }
.pc-hero::after { content: ""; position: absolute; right: -40px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .26), transparent 70%); pointer-events: none; }
.pc-hero :focus-visible { outline-color: currentColor; }
.pc-hero .pc-ib:hover { background: rgba(255, 255, 255, .16); }
.pc-hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.pc-team { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; font-size: 14px; font-weight: 700; }
.pc-av { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }
.pc-av-logo { background: #1d2029; padding: 5px; }
.pc-hero .pc-av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.pc-av-ini { display: inline-grid; place-items: center; color: #fff; font-weight: 800; line-height: 1; }
.pc-hello { position: relative; z-index: 1; margin: 26px 0 8px; font: 700 34px/1.05 "Clash", ui-sans-serif, system-ui, sans-serif; letter-spacing: -.01em; }
.pc-lead { position: relative; z-index: 1; max-width: 32ch; font-size: 15px; line-height: 1.45; font-weight: 500; opacity: .94; }
.pc-home-body { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; margin-top: -36px; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.pc-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
[data-theme="ardoise"] .pc-card { background: var(--surface2); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.pc-links { display: flex; flex-direction: column; padding: 6px; }
.pc-links button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 12px; border: 0; border-radius: 11px; background: none; color: var(--text); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: background .15s; }
.pc-links button + button { border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; }
.pc-links button:hover { background: rgba(var(--accent-rgb), .08); }
.pc-links button svg { width: 17px; height: 17px; color: var(--accent); transition: transform .2s; }
.pc-links button:hover svg { transform: translateX(3px); }
.pc-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 16px; color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.pc-cta:hover { border-color: rgba(var(--accent-rgb), .5); transform: translateY(-1px); }
.pc-cta > span:first-child { min-width: 0; }
.pc-cta b { display: block; font-size: 15.5px; }
.pc-cta small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cta-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--cta-bg); color: var(--cta-ink); }
.pc-cta-ico svg { width: 19px; height: 19px; }
.pc-tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); background: var(--surface); }
.pc-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 11px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pc-tabs button.on { color: var(--accent-ink); }
.pc-tabs button.on::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--accent); }
.pc-tabs button:hover { color: var(--text); }
.pc-tabs .pc-count { top: 4px; right: calc(50% - 32px); min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* Discuter */
.pc-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 8px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.pc-bar .pc-av { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .45); }
.pc-bar-t { min-width: 0; display: flex; flex-direction: column; }
.pc-bar-t b { font-size: 15.5px; line-height: 1.2; }
.pc-bar-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(var(--text-rgb), .2) transparent; }
.pc-body::-webkit-scrollbar { width: 6px; }
.pc-body::-webkit-scrollbar-thumb { background: rgba(var(--text-rgb), .2); border-radius: 6px; }
.pc-day { align-self: center; margin: 4px 0 0; padding: 3px 10px; border-radius: 99px; background: rgba(var(--text-rgb), .06); font-size: 12px; color: var(--muted); }
.pc-day::first-letter { text-transform: uppercase; }
.pc-row { display: flex; flex-direction: column; max-width: 84%; }
.pc-row.me { align-self: flex-end; align-items: flex-end; }
.pc-row.team { align-self: flex-start; align-items: flex-start; }
.pc-row.fresh { animation: pc-msg .28s cubic-bezier(.2, .8, .2, 1) both; }
.pc-row.fresh + .pc-row.fresh { animation-delay: .35s; }
@keyframes pc-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pc-msg { margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-row.team .pc-msg { background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.pc-row.me .pc-msg { background: var(--chip-bg); color: var(--chip-ink); border-bottom-right-radius: 6px; }
.pc-row.auto .pc-msg { background: transparent; border-style: dashed; color: var(--muted); }
.pc-row small { margin: 4px 6px 0; font-size: 11.5px; color: var(--muted); }
.pc-who { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 5px 2px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.pc-typing .pc-who { font-weight: 600; color: var(--muted); }
.pc-typing .pc-msg { display: inline-flex; gap: 5px; align-items: center; padding: 13px 16px; }
.pc-typing .pc-msg i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pc-dot 1.2s ease-in-out infinite; }
.pc-typing .pc-msg i:nth-child(2) { animation-delay: .15s; }
.pc-typing .pc-msg i:nth-child(3) { animation-delay: .3s; }
@keyframes pc-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.pc-msg a { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pc-msg a:hover { text-decoration: underline; }
.pc-mail { display: grid; gap: 8px; margin-top: 10px; white-space: normal; }
.pc-mail label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pc-mail input { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--bg); color: var(--text); font-size: 15px; }
.pc-mail input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.pc-mail button { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cta-bg); color: var(--cta-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.pc-mail button[disabled] { opacity: .6; cursor: wait; }
.pc-mail .pc-legal { font-size: 12px; color: var(--dim); }
.pc-note { align-self: center; margin: 4px 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.pc-err { margin: 0 0 8px; font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.pc-err[hidden] { display: none; }
.pc-composer { padding: 10px 12px 8px; border-top: 1px solid var(--line); background: var(--surface); }
.pc-input { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 18px; border: 1.5px solid var(--line2); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.pc-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.pc-input textarea { flex: 1; min-width: 0; max-height: 150px; margin: 0; padding: 7px 0; border: 0; outline: none; resize: none; background: transparent; color: var(--text); font-size: 15px; line-height: 1.45; }
.pc-input textarea:focus-visible { outline: none; }
.pc-input textarea::placeholder { color: var(--dim); }
.pc-send { display: grid; place-items: center; width: 38px; height: 38px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--cta-bg); color: var(--cta-ink); cursor: pointer; transition: transform .15s, opacity .15s; }
.pc-send svg { width: 18px; height: 18px; }
.pc-send:not(:disabled):hover { transform: scale(1.06); }
.pc-send:disabled { opacity: .35; cursor: default; }
.pc-under { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 30px; }
.pc-under .pc-ib { width: 30px; height: 30px; color: var(--muted); }
.pc-under .pc-ib:hover, .pc-under .pc-ib[aria-expanded="true"] { color: var(--text); }
.pc-hint { flex: 1; min-width: 0; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--dim); }
.pc-emoji-wrap { position: relative; }
.pc-emoji { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: -4px; display: grid; grid-template-columns: repeat(6, 36px); gap: 2px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); animation: pc-pop .16s ease-out; }
.pc-emoji[hidden] { display: none; }
.pc-emoji button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: none; font-size: 20px; line-height: 1; cursor: pointer; }
.pc-emoji button:hover, .pc-emoji button:focus-visible { background: var(--surface2); }
.pc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
  .pc { right: 14px; bottom: 14px; }
  .pc-launch { width: 56px; height: 56px; }
  .pc.is-open .pc-launch { display: none; }
  /* posée par la page : un bouton d'action est sous la bulle, elle s'efface le temps qu'il passe */
  .pc.pc-hold:not(.is-open) .pc-launch { opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .2s, transform .2s; }
  .pc-panel, .pc-panel.is-big { position: fixed; inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; }
  .pc-x { display: grid; }
  .pc-grow { display: none; }
  .pc-input textarea, .pc-mail input { font-size: 16px; }
  .pc-hint { display: none; }
  .pc-under { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-panel, .pc-panel.is-closing, .pc-menu, .pc-emoji, .pc-row.fresh, .pc-typing .pc-msg i { animation: none; }
  .pc-view, .pc-launch, .pc-launch svg, .pc-panel { transition: none; }
}

/* Très petits écrans, ou zoom 200 % : barre et pied de page */
@media (max-width: 300px) {
  .nav .btn { display: none; }
  .logo img { height: 18px; }
  .cols { grid-template-columns: minmax(0, 1fr); } .cols > :first-child { grid-column: auto; }
  .ctas .btn { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.theming, html.theming * { transition: none !important; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
