/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
  background-image: url(./assets/images/background_crop.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Grain animé global */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.15"/></svg>');
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  z-index: 9999;
  animation: grain-animation 8s steps(10) infinite;
}

@keyframes grain-animation {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(-10%, 5%); }
  70% { transform: translate(8%, 10%); }
  90% { transform: translate(-3%, 3%); }
}

/* Navigation */
.contact-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5vw;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
}

.back-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.back-btn:hover {
  color: #ffffff;
}

.back-btn:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10vw;
  position: relative;
}

.hero-content {
  overflow: hidden;
}

.hero-line {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
}

.hero-word {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  opacity: 0;
  transform: translateY(150%);
  display: inline-block;
}

.hero-word-accent {
  color: transparent;
  -webkit-text-stroke: 2px #ffffff;
  /*text-stroke: 2px #ffffff;*/
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
}

.scroll-hint span {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 100%);
  animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Container principal */
.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10vh 5vw;
}

/* Section intro */
.section-intro {
  margin-bottom: 6vh;
  opacity: 0;
  transform: translateY(30px);
}

.intro-text {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
}

/* Formulaire */
.form-section {
  margin-bottom: 15vh;
}

.contact-form {
  max-width: 800px;
  opacity: 0;
  transform: translateY(40px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.form-field {
  position: relative;
  margin-bottom: 3rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.field-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.4s ease;
}

.form-field input:focus ~ .field-line,
.form-field textarea:focus ~ .field-line {
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

/* Bouton submit */
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 3rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.13);
  transition: left 0.4s ease;
   backdrop-filter: blur(15.9px);
  -webkit-backdrop-filter: blur(15.9px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn:hover {
  color: #ffffff;
}

.submit-btn:hover .btn-icon svg {
  stroke: #ffffff;
  transform: translateX(5px) rotate(15deg);
}

.btn-icon svg {
  transition: all 0.3s ease;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Message formulaire */
.form-message {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
  opacity: 1;
  transform: translateY(0);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  opacity: 1;
  transform: translateY(0);
}

/* Section liens */
.links-section {
  margin-bottom: 15vh;
  opacity: 0;
  transform: translateY(40px);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4vh;
  font-weight: 700;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: all 0.3s ease;
}

.contact-link::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.4s ease;
}

.contact-link:hover::before {
  width: 100%;
}

.contact-link:hover {
  padding-left: 1rem;
}

.contact-link:hover .link-arrow {
  transform: translateX(10px);
}

.link-icon {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.link-text {
  flex: 1;
}

.link-arrow {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

/* Disponibilité */
.availability-section {
  opacity: 0;
  transform: translateY(40px);
  margin-bottom: 10vh;
}

.availability-card {
  max-width: 800px;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(15.9px);
  -webkit-backdrop-filter: blur(15.9px);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.availability-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.contact-footer {
  padding: 4vh 5vw;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 0 5vw;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-link {
    font-size: 1rem;
  }

  .availability-card {
    padding: 2rem;
  }
}
