/*
 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
*/

:root {
  --color-red: #da3a3a;
  --color-light: #f4f4f4;
  --color-dark: #1e1e1e;

  --color-red-hover: #c73434;
  --color-text: #1e1e1e;
  --color-background: #f4f4f4;
  --color-white: #ffffff;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Utility classes */
#acf-content {
  font-family: "Montserrat";
}

.text-color-red {
  color: var(--color-red) !important;
}

.bg-color-red {
  background-color: var(--color-red) !important;
}

/* Header */
#masthead .navbar {
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-logo {
  max-height: 40px;
  width: auto;
}

#nav-main .navbar-nav .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

#nav-main .navbar-nav .current-menu-item > .nav-link {
  color: #545454 !important;
  font-weight: 700;
}

@media (min-width: 992px) {
  #nav-main .navbar-brand,
  #nav-main .header-actions {
    flex-shrink: 0;
  }

  #nav-main #offcanvas-navbar {
    flex-grow: 1;
  }

  #nav-main #offcanvas-navbar .offcanvas-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  #nav-main #bootscore-navbar {
    justify-content: center;
    width: 100%;
  }
}

/* Section: Entete */
.cl-entete {
  min-height: clamp(220px, 26vw, 360px);
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.cl-entete__overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.entete_title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 26ch;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991px) {
  .cl-entete {
    min-height: 220px;
  }

  .entete_title {
    max-width: 100%;
  }
}

/* Section: Hero */
.hero-split {
  background: var(--color-background);
  min-height: 520px;
}

.hero-split > .container-fluid,
.hero-split > .container-fluid > .row {
  min-height: inherit;
}

.hero-split .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-cta-primary {
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.35);
  transition: all 0.25s ease;
}

.btn-cta-primary:hover {
  box-shadow: 0 14px 35px rgba(220, 53, 69, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .hero-split {
    min-height: auto;
  }

  .hero-split .hero-image img {
    height: 400px;
  }
}

/* Gallery: zoom on images */
.gallerie [data-fancybox] {
  cursor: zoom-in;
}

.gallerie [data-fancybox] img {
  transition: transform 0.35s ease;
  transform-origin: center;
  will-change: transform;
}

.gallerie [data-fancybox]:hover img,
.gallerie [data-fancybox]:focus-visible img {
  transform: scale(1.06);
}

.gallerie [data-fancybox]:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gallerie [data-fancybox] img {
    transition: none;
  }

  .gallerie [data-fancybox]:hover img,
  .gallerie [data-fancybox]:focus-visible img {
    transform: none;
  }
}

/* Shared CTA motion */
.cl-info-cta,
.cl-gallerie-cta,
.cl-layout-cta {
  transition: transform 0.2s ease;
  will-change: transform;
}

