/*
  Theme Name: Civita theme
  Theme URI: https://www.web-micro.fr
  Version: 2025.1.0
  Template: Divi
  Author: Web-Micro
  Author URI: https://www.web-micro.fr
  Description: Civita est un thème conçu pour les Collectivités Territoriales, réalisé par Web-Micro, une entreprise spécialisée dans l’accompagnement numérique des acteurs publics. Il répond aux exigences fonctionnelles et aux standards actuels de communication des collectivités.
  Text Domain: civita-theme
  License: GNU General Public License v2 or later
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/


ul#search_mobile {
	position: relative;
	display: flex;
	align-items: center;
	padding:0;
	list-style:none;
}

.alink_contenu a {
    text-decoration: none; /* Supprime le soulignement par défaut */
    background-image: linear-gradient(to right, #000 100%, transparent 0%);
    background-size: 0% 2px; /* Ligne de soulignement de 2px d'épaisseur */
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease-in-out;
}

.alink_contenu a:hover {
    background-size: 100% 2px; /* Étend la ligne sous tout le texte */
}

/* Menu hover */

.a__link__menu > a:hover {
	color: #e07a3f !important;
}

.a__link__menu > a::before {
	content: ""!important;
  	width: 100%!important;
  	height: 2px!important;
  position: absolute!important;
  left: 0!important;
  bottom: 26px!important;
  background: #fff!important;
  transition: 0.5s transform ease!important;
  transform: scale3d(0,1,1)!important;
  transform-origin: 0 50%!important;
}

.a__link__menu > a:hover::before {
  transform: scale3d(1,1,1)!important;
}

.a__link__menu > a::before {
  background: #e07a3f !important;
  transform-origin: 100% 50%!important;
}

.a__link__menu > a:hover::before {
  transform-origin: 0 50%!important;
}

@media (max-width: 768px) {
	.a__link__menu > a::before {
		bottom:0px!important;
	}
}

/* sous-menu link */ 

.alinksousmenu a:hover {
	color:#5f8d5b!important;
}

.alinksousmenu a::before {
	content: ""!important;
  	width: 100%!important;
  	height: 2px!important;
  position: absolute!important;
  left: 0!important;
  bottom: 0!important;
  background: #fff!important;
  transition: 0.5s transform ease!important;
  transform: scale3d(0,1,1)!important;
  transform-origin: 0 50%!important;
}

.alinksousmenu a:hover::before {
  transform: scale3d(1,1,1)!important;
}

.alinksousmenu a::before {
  background: #5f8d5b!important;
  transform-origin: 100% 50%!important;
}

.alinksousmenu a:hover::before {
  transform-origin: 0 50%!important;
} 

/* FIN */
.kiosk-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 80px;
    grid-row-gap: 0;
}

.kiosk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 500px;
    padding: 60px 30px 20px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 5px 25px 0 rgba(0, 0, 0, .09);
    transition: all .5s ease-in-out;
    margin-bottom: 20px; /* Ajout d'espace en dessous de chaque carte */
}

.kiosk-image {
    max-height: 380px;
    max-width: 260px;
}

.kiosk-title {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    text-align:center!important;
    line-height:initial!important;
}

.kiosk-date {
    color: #777;
    margin-bottom: 15px;
}

.kiosk-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 50px;
}

.kiosk-button {
    background: #f1c40f;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 200px;
    text-align: center; /* Centre le texte des boutons */
	font-weight:700;
	color:#000;
	transition: opacity 0.2s ease-in-out;
}

/* Espace entre les boutons en version mobile */
@media (max-width: 768px) {
    .kiosk-buttons {
        flex-direction: column; /* Change la direction des boutons */
        align-items: center; /* Centre les boutons */
    }

    .kiosk-button {
        margin-bottom: 10px; /* Ajoute un espace entre les boutons */
        width: 100%; /* Optionnel : pour que les boutons occupent toute la largeur */
        text-align: center; /* Centre le texte des boutons */
    }

    .kiosk-button:last-child {
        margin-bottom: 0; /* Pas d'espace sous le dernier bouton */
    }
}

