/* =========================================================================
   ELYSIOR — CONTACT (estimation) + FOOTER
   ========================================================================= */

.contact {
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(201,168,76,0.07), transparent 55%),
    var(--noir-soft);
  padding-block: clamp(72px, 11vh, 150px);
  border-top: 1px solid var(--filet-soft);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}

/* ---- colonne gauche : argumentaire + coordonnées ---- */
.contact__left { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 96px; min-width: 0; }
.contact__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.01em;
  max-width: 14ch; text-wrap: balance;
}
.contact__title .em { font-style: italic; color: var(--or); }
.contact__lede { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.62; color: var(--gris); font-weight: 300; max-width: 42ch; }
.contact__list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.contact__row {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--blanc); text-decoration: none; font-size: 15px; letter-spacing: 0.01em;
  width: max-content; max-width: 100%; /* mobile : ne déborde plus, le sous-texte passe à la ligne */
}
.contact__rowTxt { min-width: 0; }
.contact__rowTxt span { display: block; } /* force le retour à la ligne propre du sous-texte */
.contact__rowIco {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--or);
  box-shadow: inset 0 0 0 1px var(--filet);
  background: radial-gradient(120% 120% at 30% 20%, rgba(201,168,76,0.14), rgba(201,168,76,0.02));
  transition: transform .4s var(--ease), background .4s var(--ease);
}
a.contact__row:hover .contact__rowIco { transform: translateY(-2px); background: rgba(201,168,76,0.12); }
.contact__rowIco svg { width: 18px; height: 18px; }
.contact__rowTxt b { display: block; font-weight: 600; }
.contact__rowTxt span { font-size: 12.5px; color: var(--gris-2); }
.contact__trust {
  display: inline-flex; align-items: center; gap: 12px;
  padding-top: 22px; border-top: 1px solid var(--filet-soft); margin-top: 4px;
}
.contact__trust .stars { font-size: 15px; }
.contact__trust span { font-size: 13px; color: var(--gris); }
.contact__trust b { color: var(--or); }

/* ---- colonne droite : carte formulaire (double-bezel) ---- */
.cform-shell {
  background: linear-gradient(180deg, #fff, var(--noir-soft));
  border-radius: 8px;
  padding: clamp(8px, 1vw, 12px);
  box-shadow: inset 0 0 0 1px var(--filet-soft), 0 40px 90px -50px rgba(140,107,34,0.5);
}
.cform {
  position: relative;
  background: #fff;
  border-radius: 5px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), inset 0 0 0 1px var(--filet-soft);
  padding: clamp(24px, 3vw, 40px);
}
.cform::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 28px; height: 28px;
  border-top: 1px solid var(--or); border-left: 1px solid var(--or);
  border-radius: 5px 0 0 0;
}
.cform__head { margin-bottom: 24px; }
.cform__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; color: var(--blanc); }
.cform__sub { font-size: 13.5px; color: var(--gris-2); margin-top: 6px; }

