/* CTA theme layout, spacing, and responsive overrides */

:root {
  --cta-gold: #eaac3b;
  --cta-text: #525252;
  --cta-space: 1.5rem;
  --cta-space-lg: 3rem;
  --cta-header-h: 74px;
  --cta-mobile-h: 56px;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

#wrapper-navbar {
  height: auto;
  min-height: 0;
}

.site-header .navbar-brand img,
.site-header .custom-logo {
  max-height: 48px;
  width: auto;
}

.nav-secondary {
  margin-right: 0.5rem;
}

.search-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.lang-switcher .dropdown-toggle {
  color: inherit;
  text-decoration: none;
}

#main-menu {
  min-height: var(--cta-header-h);
}

#navbarNavDropdown {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-primary-container {
  background: #f8f9fa url('../img/bck_motif.svg') center;
  width: 100%;
  flex: 1 0 100%;
}

#main-links > li > a,
#main-header > li > a {
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.footer-logo {
  max-width: 140px;
}

.footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
}

.footer-legal-menu li {
  margin: 0;
}

.copyright {
  color: #6c757d;
  font-size: 0.75rem;
}

.presentation {
  min-height: 0;
  padding: var(--cta-space-lg) 0;
  overflow: visible;
}

.presentation .block {
  padding: 1.5rem;
}

.presentation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.presentation-heading h2 {
  float: none;
  width: auto;
  flex: 1 1 auto;
  padding-top: 0;
  margin-bottom: 0;
}

.presentation .cta-exp-years {
  flex: 0 0 auto;
}

.presentation .cta-exp-years img {
  float: none;
  max-width: 120px;
  padding-top: 0;
  height: auto;
}

.presentation .image-right {
  position: static;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.text-area-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.text-area-subtitle {
  color: #777;
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

.hero-description {
  max-width: 32rem;
}

.hero-arrow {
  max-width: 72px;
}

.internal-slide {
  min-height: 220px;
}

.content-internal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.nos-services .card {
  height: 100%;
  margin-bottom: 0;
}

.nos-services .card .block,
.nos-services .card .block-reversed {
  padding: 1.25rem;
}

.last-articles .article-min h2 {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.last-articles .article-min p {
  margin-bottom: 0;
  font-size: 0.8125rem;
}

.wpcf7 {
  max-width: 100%;
  margin: 0 auto;
}

.wpcf7 .wpcf7-form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
}

.wpcf7 input[type="submit"] {
  max-width: 100%;
}

.form-content {
  padding-bottom: 0;
  margin-bottom: 0;
}

.internal-contact .form-content {
  padding: 2rem;
}

.download-section .pdf a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.block-1,
.block-2,
.block-5,
.block-6,
.domaine,
.nos-services,
.light-contact,
.reference {
  overflow-x: hidden;
}

.block-1 h2,
.block-2 h2,
.domaine h2,
.nos-services h2 {
  word-break: break-word;
}

@media (max-width: 991.98px) {

  .mobile-header {
    height: var(--cta-mobile-h);
    overflow: visible;
  }

  .mobile-header .logo-site img,
  .mobile-header .custom-logo {
    max-height: 36px;
    width: auto;
  }

  .mobile-menu-right {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.5rem;
  }

  .mobile-header #mobile-contact-menu {
    min-width: 0;
    max-width: 9rem;
  }

  .mobile-header #mobile-contact-menu a {
    display: block;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-open.btn-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 32px;
    margin-left: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--cta-gold);
    color: #fff;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }

  .mobile-open.btn-open .menu-icon {
    display: block;
    width: 18px;
    height: 14px;
  }

  .hidden-menu-wrap {
    max-height: calc(100vh - var(--cta-mobile-h));
    overflow-y: auto;
  }

  .mobile-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .mobile-search form {
    flex: 1 1 auto;
  }

  .presentation .block {
    padding: 1.25rem;
  }

  .internal-slide {
    height: auto;
    min-height: 200px;
    padding: 2rem 0;
  }

  .content-internal-page h1 {
    font-size: 1.75rem;
  }

  footer .footer-main > [class*="col-"] {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .mobile-header #mobile-contact-menu {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .presentation-heading {
    flex-direction: column;
  }

  .presentation .cta-exp-years img {
    max-width: 96px;
  }

  .slide-text-container {
    padding: 1rem 0;
    text-align: left;
  }

  .slide-text-container h2 {
    font-size: 1.5rem;
  }

  .img-scroll-wrap {
    display: none;
  }

  .last-articles .please-center {
    text-align: left;
  }

  .footer-legal-menu {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (min-width: 992px) {
  #wrapper-navbar {
    min-height: var(--cta-header-h);
  }

  #navbarNavDropdown.collapse {
    display: flex !important;
  }

  body.admin-bar #main-menu,
  body.admin-bar .fix-wrap {
    top: var(--wp-admin--admin-bar--height, 32px);
  }
}

.download-section a:hover {
  text-decoration: none !important;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}
