/* ═══════════════════════════════
   Contact
═══════════════════════════════ */
/* Section contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  margin: 0 auto; 
  padding:clamp(60px,10vh,120px) clamp(24px,5vw,80px);
}
@media (max-width: 768px) {
	.contact {
	  padding: 60px 0; 
	}
}
.contact::before {
  content: '';
  position: absolute;
  left: 50%; top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(212,168,67,0.18), transparent);
  transform: translateX(-50%);
}
.contact .wrap-right {
  padding: 0 !important; 
}

/* ════════ GAUCHE : contacts ════════ */
.wrap-left {
  padding: clamp(60px,8vw,120px) clamp(40px,5vw,90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px,4vh,48px);
}

/* ── Blocs individuels ── */
.wrap-left > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Label section ── */
.wrap-left .section-label {
  margin-bottom: 0;
}

/* ── Liens email / téléphone ── */
.wrap-left a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.9vw, 22px);
  color: var(--text-mid);
  letter-spacing: .04em;
  position: relative;
  display: inline-block;
  transition: color .4s ease;
}
.wrap-left a:hover { color: var(--g2); }

/* ── Spans téléphone / localisation ── */
.wrap-left span {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

/* ── Nom (Benjamin, Frank) ── */
.wrap-left span p {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--g4);
  text-transform: uppercase;
  margin: 0;
  min-width: 64px;
}

/* ── Texte localisation ── */
.wrap-left > div:last-of-type span p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--text-mid);
  letter-spacing: .04em;
  line-height: 1.7;
  min-width: unset;
  text-transform: none;
}

/* ── Séparateur entre les spans téléphone ── */
.wrap-left > div:nth-child(2) {
  gap: 8px;
}
.wrap-left > div:nth-child(2) span {
  padding: 8px 0;
  border-bottom: 1px solid rgba(212,168,67,.08);
}
.wrap-left > div:nth-child(2) span:last-child {
  border-bottom: none;
}

/* ════════ DROITE : SVG ════════ */
.wrap-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 0px 60px 40px;
}
.wrap-right .wpcf7,
.wrap-right .wpcf7-form {
  width: 100%;
  height: 100%;
}
.wrap-right .wpcf7 {
  display: flex;
}
.wpcf7-form {
  flex: 1;
}

.wrap-right::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.055) 0%, transparent 68%);
  border-radius: 50%;
  animation: breathe 7s ease-in-out infinite;
}

@media (max-width: 768px) {

  /* ── Une seule colonne ── */
  .contact {
    grid-template-columns: 1fr;
    padding: 0px 24px 48px 24px !important;
  }

  /* ── Cache le séparateur vertical ── */
  .contact::before {
    display: none;
  }

  /* ── Wrap-right passe en premier (formulaire en haut) ── */
  .wrap-right {
    order: -1;
    padding: 0 !important;
  }

  /* ── Wrap-left : padding réduit ── */
  .wrap-left {
    padding: 48px 0 0;
    gap: 24px;
  }

  /* ── Formulaire : colonnes en une seule ── */
  .cf7-row {
    flex-direction: column;
    gap: 0;
  }
  /* ── Ring : réduit ── */
  .wrap-right .deco-ring {
    width: 220px !important;
    height: 220px !important;
  }
}


/* ══════════════════════════════════════════════════
   CF7 — Float label pure CSS + fixes visuels
══════════════════════════════════════════════════ */

/* ── Structure générale ── */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(40px, 6vh, 72px) clamp(20px, 6vw, 64px);
  background: var(--bg-section);
}

/* ── Rows 2 colonnes ── */
.cf7-row {
  display: flex;
  gap: 32px;
  width: 100%;
}
.cf7-row .cf7-field { flex: 1 1 0; min-width: 0; }

@media (max-width: 640px) {
  .cf7-row { flex-direction: column; gap: 28px; }
}

/* ══ CHAMP : conteneur ══ */
.cf7-field {
  position: relative;
}

.cf7-field p {
  position: relative;
  margin: 0;
  padding-top: 18px; /* espace pour le label flottant */
  display: block;
}

.cf7-field p br { display: none; }

.cf7-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ══ INPUTS ══ */
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"] {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 168, 67, 0.4);
  padding: 8px 0 7px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 17px);
  letter-spacing: 0.04em;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.4s ease;
}

.cf7-field input[type="text"]:focus,
.cf7-field input[type="email"]:focus,
.cf7-field input[type="tel"]:focus {
  border-color: rgba(212, 168, 67, 0.55);
}

/* ══ TEXTAREA ══ */
.cf7-field textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(212, 168, 67, 0.2);
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 17px);
  letter-spacing: 0.04em;
  outline: none;
  border-radius: 0;
  resize: none;
  height: 130px;
  -webkit-appearance: none;
  transition: border-color 0.4s ease;
}

.cf7-field textarea:focus {
  border-color: rgba(212, 168, 67, 0.5);
}

/* Placeholder invisible — OBLIGATOIRE pour :placeholder-shown */
.cf7-field input::placeholder,
.cf7-field textarea::placeholder {
  color: transparent;
  user-select: none;
}

