/* ====== Réinitialisation des marges et paddings ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== Body et Layout général ====== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-top: 60px;
}

/* ====== Footer ====== */
footer {
  background: #ccc;
  padding: 10px;
  text-align: center;
  width: 100%;
  position: relative;
}

/* ====== Typographie générale ====== */
h1 {
  color: #FFF;
  font-size: 5rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 100px;
}

p {
  font-size: 1.5rem;
  line-height: 1.5em;
}

/* ====== Classes utilitaires ====== */
.flex {
  display: flex;
}

.wrap {
  flex-wrap: wrap;
}

.space-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.dark {
  background: rgba(0, 0, 0, 0.8); /* Noir avec 50% d'opacité */
  color: #FFF;
}
span {
    color: rgb(0,0,0); /* Applique à tous les span */
}


.center {
    width: 50%;
    margin: 0 auto;
}
/* Grille pour les icônes */
ul.logo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adaptatif */
    gap: 15px;

}

ul.logo li {
    display: flex;
    justify-content: center;
    align-items: center;
}


.boxed {
  max-width: 1280px;
  margin-inline: auto;
}

.w25 { width: 25%; }
.w32 { width: 32%; }
.w40 { width: 40%; }
.w60 { width: 60%; }
.gap20 { gap: 20px; }

/* ====== Header ====== */
header {
  background-color: #333;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

header nav {
  width: 80%;
  margin: 0 auto;
}

header .menu {
  list-style: none;
  display: flex;
  justify-content: space-around;
}

header .menu li {
  position: relative;
}

header .menu a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

header .menu a:hover {
  background-color: #555;
}

/* ====== Section générale ====== */
.section {
  padding: 100px 0;
}

/* ====== Slider ====== */
.slider {
  width: 100%;
  height: 80vh;
  aspect-ratio: 16/9;
  background-color: #000;
  position: relative;
}

.slider-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFF;
  font-size: 2rem;
  font-weight: 300;
}

/* ====== Réalisations ====== */
.realisation {
  display: block;
  height: auto;
  aspect-ratio: 1/1;
  position: relative;
}

.realisation h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  width: max-content;
  opacity: 0;
  transition: .4s ease;
}

.realisation a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #FFF;
}

.realisation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  transition: .2s ease;
}

.realisation:hover img {
  filter: brightness(90%);
}

.realisation:hover h3 {
  opacity: 1;
}

/* ====== Contact ====== */
.contact {
  border: 2px dashed #000;
  border-radius: 15px;
}

.contact-link {
  color: white;
}

/* ====== Classes diverses ====== */
.icon {
  display: block;

}

.label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  margin: 10px 0;
  font-size: 1.5rem;
}

.value {
  display: block;
  font-size: 1.5rem;
}

.hidden {
  display: none;
}

.div {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ====== Liste de titres ====== */
.list-title {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 20px;
  font-size: 3rem;
  font-weight: bold;
  color: #000;
}

/* ====== Container des éléments ====== */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  max-width: 600px;
  justify-content: center;
  margin: 0 auto;
  padding: 20px 0;
}

/* ====== Élément d'une carte ====== */
.item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  word-break: break-word;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
}

/* ====== Navigation ====== */
.navigation {
  margin-top: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.navigation li {
  display: inline;
}

.navigation a {
  text-decoration: none;
  background: #007BFF;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s ease;
}

.navigation a:hover {
  background: #0056b3;
}

/* Styles pour le bouton burger */
.burger {
  display: none; /* Masquer par défaut */
  background: black;
  color: white;
  padding: 10px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 1000;
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Styles pour les écrans de 768px et moins (téléphone) */
@media (max-width: 768px) {
    /* Menu burger */
    .burger {
        display: flex;
    }

    .menu {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 10px 0;
    }

    .menu.open {
        display: flex !important;
    }

    .menu li {
        text-align: center;
        padding: 10px 0;
    }

    .menu a {
        display: block;
        padding: 10px;
        font-size: 1.5rem;
    }

    /* Typographie adaptative */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    p {
        font-size: 1.2rem;
    }

    /* Layout responsive */
    .w32, .w40, .w60 {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Slider adaptatif */
    .slider {
        height: 60vh;
    }

    .slider-content {
        width: 90%;
        font-size: 1.5rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .boxed {
        padding: 0 20px;
    }

    /* Contact */
    .contact {
        width: 90%;
        margin: 0 auto;
    }
}

/* Styles pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .w32 {
        width: 48%;
    }

    .w40, .w60 {
        width: 100%;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
        margin-bottom: 70px;
    }

    .slider {
        height: 70vh;
    }
}

/* Styles pour les écrans plus larges (ordinateur) */
@media (min-width: 1025px) {
    .burger {
        display: none;
    }

    .menu {
        display: flex !important;
        flex-direction: row;
    }

    .menu li {
        text-align: left;
        padding: 0;
    }

    .menu a {
        display: block;
        padding: 10px 20px;
        font-size: 1rem;
    }
}
@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
