/* ==========================================================================
   Page contact — formulaire multi-cibles (design 2026 : chips, labels flottants)
   ========================================================================== */

.page-contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--spacing-lg) 4rem;
}

.page-contact__header {
  margin-bottom: 2rem;
}

.page-contact__eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}

.page-contact__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--brown);
  margin: 0 0 .5rem;
}

.page-contact__intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

.page-contact__content {
  margin-bottom: 2rem;
  color: var(--brown);
  line-height: 1.7;
}

/* --- Notices (succès / erreurs) --- */
.contact-notice {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-notice--ok {
  background: #E6F0EA;
  border: 1px solid var(--green);
  color: var(--green);
}

.contact-notice--error {
  background: #FBEAE8;
  border: 1px solid var(--red);
  color: var(--red);
}

.contact-notice ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

/* --- Layout 2 colonnes : formulaire + panneau d'aide --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* --- Carte formulaire --- */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(61, 43, 31, .06);
}

/* --- Sélecteur de sujet (chips radio) --- */
.cf-subjects {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

.cf-legend {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brown);
  margin-bottom: .6rem;
  padding: 0;
}

.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cf-chip {
  position: relative;
}

.cf-chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cf-chip span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--brown);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cf-chip:hover span {
  border-color: var(--orange-lt);
}

.cf-chip input:checked + span {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.cf-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(232, 98, 42, .25);
}

/* --- Champs à label flottant --- */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cf-field {
  position: relative;
  margin-bottom: 1rem;
}

.cf-input,
.cf-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--brown);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.45rem .9rem .55rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cf-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
  padding-top: 1.6rem;
}

.cf-input:focus,
.cf-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 98, 42, .12);
}

.cf-label {
  position: absolute;
  left: .95rem;
  top: .95rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, color .15s ease;
}

/* Label flottant : monte quand le champ est focus ou rempli */
.cf-input:focus + .cf-label,
.cf-input:not(:placeholder-shown) + .cf-label,
.cf-textarea:focus + .cf-label,
.cf-textarea:not(:placeholder-shown) + .cf-label {
  top: .42rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}

/* --- Bouton d'envoi --- */
.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: .95rem 1.5rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(232, 98, 42, .28);
  transition: transform .15s ease, box-shadow .2s ease;
}

.cf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(232, 98, 42, .34);
}

.cf-submit:active {
  transform: translateY(0);
}

.cf-submit span {
  transition: transform .15s ease;
}

.cf-submit:hover span {
  transform: translateX(3px);
}

.contact-form__rgpd {
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Honeypot anti-spam : masqué aux humains, présent pour les bots */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Panneau d'aide --- */
.contact-aside {
  background: linear-gradient(160deg, var(--beige), var(--cream));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
}

.contact-aside__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--brown);
  margin: 0 0 1.1rem;
}

.contact-aside__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-aside__list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: var(--brown);
  font-size: .92rem;
  line-height: 1.45;
}

.contact-aside__ico {
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 auto;
}

.contact-aside__list strong {
  font-weight: 700;
}

.contact-aside__note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

/* --- Mobile --- */
@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-contact__title {
    font-size: 1.9rem;
  }
  .cf-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form {
    padding: 1.5rem;
  }
}
