/* 
Theme Name: Mairie Estillac
Theme URI: https://artcombureautique.fr
Description: Theme sur mesure pour la Marie d'Estillac
Author: Art'Com Bureautique
Author URI: https://artcombureautique.fr
Template: hello-elementor
Version: 2.0.0
Text Domain: estillac-hello
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


@media screen and  (max-width : 1440px) {
    h1, h1 span { font-size: calc(24px + (42 - 24) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(22px + (44 - 22) * ((100vw - 320px) / (1440 - 320)))!important;}
    h2, h2 span { font-size: calc(18px + (26 - 18) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(20px + (28 - 20) * ((100vw - 320px) / (1440 - 320)))!important;}
    h3, h3 span { font-size: calc(15px + (24 - 15) * ((100vw - 320px) / (1440 - 320)))!important; line-height: calc(18px + (26 - 18) * ((100vw - 320px) / (1440 - 320)))!important;}
    }


.blanc, .blanc  p {color: #FFFFFF!important;}
.bleu-gris, .bleu-gris p {color: #335C67;}


/* Menu */
.elementor-widget-container a:focus{outline-width: none!important; outline: 0px solid #fff!important;}


.titre-span h1, .titre-span h2, .titre-span h3, .titre-span h4, .titre-span h5, h5.elementor-icon-box-title span {display: flex; flex-direction: column;}
.titre-span h1 span, .titre-span h2 span, .titre-span h3 span, .titre-span h4 span, .titre-span h5 span {width: 100%;}
.bleu span, .titre-bleu strong {color: #335C67;}

/* Menus listes des posts d'une publication */

.menu-auto .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child) { padding-bottom: calc(20px/2); }
.menu-auto .elementor-icon-list-text { align-self: center; padding-inline-start: 5px; }
.menu-auto li a {color: #335C67; margin-left: 5px;}
.menu-auto .elementor-icon-list-icon svg { fill: #335C67; transition: fill 0.3s; width: 14px; height: 14px; }
.menu-auto ul.elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }

.menu-auto ul.elementor-icon-list-items li.elementor-icon-list-item { flex: 0 0 48%; margin-bottom: 10px; }


/* Textes */

.triangle { position: absolute; right: 0; top: 0; margin-right: -30px; width: 0; height: 0; border-style: solid; border-width: 32.5px 0 32.5px 30px; border-color: transparent transparent transparent #00365f; }

    .elementor-7 .elementor-element.elementor-element-17f9801 .uc_post_list_box { height: 180px; }
    .ue-grid-item-meta-data { font-size: 20px!important; margin-top: 15px; }
    #uc_post_list_elementor_17f9801 .button-on-side { align-items: end!important; }


    @import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

svg {
	font-family: "Russo One", sans-serif;
	width: 100%; height: 100%;
}
svg text {
	animation: stroke 5s infinite alternate;
	stroke-width: 2;
	stroke: #FFFFFF;
	font-size: 120px;
}
@keyframes stroke {
	0%   {
		fill: rgba(255,255,255,0); stroke: rgba(255,255,255,1);
		stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
	}
	70%  {fill: rgba(255,255,255,0); stroke: rgba(255,255,255,1); }
	80%  {fill: rgba(255,255,255,0); stroke: rgba(255,255,255,1); stroke-width: 3; }
	100% {
		fill: rgba(255,255,255,1); stroke: rgba(255,255,255,0);
		stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
	}
}
 .justifier p {text-align: justify!important;}

/* Agenda */
.elementor-2469 .elementor-element.elementor-element-5710e6a .uc_post_list_image { width: 190px; height: 190px; }

/* séance conseil municipal */
.popup-seance { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 9999; }

.popup-content { position: relative; width: 1200px; height: 90%; background: #fff; padding: 0; box-shadow: 0 0 30px rgba(0,0,0,0.5); display: flex; flex-direction: column; }

.popup-content iframe { flex: 1; width: 100%; height: 100%; border: none; }

.popup-close { position: absolute; top: 10px; right: 10px; background: #000; color: #fff; border: none; padding: 6px 12px; font-size: 14px; cursor: pointer; z-index: 10; }


/* Service */
/* Mise en page */

.presentation-responsables { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; justify-items: center; padding: 30px 20px; }

.presentation-employes { display: grid; grid-template-columns: repeat(4, 1fr); /* 4 colonnes fixes */ gap: 30px; justify-items: center; padding: 20px; }

.presentation-responsables .item,
.presentation-employes .item { width: 100%; max-width: 220px; /* Taille maximale d'un item */ text-align: center; }

.presentation-responsables .photo,
.presentation-employes .photo { width: 140px; height: 140px; background-size: contain; background-repeat: no-repeat; background-position: center; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.presentation-responsables .photo{   width: 180px; height: 180px;}


.presentation-responsables .photo img { width: 145px; height: 145px; object-fit: cover; }

.presentation-employes .photo img { width: 115px; height: 115px; object-fit: cover; }

/* Responsive : 3 colonnes sur tablette */
@media screen and (max-width: 1024px) {
  
    .presentation-employes { grid-template-columns: repeat(3, 1fr); }
}

/* 2 colonnes sur mobile */
@media screen and (max-width: 768px) {
   
    .presentation-employes { grid-template-columns: repeat(2, 1fr); }
}

/* Fond spécifique */
.photo-responsable {
    background-image: url('/wp-content/uploads/2025/07/services-municipaux-fond-responsable.webp');
}

.photo-employe {
    background-image: url('/wp-content/uploads/2025/07/services-municipaux-fond-collaborateur.webp');
}

/* NOM */
.nom {
    margin-top: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px;
    font-weight: 500;
    color: white;
    font-size: 16px;
    text-align: center;
}

/* Fond spécifique pour nom */
.nom-responsable {
    background-image: url('/wp-content/uploads/2025/07/services-municipaux-fond-nom.webp');
}

.nom-employe {
    background-image: url('/wp-content/uploads/2025/07/services-municipaux-fond-nom-employes.webp');
}

/* POSTE */
.poste { font-size: 14px; font-weight: 400; line-height: 16px; margin-top: 4px; color: #0c2b4b; text-align: center; }

    
.e-n-menu-content.e-active {z-index: 5!important;}
.menu-publication h3 {margin-bottom: 15px; text-align: center; color: #335C67;}
.menu-publication ul li {gap: 10px;}
.menu-publication ul li a {color: #335C67; font-weight: 500;}
.menu-publication ul li svg {fill: rgb(51, 92, 103);}
        
.elementor-element-c0f8d3c a {display: none;}

#pdf-frame {
  width: 100%;
  height: 100vh;
  max-height: 90vh;
  min-height: 600px;
  border: none;
}

.custom-archive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

/* css liste des contenus d'une publication */

.grid-publications .elementor-divider {width: 80px; border-block-start-style: solid; border-block-start-width: 2px; color: rgb(51, 51, 51); margin-bottom: 10px;}

.grid-publications {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.grid-item {
    width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item-thumb {
    background-size: cover;
    background-position: center;
    height: 220px;
}

.grid-item-content {
    padding: 1rem;
}

.grid-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #000;
}

.grid-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-item {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 600px) {
    .grid-item {
        width: 100%;
    }
}

/* Colors */
.has-principal-background-color { background-color: #335C67; }
.has-principal-color { color: #335C67; }
.has-principal-border-color { border-color: #335C67; }
.has-secondaire-background-color { background-color: #FFF3B0; }
.has-secondaire-color { color: #FFF3B0; }
.has-secondaire-border-color { border-color: #FFF3B0; }
.has-accentue-background-color { background-color: #E09F3E; }
.has-accentue-color { color: #E09F3E; }
.has-accentue-border-color { border-color: #E09F3E; }
.has-bordeaux-background-color { background-color: #540B0E; }
.has-bordeaux-color { color: #540B0E; }
.has-bordeaux-border-color { border-color: #540B0E; }
.has-rouge-background-color { background-color: #9E2A2B; }
.has-rouge-color { color: #9E2A2B; }
.has-rouge-border-color { border-color: #9E2A2B; }