* {
  margin: 0;
  padding: 0;
}

:root {
  --main-color: #FD0008;
  --second-color: #000;
  --third-color: #fff;
}

html {
  font-size: 62.5%;
}

@font-face {
  font-family: 'caviar';
  src: url('../font/caviar_dreams/CaviarDreams.ttf');
}

body {
  font-size: 1.5rem;
  font-family: "caviar", serif;
  color: #181818;
  /* background: #ececec; */
}

/* Section header and main slider */
#header-section {
  height: 100vh;
  background-color: var(--second-color);
  background-image: url('../img/header-bg.jpg');
  background-position: center center;
  background-size: cover;
  margin-bottom: 5%;
  display: grid;
}

#menu-logo {
  padding-right: 12%;
}

#menu-logo > img {
  width: 100px;
  height: auto;
  transition: transform 0.4s ease;
}

#menu-logo > img:hover {
  transform: scale(1.15) rotate(5deg);
  cursor: pointer;
}

#menu-items {
  padding: 0% 2%;
  width: 100%;
  margin: 0 auto;
  position: fixed;
}

#menu-items > ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu-items > ul > li {
  list-style-type: none;
}

#menu-items > ul > li > a {
  color: var(--third-color);
  text-decoration: none;
}

.menu-items-labels {
  padding-left: 3%;
  font-weight: bold;
}

.menu-items-labels > a:hover {
  color: var(--main-color) !important;
  cursor: pointer;
  transition: .2s ease all;
}

#header-description {
  padding-top: 15vh;
  padding-left: 5vh;
  text-transform: uppercase;
  font-size: 2.5rem;
  color: var(--third-color);
}

#menu-items.scrolled {
  background-color: var(--second-color);
  border-bottom: 20px solid var(--main-color);
}

/* Section about-us */
#about-section {
  margin: 7% auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

#about-section-right {
  width: 90%;
  margin: auto;
}

/* #about-section-right > div {
  padding-top: 10%;
} */

#about-section-right > div > h1 {
  padding-bottom: 5%;
}

#about-section-right > div > p {
  line-height: 2;
  font-size: 1.8rem;
}

#about-section-left-img {
  width: 70%;
  height: 100%;
  margin: 0 auto;
  background-image: url('../img/security-1.jpg');
  background-position: center;
  background-size: cover;
  border-radius: 0 25px 0 25px;
}

#about-title {
  font-size: 4rem;
  background-color: var(--main-color);
  padding: .5%;
  color: var(--third-color);
}

/* Section departments */
#bgc-departments-section {
  background-color: var(--second-color);
  color: var(--third-color);
}

#departments-section {
  width: 87%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 7% 0;
}

.departments-sections {
  width: 90%;
  margin: 0 auto;
}

#department-section-left,
#department-section-right {
  display: grid;
  align-content: center;
  justify-items: center;
}

#dsl-title,
#dsr-title {
  margin: 2% 0 5% 0;
  font-size: 1.8rem;
  color: var(--third-color);
}

#dsl-description,
#dsr-description {
  text-align: center;
  line-height: 1.5;
  font-size: 1.7rem;
}

.work-with-us {
  text-align: center;
  padding-bottom: 8%;
  font-size: 1.8rem;
}

.work-with-us > span > a {
  text-decoration: none;
  background-color: var(--main-color);
  color: var(--third-color);
  padding: 20px;
  font-weight: bold;
  letter-spacing: 3px;
  border-radius: 0 25px 0 25px;
}

.work-with-us > span > a:hover {
  background-color: var(--second-color);
  color: var(--third-color);
  transition: .2s ease all;
}

.work-with-us-black > span > a:hover {
  background-color: var(--third-color);
  color: var(--main-color);
}

/* Section Menusierie & Metallerie */
.m-section-presentation,
.mm-section-presentation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 80%;
  margin: 5% auto;
}

.mm-section-presentation {
  grid-template-columns: 1fr 1fr;
  margin: 5% auto;
}

.mm-section-presentation-right,
.mm-section-presentation-right > h1,
.mm-section-presentation-right > div {
  text-align: right;
}

.mm-section-presentation-right > div {
  padding-top: 10%;
}

.m-section-presentation-left > h1,
.mm-section-presentation-right > h1 {
  padding: 5% 0;
  font-size: 4rem;
  color: var(--main-color);
}

.m-section-presentation-left > p,
.mm-section-presentation-right > p {
  font-size: 1.7rem;
  line-height: 2;
}

.m-section-presentation-left > div {
  padding-top: 10%;
  text-align: left;
}

