/* ==========================================================================
   PAGE CONTACT — mise en page éditoriale : TEXTE à gauche, FORMULAIRE à droite,
   le tout centré et tenant sur un écran. Deux onglets soulignés (contact /
   groupe). Champs SANS boîte (simple filet sous le champ) pour rester épuré et
   fidèle à la charte. Réutilise .champ (auth.css) + .btn + header/footer.
   ========================================================================== */

.contact-main {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(86px + env(safe-area-inset-top)) clamp(16px, 5vw, 56px) clamp(28px, 4vw, 52px);
}
.contact {
  width: 100%; max-width: 1080px;
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

/* ---- Colonne gauche : titre + texte SOBRE (sans photo). Typographie alignée
   sur le reste du site (même taille/graisse que .panier__titre), sans ombres ni
   carte : juste le titre, l'intro et les infos pratiques sur le fond sombre. ---- */
.contact__gauche {
  align-self: start;
  display: flex; flex-direction: column;
  padding-top: clamp(2px, 1vw, 10px);
}
.contact__titre { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.8px; line-height: 1.05; }
.contact__titre .accent { color: var(--blue); }
.contact__intro { margin-top: 12px; max-width: 42ch; color: var(--grey); font-size: 15px; line-height: 1.6; }
.contact__infos { list-style: none; margin: clamp(20px, 2.6vw, 26px) 0 0; display: flex; flex-direction: column; gap: 11px; }
.contact__infos li { display: flex; align-items: center; gap: 11px; color: color-mix(in srgb, var(--white) 88%, transparent); font-size: 14px; }
.contact__infos svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

/* ---- Onglets soulignés (barre bleue glissante) ---- */
.contact-onglets {
  position: relative; display: inline-flex; gap: clamp(20px, 2.6vw, 34px);
  border-bottom: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
}
.contact-onglet {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  color: var(--grey); font-size: clamp(14px, 1.5vw, 15.5px); font-weight: 600; letter-spacing: 0.2px;
  padding: 0 2px 14px; white-space: nowrap; transition: color var(--duree-hover);
}
.contact-onglet:hover { color: var(--white); }
.contact-onglet[aria-selected="true"] { color: var(--white); }
.contact-onglet:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.contact-onglets__ligne {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px; background: var(--blue);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Vues (une seule visible) ---- */
.contact-vues { margin-top: clamp(20px, 2.6vw, 28px); }
.contact-vue[hidden] { display: none; }
.contact-vue.is-anim { animation: contact-vue-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes contact-vue-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Champs SANS boîte : simple filet sous le champ ---- */
.contact .champ__input {
  background: transparent; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--white) 20%, transparent); border-radius: 0;
  padding: 7px 2px; min-height: 42px; transition: border-color var(--duree-hover);
}
.contact .champ__input::placeholder { color: var(--grey-dim); }
.contact .champ__input:hover { border-bottom-color: color-mix(in srgb, var(--white) 42%, transparent); background: transparent; box-shadow: none; }
.contact .champ__input:focus { border-bottom-color: var(--blue); background: transparent; box-shadow: none; }
.contact .champ--erreur .champ__input { border-bottom-color: var(--signal); }
.contact .champ__label { font-size: 12px; font-weight: 500; color: var(--white); margin-bottom: 2px; }
.contact textarea.champ__input { min-height: 64px; resize: vertical; line-height: 1.5; }
.champ__input[type="datetime-local"], .champ__input[type="number"] { color-scheme: dark; }

/* espacement compact des rangées + paires en 2 colonnes */
#formContact > * + *, #formGroupe > * + * { margin-top: clamp(9px, 1.2vw, 13px); }
.contact .champ-duo { grid-template-columns: 1fr 1fr; gap: 4px clamp(18px, 2.2vw, 28px); }

/* ---- Boutons (auto, alignés à gauche — pas de gros bloc) ---- */
.contact-envoi { margin-top: clamp(18px, 2.4vw, 24px); }
.contact-envoi .btn { width: auto; min-width: 220px; justify-content: center; margin-top: 0; }
.champ__req { color: var(--signal); font-weight: 700; }
.contact-note { color: var(--grey); font-size: 12px; }

/* ---- Écran de succès (aligné à gauche, dans la colonne) ---- */
.contact-succes { max-width: 440px; animation: contact-vue-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.contact-succes__ic {
  width: 56px; height: 56px; margin: 0 0 16px; border-radius: 50%; display: grid; place-items: center; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 15%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent);
  animation: contact-pop 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) both;
}
.contact-succes__ic svg { width: 28px; height: 28px; }
@keyframes contact-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.contact-succes__titre { font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.5px; }
.contact-succes__titre .accent { color: var(--blue); }
.contact-succes__txt { margin-top: 10px; color: var(--grey); font-size: 15px; line-height: 1.6; }
.contact-succes .btn { margin-top: clamp(18px, 3vw, 24px); }

/* ---- Empilé sous 900 px : texte puis formulaire ---- */
@media (max-width: 900px) {
  .contact-main { place-items: start center; }
  .contact { grid-template-columns: 1fr; gap: clamp(22px, 5vw, 32px); align-items: start; max-width: 620px; }
  .contact__intro { max-width: none; }
}
@media (max-width: 767.98px) {
  .contact .champ-duo { grid-template-columns: 1fr; gap: clamp(12px, 3vw, 16px) 0; }
  /* Onglets compacts : tiennent sur une ligne dès 320px ; sur un très petit
     téléphone le libellé long se replie sur 2 lignes plutôt que de déborder. */
  .contact-onglets { gap: 14px; }
  .contact-onglet { font-size: 13.5px; white-space: normal; padding-top: 10px; } /* cible tactile ~44px (la pastille reste calée en bas) */
  .contact .champ__input { min-height: 50px; } /* saisie confortable au doigt (au lieu de 42px) */
  .contact-envoi .btn { width: 100%; }
}

