* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: "Dosis", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    font-family: "Dosis", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Barre supérieure */
.top-bar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: solid #167974 0.1px;
    background-color: black;
    z-index: 1;
}

.top-bar__content {
    height: 30px;
    max-width: 1200px;
    padding: 0 30px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 30px;
    font-size: 12px;
}

.top-bar-left {
    position: fixed;
    left: 18px;
    display: flex;
    gap: 35px;
}

.top-bar-left a span {
    text-decoration: none;
}

.linkedin {
    position: absolute;
    right: 14px;
    top: 5px;
    font-size: 12px;
    font-weight: normal;
}

.fa-solid, .fa-brands {
    color: #167974;
    font-size: 17px;
}

span {
    color: white;
    margin: 0 5px;
}

.span {
    margin-right: 5px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 30px;
    padding: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.navbar .logo {
    position: absolute;
    top: 40%;
    left: 15px;
    width: 174px;
    border-radius: 52px;
    border: 3px solid #187675;
}

.navbar a {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
}

li div {
    height: 3px;
    background-color: #187675;
    width: 0%;
    transition: width 0.5s;
}

li:hover > div {
    width: 100%;
}

.navbar .nav-links {
    position: fixed;
    right: 93px;
    bottom: 13px;
    backdrop-filter: blur(7px);
}

.navbar .nav-links ul {
    display: flex;
}

.navbar .nav-links ul li {
    margin: 0 35px;
}

.navbar .menu-hamburger {
    position: absolute;
    top: 40px;
    right: 50px;
    width: 35px;
    display: none;
}

.blue-title {
    color: #12504f;
}

/* RESPONSIVE NAVBAR */
@media screen and (max-width: 778px) {
    .navbar {
        padding: 0;
        position: absolute;
    }

    .navbar .logo {
        top: 34px;
        left: 33px;
        width: 104px;
        border-radius: 52px;
    }

    .navbar .menu-hamburger {
        display: block;
    }

    .nav-links {
        top: 0;
        left: 0;
        position: absolute;
        background-color: rgba(24, 118, 117, 0.75);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
        z-index: -1;
    }

    .mobile-menu {
        margin-left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-links ul li {
        padding: 25px 0;
        font-size: 1.2em;
    }

    .container-titre {
        position: absolute;
        left: 123px;
        bottom: 198px;
    }

    .container-titre .titre-accueil {
        font-size: 6vw;
        color: white;
        text-align: right;
        left: 8em;
        bottom: 9.25rem;
    }

    section {
        position: static;
    }

    .index-category {
        width: 100%;
        background-color: #cec9c9;
        display: grid;
        place-items: center;
        font-family: 'Poppins', sans-serif;
        padding: 29px 88px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 750px) {
    .top-bar {
        display: none;
    }

    .navbar {
        top: 0;
    }
}

@media screen and (min-width: 721px) {
    .navbar .nav-links {
        position: absolute;
        right: 93px;
        bottom: 13px;
        backdrop-filter: blur(7px);
    }
}

@media screen and (min-width: 774px) and (max-width: 778px) {
    .navbar .nav-links {
        position: absolute;
        right: -17px;
        bottom: 13px;
        backdrop-filter: blur(7px);
    }
}


@media screen and (min-width: 779px) {
    .navbar .nav-links {
        position: absolute;
        right: -17px;
        bottom: 13px;
        backdrop-filter: none;
    }
   
}

/* TITRE */
.titre {
    position: relative;
    min-height: 24vw;
    background: black;
    background-repeat: no-repeat;
    background-size: cover;
}

.titre div {
   position: relative;
top: 15vw;
}

.titre div h1 {
    font-size: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ffffff;
  font-weight: 100;
  text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix Firefox */
@-moz-document url-prefix() {
  .titre div h1 {
    font-size: 2.5rem !important; /* un peu plus petit sur Firefox */
  }
}

@media screen and (max-width: 700px) {
    .titre {
        min-height: 48vh;
    }

    .titre div {
        top: 35vh;
        font-size: 49px;
    }
}

/* SECTION COMPÉTENCES */
.presentation-photos-compétences {
    min-height: 100vh;
    background: linear-gradient(to top, #151515, black);
}

.presentation-photos-compétences h1 {
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    text-align: center;
    font-size: 31px;
    color: white;
}

/* BOXES COMPÉTENCES */
.container-compétences {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}

.box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
    flex: 1 1 48%;
    min-height: 400px;
    margin: 3px;
    font-size: 50px;
    background-size: cover;
    background-position: center;
    color: white;
    box-sizing: border-box;
}

.box1 {
    background: linear-gradient(#060606db, #8c8c8c5c), url(img/iStock-620378394.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.box4 {
    background: linear-gradient(#060606db, #8c8c8c5c), url(img/pexels-luis-gomes-166706-546819.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.box5 {
    background: linear-gradient(#060606db, #8c8c8c5c), url(img/iStock-946236660.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.box8 {
    background: linear-gradient(#060606db, #8c8c8c5c), url(img/iStock-522452680.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.box1 p, .box2 p, .box3 p, .box4 p, .box5 p, .box6 p, .box7 p, .box8 p {
    color: white;
    margin: 20px;
    font-size: 17px;
}

/* MOBILE RESPONSIVE BOXES */
@media screen and (max-width: 1000px) {
    /* Réduction et réorganisation des boxes */
    .container-compétences {
        flex-direction: column;
        align-items: center;
    }

    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8 {
        flex: 1 1 90% !important;
        width: 90vw !important;
        min-height: 200px !important; /* hauteur divisée par 2 */
        background-size: cover !important;
        background-position: center center !important;
        font-size: 25px !important; /* réduis la taille du texte dans les boxes */
    }

    .box1 p, .box2 p, .box3 p, .box4 p, .box5 p, .box6 p, .box7 p, .box8 p {
        font-size: 15px !important;
    }

    .box1 h1, .box2 h1, .box3 h1, .box4 h1, .box5 h1, .box6 h1, .box7 h1, .box8 h1 {
        color: white;
    }

    /* Réorganisation de l’ordre */
    .box1 { order: 1; }
    .box2 { order: 2; z-index: 0; }
    .box3 { order: 4; }
    .box4 { order: 3; }
    .box5 { order: 5; }
    .box6 { order: 6; }
    .box7 { order: 8; }
    .box8 { order: 7; }

    /* -- CORRECTION pour le titre "Nos Services" -- */
    .presentation-photos-compétences h1 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        position: relative !important;
        z-index: 10 !important;
        text-align: center !important;
        height: auto !important;
        display: block !important;
        line-height: 1.2 !important;
    }

    .presentation-photos-compétences {
        min-height: auto !important;
        padding-top: 20px !important;
    }
}

/* AUTRES ÉLÉMENTS */
.bold {
    font-weight: bold;
    text-decoration: underline;
}

/* FOOTER */
 footer.modern-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(135deg, #1f1f1f, #333);
  color: #fff;
  padding: 40px 20px;
  font-family: "Dosis", sans-serif;
  box-sizing: border-box;
  gap: 40px;
  text-align: left;
}

.footer-column {
  flex: 1 1 300px;
  max-width: 300px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  width: 150px;
  height: auto;
  border-radius: 52px;
  border: 3px solid #187675;
  margin-bottom: 15px;
}

footer.modern-footer p.tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-column h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.social-icon, .social-icons a {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
  color: #fff;
  text-decoration: none;
}

.social-icon:hover, .social-icons a:hover {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  footer.modern-footer {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .footer-column {
    width: 100%;
    max-width: none;
    flex: 1 1 150px;
  }

  .footer-nav {
    align-items: center;
  }
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}