.cl-layout-cta {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.cl-info-cta i,
.cl-gallerie-cta i,
.cl-layout-cta i {
  transition: transform 0.2s ease;
}

.cl-info-cta:hover,
.cl-info-cta:focus-visible,
.cl-gallerie-cta:hover,
.cl-gallerie-cta:focus-visible,
.cl-layout-cta:hover,
.cl-layout-cta:focus-visible {
  transform: translateY(-1px) scale(1.02);
}

.cl-layout-cta:hover,
.cl-layout-cta:focus-visible {
  opacity: 0.95;
}

.cl-info-cta:hover i,
.cl-info-cta:focus-visible i,
.cl-layout-cta:hover i,
.cl-layout-cta:focus-visible i {
  transform: translateX(2px);
}

.cl-gallerie-cta:hover i,
.cl-gallerie-cta:focus-visible i {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .cl-info-cta,
  .cl-gallerie-cta,
  .cl-layout-cta,
  .cl-info-cta i,
  .cl-gallerie-cta i,
  .cl-layout-cta i {
    transition: none;
  }

  .cl-info-cta:hover,
  .cl-info-cta:focus-visible,
  .cl-gallerie-cta:hover,
  .cl-gallerie-cta:focus-visible,
  .cl-layout-cta:hover,
  .cl-layout-cta:focus-visible {
    transform: none;
  }

  .cl-info-cta:hover i,
  .cl-info-cta:focus-visible i,
  .cl-gallerie-cta:hover i,
  .cl-gallerie-cta:focus-visible i,
  .cl-layout-cta:hover i,
  .cl-layout-cta:focus-visible i {
    transform: none;
  }
}

/* Section: Image + Texte */
.image-texte-content p {
  font-weight: 400 !important;
  color: #6b6b6b !important;
}

/* Section: Reassurance */
.feature-card {
  background: #f3f3f3;
}

.feature-card p {
  line-height: 1.6;
}

/* Section: Layout */
.cta-layout {
  background: var(--color-dark);
  position: relative;
}

@media (min-width: 1200px) {
  .cta-layout {
    max-height: 450px;
  }
}

@media (min-width: 992px) {
  .cta-layout-image {
    display: flex;
    clip-path: polygon(37% 0, 100% 0, 100% 100%, 0% 100%) !important;
  }
}

.cta-layout-link {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid white;
  padding-bottom: 3px;
  font-weight: 500;
}

.cta-layout-link:hover {
  opacity: 0.8;
}

/* Section: Carroussel (Swiper) */
.cl-carroussel {
  background: linear-gradient(180deg, #2b2b2b 0%, #242424 100%);
}

.cl-carroussel .swiper {
  overflow: hidden;
}

.cl-carroussel .swiper-slide {
  height: auto;
}

.cl-carroussel__panel {
  background: #3b3b3b;
}

.cl-carroussel__card {
  border-radius: 0;
  background: transparent;
  border: 0;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  will-change: transform;
}

.cl-carroussel__card:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.cl-carroussel__nav {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.75);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.cl-carroussel__nav:hover,
.cl-carroussel__nav:focus-visible {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.cl-carroussel__nav i {
  font-size: 2rem;
  line-height: 1;
}

.cl-carroussel__link i {
  transition: transform 0.2s ease;
}

.cl-carroussel__link:hover i,
.cl-carroussel__link:focus-visible i {
  transform: translate(2px, -2px);
}

.cl-carroussel .swiper-pagination-bullet {
  opacity: 0.3;
  background: rgba(255, 255, 255, 0.7);
}

.cl-carroussel .swiper-pagination-bullet-active {
  opacity: 1;
  background: rgba(255, 255, 255, 1);
}

@media (prefers-reduced-motion: reduce) {
  .cl-carroussel__card,
  .cl-carroussel__nav,
  .cl-carroussel__link i {
    transition: none;
  }

  .cl-carroussel__card:hover,
  .cl-carroussel__nav:hover,
  .cl-carroussel__nav:focus-visible {
    transform: none;
  }
}

/* Section: Contact (CF7) */
.cl-contact__form {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.cl-contact .wpcf7 form {
  margin: 0;
}

.cl-contact .wpcf7 form p {
  margin-bottom: 1rem;
}

.cl-contact .wpcf7 :is(label) {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cl-contact .wpcf7 :is(input, textarea, select) {
  width: 100%;
  border: 1px solid var(--bs-border-color);
  background: #fff;
  color: var(--bs-body-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.3;
}

.cl-contact .wpcf7 :is(textarea) {
  min-height: 140px;
}

.cl-contact .wpcf7 :is(input, textarea, select)::placeholder {
  color: var(--bs-secondary-color);
  opacity: 0.75;
}

.cl-contact .wpcf7 :is(input, textarea, select):focus {
  outline: none;
  border-color: rgba(220, 53, 69, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.cl-contact .wpcf7 :is(input[type="checkbox"], input[type="radio"]) {
  width: auto;
  padding: 0;
  border-radius: 0.25rem;
}

.cl-contact .wpcf7 :is(.wpcf7-not-valid-tip) {
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.cl-contact .wpcf7 :is(.wpcf7-response-output) {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
}

.cl-contact .wpcf7 :is(.wpcf7-spinner) {
  margin-left: 0.5rem;
}

.cl-contact .wpcf7 input[type="submit"] {
  width: auto;
  background: var(--bs-danger);
  border-color: var(--bs-danger);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 28px rgba(220, 53, 69, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.cl-contact .wpcf7 input[type="submit"]:hover,
.cl-contact .wpcf7 input[type="submit"]:focus {
  filter: brightness(0.97);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(220, 53, 69, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .cl-contact .wpcf7 input[type="submit"] {
    transition: none;
  }

  .cl-contact .wpcf7 input[type="submit"]:hover,
  .cl-contact .wpcf7 input[type="submit"]:focus {
    transform: none;
  }
}