/* ==========================================================================
   Champ DATE + HEURE : bouton (au look des champs) + calendrier maison qui
   reprend le design du calendrier du site (popup sombre, jour choisi en cyan,
   grille du mois). Piloté par contact-calendrier.js.
   ========================================================================== */
.champ--date { position: relative; }
.contact-date {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer; color: var(--white); font: inherit;
}
.contact-date__val { font-size: 15px; }
.contact-date__val[data-vide] { color: var(--grey-dim); }
.contact-date__ic { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.contact .contact-date[aria-expanded="true"] { border-bottom-color: var(--blue); }

.cc-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  width: min(320px, calc(100vw - 32px));
  background: #0e0f15; border: 1px solid color-mix(in srgb, var(--white) 12%, transparent); border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); padding: 14px;
  animation: cc-pop-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cc-pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* 2e champ date (Fin) du duo : le calendrier s'ouvre vers l'INTÉRIEUR (aligné à
   droite) pour ne jamais déborder hors de l'écran sur les largeurs moyennes. */
.champ-duo .champ--date:last-child .cc-pop { left: auto; right: 0; }

.cc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cc-title { font-size: 14px; font-weight: 700; color: var(--white); text-transform: capitalize; letter-spacing: 0.2px; }
.cc-nav {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent); border-radius: 9px; background: transparent; color: var(--white);
  transition: border-color var(--duree-hover), background var(--duree-hover);
}
.cc-nav svg { width: 16px; height: 16px; }
.cc-nav:hover:not(:disabled) { border-color: var(--blue); background: rgba(87, 179, 242, 0.10); }
.cc-nav:disabled { opacity: 0.3; cursor: default; }

.cc-dows { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.cc-dows span { text-align: center; font-size: 11px; font-weight: 600; color: var(--grey); padding: 2px 0; }
.cc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cc-vide { aspect-ratio: 1; }
.cc-day {
  aspect-ratio: 1; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 8px; background: transparent; color: var(--white); font: inherit; font-size: 13px;
  transition: background var(--duree-hover), color var(--duree-hover);
}
.cc-day:hover:not(:disabled):not(.sel) { background: color-mix(in srgb, var(--white) 8%, transparent); }
.cc-day.today { box-shadow: inset 0 0 0 1.5px rgba(79, 200, 245, 0.55); }
.cc-day.sel { background: var(--cyan); color: var(--encre-bleu); font-weight: 700; box-shadow: none; }
.cc-day:disabled { color: var(--grey-dim); opacity: 0.4; cursor: default; }
.cc-day:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

.cc-heure {
  display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
}
.cc-heure__lbl { font-size: 12.5px; color: var(--grey); margin-right: auto; }
.cc-select {
  background: #16171e; color: var(--white); border: 1px solid color-mix(in srgb, var(--white) 14%, transparent); border-radius: 8px;
  padding: 5px 6px; font: inherit; font-size: 13px; cursor: pointer; color-scheme: dark;
}
.cc-select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--blue); }
.cc-sep { color: var(--grey); font-size: 13px; }
.cc-ok { width: 100%; margin-top: 12px; min-height: 40px; justify-content: center; }

/* ==========================================================================
   Captcha « Je ne suis pas un robot » (contact-captcha.js). Case façon reCAPTCHA,
   au thème du site (coche cyan). Anti-spam visible en plus du honeypot.
   ========================================================================== */
.captcha {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 340px;
  padding: 11px 14px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--white) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
  transition: border-color var(--duree-hover);
}
.captcha__case {
  position: relative; width: 26px; height: 26px; flex-shrink: 0; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  background: transparent; border: 2px solid color-mix(in srgb, var(--white) 42%, transparent); border-radius: 6px;
  transition: background var(--duree-hover), border-color var(--duree-hover);
}
.captcha__case:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.captcha__spin { display: none; width: 17px; height: 17px; border: 2px solid color-mix(in srgb, var(--white) 28%, transparent); border-top-color: var(--cyan); border-radius: 50%; }
.captcha.is-charge .captcha__spin { display: block; animation: captcha-spin 0.6s linear infinite; }
.captcha.is-charge .captcha__case { cursor: default; border-color: color-mix(in srgb, var(--white) 22%, transparent); }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
.captcha__check { display: none; width: 18px; height: 18px; color: var(--encre-bleu); }
.captcha.is-ok .captcha__check { display: block; }
.captcha.is-ok .captcha__case { background: var(--cyan); border-color: var(--cyan); cursor: default; }
.captcha__label { color: var(--white); font-size: 14.5px; margin-right: auto; }
.captcha__brand { display: flex; align-items: center; gap: 6px; color: var(--grey); font-size: 9.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; line-height: 1.05; text-align: center; }
.captcha__brand svg { width: 22px; height: 22px; color: var(--cyan); }
.captcha--erreur { border-color: var(--signal); }
.captcha__err { color: var(--signal); font-size: 12.5px; margin-top: 6px; }
.captcha__err:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .contact-onglets__ligne { transition: none; }
  .contact-vue.is-anim, .contact-succes, .contact-succes__ic, .cc-pop { animation: none; }
  .captcha.is-charge .captcha__spin { animation: none; }
}
