/* Contact Page Styles - Visuelle et efficace */

/* Container responsive */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* Hero Contact */
.contact-hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

@media (min-width: 768px) {
  .contact-hero {
    height: 70vh;
  }
}

.contact-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contact-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(32,32,32,0.3) 50%, rgba(32,32,32,0.6) 100%);
  z-index: 2;
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
}

.contact-hero-marker {
  margin-bottom: 2rem;
}

.contact-hero-marker span {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #202020;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.contact-hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin: 0 0 2rem 0;
}

.contact-hero-anchor {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-hero-anchor:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Contact Options - Capsules */
.contact-options {
  padding: 4rem 0;
  margin-top: -2rem;
}

.contact-options-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

.contact-option-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-option-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.35);
}

.contact-option-icon {
  font-size: 2rem;
  color: #202020;
}

.contact-qr-code {
  width: 120px;
  height: 120px;
  border-radius: 0.75rem;
  object-fit: cover;
  margin: 0 auto;
}

.contact-option-title {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #202020;
  margin: 0;
}

.contact-option-text {
  font-size: 0.875rem;
  color: #374151;
  margin: 0;
}

/* Formulaire Contact */
.contact-form {
  padding: 4rem 0;
}

.contact-form-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 3rem;
  }
}

.contact-form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form-field-full {
  grid-column: 1 / -1;
}

.contact-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202020;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form-input {
  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  font-size: 1rem;
  color: #202020;
  background: #ffffff;
  transition: all 0.3s ease;
}

.contact-form-input:focus {
  outline: none;
  border-color: #202020;
  box-shadow: 0 0 0 2px rgba(12, 12, 12, 0.1);
}

.contact-form-input::placeholder {
  color: #9CA3AF;
}

/* Style amélioré pour le select */
.contact-form-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.contact-form-select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  font-size: 1rem;
  color: #202020;
  background: #ffffff;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  width: 100%;
  font-weight: 500;
}

.contact-form-select:focus {
  outline: none;
  border-color: #202020;
  box-shadow: 0 0 0 2px rgba(12, 12, 12, 0.1);
}

.contact-form-select:hover {
  border-color: #202020;
}

.contact-form-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #202020;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.contact-form-select-wrapper:focus-within .contact-form-select-icon {
  transform: translateY(-50%) rotate(180deg);
}

.contact-form-select option {
  padding: 0.5rem;
  background: #ffffff;
  color: #202020;
  font-weight: 500;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

.contact-form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid #D1D5DB;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-form-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(12, 12, 12, 0.1);
}

.contact-form-consent-label {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
}

.contact-form-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #202020;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
}

.contact-form-btn:hover:not(:disabled) {
  background: #333333;
  transform: translateY(-0.125rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form-btn-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}

.contact-form-status {
  font-size: 0.875rem;
  margin: 0;
}

.contact-form-status-loading {
  color: #374151;
}

.contact-form-status-success {
  color: #10B981;
  font-weight: 600;
}

.contact-form-status-error {
  color: #EF4444;
  font-weight: 600;
}

.contact-form-error {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 0.25rem;
}

/* Contact Info - Split */
.contact-info {
  padding: 4rem 0;
}

.contact-info-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

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

.contact-info-image {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.contact-info-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-info-content {
    padding: 3rem;
  }
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #202020;
  margin: 0;
}

.contact-info-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info-item strong {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7280;
}

.contact-info-item span {
  font-size: 1rem;
  color: #202020;
  font-weight: 500;
}

.contact-info-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-info-chip {
  padding: 0.5rem 1rem;
  background: #F3F4F6;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* FAQ Contact - Design amélioré */
.contact-faq {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.contact-faq-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-align: center;
  margin: 0 0 3rem 0;
}

.contact-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-faq-item {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.contact-faq-item.active {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: #202020;
  background: transparent;
  border: none;
  text-align: left;
  transition: all 0.3s ease;
}

.contact-faq-question:hover {
  background: #F9FAFB;
}

.contact-faq-question-text {
  flex: 1;
}

.contact-faq-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #6B7280;
}

.contact-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-faq-answer-content {
  padding: 0 2rem 1.5rem;
}

.contact-faq-answer p {
  color: #374151;
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* Carte Interactive */
.contact-map {
  padding: 4rem 0;
}

.contact-map-card {
  background: #ffffff;
  padding: 10px;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-map-frame {
  position: relative;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-map-frame {
    height: 440px;
  }
}

.contact-map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.contact-map-badge span {
  background: #ffffff;
  color: #202020;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Puces carrousel contact options - cachées par défaut (desktop) */
.contact-options-dots {
  display: none;
}

/* Focus visible pour accessibilité */
.contact-option-card:focus-visible,
.contact-form-input:focus-visible,
.contact-form-checkbox:focus-visible,
.contact-form-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero {
    height: 60vh;
  }

  .contact-hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .contact-options {
    padding: 3rem 0;
  }

  /* Contact options - Carrousel horizontal mobile */
  .contact-options-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0 1rem;
    scrollbar-width: none;
    margin-bottom: 1rem;
  }

  .contact-options-grid::-webkit-scrollbar {
    display: none;
  }

  .contact-option-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
    margin: 0 8px;
  }

  .contact-option-card:first-child {
    margin-left: 0;
  }

  .contact-option-card:last-child {
    margin-right: 0;
  }

  /* Puces indicatrices contact options */
  .contact-options-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
  }

  .contact-options-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .contact-options-dots .dot.active {
    background: #ffffff;
    transform: scale(1.3);
  }

  .contact-form,
  .contact-info,
  .contact-faq,
  .contact-map {
    padding: 3rem 0;
  }

  .contact-faq-title {
    font-size: 1.75rem;
  }

  .contact-faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
  }

  .contact-faq-answer-content {
    padding: 0 1.5rem 1.25rem;
  }

  .contact-faq-answer p {
    font-size: 0.9rem;
  }
}

/* Animations réduites */
@media (prefers-reduced-motion: reduce) {
  .contact-option-card,
  .contact-form-btn,
  .contact-hero-anchor,
  .contact-faq-icon {
    transition: none;
    transform: none;
    animation: none;
  }
}
