/* Utilities */

:root {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: white;
  font-size: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.container_color {
  background-color: #f2f2f2;
}

.container_no-color {
  background-color: white;
}

.container {
  margin: 2rem 0;
  padding: 0 1rem;
}

.container_itm {
  padding-bottom: 2rem;
}

.container_itm2 {
  margin: -1rem 0 2rem 0;
}

.ttl {
  text-align: center;
  color: #A50000;
}

.subttl {
  color: #7A3E00;
}

.itm {
  font-weight: bold;
}


/* Header */

.container_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

.container_logo {
  flex: 1;
  text-align: center;
}

.logo {
  width: 100%;
  height: auto;
}

.container_ttl {
  text-align: center;
  flex: 2;
}

.header_ttl {
  font-size: 1.2rem;
}

.header_subttl {
  font-size: 2.75rem;
  margin: 0 0 5rem 0;
}

.header_txt {
  font-size: 2.25rem;
  margin: 1rem 0 0;
  text-align: center;
}

.nav_links {
  display: flex;
  justify-content: space-evenly;
  list-style: none;
  padding: 0;
  margin: 2rem 0 2rem 0;
}

.nav_links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
  display: block;
}

.nav_links a:hover {
  color: rgb(184, 0, 0);
  text-decoration: underline;
}

.nav_links>li>a.active {
  color: rgb(184, 0, 0);
  text-decoration: underline;
}

.has-submenu>a.submenu-toggle.active {
  color: rgb(184, 0, 0);
  text-decoration: underline;
}

.nav_links li {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  padding: 0.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  min-width: 200px;
  z-index: 100;
}

.submenu li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.has-submenu:hover .submenu {
  display: block;
}

.burger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  border: 1px solid #000000;
  border-radius: 20%;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: #000;
}

.submenu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.map {
  width: 100%;
  height: auto;
}

.map_link {
  flex: 1;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.map_link img:hover {
  transform: scale(1.1);
}


/* Index */

.services_list {
  list-style: none;
  padding-left: 0;
}

.services_list li {
  margin-bottom: 1rem;
}

.index_ttl {
  color: rgb(184, 0, 0);

}

.index_itm {
  color: #7A3E00;
}

.index_container-itm {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 3rem 4rem;
  list-style: none;
}

.index_container-img {
  text-align: center;
  margin-bottom: 2rem;
}

.index_img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 1rem auto 0;
}

.contact_block {
  display: flex;
  flex-direction: column;
}

.contact_col {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.info-label {
  font-weight: bold;
}


/* Compagny */

.plaquette_card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  margin: 1rem 0 2rem;
}

.plaquette_card img {
  width: min(100%, 1024px);
  height: auto;
}

.plaquette_actions {
  display: flex;
  gap: .5rem 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .5rem .9rem;
  border: 1px solid #7A3E00;
  border-radius: .5rem;
  text-decoration: none;
}

.btn:hover {
  text-decoration: underline;
}

.btn-secondary {
  border-color: #bbb;
}

.meta {
  opacity: .7;
}


/* Services */

.section_title {
  text-transform: uppercase;
}

.welding {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.welding>section {
  flex: 1;
  min-width: 300px;
}

.reloading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.reloading>section {
  flex: 2;
  min-width: 300px;
}

.services_subttl {
  text-align: center;
}

.services_txt {
  padding-left: 1rem;
}

.repair_container {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.key_figures {
  column-count: 2;
  list-style-position: inside;
}

.key_figures>li {
  text-align: center;
  margin-bottom: 0.3rem;
}

.areas_intervention {
  column-count: 3;
  list-style-position: inside;
}

.areas_intervention>li {
  text-align: center;
  margin-bottom: 0.3rem;
}

.services_container-itm {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 3rem 4rem;
  list-style: none;
}

.services_container-img {
  text-align: center;
  margin-bottom: 2rem;
  list-style: none;
}

.services_img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 1rem auto 0;
}


/* Contact */

.contact_ttl {
  text-align: center;
  font-size: 2.5rem;
}

.contact_txt {
  text-align: center;
  font-weight: normal;
}

.contact_itm {
  display: flex;
  flex-direction: column;
}

.contact_subttl {
  text-align: center;
  margin-top: 2rem;
}

.contact_info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  margin: 1em 0 2rem 0;
  list-style: none;
}

.contact_info li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 45%;
  gap: 1.5rem;
}

.contact_icon {
  width: 10%;
  height: auto;
}

.contact_info a {
  text-decoration: none;
  color: inherit;
}

.contact_info a:hover {
  text-decoration: underline;
}

.contact_list {
  list-style: none;
  padding-left: 0;
  text-align: center;
  margin-top: 1rem;
}

.contact_list li {
  margin-bottom: 0.5rem;
}


/* valuation */

.photo {
object-position: left 50%;
}

