:root {
  /* Couleurs principales */
  --color-blue: #1f97e8;
  --color-light-blue: #3395c1;
  --color-dark-blue: #023259;
  --color-dark: #1e1e1e;

  /* Variantes utiles */
  --color-blue-hover: #043d6c;
  --color-text: #1e1e1e;
  --color-white: #ffffff;

  /* Bootstrap: relie aux variables du thème */
  --bs-primary: var(--color-blue);
  --bs-secondary: var(--color-light-blue);
  --bs-dark: var(--color-dark);
  --bs-body-color: var(--color-text);
  --bs-link-color: var(--color-blue);
  --bs-link-hover-color: var(--color-blue-hover);
  --bs-white: var(--color-white);
  --bs-black: var(--color-dark);
}

.text-dark-blue {
  color: var(--color-dark-blue) !important;
}

/* ________________________________ UI: Bouton moderne ________________________________ */
.btn{
  padding: 0.5rem 1.5rem !important;
}


.cl-btn-modern {
  color: var(--color-white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--color-dark-blue) 0%,
    var(--color-blue) 55%,
    var(--color-blue-hover) 100%
  );
  background-size: 200% 100%;
  background-position: 12% 50%;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  box-shadow:
    0 18px 44px color-mix(in srgb, var(--color-dark) 18%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--color-white) 18%, transparent);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-position 0.35s ease;
}

.cl-btn-modern:hover,
.cl-btn-modern:focus-visible {
  filter: brightness(1.035);
  transform: translateY(-2px);
  background-position: 88% 50%;
  color: var(--color-white);
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--color-dark) 22%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--color-white) 22%, transparent);
}

.btn-icon-phone::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  content: "\f095";
  margin-right: 0.45rem;
}

.btn-icon-mail::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  content: "\f0e0";
  margin-right: 0.45rem;
}

.btn-icon-arrow::after {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  content: "\f061";
  margin-left: 0.45rem;
}

/* __________________________ Header / Navbar __________________________ */
#masthead {
  --bs-border-color: var(--color-dark-blue);
}

#nav-main .navbar-nav .nav-link {
  font-weight: 700;
  letter-spacing: 0.01em;
}

#nav-main
  .navbar-nav
  :is(
    .current-menu-item,
    .current_page_item,
    .current_page_parent,
    .current-menu-parent
  )
  > .nav-link {
  color: var(--color-light-blue);
}

/* ________________________________Section: Entête ________________________________ */
.cl-entete {
  min-height: clamp(220px, 26vw, 360px);
  background-image: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-dark) 70%, transparent) 0%,
    color-mix(in srgb, var(--color-dark) 35%, transparent) 55%,
    color-mix(in srgb, var(--color-dark) 10%, transparent) 100%
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
}

.cl-entete__overlay {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-dark) 65%, transparent) 0%,
    color-mix(in srgb, var(--color-dark) 22%, transparent) 55%,
    transparent 100%
  );
}

.entete_title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: min(26ch, 100%);
  text-shadow: 0 16px 40px
    color-mix(in srgb, var(--color-dark) 45%, transparent);
}

/* ________________________________Section: Hero ________________________________ */
.cl-hero {
  min-height: clamp(360px, 60vh, 720px);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: var(--color-blue);
}

.cl-titre-page {
  padding: 0 3rem;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: var(--color-blue);
}

.cl-hero__title {
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow: 0 18px 46px
    color-mix(in srgb, var(--color-dark) 25%, transparent);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.cl-hero__text {
  max-width: 30rem;
  font-size: 0.98rem;
  opacity: 0.92;
}

.cl-hero__text > :last-child {
  margin-bottom: 0;
}

.cl-hero__cta--ghost {
  --bs-btn-color: color-mix(in srgb, var(--color-white) 96%, transparent);
  --bs-btn-border-color: color-mix(
    in srgb,
    var(--color-white) 82%,
    transparent
  );
  --bs-btn-hover-color: var(--color-white);
  --bs-btn-hover-bg: color-mix(in srgb, var(--color-white) 12%, transparent);
  --bs-btn-hover-border-color: color-mix(
    in srgb,
    var(--color-white) 92%,
    transparent
  );
  --bs-btn-border-width: 2px;
}

@media (max-width: 575px) {
  .cl-hero {
    min-height: clamp(320px, 65vh, 520px);
  }
}

/* ________________________________Section: Information ________________________________ */
.cl-info__media {
  box-shadow: 0 26px 70px color-mix(in srgb, var(--color-dark) 10%, transparent);
  aspect-ratio: 4 / 3;
  min-height: clamp(240px, 26vw, 380px);
}

.cl-info__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 2.7vw, 2.6rem);
  line-height: 1.12;
}

