/*
 Theme Name:   Medal of Honor Rottweiler
 Theme URI:    https://www.medal-of-honor.net/
 Description:  Description
 Author:       Charly Web Design
 Author URI:   https://charly-web-design.fr/
 Template:     hello-elementor
 Version:      1.110
*/


.acf-gallery-shortcode {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.acf-gallery-shortcode .acf-gallery-item img {
    height: 250px; /* desktop */
    width: auto;
    object-fit: cover;
    display: block;
}


@media (min-width: 768px) {
.page-video .galerie-videos-grid .video-item {
     height: 300px;
}
.page-video .video-thumb {
    height: 300px !important;
}

}
@media (max-width: 768px) {
 .page-video .video-thumb {
        height: 250px !important; /* ajuster si besoin */
    }

    .page-video  .video-wrapper iframe {
        height: 250px !important;
    }
}

/*Photos descendance chiens*/
/* Conteneur relatif */
.e-gallery-item {
    position: relative;
    overflow: hidden;
}

/* Supprimer l’overlay qui masque le texte */
.e-gallery-item__overlay {
    display: none;
}

/* Image : zoom-in au chargement */
.e-gallery-item__image {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: zoomIn 1s ease forwards; /* zoom-in au chargement */
}

/* Animation zoom-in */
@keyframes zoomIn {
    0% {
        transform: scale(1.1); /* commence légèrement zoomé */
    }
    100% {
        transform: scale(1);   /* finit à taille normale */
    }
}

/* Bandeau noir en bas, toujours visible */
.elementor-gallery-item__description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    opacity: 1 !important;      /* visible tout le temps */
    transform: none !important; /* annule fade-in */
}






/*Chiens*/
.menu-chien a:hover {
	color: #ffffff;
}
.menu-chien a {
	color: var(--e-global-color-efbf54c);
	background-color:  var(--e-global-color-0098182);
	padding: 6px 10px 6px 10px;
    border-radius: 5px;
}


/* Menu sur mobile */
@media (max-width: 767px) {
    /* Centre le menu horizontalement */
    .menu-chien .elementor-icon-list-items.elementor-inline-items {
        display: flex;
        justify-content: center; /* centre horizontalement */
        flex-wrap: wrap; /* passe à la ligne si trop long */
        gap: 5px 0px; /* espace de 30px entre les liens */
        padding: 0;
        margin: 0 auto;
    }

    /* Supprime marges internes des <li> */
    .menu-chien .elementor-icon-list-item {
        margin: 0;
    }
}
@media (max-width: 1023px) {
	.menu-chien .elementor-icon-list-items.elementor-inline-items {
		 gap: 10px 0px; /* espace de 30px entre les liens */
	}
}


.libelle-chien {
	color: #3D1009;
}
.gallerie-descendance:before {
	display: block;
	text-align: left;
	content: "Descendance";
  	background-color: var(--e-global-color-0098182);
    padding: 8px 8px 8px 30px;
	color: #ffffff;
	font-family: "Trebuchet MS", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gallerie-photos:before {
	display: block;
	text-align: left;
	content: "Photos";
  	background-color: var(--e-global-color-0098182);
    padding: 8px 8px 8px 30px;
	color: #ffffff;
	font-family: "Trebuchet MS", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*vidéos*/
.video-wrapper {
    background-color: black;
}

.galerie-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.galerie-videos-grid .video-item {
    width: calc(50% - 10px);
    position: relative;
    height: 250px; /* fixe la hauteur pour éviter que ça rétrécisse */
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 250px !important;
    object-fit: contain; /* recadre l’image pour remplir le conteneur */
    display: block;
	background-color: #000000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}
/* RESPONSIVE : 1 vidéo par ligne sur mobile */
@media (max-width: 767px) {
    .galerie-videos-grid .video-item {
        width: 100%;
    }

    .video-thumb {
        height: 200px !important; /* ajuster si besoin */
    }

    .video-wrapper iframe {
        height: 200px !important;
    }
}





.galerie-photos::before {
	display: block;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 10px;
	content: "Galerie photos";
  font-family: var(--e-global-typography-ea0f1eb-font-family), Sans-serif;
  font-size: var(--e-global-typography-ea0f1eb-font-size);
  font-weight: var(--e-global-typography-ea0f1eb-font-weight);
  color: var(--e-global-color-efbf54c);
}



/*Blog*/
/*boutons sous blog*/
.page-blog span.page-numbers.current {
	border: 1px solid #3D1009;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.page-blog a.page-numbers {
    border: 1px solid #3D1009;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #3D1009;
	color: #ffffff;
}
.page-blog a.page-numbers:hover {
    background-color: #ffffff;
}
.page-blog nav.elementor-pagination {
    padding-top: 40px;
}


/*Accueil*/
.icone-accueil span.elementor-icon {
	transform: rotate(45deg);
	border-color: #CBC098 !important;
}
.icone-accueil svg {
	transform: rotate(-45deg);
}

@media only screen and (min-width: 1024px) {
.diaporama-accueil .elementor-widget-slides .swiper-slide[data-swiper-slide-index="1"] .swiper-slide-bg {
  background-position-y : -460px !important;
}
.diaporama-accueil .elementor-widget-slides .swiper-slide[data-swiper-slide-index="2"] .swiper-slide-bg {
  background-position: top center !important;
}
}
.elementor-slide-description {
 font-family: "Trebuchet MS", sans-serif;
  font-weight: 400; /* force le rendu normal, non bold */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}


/*Menu*/
@media only screen and (min-width: 1024px) {
.menu-principal .elementor-nav-menu > .current-menu-item > a {
    background-image: url("/wp-content/uploads/2025/10/fond-menu-actif.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;   
}
.sub-menu {
	width: 248px !important;
	padding-top: 30px !important;
	padding-bottom: 30px !important;
}
}

span.sub-arrow {
	display: none !important;
}


/*footer en bas*/
body{
min-height: 100vh;
display: flex;
flex-direction: column;
}
.elementor-location-footer {
margin-top: auto;
}

/*fin footer en bas*/

body.login.login-password-protected.login-action-password-protected-login.wp-core-ui {
    background: #3d1009 !important;
}
.language-switcher {
    display: none !important;
}
.wp-core-ui .button-primary {
    background: #3d1009 !important;
    border-color: #3d1009 !important;
}
p {
	margin-bottom: 0;
}

