/* ============================================================
   HOOP N'FIT — CONTACT CSS
   Styles de la page Contact (page-contact.php), chargés avec home.css
   sur cette page seulement. home.css fournit la base (.hnf-home, titres,
   boutons) ; ici, uniquement les sections propres à la page, préfixées .ct-.
   Le formulaire (.hnf-form) garde ses règles de main.css partout ailleurs :
   son habillage sombre ne vaut que sous .ct-form.
   ============================================================ */

/* --- haut de page : le texte à gauche, le formulaire à droite --- */
.hnf-home .ct-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 620px); gap: 80px; align-items: start; padding: 160px var(--hnf-edge) 96px; background: var(--hnf-black); }
.ct-top__txt { max-width: 560px; }
.ct-lead { font-size: 20px; color: var(--hnf-muted); max-width: 24em; margin-top: 22px; }
.ct-who { display: grid; margin-top: 36px; border-top: 1px solid var(--hnf-line); }
.ct-who div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--hnf-line); }
.ct-who b { font-family: var(--font); text-transform: uppercase; font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.ct-who span { color: var(--hnf-muted); font-size: 17px; }
.ct-direct { margin-top: 30px; }
.ct-direct small { display: block; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 700; color: var(--hnf-muted); margin-bottom: 8px; }
.ct-mail { font-family: var(--font); font-size: 30px; font-weight: 700; line-height: 1.1; border-bottom: 2px solid var(--orange); }
.ct-mail:hover { color: var(--orange); }
.ct-soc { display: flex; gap: 18px; margin-top: 20px; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; font-weight: 700; }
.hnf-home .ct-soc a { color: var(--hnf-muted); border-bottom: 1px solid var(--hnf-line); padding-bottom: 2px; }
.hnf-home .ct-soc a:hover { color: var(--hnf-white); border-color: var(--orange); }

/* --- le formulaire : mêmes champs, surface sombre et filets --- */
.ct-form { background: var(--hnf-black2); border: 1px solid var(--hnf-line); padding: 36px; scroll-margin-top: 120px; }
.hnf-home .ct-form h2 { font-size: 30px; margin-bottom: 6px; }
.ct-form__sub { color: var(--hnf-muted); font-size: 16px; margin-bottom: 26px; }
.ct-form .hnf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; max-width: none; margin: 0; font-family: var(--hnf-fb); color: var(--hnf-white); }
.ct-form .hnf-form .hnf-field { grid-column: 1 / -1; min-width: 0; margin-bottom: 0; }
/* prénom et e-mail sur une ligne */
.ct-form .hnf-form .hnf-field:nth-of-type(1), .ct-form .hnf-form .hnf-field:nth-of-type(2) { grid-column: span 1; }
.ct-form .hnf-form label { font-family: var(--font); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; font-weight: 700; color: var(--hnf-muted); margin-bottom: 8px; }
.ct-form .hnf-form input[type="text"], .ct-form .hnf-form input[type="email"], .ct-form .hnf-form select, .ct-form .hnf-form textarea { background: var(--hnf-black); border: 1px solid rgba(244, 246, 248, 0.24); color: var(--hnf-white); font-family: var(--hnf-fb); font-size: 17px; line-height: 1.3; padding: 13px 14px; border-radius: 6px; }
.ct-form .hnf-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hnf-muted) 50%), linear-gradient(135deg, var(--hnf-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.ct-form .hnf-form select option { background: #11171F; color: #F4F6F8; }
.ct-form .hnf-form textarea { min-height: 150px; }
.ct-form .hnf-form input:hover, .ct-form .hnf-form select:hover, .ct-form .hnf-form textarea:hover { border-color: rgba(244, 246, 248, 0.5); }
.ct-form .hnf-form input:focus, .ct-form .hnf-form select:focus, .ct-form .hnf-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); box-shadow: none; }
.ct-form .hnf-form button { grid-column: 1 / -1; justify-self: start; margin-top: 4px; padding: 15px 34px; border-radius: 50px; font-family: var(--font); font-size: 18px; letter-spacing: 0.06em; line-height: 1; }
.ct-form .hnf-form button:disabled { background: #5B6673; }
.ct-form .hnf-form__note { grid-column: 1 / -1; color: var(--hnf-muted); font-size: 14px; }
.ct-form .hnf-message { grid-column: 1 / -1; margin-top: 0; border-radius: 0; background: var(--hnf-black); font-size: 16px; }
.ct-form .hnf-message.success { background: var(--hnf-black); color: #BFEBD5; border-left: 3px solid #3FB37F; }
.ct-form .hnf-message.error { background: var(--hnf-black); color: #FFC7BB; border-left: 3px solid var(--orange); }

/* --- clubs : la photo à droite, le texte sur le noir à gauche --- */
.hnf-home .ct-club { position: relative; overflow: hidden; background: var(--hnf-black); min-height: clamp(540px, 34vw, 720px); display: flex; align-items: flex-end; }
.ct-club__bg { position: absolute; top: 0; bottom: 0; right: 0; left: 36%; z-index: 0; }
.ct-club__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.ct-club__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hnf-black) 0%, rgba(11, 15, 20, 0.55) 20%, rgba(11, 15, 20, 0) 46%), linear-gradient(0deg, var(--hnf-black) 0%, rgba(11, 15, 20, 0) 24%), linear-gradient(180deg, var(--hnf-black) 0%, rgba(11, 15, 20, 0) 16%); }
.ct-club__cap { position: absolute; right: 40px; bottom: 22px; z-index: 2; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 700; color: var(--hnf-white); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.ct-club .hnf-wrap { z-index: 1; width: 100%; padding-block: 96px 72px; }
.ct-club__txt { max-width: 25em; }
.ct-club__txt p:not(.hnf-eyebrow) { color: var(--hnf-muted); font-size: 19px; margin-top: 20px; }
.ct-club__txt .ct-club__ten { margin-top: 22px; font-family: var(--font); text-transform: uppercase; font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--hnf-white); }
.ct-club .btn { margin-top: 28px; }

/* --- avant d'écrire : la FAQ de l'accueil --- */
.hnf-home .ct-faq { padding-block: 88px; background: var(--hnf-black2); border-top: 1px solid var(--hnf-line); }
.ct-faq .hnf-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.ct-faq__side p:not(.hnf-eyebrow) { color: var(--hnf-muted); margin-top: 16px; max-width: 22em; }
.ct-faq__links { display: grid; border-top: 1px solid var(--hnf-line); }
.ct-faq__links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hnf-line); font-family: var(--font); font-size: 24px; font-weight: 600; line-height: 1.15; }
.ct-faq__links a::after { content: ""; flex: none; width: 10px; height: 10px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); margin-right: 6px; transition: transform 0.15s ease; }
.ct-faq__links a:hover { color: var(--orange); }
.ct-faq__links a:hover::after { transform: translateX(4px) rotate(45deg); }
.hnf-home .ct-faq__all { display: inline-block; margin-top: 22px; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px; font-weight: 700; color: var(--orange); border-bottom: 1px solid currentColor; }

