/* SARIYA — chat-first « Latérite » : rouge de Bamako, crème papier, bulles WhatsApp. */
/* La police « Nura » n'est pas encore fournie : ne pas la déclarer ici tant
   que le fichier n'existe pas, sinon chaque visite télécharge deux réponses
   inutiles. Dès que public/fonts/nura.woff2 sera en place, rétablir :
   @font-face { font-family:"Nura"; src:url("/fonts/nura.woff2") format("woff2");
                font-display: swap; }
   Les repères de repli ci-dessous restent en place dans les règles.        */
:root {
  --rouge: #9e2b15;
  --rouge-fonce: #7c2210;
  --or: #f2c063;
  --encre: #241713;
  --gris: #6d5c51;
  --fond: #faf5ee;
  --carte: #ffffff;
  --trait: #eaddce;
  --trait-fort: #e3d5c8;
  --haut: 56px;
  /* courbes de mouvement : sortie exponentielle, tiroir iOS */
  --sortie: cubic-bezier(0.23, 1, 0.32, 1);
  --tiroir-courbe: cubic-bezier(0.32, 0.72, 0, 1);
  font-size: 16px;
}
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; border-radius: 4px; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--fond);
  color: var(--encre);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
a { color: var(--rouge); }

/* ---------- barre haute (WhatsApp-style) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; flex-shrink: 0;
  display: flex; align-items: center; gap: .35rem;
  padding: .45rem .55rem;
  background: var(--rouge-fonce); color: #fff;
  padding-top: calc(.45rem + env(safe-area-inset-top));
}
.icone {
  border: 0; background: transparent; color: #fff; font-size: 1.25rem;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  transition: transform 120ms var(--sortie), background 120ms ease;
}
.icone:active { background: rgba(255,255,255,.15); transform: scale(0.92); }
.icone.off { opacity: .45; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; flex: 1; min-width: 0; }
.brand-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--rouge);
  display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0;
  border: 2px solid var(--or);
}
.brand-avatar.grand { width: 52px; height: 52px; font-size: 1.6rem; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-nom { font-family: "Nura", "Avenir Next", "Avenir", "Trebuchet MS", sans-serif;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .12em; line-height: 1.2; }
.brand-statut { font-size: .72rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tiroir ---------- */
.tiroir {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  width: min(84vw, 330px); background: var(--carte);
  transform: translateX(-102%);
  transition: transform 300ms var(--tiroir-courbe);
  overflow-y: auto; padding: 0 0 1.2rem;
  box-shadow: 4px 0 24px rgba(36,23,19,.25);
}
.tiroir.ouvert { transform: none; }
.voile { opacity: 0; transition: opacity 250ms ease; }
.voile.visible { opacity: 1; }
.tiroir-tete {
  background: var(--rouge-fonce); color: #fff; padding: 1.1rem .9rem .9rem;
  padding-top: calc(1.1rem + env(safe-area-inset-top));
  display: flex; gap: .7rem; align-items: center;
}
.tiroir-tete small { opacity: .8; }
.tiroir > a, .tiroir-action {
  display: block; width: 100%; text-align: left; font: inherit; border: 0; cursor: pointer;
  padding: .7rem 1rem; color: var(--encre); text-decoration: none; background: none;
}
.tiroir > a:active, .tiroir-action:active { background: var(--fond); }
.tiroir .sec { padding: .9rem 1rem .25rem; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gris); }
.tiroir .mode-switch { margin: .2rem 1rem; }
#tiroir-codes a { display: flex; gap: .55rem;
  padding: .45rem 1rem; color: var(--encre); text-decoration: none; font-size: .9rem; }
#tiroir-codes a:active { background: var(--fond); }
#tiroir-codes .n { color: var(--gris); font-size: .75rem; flex-shrink: 0; margin-left: auto; }
.tiroir-note { margin: 1rem; padding: .7rem .8rem; background: var(--fond);
  border: 1px solid var(--trait); border-radius: 10px; font-size: .72rem; color: var(--gris); }
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(36,23,19,.4); }

.mode-switch { display: flex; background: var(--fond); border: 1px solid var(--trait); border-radius: 999px; padding: 3px; }
.mode-switch button {
  flex: 1; border: 0; background: transparent; color: var(--encre); font: inherit; font-size: .82rem;
  padding: .3rem .8rem; border-radius: 999px; cursor: pointer; opacity: .8;
}
.mode-switch button.on { background: var(--rouge); color: #fff; font-weight: 700; opacity: 1; }

/* ---------- zone principale ---------- */
main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; min-height: 0; }
.page { padding: 1rem .9rem 3rem; overflow-y: auto; }

