
.ar-filter-nav{ margin-bottom:1rem; }
.ar-filter-nav ul{ list-style:none; padding:0; display:flex; gap:0.75rem; }
.ar-filter-nav li{ display:inline-block; }
.ar-filter-nav a{ text-decoration:none; padding:5px 10px; border:1px solid transparent; border-radius:4px; }
.ar-filter-nav a.ar-active{ font-weight:600; border-color:#ddd; }

.ar-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; }
.ar-item{ border:1px solid #eee; background:#fff; }
.ar-item-link{ display:block; text-decoration:none; color:inherit; }
.ar-thumb{ width:100%; display:block; }
.ar-thumb-empty{ height:140px; background:#f2f2f2; }
.ar-title{ padding:0.5rem; font-size:1rem; }

.ar-empty, .ar-error{ padding:1rem; }
.ar-loading{ opacity:0.6; }


/* ------------ Sommaire du shortcode [ar-realstions] --------*/


/* === Effet de survol sur les liens du filtre de réalisations === */
.ar-filter-nav a {
    position: relative;
    text-decoration: none; /* on supprime le soulignement natif */
    color: inherit; /* garde la couleur du texte existante */
    padding-bottom: 15px; /* espace pour le soulignement */
    transition: color 0.3s ease;
}

/* ligne invisible par défaut */
.ar-filter-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
    background-color: #508698;
    
    transition: width 0.3s ease;
}

/* effet au survol */
.ar-filter-nav a:hover::after,
.ar-filter-nav a:focus::after {
    width: 100%;
}


/* Grille des vignettes */


.ar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin: 50px 0 50px 0;
}

/* Vignette */
.ar-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    padding: 0;
    height: 100%; /* occupe toute la hauteur dans la grille */

}

/* Lien interne */
.ar-item-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}



/* Image de la vignette */
.ar-item .ar-thumb {
    width: 100%;
    height: 220px;           /* hauteur fixe souhaitée pour toutes les images */
    object-fit: cover;       /* remplit la zone, rogne si nécessaire */
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}


/* Titre sous l'image */
.ar-item .ar-title {
    padding: 0.5rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

/* Effet hover sur l'image seulement */
.ar-item-link:hover .ar-thumb {
    transform: translateY(-5px) scale(1.05);  /* léger zoom et décalage vers le haut */
    filter: brightness(0.75);                 /* assombrissement */
}



/* === Navigation entre réalisations === */
.ar-single-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    text-align: center;
}

.ar-nav-section {
    flex: 1; /* chaque tiers occupe 1/3 de la largeur */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.ar-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 90%;
}

.ar-nav-link:hover {
    color: #000;
}

.ar-nav-prev .ar-nav-arrow {
    margin-right: 0.4em;
}

.ar-nav-next .ar-nav-arrow {
    margin-left: 0.4em;
}

.ar-nav-title {
    font-size: 0.95rem;
}

.ar-nav-placeholder {
    visibility: hidden;
    width: 100%;
}

.ar-nav-home {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.ar-nav-home:hover {
    background: #f7f7f7;
    transform: scale(1.1);
}



/* ----------- Galerie Slick pour les réalisations ----------- */
.ar-gallery-slider {
  position: relative;
  width: 100%;
  max-width: 1290px; /* limite optionnelle */
  margin: 0 auto;
  overflow: hidden;
}

.ar-gallery-slider img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Boutons flèches */
.ar-gallery-slider .ar-slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.85;
  padding: 0;
}

/* Positionnement gauche/droite */
.ar-gallery-slider .slick-prev {
  left: 20px;
}
.ar-gallery-slider .slick-next {
  right: 20px;
}

/* Centrage visuel de la flèche */
.ar-gallery-slider .ar-slick-arrow span {
  display: block;
  font-size: 0.7rem;
  color: #000;
  line-height: 1;
  position: relative;
  left: -9px; /* corrige le léger décalage horizontal */
}

/* Effet hover */
.ar-gallery-slider .ar-slick-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}



/* Pour ne pas gêner les clics sur les images */
.ar-gallery-slider .slick-slide {
  pointer-events: auto;
}

/* Points de navigation */
.slick-dots {
  bottom: 10px;
}
.slick-dots li button:before {
  color: #fff;
  opacity: 0.6;
}
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}





@media(max-width:600px){ .ar-filter-nav ul{ flex-wrap:wrap; } }

