/* pile-appareil-auditif.fr
   Teinte violette de plaquette, couleurs de languettes réservées aux tailles (10 jaune, 312 marron, 13 orange, 675 bleu).
   Red Hat Display pour les titres, Red Hat Text pour le texte. */
@font-face { font-family: "RHD"; src: url("fonts/rhd.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "RHT"; src: url("fonts/rht.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #1d1b2f; --ink-2: #565170; --vio: #4b2e83; --vio-d: #35205f; --vio-l: #f3effa; --vio-m: #ddd6ec; --plum: #2a1d4a;
  --paper: #fff; --rule: #e4dff0;
  --s10: #f0c419; --s312: #8a4b2a; --s13: #ea7a2b; --s675: #2e6fd1; --tab: var(--s312);
  --max: 72rem; --gut: clamp(1rem, 4vw, 2.5rem); --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.xl { font-size: 137.5%; }
body { margin: 0; font-family: "RHT", system-ui, sans-serif; font-weight: 400; line-height: 1.62; color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--vio); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { color: var(--vio-d); text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--vio); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: "RHD", system-ui, sans-serif; line-height: 1.12; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.25rem + 3vw, 3.1rem); font-weight: 850; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 1.9rem); font-weight: 780; letter-spacing: -.01em; margin-top: 2.1em; }
h3 { font-size: 1.15rem; font-weight: 720; margin-top: 1.5em; }
@media (max-width: 40em) { h1 { font-size: min(2rem, 8.6vw); } h2 { font-size: min(1.5rem, 6.8vw); } }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
li + li { margin-top: .35em; }
strong, b { font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--vio); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 6px; }
.skip:focus { left: .5rem; }
.first { margin-top: 0; }

