/* index.css — Portail */

/* ── Setup screen ── */
.gc-setup-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff5f2 100%);
  padding: 24px;
}
.gc-setup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius3);
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.gc-setup-logo { margin-bottom: 8px; }
.gc-setup-tagline {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 32px;
  font-weight: 600;
}
.gc-setup-notice {
  background: var(--yellow-dim);
  border: 1.5px solid rgba(255,171,0,.35);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12px;
  color: #7a5500;
  margin-bottom: 20px;
}
.gc-setup-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.gc-form-group { display: flex; flex-direction: column; gap: 5px; }
.gc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C96AA' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.gc-btn-login {
  width: 100%;
  padding: 13px 20px;
  background: var(--gc-orange);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(255,79,31,.30);
  margin-bottom: 20px;
}
.gc-btn-login svg { width: 16px; height: 16px; }
.gc-btn-login:hover { background: var(--gc-orange-dark); box-shadow: 0 4px 14px rgba(255,79,31,.35); }
.gc-setup-hint {
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  line-height: 1.8;
}
.gc-setup-hint code { color: var(--gc-orange-dark); font-family: var(--mono); font-size: 10px; }

/* ── Header extras ── */
.gc-header-page-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ── Hero ── */
.portal-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 44px 32px 40px;
  position: relative;
  overflow: hidden;
}
.portal-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,79,31,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.portal-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.portal-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0,166,81,.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,166,81,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(0,166,81,.08); }
}
.portal-hero h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  color: var(--text);
}
.portal-hero p { font-size: 14px; color: var(--text2); }

/* ── Grid ── */
.portal-grid-section { padding: 32px; flex: 1; }
.portal-grid {
  display: grid;
  /* 4 cartes fixes sur une ligne — pas d'orpheline */
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1500px;
  align-content: start;
}
/* Ecrans moyens : 2 colonnes */
@media (max-width: 1400px) {
  .portal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile : 1 colonne */
@media (max-width: 640px) {
  .portal-grid { grid-template-columns: 1fr; }
}
/* Ultrawide */
@media (min-width: 2200px) {
  .portal-grid { max-width: 1800px; }
}
@media (min-width: 3000px) {
  .portal-grid { max-width: 2400px; }
}

/* ── Cards ── */
.portal-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gc-orange);
}
.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius2);
  display: flex; align-items: center; justify-content: center;
}
.portal-card-icon svg { width: 22px; height: 22px; }
.portal-card-icon--blue   { background: var(--blue-dim);          color: var(--blue); }
.portal-card-icon--orange { background: var(--gc-orange-dim2);    color: var(--gc-orange); }
.portal-card-icon--green  { background: var(--green-dim);         color: var(--green); }

.portal-card-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.portal-card-badge--active {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0,166,81,.2);
}
.portal-card-badge--soon {
  background: var(--yellow-dim);
  color: #7a5500;
  border: 1px solid rgba(255,171,0,.25);
}

.portal-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.portal-card p  { font-size: 13px; color: var(--text2); line-height: 1.65; flex: 1; }

.portal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.portal-card-arrow {
  width: 30px; height: 30px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
  transition: all .15s;
}
.portal-card:hover .portal-card-arrow {
  background: var(--gc-orange);
  border-color: var(--gc-orange);
  color: #fff;
}

/* ── Footer ── */
.portal-footer {
  border-top: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text3);
  background: var(--surface);
}
