/*
 Theme Name:   A2 Notaires
 Theme URI:    https://a2notaires.fr/
 Description:  Custom Theme buidt for A2 Notaires
 Author:       Bikloz
 Author URI:   https://bikloz.com/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/*Sart Misc*/
body {
    overflow-x: hidden;
}
.display-none {
  display: none;
}
header.scrolling > .brxe-section {
padding:20px 0!important;	
}
header.scrolling {
	z-index:99
}
header.scrolling::after {
    content: "";
    position: absolute;
    left: -3vw;
    right: -3vw;
    bottom: 0px;
    height: 100%;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, .1);
    pointer-events: none;
    z-index: 9;
}
.brxe-text a,
label.gform-field-label a {
    border-bottom:1px dotted;
}
.brxe-text a:hover,
a.brxe-text-basic:hover,
label.gform-field-label a:hover {
    color: var(--primaire);
    border:0;
}

li.nolink > div > a {
  cursor:default;
}
.accordion-title i {
  font-size:20px;
  color:var(--primaire)
}
.accordion-title h3 {
  margin:0;
}
.accordion-title  {
  margin-bottom:10px;
}
/* End Misc */
/*Start Gravity Forms*/
h3.gsection_title {
    margin-bottom: 5px;
    font-size: 1.4em;
}
.brxe-shortcode .gform_wrapper .gfield select,
.brxe-shortcode .gform_wrapper .gfield input,
.brxe-shortcode .gform_wrapper .gfield textarea {
	box-shadow:none;
	border-radius:10px;
	border-color:#c9c9c9;
}
.brxe-shortcode .gform_wrapper .gfield select,
.brxe-shortcode .gform_wrapper .gfield input:not([type=radio]):not([type=checkbox]) {
	height:50px;
	line-height:50px;
}
.brxe-shortcode .gform_wrapper .ginput_container_date input {
	width:100%;
}
.brxe-shortcode .gform_wrapper input[type=button],
.brxe-shortcode .gform_wrapper input[type=submit], 
.gform-page-footer button {
	background:var(--primaire)!important;
    border-radius:0!important;
	font-weight:bold!important;
	/*letter-spacing:2px!important;
    text-transform:uppercase!important;*/
    padding: 1.5rem 2rem 1.5rem !important;
    font-size: var(--text-m)!important;
}
.brxe-shortcode .gform_wrapper input[type=button]:hover,
.brxe-shortcode .gform_wrapper input[type=submit]:hover,
.gform-page-footer button:hover {
    background:var(--primaire-sombre)!important;
}
.brxe-shortcode .gform_wrapper input[type=button].gform_previous_button {
    border:0!important;
    color: white!important;
    background:var(--bricks-color-nwdmsd)!important;	
    box-shadow: none !important;
}

.gform_required_legend {
    display:none;
}
/*End Gravity Forms*/

/* af_ : cartes domaines d'intervention (pages notaires) */
.brx-grid:has(> .brxe-block > a.brxe-text-link) {
    grid-template-rows: none !important;
    grid-auto-rows: minmax(10rem, 1fr);
}
.brx-grid > .brxe-block:has(> a.brxe-text-link) {
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
}
.brx-grid > .brxe-block:has(> a.brxe-text-link) > .brxe-text-basic {
    line-height: 1.2;
}
.brx-grid > .brxe-block:has(> a.brxe-text-link):hover,
.brx-grid > .brxe-block:has(> a.brxe-text-link):focus-within {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.5rem -1rem rgba(41, 38, 35, .18);
}
.brx-grid > .brxe-block > a.brxe-text-link {
    transition: color .3s ease;
}
.brx-grid > .brxe-block:has(> a.brxe-text-link):hover > a.brxe-text-link {
    color: var(--primaire-sombre) !important;
}
/* carte entierement cliquable */
.brx-grid > .brxe-block > a.brxe-text-link::after {
    content: "";
    position: absolute;
    inset: 0;
}
@media (prefers-reduced-motion: reduce) {
    .brx-grid > .brxe-block:has(> a.brxe-text-link) { transition: none; }
    .brx-grid > .brxe-block:has(> a.brxe-text-link):hover { transform: none; }
}

/* af_ : liste des diplomes (fiches notaires) - icone sobre (Ionicons ribbon) */
.af-liste-diplomes p {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}
.af-liste-diplomes p::before {
    content: "";
    flex: 0 0 1.05em;
    height: 1.05em;
    margin-top: .3em;
    background-color: var(--brun);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><g fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='28'><circle cx='256' cy='160' r='128'/><circle cx='256' cy='160' r='64'/><path d='M143.65 227.82L48 400l86.86-.42a16 16 0 0113.82 7.8L192 480l88.33-194.32'/><path d='M366.54 224L464 400l-86.86-.42a16 16 0 00-13.82 7.8L320 480l-64-140.8'/></g></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><g fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='28'><circle cx='256' cy='160' r='128'/><circle cx='256' cy='160' r='64'/><path d='M143.65 227.82L48 400l86.86-.42a16 16 0 0113.82 7.8L192 480l88.33-194.32'/><path d='M366.54 224L464 400l-86.86-.42a16 16 0 00-13.82 7.8L320 480l-64-140.8'/></g></svg>") no-repeat center / contain;
}

/* af_ : cartes domaines en une colonne sous 992px */
@media (max-width: 991px) {
    .brx-grid:has(> .brxe-block > a.brxe-text-link) {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
    }
    .brx-grid > .brxe-block:has(> a.brxe-text-link) {
        min-height: 7rem;
    }
}

/* af_ : blocs texte des pages expertises sur toute la largeur */
#af_content > .brxe-text {
    width: 100%;
}

/* af_ : ligne de diplome avec logo (label, reseau) */
.af-diplome-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.af-diplome-logo img {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(158, 150, 141, .35);
    border-radius: 14px;
    display: block;
}
