* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.top-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1031;
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease-in-out;
}

.top-navbar.hidden {
  transform: translateY(-100%);
}

.second-navbar {
  position: fixed;
  top: 56px;
  width: 100%;
  z-index: 1030;
  background-color: transparent;
  transition:
    top 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

.second-navbar.scrolled {
  top: 0;
  background-color: black !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.second-navbar .nav-link {
  color: white !important;
}

.hero {
  height: 75vh;
  background: url("../imgs/site/header_home.jpg") center center / cover
    no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.page-resume {
  height: 25vh;
  padding-top: 112px; /* compense la hauteur des navbars */
  background: #f8f9fa;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.page-resume div {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-height: 80%;
}

.page-resume div:first-child {
  width: 25%;
}

.page-resume div img {
  width: 50%;
}

.page-resume div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
}

.page-advantage {
  height: 50vh;
  padding-top: 112px; /* compense la hauteur des navbars */
}

.page-advantage h1 {
  width: 100%;
  margin-bottom: 50px;
  min-height: 25vh;
  line-height: 25vh;
  padding-left: 20px;

  font-size: 3em;
  text-align: left;
  color: rgba(255, 255, 255, 0.8);

  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0)
    ),
    url("../imgs/site/section_advantage.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 6px;
}

.page-advantage .card-icon {
  width: 100%;
  text-align: center;
  font-size: 5rem;
  background-color: var(--gray-800);
  color: var(--primary-400);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  padding: 50px 0;
}

.page-advantage .card-body ul {
  min-height: 90px;
}

.page-advantage .card-body {
  min-height: 210px;
}
.page-advantage .card-footer {
  padding: 20px 0;
}

.page-become {
  width: 80%;
  min-height: 50vh;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;
}
.page-become div {
  width: 100%;
  min-height: 300px;
  padding: 20px;
  border-radius: 6px;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.2) 60%,
      rgba(255, 255, 255, 0)
    ),
    url("../imgs/site/section_become.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.page-become div h2 {
  color: rgb(0, 0, 0);
  width: 40%;
  font-size: 1.4em;
  font-variant: small-caps;
  text-align: justify;
}
.page-become div p {
  color: rgb(0, 0, 0);
  width: 40%;
  text-align: justify;
}
.page-become div .btn-info {
  float: right;
  margin-bottom: 20px;
}

/* btn et link */

.btn-primary {
  background-color: var(--primary-500);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-600);
}

a {
  text-decoration: none;
}
.link,
.nav-link {
  color: var(--gray-700);
}

.link:hover,
.nav-link:hover {
  color: var(--primary-500);
}

.link-white {
  color: #ffffff;
}

.white:hover {
  color: #c2c2c2;
}

/* footer */

.gradient-footer {
  background: linear-gradient(135deg, #181818 0%, #262626 100%);
}

.signature {
  font-family: Megrim;
}

.signature,
.host {
  position: relative;
  top: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: var(--primary-600);
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-400);
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: none;
}

.img-environment {
  display: block;
  background-image: url("../imgs/site/environement.jpg");
}
.img-security {
  background-image: url("../imgs/site/securite.jpg");
}
.img-economy {
  background-image: url("../imgs/site/economie.jpg");
}
.img-about {
  background-image: url("../imgs/site/about.jpg");
}

.img-envirnment,
.img-security,
.img-economy,
.img-about {
  width: 100%;
  background-position: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: center;
  height: 300px;
  border-radius: var(--radius-md);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .page-advantage h1 {
    font-size: 2em;
    min-height: auto;
    line-height: 1.4;
    padding: 20px;
  }
  .page-become div h2,
  .page-become div p {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hero {
    height: 60vh;
  }
  .page-resume {
    height: auto;
    padding: 128px 16px 24px;
  }
  .page-resume div {
    flex-direction: column;
    gap: 12px;
  }
  .page-resume div:first-child,
  .page-resume div:last-child {
    width: 100%;
    align-items: center;
  }
  .page-advantage {
    height: auto;
    padding-top: 96px;
  }
  .page-advantage h1 {
    font-size: 1.5em;
  }
  .page-become {
    width: 100%;
    padding: 0 16px;
  }
}
