/* Start custom CSS *//* =========================================================
   PAGE INFORMATIQUE (IT)
   Concept : page de supervision (statut, baie, ticket)
   ========================================================= */

/* H1 discret façon invite de commande (le thème impose h1 4.2rem !important en mobile) */
h1.l2-h1-code {
  font-size: 1.5rem !important;
}
h1.l2-h1-code::before {
  content: '> ';
  opacity: 0.6;
}
h1.l2-h1-code::after {
  content: '_';
  animation: l2-caret 1s steps(1) infinite;
}
@keyframes l2-caret {
  50% { opacity: 0; }
}
@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;
}

/* Panneau de statut : pastille « en direct » qui pulse */
.l2-status__head .l2-dot--green {
  flex: 0 0 auto;
  animation: l2-pulse 2s ease-out infinite;
}
@keyframes l2-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0.55); }
  100% { box-shadow: 0 0 0 1.2rem rgba(43, 182, 115, 0); }
}
/* Petit point coloré devant chaque état (hérite de la couleur du texte) */
.l2-status__state::before {
  content: '';
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.1em;
}
@media (max-width: 767px) {
  .l2-status__row { flex-wrap: wrap; row-gap: 0.4rem; }
}

/* Baie : rails perforés + LED qui clignotent */
.l2-rack { position: relative; }
.l2-rack::before,
.l2-rack::after {
  content: '';
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 0.6rem;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.18) 0 0.4rem, transparent 0.4rem 1.2rem);
  border-radius: 0.3rem;
  pointer-events: none;
}
.l2-rack::before { left: 0.4rem; }
.l2-rack::after  { right: 0.4rem; }

a.l2-rack__unit,
a.l2-rack__unit:hover {
  text-decoration: none;
  color: #ffffff;
}
.l2-rack__u::before {
  content: '';
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: var(--l2-green);
  box-shadow: 0 0 0.8rem var(--l2-green);
  vertical-align: 0.1em;
  animation: l2-led 2.4s steps(1) infinite;
}
.l2-rack__unit:nth-child(2n) .l2-rack__u::before { animation-delay: -0.7s; }
.l2-rack__unit:nth-child(3n) .l2-rack__u::before { animation-delay: -1.5s; animation-duration: 3.1s; }
@keyframes l2-led {
  0%, 100% { opacity: 1; }
  12%      { opacity: 0.25; }
  18%      { opacity: 1; }
}
.l2-rack__unit:hover .l2-rack__go { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  h1.l2-h1-code::after,
  .l2-status__head .l2-dot--green,
  .l2-rack__u::before { animation: none; }
}

/* Lien dans la FAQ */
.l2-faq__a a {
  color: var(--l2-red);
  text-decoration: underline;
}

/* =========================================================
   FORMULAIRE CF7 : bloc .l2-form (BEM)
   Activé via html_class="l2-form" dans le shortcode.
   (Identique aux pages Web / Événementiel / Print : à 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 */