/* ============================================================
   ALNAFT PORTAL — design-light.css  (Light Mode)
   ============================================================ */

/* ── Variables Light ────────────────────────────────────────── */
:root {
  --bg-page:       #f0ede6;
  --bg-card:       linear-gradient(to right,#f0dfb2, #fceabb);
  --bg-header:     #ffffff;
  --gold:          #c8920a;
  --gold-light:    #f3c035;
  --gold-dim:      rgba(200, 146, 10, 0.10);
  --gold-border:   rgba(200, 146, 10, 0.30);
  --text-bright:   #1a1714;
  --text-muted:    #2b2a27;
  --text-sub:      #a09d97;
  --border:        rgba(7, 6, 6, 0.08);
  --border-card:   #000000;
  --shadow-card:   0 2px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-hover:  0 8px 32px rgba(0,0,0,0.13);
  --radius-lg:     18px;
  --radius-pill:   50px;
  --transition:    0.2s ease;

}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Portal shell ──────────────────────────────────────────── */
.portal {
  font-family: "Clan Pro", sans-serif;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}
.portal::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('./images/Fond1.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;

  z-index: -1;
  pointer-events: none;
}
/* @font-face {
    font-family: 'Amelia';
    src: url('font/Amelia/Amelia.woff2') format('woff2'),
        url('font/Amelia/Amelia.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
} */
@font-face {
  font-family: "Clan Pro";
  src: url("./font/clan-pro/FFClanProRegular.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clan Pro";
  src: url("./font/clan-pro/FFClanProBold.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.hdr {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.hdr-logo { display: flex; align-items: center; gap: 12px; }

.logo-sq {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-sq img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}


/* Right */
.hdr-right { display: flex; align-items: center; gap: 12px; }

/* Theme toggle button */
.btn-theme {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background var(--transition), transform var(--transition);
  color: var(--text-muted);
}
.btn-theme:hover { background: var(--gold-dim); transform: rotate(20deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-out {
  background: var(--gold);
  color: var(--bg-page);
  box-shadow: 0 4px 14px rgba(240, 201, 94, 0.3);
}
.btn-out:hover { background: #fdd055; opacity: 1; }


.btn-launch {
  background: linear-gradient(135deg, #0070d6, #00a8c6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,112,214,0.25);
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */
.layout { display: flex; flex: 1; min-height: 0; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-section {
  padding: 0 1rem .5rem;
  font-size: 10px; font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 1rem;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 1rem;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background var(--transition), color var(--transition);
}
.nav-item:hover { background: var(--gold-dim); color: var(--text-bright); }
.nav-item.active { background: var(--gold-dim); color: var(--gold); font-weight: 600; border-left-color: var(--gold); }
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 10px; padding: 2px 7px;
  border-radius: 10px; font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   MAIN
══════════════════════════════════════════════════════════════ */
.main {
  flex: 1; padding: clamp(1rem, 2.5vh, 2.5rem) clamp(1rem, 2.5vw, 2.5rem);
  overflow: hidden; min-width: 0;
  display: flex; flex-direction: column; z-index: 0;
  position: relative;
}


/* Page head */
.page-head { margin-bottom: clamp(0.75rem, 2vh, 2rem); }
.page-title { font-size: clamp(18px, 3vh, 30px); font-weight: 700; color: var(--text-bright); }
.page-sub { font-size: clamp(13px, 2vh, 20px); color: var(--text-muted); margin-top: 5px; }
.page-head::after {
  content: "";
  display: block; width: 48px; height: 2px;
  background: var(--gold-light);
  margin-top: 12px; border-radius: 2px;
}

/* Section header */
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.section-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase; letter-spacing: .08em;
}

/* ── View toggle ─────────────────────────────────────────────── */
.view-toggle { display: flex; gap: 6px; }
.vbtn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  transition: all var(--transition);
}
.vbtn.on { background: var(--text-bright); color: #fff; border-color: var(--text-bright); }

/* ══════════════════════════════════════════════════════════════
   APPS GRID — List view (default)
══════════════════════════════════════════════════════════════ */

/* Grid view (toggled) */

.apps-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  gap: clamp(8px, 1.5vh, 16px);
}
.app-card {
  position: relative;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--text-sub);
  border-radius: var(--radius-lg);
  padding: clamp(0.6rem, 1.2vh, 1rem);
  width: 50%;
  max-width: 100%;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.4s ease both;
} 
.app-card:nth-child(2) { animation-delay: 0.07s; }
.app-card:nth-child(3) { animation-delay: 0.14s; }
.app-card:nth-child(4) { animation-delay: 0.21s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Card top */
.app-card-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: clamp(6px, 1vh, 10px);
}

/* Icon */
.app-icon-wrap {
  width: clamp(34px, 5vh, 44px);
  height: clamp(34px, 5vh, 44px);
  background: #f0ede6 !important;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-icon-wrap.rdp { background: #e8f1fb !important; }
.app-icon-wrap.web { background: #e6f5ef !important; }
.app-icon-img { width: 65%; height: 65%; object-fit: contain; }

/* Card info */
.app-card-info { display: flex; flex-direction: column; flex-grow: 1; }
.app-name { font-size: clamp(14px, 2vh, 20px); font-weight: 700; color: var(--text-bright); line-height: 1.2; }
.app-desc { font-size: clamp(11px, 1.5vh, 15px); color: var(--text-muted); margin-top: 4px; }


@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Badge */
.app-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.app-tag.rdp { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }
.app-tag.web { background: rgba(15,110,86,0.08); color: #0F6E56; border: 1px solid rgba(15,110,86,0.2); }

/* Card footer */
.app-footer {
  display: flex; 
  align-items: center; 
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: clamp(6px, 1vh, 10px);
}
/*.app-meta { font-size: 13px; 
  color: var(--text-sub); 
  font-family: 'IBM Plex Mono', monospace; }*/

/* ── No result ──────────────────────────────────────────────── */
#noResult {
  text-align: center; padding: 3rem;
  color: var(--text-muted); font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
/*-----------------MAIN FOOTER --------------*/
.main-footer {
  margin-top: auto; 
  padding: clamp(0.25rem, 0.5vh, 0.5rem) 0; 
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end; 
}
.footer-icon {
  width: clamp(30px, 5vh, 50px);
  height: clamp(30px, 5vh, 50px);
  object-fit: contain;
  display: block;
}
.footer-link {
  display: inline-flex; /* Permet de garder le bloc compact */
  flex-direction: column; /* Aligne le texte au-dessus de l'image */
  gap: 2px; /* Espace entre le texte et l'image */
  align-items: center;
  text-decoration: none;
  color: var(--gold-light);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--text-muted);        /* Couleur au survol */
}

.footer-icon {
  color: var(--gold-light);        /* Couleur de l'icône (bleu par exemple) */
}

/* ══════════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════════ */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 1.8rem; }
.stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem;
  box-shadow: var(--shadow-card);
}
.stat-label { font-size: 10px; color: var(--text-sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing:.04em; font-weight: 600; }
.stat-val { font-size: 22px; font-weight: 700; color: var(--text-bright); }
.stat-sub { font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.stat-val.green { color: #0F6E56; }
.stat-val.blue  { color: #185FA5; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.ftr {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}
.ftr-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Desktop bar */
.ftr-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.ftr-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ftr-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}
.ftr-brand-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.ftr-sep {
  color: var(--border);
  font-size: 14px;
  margin: 0 2px;
}
.ftr-tagline {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.ftr-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}
.ftr-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ftr-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.ftr-link:hover {
  color: var(--gold);
}
.ftr-link-gold {
  color: var(--gold);
}
.ftr-link-gold:hover {
  color: #b07d08;
}
.ftr-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.ftr-socials {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.ftr-social-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition);
}
.ftr-social-btn svg {
  width: 12px;
  height: 12px;
}
.ftr-social-btn:hover {
  background: var(--gold);
  color: #fff;
}

.ftr-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-sub);
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile footer */
.ftr-mobile {
  display: none;
}

.ftr-mobile-section {
  margin-bottom: 1rem;
}
.ftr-mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ftr-mobile-tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 280px;
}

.ftr-mobile-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.ftr-mobile-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.ftr-mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ftr-mobile-bottom {
  border-top: 1px solid var(--border);
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ftr-mobile-bottom-row {
  display: flex;
  gap: 8px;
}
/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .sidebar { display: none; }
  .hdr-center { display: none; }
  .main { padding: clamp(0.75rem, 1.5vh, 1.5rem) clamp(0.75rem, 1.5vw, 1rem); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .app-card { width: 100%; }
}

/* ── Global scroll lock ─────────────────────────────────────── */
html, body {
  height: 100%;
  overflow: hidden;
}
