 /*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/


html  {
	cursor: default;
}

.hidden {
	display: none;
}

.no-b-marge {
	margin-bottom: 0 !important;
}

.margin-t {
	margin: 15px 0 0 0 !important;
}

.margin-b {
	margin: 0 0 15px 0 !important;
}

.margin-tb {
	margin: 15px 0 15px 0 !important;
}

.margin-z {
	margin: 0 !important;
}

.bkg-green-light {
	background-color: #f3fbf7;
}

header .ast-builder-grid-row {
	padding: 0 40px;
}

p.um-notice.success {
	border: 1px solid #cdebd9;
	color: #1f7a50;
	border-radius: 5px;
	font-size: 14px;
	line-height: 1.5;
	background: #edf9f3 !important;
}

:root :where(.is-layout-flex) {
	gap: 10px !important;
}

.is-style-outline .wp-block-button__link:focus {
	color: #343434 !important;
}

.ff-default .ff-el-form-control:focus {
	border: 1px solid #c7a46a !important;
}

.title-divider {
	display:flex;
	align-items:center;
	justify-content:center;
	gap:14px;
	margin: 20px auto 30px auto !important;
	margin-bottom: 0;
}

.title-divider .line1 {
	width:140px;
	height:1px;
	background:linear-gradient(90deg,rgba(199,164,106,0),rgba(199,164,106,0.8),rgba(199,164,106,1),rgba(199,164,106,1),rgba(199,164,106,1));
}

.title-divider .line2 {
	width:140px;
	height:1px;
	background:linear-gradient(90deg,rgba(199,164,106,1),rgba(199,164,106,1),rgba(199,164,106,1),rgba(199,164,106,0.8),rgba(199,164,106,0));
}

.title-divider .dot {
	width:6px;
	height:6px;
	background:#c7a46a;
	border-radius:50%;
}

header .ast-builder-menu-1 .menu-item > .menu-link {
  color: #343434;
}

header .ast-header-html-1 a.sa-account-link {
	color: #ffffff;
	background-color: #3fc095;
	border: 1px solid #3fc095;
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 14px;
}

header .site-header-primary-section-right .ast-custom-button-link div {
	border: 1px solid #3fc095;
	padding: 12px 25px !important;
	border-radius: 5px;
	font-size: 14px;
}

header .ast-header-html-1 a.sa-account-link:hover {
	color: #3fc095;
	background-color: transparent;
}

header .ast-header-button-1 a.sa-logout-link {
	color: #343434;
	border: 1px solid #343434;
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 14px;
}

header .ast-header-button-1 a.sa-logout-link:hover {
	color: #ffffff;
	background-color: #343434;
}

.siteauteur-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.siteauteur-lightbox.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.siteauteur-lightbox__inner {
    position: relative;
    max-width: min(96vw, 1800px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.96);
    transition: transform 0.28s ease;
}

.siteauteur-lightbox.is-active .siteauteur-lightbox__inner {
    transform: scale(1);
}

.siteauteur-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    background: #111;
}

.siteauteur-lightbox__close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.siteauteur-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.siteauteur-lightbox__hint {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

body.siteauteur-lightbox-open {
    overflow: hidden;
}

.ast-footer-copyright {
	font-size: 14px;
}

/* Animation douce */
#content,
#colophon,
#ast-scroll-top {
    transition: filter 0.25s ease, opacity 0.25s ease;
}

/* Floute uniquement le contenu derrière le menu */
body.mobile-menu-open #content,
body.mobile-menu-open #colophon,
body.mobile-menu-open #ast-scroll-top {
    filter: blur(6px);
}

/* Optionnel : diminue légèrement le fond */
body.mobile-menu-open #content,
body.mobile-menu-open #colophon {
    opacity: 0.65;
}

/* Le header mobile et le menu restent nets et au-dessus */
#ast-mobile-header,
.ast-mobile-header-content,
#ast-mobile-site-navigation,
.ast-builder-menu-mobile,
.ast-header-html,
.ast-header-button-1 {
    position: relative;
    z-index: 9999;
    filter: none !important;
}

footer.site-footer .footer-container .footer-col {
	width: 25%;
}

footer.site-footer .footer-container .footer-brand h3 {
	font-size: 18px;
	margin-bottom: 15px;
	color: #1E293B;
}

footer.site-footer .footer-container .footer-brand p {
	font-size: 14px;
	color: #1E293B;
}


footer.site-footer .footer-container .footer-nav {
	margin-left: 70px;
}

