/*
 * Kœurflor — Charte : coquille des espaces de bureau (barre du haut, menu de gauche, contenu) et onglets
 * Auteur : Jacks Ngalangala
 */
/* --- Coquille bureau (modèle Kapela) : barre du haut sur toute la largeur, menu de gauche, contenu --- */
.coquille {
  --barre-haut: 72px;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: var(--barre-haut) 1fr;
  min-height: 100vh;
  background: var(--creme);
}
.coquille.replie {
  grid-template-columns: 92px 1fr;
}
.barre-haut {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--barre-haut);
  background: var(--surface);
  border-bottom: 1px solid var(--sable);
  padding: 0 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--sable);
  height: 40px;
}
.marque-nom {
  font: 800 20px var(--display);
  letter-spacing: -0.3px;
}
.contexte {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 12px;
  border: 1px solid var(--sable);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  color: var(--ink);
  font: inherit;
  max-width: 300px;
}
button.contexte {
  cursor: pointer;
}
button.contexte:hover {
  background: var(--surface-alt);
}
.contexte-textes {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contexte-sur {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 14px;
}
.contexte-nom {
  font: 800 16px var(--display);
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contexte-detail {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 16px;
}
.barre-haut .recherche {
  flex: 1 1 auto;
  max-width: 640px;
  position: relative;
  display: flex;
  align-items: center;
}
.barre-haut .recherche .saisie {
  padding-right: 72px;
}
.raccourci {
  position: absolute;
  right: 12px;
  font: 600 12px var(--sans);
  color: var(--ink-muted);
  border: 1px solid var(--sable);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--surface-alt);
}
.barre-vide {
  flex: 1 1 auto;
}
.compte {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tactile);
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.compte:hover {
  background: var(--surface-alt);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-strong);
  color: var(--on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.compte-texte {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.compte-nom {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}
.compte-role {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 16px;
}
/* Menu de gauche : rubriques en couleur, lien actif plein */
.lateral {
  background: var(--surface);
  border-right: 1px solid var(--sable);
  position: sticky;
  top: var(--barre-haut);
  height: calc(100vh - var(--barre-haut));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px 24px;
}
.nav-section {
  font-size: 12px;
  font-weight: 700;
  color: var(--petal-text);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 22px 16px 8px;
}
.nav-section:first-child {
  padding-top: 4px;
}
.nav-lien {
  min-height: 52px;
  border-radius: 10px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-texte {
  flex: 1;
  min-width: 0;
}
.nav-lien .icone {
  color: var(--ink-muted);
  flex-shrink: 0;
}
.nav-lien:hover {
  background: var(--surface-alt);
}
.nav-lien[aria-current='page'] {
  background: var(--brand-strong);
  color: var(--on-brand);
  font-weight: 600;
}
.nav-lien[aria-current='page'] .icone {
  color: var(--on-brand);
}
.nav-lien .compteur {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  justify-content: center;
}
/* Contenu : titre de page en grand, actions à droite */
.principal {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.page-tete {
  padding: 36px 48px 8px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.page-titres {
  min-width: 0;
  margin-right: auto;
}
.page-sur {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.page-tete h1 {
  font: 800 40px var(--display);
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.contenu {
  padding: 24px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.btn-menu {
  flex-shrink: 0;
}
@media (max-width: 1200px) {
  .compte-texte,
  .contexte-detail {
    display: none;
  }
}
@media (max-width: 960px) {
  .coquille,
  .coquille.replie {
    grid-template-columns: 1fr;
  }
  .lateral {
    position: fixed;
    inset: var(--barre-haut) auto 0 0;
    height: auto;
    width: 300px;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: var(--ombre);
    visibility: visible;
  }
  .lateral.ouvert {
    transform: none;
  }
  .marque-nom,
  .etiquette-marque,
  .contexte,
  .barre-haut .recherche {
    display: none;
  }
  .barre-vide {
    display: block;
  }
  .page-tete {
    padding: 20px 16px 4px;
    flex-wrap: wrap;
  }
  .page-tete h1 {
    font-size: 28px;
  }
  .contenu {
    padding: 16px;
  }
}
.voile {
  position: fixed;
  inset: var(--barre-haut) 0 0 0;
  background: rgba(11, 59, 48, 0.35);
  z-index: 25;
}

/* --- Onglets (puces) --- */
.onglets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.onglet {
  min-height: var(--tactile);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--sable);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: var(--ink);
}
.onglet[aria-selected='true'] {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