.cl-info__text :where(p):last-child {
  margin-bottom: 0;
}

.cl-info__text :where(ul) {
  list-style: none;
  padding-left: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.cl-info__text :where(ul li) {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  align-items: start;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  font-weight: 600;
}

.cl-info__text :where(ul li)::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-blue);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 0.1rem;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--color-blue) 22%, transparent);
}

@media (max-width: 991px) {
  .cl-info__media {
    aspect-ratio: 16 / 10;
    min-height: clamp(210px, 55vw, 320px);
  }
}

/* ________________________________Section: Répeteur (Swiper) ________________________________ */
.cl-repeteur {
  background: color-mix(in srgb, var(--color-blue) 4%, var(--color-white));
  padding-block: clamp(4rem, 6.5vw, 6.25rem);
}

.cl-repeteur__title {
  letter-spacing: -0.02em;
  font-size: 40px;
  line-height: 1.08;
  color: var(--color-blue);
}

.cl-repeteur__underline {
  width: 140px;
  height: 5px;
  border-radius: 999px;
  background: var(--color-blue);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--color-blue) 18%, transparent);
  margin-top: 1.1rem;
}

.cl-repeteur__swiper .swiper-wrapper {
  align-items: stretch;
}

.cl-repeteur__swiper .swiper-slide {
  height: auto;
}

.cl-repeteur__card {
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--color-blue) 10%, transparent);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--color-dark) 7%, transparent);
  background: var(--color-white);
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    filter 0.25s ease;
}

.cl-repeteur__card:hover,
.cl-repeteur__card:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--color-blue) 32%, transparent);
  box-shadow: 0 34px 84px color-mix(in srgb, var(--color-dark) 10%, transparent);
}

.cl-repeteur__card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-blue) 40%, transparent);
  outline-offset: 6px;
}

.cl-repeteur__img-wrap img {
  transition: transform 0.5s ease;
  transform-origin: center;
  will-change: transform;
}

.cl-repeteur__img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: color-mix(in srgb, var(--color-blue) 6%, var(--color-white));
}

.cl-repeteur__img-cta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-blue);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--color-blue) 32%, transparent);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cl-repeteur__img-cta i {
  font-size: 0.95rem;
  line-height: 1;
}

.cl-repeteur__card:hover .cl-repeteur__img-wrap img,
.cl-repeteur__card:focus-visible .cl-repeteur__img-wrap img {
  transform: scale(1.06);
}

.cl-repeteur__card:hover .cl-repeteur__img-cta,
.cl-repeteur__card:focus-visible .cl-repeteur__img-cta {
  transform: translateY(-1px) scale(1.05);
  background: var(--color-dark-blue);
  box-shadow: 0 18px 42px
    color-mix(in srgb, var(--color-dark-blue) 32%, transparent);
}

.cl-repeteur__nav {
  --nav-x: 0px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 0;
  position: absolute;
  top: 50%;
  z-index: 5;
  background: var(--color-blue);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--color-dark) 12%, transparent);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.98;
  transform: translate3d(var(--nav-x), -50%, 0);
}

.cl-repeteur__nav i {
  font-size: 2.05rem;
  line-height: 1;
}

.cl-repeteur__nav--prev {
  left: 0;
  --nav-x: -24px;
}

.cl-repeteur__nav--next {
  right: 0;
  --nav-x: 24px;
}

.cl-repeteur__nav:hover,
.cl-repeteur__nav:focus-visible {
  background: color-mix(in srgb, var(--color-blue) 50%, transparent);
  transform: translate3d(var(--nav-x), calc(-50% - 1px), 0);
}

.cl-repeteur__nav:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-blue) 35%, transparent);
  outline-offset: 4px;
}

.cl-repeteur__nav.swiper-button-lock {
  display: inline-flex !important;
}

.cl-repeteur__nav.swiper-button-disabled {
  opacity: 0.7;
}

.cl-repeteur__pagination {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  position: static !important;
  inset: auto !important;
  width: 100%;
}

.cl-repeteur__pagination.swiper-pagination-lock {
  display: flex !important;
}

