/* Interviews — mobile d'abord (iPhone, Safari et application ajoutée à l'écran d'accueil).
   Identité du journal : papier #f6f5f1, encre #161616, losange orange #EFA648 ; le rouge ne sert qu'à l'enregistrement. */
:root {
  --papier: #f6f5f1; --carte: #ffffff; --encre: #161616; --gris: #6a6a64; --trait: #dedcd3; --voile: rgba(22, 22, 22, .45);
  --orange: #efa648; --orange-fonce: #9a5b0c; --orange-pale: #fbefd9;
  --rouge: #d92d20; --rouge-pale: #fdeceb; --vert: #1c7a45; --vert-pale: #e4f3ea;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px); --gauche: env(safe-area-inset-left, 0px); --droite: env(safe-area-inset-right, 0px);
  --rayon: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --papier: #121212; --carte: #1c1c1b; --encre: #f1efe8; --gris: #a3a29b; --trait: #34332f; --voile: rgba(0, 0, 0, .6);
          --orange-fonce: #f0b765; --orange-pale: #3a2c15; --rouge-pale: #3a1b19; --vert: #5bc78a; --vert-pale: #17301f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--papier); color: var(--encre);
  font: 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0; }
p { margin: 0 0 .75em; }
[hidden] { display: none !important; }
a { color: inherit; }