/* ---------- CHAT ---------- */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0;
  /* fond bogolan discret */
  background-color: var(--fond);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%239e2b15' stroke-opacity='.05' stroke-width='2'%3E%3Cpath d='M0 21h16l5-8 5 8h16M42 21h16l5-8 5 8h16'/%3E%3Cpath d='M21 42v16l8 5-8 5v16M63 42v16l-8 5 8 5v16'/%3E%3Ccircle cx='42' cy='42' r='4'/%3E%3Cpath d='M8 63l6 6-6 6M76 63l-6 6 6 6'/%3E%3C/g%3E%3C/svg%3E");
}
.chat-fil { flex: 1; overflow-y: auto; padding: .9rem .8rem .4rem; scroll-behavior: smooth; }

.msg { display: flex; margin-bottom: .55rem; align-items: flex-end; gap: .45rem; }
.msg.u { justify-content: flex-end; }
/* seule la bulle qui vient d'arriver s'anime — jamais l'historique */
.msg.neuf { animation: arrivee 240ms var(--sortie) both; }
@keyframes arrivee {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.bulle {
  position: relative; max-width: 86%; padding: .55rem .8rem .95rem;
  border-radius: 12px; font-size: .95rem;
  box-shadow: 0 1px 1px rgba(36,23,19,.12);
}
.msg.u .bulle {
  background: var(--rouge); color: #fff; border-bottom-right-radius: 3px;
}
.msg.b .bulle {
  background: var(--carte); border-bottom-left-radius: 3px; max-width: 92%;
}
.msg .heure {
  position: absolute; right: .6rem; bottom: .25rem; font-size: .62rem; opacity: .65;
}
.msg.b .heure { color: var(--gris); }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--rouge-fonce);
  border: 1.5px solid var(--or); display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }

.bulle .lead { margin-bottom: .45rem; }
.rep-art {
  display: block; background: var(--fond); border: 1px solid var(--trait-fort);
  border-radius: 10px; padding: .6rem .75rem;
  margin-bottom: .45rem; text-decoration: none; color: var(--encre);
  transition: transform 140ms var(--sortie), border-color 140ms ease;
}
.rep-art:active { transform: scale(0.98); border-color: var(--or); }
.rep-art b { color: var(--rouge-fonce); font-size: .88rem; }
.code-tag { font-size: .62rem; font-weight: 700; color: #fff; background: var(--rouge);
  border-radius: 99px; padding: .08rem .5rem; vertical-align: middle; }
.rep-art .ou { display: block; font-size: .68rem; color: var(--gris); margin: .1rem 0 .25rem; }
.rep-art p { font-family: Georgia, "Times New Roman", serif; font-size: .87rem; margin: 0 0 .25rem; }
.rep-art .lire { font-size: .75rem; color: var(--rouge); }
.mode-pro .rep-art p { font-size: .82rem; }
.bulle-actions { display: flex; gap: .8rem; margin-top: .3rem; }
.bulle-actions button { border: 0; background: none; font-size: .74rem; color: var(--gris);
  cursor: pointer; padding: 0; font-family: inherit; }
.chat-avert { text-align: center; font-size: .68rem; color: var(--gris); margin: .2rem 0 .7rem; }

/* indicateur « écrit… » */
.ecrit .points { display: inline-flex; gap: 4px; padding: .3rem 0 .5rem; }
.ecrit .points i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris);
  animation: pt 1.2s infinite; }
