/* Rose Telephone : mise en page fiable sans calcul JavaScript (chargée après tout le reste).
   Même DA que l'ancien site : couleurs, polices, fonds ; seule la mise en page des blocs est reprise. */

/* ---------- Bandeaux avec image de fond (accueil, pages niche) ---------- */
.elementor-section { position: relative; }
.elementor-background-slideshow {
	position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.elementor-background-slideshow .swiper-wrapper,
.elementor-background-slideshow__slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.elementor-background-slideshow__slide__image {
	position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat;
}
.elementor-background-slideshow ~ .elementor-container,
.elementor-background-overlay ~ .elementor-container { position: relative; z-index: 1; }

/* ---------- Grilles de fiches : grille régulière, cartes de même hauteur ---------- */
.elementor-posts-container.elementor-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 35px 30px;
	align-items: stretch;
}
.elementor-posts-container .elementor-post { margin: 0 !important; display: flex; min-width: 0; }
.elementor-posts-container .elementor-post__card {
	display: flex; flex-direction: column; width: 100%; height: 100%;
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 0 10px rgba(0, 0, 0, .15); position: relative;
}
.elementor-posts-container .elementor-post__thumbnail__link {
	display: block; position: relative; width: 100% !important; margin: 0 !important;
}
.elementor-posts-container .elementor-post__thumbnail {
	position: relative !important; padding: 0 !important; margin: 0 !important;
	aspect-ratio: 4 / 5; overflow: hidden; background: #1a1a1a;
}
.elementor-posts-container .elementor-post__thumbnail img {
	position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
	max-width: none !important; max-height: none !important;
	object-fit: cover; object-position: center 25%;
	transform: none !important; top: 0 !important; left: 0 !important;
	transition: transform .4s ease;
}
.elementor-posts-container .elementor-post__card:hover .elementor-post__thumbnail img { transform: scale(1.04) !important; }
/* l'ancien dégradé au survol masquait la photo : on le retire */
.elementor-posts__hover-gradient .elementor-post__card .elementor-post__thumbnail__link:after { display: none !important; }
.elementor-posts-container .elementor-post__badge {
	position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0 !important;
}
.elementor-posts-container .elementor-post__text {
	display: flex; flex-direction: column; flex: 1; padding: 18px 22px 20px !important; margin: 0 !important;
}
.elementor-posts-container .elementor-post__title { margin: 0 0 10px !important; line-height: 1.25; }
.elementor-posts-container .elementor-post__excerpt { margin: 0 0 12px !important; }
.elementor-posts-container .elementor-post__excerpt p {
	margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.elementor-posts-container .elementor-post__read-more { margin-top: auto; align-self: flex-start; }
.e-load-more-anchor { height: 1px; }

@media (max-width: 1024px) {
	.elementor-posts-container.elementor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 20px; }
}
@media (max-width: 767px) {
	.elementor-posts-container.elementor-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.elementor-posts-container .elementor-post__thumbnail { aspect-ratio: 1 / 1; }
	.elementor-posts-container .elementor-post__text { padding: 16px 18px 18px !important; }
}

/* ---------- Carrousels : flèches sur l'image, puces dessous ---------- */
.elementor-widget-media-carousel .elementor-widget-container,
.elementor-widget-image-carousel .elementor-widget-container { position: relative; }
.elementor-widget-media-carousel .swiper,
.elementor-widget-media-carousel .swiper-container,
.elementor-widget-image-carousel .swiper { overflow: hidden; position: relative; }
.elementor-swiper-button {
	position: absolute !important; top: 50% !important; transform: translateY(-50%);
	z-index: 3; width: 40px; height: 40px; border-radius: 50%;
	display: flex !important; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .45); color: #fff !important; font-size: 18px !important; cursor: pointer;
}
.elementor-swiper-button svg { fill: #fff !important; }
.elementor-swiper-button-prev { left: 10px !important; right: auto !important; }
.elementor-swiper-button-next { right: 10px !important; left: auto !important; }
.swiper-pagination {
	position: static !important; display: flex; justify-content: center; gap: 6px; margin-top: 12px; transform: none !important;
}
.swiper-pagination-bullet {
	width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .45; cursor: pointer; display: inline-block;
}
.swiper-pagination-bullet-active { opacity: 1; background: #e91e63; }
.elementor-widget-media-carousel .swiper-wrapper,
.elementor-widget-image-carousel .swiper-wrapper { display: flex; transition-timing-function: ease; }
.elementor-widget-media-carousel .swiper-slide,
.elementor-widget-image-carousel .swiper-slide { flex-shrink: 0; }
.elementor-widget-image-carousel .swiper-slide-image { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }

/* ---------- Fiche (ordinateur) : photo + galerie restent à l'écran pendant la lecture du texte ---------- */
@media (min-width: 1025px) {
	.elementor-location-single .elementor-element-5fa2f7a > .elementor-container { align-items: flex-start; }
	.elementor-location-single .elementor-element-e390678 { position: sticky; top: 20px; align-self: flex-start; }
	.elementor-location-single .elementor-element-a3def86 img { width: 100%; height: auto; border-radius: 10px; }
	.elementor-location-single .elementor-element-837255d > .elementor-widget-wrap { padding-left: 30px; }
}
.elementor-location-single a[data-zone="photo"] { display: block; cursor: pointer; }

/* ---------- Fiche : colonnes qui s'empilent proprement sur mobile ---------- */
@media (max-width: 767px) {
	.elementor-location-single .elementor-column { width: 100% !important; }
	.elementor-location-single .elementor-widget-theme-post-featured-image img { width: 100%; height: auto; }
	.elementor-location-single table { font-size: 14px; }
	.elementor-location-single .elementor-widget-theme-post-content img { max-width: 100%; height: auto; }
}

/* ---------- Sécurités générales ---------- */
img { max-width: 100%; }
.elementor-widget-image img { height: auto; }