.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
/* champ conditionnel « Autre » vraiment masqué : bat .field{display:flex} */
.field[hidden] { display: none; }
.field label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gris); font-weight: 500;
}
.field label .req { color: var(--or); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--blanc); /* 16px = pas de zoom auto iOS au focus */
  background: var(--noir-soft);
  border: none;
  border-radius: 3px;
  padding: 13px 15px;
  box-shadow: inset 0 0 0 1px var(--filet-soft);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08829' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gris-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--or), 0 0 0 4px var(--or-glow);
}
.field[data-error="true"] input,
.field[data-error="true"] select,
.field[data-error="true"] textarea { box-shadow: inset 0 0 0 1.5px #c0392b; }
.field__err { font-size: 11.5px; color: #c0392b; min-height: 0; display: none; }
.field[data-error="true"] .field__err { display: block; }

.cform__submit { grid-column: 1 / -1; margin-top: 6px; }
.cform__btn {
  width: 100%;
  justify-content: center;
  position: relative;
  padding-right: 56px;
}
.cform__btn .btn__icowrap {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(26,19,4,0.14);
  display: grid; place-items: center;
  transition: transform .45s var(--ease), background .45s var(--ease);
}
.cform__btn:hover .btn__icowrap { transform: translateY(-50%) translateX(2px); background: rgba(26,19,4,0.22); }
.cform__btn .btn__icowrap svg { width: 16px; height: 16px; }
.cform__btn[aria-busy="true"] { pointer-events: none; opacity: 0.7; }
.cform__btn[aria-busy="true"] .btn__icowrap svg { animation: cspin .8s linear infinite; }
@keyframes cspin { to { transform: rotate(360deg); } }

.cform__note { grid-column: 1 / -1; font-size: 11.5px; color: var(--gris-3); margin-top: 12px; line-height: 1.5; text-align: center; }
.cform__note a { color: var(--or); text-decoration: none; }

/* états succès / erreur */
.cform__status {
  grid-column: 1 / -1;
  display: none;
  margin-top: 14px;
  padding: 14px 16px; border-radius: 4px; font-size: 14px; line-height: 1.5;
  align-items: center; gap: 12px;
}
.cform__status[data-show="ok"]  { display: flex; color: #1f6b3b; background: rgba(46,160,90,0.08); box-shadow: inset 0 0 0 1px rgba(46,160,90,0.35); }
.cform__status[data-show="err"] { display: flex; color: #c0392b; background: rgba(192,57,43,0.06); box-shadow: inset 0 0 0 1px rgba(192,57,43,0.3); }
.cform__status svg { width: 20px; height: 20px; flex: 0 0 auto; }

@media (max-width: 920px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__left { position: static; }
}
@media (max-width: 540px) {
  .cform__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   FOOTER — bookend espresso profond (contraste premium)
   ========================================================================= */
.foot {
  background: #14110B;
  color: rgba(255,255,255,0.66);
  padding-block: clamp(56px, 8vh, 96px) 34px;
  position: relative;
}
.foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 64px);
  padding-bottom: clamp(40px, 6vh, 70px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
.foot__brand { display: flex; flex-direction: column; gap: 18px; }
.foot__word {
  font-family: var(--serif); font-size: 27px; letter-spacing: 0.34em; text-indent: 0.34em;
  color: #fff; font-weight: 500; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
}
.foot__word img { height: 26px; width: auto; }
.foot__pitch { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.6); max-width: 34ch; font-weight: 300; }
.foot__rating { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.72); }
.foot__rating b { color: var(--or-soft); }
.foot__rating .stars { font-size: 14px; }

.foot__col h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--or); font-weight: 600; margin: 0 0 18px;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot__col a {
  color: rgba(255,255,255,0.66); text-decoration: none; font-size: 14px;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.foot__col a:hover { color: var(--or-soft); padding-left: 4px; }
.foot__contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot__contact a, .foot__contact span { color: rgba(255,255,255,0.72); text-decoration: none; display: inline-flex; gap: 10px; align-items: flex-start; }
.foot__contact a:hover { color: var(--or-soft); }
.foot__contact svg { width: 16px; height: 16px; color: var(--or); flex: 0 0 auto; margin-top: 2px; }

.foot__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 26px;
  font-size: 12.5px; color: rgba(255,255,255,0.42);
}
.foot__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__legal a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color .3s; }
.foot__legal a:hover { color: var(--or-soft); }

@media (max-width: 860px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   PANNEAU DE CONFIRMATION (remplace le formulaire après envoi réussi)
   ========================================================================= */
.cform-done {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 44px);
  background: #fff;
  border-radius: 5px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), inset 0 0 0 1px var(--filet-soft);
}
.cform-done.is-shown { display: flex; animation: cformDoneIn .6s var(--ease); }
@keyframes cformDoneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cform-done__ico {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--or);
  background: radial-gradient(120% 120% at 30% 20%, rgba(201,168,76,0.18), rgba(201,168,76,0.04));
  box-shadow: inset 0 0 0 1px var(--filet);
}
.cform-done__ico svg { width: 30px; height: 30px; }
.cform-done__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3vw, 32px); color: var(--blanc); letter-spacing: -0.005em;
}
.cform-done__msg { font-size: 15px; line-height: 1.62; color: var(--gris); max-width: 42ch; }
/* honeypot anti-spam : hors écran, invisible et ignoré par les lecteurs d'écran */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
