/* Utilisation des polices Elementor avec fallback Barlow */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@800&display=swap');

.element-horloge-container {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.element-horloge {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.horloge-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: var(--e-global-typography-primary-font-family, 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    font-size: 55px;
}

.separateur {
    animation: clignoter 1s infinite;
}

@keyframes clignoter {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Classes spécifiques par référence d'écran */
.element.ref-130 .horloge-widget {
    font-size: 45px;
}

.element.ref-100 .horloge-widget {
    font-size: 55px;
}

.element.ref-80 .horloge-widget,
.element.ref-65 .horloge-widget {
    font-size: 95px;
}

.element.ref-140 .horloge-widget {
    font-size: 85px;
}

.element-meteo-container {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.element-meteo {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.meteo-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    font-size: 55px;
}

/* Classes spécifiques par référence d'écran */
.element.ref-130 .meteo-widget {
    font-size: 45px;
}

.element.ref-100 .meteo-widget {
    font-size: 55px;
}

.element.ref-80 .meteo-widget,
.element.ref-65 .meteo-widget {
    font-size: 95px;
}

.element.ref-140 .meteo-widget {
    font-size: 85px;
}

.element-horaire-container {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.element-horaire {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.horaire-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    font-size: 55px;
}

/* Classes spécifiques par référence d'écran */
.element.ref-130 .horaire-widget {
    font-size: 30px;
}

.element.ref-100 .horaire-widget {
    font-size: 40px;
    line-height: 1.1;
}

.element.ref-80 .horaire-widget,
.element.ref-65 .horaire-widget {
    font-size: 60px;
    line-height: 1.2
}

.element.ref-140 .horaire-widget {
    font-size: 45px;
}

.element-message-container {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.element-message {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Styles pour les messages personnalisés */
.message-perso-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    animation: defilement 6s linear infinite;
}

@keyframes defilement {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Classes spécifiques par référence d'écran pour messages personnalisés */
.element.ref-130 .message-perso-widget {
    font-size: 45px;
}

.element.ref-100 .message-perso-widget {
    font-size: 55px;
}

.element.ref-80 .message-perso-widget,
.element.ref-65 .message-perso-widget {
    font-size: 95px;
}

.element.ref-140 .message-perso-widget {
    font-size: 85px;
}

/* Styles pour les messages clignotants */
.message-clignotant-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    animation: clignotement 1s ease-in-out infinite;
}

@keyframes clignotement {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Classes spécifiques par référence d'écran pour messages clignotants */
.element.ref-130 .message-clignotant-widget {
    font-size: 25px;
}

.element.ref-100 .message-clignotant-widget {
    font-size: 35px;
    line-height: 1.1;
}

.element.ref-80 .message-clignotant-widget,
.element.ref-65 .message-clignotant-widget {
    font-size: 50px;
    line-height: 1.2;
}

.element.ref-140 .message-clignotant-widget {
    font-size: 40px;
}

/* Styles pour le parking */
.element-parking-container {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.element-parking {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.parking-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.parking-icon {
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: brightness(0) invert(1);
}

.parking-icon img {
    width: 60%;
    height: auto;
}

.parking-direction {
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: brightness(0) invert(1);
}

.parking-direction img {
    width: 60%;
    height: auto;
}

.parking-distance {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
}

/* Classes spécifiques par référence d'écran pour parking */
.element.ref-130 .parking-widget {
    font-size: 30px;
}

.element.ref-130 .parking-icon img {
    width: 30px !important;
    height: 30px !important;
}

.element.ref-130 .parking-direction img {
    width: 25px !important;
    height: 25px !important;
}

.element.ref-130 .parking-distance {
    font-size: 15px;
}

.element.ref-100 .parking-widget {
    font-size: 35px;
}

.element.ref-100 .parking-icon img {
    width: 40px !important;
    height: 40px !important;
}

.element.ref-100 .parking-direction img {
    width: 35px !important;
    height: 35px !important;
}

.element.ref-100 .parking-distance {
    font-size: 20px;
}

.element.ref-80 .parking-widget,
.element.ref-65 .parking-widget {
    font-size: 55px;

}

.element.ref-80 .parking-icon img,
.element.ref-65 .parking-icon img {
    width: 60px !important;
    height: 60px !important;
}

.element.ref-80 .parking-direction img,
.element.ref-65 .parking-direction img {
    width: 65px !important;
    height: 65px !important;
}

.element.ref-80 .parking-distance,
.element.ref-65 .parking-distance {
    font-size: 30px;
}

.element.ref-140 .parking-widget {
    font-size: 50px;
}

.element.ref-140 .parking-icon img {
    width: 65px !important;
    height: 65px !important;
}

.element.ref-140 .parking-direction img {
    width: 55px !important;
    height: 55px !important;
}

.element.ref-140 .parking-distance {
    font-size: 25px;
}

.element-ephemeride-container {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.element-ephemeride {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.ephemeride-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
	font-size: 1.5em;
}

.ephemeride-date {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5%;
    margin: 0;
}

.ephemeride-center {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0;
}

.ephemeride-titre {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    line-height: 1;
}

.ephemeride-fete {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1;
}

/* Classes pour les différentes tailles de texte du titre */
.ephemeride-titre.s {
    font-size: 20px;
}

.ephemeride-titre.m {
    font-size: 18px;
}

.ephemeride-titre.l {
    font-size: 15px;
}

.ephemeride-titre.xl {
    font-size: 12px;
}

/* Classes pour les différentes tailles de texte de la fête */
.ephemeride-fete.s {
    font-size: 25px;
}

.ephemeride-fete.m {
    font-size: 20px;
}

.ephemeride-fete.l {
    font-size: 15px;
}

.ephemeride-fete.xl {
    font-size: 12px;
}

/* Classes spécifiques par référence d'écran pour le titre */
.element.ref-130 .ephemeride-titre.s {
    font-size: 25px;
}

.element.ref-130 .ephemeride-titre.m {
    font-size: 22px;
}

.element.ref-130 .ephemeride-titre.l {
    font-size: 18px;
}

.element.ref-130 .ephemeride-titre.xl {
    font-size: 15px;
}

.element.ref-100 .ephemeride-titre.s {
    font-size: 30px;
}

.element.ref-100 .ephemeride-titre.m {
    font-size: 25px;
}

.element.ref-100 .ephemeride-titre.l {
    font-size: 20px;
}

.element.ref-100 .ephemeride-titre.xl {
    font-size: 18px;
}

.element.ref-80 .ephemeride-titre.s,
.element.ref-65 .ephemeride-titre.s {
    font-size: 50px;
}

.element.ref-80 .ephemeride-titre.m,
.element.ref-65 .ephemeride-titre.m {
    font-size: 45px;
}

.element.ref-80 .ephemeride-titre.l,
.element.ref-65 .ephemeride-titre.l {
    font-size: 35px;
}

.element.ref-80 .ephemeride-titre.xl,
.element.ref-65 .ephemeride-titre.xl {
    font-size: 30px;
}

.element.ref-140 .ephemeride-titre.s {
    font-size: 40px;
}

.element.ref-140 .ephemeride-titre.m {
    font-size: 35px;
}

.element.ref-140 .ephemeride-titre.l {
    font-size: 30px;
}

.element.ref-140 .ephemeride-titre.xl {
    font-size: 25px;
}

/* Classes spécifiques par référence d'écran pour la fête */
.element.ref-130 .ephemeride-fete.s {
    font-size: 30px;
}

.element.ref-130 .ephemeride-fete.m {
    font-size: 25px;
}

.element.ref-130 .ephemeride-fete.l {
    font-size: 20px;
}

.element.ref-130 .ephemeride-fete.xl {
    font-size: 15px;
}

.element.ref-100 .ephemeride-fete.s {
    font-size: 35px;
}

.element.ref-100 .ephemeride-fete.m {
    font-size: 30px;
}

.element.ref-100 .ephemeride-fete.l {
    font-size: 25px;
}

.element.ref-100 .ephemeride-fete.xl {
    font-size: 18px;
}

.element.ref-80 .ephemeride-fete.s,
.element.ref-65 .ephemeride-fete.s {
    font-size: 60px;
}

.element.ref-80 .ephemeride-fete.m,
.element.ref-65 .ephemeride-fete.m {
    font-size: 50px;
}

.element.ref-80 .ephemeride-fete.l,
.element.ref-65 .ephemeride-fete.l {
    font-size: 40px;
}

.element.ref-80 .ephemeride-fete.xl,
.element.ref-65 .ephemeride-fete.xl {
    font-size: 30px;
}

.element.ref-140 .ephemeride-fete.s {
    font-size: 45px;
}

.element.ref-140 .ephemeride-fete.m {
    font-size: 40px;
}

.element.ref-140 .ephemeride-fete.l {
    font-size: 35px;
}

.element.ref-140 .ephemeride-fete.xl {
    font-size: 25px;
}

/* Quand le titre est absent, centrer la fête */
.ephemeride-center:has(.ephemeride-fete:only-child) .ephemeride-fete {
    height: 100%;
    align-items: center;
}

/* Styles pour les horaires personnalisés */
.horaire-perso-widget {
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.horaire-perso-widget .ligne1,
.horaire-perso-widget .ligne2 {
    width: 100%;
    padding: 0 10px;
}

/* Classes spécifiques par référence d'écran pour horaires personnalisés */
.element.ref-130 .horaire-perso-widget {
    font-size: 20px;
}

.element.ref-100 .horaire-perso-widget {
    font-size: 25px;
}

.element.ref-80 .horaire-perso-widget,
.element.ref-65 .horaire-perso-widget {
    font-size: 40px;
}

.element.ref-140 .horaire-perso-widget {
    font-size: 40px;
}

/* Styles pour le formulaire front_element */
.front-element-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.front-element-form .form-group {
    margin-bottom: 1.5rem;
}

.front-element-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.front-element-form input[type="text"],
.front-element-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #7EBB48;
    border-radius: 20px;
    font-size: 1rem;
}

.front-element-form .radio-group {
    display: flex;
    gap: 1rem;
}

.front-element-form .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.front-element-form input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px dashed #7EBB48;
    border-radius: 20px;
}

.front-element-form input[type="range"] {
    width: 100%;
}

.front-element-form .submit-button {
    background: #7EBB48;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 250px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-family: inherit;
}

.front-element-form .submit-button:hover {
    background: white;
    color: #7EBB48;
}
.dycast-add-element-btn {
    background: var(--e-global-color-accent, #7DBA47);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex
;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s 
ease;
    font-size: 18px;
}
.front-element-form .success {
    color: #46b450;
    padding: 1rem;
    background: #ecf7ed;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Styles pour le conteneur de prévisualisation */
.front-element-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;

}

.front-element-form {
    flex: 1;
    max-width: 600px;
    margin: 0;
    font-family: inherit;
}

.element-preview {
    flex: 1;
    max-width: 600px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 180px;
}

.element-preview .element {
    width: 100%;
    height: 100%;
    position: relative;
}

.element-preview .error {
    color: #dc3232;
    padding: 1rem;
    text-align: center;
    background: #f8d7da;
    border-radius: 20px;
    margin: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .front-element-container {
        flex-direction: column;
    }

    .front-element-form,
    .element-preview {
        max-width: 100%;
    }
}

/* Styles pour le masque de la croix */
.element-croix-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.element-croix {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Ajustements spécifiques pour la référence 140 */
.element.ref-140 .element-croix {
    aspect-ratio: 1;
    max-width: 100%;
    max-height: 100%;
}

.element.ref-140 .element-croix img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajustements pour les widgets dans la croix */
.element.ref-140 .element-croix .horloge-widget,
.element.ref-140 .element-croix .meteo-widget,
.element.ref-140 .element-croix .horaire-widget,
.element.ref-140 .element-croix .message-perso-widget,
.element.ref-140 .element-croix .message-clignotant-widget,
.element.ref-140 .element-croix .parking-widget,
.element.ref-140 .element-croix .ephemeride-widget {
    font-size: 85px;
    line-height: 1;
    padding: 0 10%;
}

/* Styles pour le masque SVG */
.element-previ-masque-container {
    position: relative;
    margin: 0 auto;
}

.element-previ-masque-container .element {
    width: 100%;
    height: 100%;
    position: relative;
}

.masque-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.masque-svg svg {
    width: 100%;
    height: 100%;
}

/* Styles pour la grille d'éléments */
.mes-elements-container {
    font-family: inherit;
}

/* Styles spécifiques pour la prévisualisation des éléments parking */
.mes-elements-container .parking-icon img {
    width: 50px !important;
    height: 50px !important;
}

.mes-elements-container .parking-direction img {
    width: 45px !important;
    height: 45px !important;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.element-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-sizing: border-box;
}

.element-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.element-preview {
    margin-bottom: 15px;
    font-family: inherit; 
    height: 280px;
    min-height: 280px;
    overflow: hidden;
}

.element-actions {
    text-align: right;
    margin-top: auto;
    padding-top: 10px;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    background: #7EBB48;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
}

.button:hover {
    background: white;
    color: #7EBB48;
}

/* Styles pour le formulaire d'horaires */
.form-horaires {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: var(--e-global-typography-primary-font-family, 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.form-horaires .field-type-horaires {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-horaires .field-type-horaires select {
    margin-top: 10px;
}

.form-horaires .field-wrapper {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.form-horaires .groupe-jours {
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #7EBB48;
    border-radius: 8px;
    background: #f9f9f9;
}

.form-horaires .field-jours {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-horaires .field-jours .jours-titre {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.form-horaires .field-jours .jours-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-horaires .field-jours .jours-options label {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #7EBB48;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-horaires .field-jours label:hover {
    background: #f5f5f5;
}

.form-horaires .field-jours input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-horaires .field-jours input[type="checkbox"]:checked + label {
    background: #f5f5f5;
    border-color: #7EBB48;
}

.form-horaires .field-ferme,
.form-horaires .field-journee-continue {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    display: inline-block;
    border-radius: 20px;
}

.form-horaires .field-ferme label,
.form-horaires .field-journee-continue label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-horaires .horaires-matin,
.form-horaires .horaires-am,
.form-horaires .horaires-journee {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
}

.form-horaires .horaires-matin label,
.form-horaires .horaires-am label,
.form-horaires .horaires-journee label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.form-horaires input[type="time"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #7EBB48;
    border-radius: 20px;
    font-size: 1rem;
    background: #fff;
}

.form-horaires select {
    width: 100%;
    padding: 12px;
    border: 1px solid #7EBB48;
    border-radius: 20px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.form-horaires button {
    padding: 12px 25px;
    background: #7EBB48;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.form-horaires button:hover {
    background: white;
    color: #7EBB48;
    box-shadow: 0 2px 8px rgba(126, 187, 72, 0.3);
}

.form-horaires .supprimer-groupe {
    background: #dc3232;
    margin-top: 15px;
}

.form-horaires .supprimer-groupe:hover {
    background: white;
    color: #dc3232;
    box-shadow: 0 2px 8px rgba(220, 50, 50, 0.3);
}

.form-horaires #ajouter-groupe {
    margin: 30px 0;
    width: 100%;
}

.form-horaires .field-etat {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 20px;
}

.form-horaires .field-etat .etat-titre {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.form-horaires .field-etat .etat-options {
    display: flex;
    gap: 20px;
}

.form-horaires .field-etat .field-ferme,
.form-horaires .field-etat .field-journee-continue {
    margin: 0;
    padding: 0;
    background: none;
}

.form-horaires .field-etat label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-horaires .time-select {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-horaires .time-select select {
    width: 80px;
    padding: 8px;
    border: 1px solid #7EBB48;
    border-radius: 20px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
}

.form-horaires .time-select select.time-hour {
    width: 70px;
}

.form-horaires .time-select select.time-minute {
    width: 70px;
}

.form-horaires .time-select select:hover {
    border-color: #5a8a35;
}

.form-horaires .time-select select:focus {
    outline: none;
    border-color: #7EBB48;
    box-shadow: 0 0 0 2px rgba(126, 187, 72, 0.2);
}

/* Styles spécifiques pour le formulaire de gardes */
.form-gardes .field-gardes {
    margin-bottom: 30px;
}

.form-gardes .field-gardes h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7EBB48;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-gardes .gardes-repeater {
    margin-bottom: 25px;
}

.form-gardes .periode-garde {
    margin: 25px 0;
    padding: 25px;
    border: 1px solid #7EBB48;
    border-radius: 20px;
    background: #f9f9f9;
}

.form-gardes .garde-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-gardes .garde-dates .field-wrapper {
    width: 100%;
    margin: 0;
}

.form-gardes .garde-dates label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-gardes input[type="date"],
.form-gardes input[type="time"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #7EBB48;
    border-radius: 20px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.form-gardes input[type="date"]:focus,
.form-gardes input[type="time"]:focus {
    outline: none;
    border-color: #5a8a35;
    box-shadow: 0 0 0 2px rgba(126, 187, 72, 0.2);
}

.form-gardes .supprimer-garde {
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-gardes .supprimer-garde:hover {
    background: white;
    color: #dc3232;
    box-shadow: 0 2px 8px rgba(220, 50, 50, 0.3);
}

.form-gardes #ajouter-garde {
    background: #7EBB48;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 20px 0;
    width: 100%;
}

.form-gardes #ajouter-garde:hover {
    background: white;
    color: #7EBB48;
    box-shadow: 0 2px 8px rgba(126, 187, 72, 0.3);
}

.form-gardes button[type="submit"] {
    background: #7EBB48;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 30px;
    width: 100%;
}

.form-gardes button[type="submit"]:hover {
    background: white;
    color: #7EBB48;
    box-shadow: 0 2px 8px rgba(126, 187, 72, 0.3);
}

/* Styles pour l'interface mes_elements */
.mes-elements-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.mes-elements-header {
    color: var(--e-global-color-text, #000000);
    margin-bottom: 0;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.mes-elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mes-element-card {
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    padding: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mes-element-card:hover {
    border-color: var(--e-global-color-accent, #7DBA47);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125,186,71,0.15);
}

.mes-element-item-content {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    gap: 0.75rem;
    width: 100%;
}

.mes-element-preview {
    width: 60px;
    height: 60px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    flex-shrink: 0;
}

.mes-element-file {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
}

.mes-element-info {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 80px);
    overflow: hidden;
}

.mes-element-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--e-global-color-text, #333);
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.mes-element-status-line {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mes-element-edit-menu-container {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.mes-element-edit-menu-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    padding: 0;
    color: #000000;
}

.mes-element-edit-menu-btn:hover {
    color: #7DBA47;
}

.mes-element-edit-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 140px;
    display: none;
    overflow: hidden;
    margin-bottom: 5px;
}

.mes-element-edit-menu.show {
    display: block;
}

.mes-element-edit-menu-item {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mes-element-edit-menu-item:hover {
    background: #f8f9fa;
}

.mes-element-edit-menu-danger:hover {
    background: #f8d7da;
    color: #721c24;
}

/* Indicateur publicité */
.mes-publicite-indicator {
    font-weight: bold;
    font-size: 0.5em;
    padding: 0.15rem 0.3rem;
    margin-left: 0.25rem;
    border-radius: 5px;
    margin-bottom: 0.25rem;
    background: #ff6b35;
    color: white;
    display: inline-block;
}

.status-online {
    color: #28a745;
}

.status-offline {
    color: #dc3545;
}

@media (max-width: 768px) {
    .mes-elements-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mes-element-card {
        padding: 0.75rem;
    }
}

/* Styles pour les modales avec variables Elementor */
.elements-fixe-create-modal {
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.elements-fixe-create-content {
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.elements-fixe-create-header {
    background: var(--e-global-color-accent, #7DBA47);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.elements-fixe-create-header h2 {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    color: white;
}

.elements-fixe-create-body {
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.front-element-form {
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.front-element-form label {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    color: var(--e-global-color-text, #333);
}

.front-element-form input,
.front-element-form select,
.front-element-form textarea {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    color: var(--e-global-color-text, #333);
}

.front-element-form .submit-button {
    background: var(--e-global-color-accent, #7EBB48);
    color: white;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.front-element-form .submit-button:hover {
    background: white;
    color: #7EBB48;
    border-color: #7EBB48;
    border-radius: 20px;
}

button.remove-periode {
    border-radius: 20px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

button#add-periode {
    border-radius: 20px;
    background: rgb(67, 67, 67);
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}