/* =============================================================
   reponse.css — maquette v2 (01/10/2026), d'après le jury
   (visiteurs étrangers, designer UX/UI, développeur).
   UN composant « bloc de réponse » : phrase-réponse, 3 valeurs au plus,
   une action, une ligne de source. Quatre états : frais, ancien,
   indisponible, exemple. Une variante alerte.
   ============================================================= */
.rep{ background: var(--paper); border: 1px solid var(--line-2); position: relative; padding: 18px 18px 14px; display: grid; gap: 10px; min-width: 0; }
.rep::before{ content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; background: var(--gold); }
.rep-tete{ display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rep-etiq{ font-family: var(--fsc); letter-spacing: .08em; font-size: .95rem; color: var(--gold-d); }
.rep-age{ font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rep-phrase{ margin: 0; font-weight: 600; font-size: 1.12rem; line-height: 1.35; text-wrap: balance; }
.rep-grand{ font-family: var(--fh); font-size: clamp(2.6rem, 11vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; margin: 0; }
.rep-grand small{ font-family: var(--fb); font-size: 1rem; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.rep-valeurs{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 10px; }
.rep-valeurs.deux{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rep-valeurs > div{ display: grid; gap: 2px; padding: 0 10px; border-left: 1px solid var(--line); min-width: 0; }
.rep-valeurs > div:first-child{ border-left: 0; padding-left: 0; }
.rep-v{ font-family: var(--fh); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.rep-l{ font-size: .78rem; color: var(--muted); }
.rep-actions{ display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rep-actions .btn{ min-height: 48px; }
.rep-lien{ font-size: .92rem; }
.rep-src{ margin: 0; font-size: .74rem; color: var(--muted); }
.rep-lignes{ display: grid; }
.rep-ligne{ display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 48px; }
.rep-ligne:first-child{ border-top: 0; }
.rep-ligne b{ font-weight: 500; display: block; }
.rep-ligne span.s{ font-size: .82rem; color: var(--muted); }
.rep-ligne .d{ font-variant-numeric: tabular-nums; font-size: .95rem; text-align: right; white-space: nowrap; }
.rep-ligne .ic{ width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--gold-d); font-size: .9rem; font-weight: 600; }
.min-case{ display: inline-block; min-width: 54px; text-align: center; padding: 3px 6px; border: 1px solid var(--line-2); background: var(--bg); font-variant-numeric: tabular-nums; }
.min-case + .min-case{ margin-left: 4px; }
/* états */
.rep:has(.ancien) .rep-grand, .rep:has(.ancien) .rep-v, .rep:has(.ancien) .d{ color: var(--muted); }
.rep:has(.ancien) .rep-age{ color: var(--warn); font-weight: 500; }
.rep:has(.rep-indispo) .rep-phrase{ font-weight: 500; color: var(--muted); }
.rep:has(> .etiq-exemple){ border-style: dashed; }
.rep:has(> .etiq-exemple) .rep-grand, .rep:has(> .etiq-exemple) .rep-v, .rep:has(> .etiq-exemple) .d{ font-style: italic; }
.etiq-exemple{ justify-self: start; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--warn); color: #fff; padding: 3px 8px; }
.rep-alerte{ margin: -4px 0 2px; padding: 10px 12px; background: var(--accent-tint); border-left: 5px solid var(--gold); font-size: .95rem; }
.rep-alerte b{ font-weight: 600; }
.rep-alerte.forte{ border-left-color: var(--bad); background: #F3E3DE; }
/* frise */
.frise2{ list-style: none; margin: 4px 0 0; padding: 22px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.frise2::before{ content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 1px; background: var(--line-2); }
.frise2 li{ position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.frise2 li::before{ content: ""; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--gold); }
.frise2 li.soleil::before{ border-radius: 50%; transform: none; background: var(--gold-l); }
.frise2 li.passe{ opacity: .45; }
.frise2 li.next{ color: var(--ink); font-weight: 600; }
.frise2 li.next::before{ background: var(--gold); }
.frise2 b{ display: block; font-family: var(--fh); font-weight: 400; font-size: 1rem; color: var(--ink); }
/* tiroir « tout le reste » */
.tiroir{ border: 1px solid var(--line-2); background: var(--paper); }
.tiroir > summary{ list-style: none; cursor: pointer; padding: 14px 18px; min-height: 52px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.tiroir > summary::-webkit-details-marker{ display: none; }
.tiroir > summary::after{ content: "+"; font-size: 1.4rem; color: var(--gold-d); }
.tiroir[open] > summary::after{ content: "–"; }
.tiroir-lignes{ display: grid; padding: 0 18px 10px; }
.tiroir-lignes > div{ display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.tiroir-lignes .k{ color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
/* grilles */
.trio{ display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 980px){ .trio{ grid-template-columns: minmax(0,1fr); } }
.duo{ display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 760px){ .duo{ grid-template-columns: minmax(0,1fr); } }
.tete-page{ padding-block: 14px 8px; display: grid; gap: 6px; }
.tete-page h1{ font-size: clamp(1.8rem, 6vw, 2.8rem); }
.tete-page .date{ font-family: var(--fsc); letter-spacing: .08em; color: var(--gold-d); font-size: .95rem; margin: 0; }
.retour{ display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.langues-rapides{ display: flex; gap: 6px; }
.langues-rapides a{ font-size: .8rem; padding: 4px 8px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.langues-rapides a[aria-current]{ background: var(--dk); color: #fff; border-color: var(--dk); }
/* page à deux colonnes sur ordinateur : titre + réponse dans le premier écran */
.premier-ecran{ display: grid; gap: 18px; padding-block: 8px 26px; }
@media (min-width: 981px){ .premier-ecran{ grid-template-columns: minmax(0, 1fr) 420px; align-items: start; column-gap: 44px; } .premier-ecran .rep{ grid-row: span 3; } }
/* onglets (direction C) */
.onglets3{ display: flex; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; position: sticky; top: 64px; background: var(--bg); z-index: 3; }
.onglets3 button{ flex: 1; min-height: 50px; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-family: var(--fh); font-size: 1.15rem; color: var(--muted); cursor: pointer; }
.onglets3 button[aria-selected="true"]{ color: var(--ink); border-bottom-color: var(--gold); }
/* agenda par tranche */
.tranche{ margin-top: 14px; }
.tranche > h3{ font-family: var(--fsc); font-size: .95rem; letter-spacing: .08em; color: var(--gold-d); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; margin-bottom: 4px; display: flex; justify-content: space-between; }
.tranche > h3 span{ font-family: var(--fb); letter-spacing: 0; color: var(--muted); font-size: .82rem; }
.carte-choix{ display: grid; gap: 4px; padding: 14px; background: var(--paper); border: 1px solid var(--line-2); }
.carte-choix .pourquoi{ font-size: .82rem; color: var(--gold-d); letter-spacing: .04em; }
.carte-choix h3{ font-size: 1.1rem; }
.carte-choix p{ margin: 0; font-size: .9rem; color: var(--muted); }
.choix-grille{ display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px){ .choix-grille{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .choix-grille{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; } .choix-grille > *{ flex: 0 0 78%; scroll-snap-align: start; } }
.selecteur-date{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.selecteur-date button, .selecteur-date input{ min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--paper); font: inherit; color: var(--ink); }
.selecteur-date button[aria-pressed="true"]{ background: var(--dk); color: #fff; border-color: var(--dk); }
.foule14{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; }
.foule14 li{ display: grid; gap: 2px; text-align: center; font-size: .7rem; padding: 6px 0; background: var(--bg); border: 1px solid var(--line); }
.foule14 li.forte{ background: var(--accent-soft); border-color: var(--gold); }
.foule14 li b{ font-size: .78rem; }
@media (max-width: 640px){ .foule14{ grid-template-columns: repeat(7, minmax(0,1fr)); } }
.planche{ display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.planche figure{ margin: 0; display: grid; gap: 8px; }
.planche figcaption{ font-size: .82rem; color: var(--muted); }
/* barre d'action par page : seulement la largeur téléphone (comme le site) */
.actionbar .btn{ white-space: nowrap; }
.onsite--v2 .row{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px){ .onsite--v2 .wrap.row{ padding-inline: 16px; } .onsite--v2 .stat{ flex: 0 0 46%; } }
.rep-sous{ margin: 0; font-size: .9rem; }
.rep-lieu{ margin: 2px 0 0; font-size: .92rem; }
.rep .ancien{ color: var(--warn); font-weight: 500; }
.rep[hidden]{ display: none !important; }
#sur-place{ scroll-margin-top: 90px; }
.frise2 li{ min-width: 0; overflow: hidden; text-overflow: clip; }
.frise2 b{ font-size: .95rem; }
@media (max-width: 400px){ .frise2 b{ font-size: .85rem; } }
.rep{ overflow: hidden; }
