/* ZISTY OPENSOURCE · la porte d'entrée commune (20/11/2026)
   Même allure que la connexion de la version Netlify (fond crème, ronds pastel,
   carte blanche), et chaque appli dans sa propre identité :
   - ÉCLOS ACADEMY : poudré (rose, jaune doux, bleu), Capriola
   - CULTIVA       : violet nuit et arc-en-ciel, Bricolage Grotesque
   - QG COPILOT    : quadrillé blanc, touches de rouge, Sora
   Téléphone d'abord. */

:root {
  --fond: #F4F5F1;
  --surface: #FFFFFF;
  --encre: #18211D;
  --texte-2: #48534E;
  --texte-3: #6B7670;
  --ligne: #E1E5DF;
  --ligne-forte: #CBD2CB;
  --accent: #14A396;
  --accent-fonce: #0C7C72;
  --accent-doux: #DCF3F0;
  --vert-doux: #E2F2E7;
  --soleil-doux: #FDF0D2;
  --rose: #B5739B;
  --corail-doux: #FCE6DF;
  --titre: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gouttiere: 16px;
  --r-grand: 22px;
  --r: 14px;
  --r-petit: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.55 var(--texte); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chargement { padding: 48px var(--gouttiere); color: var(--texte-3); text-align: center; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(28px, 6.4vw, 44px); }
h2 { font-size: clamp(21px, 4.4vw, 26px); }
h3 { font-size: 18px; line-height: 1.25; }
p { margin: 0; }

/* --- la marque ------------------------------------------------------------ */
.marque { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; line-height: 1; color: var(--encre); }
.marque .z { font-family: var(--titre); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.marque .os { font-size: 13px; font-weight: 500; color: var(--texte-3); }
.trois-points { display: flex; gap: 6px; }
.trois-points i { width: 12px; height: 12px; border-radius: 4px; }
.trois-points i:nth-child(1) { background: #2E8A57; }
.trois-points i:nth-child(2) { background: var(--accent); }
.trois-points i:nth-child(3) { background: var(--rose); }

/* --- boutons --------------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--accent-fonce); color: #fff;
  border: 1.5px solid var(--accent-fonce); border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.bouton:hover { background: #09655D; border-color: #09655D; }
.bouton:active { transform: scale(.98); }
.bouton[disabled] { opacity: .5; cursor: default; }
.bouton.secondaire { background: var(--surface); color: var(--encre); border-color: var(--ligne-forte); }
.bouton.secondaire:hover { border-color: var(--encre); }
.bouton.plein { width: 100%; }
.bouton.petit { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--accent-fonce); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* --- connexion ----------------------------------------------------------------- */
.connexion {
  min-height: 100vh; display: grid; place-items: center;
  padding: 32px var(--gouttiere);
  background:
    radial-gradient(circle at 12% 18%, var(--vert-doux) 0 22%, transparent 23%),
    radial-gradient(circle at 88% 82%, var(--accent-doux) 0 20%, transparent 21%),
    radial-gradient(circle at 85% 10%, var(--soleil-doux) 0 10%, transparent 11%),
    var(--fond);
}
.carte-connexion {
  width: 100%; max-width: 430px; background: var(--surface);
  padding: 32px 24px; border-radius: var(--r-grand); border: 1px solid var(--ligne);
  box-shadow: 0 18px 50px -30px rgba(24, 33, 29, .35);
}
.carte-connexion .trois-points { margin-bottom: 18px; }
.carte-connexion .marque { margin-bottom: 22px; }
.carte-connexion .marque .z { font-size: 34px; }
.carte-connexion h1 { font-size: 28px; }
.carte-connexion .chapeau { margin-top: 8px; color: var(--texte-2); }
.pour-appli { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-petit); background: var(--accent-doux); color: var(--accent-fonce); font-weight: 600; font-size: 15px; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.champ label { font-weight: 600; font-size: 15px; }
.champ input, .champ select, .champ textarea {
  min-height: 52px; padding: 12px 16px; font-size: 17px;
  background: var(--surface); border: 1.5px solid var(--ligne-forte); border-radius: var(--r-petit);
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-doux); }
.aide { font-size: 14px; color: var(--texte-3); }
.erreur { margin: 16px 0 0; padding: 12px 14px; background: var(--corail-doux); color: #9C2F17; font-size: 15px; border-radius: var(--r-petit); }
.ok { margin: 16px 0 0; padding: 12px 14px; background: var(--vert-doux); color: #1E6A41; font-size: 15px; border-radius: var(--r-petit); }
.actions { display: grid; gap: 10px; margin-top: 22px; justify-items: start; }
.actions .plein { justify-self: stretch; }
.ou { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; color: var(--texte-3); font-size: 14px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.bouton-demo { margin-top: 14px; border-style: dashed; }
.note { margin-top: 22px; font-size: 13.5px; color: var(--texte-3); }
.note a { color: var(--accent-fonce); font-weight: 600; }

/* --- la coquille (connecté) ----------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top)) var(--gouttiere) 12px;
  background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--ligne);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.entete .gauche { display: flex; align-items: center; gap: 10px; }
.entete nav { display: flex; flex-wrap: wrap; gap: 4px; }
.entete nav a, .entete nav button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px;
  background: none; border: 0; font-size: 15px; font-weight: 600; color: var(--texte-2); text-decoration: none; cursor: pointer;
}
.entete nav a:hover, .entete nav button:hover { background: #EEF1EC; color: var(--encre); }
.entete nav a[aria-current="page"] { background: var(--accent-doux); color: var(--accent-fonce); }
.page { max-width: 1240px; margin: 0 auto; padding: 32px var(--gouttiere) 80px; }
.page > .surtitre { font-weight: 600; color: var(--accent-fonce); margin-bottom: 8px; }
.page > .chapeau { margin-top: 12px; color: var(--texte-2); font-size: 17px; max-width: 680px; }
.bandeau-demo { margin: 0 0 22px; padding: 12px 16px; border-radius: var(--r); background: var(--soleil-doux); color: #7A4C00; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }

/* --- les trois applis, chacune dans son design ---------------------------------- */
.trio { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 980px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.appli {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  min-height: 330px; padding: 26px 24px 24px; border-radius: 24px; border: 1px solid transparent;
}
.appli .nom { font-size: 30px; line-height: 1.05; }
.appli .nom small { display: block; margin-top: 6px; font: 600 13px/1 var(--texte); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.appli .role { font-size: 16px; }
.appli .bas { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.appli .bouton { border: 0; }
.appli .ferme { font-size: 14px; font-weight: 600; opacity: .75; }
.appli ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.appli ul li::before { content: "•"; margin-right: 8px; opacity: .6; }
.appli.sans-acces .bouton { display: none; }

/* ÉCLOS ACADEMY : poudré */
.appli.eclos {
  background:
    radial-gradient(circle at 90% 8%, #FBF0CF 0 26%, transparent 27%),
    radial-gradient(circle at 6% 96%, #D6ECF5 0 30%, transparent 31%),
    linear-gradient(160deg, #F7DDEB, #FDF3F8 60%, #EEEAFD);
  border-color: #EFD3E2; color: #2A2140;
}
.appli.eclos .nom { font-family: "Capriola", var(--texte); font-weight: 400; letter-spacing: -.01em; }
.appli.eclos .bouton { background: linear-gradient(135deg, #3365BF, #254B95); }
.appli.eclos .bouton:hover { background: #254B95; }

/* CULTIVA : violet nuit et arc-en-ciel */
.appli.cultiva { background: radial-gradient(circle at 85% 0%, rgba(255, 120, 200, .28), transparent 45%), #1F1236; color: #F6F1FF; }
.appli.cultiva::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, #FF5F6D, #FFB347, #FFE66D, #5CE1A5, #4FC3F7, #A78BFA, #F472B6);
}
.appli.cultiva .nom { font-family: "Bricolage Grotesque", var(--texte); font-weight: 800; }
.appli.cultiva .bouton { background: #fff; color: #1F1236; }
.appli.cultiva .bouton:hover { background: #F1E9FF; }

/* QG COPILOT : quadrillé blanc et rouge */
.appli.qg {
  background:
    radial-gradient(circle at 100% 100%, rgba(230, 57, 70, .18), transparent 46%),
    linear-gradient(#EEF0F4 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, #EEF0F4 1px, transparent 1px) 0 0 / 22px 22px,
    #fff;
  border-color: #E4E7EC; color: #14213D;
}
.appli.qg .nom { font-family: "Sora", var(--texte); font-weight: 700; letter-spacing: -.03em; }
.appli.qg .nom small { color: #C1121F; opacity: 1; }
.appli.qg .bouton { background: #E63946; }
.appli.qg .bouton:hover { background: #C1121F; }

/* --- l'équipe (Guamra) --------------------------------------------------------- */
.bloc { margin-top: 28px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-grand); padding: 22px 20px; }
.bloc > h2 + .aide { margin-top: 6px; }
.grille-form { display: grid; gap: 0 16px; }
@media (min-width: 760px) { .grille-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cases { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.cases label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; min-height: 36px; cursor: pointer; }
.cases input { width: 18px; height: 18px; accent-color: var(--accent-fonce); }
.personnes { display: grid; gap: 12px; margin-top: 16px; }
.personne { border: 1px solid var(--ligne); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.personne .tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.personne .qui { font-weight: 700; font-size: 17px; }
.personne .meta { font-size: 14px; color: var(--texte-3); }
.personne .ligne-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.personne select { min-height: 38px; padding: 4px 10px; border: 1.5px solid var(--ligne-forte); border-radius: var(--r-petit); background: #fff; font-size: 14px; }
.pastille { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #EDEFEA; color: var(--texte-2); }
.pastille.vert { background: var(--vert-doux); color: #1E6A41; }
.pastille.ambre { background: var(--soleil-doux); color: #7A4C00; }
.lien-a-copier { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.lien-a-copier > * { justify-self: stretch; }
.lien-a-copier > .bouton { justify-self: start; }
.lien-a-copier input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px dashed var(--accent); border-radius: var(--r-petit); background: var(--accent-doux); font-size: 14px; }

/* --- l'appli du groupe : la barre commune et la zone des applis (25/11/2026) ---- */
.coque-os { display: grid; grid-template-columns: 88px minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--fond); }
.rail {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: calc(12px + env(safe-area-inset-top)) 8px 12px;
  background: #fff; border-right: 1px solid var(--ligne); overflow-y: auto;
}
.rail-marque { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 13px; background: var(--encre); color: #fff; text-decoration: none; }
.rail-marque .z { font: 800 22px/1 var(--titre); }
.rail-lien {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px; border-radius: 14px; border: 0; background: none; cursor: pointer;
  color: var(--texte-2); text-decoration: none; font: 600 12px/1.1 var(--texte); text-align: center;
}
.rail-lien svg { width: 24px; height: 24px; }
.rail-lien:hover { background: #EEF1EC; color: var(--encre); }
.rail-lien[aria-current="page"] { background: var(--accent-doux); color: var(--accent-fonce); }
.rail-lien.app-qg[aria-current="page"] { background: #FDE8EA; color: #C1121F; }
.rail-lien.app-eclos[aria-current="page"] { background: #F7DDEB; color: #254B95; }
.rail-lien.app-cultiva[aria-current="page"] { background: #1F1236; color: #fff; }
.rail-lien.sans-acces { opacity: .45; }
.rail-trait { display: block; height: 1px; margin: 6px 10px; background: var(--ligne); }
.rail-pousse { flex: 1; }
.zone { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.zone > .bandeau-demo { margin: 10px 14px 0; }
.vue-page { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vue-page:focus { outline: none; }
.corps { position: relative; flex: 1; min-height: 0; }
.corps > .vue-page { position: absolute; inset: 0; z-index: 1; background: var(--fond); }
.corps > .vue-page[hidden] { display: none; }
.vue-applis { position: absolute; inset: 0; }
.vue-applis.cachee { visibility: hidden; pointer-events: none; }
.cadre-appli.cache { visibility: hidden; pointer-events: none; }
.vue-applis .chargement { position: absolute; inset: 0; display: grid; place-items: center; }
.cadre-appli { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

/* téléphone : la barre passe en bas */
@media (max-width: 760px) {
  .coque-os { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .rail {
    grid-row: 2; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--ligne); overflow: visible;
  }
  .rail-marque, .rail-trait, .rail-pousse { display: none; }
  .rail-lien { flex: 1; padding: 6px 2px; font-size: 11px; min-width: 0; }
  .rail-lien svg { width: 22px; height: 22px; }
  .zone { grid-row: 1; }
}

/* --- le Pilotage ------------------------------------------------------------------ */
.pilote-grille { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 1100px) { .pilote-grille { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; } }
.pilote-bloc { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-grand); padding: 20px; }
.pilote-bloc h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 22px; }
.pilote-bloc h2 small { font: 700 12px/1 var(--texte); letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }
.pilote-bloc h3 { margin-top: 16px; font: 700 14px/1.3 var(--texte); color: var(--texte-2); }
.pb-eclos { border-top: 5px solid #8C6CFF; }
.pb-cultiva { border-top: 5px solid #F472B6; }
.pb-qg { border-top: 5px solid #E63946; }
.pilote-personnes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.pilote-personne { border: 1px solid var(--ligne); border-radius: var(--r); padding: 12px 14px; }
.pp-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.pp-tete span { font-size: 13.5px; color: var(--texte-3); }
.pp-parcours { margin-top: 10px; }
.pp-ligne { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.barre { height: 8px; margin-top: 5px; border-radius: 99px; background: #EDEFEA; overflow: hidden; }
.barre i { display: block; width: var(--p); height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3365BF, #8C6CFF); }
.pp-suite { margin-top: 5px; font-size: 13.5px; color: var(--texte-2); }
.pp-suite.ok-fin { color: #1E6A41; font-weight: 600; }
.pp-certif { margin-top: 8px; font-size: 13px; font-weight: 600; color: #7A4C00; }
.pilote-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pilote-liste li { display: grid; gap: 2px; padding: 9px 12px; border-radius: var(--r-petit); background: #F7F8F5; font-size: 14.5px; }
.pilote-liste li.urgent { background: #FDE8EA; }
.pub-date, .t-qui, .pub-ou { font-size: 13px; color: var(--texte-3); }
.pub-quoi, .t-quoi { font-weight: 600; }
.lien-bouton { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent-fonce); }
