/* =====================================================================
   STORM PATRIMOINE — Styles spécifiques : CONTACT
   ===================================================================== */

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
/* Sans min-width:0, une colonne de grille ne peut pas descendre sous la largeur
   min-content de son contenu (ici un bouton en white-space:nowrap) : la page
   devenait alors plus large que l'écran sur mobile. */
.contact-grid > * { min-width: 0; }

/* Colonne infos ---------------------------------------------------- */
.contact-aside hr { margin-bottom: 24px; }
.contact-info { margin: 30px 0; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.ci-icon { width: 46px; height: 46px; flex: none; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); }
.ci-icon svg { width: 20px; height: 20px; }
.contact-info strong { display: block; font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 3px; font-weight: 500; }
.contact-info a, .contact-info span { color: var(--ink); }
.contact-info a:hover { color: var(--gold-dark); }
.contact-fortune { background: var(--ink); color: #cfc7b8; padding: 28px; border-radius: var(--radius); }
.contact-fortune .eyebrow { color: var(--gold-light); margin-bottom: 12px; }
.contact-fortune p:last-child { margin: 0; }

/* Coffre-fort électronique ----------------------------------------- */
.contact-vault {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 20px;
  background: var(--cream-2); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 26px 28px; border-radius: var(--radius);
}
.cv-icon { flex: none; width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); }
.cv-icon svg { width: 22px; height: 22px; }
.contact-vault .eyebrow { margin-bottom: 10px; }
.contact-vault p { font-size: .95rem; color: var(--text-soft); margin-bottom: 18px; }
.contact-vault .btn { width: auto; padding: 12px 22px; font-size: .74rem; }
.link-underline { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* Formulaire entonnoir --------------------------------------------- */
.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: clamp(28px, 4vw, 48px); }

/* Progression */
.funnel-progress { margin-bottom: 38px; }
.fp-bar { height: 4px; background: var(--cream-2); border-radius: 100px; overflow: hidden; }
.fp-bar span { display: block; height: 100%; width: 25%; background: var(--gold); border-radius: 100px; transition: width .5s var(--ease); }
.fp-steps { display: flex; justify-content: space-between; margin-top: 14px; }
.fp-steps span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 500; color: var(--text-soft); background: var(--cream-2);
  transition: all .4s var(--ease);
}
.fp-steps span.is-active { background: var(--gold); color: var(--ink); }
.fp-steps span.is-done { background: var(--ink); color: var(--white); }

/* Étapes */
.funnel-step { display: none; animation: fadeStep .5s var(--ease); }
.funnel-step.is-active { display: block; }
@keyframes fadeStep { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.funnel-step h3 { margin-bottom: 6px; }
.funnel-hint { color: var(--text-soft); font-size: .95rem; margin-bottom: 26px; }

/* Choix (radios en cartes) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.choice-grid--2 { margin-bottom: 26px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .95rem; transition: all .3s var(--ease); background: var(--cream);
}
.choice:hover span { border-color: var(--gold); }
.choice input:checked + span { border-color: var(--gold); background: rgba(213,168,79,.1); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

/* Champs */
.field-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin: 4px 0 8px; font-weight: 500; }
.field-label .opt { text-transform: none; letter-spacing: 0; color: var(--text-soft); font-weight: 300; }
.field-input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(213,168,79,.16); background: var(--white); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.field-input { resize: vertical; }
.field-input.is-error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); margin-top: 8px; }
.consent input { margin-top: 4px; accent-color: var(--gold-dark); flex: none; }
.consent a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { color: var(--ink); }
.consent .req-star { color: #c0392b; }

/* Navigation */
.funnel-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; }
.funnel-nav .btn { width: auto; }

/* Pot de miel anti-spam : masqué aux humains, atteignable aux robots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Message d'erreur d'envoi (échec du mailer PHP) */
.funnel-error {
  margin-top: 18px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(190,60,60,.08); border: 1px solid rgba(190,60,60,.3);
  color: #a13333; font-size: .92rem; text-align: center;
}
.funnel-nav .btn[disabled] { opacity: .6; pointer-events: none; }

/* Secousse en cas d'erreur de validation */
.funnel-step.shake { animation: shake .45s var(--ease); }
@keyframes shake { 10%,90%{transform:translateX(-2px)} 20%,80%{transform:translateX(4px)} 30%,50%,70%{transform:translateX(-7px)} 40%,60%{transform:translateX(7px)} }

/* Confirmation */
.funnel-done { text-align: center; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: rgba(213,168,79,.14); color: var(--gold-dark); display: grid; place-items: center; }
.done-icon svg { width: 38px; height: 38px; }
.recap { text-align: left; max-width: 420px; margin: 18px auto; }
.recap li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.recap li .r-key { color: var(--text-soft); }
.recap li .r-val { color: var(--ink); font-weight: 500; text-align: right; }

/* ------------------------------------------------------------------ */
/* Notre équipe                                                        */
/* ------------------------------------------------------------------ */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px; max-width: 1120px; margin-inline: auto;
}
.team-card {
  display: flex; align-items: center; gap: 28px;
  padding: 32px 34px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px -24px rgba(20,17,13,.5);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px); border-color: var(--gold);
  box-shadow: 0 16px 34px -22px rgba(20,17,13,.55);
}
.team-photo {
  flex: none; width: 148px; height: 148px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  outline: 1px solid rgba(213,168,79,.55); outline-offset: 4px;
}
.team-name { font-size: 1.56rem; line-height: 1.2; margin: 0; }
.team-job {
  margin: 7px 0 0; font-family: var(--font-body);
  font-size: .76rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-dark);
}
/* Formation / diplômes : ligne discrète sous la fonction, avant les coordonnées. */
.team-degree {
  margin: 9px 0 0; font-size: .86rem; line-height: 1.5;
  color: var(--text-soft); font-style: italic;
}
.team-job + .team-meta, .team-degree + .team-meta { margin-top: 15px; }
.team-meta { display: grid; gap: 8px; }
.team-meta li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--text-soft); }
.team-meta svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold-dark); }
.team-meta a { color: var(--text); transition: color .3s var(--ease); }
.team-meta a:hover { color: var(--gold-dark); }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 560px) {
  .choice-grid, .field-row { grid-template-columns: 1fr; }
  .funnel-nav .btn { flex: 1; justify-content: center; }
  .team-card { flex-direction: column; text-align: center; gap: 18px; padding: 26px 22px; }
  .team-photo { width: 128px; height: 128px; }
  .team-meta li { justify-content: center; }

  /* Les libellés de boutons sont en majuscules + interlettrage : en nowrap ils
     imposent une largeur plancher qui débordait de l'écran. On les laisse
     revenir à la ligne et on allège les paddings. */
  .contact-fortune { padding: 22px 20px; }
  .contact-vault { flex-direction: column; padding: 22px 20px; }
  .contact-vault .btn {
    width: 100%; justify-content: center; text-align: center;
    white-space: normal; padding: 13px 16px;
  }
  .funnel-nav { gap: 10px; }
  .funnel-nav .btn { padding: 15px 12px; letter-spacing: .1em; white-space: normal; }
}