.kiosk-button:hover {
   opacity:0.5;
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background: #0056b3;
}

.pagination .current {
    padding: 10px 15px;
    margin: 0 5px;
    background: #333;
    color: #fff;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .kiosk-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour tablette */
        grid-column-gap: 40px; /* Réduit l'espace entre les colonnes */
    }

    .kiosk-card {
        padding: 40px 20px 20px; /* Ajuste le padding */
        margin-bottom: 30px; /* Plus d'espace en dessous des cartes pour tablette */
    }

    .kiosk-title {
        font-size: 18px; /* Réduit la taille de la police */
    }

    .kiosk-image {
        max-height: 250px; /* Ajuste la hauteur de l'image */
        max-width: 180px; /* Ajuste la largeur de l'image */
    }

    .kiosk-buttons {
        margin-top: 30px; /* Ajuste la marge */
    }
}

@media (max-width: 768px) {
    .kiosk-container {
        grid-template-columns: 1fr; /* 1 colonne pour mobile */
        grid-column-gap: 20px; /* Réduit l'espace entre les colonnes */
    }

    .kiosk-card {
        padding: 30px 15px; /* Ajuste le padding */
        margin-bottom: 40px; /* Plus d'espace en dessous des cartes pour mobile */
    }

    .kiosk-title {
        font-size: 16px; /* Réduit la taille de la police */
    }

    .kiosk-image {
        max-height: 200px; /* Ajuste la hauteur de l'image */
        max-width: 150px; /* Ajuste la largeur de l'image */
    }

    .kiosk-buttons {
        flex-direction: column; /* Change la direction des boutons */
        align-items: center; /* Centre les boutons */
        margin-top: 20px; /* Ajuste la marge */
    }
}

/* Filtre */

.kiosk-filter-form {
    display: flex; /* Aligne les éléments du formulaire en ligne */
    justify-content: center; /* Centre le contenu horizontalement */
    align-items: center; /* Centre les éléments verticalement */
    gap: 15px; /* Espacement entre les éléments */
    padding: 20px; /* Espacement intérieur */
}

.kiosk-filter-search {
	padding: 12px!important;
  border: 1px solid #ccc!important;
  border-radius: 5px!important;
  font-size: 16px!important;
}

.search-wrapper {
	display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.select-wrapper {
    display: flex; /* Aligne les sélecteurs sur la même ligne */
    align-items: center; /* Centre les éléments verticalement */
    gap: 10px; /* Espacement entre les éléments */
}

.kiosk-filter-form select,
.kiosk-filter-form input[type="submit"],
.reset-button {
    padding: 12px; /* Espacement intérieur */
    border: 1px solid #ccc; /* Bordure grise */
    border-radius: 5px; /* Coins arrondis */
    font-size: 16px; /* Taille de police */
    min-width: 150px; /* Largeur minimale pour les sélecteurs */
    width: 150px; /* Largeur fixe pour garantir l'alignement */
    text-align: center; /* Centre le texte des boutons */
}

.kiosk-filter-form input[type="submit"] {
    background-color: #007BFF; /* Couleur de fond du bouton */
    color: white; /* Couleur du texte */
    cursor: pointer; /* Curseur pointer */
    font-weight: bold; /* Gras pour le texte du bouton */
    transition: background-color 0.3s; /* Transition de couleur de fond */
}

.kiosk-filter-form input[type="submit"]:hover {
    background-color: #0056b3; /* Couleur plus foncée au survol */
}

.reset-button {
    display: inline-block; /* Pour que le lien soit un bloc */
    padding: 12px 15px; /* Espacement intérieur */
    background-color: #dc3545; /* Couleur rouge pour le réinitialiser */
    color: white; /* Couleur du texte */
    text-decoration: none; /* Supprime le soulignement */
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s; /* Transition de couleur de fond */
    text-align: center; /* Centre le texte */
    line-height: normal; /* Normalise la hauteur de ligne */
    width: 150px; /* Largeur fixe pour garantir l'alignement */
}

.reset-button:hover {
    background-color: #c82333; /* Couleur plus foncée au survol */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .kiosk-filter-form {
        flex-direction: column; /* Aligne les éléments en colonne */
        align-items: stretch; /* Étire les éléments pour occuper toute la largeur */
    }

    .kiosk-filter-form select,
    .kiosk-filter-form input[type="submit"],
    .reset-button {
        width: 100%; /* Largeur complète pour les éléments */
        margin-bottom: 10px; /* Espace en dessous de chaque élément */
        font-size: 18px; /* Taille de police augmentée pour la lisibilité */
    }

    .select-wrapper {
        gap: 10px; /* Espace entre les sélecteurs */
        flex-direction: column; /* Aligne les sélecteurs en colonne */
    }
}

