/* Francechat.org — design tokens & composants. Voir DESIGN.md. */
:root {
  --blue: #000091;
  --blue-hover: #1212ff;
  --blue-soft: #e3e3fd;
  --red: #e1000e;
  --ink: #00003d;
  --ink-2: #3b3b5c;
  --muted: #6b6b80;
  --gray: #f3f4f6;
  --gray-2: #e9eaf0;
  --surface: #ffffff;
  --border: rgba(0, 0, 61, 0.1);
  --border-strong: rgba(0, 0, 61, 0.65);
  --link: #2446d4;
  --shadow-sm: rgba(0, 0, 61, 0.08) 0 10px 40px 0;
  --shadow-md: rgba(0, 0, 61, 0.12) 0 20px 60px 0;
  --serif: "Newsreader", "Times New Roman", Times, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 40px;
  --gutter: clamp(16px, 3.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.no-scroll { overflow: hidden; }

/* ---------- Typographie ---------- */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  font-size: clamp(52px, 8.4vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
}
.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.lead {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--muted);
  margin: 0 0 1em;
}
.lead a { text-decoration-thickness: 1px; text-underline-offset: 5px; color: var(--ink-2); }
.small { font-size: 14px; color: var(--muted); }

/* ---------- Filet tricolore ---------- */
.tricolore { display: flex; height: 3px; }
.tricolore span { flex: 1; transform-origin: left; animation: stretch 0.8s var(--ease) both; }
.tricolore span:nth-child(1) { background: var(--blue); }
.tricolore span:nth-child(2) { background: #fff; box-shadow: inset 0 -1px 0 var(--border); animation-delay: 0.1s; }
.tricolore span:nth-child(3) { background: var(--red); animation-delay: 0.2s; }
@keyframes stretch { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Bandeau ---------- */
.notice {
  background: var(--surface);
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  padding: 10px var(--gutter) 8px;
  display: flex;
  justify-content: center;
}
.notice button {
  background: none; border: 0; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit;
}
.notice button:hover .i-icon { color: var(--blue); }
.i-icon { width: 16px; height: 16px; color: var(--muted); transition: color 0.2s; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  position: relative; z-index: 5;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-variation-settings: "opsz" 36;
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand img { width: 1.4em; height: 0.64em; object-fit: fill; box-shadow: 0 0 0 1px var(--border); flex: none; }
.pill-btn {
  background: var(--blue); color: #fff; border: 0;
  border-radius: 999px;
  padding: 0 28px; height: 56px;
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.pill-btn:hover { background: var(--blue-hover); }
.pill-btn:active { transform: scale(0.97); }
@media (max-width: 640px) {
  .brand { font-size: 24px; }
  .pill-btn { height: 44px; padding: 0 20px; font-size: 16px; }
}

/* ---------- Overlay commun (modale + menu) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(220, 222, 230, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.overlay.open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.close-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--gray);
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.3s var(--ease);
}
.close-btn:hover { background: var(--gray-2); transform: rotate(90deg); }
.close-btn svg { width: 18px; height: 18px; }

/* Modale */
.modal-wrap { display: grid; place-items: center; padding: 16px; }
.modal {
  width: min(600px, 100%);
  background: #fff;
  border-radius: 48px;
  box-shadow: var(--shadow-md);
  padding: 24px 56px 48px;
  position: relative;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.overlay.open .modal { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-bottom: 20px; }
.modal-head h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.modal-head .close-btn { position: absolute; right: 22px; top: 24px; width: 50px; height: 50px; }
.modal-item { padding: 20px 0; }
.modal-item + .modal-item { border-top: 1px solid var(--border); }
.modal-item svg { width: 34px; height: 34px; margin-bottom: 18px; }
.modal-item h3 { font-size: 20px; font-weight: 400; margin: 0 0 4px; letter-spacing: -0.015em; }
.modal-item p { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
@media (max-width: 640px) { .modal { padding: 20px 24px 28px; } .modal-item p { font-size: 16px; } }

/* Menu */
.menu-panel {
  position: absolute; top: 16px; right: 16px; bottom: 16px;
  width: min(604px, calc(100% - 32px));
  max-height: 886px;
  background: #fff;
  border-radius: 48px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  padding: 56px;
  transform: translateX(40px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
}
.overlay.open .menu-panel { transform: none; opacity: 1; }
.menu-panel .close-btn { position: absolute; top: 56px; right: 38px; width: 60px; height: 60px; }
.menu-links { list-style: none; margin: auto 0; padding: 60px 0 40px; text-align: center; }
.menu-links a {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(34px, 3.4vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.34;
  transition: color 0.2s;
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--blue); }
.menu-links li { opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.overlay.open .menu-links li { opacity: 1; transform: none; }
.overlay.open .menu-links li:nth-child(1) { transition-delay: 0.08s; }
.overlay.open .menu-links li:nth-child(2) { transition-delay: 0.12s; }
.overlay.open .menu-links li:nth-child(3) { transition-delay: 0.16s; }
.overlay.open .menu-links li:nth-child(4) { transition-delay: 0.2s; }
.overlay.open .menu-links li:nth-child(5) { transition-delay: 0.24s; }
.overlay.open .menu-links li:nth-child(6) { transition-delay: 0.28s; }
.overlay.open .menu-links li:nth-child(7) { transition-delay: 0.32s; }
.menu-card {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.menu-card img { width: 34px; height: 16px; margin: 0 auto 14px; box-shadow: 0 0 0 1px var(--border); }
@media (max-width: 640px) {
  .menu-panel { padding: 32px 24px; top: 8px; right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .menu-panel .close-btn { top: 24px; right: 20px; width: 48px; height: 48px; }
}

/* ---------- Barre de question ---------- */
.ask {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  width: min(940px, 100%);
  min-height: 116px;
  margin: 0 auto;
  padding: 0 16px 0 46px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease);
}
.ask:focus-within { border-color: var(--ink); border-width: 2px; box-shadow: var(--shadow-md); }
.ask input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 22px; letter-spacing: -0.01em;
  padding: 20px 0;
}
.ask .ph {
  position: absolute; left: 46px; right: 180px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: var(--muted);
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.ask .ph.out { opacity: 0; transform: translateY(calc(-50% - 8px)); }
.ask.has-value .ph { display: none; }
.icon-btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 0; background: transparent;
  display: grid; place-items: center;
  flex: none;
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--gray); }
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn.recording { color: var(--red); background: #fee9e9; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(225, 0, 14, 0.1); } }
.send-btn {
  width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--blue); color: #fff;
  display: grid; place-items: center; flex: none;
  margin-left: 6px;
  transition: background 0.2s, transform 0.25s var(--ease);
}
.send-btn:hover { background: var(--blue-hover); }
.send-btn:active { transform: scale(0.92); }
.send-btn svg { width: 26px; height: 26px; transition: transform 0.25s var(--ease); }
.send-btn:hover svg { transform: translateX(2px); }
.send-btn:disabled { opacity: 0.5; cursor: default; }
.attach-chip {
  position: absolute; left: 40px; top: -18px;
  display: none; align-items: center; gap: 6px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 500;
  padding: 6px 8px 6px 12px; border-radius: 999px;
}
.attach-chip.show { display: inline-flex; animation: rise 0.3s var(--ease); }
.attach-chip button { border: 0; background: none; padding: 0 4px; color: inherit; font-size: 16px; line-height: 1; }
.ask.compact { min-height: 64px; padding-left: 28px; width: min(560px, 100%); }
.ask.compact input, .ask.compact .ph { font-size: 16px; }
.ask.compact .ph { left: 28px; }
.ask.compact .icon-btn { width: 40px; height: 40px; }
.ask.compact .icon-btn svg { width: 20px; height: 20px; }
.ask.compact .send-btn { width: 44px; height: 44px; }
.ask.compact .send-btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .ask { min-height: 72px; padding-left: 22px; padding-right: 8px; }
  .ask input, .ask .ph { font-size: 17px; }
  .ask .ph { left: 22px; right: 150px; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn svg { width: 21px; height: 21px; }
  .send-btn { width: 48px; height: 48px; }
}

/* Barre flottante en bas de page */
.dock {
  position: fixed; left: 0; right: 0; bottom: 20px; z-index: 40;
  padding: 0 16px;
  transform: translateY(160%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}
.dock .ask { pointer-events: auto; min-height: 96px; }
.dock.show { transform: none; }
@media (max-width: 640px) { .dock { bottom: 12px; } .dock .ask { min-height: 64px; } }

/* ---------- Mise en page ---------- */
.container { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { width: min(660px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 144px) 0; }
.center { text-align: center; }

/* ---------- Accueil : hero ---------- */
.hero-shell {
  margin: 0 clamp(8px, 2vw, 32px);
  border-radius: clamp(32px, 4vw, 64px);
  background: #f3f3f5;
  padding-bottom: clamp(72px, 9vw, 136px);
  overflow: hidden;
}
.hero-shell .site-header { padding-top: clamp(20px, 2.4vw, 34px); padding-left: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); }
.hero { text-align: center; padding: clamp(64px, 9vw, 136px) var(--gutter) 0; }
.hero .display { font-size: clamp(54px, 6.2vw, 92px); }
.hero-sub { font-size: clamp(15px, 1.2vw, 17px); color: var(--muted); margin: 16px 0 clamp(36px, 3.6vw, 52px); letter-spacing: -0.01em; }
.hero-stage { position: relative; width: min(680px, 100%); margin: 0 auto; }
.hero-stage .ask {
  position: absolute; z-index: 3;
  left: 50%; top: 24px; transform: translateX(-50%);
  width: calc(100% - 48px);
  min-height: 68px;
  padding-left: 28px;
  border-color: var(--border);
}
.hero-stage .ask input, .hero-stage .ask .ph { font-size: 17px; }
.hero-stage .ask .ph { left: 28px; }
.hero-stage .ask .icon-btn { width: 42px; height: 42px; }
.hero-stage .ask .icon-btn svg { width: 21px; height: 21px; }
.hero-stage .ask .send-btn { width: 46px; height: 46px; }
.carousel {
  position: relative;
  aspect-ratio: 3 / 2; /* ratio d'origine des photos (1600 × 1067) */
  /* Rayons concentriques : barre de 68 px (rayon 34) posée à 24 px du bord → 34 + 24 = 58 px. */
  --r: 58px;
  border-radius: var(--r);
  overflow: hidden;
  clip-path: inset(0 round var(--r)); /* coins nets même pendant les animations (Safari) */
  isolation: isolate;
  background: #dfe3ee;
  box-shadow: var(--shadow-md);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}
.slide.active { opacity: 1; transform: none; }
.slide svg, .slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); display: block; }
.slide-caption {
  position: absolute; left: 24px; bottom: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 500;
}
.carousel-ctrl { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.round-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.round-btn:hover { background: var(--gray); }
.round-btn:active { transform: scale(0.92); }
.round-btn svg { width: 16px; height: 16px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--gray-2); transition: width 0.4s var(--ease), background 0.4s; }
.dots span.on { width: 22px; background: var(--blue); }
@media (max-width: 640px) {
  .hero-shell { margin: 0 8px; border-radius: 36px; }
  .carousel { --r: 32px; }
  /* Sur mobile, la barre passe au-dessus de la photo pour ne pas en masquer une grande partie. */
  .hero-stage .ask { position: relative; left: auto; top: auto; transform: none; width: 100%; min-height: 60px; margin-bottom: 14px; border-color: var(--border-strong); }
  .hero-stage .ask [data-attach] { display: none; }
  .hero-stage .ask .ph { right: 104px; }
}

/* Apparition décalée */
.enter { opacity: 0; transform: translateY(14px); animation: enter 0.9s var(--ease) forwards; }
.enter.d1 { animation-delay: 0.08s; }
.enter.d2 { animation-delay: 0.16s; }
.enter.d3 { animation-delay: 0.26s; }
.enter.d4 { animation-delay: 0.36s; }
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Texte révélé au scroll ---------- */
.reveal-section { height: 230vh; position: relative; }
.reveal-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
}
.reveal-text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-align: center;
  max-width: 1000px;
  margin: 0;
  text-wrap: balance;
}
.reveal-text .w {
  display: inline-block;
  opacity: calc(0.12 + var(--p, 0) * 0.88);
  filter: blur(calc((1 - var(--p, 0)) * 7px));
  transition: opacity 0.2s linear, filter 0.2s linear;
}
.inline-badge {
  display: inline-grid; place-items: center;
  width: 0.9em; height: 0.9em;
  border-radius: 50%;
  vertical-align: -0.12em;
  margin: 0 0.06em;
}
.inline-badge.arrow { background: var(--blue); color: #fff; }
.inline-badge.arrow svg { width: 55%; height: 55%; }
.inline-badge.cocarde { background: radial-gradient(circle, var(--red) 0 28%, #fff 29% 56%, var(--blue) 57%); box-shadow: 0 0 0 2px #fff, 0 4px 16px rgba(0,0,61,.2); }

/* ---------- Rangées de fonctionnalités ---------- */
.features { display: grid; gap: clamp(64px, 8vw, 120px); padding-bottom: clamp(80px, 10vw, 160px); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 300px);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
  justify-content: center;
}
.feature-visual {
  aspect-ratio: 1;
  border-radius: 64px;
  overflow: hidden;
  position: relative;
}
.feature h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.feature p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0 0 18px; max-width: 30ch; }
.text-link { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--blue); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-visual { border-radius: 44px; }
}

.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }
.fade-up.in:nth-child(2) { transition-delay: 0.08s; }

/* Visuel 1 : vraies captures de sites publics qui dérivent */
.v-mosaic { background: #000; }
.shots {
  position: absolute; left: -8%; top: -6%; width: 116%; height: 176%;
  animation: pan 40s linear infinite alternate;
}
.shots img {
  position: absolute;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0.92;
}
.shots img:nth-child(3n) { opacity: 0.7; }
.shots img:nth-child(4n+1) { z-index: 2; opacity: 1; }
@keyframes pan { to { transform: translateY(-38%); } }

/* Visuel 2 : confidentialité */
.v-privacy {
  background:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 85%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 45%, rgba(255,255,255,.6) 50%, transparent 51%),
    linear-gradient(180deg, #00001f 0%, #000091 130%);
  display: grid; place-items: center;
}
.lock-orb {
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 16px rgba(255,255,255,.06), 0 0 0 40px rgba(255,255,255,.035), 0 20px 60px rgba(0,0,0,.4);
}
.lock-orb svg { width: 36%; }
.lock-orb .shackle { transform: translateY(-3px); transition: transform 0.6s var(--ease) 0.5s; }
.in .lock-orb .shackle { transform: none; }

/* Visuel 3 : vrais logos des organismes, en médaillons */
.v-sources { background: #fff; }
.seals {
  position: absolute; left: -13%; top: -13%; width: 126%; height: 126%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 5%;
  place-items: center;
  animation: float 9s ease-in-out infinite;
}
.seal {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 61, 0.14), 0 0 0 1px rgba(0, 0, 61, 0.06);
  display: grid; place-items: center;
  padding: 18%;
  transition: transform 0.5s var(--ease);
}
.seal img { width: 100%; height: 100%; object-fit: contain; }
.seal.big { transform: scale(1.12); z-index: 1; box-shadow: 0 20px 60px rgba(0, 0, 61, 0.2), 0 0 0 1px rgba(0, 0, 61, 0.06); }
.seal:hover { transform: scale(1.05); }
.seal.big:hover { transform: scale(1.16); }
@keyframes float { 50% { transform: translateY(-2%); } }

/* Visuel 4 : aucune appli, vraies icônes de navigateurs */
.v-noapp { background: linear-gradient(180deg, #f7f7f7, #ececec); }
.app-tray {
  position: absolute; left: 6%; top: 27%;
  display: flex; gap: 5%;
  padding: 7.5% 8%;
  width: 130%;
  background: linear-gradient(180deg, #ececec, #dcdcdc);
  border-radius: 48px 0 0 48px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: slideTray 12s ease-in-out infinite alternate;
}
.app-tray span {
  flex: none;
  width: 21%; aspect-ratio: 1; border-radius: 22%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.app-tray img { width: 84%; height: 84%; }
@keyframes slideTray { to { transform: translateX(-22%); } }

/* ---------- Bientôt ---------- */
.soon { background: var(--gray); padding: clamp(80px, 10vw, 140px) 0 0; overflow: hidden; }
.soon .h2 { font-size: clamp(34px, 3.4vw, 48px); }
.soon p { color: var(--muted); font-size: 18px; max-width: 36ch; margin: 14px auto 26px; }
.dark-pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.dark-pill:hover { background: var(--blue); }
.soon-stage { position: relative; height: 560px; margin-top: 60px; }
.mock {
  position: absolute;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 16px;
  font-size: 11px;
  color: var(--ink-2);
  animation: bob 7s ease-in-out infinite;
}
.mock:nth-child(2n) { animation-duration: 9s; animation-delay: -2s; }
.mock:nth-child(3n) { animation-duration: 8s; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.mock h4 { margin: 0 0 10px; font-size: 11px; font-weight: 600; color: var(--ink); }
.mock .row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); }
.mock .row b { font-weight: 500; flex: 1; }
.mock .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft); flex: none; }
.mock .tick { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); flex: none; }
.mock .btn { margin-top: 10px; background: var(--blue); color: #fff; border-radius: 999px; padding: 6px 12px; display: inline-block; font-weight: 500; }
.mock .field { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; margin-top: 6px; color: var(--muted); }
.passport {
  position: absolute;
  width: 200px; height: 290px;
  border-radius: 10px 16px 16px 10px;
  background: linear-gradient(135deg, #7a1f2e, #4f0f1c);
  color: #e8c77a;
  text-align: center;
  padding: 28px 16px;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  box-shadow: var(--shadow-md), inset 6px 0 0 rgba(0,0,0,.2);
  animation: bob 10s ease-in-out infinite;
}
.passport small { display: block; font-size: 11px; letter-spacing: 0.2em; }
.passport .emblem { width: 76px; height: 76px; margin: 38px auto; border-radius: 50%; border: 2px solid #e8c77a; display: grid; place-items: center; font-size: 30px; letter-spacing: -0.04em; }
.passport strong { display: block; font-weight: 400; font-size: 22px; }
@media (max-width: 900px) {
  .soon-stage { height: auto; display: flex; gap: 16px; overflow-x: auto; padding: 20px var(--gutter) 60px; scroll-snap-type: x mandatory; }
  .soon-stage > * { position: static !important; flex: none; scroll-snap-align: center; animation: none; }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(80px, 10vw, 150px) 0 40px; overflow: hidden; }
.footer-links { list-style: none; margin: 0 0 clamp(60px, 8vw, 120px); padding: 0; text-align: center; }
.footer-links a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }
.wordmark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72;
  font-size: 16.2vw; /* « Francechat.org » ≈ 94 % de la largeur */
  line-height: 0.8;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  margin: 0 0 48px;
  user-select: none;
}
.wordmark .dot { color: var(--blue); }
.footer-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  padding: 0 var(--gutter);
  font-size: 13px; color: var(--ink-2);
}
.footer-row > :first-child { display: flex; align-items: center; gap: 10px; }
.footer-row > :last-child { text-align: right; }
.laurel { display: flex; align-items: center; gap: 12px; text-align: center; font-size: 13px; max-width: 280px; }
.laurel svg { width: 30px; height: 60px; flex: none; }
.mini-flag { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--border); }
.mini-flag img { width: 100%; height: 100%; object-fit: cover; }
.legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 36px 0; font-size: 13px; }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.footer-ask { padding: 0 var(--gutter); }
@media (max-width: 760px) {
  .footer-row { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-row > :last-child { text-align: center; }
}

/* ---------- Comment ça marche ---------- */
.hiw-hero { text-align: center; padding: clamp(80px, 12vw, 190px) var(--gutter) clamp(60px, 7vw, 100px); }
.hiw-hero .display { font-size: clamp(56px, 8.6vw, 128px); }
.section-title { margin-bottom: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.card-v { margin: 0; }
.card-v .visual {
  aspect-ratio: 16 / 10.4;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: var(--gray);
  display: grid; place-items: center;
}
.card-v figcaption { font-size: 15px; color: var(--muted); padding: 16px 12px 32px; line-height: 1.4; max-width: 60ch; }
.card-v figcaption strong { color: var(--ink); font-weight: 500; }
.pause-mini {
  position: absolute; right: 18px; bottom: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 61, 0.55); color: #fff; border: 0;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.pause-mini svg { width: 14px; height: 14px; }
.paused * { animation-play-state: paused !important; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .card-v .visual { border-radius: 36px; } }

/* Visuels des cartes */
.sky {
  background:
    radial-gradient(ellipse 40% 22% at 20% 30%, #fff 60%, transparent 70%),
    radial-gradient(ellipse 35% 18% at 78% 22%, #fff 55%, transparent 70%),
    radial-gradient(ellipse 50% 25% at 60% 85%, #fff 55%, transparent 72%),
    radial-gradient(ellipse 30% 16% at 15% 80%, rgba(255,255,255,.9) 50%, transparent 70%),
    linear-gradient(180deg, #7fa7e8, #bcd3f5);
}
.sky .clouds { position: absolute; inset: 0; background: inherit; animation: clouds 30s linear infinite alternate; }
@keyframes clouds { to { transform: translateX(-6%) scale(1.06); } }
.popover {
  position: relative; z-index: 1;
  width: min(300px, 62%);
  background: #fff; border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px 16px;
  font-size: 12px;
}
.popover header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 12px; font-size: 12px; }
.popover .src { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.popover .src span:first-child { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); font-weight: 700; font-size: 10px; flex: none; }
.popover a { color: var(--blue); display: block; margin-top: 6px; }
.big-zero { font-family: var(--serif); font-size: clamp(90px, 12vw, 170px); letter-spacing: -0.07em; line-height: 1; color: var(--ink); position: relative; }
.big-zero small { position: absolute; right: -0.5em; top: 0.18em; font-size: 0.3em; color: var(--red); letter-spacing: 0; }
.big-zero-sub { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.laurel-seal { display: flex; align-items: center; gap: 18px; color: #b08a2e; }
.laurel-seal svg { width: 70px; height: 140px; }
.laurel-seal .mid { text-align: center; }
.laurel-seal .medal { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; background: radial-gradient(circle at 35% 30%, #fff, #eef0ff); box-shadow: inset 0 0 0 3px #b08a2e, var(--shadow-sm); display: grid; place-items: center; }
.laurel-seal .medal img { width: 44px; height: 20px; }
.laurel-seal p { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.3; }
.orb {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8a8aff 0%, #1212ff 40%, #000091 75%), var(--blue);
  box-shadow: 0 20px 60px rgba(18, 18, 255, 0.45), inset -8px -10px 30px rgba(225, 0, 14, 0.35);
  display: grid; place-items: center; color: #fff;
  animation: breathe 4s ease-in-out infinite;
}
.orb svg { width: 42px; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 26px 80px rgba(18, 18, 255, 0.55), inset -8px -10px 30px rgba(225, 0, 14, 0.35); } }
.v-passport { background: #dcebf6; }
.v-passport .passport { position: relative; width: 150px; height: 214px; padding: 20px 12px; }
.v-passport .passport .emblem { width: 56px; height: 56px; margin: 24px auto; font-size: 22px; }
.v-passport .passport strong { font-size: 17px; }
.fake-ask {
  width: 78%; background: #fff; border-radius: 999px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 22px 30px; color: var(--muted); font-size: 18px;
  display: flex; align-items: center;
}
.fake-ask .caret { width: 1.5px; height: 1.1em; background: var(--ink); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.v-lang { background: var(--blue); color: #fff; place-items: start !important; padding: 28px 32px; }
.v-lang p { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 0.95; letter-spacing: -0.045em; margin: 0; }
.v-lang p span { display: block; opacity: 0; transform: translateY(10px); animation: rise 0.8s var(--ease) forwards; }
.v-lang p span:nth-child(2) { animation-delay: 0.3s; }
.v-lang p span:nth-child(3) { animation-delay: 0.6s; }
.v-lang p span:nth-child(4) { animation-delay: 0.9s; }
.mic-orb { width: 110px; height: 110px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; position: relative; }
.mic-orb::before, .mic-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0,0,61,.12); animation: ripple 2.4s var(--ease) infinite; }
.mic-orb::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.mic-orb svg { width: 40px; }
.v-typing { background: #d5e3fb; }
.typing-card { width: 74%; background: #fff; border-radius: 32px; padding: 22px 24px 18px; box-shadow: var(--shadow-sm); font-size: 16px; line-height: 1.4; min-height: 150px; display: flex; flex-direction: column; }
.typing-card .typed::after { content: ""; display: inline-block; width: 1.5px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.typing-card .ctrls { margin-top: auto; display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.typing-card .ctrls i { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; color: #fff; }
.typing-card .ctrls i svg { width: 14px; }
.v-feedback { background: var(--blue-hover); }
.thumbs { background: rgba(255,255,255,.18); border-radius: 999px; padding: 8px; display: flex; gap: 6px; backdrop-filter: blur(6px); }
.thumbs span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.thumbs span:first-child { background: #fff; color: var(--blue); animation: tap 3s var(--ease) infinite; }
.thumbs svg { width: 22px; }
@keyframes tap { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(0.88); } 80% { transform: scale(1.06); } }

/* ---------- Pages de contenu ---------- */
.page-hero { padding: clamp(64px, 9vw, 140px) var(--gutter) 40px; text-align: center; }
.page-hero .display { font-size: clamp(48px, 6.6vw, 96px); }
.prose { width: min(700px, 100%); margin: 0 auto; padding: 0 var(--gutter) 120px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.035em; color: var(--ink); margin: 56px 0 12px; line-height: 1.1; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 0;
  font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { margin: 0 0 22px; }

/* ---------- Chat ---------- */
.chat-page { display: flex; flex-direction: column; min-height: 100dvh; }
.chat-log {
  flex: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 40px var(--gutter) 260px;
}
.msg { margin: 0 0 40px; animation: rise 0.45s var(--ease); }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble {
  background: var(--gray);
  border-radius: 28px;
  padding: 14px 26px;
  font-size: 20px;
  max-width: 80%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.user .file { display: block; font-size: 13px; color: var(--blue); margin-bottom: 4px; }
.msg.bot .content { font-size: 20px; line-height: 1.6; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.msg.bot .content p { margin: 0 0 1em; }
.msg.bot .content ul, .msg.bot .content ol { margin: 0 0 1em; padding-left: 1.3em; }
.msg.bot .content li { margin: 0.25em 0; }
.msg.bot .content a {
  color: var(--link); text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px;
  white-space: normal;
}
.msg.bot .content a:hover { text-decoration-style: solid; }
.msg.bot .content a .ext { display: inline-block; width: 0.72em; height: 0.72em; margin-left: 2px; vertical-align: 0.05em; }
.msg.bot .content h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 1.4em 0 0.6em; }
.msg.bot .content > h3:first-child { margin-top: 0; }
.msg.bot .content ul { list-style: none; padding-left: 1.6em; }
.msg.bot .content ul li { position: relative; margin: 0.55em 0; }
.msg.bot .content ul li::before { content: ""; position: absolute; left: -1.15em; top: 0.68em; width: 6px; height: 6px; background: var(--ink); }
.msg.bot .content ol li { padding-left: 0.2em; margin: 0.55em 0; }
.msg.bot .content strong { font-weight: 600; }
.msg.bot .content > :last-child { margin-bottom: 0; }
.msg.bot.streaming .content > :last-child::after {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue); margin-left: 6px; vertical-align: 1px;
  animation: blink 0.9s steps(1) infinite;
}
.msg-error { color: #ce0500; font-size: 16px; }
.searching { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--muted); }
.tri-dots { display: flex; gap: 5px; }
.tri-dots i { width: 9px; height: 9px; border-radius: 50%; animation: hop 1.1s var(--ease) infinite; }
.tri-dots i:nth-child(1) { background: var(--blue); }
.tri-dots i:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--border-strong); animation-delay: 0.15s; }
.tri-dots i:nth-child(3) { background: var(--red); animation-delay: 0.3s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.msg-actions { display: flex; gap: 10px; margin-top: 22px; }
.act-group { display: flex; background: var(--gray); border-radius: 999px; padding: 4px; }
.act-group button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink-2);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.act-group button:hover { background: #fff; }
.act-group button:active { transform: scale(0.9); }
.act-group button.on { color: #fff; background: var(--blue); }
.act-group button.on:hover { background: var(--blue-hover); }
.act-group svg { width: 20px; height: 20px; }
.chat-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 16px 16px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 34%);
  animation: dockIn 0.6s var(--ease);
}
@keyframes dockIn { from { transform: translateY(40px); opacity: 0; } }
.chat-meta { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
.chat-meta button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 2px; color: inherit; font-size: 15px; }
.chat-meta button span { text-decoration: underline dotted; text-underline-offset: 4px; }
.chat-meta button:hover { color: var(--blue); }
.chat-meta svg { width: 17px; height: 17px; }
.toast {
  position: fixed; left: 50%; bottom: 150px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  .msg.user .bubble, .msg.bot .content { font-size: 17px; }
  .chat-log { padding-bottom: 200px; }
}


/* Chat : favicons, sources, suggestions */
.fav { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--border); object-fit: contain; padding: 2px; flex: none; }
.fav.broken { visibility: hidden; }
.searching .visits { display: inline-flex; margin-left: 4px; }
.searching .visits .fav { margin-left: -6px; animation: pop 0.35s var(--ease) both; }
.searching .visits .fav:first-child { margin-left: 0; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.sources-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px 0 10px;
  border: 0; border-radius: 999px; background: var(--gray);
  font-size: 16px; font-weight: 500; color: var(--ink-2);
  transition: background 0.2s;
}
.sources-pill:hover { background: var(--gray-2); }
.fav-stack { display: inline-flex; }
.fav-stack .fav { margin-left: -8px; }
.fav-stack .fav:first-child { margin-left: 0; }
.act-group .flip { display: grid; transform: rotate(180deg); }
.suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 36px; }
.suggestions button {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 18px 28px; font-size: 19px; color: var(--muted); text-align: left;
  letter-spacing: -0.01em; max-width: 100%;
  transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease);
  animation: rise 0.45s var(--ease) both;
}
.suggestions button:hover { border-color: var(--blue); color: var(--ink); transform: translateX(4px); }
.modal-scroll { max-height: min(86vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
.modal-text { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.sources-list { display: flex; flex-direction: column; }
.source-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.source-row:first-child { border-top: 0; }
.source-row:hover { background: #f8f8fc; }
.source-row .fav { width: 28px; height: 28px; }
.source-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.source-text strong { font-weight: 500; font-size: 16px; }
.source-text span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-row .ext { width: 12px; height: 12px; color: var(--muted); flex: none; }
.ask.warn { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 0, 14, 0.1); }
.ask.busy .ph { color: var(--blue); }
@media (max-width: 640px) {
  .suggestions button { font-size: 16px; padding: 14px 20px; }
}


/* Bouton stop pendant l'écriture */
.send-btn .stop-icon { display: none; width: 16px; height: 16px; border-radius: 3px; background: #fff; }
.ask.generating .send-btn svg { display: none; }
.ask.generating .send-btn .stop-icon { display: block; animation: pop 0.25s var(--ease); }
.ask.generating .send-btn:hover svg { transform: none; }

/* Remerciement après un avis */
.msg-actions { position: relative; flex-wrap: wrap; }
.fb-pop {
  position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 20;
  width: min(420px, calc(100vw - 32px));
  background: #fff; border-radius: 32px;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  padding: 24px 24px 20px 28px;
  transform-origin: 20% 100%;
  animation: popIn 0.35s var(--ease);
}
.fb-pop.out { animation: popOut 0.2s var(--ease) forwards; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes popOut { to { opacity: 0; transform: translateY(6px) scale(0.97); } }
.fb-pop strong { display: block; font-weight: 500; font-size: 19px; }
.fb-pop p { margin: 4px 0 20px; font-size: 18px; }
.fb-pop .close-btn { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; }
.fb-pop .more { border: 0; background: var(--gray); border-radius: 999px; padding: 14px 22px; font-size: 17px; font-weight: 500; transition: background 0.2s; }
.fb-pop .more:hover { background: var(--gray-2); }

/* Fenêtre de détails d'avis */
.fb-form { display: flex; flex-direction: column; gap: 12px; }
.fb-reason {
  text-align: left; border: 1px solid rgba(0, 0, 61, 0.3); background: #fff;
  border-radius: 20px; padding: 20px 22px; font-size: 18px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.fb-reason:hover { border-color: var(--ink); }
.fb-reason[aria-pressed="true"] { border-color: var(--blue); background: #f3f3ff; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.fb-form textarea {
  min-height: 150px; resize: vertical;
  border: 1px solid rgba(0, 0, 61, 0.5); border-radius: 20px;
  padding: 18px 22px; font-size: 18px; outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fb-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 145, 0.1); }
.submit-btn {
  margin-top: 12px; height: 70px; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 19px; font-weight: 500;
  transition: background 0.2s, opacity 0.2s, transform 0.2s var(--ease);
}
.submit-btn:hover { background: var(--blue-hover); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.45; cursor: default; }

/* Sources groupées par site */
.src-group { border-top: 1px solid var(--border); }
.src-group:first-child { border-top: 0; }
.src-head {
  width: 100%; display: flex; align-items: center; gap: 18px;
  border: 0; background: none; padding: 20px 0; text-align: left;
}
.src-head .fav { width: 60px; height: 60px; padding: 6px; box-shadow: 0 6px 20px rgba(0, 0, 61, 0.12), 0 0 0 1px var(--border); }
.src-head .source-text strong { font-size: 19px; font-weight: 400; }
.src-head .source-text span { font-size: 17px; }
.src-head .chev { width: 22px; height: 22px; flex: none; transition: transform 0.35s var(--ease); }
.src-group.open .chev { transform: rotate(180deg); }
.src-pages { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.src-group.open .src-pages { grid-template-rows: 1fr; }
.src-pages > div { overflow: hidden; }
.src-pages a {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 14px 78px; font-size: 16px; color: var(--link);
  text-decoration: underline dotted; text-underline-offset: 4px;
}
.src-pages a:hover { text-decoration-style: solid; }
.src-pages a .ext { width: 11px; height: 11px; flex: none; margin-top: 6px; }
.msg-note { color: var(--muted); font-size: 15px; font-style: italic; margin: 8px 0 0; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }

/* ---------- Animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    transition-delay: 0s !important;
  }
  .fade-up, .enter { transform: none !important; }
  .reveal-section { height: auto; }
  .reveal-sticky { position: static; height: auto; padding: 120px var(--gutter); }
  .reveal-text .w { opacity: 1; filter: none; }
}

fr-top, fr-header, fr-ask, fr-dock, fr-footer { display: block; }
.fb-reasons { display: flex; flex-direction: column; gap: 12px; }
.fb-reasons[hidden] { display: none; }