/* --- étroit --- */
@media (max-width: 1100px) {
  .hnf-home .ct-top { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); }
}
@media (max-width: 900px) {
  .hnf-home .ct-top { grid-template-columns: 1fr; gap: 32px; padding: 124px 20px 48px; }
  .ct-top__txt { max-width: none; }
  .ct-lead { font-size: 18px; }
  .ct-who { margin-top: 24px; }
  .ct-who div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .ct-mail { font-size: 26px; }
  .ct-form { padding: 22px 18px; }
  .ct-form .hnf-form { grid-template-columns: 1fr; }
  .ct-form .hnf-form .hnf-field:nth-of-type(1), .ct-form .hnf-form .hnf-field:nth-of-type(2) { grid-column: 1 / -1; }
  .ct-form .hnf-form button { justify-self: stretch; }
  .hnf-home .ct-club { min-height: 0; display: block; }
  .ct-club__bg { position: relative; left: 0; }
  .ct-club__bg img { height: auto; aspect-ratio: 3 / 2; object-position: center; }
  .ct-club__bg::after { background: linear-gradient(0deg, var(--hnf-black) 0%, rgba(11, 15, 20, 0) 38%); }
  .ct-club__cap { right: 20px; bottom: 10px; }
  .ct-club .hnf-wrap { padding-block: 26px 48px; }
  .ct-club__txt { max-width: none; }
  .ct-club__txt p:not(.hnf-eyebrow) { font-size: 17px; }
  .ct-club .btn { display: block; text-align: center; }
  .hnf-home .ct-faq { padding-block: 48px; }
  .ct-faq .hnf-wrap { grid-template-columns: 1fr; gap: 20px; }
  .ct-faq__links a { font-size: 20px; padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-faq__links a::after { transition: none; }
}
