/* Page Contact – reproduction du modèle (partie centrale uniquement) */

.contact-page {
  font-family: 'Inter', Arial, sans-serif;
}

/* Même largeur que les autres pages (mentions légales, etc.) */
.contact-page .main-container,
.contact-page .category-content-block.contact-block {
  width: 100%;
  max-width: 1200px;
}

.contact-page .category-content-block.contact-block {
  padding: 2.15rem 2.4rem 2.35rem;
  overflow: visible;
  background: #fff;
  border: none;
  border-radius: 24px;
  box-shadow: 0 0 40px #0002;
  margin-bottom: 0;
}

/* Pas de liseré orange au-dessus du footer sur cette page */
.contact-page .footer-wrapper footer {
  box-shadow: none;
}

.contact-body {
  padding: 0;
}

/* ── En-tête ──────────────────────────────────────────────────────────── */
.contact-page h1.contact-hero__title {
  margin: 0 0 0.45rem;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 2.55rem;
  font-weight: 800;
  color: #000;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: left;
  text-shadow: none;
  -webkit-text-fill-color: #000;
  background: none;
  filter: none;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 0.5rem 1.25rem;
  align-items: start;
  margin: 0 0 1.15rem;
  padding: 0;
  background: none;
  border: none;
}

.contact-hero__lead {
  margin: 0 0 0.7rem;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--mauve);
  line-height: 1.3;
}

.contact-intro p {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.55;
  color: #222;
  max-width: none;
}

.contact-intro p + p {
  margin-top: 0.15rem;
}

.contact-hero__mascot {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 0;
  padding: 0;
  margin-top: -0.35rem;
}

.contact-hero__drako {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* ── Cartes (icône à gauche, texte à droite) ──────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 0.85rem;
}

.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0.7rem;
  padding: 0.85rem 0.85rem 0.85rem 0.75rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 92px;
  box-shadow: none;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.contact-card--game {
  background: #f1e9ff;
}

.contact-card--partner {
  background: #fff4e3;
}

.contact-card--media {
  background: #e8f2ff;
}

.contact-card--question {
  background: #f3e9ff;
}

.contact-card:hover,
.contact-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 47, 196, 0.12);
  filter: brightness(0.99);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.contact-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a2eb0;
  line-height: 1.2;
}

.contact-card__desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6b6b6b;
  font-weight: 400;
}

/* ── Encart conseils (titre à gauche, liste à droite) ─────────────────── */
.contact-tips {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.18fr;
  gap: 0.75rem 1.1rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.35rem;
  background: #eaf4ff;
  border: none;
  border-radius: 16px;
}

.contact-tips__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-tips__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-page h2.contact-tips__title {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.3;
}

.contact-tips__list {
  margin: 0;
  padding-left: 1.05rem;
  color: #374151;
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-tips__list li {
  margin: 0 0 0.22rem;
}

.contact-tips__list li:last-child {
  margin-bottom: 0;
}

/* ── Formulaire ───────────────────────────────────────────────────────── */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  position: relative;
  z-index: 0;
}

.contact-form-field:has(.contact-custom-select.is-open) {
  z-index: 100;
}

.contact-form-field--full {
  grid-column: 1 / -1;
}

.contact-form-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a1a1a;
}

.contact-form-req {
  color: #e11d48;
}

.contact-form-label-opt {
  font-weight: 400;
  color: #888;
  font-size: 0.9em;
}

.contact-input-wrap {
  position: relative;
}

.contact-input-wrap__icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #b0b0b0;
  pointer-events: none;
  z-index: 1;
}

.contact-input-wrap__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  height: 44px;
  padding: 0 0.9rem 0 2.35rem;
  font-size: 0.88rem;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
  font-family: inherit;
  background: #fff;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  color: #b4b4b8;
  font-size: 0.88rem;
}

.contact-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b0b0b0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
  color: #222;
}

.contact-form-select--native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-custom-select {
  position: relative;
  z-index: 1;
}

.contact-custom-select.is-open {
  z-index: 100;
}

.contact-custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  height: 44px;
  padding: 0 0.45rem 0 2.35rem;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  text-align: left;
  color: #222;
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-custom-select__trigger:hover {
  border-color: #d8b4fe;
  background: #fdfbff;
}

.contact-custom-select.is-open .contact-custom-select__trigger,
.contact-custom-select__trigger:focus-visible {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(164, 66, 216, 0.1);
  background: #fff;
}

.contact-custom-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-custom-select__value.is-placeholder {
  color: #b4b4b8;
  font-weight: 400;
}

.contact-custom-select__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f5f0fa;
  color: var(--mauve);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.contact-custom-select__chevron svg {
  width: 16px;
  height: 16px;
}

.contact-custom-select.is-open .contact-custom-select__chevron {
  transform: rotate(180deg);
  background: rgba(164, 66, 216, 0.12);
}

.contact-custom-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #eadcff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  max-height: 260px;
  overflow-y: auto;
  z-index: 101;
  isolation: isolate;
}

.contact-custom-select__list:not([hidden]) {
  animation: contact-select-in 0.18s ease;
}

@keyframes contact-select-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-custom-select__option {
  padding: 0.62rem 0.72rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.contact-custom-select__option:hover,
.contact-custom-select__option:focus {
  outline: none;
  background: #f8f0ff;
  color: #6b21a8;
}

.contact-custom-select__option.is-selected {
  background: linear-gradient(90deg, rgba(164, 66, 216, 0.14), rgba(164, 66, 216, 0.06));
  color: #6b21a8;
  font-weight: 600;
}

.contact-form-select:invalid {
  color: #b4b4b8;
}

.contact-form-textarea {
  height: auto;
  min-height: 118px;
  resize: vertical;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  line-height: 1.5;
}

.contact-input-wrap--textarea .contact-input-wrap__icon {
  top: 0.85rem;
  transform: none;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(164, 66, 216, 0.1);
}

.contact-form-footer {
  display: flex;
  align-items: center;
  gap: 1.15rem 1.5rem;
  margin-top: 1.15rem;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  flex-shrink: 0;
  background: var(--mauve);
  color: #fff;
  border: none;
  padding: 0.82rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, transform 0.2s;
}

.contact-submit:hover {
  background: var(--orange);
  transform: translateY(-1px);
  filter: none;
  box-shadow: none;
}

.contact-submit__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-form-notes {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #8a8a8a;
}

.contact-form-notes__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-form-notes a {
  color: var(--mauve);
  font-weight: 600;
  text-decoration: none;
}

.contact-form-notes a:hover {
  text-decoration: underline;
}

.contact-form-notes p {
  margin: 0;
}

.contact-alert {
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-alert--success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #1b5e20;
}

.contact-alert--error {
  background: #ffebee;
  border: 1px solid #f44336;
  color: #b71c1c;
}

@media (max-width: 1020px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-tips {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 860px) {
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .contact-hero__mascot {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .contact-hero__drako {
    max-width: 260px;
  }
}

@media (max-width: 700px) {
  .contact-page .category-content-block.contact-block {
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 16px;
  }

  .contact-page h1.contact-hero__title {
    font-size: 2rem;
  }

  .contact-hero__lead {
    font-size: 1.05rem;
  }

  .contact-form-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit {
    width: 100%;
  }
}
