/* ==========================================================================
   Radio Tony Lainé — charte graphique commune
   Mobile d'abord : tout est écrit pour un téléphone, puis élargi.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --encre: #131a33;
  --encre-douce: #45507a;
  --primaire: #e8402a;
  --primaire-fonce: #c22f1c;
  --primaire-clair: #ffe7e2;
  --soleil: #ffb703;
  --soleil-clair: #fff3d6;
  --menthe: #0f9c94;
  --menthe-clair: #dff5f2;
  --ciel: #2b6cf6;
  --ciel-clair: #e3ecfe;
  --violet: #7b5cf0;
  --violet-clair: #ede8fe;
  --fond: #fbf7f2;
  --carte: #ffffff;
  --bord: #ece3d8;
  --gris: #79839c;
  --ombre-1: 0 1px 2px rgba(19, 26, 51, .06), 0 4px 14px rgba(19, 26, 51, .06);
  --ombre-2: 0 6px 24px rgba(19, 26, 51, .12);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-pilule: 999px;
  --titre: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --texte: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tabbar-h: 62px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--fond);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
  overflow-x: hidden;
}

body.has-player { padding-bottom: calc(var(--tabbar-h) + 76px + env(safe-area-inset-bottom, 0px) + 8px); }

h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 6vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 4.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--primaire); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- mise en page */

.page { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0; }
.section--serre { padding: 20px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section__head p { color: var(--encre-douce); margin: 4px 0 0; font-size: .95rem; }
.section__head h2 { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primaire); margin-bottom: 8px;
}

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.spacer { flex: 1 1 auto; }

/* ---------------------------------------------------------------- en-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 242, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px;
  background: linear-gradient(140deg, var(--primaire), var(--soleil));
  display: grid; place-items: center; color: #fff; box-shadow: var(--ombre-1);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--titre); font-weight: 700; font-size: 1.02rem; }
.brand__tag { font-size: .7rem; color: var(--gris); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: none; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--r-pilule); color: var(--encre-douce);
  font-weight: 700; font-size: .92rem;
}
.main-nav a:hover { background: #fff; color: var(--encre); text-decoration: none; }
.main-nav a.is-active { background: var(--encre); color: #fff; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

@media (min-width: 900px) {
  .main-nav { display: flex; margin-left: 24px; }
  .header-actions { margin-left: 0; }
}

/* ---------------------------------------------------------------- barre du bas */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: stretch;
  background: #fff;
  border-top: 1px solid var(--bord);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 20px rgba(19, 26, 51, .07);
}

