/* ===========================
   RESET & BASE
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { height: 100%; }

body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}


/* Pour tous les boutons (mobile + desktop) */
button {
  font-family: inherit;
}


/* Désactive le flash bleu/gris au tap sur mobile */
button,
a {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ===========================
   GRADIENT ANIMÉ (azvNoZE, palette bleu/magenta)
   =========================== */

:root {
  --color-bg1: rgb(20, 10, 80);
  --color-bg2: rgb(5, 5, 40);

  /* Boules principales : bleus / violets / magentas */
  --color1: 80, 140, 255;
  --color2: 210, 90, 255;
  --color3: 120, 180, 255;
  --color4: 150, 80, 255;
  --color5: 200, 120, 255;

  /* Bulle interactive : violet soutenu */
  --color-interactive: 170, 110, 255;

  --circle-size: 80%;
  --blending: hard-light;
}

@keyframes moveInCircle {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
  0%   { transform: translateY(-50%); }
  50%  { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
  0%   { transform: translateX(-50%) translateY(-10%); }
  50%  { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}

/* Seul le SVG du filtre de fond est réduit à 0 */
.bg-filter-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradient-bg {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
}

.gradients-container {
  filter: url(#goo) blur(40px);
  width: 100%;
  height: 100%;
}

.g1, .g2, .g3, .g4, .g5, .interactive {
  position: absolute;
  mix-blend-mode: var(--blending);
}

.g1 {
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}

.g2 {
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
  opacity: 1;
}

.g3 {
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
  opacity: 1;
}

.g4 {
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}

.g5 {
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
  opacity: 1;
}

.interactive {
  background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  opacity: 0.7;
}

/* ===========================
   CONTAINER VIDÉO (desktop + mobile)
   =========================== */

.video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45vh;
  height: 80vh;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  background: #000;
  z-index: 10;
}

.video-frame,
.video-media {
  width: 100%;
  height: 100%;
}

.video-media {
  object-fit: cover;
  display: block;
}

/* Bouton Calendly : en haut à gauche du container */
.calendly-button {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.calendly-button img {
  width: 26px;
  height: 26px;
  display: block;
}

/* Logo centré en haut du container */
.site-logo {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;          /* on garde la valeur finale */
  pointer-events: none;
}

.site-logo img {
  height: 20px;
  width: auto;
  display: block;
}

/* ===========================
   BOUTON PARTAGE
   =========================== */

.share-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 50;
}

.share-button__icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: #ffffff;
}

/* ===========================
   BOUTON CLOSE
   =========================== */

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  display: none; /* montré pendant la lecture */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 50;
}

.close-button__icon {
  width: 40px;
  height: 40px;
  display: block;
  fill: #ffffff;
}

/* ===========================
   BOUTON PLAY ANIMÉ
   =========================== */

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  outline: none;
  transform: translate(-50%, -50%);
  z-index: 30;
}

.play-button__icon {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.play-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
  animation: caastFloatingPlayPulse 1.5s ease-out infinite;
}

@keyframes caastFloatingPlayPulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ===========================
   OVERLAY VIDÉO (REMPLIT LE CONTAINER)
   =========================== */

.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.video-overlay.is-visible { display: flex; }

.overlay-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.overlay-video::-webkit-media-controls-fullscreen-button,
.overlay-video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}

.overlay-video::-webkit-media-controls-enclosure { overflow: hidden; }

/* ===========================
   MOBILE : container = plein viewport
   =========================== */

@media (max-width: 768px) {
  .video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    transform: none;
    border-radius: 0;
    box-shadow: none;
  }

  .recall-button {
    font-family: system-ui;
  }
}

/* Safe-area iOS */
@supports (padding: env(safe-area-inset-bottom)) {
  .recall-button,
  .recall-close-circle {
    bottom: calc(env(safe-area-inset-bottom) + 20px);
  }
}

/* =======================
   DEMANDE DE RAPPEL
   ======================= */

.recall-button {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 15px 20px 18px;
  border-radius: 5px;
  border: none;
  background: rgba(255, 255, 255, 1);
  color: #000000;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0em;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 45;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.recall-button:hover,
.recall-button:active {
  background: rgba(0, 0, 0, 1);
  color: #ffffff;
  transform: translateX(-50%);
}

.recall-overlay {
  position: absolute;
  inset: 0;
  z-index: 44;
  display: none;              /* caché par défaut */
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.recall-overlay.is-visible {
  display: flex;              /* visible uniquement quand classe ajoutée */
}



.recall-overlay.is-visible { display: flex; }

.recall-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.recall-form {
  position: relative;
  z-index: 1;
  width: min(420px, 90%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recall-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recall-field { position: relative; }

.recall-field input,
.recall-field textarea {
  width: 100%;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  caret-color: #fff;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  padding: 20px 12px 20px;
  outline: none;
  resize: none;
  line-height: 1.7;
}

.recall-field textarea {
  resize: none;
  min-height: 90px;
  max-height: 140px;
  overflow-y: auto;
}


.recall-field input:focus,
.recall-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Label flottant */
.recall-field label {
  position: absolute;
  left: 12px;
  top: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  transition: all .16s ease;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.recall-field input:focus + label,
.recall-field input:not(:placeholder-shown) + label,
.recall-field textarea:focus + label,
.recall-field textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

/* Bouton Envoyer */
.recall-submit {
  align-self: center;
  margin-top: 0;
  padding: 15px 50px;
  border-radius: 5px;
  border: none;
  background: #ffffff;
  color: #000;
  font-family: "Outfit", system-ui;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.recall-submit:hover,
.recall-submit:active {
  background: #ffffff;
}

/* Message d’erreur */
.recall-error {
  margin: 4px 0 0;
  min-height: 16px;
  font-size: 12px;
  color: #ffb4b4;
  text-align: center;
}

/* Succès */
.recall-success {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.recall-form.sent .recall-fields,
.recall-form.sent .recall-submit,
.recall-form.sent .recall-error { display: none; }

.recall-success.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.recall-success p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.recall-success .checkmark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.45);
  margin-bottom: 20px;
}

.recall-success .checkmark svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bouton rond "Fermer" */
.recall-close-circle {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.recall-close-circle svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
}

.recall-close-circle:hover,
.recall-close-circle:active {
  background: rgba(0, 0, 0, 0.8);
}

/* États (masquages) */
.video-container.recall-open .calendly-button,
.video-container.recall-open .share-button,
.video-container.recall-open .play-button,
.video-container.recall-open .recall-button {
  opacity: 0;
  pointer-events: none;
}

.video-container.video-open .recall-button {
  opacity: 0;
  pointer-events: none;
}
