/* ============================================
   HERO SECTION
============================================ */
.hero-contact {
  background: url('../images/development/Los-Santos.png') center/cover no-repeat;
  color: white;
  padding: 80px 0 60px;
  position: relative;
  z-index: 0;
  text-align: center;
}

.hero-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.hero-contact h1,
.hero-contact p {
  position: relative;
  z-index: 1;
}

.hero-contact h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-contact p {
  font-size: 20px;
  opacity: 0.9;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  margin-top: 0;
}

/* ============================================
   PROFILE CARD
============================================ */
.profile-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: stretch;
}

.profile-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 32px 24px;
  text-align: center;
  color: white;
}

.profile-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-title {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.5;
}

.profile-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;                    
}

.profile-bio-wrapper {
  flex: 1;
  display: flex;
  align-items: center;         
  justify-content: center;     
}

.profile-bio-section {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;                   
}

.profile-bio p {
  margin: 0;
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-light);
}

/* ============================================
   SCHEDULE SECTION
============================================ */
.schedule-section {
  border-top: 2px solid var(--color-border);
  padding-top: 24px;
}

.schedule-header {
  text-align: center;
  margin-bottom: 20px;
}

.schedule-header h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.schedule-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-light);
  padding: 4px;
  border-radius: 50px;
  gap: 4px;
}

.toggle-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.toggle-btn.active {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.toggle-btn:hover:not(.active) {
  color: var(--color-text);
}

.schedule-table {
  display: none;
  margin-top: 16px;
}

.schedule-table.active {
  display: block;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.schedule-table th,
.schedule-table td {
  padding: 10px 6px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.schedule-table th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.schedule-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.schedule-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.schedule-table .available {
  background: #d1fae5;
  transition: var(--transition);
}

.schedule-table .available:hover {
  background: #a7f3d0;
}

.schedule-table .unavailable {
  background: #fee2e2;
  transition: var(--transition);
}

.schedule-table .unavailable:hover {
  background: #fecaca;
}

.schedule-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.legend-color.available {
  background: #d1fae5;
}

.legend-color.unavailable {
  background: #fee2e2;
}

/* ============================================
   FORM CARD
============================================ */
.form-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 200px;
}

.form-header {
  margin-bottom: 0;
  text-align: center;
}

.form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-header p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============================================
   SOCIAL LINKS + SÉPARATEUR
============================================ */
.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-link.discord:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.05);
}

.social-link.instagram:hover {
  border-color: #E1306C;
  background: rgba(225, 48, 108, 0.05);
}

.social-link.tiktok:hover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.03);
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link.discord .social-icon {
  background: #5865f2;
  color: white;
}

.social-link.instagram .social-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-link.tiktok .social-icon {
  background: #000;
  color: white;
}

.social-link:hover .social-icon {
  transform: scale(1.08);
}

.social-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Séparateur "ou" */
.contact-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 24px;
}

.separator-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.separator-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 12px;
}

/* Sous-titre formulaire */
.form-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  text-align: center;
}

.form-subtitle-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 20px;
}

/* ============================================
   CONTACT FORM
============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  padding: 11px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ============================================
   CHECKBOX DROPDOWN
============================================ */
.checkbox-dropdown {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  transition: var(--transition);
}

.checkbox-dropdown:hover {
  border-color: var(--color-primary);
}

.checkbox-header {
  padding: 11px 14px;
  background: var(--color-bg-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: var(--transition);
}

.checkbox-header:hover {
  background: rgba(37, 99, 235, 0.05);
}

.dropdown-icon {
  transition: transform 0.3s ease;
}

.checkbox-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.checkbox-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.checkbox-dropdown.open .checkbox-content {
  max-height: 280px;
  border-top: 1px solid var(--color-border);
}

.checkbox-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.checkbox-item:hover {
  background: var(--color-bg-light);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.checkbox-item span {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================
   SUBMIT BUTTON
============================================ */
.btn-submit {
  width: 100%;
  margin-top: auto;
  font-size: 1rem;
  padding: 14px 28px;
}

/* ============================================
   RESPONSIVE
============================================ */

/* TABLETTE (~640–1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-contact {
    padding: 100px 0 70px;
  }

  .hero-contact h1 {
    font-size: 3.2rem;
  }

  .hero-contact p {
    font-size: 1.35rem;
  }

  .contact-grid {
    flex-direction: column;
    gap: 40px;
  }

  .profile-card {
    position: static;
    flex: none;
  }

  .profile-avatar {
    width: 180px;
    height: 180px;
  }

  .profile-name {
    font-size: 1.8rem;
  }

  .profile-bio p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .schedule-table table {
    font-size: 0.9rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 12px 8px;
  }

  .toggle-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .form-card {
    padding: 40px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .form-textarea {
    min-height: 280px;
  }

  .btn-submit {
    padding: 16px 32px;
    font-size: 1.1rem;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE (< 640px) */
@media (max-width: 639px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-contact {
    padding: 70px 0 50px;
    background-position: center 35%;
  }

  .hero-contact h1 {
    font-size: 2.4rem;
    line-height: 1.15;
  }

  .hero-contact p {
    font-size: 1.15rem;
    margin-top: 12px;
  }

  .contact-section {
    padding: 50px 0 70px;
  }

  .profile-card {
    position: static;
  }

  .profile-header {
    padding: 32px 20px;
  }

  .profile-avatar {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .profile-title {
    font-size: 0.95rem;
  }

  .profile-body {
    padding: 24px 20px;
  }

  .profile-bio p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .schedule-section {
    margin-top: 32px;
  }

  .schedule-header h3 {
    font-size: 1.2rem;
  }

  .toggle-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .schedule-table table {
    font-size: 0.78rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px 5px;
  }

  .schedule-legend {
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
  }

  .form-card {
    padding: 28px 20px;
  }

  .form-header h2 {
    font-size: 1.6rem;
  }

  .form-header p {
    font-size: 0.95rem;
  }

  .social-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .social-link {
    padding: 16px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }

  .social-text {
    font-size: 1rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .form-textarea {
    min-height: 220px;
    font-size: 1rem;
  }

  .checkbox-item {
    padding: 10px;
  }

  .checkbox-item span {
    font-size: 1rem;
  }

  .btn-submit {
    padding: 16px;
    font-size: 1.1rem;
    min-height: 54px;
  }
}

/* Très petits écrans (< 380px) */
@media (max-width: 380px) {
  .hero-contact h1 {
    font-size: 2.1rem;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .form-card {
    padding: 24px 16px;
  }
}