/* Repris du widget « FAQ visa premium + retraité » d'EM_design (02/11/2026), sélecteurs passés en classe. */
.emfaq { --b1: #1c7db3; --b2: #28a3e6; --g: #159753; --r: #b11c1d; --lb: #e8f4fd; --ink: #0f2a3d; --mut: #5b7487; --line: #e3edf4; --soft: #f4f9fd; --top: 0px;
    max-width: 860px; margin: 0 auto; font-family: inherit; color: var(--ink); font-size: 15px; line-height: 1.55; }
  .emfaq *, .emfaq *::before, .emfaq *::after { box-sizing: border-box; }
  .emfaq p, .emfaq ul, .emfaq h3 { margin: 0; }
  .emfaq svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- liste ---------- */
  .emfaq .emfaq-list { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(15,42,61,.04); }
  .emfaq .emfaq-item { position: relative; border-top: 1px solid var(--line); }
  .emfaq .emfaq-item:first-child { border-top: 0; }
  /* une couleur par question (palette maison) : icône, barre de côté, croix */
  .emfaq .emfaq-item { --c: var(--b1); --cb: var(--lb); }
  .emfaq .emfaq-item.c-amber { --c: #c27c0e; --cb: #fff4d1; }
  .emfaq .emfaq-item.c-green { --c: var(--g); --cb: #e5f5ec; }
  .emfaq .emfaq-item.c-sky { --c: var(--b2); --cb: #e2f4fd; }
  .emfaq .emfaq-item::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; z-index: 3;
    background: var(--c); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .emfaq .emfaq-item.is-open::before { transform: scaleY(1); }
  .emfaq .emfaq-item:first-child::before { border-top-left-radius: 10px; }
  .emfaq .emfaq-item:last-child::before { border-bottom-left-radius: 10px; }

  /* question (collée en haut de l'écran pendant la lecture) */
  .emfaq h3.emfaq-h { font: inherit; margin: 0; padding: 0; position: sticky; top: var(--top); z-index: 2; }
  .emfaq button.emfaq-q { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
    line-height: 1.35; color: var(--ink); background: #fff; text-transform: none; letter-spacing: normal;
    border: 0; border-radius: 0; box-shadow: none; text-align: left; transition: background .2s, color .2s; }
  .emfaq .emfaq-item:first-child button.emfaq-q { border-radius: 10px 10px 0 0; }
  .emfaq .emfaq-item:last-child:not(.is-open) button.emfaq-q { border-radius: 0 0 10px 10px; }
  .emfaq button.emfaq-q:hover { background: #f8fbfe; }
  .emfaq .is-open button.emfaq-q { color: var(--ink); background: linear-gradient(90deg, var(--cb), #fff 70%); box-shadow: 0 1px 0 var(--line); }
  .emfaq button.emfaq-q:focus-visible { outline: 2px solid var(--b2); outline-offset: -2px; }
  .emfaq .emfaq-ic { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 8px; color: var(--c); background: var(--cb);
    transition: background .3s, color .3s, transform .4s cubic-bezier(.3,1.5,.5,1); }
  .emfaq button.emfaq-q:hover .emfaq-ic { transform: translateY(-1px) rotate(-5deg); }
  .emfaq .is-open .emfaq-ic { color: #fff; background: var(--c); transform: none; box-shadow: 0 4px 10px -4px var(--c); }
  .emfaq .emfaq-t { flex: 1; min-width: 0; }
  /* réponse courte visible sans ouvrir */
  .emfaq .emfaq-pill { flex: none; font-size: 12px; font-weight: 600; color: var(--mut); background: #f0f5f9; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
    transition: opacity .25s, transform .25s; }
  .emfaq .emfaq-pill.yes { color: var(--g); background: #e9f7ef; }
  .emfaq .is-open .emfaq-pill { opacity: 0; transform: translateX(6px); }
  .emfaq .emfaq-pm { flex: none; position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--cb);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s; }
  .emfaq .emfaq-pm::before, .emfaq .emfaq-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px;
    border-radius: 2px; background: var(--c); transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s; }
  .emfaq .emfaq-pm::after { transform: rotate(90deg); }
  .emfaq button.emfaq-q:hover .emfaq-pm { transform: scale(1.12); }
  .emfaq .is-open .emfaq-pm { transform: rotate(180deg); background: var(--c); }
  .emfaq .is-open .emfaq-pm::before, .emfaq .is-open .emfaq-pm::after { background: #fff; }
  .emfaq .is-open .emfaq-pm::after { transform: rotate(0deg); }

  /* réponse */
  .emfaq .emfaq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
  .emfaq .is-open .emfaq-a { grid-template-rows: 1fr; }
  .emfaq .emfaq-a > div { overflow: hidden; min-height: 0; }
  .emfaq .emfaq-body { padding: 14px 16px 16px 58px; color: #34495a; display: grid; gap: 12px; }
  .emfaq .emfaq-body strong { color: var(--ink); }
  @keyframes emfaqRise { from { opacity: 0; transform: translateY(8px); } }
  .emfaq .is-open .emfaq-body > * { animation: emfaqRise .5s cubic-bezier(.2,.8,.2,1) both; }
  .emfaq .is-open .emfaq-body > *:nth-child(2) { animation-delay: .07s; }
  .emfaq .is-open .emfaq-body > *:nth-child(3) { animation-delay: .14s; }
  .emfaq .is-open .emfaq-body > *:nth-child(4) { animation-delay: .21s; }
  .emfaq .emfaq-note { background: #fff8e1; border-left: 3px solid #e7b923; padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: 14px; }
  .emfaq .emfaq-note.info { background: var(--lb); border-left-color: var(--b2); }
  .emfaq .mini { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }

  /* étapes (délai) */
  .emfaq .emfaq-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
  .emfaq .emfaq-step { position: relative; text-align: center; padding: 0 6px; }
  .emfaq .emfaq-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--b2), var(--g)); z-index: 0; }
  .emfaq .emfaq-step:first-child::before { display: none; }
  .emfaq .emfaq-dot { position: relative; z-index: 1; width: 32px; height: 32px; padding: 7px; margin: 0 auto 6px; border-radius: 50%; background: #fff; color: var(--b1); border: 2px solid var(--b2); }
  .emfaq .emfaq-step:last-child .emfaq-dot { background: var(--g); border-color: var(--g); color: #fff; }
  .emfaq .emfaq-step b { display: block; font-size: 13.5px; color: var(--ink); }
  .emfaq .emfaq-step span { font-size: 12.5px; color: var(--mut); }

  /* groupes de cartes (documents, services, autorisé/interdit) */
  .emfaq .emfaq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
  .emfaq .emfaq-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
  .emfaq .emfaq-card:hover { border-color: #bcdcef; transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(28,125,179,.5); }
  .emfaq .emfaq-card-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
  .emfaq .emfaq-card-h i { width: 22px; height: 22px; padding: 4px; border-radius: 6px; background: var(--lb); color: var(--b1); flex: none; }
  .emfaq .emfaq-card ul { list-style: none; padding: 0; display: grid; gap: 4px; }
  .emfaq .emfaq-card li { margin: 0; padding: 0; font-size: 14px; color: var(--ink); }
  .emfaq .emfaq-card li small { display: block; font-size: 12.5px; color: var(--mut); }
  .emfaq .emfaq-svc { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
  .emfaq .emfaq-svc i { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--lb); color: var(--b1); }
  .emfaq .emfaq-card.ok { border-color: #bfe5cf; background: #f5fbf7; }
  .emfaq .emfaq-card.no { border-color: #f1c9c9; background: #fdf6f6; }
  .emfaq .emfaq-card.ok .emfaq-card-h { color: var(--g); } .emfaq .emfaq-card.no .emfaq-card-h { color: var(--r); }
  .emfaq .emfaq-card.ok .emfaq-card-h i { background: var(--g); color: #fff; } .emfaq .emfaq-card.no .emfaq-card-h i { background: var(--r); color: #fff; }

  /* chiffres clés */
  .emfaq .emfaq-kpis { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
  .emfaq .emfaq-kpi { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fff; }
  .emfaq .emfaq-kpi b { display: block; font-size: 20px; color: var(--b1); line-height: 1.25; }
  .emfaq .emfaq-kpi span { font-size: 12.5px; color: var(--mut); }
  .emfaq .emfaq-or { font-size: 11.5px; font-weight: 700; color: #a7b8c5; text-transform: uppercase; }

  /* ---------- simulateur ---------- */
  .emfaq .emsim { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 14px; background: linear-gradient(180deg, #f7fbfe, #fff); }
  .emfaq .emsim-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
  .emfaq .emsim-title i { width: 24px; height: 24px; padding: 4px; border-radius: 6px; background: var(--b1); color: #fff; }
  .emfaq .emsim-ctrl { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
  .emfaq .emsim-lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 600; color: var(--mut);
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
  .emfaq .emsim-lbl b { font-size: 14px; color: var(--b1); text-transform: none; letter-spacing: 0; }
  .emfaq input.emsim-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 8px 0; padding: 0;
    border: 0; border-radius: 3px; outline: none; cursor: pointer;
    background: linear-gradient(to right, var(--b2) var(--p, 0%), #dbe8f1 var(--p, 0%)); }
  .emfaq input.emsim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    border: 3px solid var(--b1); box-shadow: 0 2px 6px rgba(28,125,179,.4); transition: transform .15s; }
  .emfaq input.emsim-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--b1); box-shadow: 0 2px 6px rgba(28,125,179,.4); }
  .emfaq input.emsim-range:active::-webkit-slider-thumb { transform: scale(1.2); }
  .emfaq .emsim-ticks { display: flex; justify-content: space-between; font-size: 11px; color: #a7b8c5; }
  .emfaq .emseg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #eef4f9; border-radius: 8px; padding: 3px; }
  .emfaq .emseg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 6px; background: var(--b1);
    box-shadow: 0 3px 8px -2px rgba(28,125,179,.5); transform: translateX(calc(100% * var(--i, 0))); transition: transform .3s cubic-bezier(.3,1.3,.5,1); }
  .emfaq button.emseg-b { all: unset; box-sizing: border-box; position: relative; z-index: 1; text-align: center; padding: 7px 4px; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 600; color: var(--mut); background: transparent; transition: color .2s; }
  .emfaq button.emseg-b.on { color: #fff; }
  .emfaq .emsim-step { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; background: #eef4f9; border-radius: 8px; padding: 3px; }
  .emfaq button.emsim-pm { all: unset; box-sizing: border-box; height: 30px; border-radius: 6px; background: #fff; color: var(--b1);
    text-align: center; line-height: 30px; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgba(15,42,61,.1); transition: transform .1s; }
  .emfaq button.emsim-pm:active { transform: scale(.92); }
  .emfaq button.emsim-pm:disabled { opacity: .4; cursor: default; }
  .emfaq .emsim-val { text-align: center; font-weight: 700; font-size: 15px; }
  .emfaq .emsim-res { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
  .emfaq .emsim-tile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
  .emfaq .emsim-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--b1), var(--b2)); }
  .emfaq .emsim-tile.alt::after { background: linear-gradient(90deg, var(--g), #3cc48a); }
  .emfaq .emsim-k { font-size: 12px; color: var(--mut); font-weight: 600; }
  .emfaq .emsim-v { font-size: 22px; font-weight: 800; color: var(--b1); line-height: 1.25; font-variant-numeric: tabular-nums; }
  .emfaq .emsim-tile.alt .emsim-v { color: var(--g); }
  .emfaq .emsim-v.pop { animation: emPop .35s ease; }
  @keyframes emPop { 40% { transform: scale(1.06); } }
  .emfaq .emsim-u { font-size: 12.5px; color: var(--mut); }
  .emfaq .emsim-foot { font-size: 12px; color: var(--mut); }
  /* réglages qui pulsent tant qu'on n'y a pas touché */
  .emfaq .emsim.attn .emsim-adults, .emfaq .emsim.attn .emsim-step { animation: emRing 1.8s ease-out infinite; }
  .emfaq .emsim.attn input.emsim-range::-webkit-slider-thumb { animation: emRing 1.8s ease-out infinite; }

  /* ---------- nationalités ---------- */
  .emfaq .emfaq-quick { display: flex; flex-wrap: wrap; gap: 6px; }
  .emfaq .emfaq-quick span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e9f7ef; color: var(--g); }
  .emfaq .emfaq-quick span i { width: 13px; height: 13px; }
  .emfaq input.emfaq-search { all: unset; box-sizing: border-box; width: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--line);
    border-radius: 8px; font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7487' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 11px center; background-size: 16px; transition: border-color .2s, box-shadow .2s; }
  .emfaq input.emfaq-search:focus { border-color: var(--b2); box-shadow: 0 0 0 3px rgba(40,163,230,.15); }
  .emfaq .emfaq-found { font-size: 13.5px; font-weight: 600; min-height: 1.3em; margin-top: -4px; }
  .emfaq .emfaq-found.ok { color: var(--g); } .emfaq .emfaq-found.ko { color: var(--r); }
  .emfaq ul.emfaq-chips { list-style: none; padding: 0 4px 0 0; display: flex; flex-wrap: wrap; gap: 5px; max-height: 150px; overflow: auto; }
  .emfaq ul.emfaq-chips li { margin: 0; padding: 3px 9px; border-radius: 5px; background: #f0f5f9; font-size: 13px; transition: background .2s, color .2s; }
  .emfaq ul.emfaq-chips li.hit { background: var(--g); color: #fff; }
  .emfaq ul.emfaq-chips li[hidden] { display: none; }

  /* ---------- coût de la vie ---------- */
  .emfaq .emcost-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .emfaq .emcost-top .emseg { width: min(300px, 100%); }
  .emfaq .emcost-hint { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
  .emfaq .emcost-hint i { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: var(--b1); color: #fff; }
  .emfaq .emcost-arrow { color: var(--b2); font-size: 18px; animation: emNudge 1.2s ease-in-out infinite; }
  @keyframes emNudge { 50% { transform: translateX(5px); } }
  /* le sélecteur pulse tant qu'on n'a pas cliqué dessus */
  .emfaq .emcost-seg.attn { animation: emRing 1.8s ease-out infinite; }
  @keyframes emRing { 0% { box-shadow: 0 0 0 0 rgba(40,163,230,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(40,163,230,0); } }
  .emfaq .emcost-seg button.emseg-b:not(.on):hover { color: var(--b1); }
  .emfaq .emcost-total { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; color: #fff;
    background: linear-gradient(120deg, var(--b1), var(--b2)); }
  .emfaq .emcost-total i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: rgba(255,255,255,.18); }
  .emfaq .emcost-total b { display: block; font-size: 19px; line-height: 1.2; }
  .emfaq .emcost-total span { font-size: 12.5px; opacity: .9; }
  .emfaq ul.emcost-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .emfaq ul.emcost-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line); }
  .emfaq .emcost-list i { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 7px; background: var(--lb); color: var(--b1); }
  .emfaq .emcost-l { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
  .emfaq .emcost-l small { display: block; font-weight: 400; font-size: 12px; color: var(--mut); }
  .emfaq .emcost-v { font-size: 14px; font-weight: 700; color: var(--b1); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .emfaq .emcost-v > span { display: none; }
  .emfaq [data-tier="eco"] .t-eco, .emfaq [data-tier="std"] .t-std, .emfaq [data-tier="lux"] .t-lux { display: inline; animation: emfaqRise .35s ease both; }

  /* ---------- mobile ---------- */
  @media (max-width: 640px) {
    .emfaq button.emfaq-q { padding: 10px 12px; gap: 10px; font-size: 14.5px; }
    .emfaq .emfaq-pill { display: none; }
    .emfaq .emfaq-ic { width: 30px; height: 30px; padding: 6px; }
    .emfaq .emfaq-body { padding: 12px 12px 14px; }
    .emfaq .emfaq-kpis, .emfaq .emsim-res { grid-template-columns: 1fr; }
    .emfaq .emfaq-or { text-align: center; }
    .emfaq .emsim-ctrl { grid-template-columns: 1fr 1fr; }
    .emfaq .emsim-ctrl > :first-child { grid-column: 1 / -1; }
    .emfaq ul.emcost-list { grid-template-columns: 1fr; }
    .emfaq .emcost-top .emseg { width: 100%; }
    .emfaq .emcost-arrow { transform: rotate(90deg); animation: emNudgeDown 1.2s ease-in-out infinite; }
    @keyframes emNudgeDown { 0%, 100% { transform: rotate(90deg); } 50% { transform: rotate(90deg) translateX(5px); } }
  }
  /* le bloc se met en version empilée selon la largeur de SA colonne (et non de l'écran) : tablette + barre latérale = colonne étroite */
  .emfaq { container-type: inline-size; }
  @container (max-width: 620px) {
    .emfaq ul.emcost-list { grid-template-columns: 1fr; }
    .emfaq .emcost-top .emseg { width: 100%; }
    .emfaq .emsim-ctrl { grid-template-columns: 1fr 1fr; }
    .emfaq .emsim-ctrl > :first-child { grid-column: 1 / -1; }
  }
  @container (max-width: 480px) {
    .emfaq .emfaq-pill { display: none; }
    .emfaq .emfaq-body { padding: 12px 12px 14px; }
    .emfaq .emsim-res { grid-template-columns: 1fr; }
    .emfaq .emfaq-or { text-align: center; }
  }
  @media (prefers-reduced-motion: reduce) { .emfaq *, .emfaq *::before, .emfaq *::after { transition: none; animation: none; } }

/* repris de la FAQ permis retraité */
.emfaq a.emfaq-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--g); text-decoration: none; }
.emfaq a.emfaq-link span { transition: transform .2s; }
.emfaq a.emfaq-link:hover span { transform: translateX(4px); }

/* la réponse courte est affichée par le CSS : elle ne fait pas partie du titre de la question (h3) lu par Google */
.emfaq .emfaq-pill::before { content: attr(data-p); }
