
/* =========================
   VARIABLES
   ========================= */
:root{
  --bg-dark: #080e1a;
  --accent:  #5a96ff;
  --accent2: #a78bfa;
  --glass:   rgba(8, 14, 28, .72);
  --border:  rgba(255,255,255,.09);
  --text-muted: rgba(255,255,255,.58);
}

/* =========================
   RESET / BASE
   ========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* =========================
   BACKGROUND
   ========================= */
.bg-video {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -3; pointer-events: none;
}
.page-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #060b16 0%, #0a1020 60%, #080e1a 100%);
  z-index: -2;
}
.bg-logo {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover; object-position: center;
  opacity: .04; z-index: -1; pointer-events: none;
}

/* =========================
   I18N VISIBILITY
   ========================= */
[data-lang]{ display: none; }
html[lang="fr"] [data-lang="fr"],
html[lang="en"] [data-lang="en"],
html[lang="ar"] [data-lang="ar"] { display: inline; }

/* =========================
   PAGE LAYOUT
   ========================= */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 5% 60px;
  flex: 1 0 auto;
}

.page-contact .page-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

/* =========================
   SPLIT GRID
   ========================= */
.page-contact .contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  gap: 0;
}

.page-contact .contact-left,
.page-contact .contact-right {
  display: flex;
  align-items: stretch;
  padding: 48px 40px;
}

.page-contact .contact-left  { padding-right: 24px; }
.page-contact .contact-right { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.06); }

/* =========================
   CARDS
   ========================= */
.page-contact .contact-card {
  width: 100%;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(90,150,255,.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 36px 32px;
  box-shadow: 0 8px 48px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}

/* Halo d'ambiance */
.page-contact .contact-card::before {
  content: "";
  position: absolute;
  top: -60px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(90,150,255,.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-contact .contact-form-card::before {
  background: radial-gradient(circle, rgba(167,139,250,.08), transparent 65%);
}

/* =========================
   EYEBROW
   ========================= */
.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.contact-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1px;
  flex-shrink: 0;
}
.contact-eyebrow--form { color: var(--accent2); }
.contact-eyebrow--form::before {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

/* =========================
   TITLES
   ========================= */
.page-contact .contact-card-header {
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

.page-contact .contact-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.96);
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-contact .contact-subtitle {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =========================
   IMAGE
   ========================= */
.page-contact .contact-media {
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

.page-contact .home-image-rotator {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  position: relative;
}
.page-contact .home-image-rotator::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,14,28,.65) 100%);
  pointer-events: none;
}

.page-contact .home-image-rotator > img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================
   INFO ITEMS (icônes)
   ========================= */
.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(90,150,255,.05);
  border: 1px solid rgba(90,150,255,.14);
  border-radius: 14px;
  transition: background .2s, border-color .2s;
}
.contact-info-item:hover {
  background: rgba(90,150,255,.1);
  border-color: rgba(90,150,255,.3);
}

.contact-info-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: rgba(90,150,255,.14);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-info-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
}
.contact-info-value a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: color .2s;
}
.contact-info-value a:hover { color: var(--accent); }

/* =========================
   BOUTON ITINÉRAIRE
   ========================= */
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(90,150,255,.4);
  background: rgba(90,150,255,.1);
  color: rgba(180,210,255,.9);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-map:hover {
  background: rgba(90,150,255,.2);
  border-color: rgba(90,150,255,.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90,150,255,.2);
}

/* =========================
   FORMULAIRE
   ========================= */
.page-contact .contact-form-pro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
  position: relative; z-index: 1;
}

.page-contact .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.page-contact .field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-contact .contact-form-pro input,
.page-contact .contact-form-pro textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.page-contact .contact-form-pro input::placeholder,
.page-contact .contact-form-pro textarea::placeholder {
  color: rgba(255,255,255,.3);
  font-size: 14px;
}

.page-contact .contact-form-pro input:focus,
.page-contact .contact-form-pro textarea:focus {
  border-color: rgba(90,150,255,.65);
  background: rgba(90,150,255,.06);
  box-shadow: 0 0 0 3px rgba(90,150,255,.12);
}

.page-contact .contact-form-pro textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

/* =========================
   BOUTON ENVOYER
   ========================= */
.page-contact .form-actions {
  margin-top: 4px;
}

.page-contact .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  border: 1px solid rgba(90,150,255,.55);
  background: linear-gradient(135deg, rgba(90,150,255,.30), rgba(130,100,255,.20));
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(90,150,255,.18);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  width: 100%;
}
.page-contact .btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(90,150,255,.42), rgba(130,100,255,.30));
  border-color: rgba(90,150,255,.75);
  box-shadow: 0 8px 28px rgba(90,150,255,.3);
}

/* =========================
   SUCCESS / ERROR
   ========================= */
.page-contact .form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(100,220,130,.1);
  border: 1px solid rgba(100,220,130,.3);
  color: #7CFC9A;
  font-weight: 600;
  font-size: 14px;
}

.page-contact .form-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,107,107,.1);
  border: 1px solid rgba(255,107,107,.3);
  color: #ff8a8a;
  font-size: 14px;
}

/* =========================
   PHONE LINK
   ========================= */
.phone a {
  color: inherit;
  text-decoration: none;
}
.phone a:hover { text-decoration: underline; }

/* =========================
   MOBILE
   ========================= */
@media (max-width: 900px) {
  .page-contact .contact-split {
    grid-template-columns: 1fr;
  }
  .page-contact .contact-left,
  .page-contact .contact-right {
    padding: 28px 20px;
  }
  .page-contact .contact-left  { padding-right: 20px; }
  .page-contact .contact-right { padding-left: 20px; border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
  .page-contact .contact-form-pro textarea { min-height: 140px; }
}