.m-section-presentation-right,
.mm-section-presentation-left {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  justify-items: center;
  align-items: center;
}

.m-section-presentation-right > video,
.mm-section-presentation-left > video {
  border-radius: 0 25px 0 25px;
}

/* Details Bâtiments Connectés */
.details-securite-electronique {
  background-color: var(--second-color);
  color: var(--third-color);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5%;
  gap: 25px;
  color: var(--third-color);
  text-align: center;
}

.details-securite-electronique-items {
  border-radius: 0 25px 0 25px;
  border: 5px solid var(--third-color);
}

.title-details {
  color: var(--main-color);
  padding: 10% 0 10% 0;
  letter-spacing: 1px;
}

.description-details {
  font-size: 1.7rem;
  line-height: 25px;
  padding: 5% 0;
}

/* Section FAQ */
#faq-section {
  background: linear-gradient(135deg, var(--second-color), var(--second-color));
}

#faq-section > h1 {
  padding: 5% 0 1% 0;
  color: #fff;
}

#faq-section > h2 {
  padding: 0 0 2% 0;
  color: var(--main-color);
}

#faq-section > h1,
#faq-section > h2 {
  text-align: center;
}

.faq-container {
  width: 100%;
  max-width: 85%;
  margin: 2% auto 0 auto;
  padding-bottom: 7%;
}

.faq-item {
  border-bottom: 1px solid #ccc;
  padding: 0;
  font-size: 1.5rem;
}

.faq-question {
  cursor: pointer;
  padding: 2.2rem;
  background-color: #fff;
  transition: background-color 0.3s;
  font-family: "cpt", sans-serif;
  font-size: 2rem;
}

.faq-question:hover,
.faq-item.active .faq-question {
  background-color: var(--main-color);
  color: var(--second-color);
}

.faq-answer {
  display: none;
  padding: 1.8rem;
  background-color: #fff;
  font-size: 1.7rem;
  font-family: "cpi", sans-serif;
  font-style: italic;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  display: block;
}

.dropdown-arrow {
  float: right;
  font-size: 1.8rem;
  transition: transform 0.3s;
  color: var(--second-color);
}

.faq-item.active .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--second-color);
}

.link-faq-answer > a {
  text-decoration: none;
  color: var(--third-color);
  border-bottom: 1px solid var(--third-color);
  transition: all .3s ease;
}

.link-faq-answer > a:hover {
  color: var(--main-color);
  border-bottom: 1px solid var(--main-color);
}

/* Section Contact */
#contact-container {
  width: 85%;
  margin: 0 auto;
  padding: 5% 0;
}

#contact-container h2 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
  width: 15%;
  padding-bottom: 2%;
}

#contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.contact-item h3 {
  font-size: 2.4rem;
  color: var(--main-color);
  margin-bottom: 10px;
}

.contact-item p {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.6;
}

/* Carte Google Maps */
#map-container {
  margin-top: 60px;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#social-media {
  margin-bottom: 5%;
  display: flex;
  justify-content: center;
  gap: 25px;
  scale: 1;
}

#social-media > a > img:hover {
  scale: 1.1;
  cursor: pointer;
  transition: .3s ease all;
}


/* Section Footer */
#footer-section {
  color: white;
  background-color: var(--second-color);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 3%;
}

#footer-section > div > small {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.copyright-link > a {
  color: var(--main-color);
  text-decoration: none;
}

.copyright-link > a:hover {
  cursor: pointer;
  color: var(--third-color);
  transition: .5s ease all;
}




















