/* Les outils intégrés (integre.js, veille.js) : l'entrée, la barre de l'outil, le bandeau des clés et le panneau de
   l'admin, posés en iframe dans le site d'un client. Rien en dur : les jetons de theme.css, da.css et banque.css. */
/* La landing de One Digital (one-digital.io), posée sur les outils qu'elle donne à ses membres : le noir pur, le vert vif
   pour seul accent, le bouton vert nuit bordé de vert, les titres serrés au mot clé vert, les cartes bordées de blanc.
   Ce fichier n'est chargé que par integre.html : ces jetons ne touchent ni Apptrack ni le Cockpit. */
:root {
  --fond: var(--noir-landing);
  --carte: #050505;
  --releve: #0E0E0E;
  --gris-actif: #1C1C1C;
  --gris-landing: #ABA9A9;
  --gris-pastille: rgb(156 140 140 / .32);
  --texte-landing: rgb(255 255 255 / .7);
  --blanc-bord: rgb(255 255 255 / .12);
  --blanc-bord-fort: rgb(255 255 255 / .22);
  --accent: var(--vert-vif);
  --succes: var(--vert-vif);
  --secondaire: var(--texte-landing);
  --i-titre: -0.05em;
  --i-marque: -0.018em;
  --f-titre: 500 30px/1.15 var(--police);
  --f-titre-landing: 500 44px/1.1 var(--police);
  --f-marque: 500 16px/1 var(--police);
  --t-logo-outil: 20px;
}
body { background: var(--fond); }
::selection { background: color-mix(in srgb, var(--vert-vif) 35%, transparent); }

/* le bouton de la landing : une pilule vert nuit, bordée de vert vif, le texte blanc */
.bouton-reglage.principal, .bouton-reglage.principal:hover, .bouton-chercher {
  background: var(--vert-nuit);
  color: var(--texte);
  box-shadow: inset 0 0 0 var(--filet) var(--vert-vif);
}
.bouton-reglage.principal:hover, .bouton-chercher:hover { filter: var(--eclat-survol); }
/* les autres : une pilule noire bordée de blanc */
.bouton-reglage { background: transparent; box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord-fort); }
.bouton-reglage:hover { background: var(--gris-actif); }
/* une pastille neutre : le gris rosé de « Processus » */
.pastille.neutre { background: var(--gris-pastille); box-shadow: none; color: var(--texte); }
/* les cartes : bordées de blanc, comme les questions de la FAQ */
.verre, .bloc { box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord); }
.champ { background: var(--carte); border-color: var(--blanc-bord-fort); }
.champ:focus { border-color: var(--vert-vif); }
/* les titres de la landing : serrés, un mot en vert vif */
.titre-heros, .entree-outil .titre { font-weight: 500; letter-spacing: var(--i-heros); }
.titre-heros .pale, .mot-vert { color: var(--vert-vif); }
.entree-outil .titre { font: var(--f-titre-landing); letter-spacing: var(--i-heros); }

/* le logo de One Digital collé au nom de l'outil, le second mot en gris, comme « One Digital » */
.marque-outil { display: flex; align-items: center; gap: var(--e-m); margin: 0; font: var(--f-marque); letter-spacing: var(--i-marque); white-space: nowrap; }
.marque-outil img { width: var(--t-logo-outil); height: var(--t-logo-outil); }
.marque-outil .gris { color: var(--gris-landing); }
.entree-outil .marque-outil { justify-content: center; }

/* l'entrée : le nom de l'outil, ce qu'il fait, puis la carte où l'on tape son nom */
.entree-outil { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--e-xl); min-height: 100vh; padding: var(--e-page) 0; text-align: center; }
.entree-outil .sous-titre { max-width: var(--t-sous-heros); }
.carte-entree { width: min(100%, var(--t-boite-code)); margin-top: var(--e-xl); }
.carte-entree .champ { width: 100%; }
.carte-entree .bouton-reglage { justify-content: center; height: var(--t-bouton-chercher); }

