/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

h1, h2 {
    text-align: center;
}

h1, h2, .menu a, .tile a {
    font-family: 'Poppins', sans-serif;
}

/* Tiles Section */
main {
    max-width: 1000px;
    margin: 40px auto;
}

.tiles-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Garde la même hauteur */
    gap: 20px;
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
}

.tile {
    flex: 1;
    min-width: 250px;
    max-width: 300px; /* Évite que les cartes deviennent trop larges */
    text-align: center;
    background-color: white; /* Assure un fond blanc */
    padding: 20px; /* Ajoute de l’espace autour du contenu */
    border-radius: 10px; /* Arrondit les bords */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajoute une légère ombre */
}

.tile:hover {
    transform: scale(1.05);
}

.tile img {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 10px;
}
.tile a {
    text-decoration: none;  /* Supprime le soulignement */
    color: inherit;  /* Utilise la couleur par défaut du texte */
    font-weight: bold;
}

.tile a:hover {
    text-decoration: underline; /* Ajoute un léger effet au survol */
}

/* Responsive */
@media (max-width: 960px) {
    .tiles-container {
        flex-direction: column;
        align-items: center;
    }
    .tile {
        width: 80%;
    }
}

/* header */
.header {
  overflow: hidden;
  background-color: white;
  padding: 20px 10px;
}

.header a {
  float: left;
  color: black;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 18px; 
  line-height: 25px;
  border-radius: 4px;
}

.header a.logo {
  font-size: 25px;
  font-weight: bold;
  padding: 0;
}
.header a.logo img{
  height: 50px;
}

.header a.active {
  background-color: #25999A;
  color: white;
}

.header .login {
  background-color: white !important; /* Fond blanc comme les autres */
  color: black !important; /* Texte noir */
}

.header-right {
  float: right;
}

@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }
  
  .header-right {
    float: none;
  }
}
/* end header */

/* login form */
#loginform {
  background-color: rgb(7, 57, 107);
  color: white;
  width: 250px;
  border-radius: 10px;
  padding: 15px;
  right: 0;
  position: fixed;
  z-index: 1;
}
#authenticationForm {
  display: grid;
}
.close {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 32px;
  height: 32px;
  opacity: 0.3;
  cursor: pointer;
}
.close:hover {
  opacity: 1;
}
.close:before, .close:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 33px;
  width: 2px;
  background-color: #ffffff;
}
.close:before {
  transform: rotate(45deg);
}
.close:after {
  transform: rotate(-45deg);
}      
/* end login form */ 

/* The hero image */
.hero-image {

    /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/hero-banner.jpg");

    /* Set a specific height */
    height: 350px;

    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Place text in the middle of the image */
.hero-text {
    position: absolute;
    top: 50%;
    left: 37%;
    transform: translate(-50%, -50%);
    color: white;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}
  
  /* Columns */
.left-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
    overflow: hidden; /* Empêche le débordement */
}
  
.right-column {
    flex: 1;
    max-width: 50%;
    padding: 20px;
}
  
  
  /* Left Column */
.left-column img {
    max-width: 100%;
    height: auto;
    display: block;
}
  
  .left-column img.active {
    opacity: 1;
  }
  
  
  /* Right Column */
  
  /* Product Description */
  .product-description {
    border-bottom: 1px solid #E1E8EE;
    margin-bottom: 20px;
  }
  .product-description span {
    font-size: 12px;
    color: #358ED7;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
  }
  .product-description h1 {
    font-weight: 300;
    font-size: 52px;
    color: #43484D;
    letter-spacing: -2px;
    text-align: left;
  }
  .product-description p {
    font-size: 16px;
    font-weight: 300;
    color: #86939E;
    line-height: 24px;
  }

 /* Menu */
  .menu {
    text-align: center;
    padding: 20px;
    background-color: #fff; /* Fond blanc */
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu ul li {
    display: inline;
}

.menu ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: black;
    position: relative;
    padding: 5px 10px;
}

.menu ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: black;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.menu ul li a:hover::after {
    width: 100%;
    left: 0;
}
.spacer {
    height: 20px;
}
/* Services Banner */
.services-banner {
    text-align: center;
    padding: 50px 0;
    background-color: #f9f9f9; /* Couleur de fond */
}