/* Responsive Design */
@media screen and (max-width: 1024px) {
  /* Burger */
  #burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 25px;
  }

  #burger span {
    height: 3px;
    width: 100%;
    background-color: var(--main-color);
    border-radius: 2px;
  }

  #menu-items {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 35px 0px;
  }

  /* couche de background */
  #menu-items::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: -1;
  }

  /* background au scroll */
  #menu-items.scrolled::before {
    background-color: var(--second-color);
  }

  /* menu burger */
  #menu-items > ul {
    flex-direction: column;
    background-color: var(--second-color);
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }

  #menu-items.active > ul {
    transform: translateY(0);
  }

  #menu-items > ul > li {
    font-size: 1.6rem;
    padding: 15px 0;
  }

  #menu-logo {
    padding: 15px 0;
  }

  /* Header */
  #header-description {
    display: none;
  }

  #header-section {
    height: 50vh;
    background-position: center right;
  }

  /* About */
  #about-section {
    grid-template-columns: 1fr;
    margin: 15% auto 15% auto;
    gap: 40px;
  }

  #about-section-left-img {
    width: 90%;
    aspect-ratio: 16 / 9;
  }

  #about-section-right {
    width: 90%;
    text-align: center;
  }

  #about-section-right > div > h1 {
    font-size: 2.5rem;
  }

  #about-section-right > div > p {
    font-size: 1.7rem;
    line-height: 1.7;
  }

  #about-section-left {
    order: 2; /* après right */
  }

  #about-section-right {
    order: 1; /* avant left */
  }

  #about-title {
    font-size: 4rem;
    display: inline-block;
    margin-bottom: 10px;
  }

  /* Departments */
  #departments-section {
    grid-template-columns: 1fr;
    gap: 50px;
    width: 90%;
    padding: 10% 0;
  }

  .departments-sections {
    width: 95%;
    text-align: center;
  }

  #dsl-title,
  #dsr-title {
    font-size: 1.5rem;
  }

  #dsl-description,
  #dsr-description {
    font-size: 1.7rem;
    line-height: 1.5;
  }

  .work-with-us {
    font-size: 1.7rem;
    padding-bottom: 15%;
  }

  .work-with-us > span > a {
    padding: 12px 18px;
    font-size: 1.7rem;
  }

  /* Section Menusierie & Metallerie */
  .m-section-presentation,
  .mm-section-presentation {
    grid-template-columns: 1fr;
    width: 95%;
    margin: 10% auto 0% auto;
  }

  /* Texte centré */
  .m-section-presentation-left,
  .mm-section-presentation-right {
    text-align: center;
  }

  .m-section-presentation-left > h1,
  .mm-section-presentation-right > h1 {
    font-size: 3.5rem;
    text-align: center;
  }

  .m-section-presentation-left > p,
  .mm-section-presentation-right > p {
    font-size: 1.7rem;
    line-height: 1.6;
  }

  .m-section-presentation-left > div,
  .mm-section-presentation-right > div {
    text-align: center;
  }

  .m-section-presentation-right-left,
  .mm-section-presentation-left-left {
    width: 200px;
    height: 200px;
  }

  .m-section-presentation-right-right,
  .mm-section-presentation-left-right {
    width: 150px;
    height: 150px;
  }

  /* Bouton */
  .work-with-us > span > a {
    padding: 15px 20px;
    font-size: 1.7rem;
  }

  /* Details Bâtiments Connectés */
  .details-securite-electronique {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 8%;
  }

  .details-securite-electronique-items {
    padding: 15px;
  }

  .title-details {
    font-size: 3rem;
    padding: 10px 0;
  }

  .description-details {
    font-size: 2rem;
    line-height: 25px;
    padding: 10px 0;
  }

  /* Contacts */
  #contact-container {
    width: 95%;
    padding: 8% 0;
    text-align: center;
  }

  #contact-container > h2 {
    font-size: 2.5rem;
    width: 50%;
    text-align: center;
    margin: 0 auto 30px auto;
  }

  #contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-item > h3 {
    font-size: 2rem;
  }

  .contact-item > p {
    font-size: 1.7rem;
    line-height: 1.5;
  }

  #map-container {
    height: 250px;
  }

  #social-media {
    flex-direction: row;
    gap: 15px;
  }

  #social-media > a > img {
    width: 25px;
    height: auto;
  }

  /* Footer */
  #footer-section {
    padding: 5%;
    text-align: center;
  }

  #footer-section > div > small {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .copyright-link > a {
    font-size: 1.5rem;
  }

  /* Section Bâtiments Connectés & Sécurité Electronique */
  .m-section-presentation {
    grid-template-columns: 1fr;
    gap: 0;
    width: 95%;
    margin: 10% auto;
  }

  .m-section-presentation-left > h1 {
    font-size: 3rem;
  }

  .m-section-presentation-left > p {
    font-size: 1.7rem;
    line-height: 1.6;
  }

  .m-section-presentation-left > div {
    margin-top: 5%;
  }

  .m-section-presentation-left > div > span > a {
    padding: 15px 20px;
    font-size: 2rem;
  }

  .m-section-presentation-right {
    text-align: center;
  }

  .work-with-us > span > a {
    font-size: 2rem;
  }

  .m-section-presentation-right {
    text-align: center;
  }

  #sampleMovie {
    width: 49vh;
  }
}




@media screen and (min-width: 768px) and (max-width: 1024px) {
  #about-section {
    grid-template-columns: 1fr;
    margin: 10% auto 10% auto;
    gap: 40px;
  }
}