/* la barre de l'outil : collée en haut, une capsule grise bordée, le nom à gauche, le compte et les boutons à droite */
.barre-outil {
  position: sticky;
  top: var(--e-xl);
  z-index: var(--z-barre);
  display: flex;
  align-items: center;
  gap: var(--e-m);
  height: var(--t-barre);
  margin-top: var(--e-xl);
  padding: 0 var(--e-barre) 0 var(--e-xxl);
  border-radius: var(--r-capsule);
  background: var(--carte);
  box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord);
}
.barre-outil .espace { flex: 1; }
/* le rapport partagé (partage.js) : la barre n'a que sa note à droite */
.barre-outil.lecture { padding-right: var(--e-xxl); }
.barre-outil .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-outil .bouton-reglage { height: var(--t-onglet); padding: 0 var(--e-xxl); }
.barre-outil .bouton-reglage[aria-pressed=true] { background: var(--gris-actif); }

/* une clé manque : le dire au-dessus de l'outil */
.bandeau-outil { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-m); margin-top: var(--e-xl); padding: var(--e-l) var(--e-xxl); border-radius: var(--r-bloc); background: var(--accent-doux); box-shadow: inset 0 0 0 var(--filet) var(--accent-bord); }
.bandeau-outil p { margin: 0; }

/* Validation idée : l'onglet d'Apptrack, détaché de la barre comme dans l'espace d'un projet */
.corps-idee { margin-top: var(--e-page); }

/* sans mosaïque (une banque neuve), le titre ne chevauche rien */
.heros-recherche.sans-mur .heros-texte { margin-top: var(--e-page); }
.heros-recherche.sans-mur .heros-texte::before { display: none; }

/* Viralbank en trois modes : les vidéos, celles de l'app du membre (integre/monapp.js), ou une app et comment elle trouve ses users (integre/apps.js) */
.modes-veille { position: relative; margin-top: var(--e-page); }
.modes-veille ~ .boite { margin-top: var(--e-xl); }
.apps-veille { display: flex; flex-direction: column; }
.grille-apps-veille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--t-colonne)), 1fr)); gap: var(--e-m); }
.carte-app-veille { display: flex; flex-direction: column; gap: var(--e-m); padding: var(--e-xl); border-radius: var(--r-carte); background: var(--releve); box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord); }
.carte-app-veille:hover { box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord-fort); }
.tete-app-veille { display: flex; align-items: center; gap: var(--e-l); min-width: 0; }
.nom-app-veille { display: flex; flex-direction: column; gap: var(--e-xs); min-width: 0; }
.nom-app-veille strong, .nom-app-veille .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nom-app-veille strong { color: var(--texte); font: var(--f-corps-gras); }
.note-app-veille, .majorite-app-veille { display: flex; align-items: center; gap: var(--e-s); margin: 0; color: var(--texte); font: var(--f-mini-gras); }
.carte-app-veille .bouton-reglage { justify-content: center; margin-top: auto; }

