/* mutuelle-mamva.com — MAMVA : Mon Audition, Ma Vie Active
   Motif : le tableau de garanties, et le surligneur sur la ligne qui compte.
   Polices : Literata (titres), Onest (texte). */
@font-face { font-family: "Literata"; src: url("/res/fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/res/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #1f2a27;
  --ink-2: #4f5d58;
  --forest: #17352b;
  --green: #1d6e52;
  --mint: #e6f2ec;
  --mint-2: #f3f8f5;
  --paper: #ffffff;
  --rule: #d6e1dc;
  --hl: #e3f57a;
  --secu: #2c5fb3;
  --mutu: #1d7a56;
  --reste: #c8402e;
  --bg: var(--paper);
  --max: 72rem;
  --gut: clamp(1rem, 4.5vw, 2.5rem);
  --r: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; }
html.texte { font-size: 137.5%; }
body { margin: 0; font-family: "Onest", system-ui, sans-serif; line-height: 1.62; color: var(--ink); background: var(--paper); }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; color: var(--forest); line-height: 1.18; margin: 0 0 .6em; overflow-wrap: break-word; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(1.9rem, 5.6vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 650; margin-top: 1.8em; }
h3 { font-size: 1.13rem; font-weight: 650; margin-top: 1.4em; }
p, ul, ol, table, dl { margin: 0 0 1em; }
.hl { background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%); padding: 0 .1em; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--forest); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(23, 53, 43, .04); }
.top .wrap { display: flex; align-items: center; gap: .75rem; min-height: 4.2rem; }
.mark { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; text-decoration: none; color: var(--forest); }
.mark svg { width: 1.7rem; height: 1.7rem; flex: none; }
.mark .w { display: grid; line-height: 1.05; }
.mark b { font-family: "Literata", serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.mark small { font-size: .72rem; color: var(--ink-2); font-weight: 500; letter-spacing: .01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.nav a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; border-radius: var(--r); }
.nav a:hover { background: var(--mint); }
.nav a[aria-current="page"] { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 88%, transparent 88%); }
.b-txt, .b-menu { font: inherit; font-weight: 600; font-size: .9rem; color: var(--forest); background: var(--mint); border: 1px solid var(--rule); border-radius: 999px; min-height: 2.75rem; padding: .3rem .9rem; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.b-txt[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.b-txt svg, .b-menu svg { width: 1.15rem; height: 1.15rem; flex: none; }
@media (max-width: 63.99em) {
  .nav { display: none; }
  .nav.open { display: block; position: fixed; inset: 4.25rem 0 0 0; background: var(--paper); padding: 1rem var(--gut) 2rem; overflow-y: auto; border-top: 1px solid var(--rule); }
  .nav.open ul { flex-direction: column; }
  .nav.open a { font-size: 1.25rem; padding: 1rem .25rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
}
@media (min-width: 64em) { .b-menu { display: none; } }
@media (max-width: 26em) {
  .top .wrap { gap: 2vw; padding: 0 4vw; }
  .mark { gap: .35em; }
  .mark b { font-size: 5.4vw; }
  .mark small { font-size: 2.9vw; }
  .mark svg { width: 6.2vw; height: 6.2vw; }
  .b-txt, .b-menu { font-size: 3.8vw; padding: .3em .75em; min-width: 44px; min-height: 44px; justify-content: center; }
  .b-txt .w { display: none; }
}

/* ---------- Fil d'Ariane ---------- */
.fil ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .88rem; color: var(--ink-2); }
.fil li + li::before { content: "›"; margin-right: .5rem; color: var(--ink-2); }
.fil a { color: var(--ink-2); }

/* ---------- Ouverture (accueil) ---------- */
.hero { background: var(--mint); --bg: var(--mint); padding: clamp(2rem, 6vw, 4.5rem) 0; }
.hero__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 62em) { .hero__g { grid-template-columns: minmax(0, 1fr) minmax(0, 27.5rem); gap: 4rem; } }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 36rem; }
.who { font-size: .95rem; color: var(--ink-2); border-left: 4px solid var(--hl); padding-left: .9rem; max-width: 34rem; }

