/*
Theme Name: TTDY Theme
Theme URI: http://example.com/ttdytheme
*/

:root {
  --header-top-offset: 24px;
}

/* Remplit l'espace vide au-dessus du header */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--header-top-offset);
  background: #0f0d0d; /* même couleur que la zone au-dessus */
  z-index: 40; /* inférieur au header */
  pointer-events: none;
}

.site-header {
  top: var(--header-top-offset) !important;
  z-index: 50;
}

body {
  background-color: #0f0d0d;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  padding-bottom: 50px;
}

button {
  border-radius: 5px;
  padding: 8px 20px;
  cursor: pointer;
}

.btn-primary {
  background-color: #ffc53d;
  color: #0f0d0d;
}

.btn-secondary {
  border: 1px solid #ffc53d;
  color: #ffc53d;
}

.btn-secondary {
  position: relative;
  overflow: hidden; /* pour que le pseudo-élément reste dans le bouton */
  border: 1px solid #ffc53d;
  color: #ffc53d;
  border-radius: 5px;
  padding: 8px 20px;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* commence hors du bouton à gauche */
  width: 100%;
  height: 100%;
  background-color: #ffc53d;
  z-index: 0;
  transition: all 0.4s ease-in-out;
}

.btn-secondary:hover::before {
  left: 0; /* l’animation fait glisser le fond de gauche à droite */
}

.btn-secondary span {
  position: relative;
  z-index: 1; /* texte au-dessus du pseudo-élément */
  transition: color 0.3s ease-in-out;
}

.btn-secondary:hover span {
  color: #0f0d0d; /* texte change de couleur quand le bouton se remplit */
}

.btn-primary:hover {
  background-color: #d0a031;
  color: #0f0d0d;
}

.btn-offer {
  transform: scale(1) rotate(0deg);
  transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.btn-offer:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 0 15px #ffc53d;
  background-color: #ffc53d;
}

.service-card {
  align-items: center;
  background-color: #161412;
  height: 298px;
  width: 281px;
  border-radius: 16px;
  border: 0.8px solid #303030;
  /* padding: 20px; */
}

.nav-link:hover {
  color: inherit;
  text-decoration: none;
  color: #ffc53d;
  font-weight: bold;
}

/* OFFERS CARD */

.offer-card {
  background-color: #161412;
  width: 350px;
  border: #303030 solid 0.8px;
  border-radius: 16px;
  padding-bottom: 25px;
  padding-top: 50px;
}

/* INPUTS */

.inputtext {
  background-color: #1a1818;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #ffffff;
  padding: 10px;
  width: 400px;
  box-sizing: border-box;
}
