/* @import "tailwindcss"; */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@theme {
  --color-green-primary: #85E24A;
  --color-green-secondary: #3c9136;
  --color-blue-primary: #5BCEF8;
  --color-blue-secondary: #3f94b2;
  --color-black-primary: #28282f;

  --tracking-spacing-5: 0.05em;
  --tracking-spacing-4: 0.04em;
  --tracking-spacing-3: 0.03em;
  --tracking-spacing-2: 0.02em;
  --tracking-spacing-1: 0.01em;
}
@font-face {
  font-family: "MyCustomFont";
  src: url("/wp-content/uploads/fonts/inter-V.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@layer base {
  * {
    font-family: "MyCustomFont", sans-serif !important;
  }
  body {
    background-color: #f9f9f9;
    margin: 0 !important;
    font-feature-settings: "kern", "liga", "clig", "calt";
    font-kerning: normal;
    font-family: "MyCustomFont", sans-serif !important;
  }

  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
  }
  /* Chrome, Safari, Edge (WebKit) */
  input[type="number"].no-spinner::-webkit-outer-spin-button,
  input[type="number"].no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* Firefox */
  input[type="number"].no-spinner {
    -moz-appearance: textfield;
    appearance: textfield;
  }
}

@layer components {
  .btn {
    display: flex;
    text-decoration: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 178px;
    height: auto;
  }
  .btn-primary {
    background-color: var(--color-primary);
    color: #030303;
    padding: 0.7rem 1rem;
    border-radius: 99rem;
    transition: background-color 0.3s ease;
  }
  .btn-primary:hover {
    background-color: var(--color-secondary);
  }
  .btn-secondary {
    background-color: white;
    color: #030303;
    border: 2px solid var(--color-primary);
    padding: 0.7rem 1rem;
    border-radius: 99rem;
    transition: background-color 0.3s ease;
  }
  .btn-secondary:hover {
    background-color: var(--color-primary);
  }
  .btn-third {
    color: #030303;
    border: 2px solid black;
    padding: 0.7rem 1rem;
    border-radius: 99rem;
    transition: background-color 0.3s ease;
  }
  .btn-third:hover {
    background-color: black;
    color: white;
  }
}

