/* ======================================================= # GENERAL STYLES ======================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

:root {
  /* Bases */
  --white-color: #ffffff;
  --text-color: #111827;

  /* Bleu d'accentuation */
  --blue-color: #1b3a7a;
  --blue-light-color: #e6f0ff;

  /* Gris */
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #6b7280;
  --color-gray-variant: #6b7282;
}

a,
ul,
li {
  color: var(--text-color);
  text-decoration: none;
  list-style: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

p,
ul,
li,
a,
strong {
  font-family: system-ui, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Évite les petits espaces blancs sous les images */
}

/* --- Typographie Fluide --- */

h1 {
  /* Min: 32px | Fluide: 5% de la largeur écran | Max: 48px */
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.3 !important;
}

h2 {
  /* Min: 28px | Fluide: 4vw | Max: 38px */
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 900;
  line-height: 1.1;
}

h3 {
  /* Min: 22px | Max: 28px */
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

/* Liens maillage interne */

.lien-interne {
  color: var(--blue-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 85, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.lien-interne:hover {
  text-decoration-color: var(--blue-color);
}

.lien-interne-clair {
  color: var(--white-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.lien-interne-clair:hover {
  text-decoration-color: var(--white-color);
}

/* Conteneur ajusté au contenu */
.fit-content {
  width: fit-content !important;
  max-width: fit-content !important;
}

.hero-mascot-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper qui contient l'image + badges */
.hm-image-wrapper {
  position: relative;
  width: 90%;
  max-width: 480px;
  min-width: 280px;
}

.hm-mascot {
  width: 100%;
  border-radius: 25px !important;
  height: auto;
  display: block;
  box-shadow:
    0 20px 60px rgba(27, 58, 122, 0.2),
    12px 12px 30px rgba(255, 255, 255, 0.15) !important;
}

/* Badge générique pour les nouveaux badges VRH */
.hm-badge {
  position: absolute;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
  z-index: 2;
  font-size: 0.875rem;
}

/* Badge "Dossier transmis" - vert en haut à gauche */
.hm-badge--dossier {
  top: -20px;
  left: -50px;
  color: var(--text-color);
  animation: hm-bounce 3.2s ease-in-out infinite 0.3s;
}

.hm-badge--dossier-header svg {
  color: #10b981;
}

.hm-badge--dossier-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hm-badge--dossier-time {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Badge "Progression" - blanc en haut à droite */
.hm-badge--progression {
  top: -8px;
  right: -8px;
  min-width: 140px;
  animation: hm-bounce 2.8s ease-in-out infinite 0.7s;
}

.hm-badge--progression-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.hm-badge--progression-step {
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 600;
}

/* Badge "Professionnel disponible" - blanc en bas */
.hm-badge--professionnel {
  bottom: -20px;
  right: -12px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  animation: hm-float 4s ease-in-out infinite 0.5s;
}

.hm-badge--professionnel-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 8px;
}

.hm-badge--professionnel-text {
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}

.hm-badge--professionnel-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hm-badge--professionnel-circles {
  display: flex;
  margin-left: -4px;
}

.hm-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-color);
  border: 2px solid var(--white-color);
  margin-left: -8px;
}

.hm-avatar-circle:first-child {
  margin-left: 0;
}

.hm-badge--professionnel-count {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  margin-left: 4px;
}

@keyframes hm-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes hm-bounce {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.08);
  }
}

/* --- Bandeau défilant services --- */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.marquee-track {
  display: flex;

  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  white-space: nowrap;
  background: var(--blue-light-color);
  color: var(--blue-color) !important;
  border: 1.5px solid var(--blue-color);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Avatar cercle dans CTA */
.avatar-circle img {
  width: 35px !important;
  height: 35px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

.avatar-circle--white img {
  border: 1px solid var(--white-color) !important;
}

.avatar-circle--blue img {
  border: 1px solid var(--blue-color) !important;
}

/* Avatar cercle grande taille (section Notre approche) */
.avatar-circle--lg img {
  width: 280px !important;
  height: 280px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border: 1px solid var(--blue-color) !important;
  box-shadow: 0 20px 60px rgba(0, 85, 255, 0.12) !important;
}

/* Effet hover carte générique */
.card-hover {
  border: 2px solid #e5e7eb !important;
  border-radius: 12px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease !important;
}

.card-hover:hover {
  border-color: var(--blue-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  transform: scale(1.03) !important;
}

.card-hover:hover h3 {
  color: var(--blue-color) !important;
  transition: color 0.3s ease;
}

.card-hover:hover .elementor-counter-number-wrapper {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Image flush dans une carte arrondie */
.card-hover > .elementor-widget-image:first-child,
.card-hover > .elementor-widget-image:first-child img {
  border-radius: 10px 10px 0 0 !important;
}

/* Badge carte service */
.service-badge {
  position: absolute !important;
  background: var(--color-gray-light);
  color: var(--text-color);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content !important;
}

/* Icône rotate au survol de la carte */
.icon-wrap {
  transition: transform 0.5s ease-out !important;
}

.card-hover:hover .icon-wrap {
  transform: rotate(360deg) scale(1.1);
  transition: transform 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* CTA texte + flèche décalage au survol */
.card-cta {
  transition: transform 0.3s ease !important;
}

.card-hover:hover .card-cta {
  transform: translateX(5px) !important;
}

/* Pastille qui devient bleue au survol de la carte */
.card-tag {
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-color);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease !important;
}

.card-hover:hover .card-tag {
  color: var(--blue-color) !important;
  border-color: var(--blue-color) !important;
  transform: translateX(5px) !important;
}

.hero-vrh {
  position: relative;
  overflow: hidden;
}

.hero-vrh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    #ffffff 1px,
    transparent 1px
  ) !important;
  background-size: 40px 40px !important;
  opacity: 0.05 !important;
  pointer-events: none;
  z-index: 0;
}

.hero-vrh > .e-con-inner {
  position: relative;
  z-index: 2;
}

.badge-icon-text {
  display: flex;
  align-items: center;
}

.badge-icon-text .elementor-icon {
  transform: translateY(2px);
}

.hero-process-illustration svg {
  max-width: 100%;
}

.hero-vrh {
  position: relative;
  overflow: hidden;
}

.hero-vrh::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: 0;
  left: -80px;
  background: #60a5fa;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card::after {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-color);
  opacity: 0.08;
  pointer-events: none;
}

.step-01::after {
  content: "01";
}

.step-02::after {
  content: "02";
}

.step-03::after {
  content: "03";
}

/* Conteneur principal */
.cta-proof-container {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: sans-serif; /* S'alignera sur la police du thème */
  padding-top: 20px; /* Ajuster selon besoin sous le bouton CTA */
}

/* Empilement des avatars */
.avatar-stack {
  display: flex;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  color: #f5f5f5;
  border: 2px solid #f5f5f5; /* Couleur de la bordure (à ajuster selon fond bleu foncé) */
  margin-right: -10px; /* Crée l'effet de chevauchement */
  transition: transform 0.2s ease;
}

/* Optionnel : Léger effet au survol */
.avatar:hover {
  transform: translateY(-2px);
}

/* Couleurs spécifiques de l'image */
.av-b {
  background-color: #4d54df;
  z-index: 5;
}
.av-c {
  background-color: #9b46cb;
  z-index: 4;
}
.av-d {
  background-color: #d13d91;
  z-index: 3;
}
.av-e {
  background-color: #d84339;
  z-index: 2;
}
.av-f {
  background-color: #d3a146;
  z-index: 1;
  margin-right: 0;
}

/* Style du texte */
.proof-text {
  color: #a0aec0; /* Couleur du texte gris clair/bleuté */
  font-size: 15px;
  margin: 0;
  line-height: 1.4;
}

/* Formulaire multi-étapes */
.form-step-title-step {
  color: var(--blue-color);
  padding-bottom: 20px;
}

#ff_3_situation_bloquante option[value="Aucune de ces situations"],
.form-highlight-important {
    color: #c62828;
    font-weight: 700;
}

.form-step-text-step {
  padding-bottom: 10px;
}

/* Boutons Précédent / Suivant */
.ff-btn-prev,
.ff-btn-next {
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Suivant */
.ff-btn-next {
    background: var(--blue-color) !important;
    color: var(--white-color) !important;
}

.ff-btn-next:hover {
    background: var(--blue-color) !important;
    transform: translateY(-1px);
}

/* Précédent */
.ff-btn-prev {
    background: var(--blue-color) !important;
    color: var(--white-color) !important;
}

.ff-btn-prev:hover {
    background: var(--blue-color) !important;
    transform: translateY(-1px);
}

/* Focus clavier */
.ff-btn-prev:focus,
.ff-btn-next:focus {
    outline: 2px solid var(--blue-color) !important;
    outline-offset: 2px !important;
}

/* Spinner API insee */
#insee-status{
    margin-top:12px;
    font-size:14px;
}

#insee-loader,
#insee-success,
#insee-error{
    display:none;
    padding:12px 15px;
    border-radius:8px;
    margin-top:10px;
    animation:fadeIn .25s ease;
}

#insee-loader{
    background:#eef6ff;
    color:#0b63ce;
    border:1px solid #c9e2ff;
}

#insee-success{
    background:#edfdf2;
    color:#15803d;
    border:1px solid #b7f0ca;
}