.cl-repeteur__pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-blue) 20%, transparent);
  opacity: 1;
}

.cl-repeteur__pagination .swiper-pagination-bullet-active {
  background: var(--color-blue);
}

@media (min-width: 1440px) {
  .cl-repeteur__nav--prev {
    --nav-x: -56px;
  }

  .cl-repeteur__nav--next {
    --nav-x: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-repeteur__nav,
  .cl-repeteur__card,
  .cl-repeteur__img-wrap img,
  .cl-repeteur__img-cta,
  .cl-repeteur__card i {
    transition: none;
  }

  .cl-repeteur__card:hover,
  .cl-repeteur__card:focus-visible {
    transform: none;
  }

  .cl-repeteur__card:hover .cl-repeteur__img-wrap img,
  .cl-repeteur__card:focus-visible .cl-repeteur__img-wrap img {
    transform: none;
  }
}

/* ________________________________Section: Services ________________________________ */
.cl-services {
  background: var(--color-white);
}

/* ________________________________Section: Gallerie ________________________________ */
.cl-gallery__intro {
  background: color-mix(in srgb, var(--color-blue) 6%, var(--color-white));
}

.cl-gallery__title {
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
}

.cl-gallery__text {
  max-width: 34rem;
}

.cl-gallery__text > :last-child {
  margin-bottom: 0;
}

.cl-gallery__featured,
.cl-gallery__thumb {
  box-shadow: 0 22px 55px color-mix(in srgb, var(--color-dark) 8%, transparent);
  background: color-mix(in srgb, var(--color-blue) 4%, var(--color-white));
}

/* ________________________________Section: Arguments ________________________________ */
.cl-arguments {
  background: color-mix(in srgb, var(--color-blue) 4%, var(--color-white));
}

.cl-arguments__title {
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
}

.cl-arguments__card {
  --bs-border-radius: 12px;
  --bs-border-color: color-mix(in srgb, var(--color-blue) 12%, transparent);
  box-shadow: 0 16px 44px color-mix(in srgb, var(--color-dark) 4%, transparent);
}

.cl-arguments__icon {
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--color-blue) 10%, var(--color-white));
  color: var(--color-blue);
}

.cl-arguments__icon i {
  font-size: 1.1rem;
  line-height: 1;
}

.cl-services__heading {
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.cl-services__card {
  border: 2px solid var(--color-dark-blue);
  border-radius: 0.75rem;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--color-dark) 6%, transparent);
  min-height: 0;
}

.cl-services__card:hover,
.cl-services__card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px color-mix(in srgb, var(--color-dark) 10%, transparent);
}

.cl-services__media {
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--color-dark) 6%, var(--color-white));
}

@media (min-width: 992px) {
  .cl-services__media--featured {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }
}

.cl-services__label {
  color: var(--color-dark-blue);
}

.cl-services__arrow {
  width: 28px;
  height: 28px;
  background: var(--color-blue);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.cl-services__card:hover .cl-services__arrow,
.cl-services__card:focus-visible .cl-services__arrow {
  transform: translateY(-1px);
  background: var(--color-dark-blue);
}

.cl-services__card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-blue) 35%, transparent);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .cl-services__card,
  .cl-services__arrow {
    transition: none;
  }

  .cl-services__card:hover,
  .cl-services__card:focus-visible {
    transform: none;
  }
}

/* ________________________________Gallery: scale UI on images ________________________________ */
.cl-gallery [data-fancybox] {
  cursor: zoom-in;
}

.cl-gallery [data-fancybox] img {
  transition: transform 0.35s ease;
  transform-origin: center;
  will-change: transform;
}

.cl-gallery [data-fancybox]:is(:hover, :focus-visible) img {
  transform: scale(1.06);
}

.cl-gallery [data-fancybox]:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cl-gallery [data-fancybox] img {
    transition: none;
  }

  .cl-gallery [data-fancybox]:is(:hover, :focus-visible) img {
    transform: none;
  }
}

/* ________________________________Section: Layout CTA ________________________________ */
.cta-layout {
  color: var(--color-white);
  background: linear-gradient(
    90deg,
    var(--color-dark-blue) 0%,
    var(--color-blue) 100%
  );
}

#acf-content > section.cta-layout:last-child {
  border-bottom: 0 !important;
}

