/* ======================================================
   91 FM — CONTACT PAGE
   ====================================================== */

.contact-page {
  min-height: calc(100vh - var(--header-offset));
  background: var(--bg);
  padding-bottom: 80px;
}

/* ===========================
   HERO
   =========================== */
.contact-hero {
  height: 40vh;
  min-height: 260px;
  max-height: 480px;
  position: relative;
  overflow: hidden; /* repli pour les navigateurs sans `clip` */
  overflow: clip;
  background-color: #0b0c10;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0.35;
}

.contact-hero-glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 12, 0.35) 0%,
    rgba(5, 6, 12, 0.7) 100%
  );
}

.contact-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.contact-hero h1 {
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

@media (max-width: 700px) {
  .contact-hero h1 {
    white-space: normal;
    font-size: clamp(24px, 7vw, 38px);
  }
}

/* ===========================
   GRID
   =========================== */
.contact-grid-wrap {
  /* Une seule formule pilote la marge (comme actualites.css/emission-detail.css) :
     max-width et padding cumulés auraient doublé la marge réelle. */
  width: min(var(--page-max-width), calc(100% - 2 * var(--page-side-margin)));
  margin: 0 auto;
  padding: 48px 0 0;
}

.contact-grid-intro {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===========================
   CARD
   =========================== */
.contact-card {
  display: flex;
  flex-direction: column;
  background: #D91319;
  border: none;
  border-radius: var(--radius);
  padding: 24px 20px 22px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  background: #b81016;
  box-shadow: 0 10px 32px rgba(217, 19, 25, 0.35);
  transform: translateY(-3px);
}

.contact-card:hover .contact-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Disabled / Coming soon */
.contact-card--soon {
  cursor: default;
  opacity: 0.4;
  pointer-events: none;
}

.contact-card-soon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}

.contact-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.contact-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-card-arrow svg {
  width: 14px;
  height: 14px;
}

/* ===========================
   RESPONSIVE MOBILE: liste
   =========================== */
@media (max-width: 560px) {
  .contact-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 16px;
  }

  .contact-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .contact-card-body {
    flex: 1;
    min-width: 0;
  }

  .contact-card-arrow {
    margin-top: 8px;
    opacity: 1;
    transform: none;
  }
}

/* ======================================================
   FORMULAIRES /contact/X
   ====================================================== */

.contact-form-page {
  width: min(var(--page-max-width), calc(100% - 2 * var(--page-side-margin)));
  margin: 0 auto;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-form-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Breadcrumb */
.contact-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}
.contact-breadcrumb:hover { color: var(--brand); }
.contact-breadcrumb svg { width: 14px; height: 14px; }

/* Titre de la page formulaire */
.contact-form-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.contact-form-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 32px;
}

/* Formulaire */
.contact-form {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

@media (max-width: 560px) {
  .contact-form { padding: 20px 16px; }
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .contact-form-row { grid-template-columns: 1fr; }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.contact-field:last-child { margin-bottom: 0; }

.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.contact-field label .req {
  color: var(--brand);
  margin-left: 2px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-sizing: border-box;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217,19,25,0.08);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #adb5bd;
}
.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot invisible */
.contact-honey { display: none !important; }

/* Bouton submit */
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  width: 100%;
  padding: 13px 24px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.contact-submit:hover { background: #b81016; transform: translateY(-1px); }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.contact-submit svg { width: 18px; height: 18px; }

/* États feedback */
.contact-feedback {
  display: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}
.contact-feedback.success {
  display: flex;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.contact-feedback.error {
  display: flex;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.contact-feedback svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Sidebar info */
.contact-form-sidebar {}

.contact-info-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.contact-info-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.contact-info-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.contact-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217,19,25,0.07);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  margin-top: 12px;
}
.contact-info-badge svg { width: 13px; height: 13px; }

/* ======================================================
   SUCCÈS — FADE + STEPPER
   ====================================================== */

@keyframes contactFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); pointer-events: none; }
}
@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,19,25,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(217,19,25,0); }
}

.contact-form--leaving {
  animation: contactFadeOut 0.35s ease forwards;
}

.contact-success-wrap {
  animation: contactFadeIn 0.45s ease forwards;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px 36px;
  text-align: center;
}
@media (max-width: 560px) {
  .contact-success-wrap { padding: 28px 20px; }
}

.contact-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(217,19,25,0.08);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-success-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.contact-success-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 36px;
  line-height: 1.5;
}

/* Stepper */
.contact-stepper {
  display: flex;
  align-items: flex-start;
  margin: 0 0 32px;
  position: relative;
}

.contact-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Ligne entre les étapes */
.contact-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.contact-step.done:not(:last-child)::after {
  background: var(--brand);
}