footer.site-footer .footer-container .footer-col h4 {
	font-size: 16px;
	text-decoration: underline;
	margin-bottom: 15px;
	color: #1E293B;
}

footer.site-footer .footer-container .footer-col ul {
	margin: 0;
}

footer.site-footer .footer-container .footer-col ul li {
	list-style-type: none;
}

footer.site-footer .footer-container .footer-col ul li a {
	color: #1E293B;
	font-size: 14px;
}

footer.site-footer .footer-container .footer-col ul li a:hover {
	color: #3fc095;
	text-decoration: underline;
}

footer.site-footer .site-below-footer-wrap {
	background-color: #f9f9f9;
}

footer.site-footer .footer-cta a {
	border-color: #3fc095;
	background-color: #3fc095;
	color: #fff;
	font-size: 14px;
	padding-top: 10px;
	padding-right: 30px;
	padding-bottom: 10px;
	padding-left: 30px;
	border-radius: 5px;
}

footer.site-footer .footer-cta a:hover {
	border-color: #343434;
	background-color: #343434;
}

/* Popup contact créée en JS */
.contact-popup-dynamic {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
}

.contact-popup-dynamic.is-open {
	display: block;
}

.contact-popup-dynamic .contact-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
	backdrop-filter: blur(2px);
}

.contact-popup-dynamic .contact-popup-box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 600px);
	max-height: 90vh;
	overflow-y: auto;
	color: #fff;
	border: 1px solid rgba(199, 164, 106, 0.35);
	padding: 30px 50px;
	background: #ffffff;
  	box-shadow: inset 0 0 120px rgba(0,0,0,0.4);
}

.contact-popup-dynamic .ff-el-form-control, 
.contact-popup-dynamic input[type="text"], 
.contact-popup-dynamic input[type="email"], 
.contact-popup-dynamic textarea {
	font-size: 12px;
	height: 35px;
}

/* Bouton fermeture */
.contact-popup-dynamic .contact-popup-close {
	position: absolute;
	top: 0;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #c7a46a;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* Titre */
.contact-popup-dynamic .contact-popup-title {
	margin: 0 0 18px;
	text-align: center;
	color: #c7a46a;
	font-size: 24px;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Empêcher le scroll de la page */
body.contact-popup-open {
	overflow: hidden;
}

/* Le formulaire d'origine est hidden : on le force visible quand il est dans la popup */
.contact-popup-dynamic #contact-form {
	display: block !important;
}

.contact-popup-dynamic #contact-form.hidden {
	display: block !important;
}

/* Ajustements Fluent Forms */
.contact-popup-dynamic .ff-el-form-control,
.contact-popup-dynamic input,
.contact-popup-dynamic textarea,
.contact-popup-dynamic select {
	width: 100%;
	box-sizing: border-box;
}

.contact-popup-dynamic .ff-el-form-control,
.contact-popup-dynamic input[type="text"],
.contact-popup-dynamic input[type="email"],
.contact-popup-dynamic textarea {
	background: #ffffff;
	color: #000 !important;
	border: 1px solid #c7a46a !important;
	border-radius: 5px;
	padding: 12px 14px;
}

.contact-popup-dynamic label {
	color: #c7a46a;
	font-weight: 401 !important;
}

.contact-popup-dynamic .ff-btn.ff-btn-submit,
.contact-popup-dynamic button[type="submit"] {
	background: #c7a46a !important;
	border: none;
	border-radius: 5px;
	padding: 5px 20px;
	cursor: pointer;
	font-size: 14px;
}

.contact-popup-dynamic .ff-btn.ff-btn-submit:hover,
.contact-popup-dynamic button[type="submit"]:hover {
	border: 1px solid #c7a46a;
	background: #fff !important;
	color: #c7a46a;
}

.contact-popup-dynamic .ff-message-success {
	color: #000;
	font-size: 14px;
}

.contact-popup-box.form-success .contact-popup-title {
    display: none;
}

.contact-popup-box.form-success .title-divider {
    display: none;
}

.contact-popup-box.form-success .ff-message-success {
    box-shadow: none;
    border: none;
}

/* Rendre le "Contact" du footer cliquable visuellement */
footer li,
.wp-block-column.col3 li {
	cursor: pointer;
}

.custom-link-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 6px;
}

.ff-el-is-error {
    border-color: #dc3232 !important;
}

.sa-address-autocomplete__item {
    color: #343434 !important;
    -webkit-text-fill-color: #343434 !important;
}

