/* ====================================================
   aide.css — Centre d'Aide · Streamer DPS
   Depends on: root.css
   ==================================================== */

/* ── Layout ── */
#main {
  padding-top: 76px;
  background-color: var(--bg-color);
  min-height: 100vh;
}

.aide-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Hero Banner ── */
.aide-hero {
  background: linear-gradient(135deg, var(--royal-orchid) 0%, var(--indigo-bloom) 100%);
  padding: 5rem 1.25rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    rgba(255, 255, 255, 0.03) 14px,
    rgba(255, 255, 255, 0.03) 28px
  );
  pointer-events: none;
}

.aide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(173, 0, 84, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.aide-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.aide-hero h1 {
  font-family: "T-Black", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.aide-hero p {
  color: rgba(251, 251, 251, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Search bar */
.aide-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  gap: 0.5rem;
}

.aide-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--gunmetal);
  font-family: "Text", sans-serif;
}

.aide-search input::placeholder {
  color: #aaa;
}

.aide-search button {
  background: var(--royal-orchid);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.aide-search button:hover {
  background: var(--indigo-bloom);
}

/* Quick stats strip */
.aide-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1.8rem 1rem;
  background: rgba(146, 0, 172, 0.06);
  border-bottom: 1px solid rgba(146, 0, 172, 0.1);
}

.aide-stat {
  text-align: center;
}

.aide-stat strong {
  display: block;
  font-family: "T-Bold", sans-serif;
  font-size: 1.6rem;
  color: var(--royal-orchid);
}

.aide-stat span {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ── Section Titles ── */
.aide-section {
  padding: 4rem 1.25rem;
}

.aide-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.aide-section-title h2 {
  font-family: "T-Bold", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gunmetal);
  margin-bottom: 0.5rem;
}

.aide-section-title p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.aide-badge {
  display: inline-block;
  background: var(--indigo-bloom);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ── Quick-Links Cards ── */
.aide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.aide-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  border: 1px solid rgba(146, 0, 172, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(146, 0, 172, 0.2);
}

.aide-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-orchid);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.aide-card h3 {
  font-family: "T-Bold", sans-serif;
  font-size: 1.1rem;
  color: var(--gunmetal);
  margin: 0;
}

.aide-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

.aide-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--royal-orchid);
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: 2px solid var(--royal-orchid);
  border-radius: var(--border-r);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: fit-content;
}

.aide-card-btn:hover {
  background: var(--royal-orchid);
  color: var(--white);
}

/* ── Tutorials ── */
.aide-section.alt {
  background: var(--second-color);
}

.aide-tutorials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.aide-tutorial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(146, 0, 172, 0.07);
  width: 300px;
}