.photo2 {
object-position: right 50%;
}


/* footer */

.footer {
  padding: 1.25rem;
  text-align: center;
}

.footer__copyright {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.footer__social-links {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.footer__link:hover {
  opacity: 0.5;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: #192f4d;
  color: #FFFFFF;
  border: 2px solid #B22222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  opacity: 1;
  background-color: #E6A700;
}


.grid {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 1rem;
}

.card {
  flex: 1 1 calc(25% - 1.5rem);
  min-width: 200px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  background: #fff;
}

.meta {
  font-size: .9rem;
  margin-top: -.25rem;
  text-align: center;
  font-weight: bold;
  color: #000;
}

.empty {
  min-width: 200px;
  max-width: 650px;
  border: 1px solid #000000;
  border-radius: 12px;
  padding: 1rem;
  color: #000;
  background: #f2f2f2;
  margin: 0 1rem;
  text-align: center;
  margin: 1rem auto;
}

.card h3 {
  margin: .25rem 0 .5rem;
  font-size: 1.1rem;
  color: #7A3E00;
  text-align: center;
}

.achievements_txt {
  color: #000;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}

.card-link:hover,
.card-link:focus {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
  transform: translateY(-2px);
  outline: none;
}

.news_sheet-card {
  min-width: 200px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  background: #fff;
  margin: auto 2rem;
}

.news_sheet-card h3 {
  margin: .25rem 0 .5rem;
  font-size: 1.1rem;
  color: #7A3E00;
  text-align: center;
}

.news_sheet-lnk {
  text-align: center;
}

.news-figure {
  margin: 0 0 1rem;
}

.news-figure img {
  width: 60%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-block: 1.5rem 2.5rem;
}

.pager {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pager button,
.pager a {
  border: 1px solid #d8c2a0;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.pager .is-active[aria-current="page"] {
  background: #8b4513;
  color: #fff;
  border-color: #8b4513;
  cursor: default;
}

.pager .is-ellipsis {
  padding: .5rem .25rem;
  border: none;
  background: transparent;
  cursor: default;
}

.pager [disabled] {
  opacity: .5;
  cursor: not-allowed;
}



@media (max-width: 768px) {

  .container_header {
    display: block;
    padding: 0;
  }

  .container {
    padding-left: 0;
  }

  .logo {
    width: 60%;
    height: auto;
  }

  .header_subttl {
    display: none;
  }

  .header_txt {
    font-size: 1.2rem;
    font-weight: normal;
  }

  .map_link {
    display: none;
  }

  .burger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 250px;
    left: 0;
    width: 100%;
    background-color: #f9f9f9;
    z-index: 10;
    padding: 1rem;
  }

  .main-nav.active {
    display: flex;
  }

  .nav_links {
    flex-direction: column;
    margin: 0;
  }

  .nav_links li {
    margin-bottom: 1rem;
  }

  body.menu-open .header_ttl {
    margin-top: 10.5rem;
  }

  .submenu-toggle {
    display: inline-block;
  }

  .submenu {
    display: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .has-submenu a {
    padding: 0;
  }

  .has-submenu.open {
    margin-bottom: 15rem;
  }

  .back-to-top {
    display: none;
  }

  .welding {
    flex-direction: column;
  }

  .reloading {
    flex-direction: column;
  }

  .services_subttl {
    text-align: start;
    padding-left: 1rem;
  }

  .key_figures {
    column-count: 2;
  }

  .key_figures>li {
    text-align: start;
  }

  .areas_intervention {
    column-count: 2;
  }

  .areas_intervention>li {
    text-align: start;
  }

  .contact_info {
    flex-direction: column;
    gap: 2rem;
  }

  .contact_info li {
    justify-content: start;
  }

  .welding {
    display: block;
    padding-left: 1rem;
  }

  .services_txt {
    padding-left: 0;
  }

  .service_itm {
    padding-left: 0;
  }

  .container_padding {
    padding-left: 1rem;
    margin-bottom: 3rem;
  }

  .repair_container {
    display: block;
  }

  .reloading {
    display: block;
  }

  .container_itm2 {
    margin: -1rem 0 3rem 0;
  }

  .index_container {
    padding-left: 1rem;
  }

  .color_mobile {
    background-color: #f2f2f2;
  }

  .nocolor_mobile {
    background-color: #ffffff;
  }

  .empty {
    margin: 1rem;
  }

  .news_sheet-card {
    margin: 2rem 2rem 0 2rem;
  }

  .news-figure img {
    width: 100%;
  }

  .index_container-itm {
    display: block;
  }

  .container_itm {
    padding: 0;
  }

  .services_container-itm {
    display: block;
  }

  .contact_txt {
    text-align: start;
    font-weight: normal;
    margin: 0 1rem;
  }

  .contact_itm {
    margin-top: 0.5rem;
  }

}