.tabbar a {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--tabbar-h); padding: 6px 2px;
  color: var(--gris); font-size: .64rem; font-weight: 800; text-decoration: none;
  text-transform: uppercase; letter-spacing: .02em;
  border: 0; background: none; cursor: pointer;
}
.tabbar a:hover { text-decoration: none; color: var(--encre-douce); }
.tabbar a.is-active { color: var(--primaire); }
.tabbar a.is-active svg { transform: translateY(-1px); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

@media (min-width: 900px) {
  .tabbar { display: none; }
  body { padding-bottom: 24px; }
  body.has-player { padding-bottom: 96px; }
}

/* ---------------------------------------------------------------- lecteur */

.player-bar {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  background: var(--encre); color: #fff;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  box-shadow: 0 -8px 24px rgba(19, 26, 51, .3);
}
.player-bar.is-live { background: linear-gradient(100deg, #b32419, var(--primaire) 55%, #ff8a3d); }

.player-bar__btn {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .16); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.player-bar__btn:hover { background: rgba(255, 255, 255, .3); }
.player-bar__meta { min-width: 0; flex: 1 1 auto; }
.player-bar__title { font-weight: 800; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__sub { font-size: .74rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar audio { display: none; }
.player-bar__link {
  color: #fff; font-size: .74rem; font-weight: 800; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--r-pilule); padding: 6px 10px;
}
.player-bar__link:hover { text-decoration: none; background: rgba(255, 255, 255, .15); }

@media (min-width: 900px) {
  .player-bar { bottom: 0; padding: 12px 20px; }
}

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 46px;
  border: 1px solid transparent; border-radius: var(--r-pilule);
  font-family: var(--titre); font-size: .96rem; font-weight: 600;
  background: var(--encre); color: #fff; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--ombre-2); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--primaire); }
.btn--soleil { background: var(--soleil); color: var(--encre); }
.btn--ghost { background: #fff; color: var(--encre); border-color: var(--bord); }
.btn--ghost:hover { background: #fff; border-color: var(--encre); }
.btn--danger { background: #d32b1c; }
.btn--menthe { background: var(--menthe); }
.btn--sm { padding: 8px 14px; min-height: 38px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 8px; width: 40px; min-height: 40px; border-radius: 50%; }
.btn--live { background: var(--primaire); }
.btn--live::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* ---------------------------------------------------------------- cartes */

.card {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r-m);
  overflow: hidden; box-shadow: var(--ombre-1);
}
.card--plat { box-shadow: none; }
.card__body { padding: 16px; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--primaire-clair); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font-family: var(--titre); font-weight: 600; font-size: 1.05rem; margin: 0 0 6px; }
.card__title a { color: inherit; }
.card__text { color: var(--encre-douce); font-size: .92rem; margin: 0 0 12px; }
.card__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pilule);
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--primaire-clair); color: var(--primaire-fonce);
}
.badge--soleil { background: var(--soleil-clair); color: #96650a; }
.badge--menthe { background: var(--menthe-clair); color: #0a6b65; }
.badge--ciel { background: var(--ciel-clair); color: #1c4bb0; }
.badge--violet { background: var(--violet-clair); color: #5238ad; }
.badge--gris { background: #eef0f5; color: var(--encre-douce); }
.badge--live { background: var(--primaire); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pilule);
  background: #fff; border: 1px solid var(--bord);
  font-size: .85rem; font-weight: 700; color: var(--encre-douce);
  cursor: pointer; white-space: nowrap;
}
.chip.is-active { background: var(--encre); border-color: var(--encre); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- listes */

.list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r-m);
  padding: 12px; box-shadow: var(--ombre-1);
}
.list-item__media { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; overflow: hidden; background: var(--primaire-clair); }
.list-item__media img { width: 100%; height: 100%; object-fit: cover; }
.list-item__body { min-width: 0; flex: 1 1 auto; }
.list-item__title { font-family: var(--titre); font-weight: 600; margin: 0 0 2px; font-size: .98rem; }
.list-item__title a { color: inherit; }
.list-item__meta { font-size: .8rem; color: var(--gris); }

.empty {
  text-align: center; padding: 32px 16px; color: var(--encre-douce);
  background: #fff; border: 1px dashed var(--bord); border-radius: var(--r-m);
}
.empty svg { color: var(--gris); margin-bottom: 8px; }

/* ---------------------------------------------------------------- héros */

.hero { position: relative; overflow: hidden; color: #fff; background: var(--encre); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(19, 26, 51, .92) 10%, rgba(19, 26, 51, .72) 45%, rgba(232, 64, 42, .82));
}
.hero__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 48px 16px 40px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.02rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__note { margin-top: 16px; font-size: .82rem; color: rgba(255, 255, 255, .78); }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 26px;
}
.hero-stats div {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-m); padding: 12px 14px;
}
.hero-stats strong { display: block; font-family: var(--titre); font-size: 1.5rem; line-height: 1.1; }
.hero-stats span { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; opacity: .82; font-weight: 700; }

@media (min-width: 900px) {
  .hero__inner { padding: 72px 16px 64px; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; }
}

/* ---------------------------------------------------------------- bandeau direct */

.live-card {
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(135deg, #1d2547, #2b3563 60%, #59232a);
  color: #fff; border-radius: var(--r-l); padding: 20px;
  box-shadow: var(--ombre-2);
}
.live-card h3 { color: #fff; margin: 0; }
.live-card p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .92rem; }
.live-card__now {
  background: rgba(255, 255, 255, .12); border-radius: var(--r-m); padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
}
.live-card__now strong { display: block; font-family: var(--titre); font-size: 1.05rem; }
.live-card__now small { color: rgba(255, 255, 255, .75); }

@media (min-width: 760px) {
  .live-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 28px; }
  .live-card__now { min-width: 260px; }
}

/* ---------------------------------------------------------------- grille des programmes */

.program-day { }
.program-day__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.program-day__head h3 { margin: 0; }
.program-day__head .badge { margin-left: auto; }
.slot {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--r-m);
  background: #fff; border: 1px solid var(--bord); border-left: 5px solid var(--primaire);
}
.slot--corail { border-left-color: var(--primaire); }
.slot--bleu { border-left-color: var(--ciel); }
.slot--vert { border-left-color: var(--menthe); }
.slot--jaune { border-left-color: var(--soleil); }
.slot--violet { border-left-color: var(--violet); }
.slot--gris { border-left-color: var(--gris); }
.slot__time { font-family: var(--titre); font-weight: 600; font-size: .84rem; color: var(--encre-douce); flex: 0 0 92px; }
.slot__body { min-width: 0; }
.slot__title { font-weight: 800; margin: 0; font-size: .96rem; }
.slot__desc { font-size: .84rem; color: var(--gris); margin: 2px 0 0; }

/* ---------------------------------------------------------------- statistiques */

.stat {
  background: #fff; border: 1px solid var(--bord); border-radius: var(--r-m);
  padding: 16px; box-shadow: var(--ombre-1);
}
.stat__icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primaire-clair); color: var(--primaire); margin-bottom: 10px;
}
.stat__value { font-family: var(--titre); font-size: 1.7rem; line-height: 1.1; }
.stat__label { font-size: .8rem; color: var(--gris); font-weight: 700; }
.stat--soleil .stat__icon { background: var(--soleil-clair); color: #a9700a; }
.stat--menthe .stat__icon { background: var(--menthe-clair); color: var(--menthe); }
.stat--ciel .stat__icon { background: var(--ciel-clair); color: var(--ciel); }
.stat--violet .stat__icon { background: var(--violet-clair); color: var(--violet); }

/* ---------------------------------------------------------------- formulaires */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: .86rem; color: var(--encre-douce); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--bord); border-radius: var(--r-s);
  background: #fff; font-family: var(--texte); font-size: 1rem; color: var(--encre);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ciel); outline-offset: 1px; border-color: var(--ciel);
}
.field__hint { font-size: .78rem; color: var(--gris); }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.form-card {
  background: #fff; border: 1px solid var(--bord); border-radius: var(--r-l);
  padding: 20px; box-shadow: var(--ombre-1);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- tribune */

.topic-card { display: flex; flex-direction: column; gap: 10px; }
.topic-card__vote {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: var(--r-m);
  border: 1px solid var(--bord); background: #fff; cursor: pointer; color: var(--encre-douce);
}
.topic-card__vote strong { font-family: var(--titre); font-size: 1.1rem; }
.topic-card__vote.is-on { background: var(--primaire); border-color: var(--primaire); color: #fff; }
.topic-card__vote span { font-size: .58rem; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }

.reply {
  background: #fff; border: 1px solid var(--bord); border-radius: var(--r-m);
  padding: 12px 14px;
}
.reply__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.reply__author { font-weight: 800; font-size: .88rem; }
.reply__date { font-size: .74rem; color: var(--gris); }
.reply__text { margin: 0; font-size: .93rem; }

.avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--titre); font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--ciel), var(--violet)); font-size: .85rem;
}
.avatar--s { width: 28px; height: 28px; flex: 0 0 28px; font-size: .74rem; }