.ecrit .points i:nth-child(2) { animation-delay: .2s; }
.ecrit .points i:nth-child(3) { animation-delay: .4s; }
@keyframes pt { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* accueil du chat (conversation vide) */
.chat-hero { text-align: center; margin: 1.6rem .9rem 1rem; }
.chat-hero .brand-avatar { width: 64px; height: 64px; font-size: 2rem; margin: 0 auto .6rem; }
.chat-hero h1 { font-family: Georgia, serif; font-size: 1.3rem; margin: 0 0 .25rem; }
.chat-hero p { color: var(--gris); font-size: .85rem; margin: 0; }
.chat-suggestions { display: flex; flex-direction: column; gap: .5rem; margin: .9rem .6rem; }
.sugg {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  background: var(--carte); border: 1px solid var(--trait); border-radius: 14px;
  padding: .7rem .9rem; text-decoration: none; color: var(--encre); font-size: .92rem;
  cursor: pointer; font-family: inherit; text-align: left; width: 100%;
  transition: transform 140ms var(--sortie);
  animation: arrivee 300ms var(--sortie) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.sugg:active { transform: scale(0.98); }
.sugg i { color: var(--rouge); font-style: normal; }

/* questions liées */
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: .35rem .8rem;
  scrollbar-width: none; flex-shrink: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; background: var(--carte); border: 1px solid var(--trait-fort);
  color: var(--rouge-fonce); border-radius: 999px; padding: .35rem .8rem;
  font-size: .8rem; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform 120ms var(--sortie), background 120ms ease;
}
.chip:active { background: var(--fond); transform: scale(0.96); }

/* barre de saisie */
.chat-input {
  flex-shrink: 0; display: flex; gap: .5rem; align-items: flex-end;
  padding: .5rem .7rem calc(.6rem + env(safe-area-inset-bottom));
  background: transparent;
}
.chat-input .champ {
  flex: 1; display: flex; align-items: center; background: var(--carte);
  border: 1px solid var(--trait-fort); border-radius: 24px; padding: 0 .3rem 0 1rem;
}
.chat-input input {
  flex: 1; font: inherit; font-size: 1rem; padding: .72rem 0;
  border: 0; background: transparent; color: var(--encre); min-width: 0;
}
.chat-input input:focus { outline: none; }
.chat-input .champ:focus-within { border-color: var(--rouge); }
#micro { border: 0; background: none; font-size: 1.15rem; width: 40px; height: 40px;
  cursor: pointer; border-radius: 50%; flex-shrink: 0; }
#micro.actif { background: var(--rouge); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(158,43,21,.18); } }
#envoyer {
  width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--rouge);
  color: #fff; font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(124,34,16,.35);
  transition: transform 120ms var(--sortie);
}
#envoyer:active { transform: scale(0.9); }