.cta-layout__title {
  letter-spacing: -0.01em;
  text-shadow: 0 18px 46px
    color-mix(in srgb, var(--color-dark) 22%, transparent);
}

.cta-layout .btn {
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.2rem;
  --bs-btn-font-size: 0.92rem;
  --bs-btn-border-radius: 999px;
  letter-spacing: 0;
}

.cta-layout .btn:not(.cl-btn-modern) {
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-layout .btn i {
  font-size: 1rem;
  line-height: 1;
}

.cta-layout__btn-primary {
  --bs-btn-border-width: 2px;
  --bs-btn-color: var(--color-dark-blue);
  --bs-btn-hover-color: var(--color-dark-blue);
  --bs-btn-border-color: color-mix(
    in srgb,
    var(--color-white) 96%,
    transparent
  );
  box-shadow: 0 14px 34px color-mix(in srgb, var(--color-dark) 16%, transparent);
}

.cta-layout .btn:not(.cl-btn-modern):is(:hover, :focus-visible) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

@media (min-width: 992px) {
  .cta-layout {
    min-height: clamp(220px, 20vw, 320px);
  }
}

@media (max-width: 575px) {
  .cta-layout .btn {
    --bs-btn-padding-y: 0.65rem;
    --bs-btn-padding-x: 1.05rem;
    --bs-btn-font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-layout .btn:not(.cl-btn-modern) {
    transition: none;
  }

  .cta-layout .btn:not(.cl-btn-modern):is(:hover, :focus-visible) {
    transform: none;
  }
}

/* ________________________________ Image + Texte (sticky) ________________________________ */
@media (min-width: 992px) {
  .cl-image-texte__sticky {
    position: sticky;
    top: var(--cl-image-texte-sticky-top, 110px);
  }
}

.cl-image-texte__frame {
  --bs-border-color: var(--color-dark-blue);
  box-shadow: 0 22px 55px color-mix(in srgb, var(--color-dark) 8%, transparent);
}

.cl-image-texte__frame img {
  transition: transform 0.35s ease;
  transform-origin: center;
  will-change: transform;
}

.cl-image-texte__row:is(:hover, :focus-within) .cl-image-texte__frame img {
  transform: scale(1.03);
}

.cl-image-texte__content {
  --bs-border-color: color-mix(in srgb, var(--color-dark) 8%, transparent);
  border-left-width: 4px;
  border-left-color: var(--color-blue);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--color-dark) 6%, transparent);
}

.cl-image-texte__text {
  line-height: 1.7;
}

.cl-image-texte__text :where(p):last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cl-image-texte__frame img {
    transition: none;
  }

  .cl-image-texte__row:is(:hover, :focus-within) .cl-image-texte__frame img {
    transform: none;
  }
}

/* ________________________________Contact (CF7)________________________________ */

.cl-contact .wpcf7 :is(.form-control, .form-select) {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--color-blue) 14%, transparent);
  background: var(--color-white);
  color: var(--color-text);
}

.cl-contact .wpcf7 .form-label {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--color-dark-blue);
}

.cl-contact .wpcf7 form label br {
  display: none;
}

.cl-contact .wpcf7 :is(.form-control, .form-select):focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--color-blue) 42%, transparent);
  box-shadow: 0 0 0 0.25rem
    color-mix(in srgb, var(--color-blue) 18%, transparent);
}

.cl-contact .wpcf7 textarea.form-control {
  min-height: 140px;
}

/* ________________________________ Footer ________________________________ */

.cl-footer {
  border-top: 3px solid var(--color-dark-blue);
}

.cl-footer__logo {
  height: clamp(120px, 10vw, 176px);
  width: auto;
}

.cl-footer__heading {
  letter-spacing: -0.01em;
  color: var(--color-dark-blue);
}

.cl-footer__link {
  color: var(--color-blue);
}

a.cl-footer__link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  line-height: 1.25;
  position: relative;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

a.cl-footer__link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-blue) 45%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

a.cl-footer__link:is(:hover, :focus-visible) {
  color: var(--color-dark-blue);
  background: color-mix(in srgb, var(--color-blue) 8%, var(--color-white));
  transform: translateY(-1px);
}

a.cl-footer__link:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

a.cl-footer__link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-blue) 35%, transparent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  a.cl-footer__link,
  a.cl-footer__link::after {
    transition: none;
  }

  a.cl-footer__link:is(:hover, :focus-visible) {
    transform: none;
  }
}