/* ---------------------------------------------------------------- articles */

.article { background: #fff; border: 1px solid var(--bord); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--ombre-1); }
.article__media { aspect-ratio: 16 / 9; background: var(--ciel-clair); }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__body { padding: 18px; }
.article__body p { color: var(--encre-douce); }
.prose { font-size: 1.02rem; }
.prose p { margin: 0 0 1.1em; }
.prose h3 { margin-top: 1.6em; }

/* ---------------------------------------------------------------- tableaux */

.table-wrap { width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--bord); border-radius: var(--r-m); }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--bord); vertical-align: middle; }
table.data th { background: #faf7f3; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
table.data tr:last-child td { border-bottom: 0; }
table.data td .row { gap: 6px; }

/* ---------------------------------------------------------------- modales & toasts */

.modal {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(19, 26, 51, .55);
}
.modal__box {
  background: #fff; border-radius: var(--r-l); padding: 22px; width: 100%; max-width: 460px;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--ombre-2);
}
.modal__box h3 { margin-top: 0; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

#toastHost {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 95; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--encre); color: #fff; border-radius: var(--r-m);
  padding: 12px 16px; font-size: .92rem; font-weight: 700;
  box-shadow: var(--ombre-2); opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--menthe); }
.toast--error { background: #c22f1c; }
.toast--info { background: var(--ciel); }

@media (min-width: 900px) {
  #toastHost { left: auto; right: 20px; bottom: 100px; width: 340px; }
}

/* ---------------------------------------------------------------- pied de page */

.site-footer {
  background: var(--encre); color: rgba(255, 255, 255, .8);
  padding: 32px 0 26px; margin-top: 24px;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: .92rem; }
.footer-bottom {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .8rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------------------------------------------------------------- encart installation */

.install-card {
  background: linear-gradient(135deg, #fff, #fff6ee);
  border: 1px solid var(--bord); border-radius: var(--r-l);
  padding: 20px; box-shadow: var(--ombre-1);
}
.install-card__logos { display: flex; gap: 14px; align-items: center; margin: 12px 0 16px; }
.install-card__logos svg { color: var(--encre); }
.install-note { font-size: .82rem; color: var(--gris); }

/* ---------------------------------------------------------------- écrans de connexion */

.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px calc(var(--tabbar-h) + 40px);
  background: linear-gradient(160deg, #1d2547, #3a2a45 55%, #6b2320);
}
.auth-box { width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-l); padding: 24px; box-shadow: var(--ombre-2); }
.auth-box h1 { font-size: 1.5rem; margin-bottom: .2em; }
.auth-box .lead { color: var(--encre-douce); font-size: .94rem; margin-bottom: 18px; }
.auth-switch { text-align: center; margin-top: 14px; font-size: .9rem; color: var(--encre-douce); }

/* ---------------------------------------------------------------- divers */

.note {
  background: var(--soleil-clair); border-left: 4px solid var(--soleil);
  border-radius: var(--r-s); padding: 12px 14px; font-size: .9rem; color: #6d4a05;
}
.note--menthe { background: var(--menthe-clair); border-left-color: var(--menthe); color: #0a5b56; }
.note--ciel { background: var(--ciel-clair); border-left-color: var(--ciel); color: #1c3f8f; }

.divider { height: 1px; background: var(--bord); margin: 18px 0; border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--gris); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.skeleton {
  background: linear-gradient(90deg, #f1ece5 25%, #f8f4ef 50%, #f1ece5 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-s);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}