#insee-error{
    background:#fff2f2;
    color:#c62828;
    border:1px solid #ffcaca;
}

.spinner{
    width:18px;
    height:18px;
    border:3px solid rgba(11,99,206,.2);
    border-top-color:#0b63ce;
    border-radius:50%;
    display:inline-block;
    vertical-align:middle;
    margin-right:8px;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-5px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.calendrier-warning {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 3px solid #c62828;
    background: rgba(198, 40, 40, 0.08);
    color: #c62828;
    font-weight: 600;
    line-height: 1.5;
}

.calendrier-warning[hidden] {
    display: none;
}

/* ======================================================= # RESPONSIVE ======================================================= */

@media (max-width: 1280px) {
  .hero-right-container {
    display: none !important;
  }
  .hero-main-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hero-cta-container {
    margin: 0 auto !important;
  }
  .hero-title-container {
    text-align: center !important;
  }
  .hero-text-container {
    text-align: center !important;
  }
}

@media (max-width: 1080px) {
  .svg-contact {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-mascot-wrap {
    height: 360px;
  }
  .hm-image-wrapper {
    width: 80%;
    max-width: 290px;
  }
  .hm-badge {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .hm-badge--progression {
    min-width: 120px;
  }
  .hm-badge--professionnel {
    padding: 10px 12px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .hm-avatar-circle {
    width: 22px;
    height: 22px;
  }
  .hero-vrh::after {
    display: none;
  }
}

@media (max-width: 767px) {
    .ff-btn-prev,
    .ff-btn-next {
        padding: 11px 18px !important;
        font-size: 14px !important;
    }
}
