/* Interlocuteurs et formulaires : charte du site (nuit, brique, acier), lisible sur téléphone. */
.lycc-interlocuteurs { margin: 1.25rem 0; padding: 1rem 1.25rem; border-left: 6px solid #0e2740; background: #eef2f5; }
.lycc-interlocuteurs-titre { margin: 0 0 0.5rem; }
.lycc-personnes { margin: 0 0 0.75rem !important; padding: 0 !important; list-style: none !important; }
.lycc-personnes li { margin: 0 0 0.6rem; }
.lycc-interlocuteurs p:last-child { margin-bottom: 0; }
.is-style-lyc-nuit .lycc-interlocuteurs { background: rgba(255, 255, 255, 0.1); border-left-color: #fff; }

.lycc-bouton {
  display: inline-block;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid #0e2740;
  border-radius: 4px;
  background: #0e2740;
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  cursor: pointer;
}
.lycc-bouton:hover, .lycc-bouton:focus { background: #fff; color: #0e2740 !important; }
.lycc-bouton:focus-visible, .lycc-form :focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }

.lycc-form { max-width: 680px; margin: 1.5rem 0; scroll-margin-top: 110px; }
.lycc-consigne { margin: 0 0 1rem; color: #43566a; }
.lycc-champ { margin: 0 0 1.15rem; padding: 0; border: 0; min-width: 0; }
.lycc-champ label, .lycc-champ legend { display: block; margin: 0 0 0.3rem; padding: 0; font-weight: 700; color: #0e2740; }
.lycc-facultatif { font-weight: 400; color: #43566a; }
.lycc-aide { margin: 0 0 0.35rem; color: #43566a; font-size: 0.94em; }
.lycc-form input[type="text"], .lycc-form input[type="email"], .lycc-form input[type="tel"], .lycc-form select, .lycc-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #5a6b7b;
  border-radius: 4px;
  background: #fff;
  color: #0e2740;
  font: inherit;
  font-size: max(16px, 1rem); /* sous 16 px, l'iPhone zoome à chaque saisie */
  box-sizing: border-box;
}
.lycc-form textarea { min-height: 170px; resize: vertical; }
.lycc-form [aria-invalid="true"] { border-color: #9c3a25; }
.lycc-ouinon label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0 1.5rem 0 0; font-weight: 400; cursor: pointer; }
.lycc-ouinon input { width: 22px; height: 22px; margin: 0; accent-color: #0e2740; }
.lycc-erreur { margin: 0.35rem 0 0; color: #8a2f1c; font-weight: 700; }
.lycc-bilan { margin: 0 0 1rem; padding: 0.8rem 1rem; border-left: 6px solid #9c3a25; background: #fbeeea; }
.lycc-bilan p { margin: 0; }
.lycc-succes { padding: 1rem 1.25rem; border-left: 6px solid #1f7a4d; background: #e9f5ee; }
.lycc-succes p { margin: 0 0 0.5rem; }
.lycc-mention { margin-top: 1rem; color: #43566a; font-size: 0.92em; }
.lycc-alerte { padding: 0.6rem 0.9rem; border: 2px dashed #9c3a25; }
/* Champ piège : hors écran, jamais annoncé. */
.lycc-masque { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .lycc-envoyer { display: block; width: 100%; } }

/* Posés directement dans une section du site : même colonne que les titres et le texte (largeur de la grille, centrée).
   Les champs gardent une largeur de lecture à l'intérieur. */
.lyc-section > .lycc-form,
.lyc-section > .lycc-interlocuteurs,
.lyc-section > .lycc-selon {
  box-sizing: border-box;
  max-width: var(--lyc-max, 75rem);
  margin-left: auto;
  margin-right: auto;
}
.lyc-section > .lycc-form > * { max-width: 42.5rem; }

/* Encadré qui suit l'onglet choisi. Il hérite du fond de son bloc (clair ou bleu nuit). */
.lycc-selon-cas { margin: 0 0 0.75rem; }
.lycc-selon-nom { margin: 0 0 0.4rem; font-weight: 700; font-size: 1.1em; }
.lycc-selon-groupe { margin: 0.6rem 0 0.25rem; font-weight: 700; }
.lycc-selon-toujours { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid currentColor; }
.lycc-selon .lycc-personnes { margin-bottom: 0.5rem !important; }
.lycc-selon ul.lycc-selon-liens { margin: 0.75rem 0 0 !important; }
/* Sur fond bleu nuit, le bouton s'inverse pour rester lisible, au repos comme au survol. */
.is-style-lyc-nuit .lycc-bouton { background: #fff; border-color: #fff; color: #0e2740 !important; }
.is-style-lyc-nuit .lycc-bouton:hover, .is-style-lyc-nuit .lycc-bouton:focus { background: transparent; color: #fff !important; }
