/* Ajouts du nouveau site : ce que faisaient les scripts et extensions de l'ancien */

/* Pied de page en bas des pages courtes */
.flex-wrapper { min-height: 100vh; height: auto; display: flex; flex-direction: column; }
.flex-wrapper > .t3-wrapper { flex: 1 0 auto; width: 100%; }
#t3-footer { width: 100%; }
.copyright p { text-align: center; }
.copyright a { color: #e1b963; }

/* Diaporama */
.swiper-slider { height: 56.3vw; min-height: 520px; }
.swiper-slider .swiper-wrapper { transition: transform .5s; }
.swiper-slider .swiper-slide { width: 100%; background-size: cover; }
.swiper-slider .swiper-pagination-bullet { padding: 0; border: 0; }
p.slide-title.h1 { margin: 0; padding: 0 0 20px; color: #e1b963; font: 400 50px/1 'Playfair Display', serif; }
.swiper-slider .swiper-slide-caption { animation: sj-apparition 1s; }
@keyframes sj-apparition { from { opacity: 0; } }

/* Bandes à image de fond */
.mod_tm_parallax img { display: block; }
.parallax-container.sans-effet .mod_tm_parallax img { height: 100%; width: 100%; object-fit: cover; }

/* Images : la largeur et la hauteur sont écrites dans la page pour éviter les sauts, la feuille de style garde la main */
.item_img img { height: auto; }
.mod_tm_progress_bars .progress-linear .progress-bar-linear { max-width: 100%; }
.mod_tm_progress_bars .progress-bar-linear.attente { width: 0 !important; }

/* Cartes et témoignages de même hauteur sur une rangée */
@media (min-width: 768px) {
  .mod-newsflash-adv.style1 > .row, .mod-newsflash-adv.testimonials > .row { display: flex; flex-wrap: wrap; }
  .mod-newsflash-adv.style1 > .row::before, .mod-newsflash-adv.style1 > .row::after,
  .mod-newsflash-adv.testimonials > .row::before, .mod-newsflash-adv.testimonials > .row::after { content: none; }
  .mod-newsflash-adv.style1 .item_content, .mod-newsflash-adv.testimonials .item_content { height: 100%; }
}

.bootstraptabs > li > a.btn { padding: 10px 15px; }
.portfolio-item[hidden] { display: none; }

/* Agrandissement des photos */
.sj-visionneuse { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #191919; color: #fff; overflow: hidden; }
.sj-visionneuse img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sj-visionneuse button { position: absolute; z-index: 1; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #e1b963; font: 24px/52px FontAwesome; cursor: pointer; }
.sj-visionneuse button:hover, .sj-visionneuse button:focus-visible { background: #e1b963; color: #191919; }
.sj-visionneuse .fermer { top: 16px; right: 16px; }
.sj-visionneuse .avant { left: 16px; top: calc(50% - 26px); }
.sj-visionneuse .apres { right: 16px; top: calc(50% - 26px); }

/* Galerie : comme avant, le nom de l'album apparaît en doré au survol */
h1.jg-titre { color: #000; text-align: left; padding-bottom: 30px; }
.jg-images.jg-subcategories, .jg-images.jg-category { gap: 30px; }
.jg-gallery .jg-image { margin: 0; overflow: hidden; }
.jg-gallery { margin: 0 0 30px; }
.jg-titre + #adminForm:not(:has(select, button, input:not([type=hidden]))) { margin: 0; } /* barre de filtres vide */
.jg-titre + #adminForm:not(:has(select, button, input:not([type=hidden]))) > .js-stools { display: none; }
@media (max-width: 479px) { h1.jg-titre { font-size: 33px; line-height: 40px; overflow-wrap: anywhere; } } /* « mariages/Weddings » sortait de l’écran */
.jg-category .jg-image-caption:not(:has(*)) { display: none; }
.jg-subcategories .jg-image-thumb, .jg-category .jg-image-thumb { aspect-ratio: 400 / 284; object-fit: cover; }
.jg-images[class*=" columns-"] > .jg-image > .jg-image-thumbnail > a,
.jg-images[class*=" columns-"] > .jg-image > .jg-image-thumbnail > .jg-image-caption-hover > a { display: block; padding-bottom: 0; }
.jg-images[class*=" columns-"] > .jg-image > .jg-image-thumbnail > a > img.jg-image-thumb,
.jg-images[class*=" columns-"] > .jg-image > .jg-image-thumbnail > .jg-image-caption-hover > a > img.jg-image-thumb { position: static; display: block; width: 100%; max-width: none; max-height: none; height: auto; transform: none; transition: transform .5s ease; }
.jg-images[class*=" columns-"] > .jg-image:hover > .jg-image-thumbnail > a > img.jg-image-thumb,
.jg-images[class*=" columns-"] > .jg-image:hover > .jg-image-thumbnail > .jg-image-caption-hover > a > img.jg-image-thumb { transform: scale(1.1); }
.pagination .active > a, .pagination .active > span, .pagination .active > a:hover { background: #e1b963 !important; border-color: #e1b963 !important; color: #252125 !important; }
.jg-subcategories .jg-image { position: relative; }
.jg-subcategories .jg-image > .jg-image-caption { position: absolute; inset: 0; margin: 0; padding: 0; background: rgba(225, 185, 99, .5); opacity: 0; transition: opacity .5s ease; }
.jg-subcategories .jg-image:hover > .jg-image-caption, .jg-subcategories .jg-image:focus-within > .jg-image-caption { opacity: 1; }
.jg-subcategories .jg-image-caption a.jg-link { display: flex; align-items: center; justify-content: center; height: 100%; padding: 10px; color: #fff !important; font-size: 14px; line-height: 22px; text-align: center; text-decoration: none; }
/* Photos d'un album : voile doré et loupe au survol */
.jg-category .jg-image-caption-hover > a { position: relative; overflow: hidden; }
.jg-category .jg-image-caption-hover > a::after { content: '\f00e'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(225, 185, 99, .5); color: #e1b963; font: 28px/1 FontAwesome; opacity: 0; transition: opacity .5s ease; }
.jg-category .jg-image-caption-hover > a:hover::after, .jg-category .jg-image-caption-hover > a:focus-visible::after { opacity: 1; }
@media (hover: none) { .jg-subcategories .jg-image > .jg-image-caption { inset: auto 0 0; opacity: 1; background: rgba(37, 33, 37, .7); } }

/* Formulaire */
#chronoform-contacteznous { padding: 20px 0; }
#chronoform-contacteznous label { color: #252125; font-size: 13px; margin-bottom: 4px; }
#chronoform-contacteznous .input.calendar, #chronoform-contacteznous .input.calendar input, #chronoform-contacteznous .envoyersarah { width: 100%; max-width: 100%; }
#chronoform-contacteznous .input.calendar input { background: #fff; }
#chronoform-contacteznous .envoyersarah { margin-top: 12px; }

/* Services extérieurs en attente d'accord */
.tac_activate { border-radius: 0 !important; }
.vimeo_player { max-width: 320px; min-height: 180px; }

@media (prefers-reduced-motion: reduce) {
  .swiper-slider .swiper-wrapper { transition: none; }
  .swiper-slider .swiper-slide-caption { animation: none; }
}

/* Texte réservé aux lecteurs d'écran (classe de Joomla 6, absente de Bootstrap 3) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Drapeaux à gauche des réseaux sociaux */
.mainnav-position .mod-languages { float: left; width: 50%; padding-top: 20px; }
.mainnav-position .mod-languages li { margin: 0 5px; }
.mainnav-position .mod-languages li.lang-active { background: none; }
.mainnav-position .mod-languages a { padding: 0; }

/* Les boutons au texte long débordaient sur mobile */
@media (max-width: 767px) { .page-blog .btn, .page-item .btn { max-width: 100%; white-space: normal; } }

/* Mobile : le titre du diaporama passait sur le logo */
@media (max-width: 767px) { .swiper-slider .slide-title.slide-title { font-size: 33px; text-align: left; } }

/* Titre principal unique : la balise change, l'apparence reste celle de l'ancien site */
h1.heading-style-3 { font-size: 30px; }
.page_header > h1.heading-style-3 { padding: 0 0 20px; color: #e1b963; }
form.nui h2[style] { margin: 0; padding: 0 0 20px; font-family: 'Playfair Display', serif; }
h2.heading-style-1 { margin: 0; font-family: 'Playfair Display', serif; font-weight: 400; line-height: 1; color: #e1b963; }
.page_header > h2.heading-style-1 { padding: 0 0 30px; color: #000; }
.faites h2.heading-style-1 { color: #e1b963; }
@media (max-width: 991px) { h1.heading-style-3 { font-size: 28px; } }
:is(h3, h4, h5).h6 { text-transform: none; }
:is(h3, h4, h5).h6:not(.left) { text-align: center; }

/* Formulaire : contrôle anti-robots en attente d'accord */
.sj-controle { max-width: 460px; margin: 0 0 10px; padding: 12px 15px; border: 1px solid #e1b963; color: #000; text-align: left; }
.g-recaptcha:has(.sj-controle) { width: auto; height: auto; }

/* « À propos » du pied de page : le titre visé ne passe pas sous le menu fixe */
#a-propos, #about { scroll-margin-top: 120px; }