#hero-section,
#hero-renouvellement-section,
#hero-apres-section,
#pour-sante-section {
  margin-top: 0px;
  background-color: transparent !important;
}
.hero {
  background-image: url("/wp-content/uploads/images/hero-img-mb.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
}
.hero-renouvellement {
  background-image: url("/wp-content/uploads/images/renouvellement-hero-img-mb.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
}
.hero-apres {
  background-image: url("/wp-content/uploads/images/apres-infraction-hero-img-mb.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
}
.hero-pour-sante {
  background-image: url("/wp-content/uploads/images/pour-de-sante-hero-img-mb.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
}

@media (min-width: 768px) {
  .hero,
  .hero-renouvellement,
  .hero-apres,
  .hero-pour-sante {
    background-size: contain;
 
  }
}

@media (min-width: 640px) {
  .hero,
  .hero-renouvellement,
  .hero-apres,
  .hero-pour-sante {
    background-position: center;
    height: 100vh !important;
  }
  #hero-section,
  #hero-renouvellement-section,
  #hero-apres-section,
  #hero-pour-sante-section {
    margin: 0 auto;
    margin-top: -19px;
    max-height: 740px;
  }
  .hero {
    background-image: url("/wp-content/uploads/images/hero-img.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 740px;
  }
  .hero-renouvellement {
    background-image: url("/wp-content/uploads/images/renouvellement-hero-img.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    max-height: 740px;
  }
  .hero-apres {
    background-image: url("/wp-content/uploads/images/apres-infraction-hero-img.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    max-height: 740px;
  }
  .hero-pour-sante {
    background-image: url("/wp-content/uploads/images/pour-de-sante-hero-img.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    max-height: 740px;
  }
}

.marquee {
  --speed: 25s;
}
.bg-half-blue {
  background: linear-gradient(
    to top,
    var(--color-blue-primary) 0%,
    var(--color-blue-primary) 9%,
    #ffffff 50%,
    #ffffff 60%,
    #ffffff 100%
  );
}

.marquee-track {
  width: max-content;
  animation: marqueeScroll var(--speed) linear infinite;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* navigation */

/* Menu open animations */
.menu-open .menu-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.menu-open .menu-content > div > .menu-logo {
  transform: translateY(0);
  opacity: 1;
  animation: slideInUp 0.7s ease-out forwards;
}
.menu-open .menu-content > div > .menu-item,
.menu-open .menu-content > div > div > .menu-item {
  transform: translateY(0);
  opacity: 1;
  animation: slideInUp 0.6s ease-out forwards;
}
.menu-open .menu-content > div > .menu-info {
  transform: translateY(0);
  opacity: 1;
  animation: slideInUp 0.8s ease-out forwards;
}
.menu-open > div:first-child {
  transform: scale(1);
  opacity: 1;
}
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Smooth backdrop blur animation */
.menu-open {
  backdrop-filter: blur(8px);
}

.plus-icon .plus-line:nth-child(1) {
  transform: translateY(-50%) rotate(0deg);
}
.plus-icon .plus-line:nth-child(2) {
  transform: translateX(-50%) rotate(0deg);
}

.plus-icon.active .plus-line:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}
.plus-icon.active .plus-line:nth-child(2) {
  transform: translateX(-50%) rotate(-45deg);
}

.plus-line {
  transition: transform 0.3s ease;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(4px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-slideInLeft {
  animation: slideInLeft 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.995);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Scale in with very soft overshoot */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  70% {
    opacity: 1;
    transform: scale(1.015);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scaleIn {
  animation: scaleIn 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Slide in from right, smoother approach curve */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-4px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.animate-slideInRight {
  animation: slideInRight 550ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* formulaire */
#step1-circle,
#step2-circle,
#step3-circle {
  width: 156px;
}

@media (max-width: 768px) {
  #step1-circle,
  #step2-circle,
  #step3-circle {
    width: 92px;
  }
}
/* Contact Banner */
.contact-banner {
  background-color: white;
  box-shadow: 0 10px 40px rgba(4, 138, 129, 0.3);
  padding: 0;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(4, 138, 129, 0.4);
}

.contact-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.banner-header {
  background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-secondary) 100%);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0.75rem;
  font-family: var(--font-poppins);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: var(--tracking-spacing-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.banner-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-green-primary);
  border-radius: 2px;
}

.banner-body {
  padding: 1.2rem 1.2rem 1.2rem;
  position: relative;
  z-index: 1;
}

.schedule-text {
  font-family: var(--font-lexend);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.3rem;
  text-align: center;
  padding: 0.75rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  border: 1px solid var(--color-blue-primary);
}

/* TEKS TARIF / SERVICE */
.service-notice {
  margin-top: 0.8rem;
  font-family: var(--font-lexend);
  font-size: 0.75rem;
  line-height: 1.4;
  color: #4b5563;
  background: linear-gradient(
    135deg,
    rgba(76, 185, 68, 0.06),
    rgba(91, 206, 248, 0.06)
  );
  border-radius: 999px;
  border: 1px dashed rgba(76, 185, 68, 0.4);
  padding: 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: left;
}

.service-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(76, 185, 68, 0.12);
  color: var(--color-green-primary);
  flex-shrink: 0;
}

.phone-image {
  display: block;
  margin: 0 auto;
  max-width: 250px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.phone-image:hover {
  transform: scale(1.05);
}

.banner-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-poppins);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  letter-spacing: var(--tracking-spacing-2);
  text-decoration: none;
}

.banner-phone-number:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  background: #f8f8f8;
}

.banner-phone-number:active {
  transform: translateY(-1px);
}

.banner-body a {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .banner-header {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
  }
  
  .banner-body {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  
  .banner-phone-number {
    font-size: 1.25rem;
    padding: 0.875rem 1.5rem;
    gap: 0.5rem;
  }
  
  .banner-phone-number svg {
    width: 20px;
    height: 20px;
  }
  
  .schedule-text {
    font-size: 0.8rem;
    padding: 0.625rem 0.875rem;
  }

  .service-notice {
    font-size: 0.7rem;
    flex-direction: column;
    border-radius: 0.75rem;
  }

  .service-badge {
    font-size: 0.65rem;
  }
}


/* Animation for the entire banner on load */
#contactInfoBox {
  animation: slideInUp 0.4s ease-out;
}
#contactIcon{
  cursor: pointer;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}