/* ============================================================
   AIKO GRAPHIC — contact.css
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #000000;
  --bg-card: #1c1f24;
  --bg-input: #1c1f24;
  --border-input: #2e3238;
  --text-white: #f0f4f8;
  --text-muted: #8a9099;
  --text-label: #6b7280;
  --accent: #00DAF3;
  --accent-hover: #02d3eb;
  --icon-bg: #23272e;
  --radius: 12px;
  --font-main: 'DM Sans', sans-serif;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

/* ── Page principale ── */
.contact-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
  align-items: flex-start;
}

/* ── Colonne gauche ── */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.contact-title span {
  color: #C3F5FF;
}

/* ── Infos de contact ── */
.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-white);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-white);
}

/* ── Réseaux sociaux ── */
.contact-social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-social-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
}

.contact-social-links {
  display: flex;
  gap: 28px;
}

.contact-social-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.contact-social-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.contact-social-links a:hover {
  color: var(--accent);
}

.contact-social-links a:hover::after {
  width: 100%;
}

/* ── Colonne droite — Formulaire ── */
.contact-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 48px 44px 44px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Champs du formulaire ── */
.form-field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-input);
  padding: 20px 0;
  position: relative;
}

.form-field:first-child {
  padding-top: 0;
}

.form-field::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.form-field:focus-within::after {
  width: 100%;
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  width: 100%;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  font-size: 1rem;
}

.form-field textarea {
  min-height: 100px;
  line-height: 1.6;
}

/* ── Bouton Envoyer — Spin border style ── */
.contact-submit-wrap {
  margin-top: 36px;
}

.btn-submit {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  padding: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2),
              box-shadow 0.3s ease;
}

/* Conic gradient border — spinning */
.btn-submit::before {
  content: '';
  position: absolute;
  inset: -1000%;
  background: conic-gradient(
    from 90deg at 50% 50%,
    #C3F5FF 0%,
    #00c8e0 30%,
    #005a66 60%,
    #00E5FF 100%
  );
  animation: btnSpin 2.5s linear infinite;
}

@keyframes btnSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Inner face — gradient background */
.btn-submit__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 8px;
  padding: 18px 28px;
  background: linear-gradient(105.87deg, #C3F5FF 0%, #00E5FF 100%);
  color: #005a66;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, background 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3),
              0 0 40px rgba(0, 229, 255, 0.1);
}

.btn-submit:hover .btn-submit__inner {
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.2);
}

.btn-submit__inner svg {
  width: 18px;
  height: 18px;
  stroke: #005a66;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2);
}

.btn-submit:hover .btn-submit__inner svg {
  transform: translateX(6px);
}

/* ── Message de confirmation ── */
.form-success {
  display: none;
  margin-top: 20px;
  text-align: center;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contact-page    { padding: 60px 40px; }
  .contact-inner   { gap: 56px; }
}

@media (max-width: 900px) {
  .contact-page {
    padding: 48px 24px 60px;
    align-items: flex-start;
    min-height: unset;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-right {
    justify-content: stretch;
  }

  .contact-form-card {
    max-width: 100%;
    padding: 36px 28px;
  }

  .contact-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }
}

@media (max-width: 480px) {
  .contact-page { padding: 36px 16px 48px; }

  .contact-title { font-size: clamp(1.7rem, 9vw, 2.4rem); }

  .contact-form-card { padding: 24px 16px; }

  .contact-social-links { flex-wrap: wrap; gap: 16px; }

  .btn-submit { padding: 16px 20px; font-size: .9rem; }
}

/* ============================================================
   ANIMATIONS D'APPARITION
   ============================================================ */

/* Colonne gauche : arrive depuis le bas */
.contact-anim-left {
  opacity: 0;
  transform: translateY(32px);
  animation: contactFadeUpCol 0.7s cubic-bezier(.22,.68,0,1.2) 0.1s forwards;
}

@keyframes contactFadeUpCol {
  to { opacity: 1; transform: translateY(0); }
}

/* Éléments individuels avec délai variable */
.contact-anim-item {
  opacity: 0;
  transform: translateY(20px);
  animation: contactFadeUp 0.65s cubic-bezier(.22,.68,0,1.2) var(--delay, 0.1s) forwards;
}

@keyframes contactFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Colonne droite : arrive depuis le bas */
.contact-anim-right {
  opacity: 0;
  transform: translateY(32px);
  animation: contactFadeUpCol 0.7s cubic-bezier(.22,.68,0,1.2) 0.3s forwards;
}