/* En-tête */
.hd { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 4px 0 var(--vio-l); }
.hd .wrap { display: flex; align-items: center; gap: .75rem; min-height: 4.3rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; color: var(--ink); text-decoration: none; font-family: "RHD", sans-serif; line-height: 1.05; }
.logo svg { width: 2.3rem; height: 2.3rem; flex: none; }
.logo span { display: grid; }
.logo b { font-weight: 850; font-size: 1.25rem; color: var(--vio); letter-spacing: -.01em; }
.logo small { font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.menu li + li { margin: 0; }
.menu a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { background: var(--vio-l); }
.menu a[aria-current="page"] { background: var(--vio); color: #fff; }
.lu, .burger { font: inherit; font-weight: 700; font-size: .9rem; color: var(--vio); background: var(--vio-l); border: 0; border-radius: 999px; min-height: 2.75rem; padding: .3rem .95rem; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.lu[aria-pressed="true"] { background: var(--vio); color: #fff; }
.lu svg, .burger svg { width: 1.15rem; height: 1.15rem; flex: none; }
@media (max-width: 63.99em) {
  .menu { display: none; }
  .menu.open { display: block; position: fixed; inset: 4.6rem 0 0 0; background: var(--paper); padding: 1rem var(--gut) 2rem; overflow-y: auto; }
  .menu.open ul { flex-direction: column; gap: .4rem; }
  .menu.open a { font-size: 1.25rem; padding: .95rem 1.1rem; background: var(--vio-l); }
  .menu.open a[aria-current="page"] { background: var(--vio); }
}
@media (min-width: 64em) { .burger { display: none; } }
@media (max-width: 26em) {
  .hd .wrap { gap: 2vw; padding: 0 4vw; }
  .logo { gap: .4em; }
  .logo svg { width: 8vw; height: 8vw; }
  .logo b { font-size: 4.4vw; white-space: nowrap; }
  .logo small { font-size: 3.1vw; }
  .lu, .burger { font-size: 3.8vw; padding: .3em .75em; min-width: 44px; min-height: 44px; justify-content: center; }
  .lu .w { display: none; }
}

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

/* Accueil */
.une { background: linear-gradient(180deg, var(--vio-l), #fff 85%); padding: clamp(1.5rem, 4vw, 3.25rem) 0 clamp(2rem, 4vw, 3rem); }
.une__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: start; }
@media (min-width: 60em) { .une__g { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; } }
.une h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem); }
@media (max-width: 40em) { .une h1 { font-size: min(2.05rem, 8.8vw); } }
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.disque { display: grid; justify-items: center; gap: .6rem; }
.disque svg { width: min(100%, 21rem); height: auto; }
.disque p { margin: 0; font-size: .9rem; color: var(--ink-2); text-align: center; }
@media (max-width: 59.99em) { .disque svg { width: min(70%, 15rem); } }
.tabfill { fill: var(--tab); transition: fill .25s; }

/* Sélecteur de pile */
.quel { background: var(--paper); border: 2px solid var(--vio); border-radius: 18px; padding: 1.1rem 1.2rem 1.25rem; box-shadow: 0 22px 40px -32px rgba(42, 29, 74, .7); }
.quel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quel legend { font-family: "RHD", sans-serif; font-weight: 800; font-size: 1.2rem; margin-bottom: .75rem; padding: 0; }
.puces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
@media (min-width: 40em) { .puces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.puces label { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 3.6rem; padding: .55rem .75rem; border: 2px solid var(--rule); border-radius: 12px; cursor: pointer; background: var(--paper); line-height: 1.2; }
.puces label:hover { border-color: var(--vio-m); }
.puces input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.puces label:has(input:checked) { border-color: var(--vio); background: var(--vio-l); box-shadow: inset 0 0 0 1px var(--vio); }
.puces label:has(input:focus-visible) { outline: 3px solid var(--vio); outline-offset: 2px; }
.puces i { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c); flex: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.puces span { display: grid; font-weight: 700; }
.puces small { font-weight: 500; color: var(--ink-2); font-size: .84rem; }
.fiche { margin-top: 1rem; border-top: 1px dashed var(--vio-m); padding-top: 1rem; }
.fiche .ft { margin: 0 0 .5rem; font-family: "RHD", sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.fiche dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1rem; margin: 0 0 1rem; }
.fiche dt { color: var(--ink-2); }
.fiche dd { margin: 0; font-weight: 700; }
@media (max-width: 30em) { .fiche dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .fiche dd { margin-bottom: .4rem; } }
.fiche .cta { display: flex; flex-wrap: wrap; gap: .5rem; }
@supports selector(:has(a)) {
  .quel .fiche { display: none; }
  .quel:has(#t10:checked) .f10, .quel:has(#t312:checked) .f312, .quel:has(#t13:checked) .f13, .quel:has(#t675:checked) .f675 { display: block; }
  .page:has(#t10:checked) { --tab: var(--s10); }
  .page:has(#t312:checked) { --tab: var(--s312); }
  .page:has(#t13:checked) { --tab: var(--s13); }
  .page:has(#t675:checked) { --tab: var(--s675); }
}

/* Boutons */
.bt, .bt2 { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3.1rem; padding: .6rem 1.15rem; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
.bt { background: var(--vio); color: #fff; }
.bt:hover { background: var(--vio-d); color: #fff; }
.bt2 { background: var(--paper); color: var(--vio); box-shadow: inset 0 0 0 2px var(--vio); }
.bt2:hover { background: var(--vio-l); }

/* En-tête de page et étiquette */
.tete { background: var(--vio-l); padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.75rem, 4vw, 2.75rem); }
.tete__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 56em) { .tete__g { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; } }
.tete .lede { margin-bottom: 0; }
.eti { position: relative; background: var(--paper); border-radius: 14px; padding: 1.4rem 1.2rem 1rem; box-shadow: 0 16px 34px -26px rgba(42, 29, 74, .65); border: 1px solid var(--vio-m); }
.eti::before { content: ""; position: absolute; left: 14px; right: 14px; top: 9px; height: 4px; background: radial-gradient(circle, var(--vio-m) 1.6px, transparent 2px) 0 0 / 10px 4px repeat-x; }
.eti__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; margin: 0 0 .5rem; font-family: "RHD", sans-serif; font-weight: 800; }
.eti__h b { font-size: 1.8rem; color: var(--vio); line-height: 1; }
.eti__h b.dot::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--c, var(--vio)); margin-right: .35em; vertical-align: .02em; }
.eti dl { margin: 0; }
.eti dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--rule); }
.eti dt { color: var(--ink-2); }
.eti dd { margin: 0; font-weight: 700; text-align: right; }
.eti p.n { margin: .5rem 0 0; font-size: .86rem; color: var(--ink-2); }

/* Sections */
.bloc { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.bloc--teinte { background: var(--vio-l); }
.bloc--plum { background: var(--plum); color: #e9e4f5; }
.bloc--plum h2, .bloc--plum h3 { color: #fff; }
.bloc--plum a { color: #e7c9ff; }
.intro { font-size: 1.08rem; color: var(--ink-2); max-width: 40em; }
.bloc--plum .intro { color: #cfc6e6; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60em) { .duo { grid-template-columns: minmax(0, 1fr) 19rem; gap: 3.5rem; } .duo > aside { position: sticky; top: 5.6rem; align-self: start; } }
.texte { max-width: 42em; }
.texte > h2:first-child { margin-top: 0; }
.liens { margin-top: 1.25rem; display: grid; gap: .5rem; }
.liens a { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; border-radius: 12px; background: var(--vio-l); color: var(--ink); text-decoration: none; font-weight: 650; }
.liens a::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border-right: 2.5px solid var(--vio); border-top: 2.5px solid var(--vio); transform: rotate(45deg); flex: none; }
.liens a:hover { background: var(--vio-m); }

/* Cartes de rubrique */
.cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.cartes li { margin: 0; position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 1.05rem 1.15rem 1.1rem; }
.bloc--teinte .cartes li { border-color: var(--vio-m); }
.cartes li:hover { border-color: var(--vio); }
.cartes a { font-family: "RHD", sans-serif; font-weight: 780; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.cartes a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.cartes a:focus-visible { outline: none; }
.cartes li:has(a:focus-visible) { outline: 3px solid var(--vio); outline-offset: 2px; }
.cartes p { margin: .35rem 0 0; color: var(--ink-2); }
.cartes .k { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 700; color: var(--vio); margin-bottom: .35rem; }
.cartes .k i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--c, var(--vio)); }

/* Tailles */
.dot { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; white-space: nowrap; }
.dot::before { content: ""; width: .78em; height: .78em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.c10 { --c: var(--s10); } .c312 { --c: var(--s312); } .c13 { --c: var(--s13); } .c675 { --c: var(--s675); }

/* Tableaux */
.tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; border: 1px solid var(--vio-m); border-radius: 12px; overflow: hidden; background: var(--paper); }
.tab caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.tab th, .tab td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.tab thead th { background: var(--vio); color: #fff; font-weight: 650; border-top: 0; }
.tab tbody th { font-weight: 700; }
.tab tr.sel td, .tab tr.sel th { background: var(--vio-l); }
.tab td.r { text-align: right; white-space: nowrap; }
@media (max-width: 47.99em) {
  .tab.pile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tab.pile, .tab.pile tbody, .tab.pile tr, .tab.pile th, .tab.pile td { display: block; width: 100%; }
  .tab.pile tr { border-top: 1px solid var(--rule); padding: .55rem 0; }
  .tab.pile tr:first-child { border-top: 0; }
  .tab.pile th, .tab.pile td { border: 0; padding: .2rem .9rem; }
  .tab.pile tbody th { font-size: 1.05rem; padding-top: .4rem; }
  .tab.pile td[data-k]::before { content: attr(data-k) " : "; color: var(--ink-2); font-weight: 400; }
  .tab.pile td.r { text-align: left; white-space: normal; }
}

/* Bloc d'achat */
.achat { background: var(--plum); color: #e9e4f5; border-radius: 16px; padding: 1.2rem 1.25rem 1.1rem; }
.achat a { color: #fff; }
.achat__t { display: flex; align-items: center; gap: .6rem; font-family: "RHD", sans-serif; font-weight: 800; font-size: 1.12rem; color: #fff; margin: 0 0 .5rem; }
.achat__t svg { width: 2rem; height: 2rem; flex: none; }
.achat p { margin: 0 0 .7rem; }
.achat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.achat li { margin: 0; }
.achat li a { display: block; padding: .6rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .1); font-weight: 650; text-decoration: none; }
.achat li a:hover { background: rgba(255, 255, 255, .2); }
aside > * + .achat, aside > .achat + * { margin-top: 1.25rem; }

/* Étapes, encarts */
.etapes { counter-reset: e; list-style: none; padding: 0; }
.etapes li { counter-increment: e; position: relative; padding: .1rem 0 0 3rem; margin: 0 0 1rem; min-height: 2.2rem; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--vio); color: #fff; font-family: "RHD", sans-serif; font-weight: 800; }
.encart, .alerte { border-radius: 12px; padding: .95rem 1.1rem; margin: 0 0 1.2rem; }
.encart { background: var(--vio-l); }
.alerte { background: #fff4d9; border-left: 6px solid #e0a100; }
.encart p:last-child, .alerte p:last-child { margin-bottom: 0; }
.src { font-size: .88rem; color: var(--ink-2); }

/* Pastilles (villes, départements) */
.pastilles { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pastilles li { margin: 0; }
.pastilles a { color: var(--vio) !important; }
.pastilles a, .pastilles span { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.8rem; padding: .4rem .95rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--vio-m); color: var(--ink); text-decoration: none; font-weight: 600; }
.pastilles span { color: var(--ink-2); font-weight: 500; border-style: dashed; }
.pastilles a:hover { border-color: var(--vio); }
.pastilles a[aria-current="page"] { background: var(--vio); color: #fff !important; border-color: var(--vio); }
.pastilles small { color: var(--ink-2); font-weight: 600; }
.pastilles a[aria-current="page"] small { color: #e9e4f5; }

/* Régions */
.regions { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.regions li { margin: 0; }
.regions a { display: block; height: 100%; padding: .9rem 1rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--vio-m); text-decoration: none; color: var(--ink); }
.regions a:hover { border-color: var(--vio); }
.regions b { display: block; font-family: "RHD", sans-serif; font-weight: 780; font-size: 1.08rem; }
.regions small { color: var(--ink-2); }

/* Annuaire */
.centres { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) { .centres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .centres.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.centres > li { margin: 0; }
.centre { height: 100%; display: flex; flex-direction: column; gap: .35rem; background: var(--paper); border: 1px solid var(--vio-m); border-radius: 14px; padding: 1.1rem 1.15rem 1.15rem; }
.centre h3 { margin: 0; font-size: 1.12rem; }
.centre .res { align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--vio); background: var(--vio-l); border-radius: 999px; padding: .1rem .65rem; }
.centre address { font-style: normal; }
.centre .note { margin: 0; color: var(--ink-2); font-size: .95rem; }
.centre .act { margin-top: auto; padding-top: .55rem; display: grid; gap: .5rem; }
.centre .act2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tel, .btn2 { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; padding: .4rem .75rem; }
.tel { background: var(--vio); color: #fff; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tel:hover { background: var(--vio-d); color: #fff; }
.tel svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn2 { color: var(--vio); box-shadow: inset 0 0 0 2px var(--vio); background: var(--paper); }
.btn2:hover { background: var(--vio-l); }

/* FAQ */
.questions details { background: var(--paper); border: 1px solid var(--vio-m); border-radius: 12px; margin-bottom: .6rem; }
.questions summary { list-style: none; cursor: pointer; padding: .95rem 3rem .95rem 1.1rem; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary h3 { margin: 0; font-size: 1.08rem; }
.questions summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--vio-l); color: var(--vio); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions .rep { padding: 0 1.1rem 1rem; }
.questions .rep p:last-child { margin-bottom: 0; }

/* Pied de page */
.pied { background: var(--plum); color: #cfc6e6; padding: 3rem 0 2rem; font-size: .95rem; }
.pied a { color: #fff; }
.pied .cols { display: grid; gap: 2rem; }
@media (min-width: 52em) { .pied .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pied .t { font-family: "RHD", sans-serif; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li + li { margin-top: .45rem; }
.pied .logo { color: #fff; }
.pied .logo b { color: #e7c9ff; }
.pied .logo small { color: #cfc6e6; }
.pied .mention { border-top: 1px solid #44356b; margin-top: 2.25rem; padding-top: 1.25rem; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .hd, .pied, .lu, .burger { display: none !important; } body { font-size: 12pt; } }
