/* ============================================================
   contact.css — styles spécifiques à la page Contact
   ============================================================ */

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Hero ---- */
.contact-hero {
  position: relative;
  padding: 120px 1.5rem 80px;
  overflow: hidden;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(66, 3, 6, 0.5) 0%, transparent 60%);
}
.contact-hero-lines {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  z-index: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(186, 1, 1, 0.07) 60px,
    rgba(186, 1, 1, 0.07) 62px
  );
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-hero-title {
  font-family: var(--font-h);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
}
.contact-hero-title em {
  color: var(--red);
  font-style: normal;
}
.contact-hero-sub {
  font-family: var(--font-sh);
  font-size: 1.1rem;
  color: var(--gray);
  margin-top: 1.25rem;
  max-width: 480px;
}

.contact-main {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* ---- Contact cards ---- */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid rgba(186, 1, 1, 0.2);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
  transition:
    border-color 0.3s,
    background 0.3s;
}
.contact-card:hover {
  border-color: var(--red);
  background: rgba(186, 1, 1, 0.05);
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
}
.contact-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--gray);
  line-height: 1;
}
.contact-card-icon svg {
  display: block;
  transition: color 0.3s;
}
.contact-card:hover .contact-card-icon svg {
  color: var(--red);
}
.contact-card-label {
  font-family: var(--font-h);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.contact-card-value {
  font-family: var(--font-sh);
  font-size: 1.1rem;
  color: var(--white);
}
.contact-card-value a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-card-value a:hover {
  color: var(--red);
}
.contact-card-desc {
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.4rem;
}
.contact-card-btn {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-h);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: var(--red);
  border: 2px solid var(--red);
  padding: 0.6rem 1.5rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition:
    background 0.2s,
    color 0.2s;
}
.contact-card-btn:hover {
  background: transparent;
  color: var(--red);
}

/* ---- Form ---- */
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-title {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}
.form-title em {
  color: var(--red);
  font-style: normal;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-family: var(--font-h);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(211, 210, 210, 0.2);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 0.9rem;
  padding: 0.875rem 1rem;
  outline: none;
  width: 100%;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  background: rgba(186, 1, 1, 0.04);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray);
  opacity: 0.6;
}
.form-textarea {
  resize: vertical;
  min-height: 130px;
}
.form-submit {
  font-family: var(--font-h);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  padding: 0.875rem 2rem;
  cursor: pointer;
  width: 100%;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition:
    background 0.2s,
    color 0.2s,
    clip-path 0.2s;
}
.form-submit:hover {
  background: transparent;
  color: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.form-note {
  font-family: var(--font-b);
  font-size: 0.75rem;
  color: var(--gray);
  opacity: 0.8;
  text-align: center;
}
.form-success {
  display: none;
  background: rgba(186, 1, 1, 0.1);
  border: 1px solid var(--red);
  padding: 1.5rem;
  text-align: center;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.form-success.show {
  display: block;
}
.form-success p {
  font-family: var(--font-sh);
  font-size: 1.1rem;
  color: var(--white);
}
.form-success span {
  color: var(--red);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .contact-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
