/* =============================================================
   arbusteo — section « Du planning au chantier, même sans réseau » (#terrain,
   novembre 2026). Elle s'ouvre sur l'écran « Ma journée » de l'app terrain et son
   statut Android (un seul : « Bientôt sur Google Play », puis le badge officiel),
   puis arbusteo web et l'app terrain côte à côte, le fonctionnement sans réseau et
   l'extension QGIS en test pilote. Plus le lien du héros vers cette section et le
   statut « En test pilote ».
   ⚠ Ce fichier appartient au DÉPÔT (pas au prototype Claude Design) : il doit
   survivre à chaque ré-import, comme la section #terrain de index.html et le
   réglage APP_TERRAIN_SUR_PLAY de js/layout.js.
   ============================================================= */

/* ---------- Icônes absentes du sous-ensemble de police local (SVG Material Symbols) ---------- */
.ms-svg { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* ---------- Statuts propres à la section ---------- */
.stat--pilote { background: #fff; color: var(--green-deep); border: 1.5px solid var(--olive); }

/* ---------- Héros : lien vers la section ---------- */
.hero-app {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38);
  color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35;
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease);
}
.hero-app:hover { background: rgba(255, 255, 255, .24); }
.hero-app .material-symbols-outlined { font-size: 19px; }
.hero-morph .hero-app { background: var(--paper); border-color: var(--line); color: var(--green-deep); }
.hero-note + .hero-app { margin-top: 14px; }

