/* ==========================================================================
   FORMA INTERIM — refonte 2026 · styles propres à la page Contact
   S'ajoute à refonte.css (jamais l'inverse). Préfixe « cx- » pour tout ce qui
   est spécifique à la page ; les classes partagées (.field, .tabs, .filezone,
   .contact-list, .map…) ne sont que complétées ici.
   ========================================================================== */

/* ---------- Héros ---------- */
.page-contact .page-hero { padding-bottom: clamp(96px, 11vw, 168px); }
.page-contact .page-hero__grid { align-items: end; }
.page-contact .page-hero h1 { margin: 20px 0 22px; overflow-wrap: break-word; }
.cx-hero__sur { margin-top: 28px; }
.cx-hero__side { display: grid; gap: 28px; }
.cx-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-hero__actions .btn { max-width: 100%; }
.cx-insc { display: flex; gap: 14px; align-items: flex-start; padding-top: 22px; border-top: 1px solid var(--filet-clair); }
.cx-insc svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ambre); }
.cx-insc p { display: grid; gap: 4px; font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.55; }
.cx-insc strong { color: #fff; font-weight: 500; }
.cx-insc em { font-style: normal; color: var(--ambre); }

/* ---------- Grille formulaires + coordonnées ---------- */
.cx-section { padding-top: 0; }
.cx-grid { --cx-chevauche: clamp(48px, 6vw, 96px); position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; margin-top: calc(-1 * var(--cx-chevauche)); }
.cx-panel { position: relative; z-index: 1; }
.cx-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.cx-side { position: sticky; top: calc(var(--hdr-h) + 28px); display: grid; gap: 44px; padding-top: calc(var(--cx-chevauche) + 28px); }
@media (max-width: 1000px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-side { position: static; padding-top: 0; }
}

/* ---------- Panneau des formulaires ---------- */
.cx-panel { border: 1px solid var(--filet); }
.cx-panel .tabs { margin-bottom: clamp(30px, 4vw, 44px); }
.cx-panel .tabs [data-tab] { white-space: nowrap; }
.cx-pane__tete { margin-bottom: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--filet); }
.cx-pane__tete h2 { font-size: clamp(30px, 3vw, 44px); margin: 18px 0 12px; }
.cx-pane__tete h2 em { color: var(--ambre-texte); }
.cx-pane__tete p { color: var(--encre-2); max-width: 52ch; }
[data-pane]:focus { outline: none; }
@media (max-width: 520px) {
  .cx-panel .tabs [data-tab] { justify-content: center; white-space: normal; }
}

/* ---------- Formulaire ---------- */
.cx-form { display: grid; gap: 20px; }
.cx-form .req { color: var(--ambre-texte); font-weight: 500; }
.cx-form .field label .opt { font-weight: 300; }
.cx-form .field select {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background: var(--carte, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23141a22' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 18px center / 12px 8px no-repeat;
}
.cx-form .field input, .cx-form .field select, .cx-form .field textarea { font-weight: 400; }
.cx-form .field input::placeholder, .cx-form .field textarea::placeholder { color: var(--gris); opacity: .8; }
.cx-form .field input[type="date"] { min-width: 0; }
.cx-form .field input:hover, .cx-form .field select:hover, .cx-form .field textarea:hover { border-color: var(--encre-2); }
.cx-form .field input:focus, .cx-form .field select:focus, .cx-form .field textarea:focus { border-color: var(--encre); }
.cx-form .consent { padding: 18px 0 2px; border-top: 1px solid var(--filet); line-height: 1.55; }
.cx-form .consent a { text-underline-offset: 3px; color: var(--encre); }
.cx-form .btn { margin-top: 4px; }
.form__note { font-size: 13.5px; color: var(--gris); line-height: 1.55; }
.form__note a { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.field .form__note { margin-top: 2px; }
/* Bandeau ajouté par site.js en aperçu local */
.form__local { padding: 12px 16px; border-radius: 12px; background: var(--ivoire-2); border: 1px dashed var(--filet-2); font-size: 13px; color: var(--encre-2); }
.field__error { display: block; }
.consent + .field__error { margin-top: -10px; }

/* ---------- Dépôt de CV ---------- */
.cx-form .filezone { min-height: 92px; }
.cx-form .filezone > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cx-form .filezone__t { overflow-wrap: anywhere; }
.filepick { display: none; grid-template-columns: 40px minmax(0, 1fr) auto 40px; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border: 1px solid var(--filet-2); border-radius: 14px; background: var(--carte, #fff); }
.filepick.is-on { display: grid; }
.filepick__ic { width: 40px; height: 40px; border-radius: 50%; background: var(--ivoire-2); color: var(--encre); display: grid; place-items: center; }
.filepick__ic svg { width: 17px; height: 17px; }
.filepick__n { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filepick__s { font-size: 13px; color: var(--gris); white-space: nowrap; }
.filepick__x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--filet-2); background: transparent; color: var(--encre); display: grid; place-items: center; cursor: pointer; transition: background .3s var(--ease), border-color .3s, color .3s; }
.filepick__x:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.filepick__x svg { width: 15px; height: 15px; }
.filezone.is-err + .filepick { border-color: var(--err); }
.filezone.is-err .filezone__t { color: var(--err); }
@media (max-width: 420px) {
  .filepick { grid-template-columns: minmax(0, 1fr) 40px; }
  .filepick__ic { display: none; }
  .filepick__s { grid-row: 2; }
  .filepick__x { grid-row: 1 / 3; grid-column: 2; }
}

/* ---------- Coordonnées ---------- */
.cx-bloc { display: grid; align-content: start; }
.cx-side .contact-list a, .cx-side .contact-list > div { align-items: start; transition: padding .5s var(--ease); }
.cx-side .contact-list a:hover { padding-left: 8px; }
.cx-side .contact-list a:hover .ic { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.cx-side .contact-list .ic { transition: background .35s var(--ease), border-color .35s, color .35s; }
.cx-side .contact-list span { min-width: 0; }
.cx-side .contact-list small { margin-bottom: 4px; }
.cx-side .contact-list strong { display: block; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.cx-side .contact-list .insc-uniquement { color: var(--ambre-texte); }
.cx-mini { display: block; font-size: 13.5px; color: var(--encre-2); margin-top: 2px; }
.cx-texte { color: var(--encre-2); font-size: 15px; }
.cx-texte strong { color: var(--encre); font-weight: 500; }
.cx-side .map { aspect-ratio: 4 / 3; border: 1px solid var(--filet); }
.cx-avis { gap: 14px; padding-top: 30px; border-top: 1px solid var(--filet-2); }
.cx-avis h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; margin-top: 6px; }
.cx-avis h3 em { color: var(--ambre-texte); }
.cx-avis .btn { margin-top: 8px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 640px) {
  .cx-hero__actions .btn { width: 100%; white-space: normal; text-align: center; }
  .cx-panel { padding: 22px 18px 26px; border-radius: 18px; }
}
@media (max-width: 400px) {
  .page-contact .page-hero h1 { font-size: 42px; }
  .cx-panel .tabs [data-tab] { padding: 12px 14px; font-size: 14px; }
}