/* Mon app (integre/monapp.js) : l'app en tête, ses mots-clés à cocher, l'ajout d'un mot, puis « Voir les vidéos » */
.mon-app .contenu-boite { gap: var(--e-xl); }
.tete-mon-app { display: flex; align-items: center; gap: var(--e-l); min-width: 0; }
.icone-mon-app { display: grid; flex: none; place-items: center; width: var(--t-avatar); height: var(--t-avatar); border-radius: var(--r-bloc); background: var(--accent-doux); box-shadow: inset 0 0 0 var(--filet) var(--accent-bord); color: var(--accent); }
.nom-mon-app { display: flex; flex: 1; flex-direction: column; gap: var(--e-xs); min-width: 0; }
.nom-mon-app strong { color: var(--texte); font: var(--f-corps-gras); }
.nom-mon-app .note { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mots-mon-app { display: flex; flex-wrap: wrap; gap: var(--e-m); }
.mot-mon-app { display: inline-flex; align-items: center; border-radius: var(--r-capsule); background: var(--releve); box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord); color: var(--tertiaire); }
.mot-mon-app.coche { background: var(--accent-doux); box-shadow: inset 0 0 0 var(--filet) var(--accent-bord); color: var(--texte); }
.mot-mon-app button { display: inline-flex; align-items: center; gap: var(--e-s); height: var(--t-ligne-boite); padding: 0; border: 0; background: none; color: inherit; font: var(--f-ligne); cursor: pointer; }
.mot-mon-app .cocher-mot { padding-left: var(--e-l); }
.mot-mon-app:not(.coche) .cocher-mot { text-decoration: line-through; }
.case-mot { display: grid; place-items: center; width: var(--e-xl); height: var(--e-xl); border-radius: var(--r-capsule); box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord-fort); color: var(--fond); font: var(--f-mini-gras); }
.coche .case-mot { background: var(--accent); box-shadow: none; }
.plateforme-mot { color: var(--tertiaire); font: var(--f-mini); }
.mot-mon-app .retirer-mot { padding: 0 var(--e-l) 0 var(--e-s); color: var(--tertiaire); }
.mot-mon-app .retirer-mot:hover { color: var(--danger); }
.ajout-mot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-m); }
.ajout-mot input { flex: 1; min-width: var(--t-case-etroite); height: var(--t-ligne-boite); padding: 0 var(--e-xl); border: 0; border-radius: var(--r-capsule); background: var(--releve); box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord); color: var(--texte); font: var(--f-ligne); outline: none; }
.ajout-mot input:focus { box-shadow: inset 0 0 0 var(--filet) var(--accent-bord); }
.mon-app .boite-bas .conseil-mots { flex: 1; margin: 0; }
.mon-app .bouton-chercher:disabled { opacity: var(--en-pause); cursor: default; }

/* « Demander à l'IA » posé, et ce que l'IA a compris de la phrase */
.bouton-ia[aria-pressed="true"] .icone { color: var(--accent); }
.compris-ia { display: flex; align-items: center; gap: var(--e-s); color: var(--secondaire); }
.compris-ia .icone { flex: none; width: var(--t-icone); height: var(--t-icone); color: var(--accent); }

/* le panneau de l'admin */
.integration { display: flex; flex-direction: column; gap: var(--e-m); padding-top: var(--e-xl); border-top: var(--filet) solid var(--blanc-bord); }
.integration .actions { display: flex; flex-wrap: wrap; gap: var(--e-m); }
@media (min-width: 761px) {
  /* le compte, un chiffre par outil (--chiffres-outil, posé sur le tableau), le coût, la dernière visite, le bouton */
  .table-outil .rang { grid-template-columns: minmax(var(--t-case-etroite), 1fr) repeat(var(--chiffres-outil), var(--t-chiffre-groupe)) var(--t-dollars-groupe) var(--t-activite-groupe) var(--t-action-groupe); }
}
/* le lien vers Admin dans l'onglet Idée est un bouton : il garde l'allure d'un lien */
button.lien-cle { padding: 0; border: 0; background: none; cursor: pointer; }

/* la fiche d'une vidéo s'ouvre en fenêtre même sur un téléphone (il n'y a pas de page /v/ ici) : la vidéo au-dessus,
   les onglets dessous, le tout défile */
@media (max-width: 760px) {
  .voile.fiche { padding: var(--e-m); }
  .fenetre-fiche { height: auto; max-height: calc(100dvh - 2 * var(--e-m)); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; overflow-y: auto; }
  .colonne-video { aspect-ratio: 9 / 16; max-height: 60vh; }
  .colonne-infos { min-height: auto; padding: var(--e-xl); }
  .barre-outil { padding-left: var(--e-xl); }
  .barre-outil .note { display: none; }
}
