/* ============================================================
   LQS AQUITAINE — contact.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HERO / LAYOUT
   ══════════════════════════════════════════════════════════ */
.ct-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* ── Panneau gauche ── */
.ct-left {
  position: relative;
  padding: 5rem 3.5rem 5rem 3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ct-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 40%, rgba(197,2,2,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(197,2,2,0.1) 0%, transparent 60%),
    linear-gradient(160deg, rgba(10,10,10,0.82) 0%, rgba(5,5,5,0.88) 100%),
    url('../../img_site/background_contact.jpg') center/cover no-repeat;
  z-index: 0;
}

/* Ligne verticale décorative droite */
.ct-left::after {
  content: '';
  position: absolute;
  top: 10%; bottom: 10%; right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.07) 30%, rgba(197,2,2,0.2) 60%, transparent);
  z-index: 1;
}

.ct-left__inner {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.ct-overline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
  opacity: 0;
  transform: translateY(12px);
  animation: ctFadeUp 0.55s 0.1s ease forwards;
}

.ct-overline::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.ct-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.0;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(14px);
  animation: ctFadeUp 0.55s 0.22s ease forwards;
}

.ct-title span { color: var(--red); }

.ct-divider {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--red), rgba(197,2,2,0.2));
  border-radius: 3px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: ctFadeUp 0.55s 0.32s ease forwards;
}

.ct-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.96rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: ctFadeUp 0.55s 0.4s ease forwards;
}

/* Infos de contact */
.ct-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  animation: ctFadeUp 0.55s 0.5s ease forwards;
}

.ct-info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.ct-info-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(197,2,2,0.12);
  border: 1px solid rgba(197,2,2,0.25);
  color: var(--red);
  font-size: 0.85rem;
}

.ct-info-row a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.ct-info-row a:hover { color: #fff; }

/* ── Panneau droit ── */
.ct-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem 4rem 3.5rem;
  background: #111;
}

.ct-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(197,2,2,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   CARTE FORMULAIRE
   ══════════════════════════════════════════════════════════ */
.ct-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  padding: 2.4rem 2.6rem 2.2rem;
  border-radius: 22px;

  background: rgba(28,28,28,0.9);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  overflow: hidden;

  opacity: 0;
  transform: translateX(22px) scale(0.97);
  animation: ctSlideIn 0.6s 0.3s cubic-bezier(.34,1.1,.64,1) forwards;
}

/* Reflet top */
.ct-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.25) 30%,
    rgba(197,2,2,0.4) 65%,
    transparent);
  pointer-events: none;
}

/* Lueur rouge bas-droit */
.ct-card::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(197,2,2,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.ct-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.ct-card__title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(197,2,2,0.6);
  animation: ctPulse 2s ease-in-out infinite;
}

.ct-card__sub {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Champs ── */
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.ct-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.ct-field label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}

.ct-field:focus-within label { color: rgba(197,2,2,0.9); }

.ct-field input,
.ct-field textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.75em 1em;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.ct-field input:focus,
.ct-field textarea:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(197,2,2,0.6);
  box-shadow:
    0 0 0 3px rgba(197,2,2,0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.ct-field textarea {
  height: 110px;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* ── Requis * ── */
.ct-required {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.2rem;
  font-family: 'Barlow', sans-serif;
}
.ct-required span { color: rgba(197,2,2,0.7); }

/* ── Bouton Envoyer ── */
.ct-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 0.4rem;
  height: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;

  background: linear-gradient(135deg, rgba(197,2,2,0.9) 0%, rgba(130,0,0,0.95) 100%);
  border: 1px solid rgba(255,100,100,0.3);
  box-shadow:
    0 6px 28px rgba(197,2,2,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ct-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.ct-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 36px rgba(197,2,2,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.ct-submit:hover::after { left: 150%; }
.ct-submit:active { transform: translateY(0) scale(0.98); }

.ct-submit svg { transition: transform var(--transition); }
.ct-submit:hover svg { transform: translateX(4px); }

/* Loading */
.ct-submit.loading {
  pointer-events: none;
  color: transparent;
}
.ct-submit.loading::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ctSpin 0.65s linear infinite;
}

/* ── Feedback ── */
.ct-feedback {
  display: none;
  padding: 0.85em 1.1em;
  border-radius: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  text-align: center;
  font-weight: 500;
}

.ct-feedback.success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  color: #4ade80;
  animation: ctFadeUp 0.4s ease forwards;
}

.ct-feedback.error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: rgba(197,2,2,0.12);
  border: 1px solid rgba(197,2,2,0.3);
  color: #ff8080;
  animation: ctFadeUp 0.4s ease forwards;
}

/* Shake erreur */
@keyframes ctShake {
  0%,100% { transform: translateX(0) scale(0.97); }
  20%     { transform: translateX(-8px) scale(0.97); }
  40%     { transform: translateX(8px) scale(0.97); }
  60%     { transform: translateX(-5px) scale(0.97); }
  80%     { transform: translateX(5px) scale(0.97); }
}
.ct-card.shake { animation: ctShake 0.45s ease !important; }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes ctFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ctSlideIn {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ctPulse {
  0%,100% { box-shadow: 0 0 6px rgba(197,2,2,0.5); transform: scale(1); }
  50%     { box-shadow: 0 0 14px rgba(197,2,2,0.8); transform: scale(1.25); }
}

@keyframes ctSpin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media screen and (max-width: 900px) {
  .ct-wrap { grid-template-columns: 1fr; }
  .ct-left {
    padding: 3.5rem 2rem 3rem;
    min-height: auto;
  }
  .ct-left::after { display: none; }
  .ct-right { padding: 2rem 1.4rem 4rem; }
  .ct-card { max-width: 100%; }
}

@media screen and (max-width: 768px) {
  .ct-right { padding: 1.8rem 1.2rem 3rem; }
  .ct-card { padding: 2rem 1.4rem; }
  .ct-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .ct-info-list { gap: 1rem; }
}

@media screen and (max-width: 500px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-left { padding: 2.5rem 1.4rem 2.5rem; }
  .ct-card { padding: 1.8rem 1.4rem; }
}
