@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Anton&display=swap');

/* ---------- Conteneur général du formulaire ---------- */
.elementor-widget-form {
  --pc-red: #D10019;
  --pc-red-glow: rgba(226, 20, 45, 0.45);
  --pc-bg: #0c0c12;
  --pc-bg-soft: #14141d;
  --pc-white: #f5f5f7;
  --pc-muted: #9a9aa5;
}

/* ---------- Texte rouge ---------- */

.text-red {
    color: var(--pc-red) !important;
}

/* ---------- Formulaire ---------- */

.elementor-widget-form .elementor-form {
  background: linear-gradient(155deg, var(--pc-bg) 0%, #1a0a10 100%) !important;
  border: 1px solid rgba(226, 20, 45, 0.25);
  border-radius: 18px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: pc-fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* légère lueur rouge qui respire en fond */
.elementor-widget-form .elementor-form::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--pc-red-glow) 0%, transparent 70%);
  filter: blur(10px);
  animation: pc-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pc-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pc-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.15); }
}

/* ---------- Grille des champs ---------- */
.elementor-widget-form .elementor-form-fields-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 22px 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* largeurs explicites — on recrée la grille Elementor nous-mêmes,
   en retirant l'équivalent du gap pour que ça tombe juste */
.elementor-widget-form .elementor-field-group.elementor-col-100 {
  width: 100% !important;
}
.elementor-widget-form .elementor-field-group.elementor-col-75 {
  width: calc(75% - 12px) !important;
}
.elementor-widget-form .elementor-field-group.elementor-col-50 {
  width: calc(50% - 12px) !important;
}
.elementor-widget-form .elementor-field-group.elementor-col-25 {
  width: calc(25% - 18px) !important;
}

/* ---------- Labels ---------- */
.elementor-widget-form .elementor-field-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pc-muted) !important;
  transition: color 0.25s ease;
}

.elementor-widget-form .elementor-field-group:focus-within .elementor-field-label {
  color: var(--pc-red) !important;
}

