/* =============================================
   CONTACT — page-contact.php
   Variables : style.css :root
   ============================================= */

/* ── Reset Astra (full-width, no-sidebar) ───────────────────── */
.ast-theme-transparent-header #masthead {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}
#content,
.site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.ast-container,
#primary {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ast-article-single,
.entry-content {
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* ── Layout commun ──────────────────────────────────────────── */
.ct-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ════════════════════════════════════════════════════════════════
   1. HERO — même pattern que À propos / Accompagnements
   ════════════════════════════════════════════════════════════════ */
.ah-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}

.ah-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ah-hero.is-loaded .ah-hero__bg { transform: scale(1); }

/* Override image pour la page contact */
.ct-hero__bg {
  background-image: url('../images/hero-contact.jpg');
  background-position: center 30%;
}

.ah-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 38, 20, 0.88) 0%,
    rgba(61, 107, 56, 0.66) 50%,
    rgba(125, 191, 120, 0.24) 100%
  );
}

.ah-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.ah-hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-primary-muted);
  margin-bottom: 1.5rem;
}

.ah-hero__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.5rem, 6vw, 4.25rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.15 !important;
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  border: none !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.25);
}
.ah-hero__title::after,
.ah-hero__title::before { content: none !important; }

.ah-hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

.ah-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.50);
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s;
  animation: ct-bounce 2.4s ease-in-out infinite;
}
.ah-hero__scroll:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.ah-hero__scroll svg { width: 1.1rem; height: 1.1rem; }

@keyframes ct-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Séparateur wave */
.section-sep {
  display: block;
  line-height: 0;
  overflow: hidden;
  width: 100%;
  margin-bottom: -2px;
  pointer-events: none;
}
.section-sep svg {
  display: block;
  width: calc(100% + 100px);
  height: 80px;
  margin-left: -50px;
}
.section-sep--1 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
}
.section-sep--1 svg { animation: ct-sway 8s ease-in-out infinite alternate; }

@keyframes ct-sway {
  from { transform: translateX(0); }
  to   { transform: translateX(-50px); }
}

@media (prefers-reduced-motion: reduce) {
  .ah-hero__scroll { animation: none; }
  .ah-hero.is-loaded .ah-hero__bg { transform: none; }
  .section-sep svg { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   2. SECTION FORMULAIRE + INFOS
   ════════════════════════════════════════════════════════════════ */
.ct-section {
  background: var(--clr-bg);
  padding: 6rem 0 7rem;
}

.ct-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ct-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}

.ct-heading {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  color: var(--clr-primary-dark) !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  border: none !important;
}
.ct-heading::after,
.ct-heading::before { content: none !important; }

.ct-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

/* ── Formulaire ──────────────────────────────────────────────── */
.ct-form-wrap {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(185, 217, 181, 0.5);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2.25rem;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ── Labels flottants ────────────────────────────────────────── */
.ct-field {
  position: relative;
}

.ct-input {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  border: 1.5px solid rgba(185, 217, 181, 0.7);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color 0.22s, box-shadow 0.22s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.ct-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(125, 191, 120, 0.18);
  background: #fff;
}
.ct-input.is-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10);
}

.ct-label {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  pointer-events: none;
  transition: top 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              font-size 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.18s;
  background: transparent;
  padding: 0 2px;
}

/* Label flotte : focus ou contenu présent */
.ct-input:focus ~ .ct-label,
.ct-input:not(:placeholder-shown) ~ .ct-label {
  top: -0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  background: #fff;
  padding: 0 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Label select — toujours flottant (select a toujours une valeur) */
.ct-label--up {
  top: -0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  background: #fff;
  padding: 0 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Select */
.ct-select {
  width: 100%;
  padding: 1rem 2.5rem 0.5rem 1rem;
  border: 1.5px solid rgba(185, 217, 181, 0.7);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.22s, box-shadow 0.22s;
  box-sizing: border-box;
}
.ct-field--select::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--clr-primary-dark);
  pointer-events: none;
}
.ct-select:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(125, 191, 120, 0.18);
  background: #fff;
}

/* Textarea */
.ct-textarea {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  border: 1.5px solid rgba(185, 217, 181, 0.7);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
  transition: border-color 0.22s, box-shadow 0.22s;
  box-sizing: border-box;
}
.ct-textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(125, 191, 120, 0.18);
  background: #fff;
}
.ct-textarea.is-error { border-color: #c0392b; }

/* Honeypot */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Feedback */
.ct-feedback {
  padding: 0.875rem 1.125rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.55;
  display: none;
}
.ct-feedback--success {
  display: block;
  background: #EBF5E9;
  border: 1px solid var(--clr-primary-muted);
  color: var(--clr-primary-dark);
}
.ct-feedback--error {
  display: block;
  background: #fdf0ee;
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: #c0392b;
}

/* Bouton submit */
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61, 107, 56, 0.30);
  transition: all 0.22s ease;
}
.ct-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #6aad65 0%, #2f5529 100%);
  box-shadow: 0 8px 24px rgba(61, 107, 56, 0.40);
  transform: translateY(-2px);
}
.ct-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.ct-btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.22s;
  flex-shrink: 0;
}
.ct-btn:hover:not(:disabled) .ct-btn__icon { transform: translateX(3px); }

.ct-btn__loader {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ct-spin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}
@keyframes ct-spin { to { transform: rotate(360deg); } }

.ct-btn.is-loading .ct-btn__text { display: none; }
.ct-btn.is-loading .ct-btn__icon { display: none; }
.ct-btn.is-loading .ct-btn__loader { display: block; }

/* ── Infos contact ───────────────────────────────────────────── */
.ct-info { padding-top: 0.5rem; }

.ct-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ct-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ct-info-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--clr-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.ct-info-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--clr-primary-dark);
}

.ct-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  display: block;
  margin-bottom: 0.2rem;
}
.ct-info-value {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  text-decoration: none;
  display: block;
}
a.ct-info-value:hover { color: var(--clr-primary-dark); }

/* ════════════════════════════════════════════════════════════════
   3. FAQ — CSS only via <details>/<summary>
   ════════════════════════════════════════════════════════════════ */
.ct-faq {
  background: var(--clr-bg-alt);
  padding: 6rem 0 7rem;
}

.ct-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.ct-faq-item {
  background: #fff;
  border: 1px solid rgba(185, 217, 181, 0.55);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s;
}
.ct-faq-item[open] { box-shadow: var(--shadow-md); }

.ct-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ct-faq-q::-webkit-details-marker { display: none; }
.ct-faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D6B38' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-faq-item[open] .ct-faq-q::after { transform: rotate(180deg); }
.ct-faq-q:hover { color: var(--clr-primary); }

.ct-faq-a {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ct-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .ah-hero               { padding: 6.5rem 1.25rem 5rem; min-height: 85vh; }
  .ct-section            { padding: 4.5rem 0 5rem; }
  .ct-faq                { padding: 4.5rem 0 5rem; }
  .ct-container          { padding: 0 1.25rem; }
  .ct-form-wrap          { padding: 1.75rem 1.25rem; }
  .ct-form__row          { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ah-hero { min-height: 100svh; }
}
