/*
 * Elements d'interface
 *
 * Tampons de date, liens du mega menu, contrastes AA, focus visible.
 */

/* ---------------------------------------------------------------------------
 * Alignement des listes a icone
 *
 * Elementor centre l'icone sur la hauteur TOTALE du texte. Invisible tant que la
 * ligne est unique ; des deux lignes l'icone decroche, et elle finissait au milieu
 * d'un pave de six lignes dans les infos pratiques (54px d'ecart mesures).
 * On la cale dans une boite d'exactement une ligne, alignee en haut : elle se
 * centre alors sur la premiere ligne, quel que soit le nombre de lignes suivantes.
 * ------------------------------------------------------------------------- */
.elementor-icon-list-item { align-items: flex-start; }
.elementor-icon-list-item > a { align-items: flex-start; }
.elementor-icon-list-icon {
	align-self: flex-start;
	display: inline-flex; align-items: center; justify-content: center;
	height: 24px;   /* hauteur de ligne commune a toutes les listes du site (mesuree) */
}

/* --- 3b. Cartes-tickets : tampon date ------------------------------------ */
.mlett-ticket-media { position: relative; }
.mlett-ticket-media .elementor-widget-shortcode { position: absolute; left: 16px; top: 16px; z-index: 2; width: auto; }
.mlett-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #012853; box-shadow: 0 6px 16px rgba(1, 40, 83, .18); font-family: 'Comfortaa', sans-serif; line-height: 1; text-align: center; }
.mlett-stamp b { font-size: 24px; font-weight: 700; }
.mlett-stamp span { font-size: 12px; font-weight: 700; text-transform: lowercase; }
.mlett-stamp__txt { font-size: 11px; font-weight: 700; line-height: 1.15; }
.mlett-stamp--soon { background: #3399FE; color: #fff; }
.mlett-stamp--off { background: #6C757D; color: #fff; }

/* Méga menu : liens formations (titre court) */
.mlett-menu-link { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #142848; text-decoration: none; font-size: 15px; }
.mlett-menu-link__dot { width: 8px; height: 8px; border-radius: 50%; background: #3399FE; flex: 0 0 auto; }
.mlett-menu-link:hover, .mlett-menu-link:focus-visible { color: #0B63C7; text-decoration: underline; }

/* --- Contrastes (AA) --------------------------------------------------- */
.mlett-badge--ouvertes, .mlett-badge--continu { background: #007A00; }
.mlett-btn--off { background: #5A6570; }
.elementor-widget-text-editor a, .elementor-widget-theme-post-content a { color: #0B63C7; text-decoration: underline; text-underline-offset: 2px; }
.elementor-widget-text-editor a:hover, .elementor-widget-theme-post-content a:hover { color: #012853; }
/* Focus visible uniforme */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #0B63C7; outline-offset: 3px; border-radius: 4px; }
html { scroll-padding-top: 120px; }

/* --- Inscriptions closes : bloc affiche a la place du formulaire ------------ */
.mlett-closed { text-align: center; }
.mlett-closed__titre { font: 700 24px/1.25 'Comfortaa', sans-serif; color: var(--mlett-navy); margin: 0 0 12px; }
.mlett-closed__texte { font-size: 17px; line-height: 1.6; color: var(--mlett-text); margin: 0 0 12px; }
.mlett-closed__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 8px; }
.mlett-closed__tel, .mlett-closed__mail {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--mlett-radius-pill);
	font: 500 15px/1.3 'Roboto', sans-serif; text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}
.mlett-closed__tel { background: var(--mlett-navy); color: #fff !important; }
.mlett-closed__tel:hover, .mlett-closed__tel:focus-visible { background: #0B63C7; }
.mlett-closed__mail { border: 2px solid rgba(1, 40, 83, .18); color: var(--mlett-navy) !important; }
.mlett-closed__mail:hover, .mlett-closed__mail:focus-visible { border-color: var(--mlett-blue); }
.mlett-closed__tel svg, .mlett-closed__mail svg { width: 16px; height: 16px; }
.mlett-closed__autres { display: inline-block; margin-top: 8px; font-size: 15px; color: #0B63C7; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .mlett-closed__actions { flex-direction: column; } }

/* --- Liens sur fond marine (footer, bandeau CTA) --------------------------- */
/*
 * Le bleu AA #0B63C7 est calibre pour un fond BLANC : sur le marine du footer il
 * tombe a 2,53:1, et la regle de survol (qui passe au marine) rendait le lien
 * litteralement invisible (1:1). Sur fond sombre il faut des valeurs claires.
 */
footer .elementor-widget-text-editor a,
footer .elementor-icon-list-text a,
footer a:not(.elementor-button):not(.elementor-social-icon),
.mlett-cta .elementor-widget-text-editor a {
	color: #9FD2F5;                 /* 8,1:1 sur #012853 */
	text-decoration-color: rgba(159, 210, 245, .5);
}
footer .elementor-widget-text-editor a:hover,
footer .elementor-icon-list-text a:hover,
footer a:not(.elementor-button):not(.elementor-social-icon):hover,
footer a:not(.elementor-button):not(.elementor-social-icon):focus-visible,
.mlett-cta .elementor-widget-text-editor a:hover {
	color: #fff;                    /* 14,7:1 */
	text-decoration-color: currentColor;
}

/*
 * Titre h1 des archives (shortcode [mlett_titre_archive]).
 * Le kit Elementor pose `.elementor-kit-5 h1 { color: #012853 }` — plus specifique que
 * `.mlett-archive-titre` seul, et charge apres le theme : le titre ressortait en marine
 * sur le fond marine, donc invisible. On passe par le conteneur pour reprendre la main.
 */
.mlett-archive-hero .mlett-archive-titre { margin: 0; color: #fff; font: 700 40px/1.15 'Comfortaa', sans-serif; }
@media (max-width: 767px) { .mlett-archive-hero .mlett-archive-titre { font-size: 30px; } }

/* --- Case de consentement des formulaires ---------------------------------- */
.elementor-field-type-acceptance .elementor-field-subgroup { margin-top: 4px; }
.elementor-field-type-acceptance .elementor-field-option { display: flex; align-items: flex-start; gap: 10px; }
.elementor-field-type-acceptance input[type="checkbox"] {
	flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: #0B63C7;
}
.elementor-field-type-acceptance label { font-size: 14px; line-height: 1.5; color: var(--mlett-text); }
.elementor-field-type-acceptance label a { color: var(--mlett-blue-aa); text-underline-offset: 2px; }