.sa-address-autocomplete__item:hover {
    background: #f3f7ff !important;
}

/* =========================
   PAGE REGISTER - USER CONNECTED
   ========================= */

.sa-logged-register {
    padding: 30px 0;
    background: #f7f7f7;
}

.sa-logged-register__hero {
    max-width: 980px;
    margin: 0 auto 42px;
    text-align: center;
}

.sa-logged-register__hero h1 {
    margin: 0 0 28px;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 301;
    color: #343434;
}

.sa-logged-register__maincta {
    min-width: 360px;
}

.sa-logged-register__grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.sa-logged-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 5px;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
}

.sa-logged-card__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 22px;
    color: #343434;
}

.sa-logged-card__icon .img-pencil {
	width: 50px;
}

.sa-logged-card__icon .img-book {
	width: 55px;
}

.sa-logged-card__icon .img-money {
	width: 65px;
}

.sa-logged-card__icon .img-enveloppe {
	width: 50px;
}

.sa-logged-card h3 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #343434;
}

.sa-logged-card p {
    margin: 0 0 28px;
    min-height: 65px;
    font-size: 14px;
    line-height: 1.5;
    color: #44516b;
}

.sa-logged-register__bottom {
    margin-top: 42px;
    text-align: center;
}

/* Boutons */
.sa-btn {
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
}

.sa-btn--primary {
    background: #3fc095;
    color: #fff;
    border: 1px solid #3fc095;
    box-shadow: 0 6px 16px rgba(63, 192, 149, 0.22);
}

.sa-btn--primary:hover,
.sa-btn--primary:focus {
    background: #343434;
    border-color: #343434;
    color: #fff;
}

.sa-btn--secondary {
    background: #fff;
    color: #3fc095;
    border: 1px solid #3fc095;
}

.sa-btn--secondary:hover {
    border-color: #343434;
    color: #343434;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
}

/*Page inscription a un compte*/
.sa-password-rules {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #dcefe5;
  border-radius: 5px;
  background: #f3fbf7;
}

.sa-password-rules h4 {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #343434;
}

.sa-password-rules ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.sa-password-rules li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #4f5c76;
  opacity: 0.75;
  transition: opacity .2s ease, color .2s ease;
}

.sa-rule-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #b8c2d1;
  display: inline-flex;
}

.sa-rule-check svg {
  width: 100%;
  height: 100%;
}

.sa-strength-bars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-strength-bars span {
  display: block;
  width: 76px;
  height: 5px;
  border-radius: 999px;
  background: #cfd6df;
  transition: background-color .2s ease, opacity .2s ease;
}

.sa-strength-text {
  font-size: 13px;
  color: #343434;
}

#sa-password-strength-text.is-level-0, 
#sa-password-strength-text.is-level-1 {
  color: #ef7e7e;
}

.sa-strength-text strong {
  font-weight: 700;
}

/* =========================================
   BLOC FORCE MOT DE PASSE - INSCRIPTION
   ========================================= */

.sa-password-rules li.is-valid {
	opacity: 1;
	color: #343434;
}

.sa-password-rules li.is-valid .sa-rule-check {
	color: #3fc095;
}

.sa-password-rules {
	background: #edf9f3;
	border-color: #bfe5d0;
}

@media (max-width: 1199px) {
	.ast-header-break-point .main-navigation .stack-on-mobile li {
		height: 45px;
	}

	/* Menu au-dessus */
	.ast-mobile-header-content {
		position: relative;
		z-index: 999;
	}

	.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item:hover > .menu-link, 
	.ast-builder-menu-mobile .main-navigation .inline-on-mobile .menu-item:hover > .ast-menu-toggle {
		background-color: #f8f8f8;
		color: #334155;
	}

	footer.site-footer .footer-container .footer-brand {
		display: none;
	}

	footer.site-footer .footer-container {
		justify-content: space-around;
	}

	footer.site-footer .footer-container .footer-nav {
		margin-left: 0;
	}

	.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link {
		color: #fff;
		background: #3fc095;
	}
	
	.ast-mobile-header-content .ast-header-html-1 {
		background-color: #f8f8f8;
		padding: 0 !important; 
		height: 45px;
	}

	.ast-mobile-header-content .ast-header-html-1 .ast-header-html {
		width: 100%;
	}
	
	.ast-mobile-header-content .ast-header-html-1 a{
		width: 100%;
		display: block;
		padding: 15px 20px;
	}

	.ast-mobile-header-content .ast-header-button-1 {
		background-color: #3fc0951a;
		padding: 0 !important;
		height: 45px;
	}

	.ast-mobile-header-content .ast-header-button-1 .ast-builder-button-wrap {
		width: 100%;
	}

	.ast-mobile-header-content .ast-header-button-1 a.ast-custom-button-link {
		width: 100%;
		display: block;
		padding: 15px 20px;
	}

	.ast-header-button-1[data-section*="section-hb-button-"] .ast-builder-button-wrap .ast-custom-button {
		padding: 0;
	}

	.ast-mobile-header-content .ast-header-button-1 .ast-custom-button {
		padding: 0;
		background-color: transparent;
		color: #334155;
	}

}