/* barre de saisie : matériau translucide au-dessus du motif */
.chat-input {
  background: rgba(250,245,238,.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
@media (prefers-reduced-transparency: reduce) {
  .chat-input { background: var(--fond); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- pages classiques (sommaire, article, recherche, catalogue) ---------- */
.search-box { position: relative; margin: .5rem 0 1rem; }
.search-box input {
  width: 100%; font: inherit; font-size: 1.05rem;
  padding: .8rem 1rem .8rem 2.6rem;
  border: 1.5px solid var(--trait-fort); border-radius: 14px; background: var(--carte);
  color: var(--encre);
}
.search-box input:focus { outline: none; border-color: var(--rouge); }
.search-box .loupe { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--gris); }

.section-titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gris); margin: 1.6rem 0 .6rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.card {
  display: block; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 14px; padding: .8rem .9rem; text-decoration: none; color: var(--encre);
}
.card:active { transform: scale(.99); }
.card .ico { font-size: 1.3rem; }
.card b { display: block; margin: .25rem 0 .15rem; color: var(--rouge-fonce); }
.card span { font-size: .82rem; color: var(--gris); }

.toc details { border-bottom: 1px solid var(--trait); }
.toc summary {
  cursor: pointer; padding: .7rem .3rem; font-weight: 600; list-style: none;
  display: flex; gap: .5rem; align-items: baseline;
}
.toc summary::before { content: "▸"; color: var(--or); transition: transform .15s; }
.toc details[open] > summary::before { transform: rotate(90deg); }
.toc .niv { margin-left: 1rem; }
.toc .num { color: var(--rouge); font-weight: 800; white-space: nowrap; }
.toc .range { margin-left: auto; font-size: .75rem; color: var(--gris); white-space: nowrap; }
.toc a.feuille { display: flex; gap: .5rem; padding: .55rem .3rem; text-decoration: none;
  color: var(--encre); border-bottom: 1px solid var(--trait); }
.toc a.feuille:last-child { border-bottom: 0; }

.fil { font-size: .78rem; color: var(--gris); margin-bottom: .8rem; line-height: 1.8; }
.fil a { color: var(--gris); }
.article { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px;
  padding: 1.2rem 1.1rem 1rem; }
.article h1 { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem;
  margin: 0 0 .2rem; color: var(--rouge-fonce); }
.article .contexte { font-size: .82rem; color: var(--gris); margin-bottom: .9rem; }
.article .texte p { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem;
  margin: 0 0 .75rem; }
.mode-pro .article .texte p { font-size: .97rem; margin-bottom: .55rem; }
.article .texte a { text-decoration-style: dotted; }
.art-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.btn {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--trait-fort); background: var(--fond); color: var(--encre);
  border-radius: 999px; padding: .45rem .9rem; text-decoration: none; display: inline-flex;
  align-items: center; gap: .35rem;
  transition: transform 140ms var(--sortie);
}
.btn:active { transform: scale(0.96); }
.btn.primaire { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.pager { display: flex; justify-content: space-between; margin-top: 1rem; gap: .5rem; }

.resultat { display: block; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 12px; padding: .75rem .9rem; margin-bottom: .6rem; text-decoration: none;
  color: var(--encre); }
.resultat b.numero { color: var(--rouge-fonce); }
.resultat .ou { font-size: .75rem; color: var(--gris); display: block; margin-bottom: .2rem; }
.resultat p { margin: .3rem 0 0; font-size: .88rem; color: #3a2c25; }
.resultat mark { background: #fce6b8; padding: 0 .1em; border-radius: 3px; }
.compteur { font-size: .85rem; color: var(--gris); margin: .2rem 0 .8rem; }

.parcours-intro { background: #fbf3e2; border: 1px solid #eeddc2; border-radius: 12px;
  padding: .7rem .9rem; font-size: .85rem; margin-bottom: 1rem; }
.etape { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px;
  padding: .8rem .9rem; margin-bottom: .6rem; }
.etape b { color: var(--rouge-fonce); }
.etape .arts { margin-top: .3rem; font-size: .85rem; }

.loading { text-align: center; color: var(--gris); padding: 3rem 0; }

/* ---------- écran de bienvenue ---------- */
.bienvenue { max-width: 30rem; margin: 0 auto; text-align: center; padding: 1.5rem 0 2rem; }
.bienvenue .brand-avatar { margin: 0 auto 1rem; width: 76px; height: 76px; }
.bienvenue h1 { font-family: "Nura", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 1.9rem; letter-spacing: .14em; margin: 0; color: var(--rouge-fonce); }
.bv-phrase { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem;
  line-height: 1.35; margin: .5rem 0 1.6rem; text-wrap: balance; }
.bv-points { list-style: none; padding: 0; margin: 0 0 1.8rem; text-align: left; }
.bv-points li { display: flex; gap: .7rem; align-items: flex-start;
  padding: .75rem 0; border-bottom: 1px solid var(--trait); font-size: .9rem; line-height: 1.5; }
.bv-points li:last-child { border-bottom: 0; }
.bv-points svg { color: var(--rouge); flex-shrink: 0; margin-top: .15rem; }
.bv-points b { color: var(--rouge-fonce); }
.bv-note { font-size: .78rem; color: var(--gris); margin-top: 1.3rem; line-height: 1.5; }

/* ---------- choix du profil ---------- */
.profils { display: flex; flex-direction: column; gap: .5rem; margin: .7rem 0 .3rem; }
.page-profils { margin-top: 1rem; }
.profil {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  background: var(--fond); border: 1px solid var(--trait-fort); border-radius: 12px;
  padding: .6rem .75rem; font: inherit; color: var(--encre); cursor: pointer;
  transition: transform 140ms var(--sortie), border-color 140ms ease;
  animation: arrivee 300ms var(--sortie) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.profil:active { transform: scale(0.98); }
.profil.on { border-color: var(--rouge); background: #fbf0e6; }
.profil-ic { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; background: var(--rouge); color: #fff; }
.profil b { display: block; font-size: .93rem; color: var(--rouge-fonce); }
.profil small { color: var(--gris); font-size: .78rem; }
.passer { display: block; margin: .6rem auto 0; background: none; border: 0;
  color: var(--gris); font: inherit; font-size: .85rem; text-decoration: underline;
  cursor: pointer; padding: .3rem; }
.profil-lien small { display: block; color: var(--gris); font-size: .78rem; }

/* ---------- icônes & monogrammes ---------- */
.ic { vertical-align: -0.22em; flex-shrink: 0; }
.brand-avatar, .msg-avatar { color: var(--or); }
.mono {
  display: inline-grid; place-items: center; width: 2em; height: 2em;
  border-radius: 8px; background: var(--rouge); color: #fff;
  font-size: .72em; font-weight: 800; letter-spacing: .02em;
  font-family: "Nura", "Avenir Next", "Trebuchet MS", sans-serif;
  vertical-align: middle; flex-shrink: 0;
}
.mono-const { background: var(--rouge-fonce); box-shadow: inset 0 0 0 1.5px var(--or); }
.card .ico .mono { font-size: .95rem; width: 2.1em; height: 2.1em; }
.tiroir > a, .tiroir-action { display: flex; align-items: center; gap: .6rem; }
#tiroir-codes a { align-items: center; }
#tiroir-codes a .mono { font-size: .68rem; }
.bulle-actions button { display: inline-flex; align-items: center; gap: .3rem; }
#micro { color: var(--gris); display: grid; place-items: center; }
#envoyer { display: grid; place-items: center; }
#envoyer .ic { vertical-align: 0; }

/* ---------- page « Que fait SARIYA ? » ---------- */
.apropos { max-width: 620px; margin: 0 auto; }
.ap-hero { text-align: center; padding: 1.6rem 0 2rem; }
.ap-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 .6rem; }
.ap-hero p { color: var(--gris); font-size: 1rem; max-width: 44ch; margin: 0 auto 1.3rem; }
.btn.grand { font-size: 1rem; padding: .7rem 1.4rem; }
.apropos h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem;
  margin: 2rem 0 .7rem; text-wrap: balance; }
.apropos p, .apropos li { font-size: .95rem; line-height: 1.65; }
.ap-etapes { padding-left: 1.3rem; margin: 0; }
.ap-etapes li { margin-bottom: .9rem; }
.ap-etapes li::marker { color: var(--rouge); font-weight: 800; }
.ap-liste { list-style: none; padding: 0; margin: 0; }
.ap-liste li { padding: .5rem 0; border-bottom: 1px solid var(--trait); }
.ap-liste li:last-child { border-bottom: 0; }
.ap-textes { color: var(--gris); font-size: .88rem; line-height: 2; }
.ap-fin { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin: 2.2rem 0 1rem; }

#toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%);
  background: var(--encre); color: #fff; padding: .55rem 1rem; border-radius: 999px;
  font-size: .85rem; z-index: 60;
  animation: arrivee 220ms var(--sortie) both; }

/* bouton installer (tiroir) */
.tiroir-action.installer { color: var(--rouge-fonce); font-weight: 700; }

/* le chat vieillit bien : cartes et texte gardent la lisibilité (≥ 4.5:1) */
.chat-hero h1 { text-wrap: balance; }

/* mouvement réduit : fondus courts, pas de déplacement */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .msg.neuf, .sugg, #toast { animation: fondu 150ms ease both; }
  @keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
  .tiroir { transition: opacity 150ms ease; }
  .ecrit .points i { animation: none; opacity: .6; }
}
@media (hover: hover) and (pointer: fine) {
  .sugg:hover, .chip:hover, .rep-art:hover { border-color: var(--or); }
  .icone:hover { background: rgba(255,255,255,.12); }
}

/* ---------- grand écran : chat centré, tiroir épinglé ---------- */
@media (min-width: 1000px) {
  #nav-btn { display: none; }
  .tiroir { transform: none; box-shadow: none; border-right: 1px solid var(--trait);
    top: 0; width: 300px; }
  .voile { display: none !important; }
  body { padding-left: 300px; }
  .topbar { padding-left: .9rem; }
  main { max-width: 860px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

/* ---------- proposition d'installation (téléphone et tablette) ---------- */
.install-banniere {
  display: flex; align-items: center; gap: .7rem; flex-shrink: 0;
  margin: 0 .7rem .5rem; padding: .7rem .8rem;
  background: var(--carte); border: 1px solid var(--trait-fort);
  border-radius: 14px; box-shadow: 0 2px 10px rgba(36,23,19,.08);
  animation: arrivee 320ms var(--sortie) both;
}
.ib-ic { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; background: var(--rouge); color: #fff; }
.ib-txt { flex: 1; min-width: 0; }
.ib-txt b { display: block; font-size: .9rem; color: var(--rouge-fonce); }
.ib-txt small { color: var(--gris); font-size: .78rem; line-height: 1.35; display: block; }
.ib-btns { display: flex; flex-direction: column; gap: .25rem; flex-shrink: 0; align-items: stretch; }
.ib-btns .btn { padding: .35rem .8rem; font-size: .82rem; justify-content: center; }
.ib-non { border: 0; background: none; color: var(--gris); font: inherit; font-size: .75rem;
  cursor: pointer; padding: .15rem; text-decoration: underline; }
@media (max-width: 430px) {
  .install-banniere { flex-wrap: wrap; }
  .ib-btns { flex-direction: row; width: 100%; align-items: center; justify-content: flex-end; gap: .6rem; }
}
.ap-contact { margin: .8rem 0 0; }
.ap-contact .btn { font-size: .92rem; }