.contact-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.contact-step.done .contact-step-num {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.contact-step.active .contact-step-num {
  border-color: var(--brand);
  color: var(--brand);
  animation: stepPulse 2s ease-in-out infinite;
}

.contact-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.3;
  max-width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-step.done .contact-step-label  { color: var(--brand); }
.contact-step.active .contact-step-label { color: var(--text); }

.contact-success-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.contact-success-back svg { width: 14px; height: 14px; }

/* Turnstile widget */
#cf-turnstile { margin: 12px 0 4px; }

/* Textarea height variants */
.contact-field textarea.contact-textarea--tall   { min-height: 160px; }
.contact-field textarea.contact-textarea--medium { min-height: 140px; }

/* Hint sous les champs fichiers */
.contact-file-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Zone de dépôt de fichier (drag & drop) */
@keyframes spin { to { transform: rotate(360deg); } }
.contact-file-label {
  display: flex; flex-direction: column; gap: 6px;
}
.contact-file-drop {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.contact-file-drop:hover, .contact-file-drop.dragover {
  border-color: var(--brand);
  background: rgba(217,19,25,.04);
}
.contact-file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.contact-file-drop svg { color: var(--muted); margin: 0 auto 6px; display: block; }
.contact-file-drop span { font-size: 13px; color: var(--muted); }
.contact-file-drop .file-name { font-size: 13px; font-weight: 600; color: var(--brand); display: none; }

/* Lien "toggle" texte (ex: "je remplis pour quelqu'un d'autre") */
.contact-toggle-link {
  font-size: 13px; color: var(--brand); cursor: pointer;
  background: none; border: none; padding: 0; font-family: var(--font);
  text-decoration: underline; margin-bottom: 4px; display: inline-block;
}

/* Lien secondaire dans la sidebar info-card */
.contact-info-card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}

/* Card adresse postale */
.contact-card--address {
  grid-column: span 2;
  background: #fff;
  border: 1.5px solid var(--line);
  position: relative;
  overflow: hidden;
  cursor: default;
  min-height: 160px;
}
.contact-card-address-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://media.webradio91fm.fr/assets/content/backgrounds/1000013080.jpeg');
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.contact-card-address-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.98) 38%, rgba(255,255,255,0.85) 55%, rgba(255,255,255,0.35) 72%, rgba(255,255,255,0) 85%);
}
.contact-card--address .contact-card-icon,
.contact-card--address .contact-card-body {
  position: relative;
  z-index: 1;
}
.contact-card--address .contact-card-icon {
  background: rgba(217, 19, 25, 0.08);
  color: var(--brand);
}
.contact-card--address .contact-card-title {
  color: var(--text);
}
.contact-card-address-line {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 0;
  line-height: 1.5;
}
.contact-card-address-city {
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .contact-card--address { grid-column: span 1; }
}

/* ======================================================
   FORM STEPPER (formulaire événement par étapes)
   ====================================================== */
.fstep-bar {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}

.fstep-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}
.fstep-item--done { cursor: pointer; }

.fstep-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.fstep-item--active .fstep-num {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.fstep-item--done .fstep-num {
  border-color: var(--brand);
  background: rgba(217,19,25,0.08);
  color: var(--brand);
}

.fstep-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
  max-width: 80px;
}
.fstep-item--active .fstep-label { color: var(--brand); }
.fstep-item--done .fstep-label   { color: var(--text); }

.fstep-sep {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 17px 8px 0;
  transition: background 0.25s;
}
.fstep-sep--done { background: var(--brand); }

@media (max-width: 400px) {
  .fstep-label { display: none; }
  .fstep-sep   { margin-top: 17px; }
}

/* Nav */
.fstep-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.fstep-btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.fstep-btn-prev:hover { border-color: var(--text); color: var(--text); }
.fstep-btn-prev svg   { width: 15px; height: 15px; }

.fstep-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.fstep-btn-next:hover { background: #b81016; transform: translateY(-1px); }
.fstep-btn-next svg   { width: 15px; height: 15px; }

/* Validation error */
.fstep-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.09) !important;
}

/* ======================================================
   NOMINATIM AUTOCOMPLETE
   ====================================================== */
.contact-field-hint {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.nom-autocomplete-wrap {
  position: relative;
}

.nom-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-sizing: border-box;
}
.nom-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217,19,25,0.08);
}
.nom-search-input::placeholder { color: #adb5bd; }

.nom-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}

.nom-suggestion {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}
.nom-suggestion:last-child { border-bottom: none; }
.nom-suggestion:hover { background: rgba(217,19,25,0.05); color: var(--brand); }

/* ======================================================
   REPRÉSENTATIONS
   ====================================================== */
.repr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.repr-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.repr-row .contact-field {
  flex: 1;
  margin-bottom: 0;
}
.repr-row--extra {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.repr-label {
  font-size: 12px !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
}

.repr-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.repr-add-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(217,19,25,0.04);
}

.repr-remove-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  margin-bottom: 1px;
}
.repr-remove-btn:hover {
  color: var(--brand);
  border-color: rgba(217,19,25,0.3);
  background: rgba(217,19,25,0.04);
}

/* ======================================================
   TARIF + CHECKBOX
   ====================================================== */
.tarif-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tarif-input-row input[type="text"] {
  flex: 1;
}
.tarif-input-row input[type="text"]:disabled {
  background: #f1f3f5;
  color: #adb5bd;
  cursor: not-allowed;
  border-color: var(--line);
  box-shadow: none;
}

.contact-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.contact-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

.contact-check-label--tarif {
  flex-shrink: 0;
}
