:root {
  /* Spacing & Sizing */
  --gutter: 24px;
  --container-max: 1300px;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
}

/* Main Content */
main {
  padding: 120px 0 !important;
}

.container {
  width: min(1300px, 92%);

  margin: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-teal);
}

.breadcrumb .icon {
  color: var(--gray-500);
}

.breadcrumb span.text-primary {
  color: var(--gray-500);
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

.profil {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.bottom-col {
  grid-column: span 12;
  display: grid;

  grid-template-columns: 2fr 1fr;

  gap: 32px;
}

.sidebar-col {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Profile Header Card */
.card {
  border-radius: var(--radius-lg);
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5);
}

.profile-header {
  grid-column: span 12;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 35px;
}

.profile-image-container {
  width: clamp(140px, 25vw, 260px);

  aspect-ratio: 1;

  height: auto;

  flex-shrink: 0;

  border-radius: 50%;
  border: 4px solid var(--secondary-container);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.job-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--gray-700);
}

.badge.active {
  border-radius: 1rem;
  background: rgba(32, 201, 151, 0.3);
  color: #20c997;
  font-weight: 600;
}

.badge .icon {
  width: 18px;
  height: 18px;
}

.action-buttons {
  display: flex;
  gap: 16px;

  display: flex;

  gap: 16px;

  flex-wrap: wrap;

  margin-top: 32px;
}

.btn-sec,
.btn-call {
  flex: 1;

  min-width: 220px;

  justify-content: center;
}

.btn-sec {
  background-color: var(--brand-teal);
  color: white;
  padding: 10px 34px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-call {
  background-color: var(--brand-orange);
  color: white;
  padding: 10px 34px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stats Grid */
.stats {
  grid-column: span 12;
}

.stat-card {
  text-align: center;
  padding: 8px;
}

.stats-grid {
  display: grid;

  gap: 24px;
}

.stat-label {
  font-size: 12px;
  color: var(--brand-teal);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

/* Tabs */
.tabs-container {
  grid-column: span 1;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 400;
  color: var(--on-surface-variant);
  background: none;
  white-space: nowrap;
}

.tab-btn.active {
  border-bottom: 2px solid var(--brand-teal);
  font-weight: 700;
}

.tabs-content {
  padding: 32px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.about-text {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* Sidebar Elements */
.sidebar-section {
  padding: 32px;
}

.sidebar-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.sidebar-header {
  border-bottom: 1px solid var(--gray-300);
}

.tag-section {
  grid-column: span 1;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  padding-left: 40px;
}

.tag-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(0, 168, 168, 0.3);
  color: var(--brand-teal);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--outline-variant);
  flex-wrap: wrap;
}

.link-item:hover {
  background-color: var(--surface-container);
}

.link-item .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.link-item .label {
  flex: 1;
  font-weight: 600;
  color: var(--brand-teal);
}

.link-item .ext {
  font-size: 20px;
  color: var(--outline-variant);
}

.cta-card {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-card p {
  margin-bottom: 24px;
  opacity: 0.9;
}

.btn-cta-white {
  width: 100%;
  background-color: var(--on-primary-container);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   TABLETTE (<= 992px)
=========================== */

/* TABLETTE */

@media (max-width: 992px) {
  .profile-header{
        grid-template-columns:1fr;
        justify-items:center;
        text-align:center;
    }

  .profil{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

  .tag-section {
    border: none;

    padding: 0;

    margin-top: 30px;
  }

  .bottom-col {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   MOBILE (<=768px)
=========================== */

/* MOBILE */

@media (max-width: 768px) {
  .profile-info h1 {
    font-size: 2rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-sec,
  .btn-call {
    width: 100%;
  }

}

/* ===========================
   PETITS MOBILES
=========================== */

@media (max-width: 480px) {
  .profile-header {
    padding: 16px;
  }

  .profile-image-container {
    width: 140px;
    height: 140px;
  }

  .profile-info h1 {
    font-size: 24px;
  }

  .job-title {
    font-size: 14px;
  }

  .badge {
    font-size: 11px;
  }

  .tab-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .about-text {
    font-size: 15px;
  }
}
