/* ACPF: respect original Visen .btn-default geometry and 0.4s hover. */
.acpf-panel{max-width:650px;background:#f1f8fb;border-radius:24px;padding:clamp(22px,4vw,44px);margin:24px auto;color:#20376f;box-shadow:0 10px 35px rgba(32,55,111,.06);font-family:'Nunito Sans',sans-serif}.acpf-panel h2{font-family:Montserrat,sans-serif;font-size:clamp(22px,3vw,30px);margin:0 0 24px;color:#20376f}.acpf-panel p{margin:18px 0 0}.acpf-form{display:grid;gap:16px}.acpf-form label{display:grid;gap:6px;font-weight:700;font-size:14px;color:#20376f}.acpf-form input:not([type=file]),.acpf-form select,.acpf-form textarea{width:100%;box-sizing:border-box;border:1px solid #cfdfed;border-radius:12px;padding:12px 14px;background:#fff;color:#20376f;font:inherit}.acpf-form input:focus,.acpf-form textarea:focus,.acpf-form select:focus{outline:2px solid #3561a3;outline-offset:1px}.acpf-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.acpf-panel .btn-default.acpf-action,.acpf-menu-link.btn-default,.acpf-logout-form .btn-default{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:7px;width:max-content;max-width:100%;min-height:50px;padding:5px 5px 5px 24px;border:0;border-radius:100px;overflow:hidden;text-transform:none;text-decoration:none;font-size:16px;font-weight:600;line-height:1em;white-space:nowrap;background:var(--e-global-color-accent,#3561a3);color:#fff;cursor:pointer;transition:all .4s ease-in-out;isolation:isolate;z-index:0}.acpf-panel .btn-default.acpf-action:before,.acpf-menu-link.btn-default:before,.acpf-logout-form .btn-default:before{content:'';position:absolute;inset:0 0 0 auto;width:0;height:100%;background:var(--e-global-color-primary,#20376f);z-index:-1;transition:all .4s ease-in-out}.acpf-panel .btn-default.acpf-action:hover:before,.acpf-menu-link.btn-default:hover:before,.acpf-logout-form .btn-default:hover:before{right:auto;left:0;width:100%}.acpf-circle{width:40px;height:40px;border-radius:50%;background:var(--e-global-color-primary,#20376f);color:#fff;display:inline-grid;place-items:center;flex:0 0 40px;font-size:23px;line-height:1;transition:all .4s ease-in-out}.acpf-action:hover .acpf-circle,.acpf-menu-link:hover .acpf-circle,.acpf-logout-form button:hover .acpf-circle{background:#fff;color:#20376f}.acpf-avatar{width:40px;height:40px;object-fit:cover;border-radius:50%;display:inline-block;vertical-align:middle;flex-shrink:0}.acpf-avatar-empty{display:inline-grid;place-items:center;background:#ecf2fa;color:#20376f;font-weight:800;font-family:Montserrat,sans-serif}.acpf-menu-link .acpf-avatar{margin-left:7px}.acpf-menu-first{display:inline-block}.acpf-profile-head{display:flex;align-items:center;gap:16px;margin-bottom:22px}.acpf-profile-head h2{margin:0}.acpf-profile-head p{margin:4px 0 0}.acpf-profile-head .acpf-avatar{height:76px;width:76px}.acpf-muted-link{font-size:14px}.acpf-notice{padding:12px 16px;border-radius:12px;background:#e4effb;color:#20376f;margin:16px 0}.acpf-logout-form{display:inline-block;margin:0}.acpf-logout-form .acpf-orange,.acpf-on-member-page .acpf-dynamic-menu .acpf-menu-link{background:#f58220!important;color:#fff!important}.acpf-on-member-page .acpf-dynamic-menu .acpf-menu-link:before,.acpf-logout-form .acpf-orange:before{background:#20376f}.acpf-on-member-page .acpf-dynamic-menu .acpf-circle,.acpf-logout-form .acpf-orange .acpf-circle{background:#fff;color:#f58220}.acpf-on-member-page .acpf-dynamic-menu .acpf-menu-link:hover .acpf-circle,.acpf-logout-form .acpf-orange:hover .acpf-circle{background:#f58220;color:#fff}.acpf-dynamic-menu .acpf-menu-link{line-height:1!important}.acpf-files a{color:#20376f;text-decoration:underline}.acpf-form button{font-family:inherit}@media(max-width:991px){.acpf-panel .btn-default.acpf-action,.acpf-menu-link.btn-default,.acpf-logout-form .btn-default{padding-left:15px;min-height:46px}.acpf-circle,.acpf-menu-link .acpf-avatar{width:36px;height:36px;flex-basis:36px}}@media(max-width:560px){.acpf-panel{padding:22px 18px}.acpf-form{gap:13px}}

/* v0.1.2: adapt Elementor's EXISTING header anchor, including sticky/mobile clones. */
header a.acpf-elementor-header-button,
.elementor-location-header a.acpf-elementor-header-button,
[data-elementor-type="header"] a.acpf-elementor-header-button {
  position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:7px;
  padding:5px 5px 5px 24px;border-radius:100px;min-height:50px;
  overflow:hidden;isolation:isolate;line-height:1;font-size:16px;font-weight:600;
  text-decoration:none;transition:all .4s ease-in-out;white-space:nowrap;
}
a.acpf-elementor-header-button .acpf-header-first { position:relative;z-index:1; }
a.acpf-elementor-header-button .acpf-header-photo,
a.acpf-elementor-header-button .acpf-header-round {
  position:relative;z-index:1;flex:0 0 40px;display:inline-grid;place-items:center;
  width:40px;height:40px;border-radius:50%;margin-left:7px;
  transition:all .4s ease-in-out;object-fit:cover;
}
a.acpf-elementor-header-button .acpf-header-round { background:var(--e-global-color-primary,#20376f);color:#fff;font-size:22px; }
a.acpf-elementor-header-button .acpf-header-fallback { background:#eaf2fa;color:#20376f;font-weight:800; }
a.acpf-elementor-header-button:hover .acpf-header-round {background:#fff;color:#20376f;}
header a.acpf-elementor-header-logout,
.elementor-location-header a.acpf-elementor-header-logout,
[data-elementor-type="header"] a.acpf-elementor-header-logout {background:#f58220!important;color:#fff!important;}
a.acpf-elementor-header-logout .acpf-header-round {background:#fff;color:#f58220;}
a.acpf-elementor-header-logout:hover .acpf-header-round {background:#f58220;color:#fff;}
@media (max-width:991px){a.acpf-elementor-header-button .acpf-header-photo,a.acpf-elementor-header-button .acpf-header-round{width:36px;height:36px;flex-basis:36px}}

/* v0.1.3 - ElementsKit Creative Button: preserve original wrapper, hover and SVG. */
.elementor-widget-elementskit-creative-button.acpf-creative-member-widget .ekit_position_aware {
  border-radius:100px;
  transition: background-color .4s ease-in-out, color .4s ease-in-out;
}
.elementor-widget-elementskit-creative-button.acpf-creative-has-avatar .ekit_position_aware svg { display:none!important; }
.elementor-widget-elementskit-creative-button .acpf-creative-avatar {
  display:inline-flex;width:40px;height:40px;min-width:40px;border-radius:50%;
  object-fit:cover;align-items:center;justify-content:center;
  margin-left:10px;background:#eaf2fa;color:#20376f;font-weight:700;
  vertical-align:middle;overflow:hidden;
}
.elementor-widget-elementskit-creative-button.acpf-creative-logout .ekit_position_aware {
  background-color:#F58220!important;color:#fff!important;
}
.elementor-widget-elementskit-creative-button.acpf-creative-logout .ekit_position_aware svg {
  background-color:#fff!important;
}
.elementor-widget-elementskit-creative-button.acpf-creative-logout .ekit_position_aware svg path {
  fill:#F58220!important;
}
.elementor-widget-elementskit-creative-button .acpf-creative-label { display:inline; }
@media(max-width:991px){.elementor-widget-elementskit-creative-button .acpf-creative-avatar{width:36px;height:36px;min-width:36px}}

/* v0.1.5: restricted-page message keeps Visen/Elementor header, title and breadcrumbs. */
.acpf-restricted-notice{max-width:760px;margin:40px auto 60px;padding:clamp(28px,5vw,56px);border-radius:24px;background:#f1f8fb;color:#20376f;text-align:center;box-shadow:0 10px 35px rgba(32,55,111,.06);font-family:'Nunito Sans',sans-serif}
.acpf-restricted-notice h2{font-family:Montserrat,sans-serif;color:#20376f;font-size:clamp(22px,3vw,30px);margin:10px 0 12px}
.acpf-restricted-notice p{margin:0 auto 24px;max-width:470px;line-height:1.6}
.acpf-restricted-icon{font-size:30px;line-height:1.5}
.acpf-restricted-notice .acpf-restricted-button{display:inline-flex;align-items:center;justify-content:space-between;gap:9px;background:#3561a3;color:white;border-radius:100px;padding:5px 5px 5px 24px;text-decoration:none;min-height:50px;font-weight:600;transition:all .4s}
.acpf-restricted-notice .acpf-restricted-button:hover{background:#20376f;color:white}

/* v0.1.9: reserve space INSIDE the page content, not as a collapsing top margin.
   The Visen header is absolutely positioned. Never reposition it here. */
body.acpf-protected-guest .acpf-restricted-layout {
  display: flow-root;
  box-sizing: border-box;
  padding-top: clamp(165px, 14vw, 205px);
  padding-left: 16px;
  padding-right: 16px;
}
body.acpf-protected-guest .acpf-restricted-layout .acpf-restricted-notice {
  margin: 0 auto 60px;
}
@media(max-width:767px) {
  body.acpf-protected-guest .acpf-restricted-layout { padding-top: 135px; padding-left: 12px; padding-right: 12px; }
  body.acpf-protected-guest .acpf-restricted-layout .acpf-restricted-notice { margin-bottom: 36px; }
}

/* v0.2.0 - Situation DES / pièces justificatives */
.acpf-form .acpf-eligibility{border:0;padding:0;margin:8px 0 14px;min-width:0}
.acpf-eligibility legend{font-weight:700;color:#20376f;margin-bottom:12px}
.acpf-form .acpf-radio,.acpf-form .acpf-consent{display:flex;align-items:flex-start;gap:10px;margin:12px 0;cursor:pointer;line-height:1.5}
.acpf-form .acpf-radio input,.acpf-form .acpf-consent input{width:18px;height:18px;flex:0 0 auto;margin:4px 0 0;accent-color:#3561a3}
.acpf-eligibility-documents{background:#f1f8fb;border-radius:16px;padding:18px;margin:8px 0 20px}
.acpf-eligibility-documents[hidden]{display:none!important}
.acpf-eligibility-documents p{margin:0 0 12px}
.acpf-eligibility-documents input[type=file]{width:100%;padding:10px;border:1px dashed #90a9c4;border-radius:10px;background:white}

.acpf-form .acpf-radio input[type=radio],.acpf-form .acpf-consent input[type=checkbox]{width:18px;height:18px;padding:0;border-radius:50%;background:initial}
.acpf-form .acpf-consent input[type=checkbox]{border-radius:4px}

/* v0.2.1 - Single-page login / application, preserving the site's card styling */
.acpf-auth-view[hidden]{display:none!important}
.acpf-auth-toggle-text{margin-top:24px!important}
.acpf-auth-toggle-text a{color:#20376f;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.acpf-auth-toggle-text a:hover{color:#3561a3}
.acpf-auth-view h2:focus{outline:none}

/* v0.2.2 – ACPF organic pebble styling, scoped to the member card only.
   Do not change the absolute Visen site header or protected-page layout. */
.acpf-auth-panel{
  position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(154deg,#edf6fc 0%,#f5f9fc 58%,#ffffff 100%);
  border:1px solid rgba(53,97,163,.09);
}
.acpf-auth-panel::before{
  content:"";position:absolute;left:-78px;top:-105px;z-index:-1;
  width:260px;height:214px;
  border-radius:58% 42% 57% 43% / 43% 59% 41% 57%;
  transform:rotate(-18deg);
  background:linear-gradient(135deg,#b9e6eb 0%,#d3e9f8 75%,#c8d9f3 100%);
  opacity:.85;pointer-events:none;
}
.acpf-auth-panel .acpf-auth-view h2{position:relative;z-index:1;padding-top:30px;}
.acpf-auth-panel .acpf-eligibility{
  border-radius:18px;background:rgba(255,255,255,.6);
  padding:16px 18px;margin:10px 0 14px;
}
.acpf-auth-panel .acpf-eligibility-documents{
  border:1px solid #d9e7f3;background:#eaf4fa;
}
.acpf-doc-retention{
  margin:14px 0 0!important;padding:11px 14px;
  border-left:3px solid #3561a3;border-radius:0 10px 10px 0;
  background:rgba(255,255,255,.77);color:#20376f;
  font-size:13px;line-height:1.55;
}
@media(max-width:560px){
  .acpf-auth-panel::before{width:200px;height:175px;left:-65px;top:-85px;}
  .acpf-auth-panel .acpf-auth-view h2{padding-top:24px;}
}

/* v0.2.3 - ACPF password creation and recovery, same Elementor card */
.acpf-auth-panel .acpf-password-hint{color:#526780;font-size:13px;margin:0 0 14px}
.acpf-auth-panel .acpf-auth-forgot p,.acpf-auth-panel .acpf-auth-reset p{line-height:1.6}