/* ── Éléments communs ── */
.logo-micro { height: 30px; width: 21px; flex: none; overflow: visible; }
.lm-capsule { fill: var(--rouge); }
.lm-arceau { fill: none; stroke: currentColor; stroke-width: 24; }
.lm-trait { fill: currentColor; }
.point { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: currentColor; margin-right: 10px; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 14px 20px; border: 0; border-radius: var(--rayon);
  font-size: 18px; font-weight: 650; letter-spacing: .005em; background: var(--encre); color: var(--papier); text-decoration: none; text-align: center; line-height: 1.2;
}
.btn:active { transform: scale(.985); filter: brightness(.92); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--large { min-height: 64px; font-size: 19px; }
.btn--rouge { background: var(--rouge); color: #fff; }
.btn--noir { background: var(--encre); color: var(--papier); }
.btn--orange { background: var(--orange); color: #161616; }
.btn--ghost { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--trait); }
.btn--ghost-clair { background: rgba(255, 255, 255, .12); color: #fff; width: auto; min-width: 150px; }
.btn--petit { min-height: 44px; width: auto; padding: 8px 16px; font-size: 16px; border-radius: 12px; }
.btn--vert { background: var(--vert); color: #fff; }
.lien { background: none; border: 0; padding: 12px 8px; font-size: 17px; color: var(--orange-fonce); font-weight: 600; text-decoration: none; }
.lien--rouge { color: var(--rouge); }
.alerte { padding: 12px 14px; border-radius: 12px; font-size: 15.5px; margin: 0 0 14px; }
.alerte--rouge { background: var(--rouge-pale); color: var(--rouge); }
.alerte--orange { background: var(--orange-pale); color: var(--orange-fonce); }
.alerte--vert { background: var(--vert-pale); color: var(--vert); }
.aide { font-size: 14.5px; color: var(--gris); margin: 8px 2px 14px; }
.carte { background: var(--carte); border-radius: var(--rayon); padding: 16px; margin: 0 0 14px; box-shadow: 0 0 0 1px var(--trait); }
.champ { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.champ > span, .champ > legend { display: block; font-size: 14px; font-weight: 600; color: var(--gris); margin: 0 0 6px 2px; padding: 0; text-transform: uppercase; letter-spacing: .04em; }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--carte); box-shadow: inset 0 0 0 1.5px var(--trait);
  font-size: 17px; /* ≥ 16 px : sinon Safari zoome à chaque saisie */ appearance: none; -webkit-appearance: none; color: var(--encre);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2.5px var(--orange); }
select { background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.seg { display: flex; background: rgba(120, 120, 110, .16); border-radius: 14px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 11px; font-weight: 600; font-size: 16px; color: var(--encre); }
.seg button.is-on { background: var(--carte); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.seg--gros button { min-height: 56px; font-size: 22px; font-family: var(--serif); }

/* ── Barre du haut ── */
.barre {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--haut)) calc(16px + var(--droite)) 10px calc(16px + var(--gauche)); background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--trait);
}
.barre__titre { display: flex; align-items: center; gap: 10px; }
.barre h1 { font-size: 26px; }
.barre__lien, .barre__retour { background: none; border: 0; font-size: 17px; color: var(--orange-fonce); font-weight: 600; text-decoration: none; padding: 10px 4px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre__retour { margin-left: -4px; }
.barre__lien--fixe { color: var(--gris); font-weight: 500; }
.page { padding: 14px calc(16px + var(--droite)) calc(120px + var(--bas)) calc(16px + var(--gauche)); max-width: 720px; margin: 0 auto; }
.page--fiche { padding-bottom: calc(40px + var(--bas)); }
.barre-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px calc(16px + var(--droite)) calc(12px + var(--bas)) calc(16px + var(--gauche));
  background: linear-gradient(to top, var(--papier) 70%, transparent);
}
.barre-bas .btn { max-width: 688px; margin: 0 auto; box-shadow: 0 6px 18px rgba(217, 45, 32, .35); }

/* ── Connexion ── */
.connexion { max-width: 420px; margin: 0 auto; padding: calc(56px + var(--haut)) 20px 40px; }
.marque { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.marque h1 { font-size: 38px; }
.marque .logo-micro { height: 46px; width: 32px; }
.intro { color: var(--gris); margin-bottom: 26px; }

/* ── Liste ── */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.carte-liste, .liste li > a, .liste li > button {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left; padding: 16px; border: 0;
  background: var(--carte); border-radius: var(--rayon); box-shadow: 0 0 0 1px var(--trait); text-decoration: none; color: inherit; min-height: 76px;
}
.liste li > a:active, .liste li > button:active { background: var(--orange-pale); }
.liste__titre { font-family: var(--serif); font-size: 19px; font-weight: 650; line-height: 1.25; grid-column: 1; }
.liste__sous { grid-column: 1; color: var(--gris); font-size: 14.5px; }
.liste__droite { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.liste__actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 650; white-space: nowrap; background: rgba(120, 120, 110, .18); color: var(--encre); }
.chip--rouge { background: var(--rouge-pale); color: var(--rouge); }
.chip--orange { background: var(--orange-pale); color: var(--orange-fonce); }
.chip--vert { background: var(--vert-pale); color: var(--vert); }
.chip--noir { background: var(--encre); color: var(--papier); }
.chip__rond { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--vivant .chip__rond { animation: bat 1.2s ease-in-out infinite; }
@keyframes bat { 50% { opacity: .25; } }
.vide { text-align: center; padding: 56px 24px; color: var(--gris); }
.vide__pastille { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--orange-pale); font-size: 38px; margin-bottom: 14px; }
.vide strong { color: var(--encre); font-family: var(--serif); font-size: 20px; }

/* ── Feuilles qui montent du bas ── */
.voile { position: fixed; inset: 0; z-index: 40; background: var(--voile); opacity: 0; transition: opacity .25s; }
.voile.is-ouvert { opacity: 1; }
.feuille {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 94vh; max-height: 94dvh; display: flex; flex-direction: column; background: var(--papier);
  border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); margin: 0 auto; max-width: 720px;
}
.feuille.is-ouverte { transform: none; }
.feuille__poignee { width: 42px; height: 5px; border-radius: 3px; background: var(--trait); margin: 8px auto 0; flex: none; }
.feuille__tete { display: flex; justify-content: space-between; align-items: center; padding: 6px calc(16px + var(--droite)) 4px calc(18px + var(--gauche)); flex: none; }
.feuille__tete h2 { font-size: 24px; }
.feuille__corps { padding: 10px calc(16px + var(--droite)) 8px calc(16px + var(--gauche)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.feuille__corps--centre { text-align: center; padding-top: 18px; padding-bottom: calc(18px + var(--bas)); display: grid; gap: 10px; }
.feuille__corps--centre h2 { font-size: 26px; }
.feuille__pied { padding: 10px calc(16px + var(--droite)) calc(14px + var(--bas)) calc(16px + var(--gauche)); flex: none; border-top: 1px solid var(--trait); background: var(--papier); }
.carte--micro h3 { font-size: 19px; margin-bottom: 6px; }
.carte--micro.is-refus { background: var(--rouge-pale); box-shadow: 0 0 0 1px var(--rouge); }
.feuille__action { text-align: left; }
.feuille__action .btn { margin-bottom: 8px; }
.choix { display: grid; gap: 8px; }
.choix .btn { justify-content: flex-start; min-height: 56px; }
.choix .btn.is-on { background: var(--orange); color: #161616; }
.prenom { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.prenom__num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--serif); }

/* ── Enregistrement : plein écran sombre, gros boutons ── */
.rec {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: space-between; background: #141414; color: #f4f2ec;
  padding: calc(18px + var(--haut)) calc(22px + var(--droite)) calc(22px + var(--bas)) calc(22px + var(--gauche)); text-align: center;
}
.rec__etat { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #ff8a80; margin: 0; }
.rec__point { width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); animation: bat 1.1s ease-in-out infinite; }
.rec.is-pause .rec__point, .rec.is-coupe .rec__point { animation: none; background: #8e8e8e; }
.rec.is-pause .rec__etat, .rec.is-coupe .rec__etat { color: #c8c6bf; }
.rec__titre { font-size: 26px; margin: 10px 0 6px; font-weight: 650; }
.rec__noms { font-size: 15px; color: #bdbab0; margin: 0; }
.rec__centre { display: grid; gap: 14px; justify-items: center; }
.rec__temps { font: 600 76px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.rec__niveau { width: 100%; max-width: 420px; height: 72px; }
.rec__info { min-height: 3.2em; margin: 0; font-size: 15px; color: #bdbab0; max-width: 340px; }
.rec__info.is-att { color: #ffc96b; }
.rec__bas { display: grid; justify-items: center; gap: 22px; }
.rec__stop { width: 112px; height: 112px; border-radius: 50%; border: 5px solid #f4f2ec; background: transparent; display: grid; place-items: center; padding: 0; }
.rec__stop span { width: 46px; height: 46px; border-radius: 10px; background: var(--rouge); display: block; transition: transform .15s; }
.rec__stop:active span { transform: scale(.85); }
.rec__veille { margin: 0; font-size: 13.5px; color: #8d8b84; min-height: 1.3em; }
.rec.is-coupe .rec__temps { color: #a8a6a0; }

/* ── Fiche ── */
.fiche__entete { margin: 4px 0 14px; }
.fiche__titre { font-size: 30px; font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
.fiche__sous { color: var(--gris); font-size: 15px; margin-bottom: 8px; }
.fiche__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.carte--travail { background: var(--orange-pale); box-shadow: none; }
.carte--travail h3 { font-size: 20px; margin-bottom: 4px; }
.etapes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.etapes li { display: flex; align-items: center; gap: 10px; color: var(--gris); font-size: 16px; }
.etapes li.is-fait { color: var(--vert); }
.etapes li.is-cours { color: var(--encre); font-weight: 650; }
.etapes .rond { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 13px; flex: none; }
.etapes li.is-fait .rond { background: var(--vert); border-color: var(--vert); color: #fff; }
.etapes li.is-cours .rond { border-style: dashed; animation: tourne 1.6s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

.lecteur { position: sticky; top: calc(var(--barre-h, 66px) + 6px); z-index: 10; background: var(--carte); border-radius: var(--rayon); box-shadow: 0 0 0 1px var(--trait), 0 6px 18px rgba(0, 0, 0, .08); padding: 12px 14px 10px; margin: 0 0 14px; }
.lecteur--libre { position: static; }
.lecteur__ligne { display: grid; grid-template-columns: 1fr 68px 1fr auto; gap: 10px; align-items: center; justify-items: center; }
.lecteur__play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--encre); color: var(--papier); display: grid; place-items: center; padding: 0; }
.lecteur__play:active { transform: scale(.94); }
.ico-play { width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }
.lecteur.is-lecture .ico-play { width: 22px; height: 26px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64%); }
.lecteur__saut, .lecteur__vitesse { min-width: 52px; min-height: 46px; border: 0; border-radius: 14px; background: rgba(120, 120, 110, .16); font-weight: 700; font-size: 16px; }
.lecteur__barre { -webkit-appearance: none; appearance: none; width: 100%; min-height: 32px; background: transparent; margin: 4px 0 0; padding: 0; box-shadow: none; }
.lecteur__barre::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--orange) var(--pos, 0%), var(--trait) var(--pos, 0%)); }
.lecteur__barre::-moz-range-track { height: 6px; border-radius: 3px; background: var(--trait); }
.lecteur__barre::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--orange); }
.lecteur__barre::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--encre); border: 3px solid var(--carte); box-shadow: 0 1px 5px rgba(0, 0, 0, .4); }
.lecteur__barre::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--encre); border: 3px solid var(--carte); }
.lecteur__temps { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--gris); font-variant-numeric: tabular-nums; gap: 8px; }
.lecteur__parties { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lecteur__parties button { border: 0; border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 650; background: rgba(120, 120, 110, .16); }
.lecteur__parties button.is-on { background: var(--encre); color: var(--papier); }

.onglets { display: flex; gap: 4px; background: rgba(120, 120, 110, .16); padding: 3px; border-radius: 14px; margin: 0 0 14px; }
.onglets button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 11px; font-weight: 650; font-size: 15px; color: var(--encre); }
.onglets button[aria-selected=true] { background: var(--carte); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.corps h3.rub { font-size: 14px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--orange-fonce); margin: 22px 0 8px; font-weight: 700; }
.corps ul.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.corps ul.points li { position: relative; padding: 0 0 0 20px; }
.corps ul.points li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); }
.corps .resume { font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.verif { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--orange-pale); color: var(--orange-fonce); vertical-align: 1px; }
.actions { display: grid; gap: 10px; margin: 24px 0 0; }
.actions--ligne { grid-template-columns: 1fr 1fr; }
.zone { margin: 0 0 10px; }
.zone label { font-size: 14px; font-weight: 650; color: var(--gris); display: block; margin: 12px 0 6px; }

/* Qui parle ? */
.voix { display: grid; grid-template-columns: 14px 1fr minmax(120px, 44%); gap: 10px; align-items: center; margin: 0 0 10px; }
.voix__pt { width: 14px; height: 14px; border-radius: 50%; }
.voix__nom { font-size: 15px; }
.voix__nom small { display: block; color: var(--gris); font-size: 13px; }
.fil { display: grid; gap: 10px; margin-top: 18px; }
.bulle { background: var(--carte); border-radius: 14px; padding: 10px 14px 12px; box-shadow: 0 0 0 1px var(--trait); border-left: 6px solid var(--trait); }
.bulle.is-actif { box-shadow: 0 0 0 2.5px var(--orange); }
.bulle__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.bulle__nom { background: none; border: 0; padding: 4px 0; font-weight: 700; font-size: 15px; text-align: left; min-height: 36px; }
.bulle__nom .exception { font-weight: 500; color: var(--gris); font-size: 12.5px; margin-left: 4px; }
.bulle__temps { background: rgba(120, 120, 110, .16); border: 0; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 650; min-height: 32px; }
.bulle p { margin: 0; }

/* Article */
.article__titre { font-size: 30px; font-weight: 700; margin: 6px 0 12px; overflow-wrap: anywhere; }
.article__chapeau { font-family: var(--serif); font-size: 19px; font-weight: 650; line-height: 1.45; margin-bottom: 16px; }
.article__texte { font-family: var(--serif); font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.article__texte h2 { font-size: 24px; margin: 28px 0 10px; }
.article__texte h3 { font-size: 20px; margin: 22px 0 8px; }
.article__texte blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 5px solid var(--orange); font-style: italic; }
.article__texte blockquote p { margin: 0 0 6px; }
.article__texte blockquote footer { font-style: normal; font-size: 15px; color: var(--gris); font-family: var(--sans); }
.article__texte ul { padding-left: 22px; }
.zone-article textarea { font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.zone-article textarea.corps-md { min-height: 46vh; }
.export { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.export .btn { font-size: 16px; min-height: 52px; padding: 10px 12px; }
.export .btn--plein { grid-column: 1 / -1; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--bas)); transform: translateX(-50%); z-index: 90; background: var(--encre); color: var(--papier); padding: 12px 20px; border-radius: 99px; font-size: 15.5px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); max-width: 88vw; text-align: center; }

@media (min-width: 720px) { .barre-bas .btn { max-width: 688px; } body { font-size: 18px; } }
@media (max-width: 360px) { .onglets button { font-size: 13.5px; padding: 0 2px; } .fiche__titre { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Pendant l'enregistrement, les feuilles (fin, reprise) passent au-dessus de l'écran d'enregistrement */
body.is-rec { overflow: hidden; }
body.is-rec .voile { z-index: 65; }
body.is-rec .feuille { z-index: 70; }
body.is-rec .toast { z-index: 95; }
