/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/*
All style editing is done via /assets/scss/_bootscore_custom.scss
*/

/* ==========================================================================
   1. Settings - Variables, fonts, etc.
   ========================================================================== */

:root {
  --header-height: 00px;

  --tr-red: #e31217;
  --tr-red-dark: #bf0f13;
  --tr-black: #16181d;
  --tr-grey: #545454;
  --tr-soft: #f5f5f5;
  --tr-yellow: #ffe061;
  --tr-green-line: #13b45d;

  --heading-1: clamp(2rem, 5vw, 5.8rem);
  --heading-2: clamp(2rem, 4vw, 4rem);
  --heading-3: clamp(1.5rem, 2.2vw, 2.35rem);
  --heading-4: clamp(1.15rem, 1.8vw, 2.05rem);
  --heading-5: clamp(0.95rem, 1.3vw, 1.65rem);
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope/Manrope-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

@media (min-width: 1550px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1500px;
  }
}

@media (min-width: 1650px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1600px;
  }
}

/* ==========================================================================
   4. Utilities
   ========================================================================== */

/* Fix scroll horizontal causé par AOS sur mobile */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* Sur mobile, on évite les translations horizontales AOS */
@media (max-width: 767.98px) {
  [data-aos] {
    transform: none !important;
  }
}

.cta {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

#masthead,
#logo-header {
  transition: all ease 0.3s;
}

/*
  Le backdrop-filter ne doit JAMAIS être posé directement sur #masthead
  ni sur l'offcanvas : il créerait un nouveau containing block et
  l'offcanvas Bootstrap (position: fixed) serait clipé aux dimensions
  du header. On le pose toujours sur un ::before en position: absolute.
*/
#masthead.is-scrolled {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: background-color 0.3s ease;
}
#masthead.is-scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(35px);
  backdrop-filter: blur(35px);
  pointer-events: none;
  z-index: -1;
}

#bootscore-navbar {
  --bs-nav-link-color: white !important;
  font-size: 1.15rem;
}

.navbar-nav .nav-link.active {
  color: white !important;
  font-weight: 700 !important;
}


.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active:hover {
  color: var(--tr-red) !important;
}

/* Responsive header */
@media (max-width: 1400px) {
  #masthead {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow:
      rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
      rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    /* backdrop-filter: blur(35px); */
    transition: background-color 0.3s ease;
  }
  #masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(35px);
    backdrop-filter: blur(35px);
    pointer-events: none;
    z-index: 0;
  }
  #bootscore-navbar a {
    --bs-nav-link-color: white;
  }
  .navbar-nav .nav-link.active {
    font-weight: 700;
    color: black;
  }
  #nav-main .offcanvas {
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(35px);
    backdrop-filter: blur(35px);
  }
  #nav-main .offcanvas .offcanvas-header {
    color: white !important;
  }
  #nav-main .offcanvas .offcanvas-header .btn-close {
    filter: invert(1);
  }
}

.bg-tr-red {
  background: var(--tr-red) !important;
}

#acf-content .bg-tr-red-dark {
  background: var(--tr-red-dark) !important;
}

#acf-content .bg-tr-soft {
  background: var(--tr-soft) !important;
}

#acf-content .bg-tr-red-gradient {
  background-image: linear-gradient(
    to right,
    #ad1b1b,
    #b91a1a,
    #c61818,
    #d21616,
    #df1313
  );
}

.text-tr-red {
  color: var(--tr-red) !important;
}

#acf-content .text-tr-red-dark {
  color: var(--tr-red-dark) !important;
}

#acf-content .text-tr-black {
  color: var(--tr-black) !important;
}

#acf-content .text-tr-yellow {
  color: var(--tr-yellow) !important;
}

.text-tr-grey {
  color: var(--tr-grey) !important;
}

#acf-content .rounded-tr {
  border-radius: 1rem !important;
}

#acf-content .shadow-tr {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

#acf-content .tr-fs-1,
#acf-content h1 {
  font-family: "Manrope";
  font-size: var(--heading-1);
  line-height: 1.05;
}

#acf-content .tr-fs-2,
#acf-content h2 {
  font-family: "Manrope";
  font-size: var(--heading-2);
  line-height: 1;
  margin-bottom: 1.5rem !important;
}

#acf-content .tr-fs-3,
#acf-content h3 {
  font-family: "Manrope";
  font-size: var(--heading-3);
  line-height: 1.2;
}

#acf-content .tr-fs-4,
#acf-content h4 {
  font-family: "Manrope";
  font-size: var(--heading-4);
  line-height: 1.25;
}

#acf-content .tr-fs-5,
#acf-content h5 {
  font-family: "Manrope";
  font-size: var(--heading-5);
  line-height: 1.35;
}

#acf-content .tr-fw-700 {
  font-weight: 700;
}

#acf-content .tr-fw-800 {
  font-weight: 800;
}

#acf-content .tr-ls-1 {
  letter-spacing: 0.04em;
}

#acf-content .tr-ls-2 {
  letter-spacing: 0.07em;
}

