/* Start custom CSS *//* =========================================================
   PAGE ÉVÉNEMENTIEL
   ========================================================= */

/* H1 discret façon étiquette (le thème impose h1 4.2rem !important en mobile) */
h1.l2-h1-code {
  font-size: 1.5rem !important;
}
@media (max-width: 767px) {
  h1.l2-h1-code {
    font-size: 1.2rem !important;
  }
}

/* Accroche : liste barrée en rouge, atténuée */
.l2-hero-hook s {
  color: rgba(255, 255, 255, 0.35);
  text-decoration-color: var(--l2-red);
  text-decoration-thickness: 0.08em;
}

/* Badge du hero : léger balancement au bout de son cordon */
.l2-section .l2-lanyard:only-child {
  animation: l2-swing 4.5s ease-in-out infinite alternate;
}
@keyframes l2-swing {
  0%   { transform: rotate(-2.5deg); }
  100% { transform: rotate(2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .l2-section .l2-lanyard:only-child { animation: none; }
}

/* Badges des réalisations : le lien couvre toute la carte */
a.l2-badge-card,
a.l2-badge-card:hover {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   FORMULAIRE CF7 : bloc .l2-form (BEM)
   Activé via html_class="l2-form" dans le shortcode.
   (Identique à la page Web : à terme, à déplacer dans le CSS du site.)
   ========================================================= */
.wpcf7-form.l2-form .row {
  --bs-gutter-x: 1.6rem;
  row-gap: 1.6rem;
}
.wpcf7-form.l2-form p {
  margin: 0;
}
.wpcf7-form.l2-form label {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--l2-font-text), sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--l2-navy);
}
.wpcf7-form.l2-form label br {
  display: none;
}
.wpcf7-form.l2-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.8rem;
}
.wpcf7-form.l2-form input[type="text"],
.wpcf7-form.l2-form input[type="email"],
.wpcf7-form.l2-form input[type="tel"],
.wpcf7-form.l2-form select,
.wpcf7-form.l2-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(0, 48, 73, 0.18);
  border-radius: 1.2rem;
  background-color: var(--l2-cream);
  font-family: var(--l2-font-text), sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--l2-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.wpcf7-form.l2-form input:focus,
.wpcf7-form.l2-form select:focus,
.wpcf7-form.l2-form textarea:focus {
  outline: none;
  border-color: var(--l2-red);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(182, 27, 31, 0.12);
}
.wpcf7-form.l2-form textarea {
  height: 14rem;
  min-height: 10rem;
  resize: vertical;
}
.wpcf7-form.l2-form .wpcf7-turnstile {
  margin-top: 1.6rem;
}
.wpcf7-form.l2-form .wpcf7-submit {
  display: inline-block;
  width: auto;
  margin: 1.6rem 0 0;
  padding: 1.8rem 3.2rem;
  border: 2px solid var(--l2-red);
  border-radius: 999px !important;
  background-color: var(--l2-red);
  color: #ffffff;
  font-family: var(--l2-font-title), sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wpcf7-form.l2-form .wpcf7-submit:hover {
  padding: 1.8rem 3.2rem;
  background-color: var(--l2-red-dark);
  border-color: var(--l2-red-dark);
  transform: translateY(-2px);
}
.wpcf7-form.l2-form .wpcf7-not-valid {
  border-color: var(--l2-red);
}
.wpcf7-form.l2-form .wpcf7-not-valid-tip {
  margin-top: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
}
@media (max-width: 767px) {
  .wpcf7-form.l2-form .wpcf7-submit {
    width: 100%;
  }
}/* End custom CSS */