/* Start custom CSS *//* =========================================================
   PAGE PRINT
   ========================================================= */

/* 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 : texte barré en rouge, atténué */
.l2-hero-hook s {
  color: rgba(0, 48, 73, 0.35);
  text-decoration-color: var(--l2-red);
  text-decoration-thickness: 0.08em;
}

/* ---------- Traits de coupe + mire de repérage autour du hero ---------- */
.l2-cropframe::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  --c: rgba(0, 48, 73, 0.55);
  background:
    linear-gradient(var(--c), var(--c)) 0 2rem / 1.4rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 2rem 0 / 1px 1.4rem no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 2rem / 1.4rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 2rem) 0 / 1px 1.4rem no-repeat,
    linear-gradient(var(--c), var(--c)) 0 calc(100% - 2rem) / 1.4rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 2rem 100% / 1px 1.4rem no-repeat,
    linear-gradient(var(--c), var(--c)) 100% calc(100% - 2rem) / 1.4rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 2rem) 100% / 1px 1.4rem no-repeat;
}
.l2-cropframe::after {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 2.4rem;
  height: 2.4rem;
  margin-left: -1.2rem;
  border: 1px solid rgba(0, 48, 73, 0.55);
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,48,73,0.55), rgba(0,48,73,0.55)) center / 1px 100% no-repeat,
    linear-gradient(rgba(0,48,73,0.55), rgba(0,48,73,0.55)) center / 100% 1px no-repeat;
}

/* ---------- Nuancier en éventail ---------- */
.l2-fan .l2-fan__blade { animation: l2-fan-open 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.l2-fan .l2-fan__blade:nth-child(1) { transform: rotate(-40deg); z-index: 1; animation-delay: 0.10s; }
.l2-fan .l2-fan__blade:nth-child(2) { transform: rotate(-24deg); z-index: 2; animation-delay: 0.18s; }
.l2-fan .l2-fan__blade:nth-child(3) { transform: rotate(-8deg);  z-index: 3; animation-delay: 0.26s; }
.l2-fan .l2-fan__blade:nth-child(4) { transform: rotate(8deg);   z-index: 4; animation-delay: 0.34s; }
.l2-fan .l2-fan__blade:nth-child(5) { transform: rotate(24deg);  z-index: 5; animation-delay: 0.42s; }
.l2-fan .l2-fan__blade:nth-child(6) { transform: rotate(40deg);  z-index: 6; animation-delay: 0.50s; }
.l2-fan:hover .l2-fan__blade:nth-child(1) { transform: rotate(-50deg); }
.l2-fan:hover .l2-fan__blade:nth-child(2) { transform: rotate(-30deg); }
.l2-fan:hover .l2-fan__blade:nth-child(3) { transform: rotate(-10deg); }
.l2-fan:hover .l2-fan__blade:nth-child(4) { transform: rotate(10deg); }
.l2-fan:hover .l2-fan__blade:nth-child(5) { transform: rotate(30deg); }
.l2-fan:hover .l2-fan__blade:nth-child(6) { transform: rotate(50deg); }
@keyframes l2-fan-open { from { transform: rotate(0deg); } }

/* ---------- Épreuves : traits de coupe autour de chaque visuel ---------- */
.l2-proof::before {
  content: "";
  position: absolute;
  inset: -1rem;
  pointer-events: none;
  --c: rgba(0, 48, 73, 0.4);
  background:
    linear-gradient(var(--c), var(--c)) 0 1rem / 0.8rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 1rem 0 / 1px 0.8rem no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 1rem / 0.8rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 1rem) 0 / 1px 0.8rem no-repeat,
    linear-gradient(var(--c), var(--c)) 0 calc(100% - 1rem) / 0.8rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 1rem 100% / 1px 0.8rem no-repeat,
    linear-gradient(var(--c), var(--c)) 100% calc(100% - 1rem) / 0.8rem 1px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 1rem) 100% / 1px 0.8rem no-repeat;
}

/* ---------- Finitions : démonstrations visuelles ---------- */
/* (préfixe .elementor pour passer devant les classes globales) */
.elementor .l2-finish__demo.l2-finish__demo--emboss {
  color: #F6F1EC;
  text-shadow: -1px -1px 1px #ffffff, 2px 2px 3px rgba(0, 48, 73, 0.28);
}
.elementor .l2-finish__demo.l2-finish__demo--gold {
  background-image: linear-gradient(110deg, #8a6a2b 0%, #e8cf8a 25%, #b8913f 45%, #fff3c4 55%, #b8913f 70%, #8a6a2b 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: l2-gold-shine 4s linear infinite;
}
@keyframes l2-gold-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.elementor .l2-finish__demo.l2-finish__demo--spot {
  background-image: linear-gradient(105deg, #4A5666 40%, #ffffff 50%, #4A5666 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.2s ease;
}
.elementor .l2-finish:hover .l2-finish__demo.l2-finish__demo--spot { background-position: 0% 0; }
.elementor .l2-finish__demo.l2-finish__demo--soft {
  text-shadow: 0 0 0.6rem rgba(107, 91, 115, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .l2-fan .l2-fan__blade, .elementor .l2-finish__demo.l2-finish__demo--gold { animation: none; }
}

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