.aide-tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.aide-tutorial-thumb {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, var(--royal-orchid), var(--indigo-bloom));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.aide-tutorial-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.aide-tutorial-thumb .platform-svg {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.tuto-modal-thumb {
  height: 200px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.tuto-modal-thumb .platform-svg {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.aide-tutorial-body {
  padding: 1.25rem;
}

.aide-tutorial-body h3 {
  font-family: "T-Bold", sans-serif;
  color: var(--gunmetal);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.aide-tutorial-body p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ── FAQ ── */
.aide-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(146, 0, 172, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(146, 0, 172, 0.25);
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: "T-Bold", sans-serif;
  color: var(--gunmetal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-toggle:hover {
  background: var(--second-color);
}

.faq-toggle .faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--royal-orchid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  transition: transform 0.3s, background 0.3s;
}

.faq-item.open .faq-toggle .faq-chevron {
  transform: rotate(180deg);
  background: var(--royal-orchid);
  color: var(--white);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.7;
}

.faq-item.open .faq-content {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

.faq-content a {
  color: var(--royal-orchid);
  font-weight: 600;
  text-decoration: none;
}

.faq-content a:hover {
  text-decoration: underline;
}

/* ── Contact Section ── */
.aide-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: stretch;
}

.aide-contact-info {
  background: var(--cherry-rose);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  color: var(--white);
}

.aide-contact-info h3 {
  font-family: "T-Bold", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.aide-contact-info > p {
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.aide-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.aide-contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.aide-contact-item h4 {
  font-size: 0.82rem;
  opacity: 0.75;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.aide-contact-item a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.aide-contact-item a:hover {
  opacity: 0.75;
}

.aide-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.aide-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.aide-social-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Contact Form */
.aide-contact-form {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(146, 0, 172, 0.07);
}

.aide-contact-form h3 {
  font-family: "T-Bold", sans-serif;
  font-size: 1.4rem;
  color: var(--gunmetal);
  margin-bottom: 1.75rem;
}

.aide-form-group {
  margin-bottom: 1.25rem;
}

.aide-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.aide-input-wrap .fi,
.aide-input-wrap i {
  position: absolute;
  left: 1rem;
  color: var(--royal-orchid);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
}

.aide-input-wrap--top {
  align-items: flex-start;
}

.aide-input-wrap--top i {
  top: 0.9rem;
}

.aide-textarea {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1.5px solid rgba(146, 0, 172, 0.15);
  border-radius: var(--border-r);
  font-size: 0.97rem;
  color: var(--gunmetal);
  background: var(--bg-color);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.aide-input-wrap input,
.aide-input-wrap textarea {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1.5px solid rgba(146, 0, 172, 0.15);
  border-radius: var(--border-r);
  font-size: 0.97rem;
  font-family: "Text", sans-serif;
  color: var(--gunmetal);
  background: var(--bg-color);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.aide-input-wrap input:focus,
.aide-input-wrap textarea:focus {
  border-color: var(--royal-orchid);
  box-shadow: 0 0 0 3px rgba(146, 0, 172, 0.1);
  background: var(--white);
}

.aide-input-wrap textarea {
  resize: vertical;
  min-height: 130px;
  padding-top: 0.8rem;
}

.aide-submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--cherry-rose);
  color: var(--white);
  border: none;
  border-radius: var(--border-r);
  font-family: "T-Bold", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.3s, transform 0.2s;
}

.aide-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ── Overlay Modals ── */
.aide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.aide-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.aide-overlay-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  --scrollbar-width: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.aide-overlay.active .aide-overlay-box {
  transform: translateY(0);
}

.aide-overlay-header {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid rgba(146, 0, 172, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.aide-overlay-title {
  font-family: "T-Bold", sans-serif;
  font-size: 1.25rem;
  color: var(--royal-orchid);
}

.aide-overlay-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--primary-light);
  color: var(--royal-orchid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.aide-overlay-close:hover {
  background: var(--royal-orchid);
  color: var(--white);
}

.aide-overlay-body {
  padding: 1.75rem 2rem 2rem;
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.8;
}

.aide-overlay-body p {
  margin-bottom: 1rem;
}

.aide-overlay-body strong {
  color: var(--gunmetal);
}

.aide-overlay-body a {
  color: var(--royal-orchid);
  font-weight: 600;
  text-decoration: none;
}

.aide-overlay-body a:hover {
  text-decoration: underline;
}

.aide-overlay-meta {
  font-size: 0.82rem;
  color: #aaa;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.aide-footer {
  background: linear-gradient(135deg, var(--indigo-bloom) 0%, var(--royal-orchid) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 1.5rem;
}

.aide-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.aide-footer-brand p {
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.75rem 0 1.25rem;
  max-width: 300px;
}

.aide-footer-logo {
  height: 2.5rem;
  width: auto;
}

.aide-footer h4 {
  font-family: "T-Bold", sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.aide-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aide-footer ul a {
  color: rgba(251, 251, 251, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.aide-footer ul a:hover {
  color: var(--white);
}

.aide-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.aide-footer-bottom a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

/* ── Utilities ── */
.fi-icon {
  display: flex;
  align-items: center;
}

.aide-search-icon {
  color: var(--royal-orchid);
  display: flex;
  align-items: center;
}

.faq-chevron i {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
}

.faq-text-link {
  color: var(--royal-orchid);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.aide-submit-btn i {
  display: flex;
  align-items: center;
}

.aide-overlay-close i {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.tuto-iframe-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tuto-iframe-wrap iframe {
  width: 100%;
  height: 360px;
  display: block;
}

.thumb-crunchyroll {
  background: linear-gradient(135deg, #f36225, #d14e10);
}

.thumb-spotify {
  background: linear-gradient(135deg, #1ed760, #17a349);
}

.thumb-mycanal {
  background: linear-gradient(135deg, #0a457a, #1080d4);
}

.thumb-microsoft {
  background: linear-gradient(135deg, #0072c6, #004e99);
}

.tuto-modal-thumb--crunchyroll {
  background: linear-gradient(135deg, #f36225, #d14e10);
}

.tuto-modal-thumb--spotify {
  background: linear-gradient(135deg, #1ed760, #17a349);
}

.tuto-modal-thumb--mycanal {
  background: linear-gradient(135deg, #0a457a, #1080d4);
}

.tuto-modal-thumb--microsoft {
  background: linear-gradient(135deg, #0072c6, #004e99);
}

.sidebar-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.footer-overlay-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .aide-hero {
    padding: 4rem 1rem 5rem;
  }

  .aide-stats {
    gap: 1.5rem;
  }

  .aide-cards {
    grid-template-columns: 1fr;
  }

  .aide-tutorials {
    grid-template-columns: 1fr 1fr;
  }

  .aide-contact-grid {
    grid-template-columns: 1fr;
  }

  .aide-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aide-footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .aide-stats {
    gap: 1.25rem;
  }

  .aide-stat strong {
    font-size: 1.3rem;
  }

  .aide-tutorials {
    grid-template-columns: 1fr;
  }

  .aide-footer-grid {
    grid-template-columns: 1fr;
  }

  .aide-footer-brand {
    grid-column: span 1;
  }

  .aide-overlay-body,
  .aide-overlay-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .aide-search {
    flex-direction: column;
    border-radius: 14px;
    padding: 1rem;
  }

  .aide-search input {
    width: 100%;
  }

  .aide-search button {
    width: 100%;
    justify-content: center;
  }
}