#acf-content .tr-title {
  font-size: clamp(1.9rem, 3.8vw, 4rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--tr-black);
}

#acf-content .tr-kicker {
  font-size: clamp(0.95rem, 1.3vw, 1.65rem);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#acf-content .tr-lead {
  color: #2e3137;
  font-size: 1.1rem;
}

.tr-radius {
  border-radius: 5px 20px 5px 20px !important;
}

.btn-tr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 5px 20px 5px 20px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-tr-red {
  color: #fff;
  background: var(--tr-red);
}

.btn-tr-outline {
  border: solid white 1px;
  color: white !important;
  transition: all ease 0.3s;
}

.btn-tr-outline:hover {
  background: white;
  color: var(--tr-red) !important;
}

.btn-tr-red:hover {
  color: #fff;
  background: var(--tr-red-dark);
}

.btn-tr-light {
  color: var(--tr-red);
  background: #fff;
}

.btn-tr-light:hover {
  color: #fff;
  background: var(--tr-black);
}

.btn-tr-link {
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  font-weight: 700;
  color: inherit;
}

.btn-icon-phone::before {
  font-family: "Font Awesome 6 Pro";
  content: "\f095";
  margin-right: 0.45rem;
}

.btn-icon-mail::before {
  font-family: "Font Awesome 6 Pro";
  content: "\f0e0";
  margin-right: 0.45rem;
}

.btn-icon-invoice::before {
  font-family: "Font Awesome 6 Pro";
  content: "\f873";
  margin-right: 0.45rem;
}

.btn-icon-arrow::after {
  font-family: "Font Awesome 6 Pro";
  content: "\f063";
  margin-left: 0.45rem;
  transform: rotate(-135deg);
}

.link-tr {
  color: var(--tr-red);
  font-weight: 700;
  text-decoration: underline;
}

.link-tr:hover {
  color: var(--tr-red-dark);
}

.text-white.link-tr,
.text-white .link-tr {
  color: #fff;
}

#acf-content .tr-bg-cover {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#acf-content .tr-bg-video {
  object-fit: cover;
  object-position: center;
}

#acf-content .tr-overlay-dark {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

#acf-content .tr-overlay-soft {
  background: black;
  opacity: 0.5;
  transition: all ease 0.3s;
}

/* HERO HEADER */

#acf-content .tr-min-h-hero {
  min-height: 90vh;
}

.padding-offset-hero {
  padding-top: var(--header-height);
}

@media (max-width: 768px) {
  .padding-offset-hero {
    padding-top: calc(var(--header-height) + 50px);
  }
}

#acf-content .tr-badge-hero {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(20vw, 170px);
}
@media (max-width: 768px) {
  #acf-content .tr-badge-hero {
    display: none;
  }
}

.page-title-content > h1 {
  font-size: var(--heading-2) !important;
}

.page-hero-content > h1 {
  font-size: var(--heading-1);
}

#acf-content .tr-card {
  border-radius: 1rem;
  padding: 1.5rem;
}

#acf-content .tr-card-soft {
  background: var(--tr-soft);
}

#acf-content .tr-card-border {
  background: #fff;
  border: 1px solid #ececec;
}

#acf-content .tr-card-outline {
  background: #fff;
  border: 1px solid rgba(227, 18, 23, 0.35);
}

@media (min-width: 992px) {
  #acf-content .tr-card-media {
    aspect-ratio: 3/4;
  }
}

@media (min-width: 768px) {
  #acf-content .tr-card-media {
    aspect-ratio: 3/4;
  }

  #acf-content .tr-card-media-sm {
    aspect-ratio: 2.45/1;
  }
}

#acf-content .tr-card-media {
  border-radius: 1.15rem;
  transition: all ease 0.3s;
}

#acf-content .tr-card-media-sm {
  min-height: 150px;
}

#acf-content .tr-card-link:hover .tr-overlay-soft,
#acf-content .tr-card-link:hover .tr-card-content {
  opacity: 0;
}

#acf-content .tr-img-cover {
  object-fit: cover !important;
}

#acf-content .tr-badge-red {
  background: rgba(227, 18, 23, 0.9);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
}

#acf-content .tr-list-icon {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#acf-content .tr-list-icon li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

#acf-content .tr-list-icon .tr-icon {
  color: var(--tr-red);
}

#acf-content .tr-stat-value {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 800;
  color: var(--tr-red);
}

#acf-content .tr-stat-label {
  font-size: clamp(1rem, 1.35vw, 1.8rem);
  color: #292b31;
}

@media (max-width: 768px) {
  #acf-content .tr-arrow-btn {
    display: none;
  }
}

#acf-content .tr-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  color: var(--tr-red) !important;
  font-size: 2.5rem;
  line-height: 1;
  background: transparent !important;
}

.js-prestations-prev.swiper-button-disabled,
.js-prestations-next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

#acf-content .tr-arrow-left {
  left: -3.5rem;
}

#acf-content .tr-arrow-right {
  right: -3.5rem;
}

#acf-content .js-prestations-pagination {
  position: static;
  margin-top: 0.75rem;
}