/* ---------- Champs texte / email / textarea ---------- */
.elementor-widget-form .elementor-field-textual {
  background-color: var(--pc-bg-soft) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: var(--pc-white) !important;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 14px 16px !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.elementor-widget-form select {
  height: auto !important;
}

.elementor-widget-form .elementor-field-textual::placeholder {
  color: #6a6a75 !important;
  font-weight: 300;
  opacity: 1;
}

.elementor-widget-form .elementor-field-textual:hover {
  border-color: rgba(226, 20, 45, 0.35) !important;
}

.elementor-widget-form .elementor-field-textual:focus {
  outline: none !important;
  border-color: var(--pc-red) !important;
  background-color: #17171f !important;
  box-shadow: 0 0 0 4px rgba(226, 20, 45, 0.15), 0 0 20px rgba(226, 20, 45, 0.25) !important;
}

.elementor-widget-form textarea.elementor-field-textual {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Message reCAPTCHA / infos ---------- */
.elementor-widget-form .elementor-field-group.elementor-col-100 > .elementor-field,
.elementor-widget-form .elementor-alert-info {
  background: rgba(226, 20, 45, 0.08) !important;
  border: 1px dashed rgba(226, 20, 45, 0.35) !important;
  border-radius: 8px;
  color: var(--pc-muted) !important;
  font-family: 'Oswald', sans-serif;
  font-size: 12.5px;
  padding: 12px 14px;
  box-sizing: border-box;
}

/* ---------- Bouton d'envoi ---------- */
.elementor-widget-form .e-form__buttons {
  width: 100%;
}

.elementor-widget-form .elementor-button {
  position: relative;
  overflow: hidden;
  background: var(--pc-red) !important;
  border: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 20px !important;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 24px rgba(226, 20, 45, 0.35);
}

.elementor-widget-form .elementor-button-text {
  position: relative;
  z-index: 2;
}

.elementor-widget-form .elementor-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.elementor-widget-form .elementor-button:hover {
  background: #ff1f3d !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(226, 20, 45, 0.5);
}

.elementor-widget-form .elementor-button:hover::after {
  left: 130%;
}

.elementor-widget-form .elementor-button:active {
  transform: translateY(0px) scale(0.98);
}

/* ---------- Champs requis (astérisque discret) ---------- */
.elementor-widget-form .elementor-field-required .elementor-field-label::after {
  content: " *";
  color: var(--pc-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .elementor-widget-form .elementor-form {
    padding: 32px 22px;
    border-radius: 14px;
  }
  .elementor-widget-form .elementor-field-group.elementor-col-25,
  .elementor-widget-form .elementor-field-group.elementor-col-50,
  .elementor-widget-form .elementor-field-group.elementor-col-75 {
    width: 100% !important;
  }
}

/* ---------- Accessibilité : respect du "reduced motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  .elementor-widget-form .elementor-form,
  .elementor-widget-form .elementor-form::before,
  .elementor-widget-form .elementor-button::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Boutons animés (hors formulaire) ---------- */

/* ============================================================
   PERFORME CENTER — Classe utilitaire .btn-anim
   Même style/animation que le bouton "Envoyer" du formulaire.
   Réutilisable sur n'importe quel bouton ou lien du site.

   Utilisation dans Elementor :
   Sélectionner le bouton > onglet "Avancé" > Classe CSS > btn-anim

   Variante contour (ex: "VOIR LES ACTIVITÉS") :
   ajouter les deux classes ensemble : btn-anim btn-anim--outline
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

.btn-anim {
  --pc-red: #e2142d;
 
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pc-red) !important;
  border: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.3s ease, background 0.3s ease;
  filter: drop-shadow(0 8px 24px rgba(226, 20, 45, 0.35));
}

.btn-anim::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-anim:hover {
  background: #ff1f3d !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(226, 20, 45, 0.5);
}

.btn-anim:hover::after {
  left: 130%;
}

.btn-anim:active {
  transform: translateY(0px) scale(0.98);
}

/* Variante "outline" — fond transparent, contour rouge.
   Au survol : un bloc rouge "essuie" le bouton de gauche à
   droite pour le remplir, + léger glow qui pulse. */
.btn-anim.btn-anim--outline {
  background: transparent !important;
  border: 1.5px solid var(--pc-red) !important;
  color: var(--pc-red) !important;
  box-shadow: none;
  z-index: 0;
}

/* on désactive le sweep lumineux hérité de .btn-anim::after,
   il est remplacé par le fill ci-dessous */
.btn-anim.btn-anim--outline::after {
  content: none;
}

.btn-anim.btn-anim--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pc-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.btn-anim.btn-anim--outline:hover {
  color: #fff !important;
  border-color: var(--pc-red) !important;
  box-shadow: 0 0 24px rgba(226, 20, 45, 0.55);
  animation: pc-outline-glow 1.4s ease-in-out infinite;
}

.btn-anim.btn-anim--outline:hover::before {
  transform: scaleX(1);
}

@keyframes pc-outline-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(226, 20, 45, 0.4); }
  50%      { box-shadow: 0 0 28px rgba(226, 20, 45, 0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-anim::after {
    transition: none !important;
  }
  .btn-anim2::before {
    transition: none !important;
  }
  .btn-anim2:hover {
    animation: none !important;
  }
}

/* ---------- Variante 2 : contour rouge + fond transparent ----------
   Même animation que btn-anim--outline, mais sans le padding
   et avec un border-radius plus petit. */

.btn-anim2 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border-radius: 999px !important;
  color: var(--pc-red) !important;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-anim2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pc-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.btn-anim2:hover {
  color: #fff !important;
  border-color: var(--pc-red) !important;
  box-shadow: 0 0 24px rgba(226, 20, 45, 0.55);
  animation: pc-outline-glow 1.4s ease-in-out infinite;
}

.btn-anim2:hover::before {
  transform: scaleX(1);
}

.btn-anim2:active {
  transform: scale(0.98);
}

/* ---------- Animation de contour "dessiné" ---------- */

@property --pc-draw-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.border-draw {
  --pc-border-width: 1.5px;

  position: relative;
  border: none !important;
  background: transparent !important;
  isolation: isolate;
}

.border-draw::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--pc-border-width);
  box-sizing: border-box;

  background: conic-gradient(
    from 180deg,
    var(--pc-red) 0deg,
    var(--pc-red) var(--pc-draw-angle),
    transparent var(--pc-draw-angle)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  animation: none; /* ne se joue que lorsque .is-in-view est ajoutée */
}

/* déclenchée par le JS quand le badge entre dans le viewport */
.border-draw.is-in-view::before {
  animation: pc-draw-border 1.3s ease-out forwards;
}

@keyframes pc-draw-border {
  from { --pc-draw-angle: 0deg; }
  to   { --pc-draw-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .border-draw::before {
    animation: none !important;
    --pc-draw-angle: 360deg;
  }
}

#ast-scroll-top {
  background-color: #D10019 !important;
}

/* Header */
.stickhead {
  background-color: transparent !important;
  transition: background-color 0.3s ease !important;
}
.stickhead.scrolled {
  background-color: #000000 !important;
  z-index: 9999;
  border-radius: 0px 0px 20px 20px;
  box-shadow: rgb(0, 0, 0) 0px 20px 30px -10px !important;
  border-bottom: 1px solid #D10019;
}
/* Header noir par défaut sur mobile et tablette */
@media (max-width: 1024px) {
  .stickhead {
    background-color: #000000 !important;
  }
}