@media (max-width: 767px) {
	.siteauteur-lightbox {
        padding: 16px;
    }

    .siteauteur-lightbox__close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .siteauteur-lightbox__inner {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .siteauteur-lightbox__img {
        max-width: 100%;
        max-height: 88vh;
        border-radius: 5px;
    }

    .siteauteur-lightbox__hint {
        display: none;
    }

	.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog {
		margin: 20px !important;
	}

	.contact-popup-dynamic .contact-popup-box {
		width: calc(100vw - 24px);
		max-height: 88vh;
		padding: 22px 14px 18px;
		border-radius: 5px;
	}

  	.contact-popup-dynamic .contact-popup-title {
    	font-size: 20px;
  	}

	.ast-mobile-header-wrap .ast-primary-header-bar {
		min-height: 60px;
	}
}

@media (min-width: 700px) {
	footer.site-footer .footer-container {
		display: flex;
		align-items: center;
	}
}

@media (max-width: 700px) {
	footer.site-footer .footer-container {
		flex-direction: column;
		align-items: center;
	}

	footer.site-footer .footer-container .footer-col {
		width: 100%;
		text-align: center !important;
		margin: 15px auto;
	}

	footer.site-footer .footer-container .footer-cta h4 {
		text-align: center !important;
		margin-bottom: 20px !important;
	}

	footer.site-footer .footer-container .footer-cta p {
		text-align: center !important;
	}
}

@media (max-width: 920px) {
  	header .ast-builder-grid-row {
		padding: 0;
	}  

    body.logged-in #ast-mobile-header,
    body.logged-in .ast-mobile-header-wrap,
    body.logged-in .ast-primary-header-bar,
    body.sa-user-logged-in #ast-mobile-header,
    body.sa-user-logged-in .ast-mobile-header-wrap,
    body.sa-user-logged-in .ast-primary-header-bar {
        position: relative !important;
        z-index: 999999 !important;
    }

    body.logged-in .ast-mobile-menu-trigger-minimal,
    body.logged-in .main-header-menu-toggle,
    body.logged-in .ast-button-wrap .menu-toggle,
    body.logged-in button.menu-toggle,
    body.sa-user-logged-in .ast-mobile-menu-trigger-minimal,
    body.sa-user-logged-in .main-header-menu-toggle,
    body.sa-user-logged-in .ast-button-wrap .menu-toggle,
    body.sa-user-logged-in button.menu-toggle {
        position: relative !important;
        z-index: 1000000 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    body.logged-in .ast-mobile-header-content,
    body.logged-in #ast-mobile-site-navigation,
    body.logged-in .ast-builder-menu-mobile,
    body.logged-in .ast-mobile-popup-drawer,
    body.sa-user-logged-in .ast-mobile-header-content,
    body.sa-user-logged-in #ast-mobile-site-navigation,
    body.sa-user-logged-in .ast-builder-menu-mobile,
    body.sa-user-logged-in .ast-mobile-popup-drawer {
        z-index: 999998 !important;
        pointer-events: auto !important;
    }

    body.mobile-menu-open .ast-mobile-header-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.mobile-menu-open .ast-mobile-popup-drawer.active,
    body.mobile-menu-open .ast-mobile-popup-drawer.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 999999 !important;
    }

    body.mobile-menu-open #content,
    body.mobile-menu-open #colophon,
    body.mobile-menu-open #ast-scroll-top {
        filter: blur(6px);
    }

	header .ast-header-html-1 a.sa-account-link {
		border-radius: 0;
	}

	header .ast-header-button-1 a.sa-logout-link {
		border: none;
		border-radius: 0;
	}

	.ast-mobile-header-content .ast-header-button-1 a.ast-custom-button-link {
		padding: 0 20px;
	}
}
