/* === STRUCTURE GLOBALE === */
.contact-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  padding-top: 8rem;
  padding-bottom: 5rem;
}

[data-theme='dark'] .contact-page {
  background: linear-gradient(135deg, #121929 0%, #0f172a 100%);
}

.contact-container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .contact-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-container {
    padding: 0 2rem;
  }
}

/* === HEADER AVEC BADGE ET TITRE === */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.contact-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(3rem);
  opacity: 0.3;
}

.gradient-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: pulse-blob 3s ease-in-out infinite;
}

[data-theme='dark'] .gradient-blob {
  mix-blend-mode: screen;
}

.gradient-blob-1 {
  top: 0;
  left: 25%;
  background: #0170a8;
}

.gradient-blob-2 {
  top: 0;
  right: 25%;
  background: #19b8d8;
  animation-delay: 1s;
}

@keyframes pulse-blob {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

.contact-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  position: relative;
  animation: badge-entrance 0.5s ease-out 0.2s backwards;
}

@keyframes badge-entrance {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.badge-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0170a8, #19b8d8);
  filter: blur(2rem);
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
}

.badge-content {
  position: relative;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(
    90deg,
    rgba(1, 112, 168, 0.1),
    rgba(25, 184, 216, 0.1)
  );
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  border: 1px solid rgba(1, 112, 168, 0.2);
}

[data-theme='dark'] .badge-content {
  background: linear-gradient(
    90deg,
    rgba(1, 112, 168, 0.15),
    rgba(25, 184, 216, 0.15)
  );
  border-color: rgba(25, 184, 216, 0.3);
}

.badge-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(90deg, #0170a8, #19b8d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  background: linear-gradient(
    90deg,
    var(--color-text) 0%,
    #0170a8 50%,
    var(--color-text) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-in-up 0.6s ease-out;
}

[data-theme='dark'] .contact-title {
  background: linear-gradient(90deg, #ffffff 0%, #19b8d8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-description {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 42rem;
  margin: 0 auto;
  animation: fade-in-up 0.6s ease-out 0.1s backwards;
}

[data-theme='dark'] .contact-description {
  color: #94a3b8;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === GRILLE PRINCIPALE === */
.contact-grid {
  display: grid;
  gap: 3rem;
  animation: fade-in 0.6s ease-out 0.3s backwards;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === SIDEBAR : COORDONNÉES === */
.contact-sidebar {
  position: relative;
}

@media (min-width: 1024px) {
  .contact-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.sidebar-wrapper {
  position: relative;
  transition: transform 0.3s ease;
}

.sidebar-wrapper:hover {
  transform: translateY(-4px);
}

.sidebar-glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(135deg, #0170a8, #19b8d8);
  border-radius: 1.5rem;
  filter: blur(2rem);
  opacity: 0.2;
  transition: opacity 0.5s ease;
}

.sidebar-wrapper:hover .sidebar-glow {
  opacity: 0.3;
}

.sidebar-content {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(209, 213, 219, 0.5);
}

[data-theme='dark'] .sidebar-content {
  background: rgba(18, 25, 41, 0.8);
  border-color: rgba(55, 65, 81, 0.5);
}

.sidebar-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: linear-gradient(
    135deg,
    rgba(1, 112, 168, 0.05),
    rgba(25, 184, 216, 0.05)
  );
  border-radius: 50%;
  filter: blur(3rem);
  z-index: -1;
}

.sidebar-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.title-bar {
  width: 0.25rem;
  height: 2rem;
  background: linear-gradient(180deg, #0170a8, #19b8d8);
  border-radius: 9999px;
}

/* === LISTE DES COORDONNÉES === */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  position: relative;
  cursor: default;
  transition: transform 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(5px);
}

.info-hover-bg {
  position: absolute;
  inset: -0.5rem;
  background: linear-gradient(
    90deg,
    rgba(1, 112, 168, 0.1),
    rgba(25, 184, 216, 0.1)
  );
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-info-item:hover .info-hover-bg {
  opacity: 1;
}

.info-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent);
  backdrop-filter: blur(4px);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

[data-theme='dark'] .info-content {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), transparent);
}

.contact-info-item:hover .info-content {
  border-color: rgba(1, 112, 168, 0.2);
}

.info-icon-wrapper {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0170a8, #19b8d8);
  border-radius: 1rem;
  filter: blur(12px);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.contact-info-item:hover .icon-glow {
  opacity: 0.5;
}

.info-icon {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0170a8, #19b8d8);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

.contact-info-item:hover .info-icon {
  transform: scale(1.1) rotate(3deg);
}

.info-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.info-text {
  flex: 1;
}

.info-label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 0.9375rem;
  color: #374151;
}

[data-theme='dark'] .info-value {
  color: #d1d5db;
}

.info-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

[data-theme='dark'] .info-subtitle {
  color: #9ca3af;
}

/* === SECTION "POURQUOI NOUS CHOISIR" === */
.contact-why-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid;
  border-image: linear-gradient(
      90deg,
      transparent,
      rgba(209, 213, 219, 0.5),
      transparent
    )
    1;
  position: relative;
}

[data-theme='dark'] .contact-why-section {
  border-image: linear-gradient(
      90deg,
      transparent,
      rgba(75, 85, 99, 0.5),
      transparent
    )
    1;
}

.why-bg {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(
    135deg,
    rgba(1, 112, 168, 0.05),
    rgba(25, 184, 216, 0.05)
  );
  border-radius: 1rem;
  filter: blur(2rem);
}

.why-content {
  position: relative;
}

.why-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme='dark'] .why-title {
  color: #e5e7eb;
}

.why-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: linear-gradient(135deg, #0170a8, #19b8d8);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  transition: color 0.3s ease;
}

[data-theme='dark'] .why-item {
  color: #d1d5db;
}

.why-item:hover {
  color: var(--color-text);
}

.why-check-wrapper {
  position: relative;
  flex-shrink: 0;
}

.why-check-glow {
  position: absolute;
  inset: 0;
  background: #0170a8;
  border-radius: 0.5rem;
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-item:hover .why-check-glow {
  opacity: 0.5;
}

.why-check {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(1, 112, 168, 0.2),
    rgba(25, 184, 216, 0.2)
  );
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-check svg {
  width: 0.75rem;
  height: 0.75rem;
  color: #0170a8;
}

[data-theme='dark'] .why-check svg {
  color: #19b8d8;
}

.why-text {
  transition: color 0.3s ease;
}

.why-item:hover .why-text {
  color: var(--color-text);
}

/* === RESPONSIVE - TABLETTE (900px) === */
@media (max-width: 900px) {
  .gradient-blob {
    width: 16rem;
    height: 16rem;
  }
}

/* === RESPONSIVE - MOBILE (400px) === */
@media (max-width: 400px) {
  .gradient-blob {
    width: 12rem;
    height: 12rem;
  }
}