/* ==========================================================
   FAQ PAGE - Le P'tit Ch'nit
   Fichier dédié : assets/css/faq.css
   Aligné avec index.html + main-v30.css
========================================================== */

/* ----------------------------------------------------------
   Page FAQ : mêmes variables, fond et typographies que le site
---------------------------------------------------------- */
.faq-page {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

.faq-page .main {
  background-color: var(--background-color);
}

/* ----------------------------------------------------------
   Section FAQ : utilise la logique globale section / section-title
---------------------------------------------------------- */
.faq {
  background-color: var(--background-color);
  color: var(--default-color);
  padding-top: 40px;
}

.faq .section-title {
  padding-bottom: 18px;
}

.faq .section-title h1 {
  margin: 0 0 5px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: clamp(36px, 7vw, 48px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.faq .section-title p {
  margin: 0;
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
}

.faq-intro {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.faq-intro p {
  margin: 0;
  color: #efd5e9;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-side-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
}

/* ----------------------------------------------------------
   Layout
---------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: 24px;
  align-items: start;
}

.faq-content {
  min-width: 0;
}

/* ----------------------------------------------------------
   Colonne gauche : carte + bouton de réservation
---------------------------------------------------------- */
.faq-side-column {
  position: sticky;
  top: 130px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ----------------------------------------------------------
   Carte Infos pratiques
---------------------------------------------------------- */
.faq-side-card {
  position: relative;
  min-height: 500px;
  padding: 26px;
  border: 1px solid rgba(239, 213, 233, 0.22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-color), transparent 8%);
  color: #ffffff;
  overflow: hidden;
}

.faq-side-card::after {
  display: none;
}

.faq-side-card h2 {
  margin: 0 0 10px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.faq-side-card .side-subtitle {
  margin: 0 0 18px;
  color: #e31c79;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.faq-side-card .side-text {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

/* ----------------------------------------------------------
   Informations pratiques en bas de la carte
---------------------------------------------------------- */


.faq-side-meta p {
  margin: 0;
}

.faq-side-meta strong {
  display: block;
  color: #e31c79;
  font-weight: 800;
}

.faq-side-meta span {
  display: block;
  color: #ffffff;
}

/* ----------------------------------------------------------
   Bouton de réservation sous la carte
---------------------------------------------------------- */
.side-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 2px solid #e31c79;
  border-radius: 5px;
  background: #e31c79;
  color: #ffffff;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.side-button:hover {
  background: #efd5e9;
  color: #e31c79;
  transform: translateY(-2px);
}

.side-button i {
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   Grille FAQ
---------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.faq-card {
  position: relative;
  min-height: 165px;
  padding: 20px;
  border: 1px solid rgba(239, 213, 233, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

.faq-card:hover,
.faq-card:focus-visible {
  transform: translateY(-4px);
  border-color: #e31c79;
  outline: none;
  background: color-mix(in srgb, var(--surface-color), transparent 2%);
}

.faq-card.is-open {
  grid-column: 1 / -1;
  min-height: auto;
  cursor: pointer;
  border-color: #e31c79;
  background:
    linear-gradient(90deg, rgba(227, 28, 121, 0.16), transparent 45%),
    color-mix(in srgb, var(--surface-color), transparent 4%);
  transform: none;
}

.faq-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}

.faq-icon {
  color: #e31c79;
  font-size: 30px;
  line-height: 1;
}

.faq-number {
  display: block;
  margin-bottom: 8px;
  color: #e31c79;
  font-family: var(--heading-font);
  font-size: 28px;
  line-height: 1;
}

.faq-question {
  margin: 0;
  color: #ffffff;
  font-family: var(--default-font);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.faq-toggle {
  color: #e31c79;
  font-size: 30px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-card.is-open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  margin: 20px 0 0 58px;
  padding: 18px 22px;
  border-left: 4px solid #e31c79;
  border-radius: 0 8px 8px 0;
  background: rgba(42, 59, 25, 0.72);
  color: #ffffff;
  font-size: 17px;
  line-height: 1.45;
}

.faq-card.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #efd5e9;
  font-weight: 800;
}

.faq-close-text {
  display: inline-block;
  margin-top: 10px;
  color: #efd5e9;
  font-weight: 800;
}

/* ----------------------------------------------------------
   Bandeau bas
---------------------------------------------------------- */
.faq-bottom-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid #e31c79;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.faq-bottom-note .note-icon {
  color: #e31c79;
  font-size: 32px;
}

.faq-bottom-note p {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.3;
}

.faq-bottom-note strong {
  display: block;
  color: #e31c79;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
}

.faq-bottom-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 2px solid #e31c79;
  border-radius: 5px;
  background: #e31c79;
  color: #ffffff;
  font-family: var(--nav-font);
  font-weight: 700;
  white-space: nowrap;
  transition: 0.3s;
}

.faq-bottom-note a:hover {
  background: #efd5e9;
  color: #e31c79;
}

/* ----------------------------------------------------------
   Responsive : tablette large
---------------------------------------------------------- */
@media (max-width: 1199px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-side-column {
    position: relative;
    top: auto;
  }

  .faq-side-card {
    min-height: auto;
  }

  .faq-side-meta {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 24px;
  }
}

/* ----------------------------------------------------------
   Responsive : tablette
---------------------------------------------------------- */
@media (max-width: 991px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------------------------
   Responsive : mobile
---------------------------------------------------------- */
@media (max-width: 767px) {
  .faq {
    padding-top: 30px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-card,
  .faq-card.is-open {
    min-height: auto;
    grid-column: auto;
  }

  .faq-card-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .faq-icon {
    font-size: 26px;
  }

  .faq-number {
    font-size: 25px;
  }

  .faq-question {
    font-size: 17px;
  }

  .faq-answer {
    margin-left: 0;
    padding: 15px 16px;
    font-size: 16px;
  }

  .side-button {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-bottom-note {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .faq-bottom-note a {
    width: 100%;
  }
}