/* ---------- Ouverture : le travail de l'équipe, l'écran « Ma journée », le statut Android ---------- */
.apps-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(28px, 6vw, 96px);
  /* aligné sur les cartes ; à droite, la place de la pastille « Aucun réseau » */
  margin-bottom: clamp(48px, 6vw, 80px); padding-right: 40px;
}
.apps-intro-text .h2 { margin-top: 14px; text-wrap: balance; }
.apps-intro-text .lead { margin-top: 18px; max-width: 54ch; }
.apps-statut { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.apps-android {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 650; line-height: 1.3; color: var(--green-deep);
}
.apps-android .ms-svg { font-size: 28px; color: var(--green-deep); }
.apps-ios { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }

.apps-intro-visual { position: relative; margin: 0; }
.apps-intro-visual .ph { width: 272px; }
.apps-intro-visual .ph-screen img { display: block; width: 100%; height: auto; }
.apps-intro-visual .ph-status { background: #f9f9e9; }
.apps-intro-visual .ph-status .ico { align-items: center; color: var(--green-title); }
.apps-intro-visual .ph-status .ms-svg { font-size: 15px; }
.apps-off-chip {
  position: absolute; top: -14px; left: calc(50% + 34px);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: var(--ocre-light); color: #3a2400; box-shadow: var(--shadow-3);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.apps-off-chip .ms-svg { font-size: 17px; }
.apps-intro-visual figcaption {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); text-align: center;
}
.apps-intro-visual figcaption .material-symbols-outlined { font-size: 15px; color: var(--olive); }

/* ---------- Deux cartes : arbusteo web et arbusteo terrain ---------- */
.apps-duo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 2.4vw, 28px); }
.apps-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-1); padding: clamp(24px, 3vw, 36px);
}
.apps-card--terrain { border: 2px solid var(--olive); box-shadow: var(--shadow-2); }
.apps-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.apps-ico {
  width: 56px; height: 56px; flex: none; border-radius: 18px;
  display: grid; place-items: center; background: var(--olive-light); color: var(--green-deep);
}
.apps-ico .material-symbols-outlined { font-size: 30px; }
.apps-where {
  margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--green-dark);
}
.apps-card h3, .apps-qgis h3 {
  margin-top: 6px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600;
  letter-spacing: -.4px; line-height: 1.15; color: var(--green-title);
}
.apps-what { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.apps-list { margin: 18px 0 26px; display: grid; gap: 11px; }
.apps-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.apps-list .material-symbols-outlined { font-size: 21px; color: var(--olive); flex: none; }

.apps-foot {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}

/* Accès Google Play : « Bientôt sur Google Play » en texte, puis le badge officiel lié à la fiche */
.apps-foot .apps-android { font-size: 16px; }
.apps-foot .apps-android .ms-svg { font-size: 24px; }
.apps-play { flex: none; display: inline-flex; align-items: center; border-radius: 10px; }
.apps-play img { height: 62px; width: auto; margin: -8px 0; } /* le badge officiel porte sa propre marge, en haut et en bas */
.apps-play:focus-visible { outline: 3px solid var(--green-title); outline-offset: 2px; }
.apps-mention { width: 100%; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
[data-play-en-ligne][hidden], [data-play-attente][hidden] { display: none !important; }

/* ---------- Tablette : la carte du jardin et la fiche de l'arbre ---------- */
.apps-tablette { margin: clamp(28px, 4vw, 48px) auto 0; max-width: 980px; }
.tab {
  background: #1f241a; border-radius: 30px; padding: 14px;
  box-shadow: var(--shadow-3), inset 0 0 0 2px #353b2c;
}
.tab-screen { border-radius: 18px; overflow: hidden; background: var(--pv-bg, #f9f9e9); }
.tab-screen img { display: block; width: 100%; height: auto; }
.apps-tablette figcaption {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); text-align: center;
}
.apps-tablette figcaption .ms-svg { font-size: 17px; color: var(--olive); }

/* ---------- Sans réseau ---------- */
.apps-offline {
  position: relative; overflow: hidden;
  margin-top: clamp(20px, 3vw, 32px);
  background: radial-gradient(120% 140% at 100% 0%, #3c6e42 0%, var(--green-deep) 55%, #24492a 100%);
  color: var(--cream-light); border-radius: var(--r-card);
  padding: clamp(28px, 4.4vw, 56px);
  box-shadow: var(--shadow-3);
}
.apps-off-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  background: var(--ocre-light); color: #3a2400;
  font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.apps-off-eyebrow .ms-svg { font-size: 18px; }
.apps-offline h3 {
  margin-top: 18px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 650; line-height: 1.1;
  letter-spacing: -.6px; color: var(--cream-light); text-wrap: balance;
}
.apps-off-lead { margin-top: 14px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: rgba(251, 250, 232, .86); max-width: 60ch; }
.apps-off-list { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.apps-off-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; line-height: 1.5; color: rgba(251, 250, 232, .82); }
.apps-off-list b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--cream-light); }
.apps-off-ic {
  width: 42px; height: 42px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(251, 250, 232, .12); color: var(--olive-light);
}
.apps-off-ic .material-symbols-outlined { font-size: 22px; }
.apps-off-ic .ms-svg { font-size: 22px; }
.apps-off-note {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(251, 250, 232, .18);
  font-size: 14px; line-height: 1.55; color: rgba(251, 250, 232, .74);
}

/* ---------- Extension QGIS ---------- */
.apps-qgis {
  margin-top: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(16px, 2.6vw, 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-1); padding: clamp(22px, 3vw, 34px);
}
.apps-qgis .apps-where { margin-top: 0; }
.apps-qgis p:not(.apps-where) { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); max-width: 66ch; }
.apps-qgis-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.apps-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--green-deep); white-space: nowrap;
  border-bottom: 1.5px solid transparent; transition: border-color .2s var(--ease);
}
.apps-link:hover { border-bottom-color: var(--olive); }
.apps-link .material-symbols-outlined { font-size: 19px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 860px) {
  /* Téléphone : titre, accroche et statut Android, puis l'écran « Ma journée », avant les cartes */
  .apps-intro { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-right: 0; }
  .apps-duo { grid-template-columns: minmax(0, 1fr); }
  .apps-off-list { grid-template-columns: minmax(0, 1fr); }
  .apps-qgis { grid-template-columns: auto minmax(0, 1fr); }
  .apps-qgis-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (max-width: 600px) {
  .apps-intro-text .lead { margin-top: 14px; }
  .apps-statut { margin-top: 20px; }
  .apps-qgis { grid-template-columns: minmax(0, 1fr); }
  .apps-intro-visual .ph { width: 236px; }
  .tab { border-radius: 18px; padding: 7px; }
  .tab-screen { border-radius: 12px; }
  .apps-off-chip { left: calc(50% + 22px); font-size: 13px; }
  .hero-app { font-size: 14px; }
}
@media (max-width: 380px) {
  .apps-off-chip { left: auto; right: 0; }
}
