body {
    margin: 0;
    background: white;
    color: black;
    font-family: 'Sean Slab Narrow', serif;
    overflow-x: hidden;
}

/* Titres avec tailles fixes */
.TitreReali {
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: clamp(30px, 5vw, 32pt);
    margin-bottom: -3px;
    margin-top: 76px;
}

#SousTitre {
    font-family: 'Sean Slab', serif;
    font-weight: 800;
    font-size: clamp(15px, 3vw, 18pt);
}

/* Styles pour les blocs carrés */
.square-block {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.square-block:hover {
    
    background-color: rgba(0, 0, 0, 0.7);
}

.square-block:hover .block-image {
    filter: grayscale(100%) brightness(40%) contrast(120%);
    opacity: 0.9; /* Ajustez entre 0.8 et 1 selon besoin */
}

.square-block:hover .hover-text {
    opacity: 1; /* Texte visible */
    filter: grayscale(0%); /* Garantit que le texte reste en couleur */
    
}

.block-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff !important;
    filter: none !important;
    font-family: 'Sean Slab', serif;
    font-weight: 800;
    font-size: 16pt; /* Taille fixe */
    text-align: center;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    z-index: 2;
}



.block-label {
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 16pt; /* Taille fixe */
    margin-top: 8px;
}

/* Disposition */
.realisation-container .row {
    margin-bottom: 1rem;
}

header {
    padding: 20px 50px;
    margin-top: 58px;
    margin-bottom: 42px;
}


.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.logo {
    height: 120px;
    flex-shrink: 0;
    margin-left: 0px;
}

.LienColor{
    text-decoration: none;
    color : #00555a;
}

/* Début merchandising */

/* Style simplifié pour le bandeau merchandising */
.merchandising-banner {
    background-color: #f8f8f8;
    padding: 15px 0;
    margin: 66px 0;
    width: 100%;
}

.merch-title {
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 18pt;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.banner-images {
    gap: 20px;
    padding: 0 10px; /* Padding réduit */
}

.merch-square {
    width: 150px;
    height: 150px;
    position: relative;
    flex: 0 0 auto;
}

.merch-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.merch-img {
    max-width: 75%; /* Image un peu plus petite */
    max-height: 75%;
    width: auto;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.merch-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.merch-square:hover .merch-hover {
    opacity: 1;
}

.merch-square:hover .merch-img {
    transform: scale(1.05);
}

/* Styles pour la description */
.merch-description {
    position: absolute;
    bottom: 0;
    left: 0;
    top: 0;
    right : 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    padding: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0;
    font-family: 'Sean Slab', serif;
}

.merch-square:hover .merch-description {
    transform: translateY(0);
    opacity: 1;
}

/* Début Navbarre */

.LogoRedirect{
    height: 28px;
    width: 28px;
    max-width :  35px;
    max-height :  35px;
}

.sup{
    height: 32px;
    width: 32px;
    max-width :  35px;
    max-height :  35px;
}


@media (min-width: 991px) {
.sup{
    margin-left: 22px;
}
}

@media (max-width: 1480px) and (min-width: 1400px) {
  body header {
    padding: 0 !important;
  }
  .logo {
    margin-top: 38px;
    margin-bottom: 38px;
  }
}

@media (max-width: 1299px) and (min-width: 1200px) {
  .logo {
    margin-left: calc((100vw - 1299px) * 0.5);
  }
}

@media (max-width: 1119px) and (min-width: 992px) {
  .logo {
    margin-left: calc((100vw - 1119px) * 0.5);
  }
}

@media (max-width: 1188px) and (min-width: 992px) {
.navbar a, .navbar a:visited {
  padding: 0;
  }
}


@media (max-width: 1199px) and (min-width: 1056px) {
.social-icons-wrapper {
    margin-right: -77px;
  }
}


@media (max-width: 1055px) and (min-width: 992px) {
.social-icons-wrapper {
    margin-right: -92px;
  }
}


@media (max-width: 575px) and (min-width: 193px) {
  .logo {
    transform: translateX(calc((575px - 100vw) * 0.5));
    will-change: transform;
    margin-left: -387px;
    margin-top: -50px;
  }
}


@media (max-width: 991px) {
  .navbar-toggler {
    position: absolute;
    right: 15px;
    top: 15px;
  }
}


@media (max-width: 991px) and (min-width: 768px) {
  .logo {
     margin-left: calc((1vw - 768px) * 0.7);
     margin-top: -47px;
  }
}

@media (max-width: 767px) and (min-width: 576px) {
.logo {
    margin-right: 346PX;
    margin-top: -81px;
    margin-bottom: -80px;
  }
}


@media (max-width: 991px) {
  .navbar li{
    flex: 0 !important;
  }
}

@media (max-width: 336px) {
  .navbar-toggler {
    position: absolute;
    right: 15px;
    top: 80px;
  }
}

@media (max-width: 192px) {
  .logo {
    margin-top: -50px;
  }
}



/* Fin NavBarre */


@media (max-width: 768px) {
    .banner-images {
        padding: 0 5px;
        gap: 10px;
    }
    
    .merch-square {
        width: 130px; /* Carrés plus petits sur mobile */
        height: 130px;
    }
    
    .merch-img {
        max-width: 65%;
        max-height: 65%;
    }
    .merch-description{
      font-size: 10px;
    }
}



/* Fin merchandising /


/* Media queries uniquement pour les ajustements de mise en page */
@media (min-width: 992px) {
    .realisation-block {
        padding: 0.5rem 0.5rem;
    }
}

@media (max-width: 767px) {
    .realisation-block {
        padding: 0 0.25rem;
    }
}

@media (max-width: 527px){
.hover-text
  {
    font-size: 13pt;
  }
}

@media (max-width: 327px){
.hover-text
  {
    font-size: 10pt;
  }
}

@media (max-width: 227px){
.hover-text
  {
    font-size: 8pt;
  }
}