/* ---------- La « ligne » du tableau de garanties (en-tête de page) ---------- */
.ph { background: var(--mint); --bg: var(--mint); padding: clamp(1.5rem, 4vw, 3rem) 0; }
.ph__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 56em) { .ph__g { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); } }
.ph h1 { max-width: 24ch; }
.ph .lede { margin: 0; }
.ligne { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; box-shadow: 0 12px 28px -20px rgba(23, 53, 43, .45); font-size: .92rem; }
.ligne__h { background: var(--forest); color: #fff; padding: .45rem .9rem; font-weight: 600; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; }
.ligne__r { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem .9rem; border-top: 1px solid var(--rule); }
.ligne__r.on { background: var(--hl); font-weight: 650; }
.ligne__r b { font-family: "Literata", serif; font-size: 1.25rem; white-space: nowrap; color: var(--forest); }
.ligne__n { padding: .5rem .9rem .7rem; color: var(--ink-2); font-size: .82rem; border-top: 1px solid var(--rule); }

/* ---------- Tableau de garanties annoté ---------- */
.tg { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; font-size: .97rem; }
.tg caption { text-align: left; font-family: "Literata", serif; font-weight: 650; color: var(--forest); padding-bottom: .6rem; font-size: 1.05rem; }
.tg th, .tg td { text-align: left; padding: .7rem .8rem; border-top: 1px solid var(--rule); vertical-align: top; }
.tg thead th { background: var(--forest); color: #fff; font-weight: 600; border-top: 0; }
.tg tbody th { font-weight: 600; }
.tg tr.on th, .tg tr.on td { background: var(--hl); }
.tg tr.grp th { background: var(--mint-2); color: var(--forest); font-family: "Literata", serif; }
.tg td.v { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.tg td.c { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 40em) {
  .tg thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tg, .tg tbody, .tg tr, .tg th, .tg td { display: block; width: 100%; }
  .tg tr { border-top: 1px solid var(--rule); }
  .tg th, .tg td { border: 0; padding: .3rem .8rem; }
  .tg tbody th { padding-top: .7rem; }
  .tg td.v, .tg td.c { white-space: normal; }
  .tg tr:not(.grp) td:last-child { padding-bottom: .7rem; }
  .tg td[data-k]::before { content: attr(data-k) " : "; font-weight: 600; color: var(--ink); }
}

/* ---------- Le décodeur ---------- */
.sheet { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem 1.4rem 1.3rem; box-shadow: 0 16px 36px -24px rgba(23, 53, 43, .5); }
.sheet::before { content: ""; position: absolute; top: 0; right: 0; width: 1.6rem; height: 1.6rem; background: linear-gradient(225deg, var(--bg) 50%, #cfe3d8 50%); border-bottom-left-radius: 4px; box-shadow: -1px 1px 2px rgba(23,53,43,.12); }
.sheet__t { font-family: "Literata", serif; font-weight: 650; font-size: 1.15rem; color: var(--forest); margin: 0 0 .3rem; padding-right: 1.5rem; }
.sheet__s { color: var(--ink-2); font-size: .92rem; margin-bottom: 1rem; }
.dec fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.dec legend, .dec .lab { font-weight: 600; padding: 0; margin-bottom: .4rem; display: block; }
.opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.opts label { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .35rem .85rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.opts label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--mint); font-weight: 600; }
.opts input { accent-color: var(--forest); width: 1.05rem; height: 1.05rem; margin: 0; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.field input { font: inherit; font-size: 1.05rem; min-height: 2.75rem; width: 100%; padding: .4rem .7rem; border: 1px solid var(--ink-2); border-radius: var(--r); color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; }
.field span { font-weight: 600; color: var(--ink-2); min-width: 4.5rem; }
.dec .row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
@media (min-width: 30em) { .dec .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dec [hidden] { display: none !important; }
.res { margin: .4rem 0 0; border-top: 2px solid var(--forest); padding-top: .6rem; }
.res div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.res dt { color: var(--ink-2); }
.res dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res .tot { border-top: 1px solid var(--rule); margin-top: .3rem; padding-top: .55rem; }
.res .tot dt { color: var(--ink); font-weight: 650; font-size: 1.1rem; }
.res .tot dd { font-family: "Literata", serif; font-size: 1.55rem; color: var(--reste); }
.res .tot.zero dd { color: var(--mutu); }
.bar { display: flex; gap: 2px; height: 1.3rem; margin: .9rem 0 .6rem; }
.bar span { display: block; height: 100%; min-width: 0; flex: 0 1 auto; transition: flex-basis .35s ease; }
.bar span:first-child { border-radius: 4px 0 0 4px; }
.bar span:last-child { border-radius: 0 4px 4px 0; }
.c-secu { background: var(--secu); }
.c-mutu { background: var(--mutu); }
.c-reste { background: repeating-linear-gradient(45deg, var(--reste) 0 6px, #a93422 6px 9px); }
.leg { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; color: var(--ink-2); }
.leg li { display: inline-flex; align-items: center; gap: .4rem; }
.leg i { width: .85rem; height: .85rem; border-radius: 2px; display: inline-block; }
.leg b { color: var(--ink); }
.note { font-size: .85rem; color: var(--ink-2); margin: .7rem 0 0; }
.note:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }

/* Exemple chiffré statique */
.ex { background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--forest); border-radius: var(--r); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.ex__t { font-weight: 650; color: var(--forest); margin: 0 0 .4rem; }
.ex .res { border-top-width: 1px; }

/* ---------- Corps ---------- */
.sec { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.sec--mint { background: var(--mint-2); --bg: var(--mint-2); }
.first { margin-top: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3.5rem; }
@media (min-width: 62em) { .cols { grid-template-columns: minmax(0, 1fr) 19rem; } .cols > aside { position: sticky; top: 6rem; align-self: start; } }
.prose { max-width: 42rem; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.intro-p { font-size: 1.1rem; }
aside .go { display: block; font-weight: 600; padding: .75rem 0; border-bottom: 1px solid var(--rule); }

/* Rubriques */
.trio { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 56em) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio li { border-top: 3px solid var(--forest); padding: 1rem 0 0; }
.trio a { font-family: "Literata", serif; font-weight: 650; font-size: 1.25rem; }
.trio p { color: var(--ink-2); margin: .4rem 0 0; }

/* Tableau comparatif */
.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp thead th { font-family: "Literata", serif; color: var(--forest); border-bottom: 2px solid var(--forest); }
.cmp tbody th a { font-weight: 650; }
@media (max-width: 48em) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
  .cmp th, .cmp td { border: 0; padding: .2rem 0; }
  .cmp tbody th { font-size: 1.1rem; }
  .cmp td[data-k]::before { content: attr(data-k) " : "; font-weight: 600; }
}
.src { font-size: .85rem; color: var(--ink-2); }
.srcs { font-size: .9rem; }
.srcs li { overflow-wrap: anywhere; }

/* Puces de liens */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .35rem 1rem; border: 1px solid var(--green); border-radius: 999px; color: var(--forest); text-decoration: none; font-weight: 600; background: var(--paper); }
.chips a:hover { background: var(--mint); }
.chips a[aria-current="page"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.chips small { opacity: .75; font-weight: 500; }

/* Annuaire */
.ctrs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
@media (min-width: 48em) { .ctrs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ctr { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 1.2rem; height: 100%; display: flex; flex-direction: column; }
.ctr h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.ctr .tag { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 600; background: var(--mint); color: var(--forest); border-radius: 999px; padding: .15rem .7rem; margin-bottom: .6rem; }
.ctr address { font-style: normal; color: var(--ink-2); margin-bottom: .4rem; }
.ctr .avis { font-size: .95rem; margin: 0 0 .4rem; }
.acts { display: grid; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.acts .duo { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.b-tel, .b-sec { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .5rem 1rem; border-radius: var(--r); font-weight: 650; text-decoration: none; text-align: center; }
.b-tel { background: var(--forest); color: #fff; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.b-tel:hover { background: #22493b; color: #fff; }
.b-tel svg { width: 1.1rem; height: 1.1rem; }
.b-sec { border: 1px solid var(--green); color: var(--forest); background: var(--paper); }
.b-sec:hover { background: var(--mint); }

/* Piles et Audipile */
.piles { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .9rem; align-items: start; background: var(--paper); border: 2px dashed var(--green); border-radius: var(--r); padding: 1.1rem 1.2rem; margin: 1.5rem 0; }
.piles svg { width: 2.4rem; height: 2.4rem; }
.piles p { margin: 0; }
.piles a { font-weight: 700; }

/* Encadrés */
.warn { border-left: 5px solid var(--reste); background: #fbefec; padding: .9rem 1.1rem; margin: 1.5rem 0; border-radius: 0 var(--r) var(--r) 0; }
.warn p { margin: 0; }
.info { border-left: 5px solid var(--hl); background: #fafdf0; padding: .9rem 1.1rem; margin: 1.5rem 0; border-radius: 0 var(--r) var(--r) 0; }
.info p { margin: 0; }

/* FAQ */
.faq { border-top: 2px solid var(--forest); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq summary::after { content: ""; flex: none; width: .65rem; height: .65rem; border-right: 2.5px solid var(--forest); border-bottom: 2.5px solid var(--forest); transform: rotate(45deg); margin-right: .4rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 0 1rem; max-width: 42rem; }
.faq .a p:last-child { margin-bottom: 0; }

/* Pied de page */
.foot { background: var(--forest); color: #d8e6df; padding: 3rem 0 2rem; }
.foot a { color: #fff; }
.foot .g4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 48em) { .foot .g4 { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot .t { font-family: "Literata", serif; font-weight: 650; color: #fff; margin-bottom: .6rem; font-size: 1.05rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .45rem; }
.foot .mark { color: #fff; }
.foot .mark small { color: #b7cdc2; }
.foot .legal { border-top: 1px solid #2e5446; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .88rem; color: #b7cdc2; }

@media print { .top, .foot, .b-txt, .b-menu, .dec fieldset { display: none !important; } }