.services-banner h2 {
    font-size: 24px;
    color: #222;
    margin-bottom: 30px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Permet l'adaptation sur petits écrans */
}

.service-item {
    text-align: center;
    max-width: 120px;
}

.service-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease;
}

.service-item img:hover {
    transform: scale(1.1);
}

.service-item p {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}
  
  /* Product Configuration */
  .product-color span,
  .cable-config span {
    font-size: 14px;
    font-weight: 400;
    color: #86939E;
    margin-bottom: 20px;
    display: inline-block;
  }
  
  /* Product Color */
  .product-color {
    margin-bottom: 30px;
  }
  
  .color-choose div {
    display: inline-block;
  }
  
  .color-choose input[type="radio"] {
    display: none;
  }
  
  .color-choose input[type="radio"] + label span {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: -1px 4px 0 0;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 50%;
  }
  
  .color-choose input[type="radio"] + label span {
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.33);
  }
  
  .color-choose input[type="radio"]#red + label span {
    background-color: #C91524;
  }
  .color-choose input[type="radio"]#blue + label span {
    background-color: #314780;
  }
  .color-choose input[type="radio"]#black + label span {
    background-color: #323232;
  }
  
  .color-choose input[type="radio"]:checked + label span {
    background-image: url(../images/check-icn.svg);
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* Cable Configuration */
  .cable-choose {
    margin-bottom: 20px;
  }
  
  .cable-choose button {
    border: 2px solid #E1E8EE;
    border-radius: 6px;
    padding: 13px 20px;
    font-size: 14px;
    color: #5E6977;
    background-color: #fff;
    cursor: pointer;
    transition: all .5s;
  }
  
  .cable-choose button:hover,
  .cable-choose button:active,
  .cable-choose button:focus {
    border: 2px solid #86939E;
    outline: none;
  }
  
  .cable-config {
    border-bottom: 1px solid #E1E8EE;
    margin-bottom: 20px;
  }
  
  .cable-config a {
    color: #358ED7;
    text-decoration: none;
    font-size: 12px;
    position: relative;
    margin: 10px 0;
    display: inline-block;
  }
  .cable-config a:before {
    content: "?";
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 2px solid rgba(53, 142, 215, 0.5);
    display: inline-block;
    text-align: center;
    line-height: 16px;
    opacity: 0.5;
    margin-right: 5px;
  }
  
  /* Product Price */
  .product-price {
    display: flex;
    align-items: center;
  }
  
  .product-price span {
    font-size: 26px;
    font-weight: 300;
    color: #43474D;
    margin-right: 20px;
  }
  
  .cart-btn {
    display: inline-block;
    background-color: #787777;
    border-radius: 6px;
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 30px;
    transition: all .5s;
  }
  .cart-btn:hover {
    background-color: #30B2B5;
  }
  
  /* Responsive */
  @media (max-width: 940px) {
    .container {
      flex-direction: column;
      margin-top: 60px;
    }
  
    .left-column,
    .right-column {
      width: 100%;
    }
  
    .left-column img {
      width: 300px;
      right: 0;
      top: -65px;
      left: initial;
    }
  }
  
  @media (max-width: 535px) {
    .left-column img {
      width: 220px;
      top: -85px;
    }
  }
  /* Section "You Might Also Like" */
.related-products-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.related-products {
    margin-top: -40px; /* Ajuste selon le rendu souhaité, réduit l'espace */
    padding-top: 20px; /* Optionnel, pour équilibrer le design */
}

.related-product {
    text-decoration: none; /* Supprime le soulignement des liens */
    color: inherit; /* Garde la couleur du texte */
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 200px;
    text-align: center;
}

.related-product img {
    width: 100%;
    border-radius: 5px;
}

.related-product:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.product-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.product {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
}

.product img {
    width: 100%;
    border-radius: 5px;
}

.product h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product p {
    font-size: 14px;
    color: #666;
}

.product button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.product button:hover {
    background-color: #0056b3;
}
/* Footer Styles */
.footer {
    clear: both;
    position: relative;
    width: 100%;
    background: #f1f1f1;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #25999A;
}

.footer-bottom {
    background-color: #e8e8e8;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom ul li {
    margin: 0 10px;
}

.footer-bottom ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom ul li a:hover {
    color: #25999A;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
    }
}