@media (max-width: 768px) {
    .kiosk-filter-form {
        padding: 15px; /* Réduit l'espacement intérieur pour mobile */
    }

    .kiosk-filter-form select,
    .kiosk-filter-form input[type="submit"],
    .reset-button {
        padding: 15px; /* Augmente l'espacement intérieur pour mobile */
        font-size: 16px; /* Ajuste la taille de la police pour mobile */
    }

    .kiosk-filter-form input[type="submit"] {
        margin-top: 10px; /* Espace au-dessus du bouton */
    }
}


/* search css */
/* Styles pour la modale */
/* Styles pour la modale */

#ajaxsearchlite1 .probox .proinput input, div.asl_w .probox .proinput input {
font-size:20px;
	font-weight:500;
}

@media (max-width: 768px) {
    #ajaxsearchlite1 .probox .proinput input, div.asl_w .probox .proinput input {
font-size:15px;
	font-weight:500;
}
}

#ajaxsearchlite1 .probox, div.asl_w .probox {
  margin: 0;
  padding: 16px;
  height: 28px;
  background-color: #fff;
  border:0px;
  box-shadow: 0 0 0 0 #b5b5b5 inset;
  border-radius: 40px;
}

.search-modal {
    display: none; /* Masquer la modale par défaut */
    position: fixed;
    z-index: 999; /* S'assurer que la modale est au-dessus du contenu */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20,20,20,0.9); /* Fond blanc semi-transparent */
    opacity: 0; /* Opacité initiale */
    transition: opacity 0.3s ease; /* Transition pour l'opacité */
}

.modal-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    background: transparent; /* Fond transparent */
    text-align: center;
    transform: translateY(-30px); /* Position de départ */
    transition: transform 0.3s ease; /* Transition pour le mouvement */
}
@media (max-width: 768px) {
    .modal-content {
		padding:5px;
		max-width:100%;
		width:95%;
}
}

/* Style de l'input de recherche */
.search-wrapper {
    width: 100%;
}

.search-wrapper input {
    width: 80%;
    padding: 15px;
    border: none;
    border-bottom: 2px solid #000; /* Ligne noire fine sous l'input */
    background-color: transparent;
    font-size: 24px;
    color: #000;
}

/* Style de la loupe dans la modale */
.search-wrapper input[type="submit"] {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.search-wrapper input[type="submit"]:before {
    content: "\f002"; /* Code pour l'icône loupe (FontAwesome) */
    font-family: "FontAwesome";
    font-size: 24px;
}

/* Style du bouton de fermeture */
.close {
    position: absolute;
    right: 32px;
    top: 32px;
    font-size: 80px;
    color: #fff;
    cursor: pointer;
}

/* Style pour le block dans l'éditeur Gutenberg */
.custom-document-block {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.custom-document-block .custom-document-button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
}

.custom-document-block .custom-document-button:hover {
    background-color: #005177;
}

.custom-document-block .custom-document-preview a {
    color: #0073aa;
    text-decoration: none;
}

.custom-document-block .custom-document-preview a:hover {
    text-decoration: underline;
}

/* Style pour le block dans le front-end */
.custom-document-block a.custom-document-link {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 10px;
}

.custom-document-block a.custom-document-link:hover {
    background-color: #005177;
}