/* ══ LABEL FLOTTANT ══ */
.cf7-field label {
  position: absolute;
  /* Inputs simples : aligné sur l'input */
  top: 26px;
  left: 0;
  font-family: 'Cinzel', serif;
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 0.28em;
  color: rgba(212, 168, 67, 0.8);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  transform-origin: left top;
  transition:
    top 0.28s ease,
    font-size 0.28s ease,
    color 0.28s ease,
    letter-spacing 0.28s ease;
}

/* Label remonté — input focus OU rempli */
.cf7-field p:has(input[type="text"]:focus) label,
.cf7-field p:has(input[type="text"]:not(:placeholder-shown)) label,
.cf7-field p:has(input[type="email"]:focus) label,
.cf7-field p:has(input[type="email"]:not(:placeholder-shown)) label,
.cf7-field p:has(input[type="tel"]:focus) label,
.cf7-field p:has(input[type="tel"]:not(:placeholder-shown)) label {
  top: 0;
  font-size: clamp(8px, 0.9vw, 10px);
  color: rgba(212, 168, 67, 0.9);
  letter-spacing: 0.32em;
}

/* Label textarea — décalé à gauche pour tenir compte du padding */
.cf7-field:has(textarea) label {
  top: 30px;  /* dans la textarea */
  left: 14px;
}

/* Label textarea remonté */
.cf7-field p:has(textarea:focus) label,
.cf7-field p:has(textarea:not(:placeholder-shown)) label {
  top: 0;
  left: 0;
  font-size: clamp(8px, 0.9vw, 10px);
  color: rgba(212, 168, 67, 0.7);
  letter-spacing: 0.32em;
}

/* ══ CHECKBOX ══ */
.cf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(12px, 1.3vw, 14px);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* Supprimer le <br> et le * rouge CF7 */
.cf7-acceptance br { display: none; }
.cf7-acceptance .wpcf7-form-control-wrap::after { display: none !important; }

/* Dissoudre les spans inutiles CF7 */
.cf7-acceptance .wpcf7-form-control-wrap,
.cf7-acceptance .wpcf7-acceptance,
.cf7-acceptance .wpcf7-list-item {
  display: contents;
}

.cf7-acceptance input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(212, 168, 67, 0.35);
  background: transparent;
  margin-top: 4px;
  cursor: pointer;
  position: relative;
  border-radius: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.cf7-acceptance input[type="checkbox"]:checked {
  background: rgba(212, 168, 67, 0.12);
  border-color: rgba(212, 168, 67, 0.6);
}

.cf7-acceptance input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 3px;
  width: 4px; height: 7px;
  border-right: 1px solid rgba(212, 168, 67, 0.8);
  border-bottom: 1px solid rgba(212, 168, 67, 0.8);
  transform: rotate(45deg);
}

/* Cacher l'astérisque required CF7 */
.wpcf7 abbr[title] {
  display: none;
}

/* ══ BOUTON ══ */
.btn p {
  margin: 0;
  padding: 0;
  text-decoration: none !important;
}

.btn input[type="submit"],
.btn input[type="submit"]:hover {
  all: unset;
  text-decoration: none !important;
  cursor: pointer;
}

input[type="submit"],
input[type="submit"]:hover {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  box-shadow: none;
  outline: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  border-radius: 0;
}

.btn {
  display: flex;
  width: max-content;
  margin-top: 8px;
}

.btn p {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s ease;
}

.btn p br { display: none; }
.btn:hover p { border-color: rgba(212, 168, 67, 0.6); }

/* Spinner CF7 */
.wpcf7-spinner { display: none !important; }

/* ══ VALIDATION ══ */
.wpcf7-not-valid-tip {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(212, 80, 80, 0.7);
  text-transform: uppercase;
  margin-top: 5px;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: rgba(212, 80, 80, 0.4) !important;
}

.wpcf7-response-output {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--text-dim);
  border: 1px solid rgba(212, 168, 67, 0.2) !important;
  padding: 14px 20px !important;
  margin: 0 !important;
  letter-spacing: 0.04em;
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: rgba(212, 168, 67, 0.4) !important;
  color: rgba(212, 168, 67, 0.8);
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  border-color: rgba(212, 80, 80, 0.3) !important;
  color: rgba(212, 80, 80, 0.8);
}

/* ══ MOBILE ══ */
@media (max-width: 640px) {
  .cf7-field label { white-space: normal; }
}

.form-corner{position:absolute;width:28px;height:28px;}
.form-corner svg{width:100%;height:100%;}
.form-corner.tl{top:0;left:0;}
.form-corner.tr{top:0;right:0;transform:scaleX(-1);}
.form-corner.bl{bottom:0;left:0;transform:scaleY(-1);}
.form-corner.br{bottom:0;right:0;transform:scale(-1);}


/* Bordures */
.form-border-h{
  position:absolute;height:1px;
  left:28px;right:28px;
  background:linear-gradient(to right,rgba(212,168,67,.15),rgba(212,168,67,.35) 30%,rgba(212,168,67,.35) 70%,rgba(212,168,67,.15));
}
.form-border-h.top{top:0;}
.form-border-h.bot{bottom:0;}
.form-border-v{
  position:absolute;width:1px;
  top:28px;bottom:28px;
  background:linear-gradient(to bottom,rgba(212,168,67,.15),rgba(212,168,67,.35) 30%,rgba(212,168,67,.35) 70%,rgba(212,168,67,.15));
}
.form-border-v.left{left:0;}
.form-border-v.right{right:0;}