/* =====================================================================
   PAGE CONTACT — styles dédiés (complète styles.css)
   ===================================================================== */

/* — Bloc principal : infos + formulaire — */
.contact-main { background: var(--blanc); padding-bottom: clamp(40px, 5vw, 72px) !important; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }

/* Colonne infos */
.contact-info .eyebrow { margin-bottom: 22px; }
.contact-info h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: 22px; }
.contact-info .lead { margin-bottom: 40px; max-width: 42ch; }
.cinfo-list { display: flex; flex-direction: column; gap: 4px; }
.cinfo {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.cinfo:last-of-type { border-bottom: 1px solid var(--line); }
.cinfo .ci-ico {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  display: grid; place-items: center;
}
.cinfo .ci-ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; }
.cinfo .ci-body { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.cinfo .ci-k { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cedre-2); }
.cinfo .ci-v { font-size: 1.16rem; color: var(--ink); }
.cinfo .ci-v a { transition: color .25s; }
.cinfo .ci-v a:hover { color: var(--accent); }
.cinfo .ci-sub { font-size: .9rem; color: var(--cedre-2); }
.contact-socials { display: flex; gap: 12px; margin-top: 30px; }
.contact-socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--cedre-2);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.contact-socials a svg { width: 19px; height: 19px; fill: currentColor; transition: transform .25s; }
.contact-socials a.wa:hover, .contact-socials a:hover { background: transparent; border-color: var(--or); color: inherit; transform: translateY(-3px); box-shadow: 0 10px 22px -12px rgba(44,31,14,.45); }
.contact-socials a:hover svg { transform: scale(1.12); }

/* Colonne formulaire */
.contact-form-wrap {
  background: var(--cream); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: clamp(28px, 3.4vw, 50px);
}
.contact-form-wrap h3 { font-size: 1.8rem; color: var(--emeraude); margin-bottom: 8px; }
.contact-form-wrap .cf-intro { font-size: .96rem; color: var(--cedre-2); margin-bottom: 30px; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform .field { display: flex; flex-direction: column; gap: 8px; }
.cform .field.full { grid-column: 1 / -1; }
.cform label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cedre-2); }
.cform label .req { color: var(--ocre); }
.cform input, .cform select, .cform textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: var(--blanc); border: 1px solid var(--line); border-radius: 3px;
  padding: .95em 1.05em; transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent);
}
.cform input.err, .cform textarea.err { border-color: #D9694E; box-shadow: 0 0 0 3px rgba(217,105,78,.14); }
/* Champ téléphone composé : indicatif (custom) + numéro */
.cform .tel-group { display: flex; gap: 8px; align-items: stretch; }
.cform .tel-group .tel-num { flex: 1 1 auto; min-width: 0; }

/* Sélecteur d'indicatif personnalisé */
.tel-code { position: relative; flex: 0 0 auto; }
.tel-code .tc-btn {
  display: flex; align-items: center; gap: .5em;
  height: 100%; white-space: nowrap;
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: var(--blanc); border: 1px solid var(--line); border-radius: 3px;
  padding: .95em 1em; cursor: pointer; transition: border-color .25s, box-shadow .25s;
}
.tel-code .tc-btn:hover { border-color: color-mix(in oklch, var(--accent) 50%, var(--line)); }
.tel-code.open .tc-btn, .tel-code .tc-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent); }
.tel-code .tc-current { display: inline-flex; align-items: center; gap: .45em; letter-spacing: .01em; }
.tel-code .tc-current .o-code { color: var(--accent); }
.tel-code .tc-current .o-abbr { color: var(--cedre); font-weight: 500; letter-spacing: .06em; }
.tel-code .tc-caret { color: var(--cedre-2); transition: transform .25s; flex: none; }
.tel-code.open .tc-caret { transform: rotate(180deg); }
.tel-code.err .tc-btn { border-color: #D9694E; box-shadow: 0 0 0 3px rgba(217,105,78,.14); }

.tel-code .tc-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  width: 280px; max-width: 78vw; max-height: 300px; overflow-y: auto;
  background: var(--blanc); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 26px 60px -28px rgba(44,31,14,.6);
  padding: 6px; display: none;
}
.tel-code.open .tc-menu { display: block; }
.tel-code .tc-opt {
  display: flex; align-items: center; gap: .7em;
  width: 100%; text-align: left; background: transparent; border: 0; border-radius: 3px;
  padding: .6em .7em; font-family: var(--font-sans); font-size: .94rem; color: var(--cedre);
  cursor: pointer; transition: background .15s;
}
.tel-code .tc-opt:hover, .tel-code .tc-opt.active { background: var(--cream); }
.tel-code .tc-opt .o-flag { font-size: 1.15em; flex: none; }
.tel-code .tc-opt .o-code { color: var(--accent); flex: none; min-width: 3.4em; }
.tel-code .tc-opt .o-name { color: var(--cedre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-code .tc-opt[aria-selected="true"] { background: color-mix(in oklch, var(--accent) 10%, transparent); }
.cform .cf-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.cform .cf-note { font-size: .82rem; color: var(--cedre-2); }
.cf-success {
  grid-column: 1 / -1; display: none;
  align-items: center; gap: 14px;
  background: color-mix(in oklch, var(--emeraude) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--emeraude) 35%, transparent);
  border-radius: 4px; padding: 16px 20px; color: var(--emeraude); font-size: .98rem;
}
.cf-success.show { display: flex; }
.cf-success svg { width: 22px; height: 22px; stroke: var(--emeraude); fill: none; flex: none; }
.cf-error { grid-column: 1 / -1; display: none; margin-top: 10px; background: #FBEBE6; border: 1px solid #E2B6A8; border-radius: 4px; padding: 14px 18px; color: #A23B22; font-size: .94rem; line-height: 1.5; }
.cf-error.show { display: block; }
.cf-error a { color: #A23B22; text-decoration: underline; }

/* — Carte design — */
.contact-map { background: var(--cream); padding-top: clamp(34px, 4vw, 60px) !important; }

/* — Carte illustrée (image fournie) — */
.map-illus { margin: 0; position: relative; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(44,31,14,.6); background: #F3EBDD; }
.map-illus img { width: 100%; height: auto; display: block; }
.map-illus-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  padding: 20px clamp(18px, 2.5vw, 34px);
  background: var(--blanc); border-top: 1px solid var(--line);
}
.map-illus-bar .mi-loc { display: inline-flex; align-items: center; gap: .7em; font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--cedre); }
.map-illus-bar .mi-loc svg { fill: var(--accent); flex: none; }
.map-illus-bar .mi-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.ghost-cedre { background: transparent; border-color: var(--line); color: var(--cedre); }
.btn.ghost-cedre:hover { background: var(--cedre); border-color: var(--cedre); color: #fff; }

/* — Responsive — */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cform { grid-template-columns: 1fr; }
}
