/* ===== Contact • style épuré hi-tech (inspiré de /test) ===== */
/* S'appuie sur :root (déjà défini) : --bg-color, --text, --text-light, --accent */

:root {
  /* tokens locaux */
  --panel-1: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.045);
  --stroke-1: rgba(240, 240, 240, 0.25);
  --stroke-2: rgba(240, 240, 240, 0.35);
  --ring: rgba(204, 11, 13, 0.20);
  --glow: -4px 4px 14px rgba(204, 11, 13, 0.14);
}

/* ===== Arrière-plan (canvas + diagonales “WWW”) ===== */
.bg-weblines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-weblines canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.bg-weblines .diag {
  position: absolute;
  inset: 0;
  opacity: .25;
  background:
    repeating-linear-gradient(115deg, rgba(204, 11, 13, 0.18) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(245deg, rgba(204, 11, 13, 0.12) 0 1px, transparent 1px 180px);
  mix-blend-mode: screen;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===================================================================================
   0. Câlage Custom Pointer
   =================================================================================== */


.custom-cursor,
.cursor-follower {
  transform: translate(-50% - 50%);
}

/* ===================================================================================
   1. HERO SECTION
   =================================================================================== */

.hero {
  height: 100vh;
  padding-top: 10vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 6rem);
  text-align: center;
}

.hero-title span {
  color: var(--accent);
}



.hero .description {
  color: var(--text-light);
  margin-top: 18px;
}

/* ===== Bandeau réassurance 3 puces ===== */
.reassurance {
  border-top: 1px solid var(--stroke-1);
  border-bottom: 1px solid var(--stroke-1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006));
  padding: 12px 0;
}

@media (min-width:768px) {
  .reassurance {
    padding: 14px 0;
  }
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 5rem;
}

@media (min-width: 768px) {
  .hero-bullets {
    flex-direction: row;
    justify-content: center;
  }
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
}

.bullet-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
}


/* ===================================================================================
   2. SECTION FORMULAIRE
   =================================================================================== */

/* ===== Contact / Form ===== */
#contact {
  scroll-margin-top: 96px;
}

.contact {
  padding: 28px 0 48px;
}

@media (min-width:768px) {
  .contact {
    padding: 36px 0 64px;
  }
}

.contact .description {
  color: var(--text-light);
  margin-bottom: 16px;
}

#contact {
  scroll-margin-top: 100px
}

.form-container {
  width: 100%;
  height: 100%;
  background-image: url("../img/curved-lines.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.25rem;
}

.alert {
  border: 1px solid var(--accent);
  /* border-left: 3px solid var(--accent); */
  border-radius: 0.25rem;
  padding: 12px 14px;
  margin: 12px 0 18px;
  background: linear-gradient(333deg, rgba(204, 11, 13, 0.15), rgba(204, 11, 13, 0.025));
}

.alert-success {
  border-color: #1db954;
  background: linear-gradient(333deg, rgba(29, 185, 84, 0.15), rgba(29, 185, 84, 0.025));
}

/* Carte formulaire */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
  background: linear-gradient(333deg, rgba(0, 0, 0, 0.21), rgba(0, 0, 0, 0.49));
  /* background: linear-gradient(180deg, var(--panel-2), var(--panel-1)); */
  border: 1px solid var(--stroke-1);
  border-radius: 0.25rem;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: box-shadow .28s ease, border-color .28s ease, transform .22s ease;
}

@media (min-width:768px) {
  .contact-form {
    gap: 16px;
    padding: 20px;
  }
}

.contact-form:hover {
  border-color: var(--stroke-2);
  box-shadow: var(--glow);
  transform: translateZ(-200px);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.field-group label {
  font-size: .95rem;
  color: var(--text);
  letter-spacing: .2px;
}

.field-group .help {
  color: var(--text-light);
  font-size: .85rem;
  margin-top: 4px;
}

/* Champs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 0.25rem;
  border: 1px solid var(--stroke-1);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .16s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="tel"]:hover,
.contact-form textarea:hover {
  border-color: var(--stroke-2);
  /* box-shadow: var(--glow); */
}

@media (min-width:768px) {

  .contact-form input[type],
  .contact-form textarea {
    padding: 13px 16px;
  }
}

.contact-form textarea {
  min-height: 200px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(186, 186, 186, 0.65);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--text-light);
  /* box-shadow: 0 0 0 2px var(--ring), inset 0 0 0 1px rgba(255, 255, 255, 0.05); */
  transform: translateY(-1px);
}

/* Ligne d'accent animée au focus */
.field-group:focus-within::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  animation: sweep 900ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes sweep {
  from {
    transform: translateX(30%) scaleX(.6);
    opacity: .3;
  }

  to {
    transform: translateX(0) scaleX(1);
    opacity: 1;
  }
}

/* CGU */
.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px dashed var(--stroke-1);
  border-radius: 0.25rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
}

.field-check input[type="checkbox"] {
  transform: translateY(3px);
  accent-color: var(--accent);
}

.field-check a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted rgba(240, 240, 240, 0.25);
}

.field-check a:hover,
.field-check a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

/* Bouton */
.actions {
  margin-top: 1rem;
}


/* ===================================================================================
   3. SECTION MINI-FAQ
   =================================================================================== */

.mini-faq {
  padding: 24px 0 56px;
}

@media (min-width:768px) {
  .mini-faq {
    padding: 28px 0 72px;
  }
}

.faq-container {
    width: 100%;
    margin: 0 auto;
}

.contact-link {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
    text-decoration-color: var(--text);
}

.faq-item {
    background: linear-gradient(135deg,
            rgba(40, 40, 40, 0.3) 0%,
            rgba(20, 20, 20, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(204, 11, 13, 0.05) 0%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.faq-item:hover {
    border-color: rgba(204, 11, 13, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(204, 11, 13, 0.2);
}

.faq-item.active::before {
    opacity: 1;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--title-font);
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 25px 30px 25px 30px;
}

.faq-answer p {
    margin: 0;
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-link {
  margin: 4rem 0 10rem;
  color: var(--text-light);
}

.faq-link a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted rgba(240, 240, 240, 0.25);
}

.faq-link a:hover,
.faq-link a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

/* Accessibilité / perf */
.alert:focus-visible {
  /* outline: 2px solid var(--accent); */
  outline: none;
  outline-offset: 2px;
}
.alert:focus:not(:focus-visible) {
  outline: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}