#acf-content .js-prestations-pagination .swiper-pagination-bullet {
  background: #545454;
  opacity: 0.45;
}

#acf-content .js-prestations-pagination .swiper-pagination-bullet-active {
  background: var(--tr-red);
  opacity: 1;
}


#acf-content .tr-decor-right {
  position: absolute;
  inset: 0 0 0 auto;
  width: 40%;
  opacity: 0.22;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}

#acf-content .tr-source-logo {
  width: auto;
  max-height: 24px;
}

#acf-content .tr-scroll-x {
  overflow-x: auto;
}

#acf-content .tr-snap-x {
  scroll-snap-type: x mandatory;
}

#acf-content .tr-snap-item {
  min-width: min(74vw, 330px);
  scroll-snap-align: start;
}

#acf-content .tr-logo-72 {
  max-height: 72px;
  width: auto;
}

#acf-content .tr-logo-96 {
  max-width: 140px;
}

#acf-content .tr-map-zone {
  max-width: min(45vw, 260px);
}

#acf-content .tr-input-mock {
  border-radius: 0.75rem;
  background: #f2f2f2;
  color: #8b8b8b;
  padding: 0.9rem 1rem;
}

#acf-content .js-prestations-swiper {
  overflow: hidden;
}

#acf-content .js-prestations-swiper .swiper-slide {
  height: auto;
}

#acf-content .js-prestations-swiper .swiper-slide .tr-card-media-sm {
  height: 100%;
}

#acf-content .js-partenaires-swiper {
  overflow: hidden;
}

#acf-content .js-partenaires-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

#acf-content .js-partenaires-swiper .swiper-slide {
  height: auto;
}

#acf-content .tr-section-presentation ul {
  list-style: none;
  padding-left: 0;
}

#acf-content .tr-section-presentation ul > li {
  position: relative;
  padding-left: 1.75rem;
}

#acf-content .tr-section-presentation ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1rem; /* taille */
  height: 1rem; /* taille */
  -webkit-mask: url("/wp-content/themes/bootscore-child/assets/img/icon/circle-check-duotone-solid.svg")
    no-repeat center / contain;
  mask: url("/wp-content/themes/bootscore-child/assets/img/icon/circle-check-duotone-solid.svg")
    no-repeat center / contain;
  background-color: var(--tr-red); /* couleur */
}
/* ==========================================================================
   5. Responsive
   ========================================================================== */

@media (max-width: 1199.98px) {
  #acf-content .tr-badge-hero {
    width: 120px;
  }
}

@media (max-width: 991.98px) {
  #acf-content .tr-min-h-hero {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  #acf-content .btn-tr {
    width: 100%;
  }

  #acf-content .tr-snap-item {
    min-width: 82vw;
  }
}

/* PHONE BUTTON */

.tr-phone-widget {
  left: 5%;
  bottom: 50px;
}

.tr-phone-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tr-red);
}

.tr-phone-panel {
  position: absolute;
  left: 5%;
  bottom: calc(100% + 0.5rem);
  background: #fff;
  color: #16181d;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  white-space: nowrap;
}

.tr-phone-panel a {
  color: inherit;
}

@media (max-width: 575.98px) {
  .tr-phone-widget {
    right: 4.6rem;
    bottom: 0.75rem;
  }
}

/* LISTING REALISATIONS */

.tr-real-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tr-real-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.tr-real-card-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tr-real-card-title {
  color: var(--tr-red);
  font-weight: 700;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.3;
  min-height: 56px;
}

/* REALISATIONS SWIPER */

.js-realisations-swiper .swiper-slide {
  border-radius: 1rem;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 2px 8px #0001;
  transition:
    border 0.2s,
    filter 0.2s;
  filter: blur(3px);
  height: 370px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.js-realisations-swiper .swiper-slide.swiper-slide-active {
  border: 2px solid var(--tr-red);
  filter: none;
  z-index: 2;
}

.js-realisations-next,
.js-realisations-prev {
  cursor: pointer;
  user-select: none;
}

/* FOOTER SLIDER PHOTOS */

.tr-footer-photos-strip {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.js-footer-photos-swiper {
  padding: 10px 0;
}

.js-footer-photos-swiper .swiper-slide {
  height: auto;
}

.tr-footer-photo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
}

.tr-footer-photo-card img {
  object-fit: cover;
}

.tr-footer-photos-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 5;
  pointer-events: none;
}

.tr-footer-photos-fade-right {
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.tr-footer-photos-fade-left {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* SECTION CONTACT */

.tr-contact-section .tr-contact-list {
  display: grid;
  gap: 0.75rem;
}

.tr-contact-section .tr-contact-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
}

.tr-contact-section .tr-contact-item i {
  margin-top: 0.2rem;
  color: var(--tr-red);
}

.tr-contact-section .tr-contact-item-label {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.tr-contact-section .tr-contact-item-value {
  color: #16181d;
  text-decoration: none;
  word-break: break-word;
}

.tr-contact-section .tr-contact-item a.tr-contact-item-value:hover {
  text-decoration: underline;
}

.tr-contact-section .tr-contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
