/* Répondravis : style fort et clair (héros blanc aux couleurs pastel, typographie très grasse, boutons bleus en pilule) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #131316;
  --text: #3b3b44;
  --muted: #676774;
  --faint: #9a9aa6;
  --bg: #ffffff;
  --soft: #f4f4f7;
  --line: #e4e4ea;
  --line-strong: #cfcfd8;
  --blue: #3d5afe;
  --blue-600: #2a44e0;
  --blue-50: #eef1ff;
  --star: #ffb400;
  --star-off: #dcdce4;
  --night: #08080d;
  --success: #12804a;
  --success-soft: #e9f7ef;
  --danger: #c4231b;
  --danger-soft: #fdf0ef;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(10, 10, 20, 0.08), 0 1px 2px rgba(10, 10, 20, 0.04);
  --shadow-md: 0 14px 34px -14px rgba(10, 10, 30, 0.28);
  --shadow-lg: 0 30px 80px -24px rgba(10, 10, 40, 0.45);
  --shadow-carte: 0 24px 60px -30px rgba(30, 34, 90, 0.3), 0 0 0 1px var(--line);
  --ring: 0 0 0 4px rgba(61, 90, 254, 0.22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.45em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--blue); font-weight: 600; text-decoration: none; }
a:hover { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.masque { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.small { font-size: 0.875rem; color: var(--muted); }
code { background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.demo-banner { background: #fff6dc; border-bottom: 1px solid #f5dd9a; color: #7a5200; text-align: center; font-weight: 500; font-size: 0.875rem; padding: 8px 16px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.025em; text-decoration: none; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-mark { display: block; width: 36px; height: 36px; flex: none; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 10px; }
.nav-menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.nav-liens { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-liens a { color: var(--ink); font-size: 0.95rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.nav-liens a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.badge-pro { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 0.78rem; }
.badge-pro:hover { color: #fff; text-decoration: none; }
/* The disclosure stays in the header flow, including when translations wrap. */
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 700 .9rem var(--font); cursor: pointer; }
.nav-toggle:hover { background: var(--soft); }
.nav-toggle-icon { display: grid; gap: 4px; width: 20px; }
.nav-toggle-icon i { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:last-child { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1199px) {
  .nav-menu { flex: 0 0 100%; display: grid; align-items: stretch; justify-content: stretch; gap: 14px; border-top: 1px solid var(--line); padding-block: 12px 6px; max-height: calc(100vh - 88px); max-height: calc(100svh - 88px); overflow-y: auto; }
  .nav-liens { display: grid; gap: 4px; }
  .nav-liens a { display: flex; align-items: center; min-height: 44px; border-radius: 10px; padding: 8px 12px; }
  .nav-menu .nav-actions { display: grid; justify-content: stretch; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nav-menu .nav-actions > a { min-height: 44px; text-align: center; }
  .nav-menu .badge-pro { justify-self: start; display: inline-flex; align-items: center; }
  .nav-menu .language-picker, .nav-menu .language-picker select { width: 100%; max-width: none; }
  .nav-menu .language-picker select { min-height: 44px; font-size: 16px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--soft); color: var(--ink);
  font: 700 0.95rem/1.2 var(--font); letter-spacing: -0.005em; text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; color: var(--ink); background: #e9e9ef; }
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: progress; opacity: 0.6; transform: none; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-600); color: #fff; }
.btn.contour { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.contour:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f0f0f5; color: var(--ink); }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn.full { width: 100%; }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: #f4c7c3; }
.btn.danger:hover { background: #fbe1de; color: var(--danger); }
.btn.copie, .btn.copie:hover { background: var(--success); color: #fff; }
.btn.bientot, .btn.bientot:hover { background: var(--soft); border-color: var(--line-strong); color: var(--muted); }
.linkish {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  font: inherit; font-weight: 700; color: var(--blue); cursor: pointer;
}
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-douce { background: var(--soft); }
.section-tete { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.section-tete h2, .faq-tete h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.04em; }
.sous-titre { margin: 0 auto; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 60ch; }

/* ---------- Aurore (couleurs pastel en mouvement, sur fond clair) ---------- */
.aurore { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurore i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.26; animation: derive 22s ease-in-out infinite alternate; }
.aurore i:nth-child(1) { background: #3d5afe; left: -24vmax; top: -30vmax; }
.aurore i:nth-child(2) { background: #a429ff; right: -26vmax; top: -24vmax; animation-duration: 26s; opacity: 0.2; }
.aurore i:nth-child(3) { background: #ff4f7b; left: 10%; bottom: -46vmax; animation-duration: 30s; opacity: 0.18; }
.aurore i:nth-child(4) { background: #ffb020; right: 0; bottom: -48vmax; animation-duration: 24s; opacity: 0.22; }
@keyframes derive { to { transform: translate(6vmax, 4vmax) scale(1.12); } }

/* ---------- Héros ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #fff; color: var(--text); padding: 64px 0 80px; }
@media (min-width: 900px) { .hero { padding: 96px 0 112px; } }
.hero-centre { max-width: 900px; text-align: center; position: relative; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.hero-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #3d5afe, #e5306f); }
.hero h1 { color: var(--ink); font-size: clamp(2.8rem, 8.4vw, 6rem); line-height: 0.98; letter-spacing: -0.055em; font-weight: 850; margin-bottom: 24px; }
.degrade { background: linear-gradient(100deg, #3d5afe 10%, #a429ff 55%, #e5306f 95%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: 0.06em; }
.lead { font-size: clamp(1.08rem, 2.1vw, 1.32rem); line-height: 1.55; color: var(--text); max-width: 50ch; margin: 0 auto 40px; }

.boite { text-align: left; background: #fff; border-radius: 24px; box-shadow: 0 28px 70px -28px rgba(30, 34, 90, 0.32), 0 0 0 1px var(--line); transition: box-shadow 0.2s; }
.boite:focus-within { box-shadow: 0 28px 70px -28px rgba(30, 34, 90, 0.32), 0 0 0 2px var(--blue), 0 0 0 6px rgba(61, 90, 254, 0.16); }
.boite textarea#review {
  display: block; width: 100%; min-height: 112px; max-height: 340px; resize: none; overflow-y: auto;
  border: 0; box-shadow: none; background: transparent; border-radius: 24px 24px 0 0;
  padding: 22px 24px 8px; font-size: 1.1rem; line-height: 1.55; color: var(--ink);
}
.boite textarea#review:focus { box-shadow: none; }
.boite-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 12px; }
.boite-nom { flex: 1 1 150px; min-width: 0; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--soft); border: 2px solid transparent; box-shadow: none; font-size: 0.95rem; }
.boite-ton { flex: 0 1 auto; width: auto; min-height: 44px; padding: 8px 34px 8px 16px; border-radius: 999px; background-color: var(--soft); border: 2px solid transparent; box-shadow: none; font-size: 0.95rem; font-weight: 600; background-position: right 12px center; }
.boite-nom:hover, .boite-ton:hover { border-color: var(--line-strong); }
.boite-barre .btn { margin-left: auto; min-height: 48px; }
/* Ligne 1 : établissement et activité ; ligne 2 : note, ton et bouton */
.boite-saut { flex-basis: 100%; height: 0; }
.boite-metier { flex: 0 1 240px; min-width: 0; }
.boite-metier:has(option[value=""]:checked) { color: var(--muted); font-weight: 500; }
.boite-activite { flex-basis: 100%; }
@media (max-width: 640px) {
  .boite-ton { flex: 1 1 auto; }
  .boite-nom, .boite-metier { flex: 1 1 100%; }
  .boite-barre .btn { flex: 1 1 100%; margin-left: 0; }
}

.sous-boite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 6px 0; text-align: left; }
.hero .linkish { font-size: 0.95rem; min-height: 36px; }
@media (max-width: 640px) { .sous-boite { justify-content: center; } }

details.options { margin: 4px 6px 0; text-align: left; }
details.options summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--muted); list-style: none; }
details.options summary:hover { color: var(--ink); }
details.options summary::-webkit-details-marker { display: none; }
details.options summary::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676774' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s;
}
details.options[open] summary::before { transform: rotate(45deg); }
.options-grille { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; padding: 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); }
@media (min-width: 640px) { .options-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .options-large { grid-column: 1 / -1; } }
.hero .error { margin-top: 16px; text-align: left; }

/* Cartes d'avis flottantes autour de la case (grand écran) */
.flotte {
  position: absolute; z-index: 0; width: 250px; padding: 16px; border-radius: 18px; text-align: left;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-md);
  animation: flotte 7s ease-in-out infinite alternate;
}
.flotte p { margin: 6px 0 12px; font-size: 0.9rem; line-height: 1.45; }
.f-etoiles { color: var(--star); letter-spacing: 1px; }
.f-etoiles i { font-style: normal; color: #b4b4c2; }
.f-statut { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); }
.flotte-d .f-statut { background: var(--blue-50); color: var(--blue); }
.f-statut .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.flotte-g { left: max(24px, calc(50% - 700px)); top: 42%; transform: rotate(-4deg); }
.flotte-d { right: max(24px, calc(50% - 700px)); top: 24%; transform: rotate(4deg); animation-delay: -3s; }
@keyframes flotte { to { translate: 0 -14px; } }
@media (max-width: 1279px) { .flotte { display: none; } }

/* ---------- Champs ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  width: 100%; min-height: 44px; font: 400 1rem/1.5 var(--font); color: var(--ink);
  background: #fff; border: 2px solid var(--line-strong); border-radius: 12px; padding: 9px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131316' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
input:hover, select:hover, textarea:hover { border-color: #b4b4c0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
::placeholder { color: var(--faint); }

.stars { display: flex; }
.star { display: grid; place-items: center; width: 32px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; transition: transform 0.15s; }
.star svg { width: 26px; height: 26px; fill: var(--star-off); transition: fill 0.15s; }
.star.on svg { fill: var(--star); }
.star:hover { transform: scale(1.15); }
.star.boing { animation: boing 0.35s ease; }
@keyframes boing { 40% { transform: scale(1.25); } }

.quota { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 0.875rem; color: var(--muted); margin: 0; }
.quota-dots { display: inline-flex; gap: 4px; }
.quota-dots i { width: 16px; height: 5px; border-radius: 99px; background: var(--line-strong); }
.quota-dots i.full { background: var(--blue); }

.error { background: var(--danger-soft); border: 1px solid #f4c7c3; color: var(--danger); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 0.92rem; margin: 0; }
.shake { animation: shake 0.35s; }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

/* ---------- Résultat (sous la case) ---------- */
.result { margin-top: 32px; text-align: left; }
.loading, .paywall {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  min-height: 300px; padding: 32px 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-carte); color: var(--text);
}
.loading p { font-weight: 700; color: var(--ink); margin: 14px 0 20px; }
.spinner { display: inline-block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--blue-50); border-top-color: var(--blue); animation: tourne 0.8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.skeleton { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.skeleton span { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--line) 0%, var(--soft) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton span:nth-child(2) { width: 88%; }
.skeleton span:nth-child(3) { width: 62%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.output { animation: apparait 0.3s ease-out; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 6px 12px; flex-wrap: wrap; }
.output-head h2 { margin: 0; font-size: 0.92rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
#output:not(.is-example) .output-head h2 { color: var(--ink); }
.tag { border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 0.75rem; background: #fff6dc; color: #7a5200; border: 1px solid #f5dd9a; }

.g-review { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-carte); color: var(--text); }
.g-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.94rem; }
.g-head strong { color: var(--ink); font-weight: 700; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #3d5afe, #a429ff); color: #fff; font-weight: 700; flex: none; }
.g-stars { color: var(--star); letter-spacing: 1px; font-size: 1rem; line-height: 1.3; }
.g-stars i { font-style: normal; color: #b4b4c2; }
.g-text { margin: 0 0 14px; color: var(--text); font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-reply { background: var(--soft); border-radius: var(--radius); padding: 14px; }
.g-reply-head { font-weight: 700; font-size: 0.82rem; color: var(--ink); margin-bottom: 4px; }
.g-reply textarea { background: transparent; border: 2px dashed transparent; box-shadow: none; padding: 4px 6px; margin: 0 -8px; width: calc(100% + 16px); min-height: 150px; resize: none; overflow: hidden; font-size: 0.98rem; color: var(--text); }
.g-reply textarea:hover { border-color: var(--line-strong); }
.g-reply textarea:focus { background: #fff; border: 2px solid var(--blue); box-shadow: var(--ring); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.actions .btn { flex: 1 1 170px; }
.hint { margin: 12px 2px 0; }

#output.is-example .g-text { display: block; overflow: visible; }
#output.is-example .g-reply textarea:hover { border-color: transparent; }
.example-cta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.example-cta p { margin: 0; flex: 1 1 240px; font-size: 0.92rem; color: var(--muted); }

.big-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-50); color: var(--blue); margin-bottom: 12px; }
.big-icon .ico { width: 24px; height: 24px; }
.big-icon.succes { background: var(--success-soft); color: var(--success); }
.big-icon.neutre { background: var(--soft); color: var(--muted); }
.paywall h3 { font-size: 1.4rem; margin-top: 2px; }
.paywall p { color: var(--muted); margin: 0 0 16px; max-width: 38ch; }
.paywall .small { margin-top: 10px; }

/* ---------- Secteurs ---------- */
.secteurs { padding: 34px 0; text-align: center; border-bottom: 1px solid var(--line); }
.secteurs p { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.secteurs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.secteurs li { color: var(--ink); font-weight: 800; font-size: clamp(1rem, 2vw, 1.2rem); letter-spacing: -0.02em; }

/* ---------- Métiers (onglets) ---------- */
.onglets { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; max-width: 1080px; margin: 0 auto 28px; }
/* Grand écran : 10 métiers sur 2 lignes de 5 */
@media (min-width: 1100px) { .onglets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
.onglet {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line-strong); background: #fff;
  font: 700 0.95rem/1 var(--font); color: var(--ink); white-space: nowrap; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
@media (max-width: 640px) { .onglets { gap: 6px; } .onglet { padding: 0 14px; font-size: 0.9rem; } }
.onglet:hover { border-color: var(--ink); }
.onglet[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.metier {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 32px 24px; border-radius: 28px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  animation: apparait 0.35s ease-out;
}
@media (min-width: 900px) { .metier { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding: 64px; min-height: 460px; } }
.metier-label { margin: 0 0 12px; font-weight: 700; font-size: 0.9rem; opacity: 0.9; }
.metier h3 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); letter-spacing: -0.04em; }
.metier-texte > p:not(.metier-label) { margin: 0; font-size: 1.08rem; line-height: 1.55; opacity: 0.95; }
.metier-texte .js-essayer { margin-top: 24px; }
.metier-visuel, .bande-visuel { display: grid; gap: 14px; }
.mini-avis, .mini-reponse { background: #fff; color: var(--text); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-lg); }
.mini-avis p, .mini-reponse p { margin: 6px 0 0; font-size: 0.97rem; }
.mini-reponse { margin-left: clamp(0px, 6vw, 56px); }
.mini-reponse strong { font-size: 0.82rem; color: var(--ink); }
.mini-reponse::before { content: "Rédigée par Répondravis"; display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 0.75rem; font-weight: 700; }
.mini-reponse strong { display: block; }

/* ---------- Bandes pleine largeur ---------- */
.bande { padding: 88px 0; }
@media (min-width: 900px) { .bande { padding: 128px 0; } }
.bande-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .bande-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .bande-grille.inverse .bande-texte { order: 2; } }
.bande h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -0.045em; line-height: 1.02; }
.bande-texte p { font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.6; margin: 0 0 28px; color: var(--muted); max-width: 46ch; }
.bande-visuel { padding: 28px; border-radius: 28px; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .bande-visuel { padding: 48px; } }
.bande-claire { background: linear-gradient(160deg, #f4f3ff 0%, #fdf4f8 100%); }
.langue { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-lg); }
.langue:nth-child(2) { margin-left: clamp(0px, 4vw, 40px); }
.langue:nth-child(3) { margin-left: clamp(0px, 8vw, 80px); }
.langue .code { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.85rem; }
.langue p { margin: 2px 0 0; font-size: 0.95rem; color: var(--ink); }
.langue p.rep { color: var(--muted); }
.bande-vive { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(120deg, #3d5afe 0%, #7b2ff7 50%, #e5306f 100%); }
.bande-centre { max-width: 820px; }
.chiffre { margin: 0; font-weight: 900; font-size: clamp(6rem, 22vw, 13rem); line-height: 0.9; letter-spacing: -0.07em; }
.bande-vive h2 { color: #fff; }
.bande-vive p:not(.chiffre) { font-size: clamp(1.05rem, 1.9vw, 1.25rem); margin: 0 auto 32px; max-width: 46ch; opacity: 0.95; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.etapes li { padding: 8px 4px; }
.etape-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 20px; background: var(--ink); color: #fff; font-weight: 900; font-size: 1.5rem; }
.etapes li:nth-child(2) .etape-num { background: var(--blue); }
.etapes li:nth-child(3) .etape-num { background: linear-gradient(135deg, #a429ff, #ff4fa3); }
.etapes h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.etapes p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- Cartes ---------- */
.cartes { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cartes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.carte { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.carte:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.carte-visuel { display: grid; place-items: center; height: 150px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; }
.carte-visuel .ico { width: 52px; height: 52px; stroke-width: 1.5; }
.carte h3 { font-size: 1.2rem; margin: 22px 22px 8px; letter-spacing: -0.02em; }
.carte p { margin: 0 22px 24px; color: var(--muted); font-size: 0.97rem; }

/* ---------- Comparatif ---------- */
.compare-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare-card { border-radius: var(--radius-lg); padding: 32px; background: var(--soft); }
.compare-card h3 { font-size: 1.4rem; margin: 0; }
.compare-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.compare-card li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 13px; }
.compare-card.us { background: #fff; border: 2px solid var(--blue); box-shadow: var(--shadow-md); }
.compare-card.us h3 { color: var(--blue); }
.compare-card.us li { color: var(--ink); font-weight: 600; }
.compare-card.us li::before {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.compare-card.them h3, .compare-card.them li { color: var(--muted); }
.compare-card.them li::before {
  background-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676774' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E");
}

/* ---------- Tarif ---------- */
.offres { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; align-items: stretch; }
@media (min-width: 760px) { .offres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offre-carte { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid transparent; border-radius: 26px; padding: 32px; box-shadow: var(--shadow-sm); }
.offre-carte.vedette { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.offre-carte .btn { margin: 26px 0 4px; }
.ribbon { position: absolute; top: 30px; right: 30px; background: var(--blue-50); color: var(--blue); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.78rem; }
.plan-name { font-weight: 800; color: var(--ink); font-size: 1.15rem; margin: 0; }
.vedette .plan-name { color: var(--blue); }
.price { font-weight: 900; color: var(--ink); font-size: clamp(2.5rem, 12vw, 3.6rem); letter-spacing: -0.05em; line-height: 1.05; margin: 16px 0 6px; }
.js-price { white-space: nowrap; }
.price small { font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan-desc { margin: 0; color: var(--muted); font-size: 1rem; }
.checks { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; color: var(--text); }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5afe' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.offres-note { text-align: center; margin: 24px 0 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; } }
@media (max-width: 899px) { .faq-tete { text-align: center; } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); transition: transform 0.2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131316' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 36px 22px 0; color: var(--muted); font-size: 1rem; }

/* ---------- Appel final ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; background: #fff; color: var(--text); text-align: center; padding: 112px 0; }
@media (min-width: 900px) { .final { padding: 152px 0; } }
.final h2 { font-size: clamp(2.4rem, 6.4vw, 5rem); letter-spacing: -0.05em; line-height: 1; max-width: 16ch; margin-left: auto; margin-right: auto; }
.final p { margin: 0 auto 34px; max-width: 46ch; font-size: 1.15rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--soft); padding: 64px 0 28px; font-size: 0.94rem; }
.pied-grille { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .pied-grille { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.pied-marque { grid-column: 1 / -1; }
@media (min-width: 820px) { .pied-marque { grid-column: auto; } }
.pied-marque p { margin: 12px 0 0; color: var(--muted); max-width: 32ch; }
.pied nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pied nav a { color: var(--text); font-weight: 500; }
.pied nav a:hover { color: var(--ink); }
.pied-titre { margin: 0 0 4px; font-weight: 800; color: var(--ink); font-size: 0.9rem; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 0.85rem; }
.pied-simple { background: var(--soft); padding: 24px 0; font-size: 0.875rem; color: var(--muted); }
.pied-simple .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.pied-simple nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pied-simple a { color: var(--text); font-weight: 500; }

/* ---------- Pages simples (connexion, compte, merci, légal) ---------- */
.page-fond { min-height: 100vh; display: flex; flex-direction: column; background: var(--soft); }
.page-fond main { flex: 1; width: 100%; }
.page { max-width: 800px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 640px) { .page { padding-top: 64px; } }
.page-etroite { max-width: 480px; }
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; }
@media (min-width: 640px) { .card { padding: 36px; } }
.page .card + .card { margin-top: 20px; }
.page h1 { font-size: clamp(1.8rem, 4.6vw, 2.4rem); letter-spacing: -0.04em; }
.page h2 { font-size: 1.2rem; margin-top: 1.6em; }
.page .card > h2:first-child, .page .card .offre-tete h2 { margin-top: 0; }
.page p, .page li { color: var(--text); }
.auth-tete { margin-bottom: 22px; }
.auth-tete h1 { margin-bottom: 8px; }
.auth-tete p { margin: 0; color: var(--muted); }
.auth-tete .spinner { margin-bottom: 14px; }
.page-etroite .small { margin: 16px 0 0; }
.page-etroite form .error { margin-bottom: 12px; }
.code-input { font-size: 1.7rem; font-weight: 700; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: 0.5em; }
.titre-page { margin-bottom: 24px; }
.titre-page h1 { margin: 0; }
.titre-page p { margin: 4px 0 0; }
.notice { background: var(--blue-50); color: var(--blue-600); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 0.94rem; }
.offre-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offre-tete h2 { margin: 0; }
.tag-pro { background: var(--blue); color: #fff; border-color: var(--blue); }
.tag.neutre { background: var(--soft); color: var(--text); border-color: var(--line); }
.jauge { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 18px 0 8px; }
.jauge span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3d5afe, #a429ff); transition: width 0.6s; }
.hist { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.hist-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.hist-tete { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.hist-avis { color: var(--muted); margin: 8px 0; font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist-reponse { white-space: pre-line; margin: 0 0 8px; padding: 12px; background: var(--soft); border-radius: 12px; font-size: 0.95rem; }
.hist-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hist-actions .linkish, .offre-tete .linkish { min-height: 44px; font-size: 0.92rem; }
.danger-link, .danger-link:hover { color: var(--danger); }
.zone-danger { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.zone-danger summary { cursor: pointer; font-weight: 700; color: var(--danger); min-height: 44px; display: flex; align-items: center; font-size: 0.95rem; }
.zone-danger[open] summary { margin-bottom: 6px; }
.legal .card h1 { font-size: 1.5rem; }
.legal .card ul { padding-left: 20px; }
.legal .card li + li { margin-top: 6px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.legal-nav a { font-size: 0.9rem; color: var(--ink); background: #fff; border: 2px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.legal-nav a:hover { border-color: var(--ink); text-decoration: none; }
.page-fond .topbar .nav-compte { font-weight: 700; color: var(--ink); padding: 10px 14px; }

/* ---------- Message éphémère ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 200;
  max-width: min(92vw, 520px); background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 20px;
  font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-lg); transition: transform 0.3s; text-align: center;
}
.toast.visible { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* International: native language names, logical spacing and bidirectional user text. */
.language-picker {display:inline-flex;align-items:center;flex-shrink:0}
.language-picker select {font:inherit;font-size:16px;min-height:44px;border:1px solid var(--line,#ddd);border-radius:9px;padding:8px;max-width:130px;background:#fff;color:#161616}
[dir="rtl"] .g-review,[dir="rtl"] .field,[dir="rtl"] .metier-texte,[dir="rtl"] .legal,[dir="rtl"] .hist-item {text-align:right}
[dir="rtl"] .g-reply {margin-left:0;margin-right:38px}
[dir="rtl"] .boite-nom {text-align:right}
[dir="rtl"] .jauge span {float:right}
input[type="email"],.code-input {direction:ltr;text-align:start}
.hist-avis,.hist-reponse {unicode-bidi:plaintext}
.currency-note {font-size:12px;line-height:1.5;color:#626777;max-width:620px;margin:12px auto}
.currency-picker {font:inherit;font-size:13px;padding:7px;border:1px solid #ddd;border-radius:8px;background:#fff}
@media(max-width:640px){[dir="rtl"] .g-reply{margin-right:12px}}

/* Tax labels and currency codes vary in length between languages. */
.price .js-price {white-space:normal;overflow-wrap:anywhere;font-size:clamp(1.75rem,6vw,2.7rem)}
.price small {display:inline-block}
.onglet {white-space:normal;line-height:1.2}
.btn {overflow-wrap:anywhere;white-space:normal;max-width:100%}
.btn .js-price {white-space:normal;min-width:0}
[dir="rtl"] .legal .card ul {padding-left:0;padding-right:20px}
