/* =========================================================
   CARRÉMENT SAINT-CHAMOND — MON COMPTE
   Template autonome, aucun override WooCommerce.
   ========================================================= */

.csc-account-page{min-height:72vh;background:linear-gradient(180deg,#f8fcff 0,#fff 340px)}
.csc-account-shell{padding:54px 0 94px}
.csc-account-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:54px;align-items:start}

/* SIDEBAR */
.csc-account-sidebar{position:sticky;top:104px}
.csc-account-sidebar__head{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;padding:0 4px 22px;border-bottom:1px solid var(--csc-border)}
.csc-account-avatar{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:var(--csc-primary-soft);color:var(--csc-primary);font-size:18px;font-weight:900}
.csc-account-sidebar__head>div:last-child{display:grid;gap:2px;min-width:0}
.csc-account-sidebar__head small{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;color:var(--csc-text-light)}
.csc-account-sidebar__head strong{font-size:14px;color:var(--csc-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csc-account-member-status{display:inline-flex;align-items:center;gap:6px;margin-top:3px;color:var(--csc-text-light);font-size:9px;font-weight:800}
.csc-account-member-status i{width:6px;height:6px;border-radius:50%;background:#9caab2}
.csc-account-member-status.is-active i{background:#31a86a;box-shadow:0 0 0 3px rgba(49,168,106,.12)}
.csc-account-member-status.is-expired i{background:#ca7850}

.csc-account-nav ul{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
.csc-account-nav li{margin:0}
.csc-account-nav a{min-height:46px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 9px;border-radius:13px;color:var(--csc-text-light);text-decoration:none;font-size:11px;font-weight:800;transition:background .18s ease,color .18s ease,transform .18s ease}
.csc-account-nav a:hover{background:#f4f9fc;color:var(--csc-primary);transform:translateX(2px)}
.csc-account-nav li.is-active a{background:var(--csc-primary-soft);color:var(--csc-primary)}
.csc-account-nav__icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#f5f8fa;color:var(--csc-primary)}
.csc-account-nav li.is-active .csc-account-nav__icon{background:#fff}
.csc-account-nav__icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.csc-account-nav__arrow{font-size:12px;opacity:.55}
.csc-account-nav li:last-child{margin-top:9px;padding-top:9px;border-top:1px solid var(--csc-border)}
.csc-account-nav li:last-child a{color:#a45c54}

/* MAIN */
.csc-account-main{min-width:0}
.csc-account-dashboard-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.48fr);gap:32px;align-items:end;padding-bottom:38px;border-bottom:1px solid var(--csc-border)}
.csc-account-dashboard-hero h1,.csc-account-content-head h1{margin:8px 0 12px;font-size:clamp(40px,4.2vw,64px);line-height:1;letter-spacing:-.055em;color:var(--csc-text)}
.csc-account-dashboard-hero p{max-width:650px;margin:0;color:var(--csc-text-light);font-size:14px;line-height:1.7}
.csc-account-member-summary{display:grid;gap:14px;padding:19px 0 3px;border-top:1px solid var(--csc-border);border-bottom:1px solid var(--csc-border)}
.csc-account-member-summary__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.csc-account-member-summary__top small{color:var(--csc-text-light);font-size:10px}
.csc-account-progress{display:grid;gap:7px}
.csc-account-progress span{font-size:10px;color:var(--csc-text-light)}
.csc-account-progress strong{color:var(--csc-text);font-size:13px}
.csc-account-progress>i{height:4px;border-radius:999px;background:#edf1f3;overflow:hidden}
.csc-account-progress>i b{display:block;height:100%;border-radius:inherit;background:var(--csc-primary)}
.csc-account-member-summary>a{color:var(--csc-primary);font-size:10px;font-weight:900;text-decoration:none}

.csc-account-access{padding-top:44px}
.csc-account-section-head{margin-bottom:20px}
.csc-account-section-head h2{margin:6px 0 0;font-size:31px;letter-spacing:-.04em;color:var(--csc-text)}
.csc-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.csc-account-tile{min-height:112px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px;border:1px solid var(--csc-border);border-radius:18px;background:#fff;color:var(--csc-text);text-decoration:none;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.csc-account-tile:hover{border-color:#bedceb;transform:translateY(-2px);box-shadow:0 12px 28px rgba(31,70,94,.07)}
.csc-account-tile__icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--csc-primary-soft);color:var(--csc-primary)}
.csc-account-tile__icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.csc-account-tile__copy{display:grid;gap:4px;min-width:0}
.csc-account-tile__copy strong{font-size:13px}
.csc-account-tile__copy small{color:var(--csc-text-light);font-size:10px;line-height:1.45}
.csc-account-tile__arrow{color:var(--csc-primary);font-size:17px}

.csc-account-join{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:30px;margin-top:52px;padding-top:34px;border-top:1px solid var(--csc-border)}
.csc-account-join h2{margin:6px 0 9px;font-size:28px;letter-spacing:-.04em}
.csc-account-join p{margin:0;max-width:700px;color:var(--csc-text-light);font-size:12px;line-height:1.7}

/* ENDPOINT */
.csc-account-content-head{padding-bottom:28px;border-bottom:1px solid var(--csc-border);margin-bottom:30px}
.csc-account-endpoint{min-width:0}
.csc-account-endpoint .woocommerce-message,
.csc-account-endpoint .woocommerce-info,
.csc-account-endpoint .woocommerce-error{border:0!important;border-radius:16px;background:#f5f9fb;color:var(--csc-text);box-shadow:none}
.csc-account-endpoint form .form-row label{font-size:10px;font-weight:900;color:var(--csc-text-light);text-transform:uppercase;letter-spacing:.06em}
.csc-account-endpoint input.input-text,
.csc-account-endpoint select,
.csc-account-endpoint textarea{min-height:50px;border:1px solid var(--csc-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;padding:10px 13px!important}
.csc-account-endpoint button.button,
.csc-account-endpoint a.button{border:0!important;border-radius:14px!important;background:var(--csc-primary)!important;color:#fff!important;min-height:44px;display:inline-flex!important;align-items:center;justify-content:center;padding:0 15px!important;font-weight:900!important}

/* LOGIN */
.csc-account-login{max-width:860px;margin:0 auto}
.csc-account-login>h1{margin:8px 0 12px;font-size:clamp(42px,5vw,68px);letter-spacing:-.055em;line-height:1}
.csc-account-login>p{max-width:650px;color:var(--csc-text-light);line-height:1.7}
.csc-account-login__woocommerce{margin-top:40px}
.csc-account-login__woocommerce #customer_login{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.csc-account-login__woocommerce form{border:0!important;padding:0!important;margin:0!important}
.csc-account-login__woocommerce h2{font-size:28px;letter-spacing:-.04em}

.csc-account-mobile-button,.csc-account-backdrop{display:none}

@media(max-width:980px){
  .csc-account-layout{grid-template-columns:220px minmax(0,1fr);gap:32px}
  .csc-account-dashboard-hero{grid-template-columns:1fr}
  .csc-account-member-summary{max-width:520px}
}

@media(max-width:760px){
  body.csc-account-nav-open{overflow:hidden}
  .csc-account-shell{padding:34px 0 94px}
  .csc-account-layout{display:block}

  .csc-account-sidebar{position:fixed;z-index:100002;top:0;right:0;bottom:0;left:auto;width:min(88vw,360px);padding:24px 18px 30px;background:#fff;overflow-y:auto;transform:translateX(104%);transition:transform .28s cubic-bezier(.2,.75,.25,1);box-shadow:-18px 0 50px rgba(20,45,62,.16)}
  .csc-account-sidebar.is-open{transform:translateX(0)}

  .csc-account-mobile-button{position:fixed;z-index:99998;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:160px;height:50px;padding:0 18px;border:0;border-radius:999px;background:var(--csc-primary);color:#fff;box-shadow:0 16px 36px rgba(40,107,154,.28);font-size:13px;font-weight:900;cursor:pointer}
  .csc-account-mobile-button span{width:19px;height:19px;display:grid;place-items:center}
  .csc-account-mobile-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}

  .csc-account-backdrop{position:fixed;z-index:100001;inset:0;display:block;border:0;background:rgba(18,36,48,.34);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .22s ease}
  .csc-account-backdrop.is-open{opacity:1;pointer-events:auto}
  .csc-account-backdrop[hidden]{display:none}

  .csc-account-dashboard-hero h1,.csc-account-content-head h1{font-size:43px}
  .csc-account-grid{grid-template-columns:1fr}
  .csc-account-join{grid-template-columns:1fr}
  .csc-account-join .csc-btn{justify-content:center}
  .csc-account-login__woocommerce #customer_login{grid-template-columns:1fr;gap:48px}
}

@media(prefers-reduced-motion:reduce){
  .csc-account-sidebar,.csc-account-backdrop,.csc-account-tile{transition:none!important}
}


/* =========================================================
   V2 — TYPO PLUS LISIBLE + MODULES CSC + FORMULAIRES
   ========================================================= */

.csc-account-nav a{font-size:13px;min-height:50px}
.csc-account-sidebar__head strong{font-size:16px}
.csc-account-member-status{font-size:11px}
.csc-account-dashboard-hero p,
.csc-account-join p,
.csc-account-tile__copy small{font-size:13px}
.csc-account-tile__copy strong{font-size:15px}
.csc-account-section-head h2{font-size:34px}

.csc-account-module__hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:end;
  padding-bottom:28px;
  margin-bottom:28px;
  border-bottom:1px solid var(--csc-border);
}
.csc-account-module__hero h2{margin:7px 0 10px;font-size:clamp(34px,3.8vw,52px);line-height:1.02;letter-spacing:-.045em}
.csc-account-module__hero p{max-width:760px;margin:0;color:var(--csc-text-light);font-size:15px;line-height:1.75}
.csc-account-profile-summary{min-width:220px;display:grid;gap:9px}
.csc-account-profile-summary>span{font-size:12px;color:var(--csc-text-light)}
.csc-account-profile-summary>span strong{font-size:18px;color:var(--csc-text)}
.csc-account-profile-summary>i{height:5px;border-radius:999px;background:#edf2f5;overflow:hidden}
.csc-account-profile-summary>i b{display:block;height:100%;background:var(--csc-primary);border-radius:inherit}
.csc-account-profile-summary>a{font-size:12px;font-weight:900;color:var(--csc-primary);text-decoration:none}

.csc-account-notice{margin-bottom:24px;padding:14px 16px;border-radius:14px;font-size:13px;font-weight:800}
.csc-account-notice.is-success{background:#eef9f3;color:#27744f}
.csc-account-notice.is-error{background:#fff2ef;color:#9a4b3d}

.csc-account-empty-state{padding:32px 0}
.csc-account-empty-state h3{margin:0 0 8px;font-size:25px;letter-spacing:-.03em}
.csc-account-empty-state p{max-width:650px;margin:0 0 18px;color:var(--csc-text-light);font-size:14px;line-height:1.7}

.csc-account-profile-nav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 0 22px}
.csc-account-profile-nav::-webkit-scrollbar{display:none}
.csc-account-profile-nav a{flex:0 0 auto;padding:9px 12px;border-radius:999px;background:#f5f9fb;color:var(--csc-text-light);text-decoration:none;font-size:12px;font-weight:800}
.csc-account-profile-nav a:hover{background:var(--csc-primary-soft);color:var(--csc-primary)}

/* Formulaire fiche — markup fonctionnel du plugin, style du thème */
.csc-account-profile-form .sycow-profile-section{
  margin:0;
  padding:0;
  border:0;
  border-bottom:1px solid var(--csc-border);
}
.csc-account-profile-form .sycow-profile-section>summary{
  list-style:none;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:22px 0;
  cursor:pointer;
}
.csc-account-profile-form .sycow-profile-section>summary::-webkit-details-marker{display:none}
.csc-account-profile-form .sycow-profile-section-number{
  width:40px;height:40px;border-radius:13px;
  display:grid;place-items:center;
  background:var(--csc-primary-soft);color:var(--csc-primary);
  font-size:12px;font-weight:900;
}
.csc-account-profile-form .sycow-profile-section summary strong{display:block;color:var(--csc-text);font-size:18px;letter-spacing:-.02em}
.csc-account-profile-form .sycow-profile-section summary small{display:block;margin-top:3px;color:var(--csc-text-light);font-size:12px;font-weight:500}
.csc-account-profile-form .sycow-profile-expand{color:var(--csc-primary);font-size:18px}
.csc-account-profile-form .sycow-profile-section[open]{padding-bottom:28px}
.csc-account-profile-form .sycow-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.csc-account-profile-form .sycow-field{display:grid;gap:7px;margin:0 0 18px}
.csc-account-profile-form .sycow-field>span,
.csc-account-profile-form .sycow-field>legend{font-size:12px;font-weight:900;color:var(--csc-text)}
.csc-account-profile-form .sycow-field-help{margin:-8px 0 20px;color:var(--csc-text-light);font-size:12px;line-height:1.6}
.csc-account-profile-form input[type="text"],
.csc-account-profile-form input[type="email"],
.csc-account-profile-form input[type="tel"],
.csc-account-profile-form input[type="url"],
.csc-account-profile-form input[type="date"],
.csc-account-profile-form input[type="time"],
.csc-account-profile-form select,
.csc-account-profile-form textarea{
  width:100%;
  min-height:52px;
  padding:11px 13px;
  border:1px solid var(--csc-border);
  border-radius:14px;
  background:#fff;
  color:var(--csc-text);
  font:inherit;
  font-size:14px;
  outline:0;
}
.csc-account-profile-form textarea{min-height:150px;resize:vertical}
.csc-account-profile-form input:focus,
.csc-account-profile-form select:focus,
.csc-account-profile-form textarea:focus{border-color:#abd4ea;box-shadow:0 0 0 4px rgba(74,147,200,.09)}

.csc-account-profile-form .sycow-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.csc-account-profile-form .sycow-check-grid label{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:#f7fafc;font-size:13px}
.csc-account-profile-form input[type="checkbox"]{width:17px;height:17px;accent-color:var(--csc-primary)}
.csc-account-profile-form .sycow-repeater-rows,
.csc-account-profile-form .sycow-closures-rows{display:grid;gap:10px}
.csc-account-profile-form .sycow-repeater-row,
.csc-account-profile-form .sycow-closure-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.csc-account-profile-form .sycow-closure-row{grid-template-columns:1fr 1fr minmax(180px,1.5fr) auto}
.csc-account-profile-form .sycow-closure-row label{display:grid;gap:6px;font-size:11px;font-weight:800}
.csc-account-profile-form .button{min-height:42px;padding:0 13px;border:1px solid var(--csc-border);border-radius:12px;background:#fff;color:var(--csc-text);font-weight:800;cursor:pointer}

.csc-account-profile-form .sycow-hours{display:grid;gap:12px}
.csc-account-profile-form .sycow-hours-day{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid #edf1f3}
.csc-account-profile-form .sycow-hours-day>strong{font-size:13px}
.csc-account-profile-form .sycow-hours-periods{display:grid;gap:8px}
.csc-account-profile-form .sycow-hours-period{display:grid;grid-template-columns:90px minmax(130px,1fr) 110px 20px 110px;align-items:center;gap:8px}
.csc-account-profile-form .sycow-hours-period-title{font-size:11px;color:var(--csc-text-light);font-weight:800}
.csc-account-profile-form .sycow-hours-period input,
.csc-account-profile-form .sycow-hours-period select{min-height:44px}

.csc-account-savebar{
  position:sticky;
  z-index:6;
  bottom:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:28px;
  padding:10px 10px 10px 16px;
  border:1px solid rgba(228,233,235,.95);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  box-shadow:0 16px 38px rgba(20,45,62,.12);
}
.csc-account-savebar>span{font-size:11px;color:var(--csc-text-light)}

/* Actualités — ancien markup fonctionnel, nouveau style */
.csc-account-news-editor .sycow-news-app{font-size:14px}
.csc-account-news-editor .sycow-news-intro{color:var(--csc-text-light);font-size:15px;line-height:1.7}
.csc-account-news-editor .sycow-news-notice{padding:14px 16px;border-radius:14px;background:#f5f9fb;font-size:13px}
.csc-account-news-editor .sycow-news-notice.is-success{background:#eef9f3;color:#27744f}
.csc-account-news-editor .sycow-news-notice.is-error{background:#fff2ef;color:#9a4b3d}
.csc-account-news-editor .sycow-news-workflow{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}
.csc-account-news-editor .sycow-news-workflow span{padding:8px 11px;border-radius:999px;background:var(--csc-primary-soft);color:var(--csc-primary);font-size:11px;font-weight:900}
.csc-account-news-editor .sycow-news-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:28px;align-items:start}
.csc-account-news-editor .sycow-news-step{padding:24px 0;border-bottom:1px solid var(--csc-border)}
.csc-account-news-editor .sycow-news-step-head{display:grid;grid-template-columns:40px minmax(0,1fr);gap:13px;margin-bottom:16px}
.csc-account-news-editor .sycow-news-step-num{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--csc-primary-soft);color:var(--csc-primary);font-size:11px;font-weight:900}
.csc-account-news-editor .sycow-news-step h3{margin:0 0 3px;font-size:19px}
.csc-account-news-editor .sycow-news-step p{margin:0;color:var(--csc-text-light);font-size:12px;line-height:1.55}
.csc-account-news-editor .sycow-news-step>label{display:block;margin:10px 0 7px;font-size:12px;font-weight:900}
.csc-account-news-editor input[type="text"],
.csc-account-news-editor select,
.csc-account-news-editor textarea{
  width:100%;min-height:52px;padding:11px 13px;border:1px solid var(--csc-border);
  border-radius:14px;background:#fff;color:var(--csc-text);font:inherit;font-size:14px;outline:0
}
.csc-account-news-editor textarea{min-height:160px;resize:vertical}
.csc-account-news-editor .sycow-news-counter,
.csc-account-news-editor .sycow-news-help{margin-top:7px!important;font-size:11px!important}
.csc-account-news-editor .sycow-news-upload{display:grid!important;justify-items:start;gap:5px;padding:20px!important;border:1px dashed #b8d9eb;border-radius:16px;background:#f8fbfd;cursor:pointer}
.csc-account-news-editor .sycow-news-file{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important}
.csc-account-news-editor .sycow-news-captcha-numbers{display:inline-flex;margin:10px 0;padding:10px 14px;border-radius:12px;background:var(--csc-primary-soft);color:var(--csc-primary);font-size:19px;font-weight:900;letter-spacing:.16em}
.csc-account-news-editor .sycow-news-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px}
.csc-account-news-editor .sycow-news-submit-bar>span{font-size:11px;color:var(--csc-text-light)}
.csc-account-news-editor .sycow-news-preview-btn,
.csc-account-news-editor .sycow-news-confirm{min-height:46px;border:0;border-radius:14px;padding:0 17px;background:var(--csc-primary);color:#fff;font-weight:900;cursor:pointer}
.csc-account-news-editor .sycow-news-social-sticky{position:sticky;top:110px}
.csc-account-news-editor .sycow-news-social-preview{padding:16px;border:1px solid var(--csc-border);border-radius:18px;background:#fff}
.csc-account-news-editor .sycow-news-social-photo{min-height:220px;margin:14px -16px;background:#f4f8fa;display:grid;place-items:center;color:var(--csc-text-light);font-size:12px;overflow:hidden}
.csc-account-news-editor .sycow-news-social-photo img{width:100%;height:100%;max-height:340px;object-fit:cover}
.csc-account-news-editor .sycow-news-history{margin-top:44px;padding-top:32px;border-top:1px solid var(--csc-border)}
.csc-account-news-editor .sycow-news-history h3{font-size:26px;margin:0 0 5px}
.csc-account-news-editor .sycow-news-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.csc-account-news-editor .sycow-news-history-card{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:10px;border:1px solid var(--csc-border);border-radius:16px}
.csc-account-news-editor .sycow-news-history-cover img{width:90px;height:90px;object-fit:cover;border-radius:12px}
.csc-account-news-editor .sycow-news-history-copy h4{margin:4px 0 8px;font-size:14px}
.csc-account-news-editor .sycow-news-history-copy span,
.csc-account-news-editor .sycow-news-history-copy a{font-size:10px;color:var(--csc-text-light)}

/* Infos adhérents */
.csc-member-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.csc-member-info-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;padding:12px;border:1px solid var(--csc-border);border-radius:17px;color:var(--csc-text);text-decoration:none}
.csc-member-info-card__image img{width:100px;height:90px;object-fit:cover;border-radius:12px}
.csc-member-info-card>span:last-child{display:grid;align-content:center;gap:5px}
.csc-member-info-card small{font-size:10px;color:var(--csc-text-light)}
.csc-member-info-card strong{font-size:15px}
.csc-member-info-card em{font-style:normal;font-size:11px;font-weight:900;color:var(--csc-primary)}
.csc-member-info-single h3{font-size:32px;letter-spacing:-.04em}
.csc-member-info-single__image img{width:100%;max-height:420px;object-fit:cover;border-radius:20px}
.csc-account-prose{font-size:15px;line-height:1.8;color:var(--csc-text-light)}

/* Stats */
.csc-stats-periods{display:flex;gap:8px;overflow-x:auto;margin-bottom:22px}
.csc-stats-periods a{flex:0 0 auto;padding:9px 12px;border-radius:999px;background:#f5f9fb;color:var(--csc-text-light);text-decoration:none;font-size:11px;font-weight:900}
.csc-stats-periods a.is-active{background:var(--csc-primary-soft);color:var(--csc-primary)}
.csc-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.csc-stat-card{display:grid;gap:4px;padding:18px;border:1px solid var(--csc-border);border-radius:17px}
.csc-stat-card small{font-size:10px;color:var(--csc-text-light);text-transform:uppercase;letter-spacing:.07em}
.csc-stat-card strong{font-size:34px;line-height:1;color:var(--csc-primary)}
.csc-stat-card span{font-size:12px;font-weight:800}

.csc-account-membership-date{display:grid;gap:3px;text-align:right}
.csc-account-membership-date small{font-size:10px;color:var(--csc-text-light);text-transform:uppercase}
.csc-account-membership-date strong{font-size:18px}
.csc-account-inline-actions{display:flex;gap:10px;flex-wrap:wrap}

/* WooCommerce natif : compte, adresses, commandes, paiement */
.csc-account-endpoint{font-size:14px}
.csc-account-endpoint h2,
.csc-account-endpoint h3{letter-spacing:-.03em}
.csc-account-endpoint h2{font-size:28px}
.csc-account-endpoint h3{font-size:21px}
.csc-account-endpoint p,
.csc-account-endpoint address{font-size:14px;line-height:1.7}
.csc-account-endpoint .woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.csc-account-endpoint .woocommerce-Address{float:none!important;width:auto!important;padding:18px;border:1px solid var(--csc-border);border-radius:17px}
.csc-account-endpoint table.shop_table{border:1px solid var(--csc-border)!important;border-radius:16px!important;overflow:hidden;font-size:13px}
.csc-account-endpoint table.shop_table th{font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.csc-account-endpoint table.shop_table td,
.csc-account-endpoint table.shop_table th{padding:13px!important}

@media(max-width:900px){
  .csc-account-news-editor .sycow-news-columns{grid-template-columns:1fr}
  .csc-account-news-editor .sycow-news-social-sticky{position:static}
  .csc-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  .csc-account-module__hero{grid-template-columns:1fr}
  .csc-account-profile-summary{min-width:0}
  .csc-account-profile-form .sycow-profile-grid{grid-template-columns:1fr}
  .csc-account-profile-form .sycow-check-grid{grid-template-columns:1fr}
  .csc-account-profile-form .sycow-hours-day{grid-template-columns:1fr}
  .csc-account-profile-form .sycow-hours-period{grid-template-columns:1fr 1fr}
  .csc-account-profile-form .sycow-hours-period-title{grid-column:1/-1}
  .csc-account-profile-form .sycow-hours-period>span:not(.sycow-hours-period-title){display:none}
  .csc-account-profile-form .sycow-closure-row{grid-template-columns:1fr}
  .csc-account-profile-form .sycow-repeater-row{grid-template-columns:1fr}
  .csc-account-savebar{bottom:74px;align-items:stretch;flex-direction:column}
  .csc-account-savebar .csc-btn{width:100%;justify-content:center}
  .csc-account-news-editor .sycow-news-history-grid,
  .csc-member-info-grid,
  .csc-stats-grid,
  .csc-account-endpoint .woocommerce-Addresses{grid-template-columns:1fr}
}


/* V3 — lisibilité générale */
.csc-account-page{
  font-size:15px;
}
.csc-account-nav a{
  font-size:14px;
}
.csc-account-tile__copy strong{
  font-size:16px;
}
.csc-account-tile__copy small{
  font-size:13px;
  line-height:1.55;
}
.csc-account-endpoint,
.csc-account-module__hero p,
.csc-account-profile-form input,
.csc-account-profile-form select,
.csc-account-profile-form textarea,
.csc-account-news-editor input,
.csc-account-news-editor select,
.csc-account-news-editor textarea{
  font-size:15px;
}
.csc-account-profile-form .sycow-field>span,
.csc-account-profile-form .sycow-field>legend,
.csc-account-news-editor .sycow-news-step>label{
  font-size:13px;
}


/* =========================================================
   V4 — MÉDIAS DE LA FICHE : PLUS VISUELS, SUPPRESSION CLAIRE
   ========================================================= */

/* Bloc média */
.csc-account-profile-form .sycow-media-field{
  margin:0 0 28px;
  padding:18px;
  border:1px solid var(--csc-border);
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fbfdfe);
}

.csc-account-profile-form .sycow-media-label{
  display:block;
  margin-bottom:4px;
  color:var(--csc-text);
  font-size:15px;
  font-weight:900;
  letter-spacing:-.01em;
}

.csc-account-profile-form .sycow-media-field>.sycow-field-help{
  margin:0 0 14px;
}

/* Logo + couverture existants */
.csc-account-profile-form .sycow-media-current{
  position:relative;
  display:block;
  margin-bottom:12px;
}

.csc-account-profile-form .sycow-media-preview{
  position:relative;
  width:100%;
  min-height:170px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:17px;
  background:#f2f7fa;
  border:1px solid #e3edf2;
}

.csc-account-profile-form .sycow-media-field:not(.sycow-gallery-field) .sycow-media-preview{
  max-width:540px;
}

.csc-account-profile-form .sycow-media-preview img{
  width:100%;
  height:220px;
  display:block;
  object-fit:cover;
}

.csc-account-profile-form .sycow-media-preview>span{
  color:var(--csc-text-light);
  font-size:13px;
  font-weight:800;
}

/* Croix rouge sur logo / couverture */
.csc-account-profile-form .sycow-remove-check--image{
  position:absolute;
  z-index:3;
  top:10px;
  right:10px;
  margin:0;
  cursor:pointer;
}

.csc-account-profile-form .sycow-remove-check--image input,
.csc-account-profile-form .sycow-remove-check--gallery input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.csc-account-profile-form .sycow-remove-check--image>span,
.csc-account-profile-form .sycow-remove-check--gallery>span{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:2px solid #fff;
  background:#d95f55;
  color:transparent;
  font-size:0;
  box-shadow:0 8px 18px rgba(117,39,34,.22);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}

.csc-account-profile-form .sycow-remove-check--image>span::before,
.csc-account-profile-form .sycow-remove-check--gallery>span::before{
  content:"×";
  color:#fff;
  font-size:24px;
  font-weight:500;
  line-height:1;
  transform:translateY(-1px);
}

.csc-account-profile-form .sycow-remove-check--image:hover>span,
.csc-account-profile-form .sycow-remove-check--gallery:hover>span{
  transform:scale(1.07);
  background:#c84a40;
  box-shadow:0 10px 22px rgba(117,39,34,.3);
}

.csc-account-profile-form .sycow-media-current.is-marked-for-removal .sycow-media-preview{
  opacity:.42;
  filter:grayscale(.35);
}

.csc-account-profile-form .sycow-media-current.is-marked-for-removal::after{
  content:"Cette image sera supprimée";
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:2;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(153,55,48,.92);
  color:#fff;
  font-size:10px;
  font-weight:900;
}

/* Choix fichier */
.csc-account-profile-form .sycow-media-field>input[type="file"]{
  width:100%;
  max-width:540px;
  padding:9px;
  border:1px dashed #b8d8e9;
  border-radius:14px;
  background:#f8fbfd;
  color:var(--csc-text-light);
  font-size:12px;
}

.csc-account-profile-form .sycow-media-field>input[type="file"]::file-selector-button{
  min-height:38px;
  margin-right:10px;
  padding:0 13px;
  border:0;
  border-radius:10px;
  background:var(--csc-primary-soft);
  color:var(--csc-primary);
  font-weight:900;
  cursor:pointer;
}

/* Galerie : vraie grille */
.csc-account-profile-form .sycow-gallery-preview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:12px 0 15px;
}

.csc-account-profile-form .sycow-gallery-item{
  position:relative;
  min-width:0;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:16px;
  background:#edf4f7;
  border:1px solid #e1ebf0;
  box-shadow:0 7px 18px rgba(34,77,101,.06);
  transition:transform .18s ease,opacity .18s ease;
}

.csc-account-profile-form .sycow-gallery-item:hover{
  transform:translateY(-2px);
}

.csc-account-profile-form .sycow-gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.csc-account-profile-form .sycow-remove-check--gallery{
  position:absolute;
  z-index:3;
  top:8px;
  right:8px;
  margin:0;
  cursor:pointer;
}

.csc-account-profile-form .sycow-remove-check--gallery>span{
  width:32px;
  height:32px;
}

.csc-account-profile-form .sycow-remove-check--gallery>span::before{
  font-size:21px;
}

.csc-account-profile-form .sycow-gallery-item.is-marked-for-removal{
  opacity:.46;
  transform:scale(.98);
}

.csc-account-profile-form .sycow-gallery-item.is-marked-for-removal::after{
  content:"Suppression";
  position:absolute;
  left:8px;
  bottom:8px;
  z-index:2;
  padding:5px 7px;
  border-radius:999px;
  background:rgba(153,55,48,.93);
  color:#fff;
  font-size:9px;
  font-weight:900;
}

.csc-account-profile-form .sycow-gallery-empty{
  grid-column:1/-1;
  min-height:120px;
  display:grid;
  place-items:center;
  border:1px dashed #c8dce7;
  border-radius:16px;
  color:var(--csc-text-light);
  background:#f8fbfd;
  font-size:13px;
  font-weight:800;
}

/* Aperçu temporaire des nouvelles photos choisies */
.csc-account-profile-form .csc-gallery-pending{
  margin:12px 0 2px;
}

.csc-account-profile-form .csc-gallery-pending__title{
  display:block;
  margin-bottom:8px;
  color:var(--csc-text-light);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.csc-account-profile-form .csc-gallery-pending__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.csc-account-profile-form .csc-gallery-pending__item{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:14px;
  border:2px dashed #b6d9eb;
  background:var(--csc-primary-soft);
}

.csc-account-profile-form .csc-gallery-pending__item img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.csc-account-profile-form .csc-gallery-pending__item span{
  position:absolute;
  left:7px;
  bottom:7px;
  padding:4px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.93);
  color:var(--csc-primary);
  font-size:8px;
  font-weight:900;
}

/* Photo de couverture plus panoramique, logo plus compact */
.csc-account-profile-form .sycow-media-field:nth-of-type(1) .sycow-media-preview img{
  object-fit:contain;
  background:#fff;
}

@media(max-width:900px){
  .csc-account-profile-form .sycow-gallery-preview,
  .csc-account-profile-form .csc-gallery-pending__grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .csc-account-profile-form .sycow-media-field{
    padding:14px;
    border-radius:17px;
  }

  .csc-account-profile-form .sycow-gallery-preview,
  .csc-account-profile-form .csc-gallery-pending__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .csc-account-profile-form .sycow-media-preview img{
    height:190px;
  }

  .csc-account-profile-form .sycow-remove-check--image>span{
    width:34px;
    height:34px;
  }
}


/* =========================================================
   V5 — PLUS DE LISIBILITÉ + APERÇU ACTU STICKY DESKTOP
   ========================================================= */

.csc-account-page{font-size:16px}

.csc-account-dashboard-hero p,
.csc-account-module__hero p,
.csc-account-endpoint,
.csc-account-profile-form input,
.csc-account-profile-form select,
.csc-account-profile-form textarea,
.csc-account-news-editor input,
.csc-account-news-editor select,
.csc-account-news-editor textarea{
  font-size:16px;
}

.csc-account-nav a{
  font-size:14px;
  min-height:52px;
}

.csc-account-nav__icon{
  width:30px;
  height:30px;
}

.csc-account-nav__icon svg{
  width:17px;
  height:17px;
}

.csc-account-tile{
  min-height:122px;
}

.csc-account-tile__copy strong{
  font-size:17px;
}

.csc-account-tile__copy small{
  font-size:14px;
  line-height:1.55;
}

.csc-account-profile-form .sycow-profile-section summary strong{
  font-size:20px;
}

.csc-account-profile-form .sycow-profile-section summary small,
.csc-account-profile-form .sycow-field-help,
.csc-account-profile-form .sycow-field>span,
.csc-account-profile-form .sycow-field>legend,
.csc-account-news-editor .sycow-news-step p,
.csc-account-news-editor .sycow-news-step>label{
  font-size:13px;
}

.csc-account-profile-summary__links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
}

.csc-account-profile-summary__links a{
  color:var(--csc-primary);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.csc-account-profile-summary__links a:hover{
  text-decoration:underline;
}

.csc-account-profile-summary__links a:last-child{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 11px;
  border-radius:999px;
  background:var(--csc-primary-soft);
}

@media(min-width:901px){
  .csc-account-news-editor .sycow-news-columns{
    grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
    gap:36px;
    align-items:start;
  }

  .csc-account-news-editor .sycow-news-social-sticky{
    position:sticky;
    top:110px;
    align-self:start;
    max-height:calc(100vh - 140px);
    overflow:auto;
    padding-right:4px;
    scrollbar-width:thin;
  }

  .csc-account-news-editor .sycow-news-social-preview{
    border-radius:20px;
    box-shadow:0 14px 34px rgba(31,70,94,.08);
  }

  .csc-account-news-editor .sycow-news-social-preview>strong,
  .csc-account-news-editor .sycow-news-social-preview h3{
    font-size:18px;
  }

  .csc-account-news-editor .sycow-news-social-photo{
    min-height:260px;
  }
}

.csc-account-news-editor .sycow-news-social-preview{
  font-size:14px;
}

.csc-account-news-editor .sycow-news-social-preview p{
  font-size:13px;
  line-height:1.6;
}

.csc-account-news-editor .sycow-news-step h3{
  font-size:21px;
}

.csc-account-news-editor .sycow-news-workflow span{
  font-size:12px;
}

.csc-account-news-editor .sycow-news-history h3{
  font-size:28px;
}

.csc-account-news-editor .sycow-news-history-copy h4{
  font-size:15px;
}

.csc-account-news-editor .sycow-news-history-copy span,
.csc-account-news-editor .sycow-news-history-copy a{
  font-size:11px;
}

.csc-account-endpoint button.button,
.csc-account-endpoint a.button,
.csc-account-news-editor .sycow-news-preview-btn,
.csc-account-news-editor .sycow-news-confirm,
.csc-account-savebar .csc-btn{
  min-height:48px;
  font-size:14px;
  padding-inline:18px!important;
}

@media(max-width:760px){
  .csc-account-page{font-size:15px}

  .csc-account-profile-summary__links{
    flex-direction:column;
    align-items:flex-start;
  }

  .csc-account-profile-summary__links a:last-child{
    min-height:32px;
  }
}


/* =========================================================
   V6 — VISUEL CONNEXION / INSCRIPTION
   ========================================================= */

.csc-account-auth{
  display:grid;
  gap:42px;
}

.csc-account-auth__hero{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);
  gap:42px;
  align-items:center;
  padding:14px 0 12px;
}

.csc-account-auth__copy h1{
  margin:8px 0 14px;
  color:var(--csc-text);
  font-size:clamp(44px,5vw,72px);
  line-height:.98;
  letter-spacing:-.055em;
}

.csc-account-auth__copy>p{
  max-width:680px;
  margin:0;
  color:var(--csc-text-light);
  font-size:15px;
  line-height:1.78;
}

.csc-account-auth__features{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.csc-account-auth__features span{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  padding:0 13px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--csc-border);
  color:var(--csc-primary);
  font-size:11px;
  font-weight:900;
}

.csc-account-auth__points{
  display:grid;
  gap:11px;
  margin:22px 0 0;
  padding:0;
  list-style:none;
}

.csc-account-auth__points li{
  position:relative;
  padding-left:24px;
  color:var(--csc-text);
  font-size:13px;
  line-height:1.7;
}

.csc-account-auth__points li::before{
  content:'';
  position:absolute;
  top:9px;
  left:0;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--csc-primary);
  box-shadow:0 0 0 5px rgba(40,170,226,.14);
}

.csc-account-auth__scene{
  color:var(--csc-primary);
}

.csc-account-auth__scene svg{
  display:block;
  width:100%;
  height:auto;
}

.csc-account-auth-cloud{
  fill:#fff;
  stroke:none;
  filter:drop-shadow(0 10px 18px rgba(74,147,200,.10));
}

.csc-account-auth-cloud--one{
  animation:cscAccountCloud 11s ease-in-out infinite alternate;
}

.csc-account-auth-cloud--two{
  animation:cscAccountCloud 14s ease-in-out infinite alternate-reverse;
}

.csc-account-auth-sheet path:first-child,
.csc-account-auth-lock rect{
  fill:#fff;
}

.csc-account-auth-panel path:first-child{
  fill:#f3f9fc;
}

.csc-account-auth-heart{
  fill:#efbf93;
  stroke:none;
  transform-box:fill-box;
  transform-origin:center;
  animation:cscAccountHeart 2.6s ease-in-out infinite;
}

.csc-account-auth-ground{
  stroke:#c6dfea;
  stroke-width:3;
}

@keyframes cscAccountCloud{
  from{transform:translateX(-5px)}
  to{transform:translateX(13px)}
}

@keyframes cscAccountHeart{
  0%,100%{transform:scale(1)}
  15%{transform:scale(1.12)}
  28%{transform:scale(1)}
}

/* zone formulaires */
.csc-account-login{
  max-width:none;
}

.csc-account-login__top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(250px,.42fr);
  gap:24px;
  align-items:end;
  padding:0 0 26px;
  border-bottom:1px solid var(--csc-border);
  margin-bottom:28px;
}

.csc-account-login__top h2{
  margin:7px 0 10px;
  color:var(--csc-text);
  font-size:clamp(30px,3vw,44px);
  line-height:1.03;
  letter-spacing:-.05em;
}

.csc-account-login__top p{
  max-width:740px;
  margin:0;
  color:var(--csc-text-light);
  font-size:14px;
  line-height:1.72;
}

.csc-account-login__mini-note{
  display:grid;
  gap:5px;
  padding:16px 0 4px;
  border-top:1px solid var(--csc-border);
}

.csc-account-login__mini-note strong{
  color:var(--csc-text);
  font-size:15px;
}

.csc-account-login__mini-note small{
  color:var(--csc-text-light);
  font-size:12px;
  line-height:1.6;
}

.csc-account-login__woocommerce{
  margin-top:0;
}

.csc-account-login__woocommerce #customer_login{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:start;
}

.csc-account-login__woocommerce .u-column1,
.csc-account-login__woocommerce .u-column2{
  min-width:0;
}

.csc-account-login__woocommerce .woocommerce-form-login,
.csc-account-login__woocommerce .woocommerce-form-register{
  display:grid;
  gap:0;
  padding:22px!important;
  border:1px solid var(--csc-border)!important;
  border-radius:22px!important;
  background:#fff;
  box-shadow:0 14px 34px rgba(31,70,94,.05);
}

.csc-account-login__woocommerce h2{
  margin:0 0 8px;
  color:var(--csc-text);
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.045em;
}

.csc-account-login__woocommerce .form-row{
  margin:0 0 15px!important;
}

.csc-account-login__woocommerce .form-row label{
  display:block;
  margin-bottom:8px;
  color:var(--csc-text-light);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.csc-account-login__woocommerce input.input-text,
.csc-account-login__woocommerce input[type="text"],
.csc-account-login__woocommerce input[type="email"],
.csc-account-login__woocommerce input[type="password"]{
  width:100%;
  min-height:54px;
  border:1px solid var(--csc-border)!important;
  border-radius:15px!important;
  background:#fff!important;
  color:var(--csc-text)!important;
  box-shadow:none!important;
  padding:0 16px!important;
  font:inherit;
  font-size:15px;
  outline:0;
}

.csc-account-login__woocommerce input:focus{
  border-color:#a8d5ea!important;
  box-shadow:0 0 0 4px rgba(40,170,226,.10)!important;
}

.csc-account-login__woocommerce .show-password-input{
  right:14px!important;
  top:52%!important;
}

.csc-account-login__woocommerce .show-password-input::after{
  line-height:1!important;
}

.csc-account-login__woocommerce .woocommerce-form-login__rememberme{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:6px 0 0;
  color:var(--csc-text);
  font-size:13px;
  font-weight:700;
}

.csc-account-login__woocommerce .woocommerce-form-login__rememberme input{
  width:16px;
  height:16px;
  margin:0;
}

.csc-account-login__woocommerce .woocommerce-form-login .lost_password{
  margin:0!important;
}

.csc-account-login__woocommerce .woocommerce-LostPassword a,
.csc-account-login__woocommerce .lost_password a{
  color:var(--csc-primary);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.csc-account-login__woocommerce button.button,
.csc-account-login__woocommerce .button,
.csc-account-login__woocommerce input.button{
  min-height:50px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  padding:0 18px!important;
  border:0!important;
  border-radius:15px!important;
  background:var(--csc-primary)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:13px!important;
  font-weight:900!important;
}

.csc-account-login__woocommerce button.button:hover,
.csc-account-login__woocommerce .button:hover,
.csc-account-login__woocommerce input.button:hover{
  background:var(--csc-primary-hover)!important;
}

.csc-account-login__woocommerce .woocommerce-password-hint,
.csc-account-login__woocommerce .woocommerce-password-strength,
.csc-account-login__woocommerce .woocommerce-privacy-policy-text,
.csc-account-login__woocommerce .woocommerce-form-row .description{
  color:var(--csc-text-light);
  font-size:12px;
  line-height:1.65;
}

.csc-account-login__woocommerce .woocommerce-password-strength{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#f5f9fb;
}

.csc-account-login__woocommerce .woocommerce-form-register .clear,
.csc-account-login__woocommerce .woocommerce-form-login .clear{
  display:none;
}

.csc-account-login__woocommerce .woocommerce-notices-wrapper{
  margin:0 0 18px;
}

.csc-account-login__woocommerce .woocommerce-error,
.csc-account-login__woocommerce .woocommerce-info,
.csc-account-login__woocommerce .woocommerce-message{
  border:0!important;
  border-radius:16px!important;
  background:#f5f9fb!important;
  color:var(--csc-text)!important;
  box-shadow:none!important;
}

.csc-account-login__woocommerce .woocommerce-error li{
  margin-bottom:5px;
}

@media(max-width:980px){
  .csc-account-auth__hero,
  .csc-account-login__top{
    grid-template-columns:1fr;
  }

  .csc-account-auth__scene{
    max-width:700px;
    margin:0 auto;
  }
}

@media(max-width:760px){
  .csc-account-auth{
    gap:28px;
  }

  .csc-account-auth__hero{
    gap:24px;
    padding-top:0;
  }

  .csc-account-auth__copy h1{
    font-size:46px;
  }

  .csc-account-login__woocommerce #customer_login{
    grid-template-columns:1fr;
    gap:16px;
  }

  .csc-account-login__woocommerce .woocommerce-form-login,
  .csc-account-login__woocommerce .woocommerce-form-register{
    padding:18px!important;
    border-radius:18px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .csc-account-auth-cloud,
  .csc-account-auth-heart{
    animation:none!important;
  }
}

.csc-account-login__intro{margin:0 0 18px;color:var(--csc-text-light);font-size:13px;line-height:1.7}


/* =========================================================
   V7 — CONNEXION EN 2 MODES
   ========================================================= */

.csc-account-auth-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 22px;
}

.csc-account-auth-tab{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:12px;
  align-items:center;
  min-height:78px;
  padding:13px 15px;
  border:1px solid var(--csc-border);
  border-radius:18px;
  background:#fff;
  color:var(--csc-text);
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}

.csc-account-auth-tab:hover{
  transform:translateY(-1px);
  border-color:#bdddeb;
}

.csc-account-auth-tab>span{
  grid-row:1/3;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#f4f8fa;
  color:var(--csc-primary);
  font-size:11px;
  font-weight:900;
}

.csc-account-auth-tab strong{
  align-self:end;
  font-size:14px;
}

.csc-account-auth-tab small{
  align-self:start;
  color:var(--csc-text-light);
  font-size:10px;
}

.csc-account-auth-tab.is-active{
  border-color:transparent;
  background:var(--csc-primary-soft);
  box-shadow:0 10px 28px rgba(31,70,94,.06);
}

.csc-account-auth-tab.is-active>span{
  background:#fff;
}

.csc-account-login__woocommerce #customer_login{
  display:block!important;
}

.csc-account-login__woocommerce #customer_login>.u-column1,
.csc-account-login__woocommerce #customer_login>.u-column2{
  display:none;
  width:100%!important;
  float:none!important;
}

.csc-account-login__woocommerce #customer_login>.u-column1.is-active,
.csc-account-login__woocommerce #customer_login>.u-column2.is-active{
  display:block;
}

.csc-account-login__woocommerce .woocommerce-form-login,
.csc-account-login__woocommerce .woocommerce-form-register{
  max-width:720px;
  margin:0 auto!important;
}

@media(max-width:650px){
  .csc-account-auth-tabs{
    grid-template-columns:1fr;
  }

  .csc-account-auth-tab{
    min-height:72px;
  }
}


/* =========================================================
   V8 — AUTH COMPACTE, SANS GROS HERO
   ========================================================= */

.csc-account-auth--compact{
  display:grid;
  gap:26px;
}

.csc-account-auth__compact-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  gap:28px;
  align-items:center;
  padding:6px 0 24px;
  border-bottom:1px solid var(--csc-border);
}

.csc-account-auth__compact-copy h1{
  margin:7px 0 10px;
  color:var(--csc-text);
  font-size:clamp(38px,4vw,58px);
  line-height:1;
  letter-spacing:-.055em;
}

.csc-account-auth__compact-copy p{
  max-width:760px;
  margin:0;
  color:var(--csc-text-light);
  font-size:14px;
  line-height:1.72;
}

.csc-account-auth__mini-scene{
  color:var(--csc-primary);
}

.csc-account-auth__mini-scene svg{
  display:block;
  width:100%;
  height:auto;
}

.csc-account-auth-mini-card rect,
.csc-account-auth-mini-lock rect{
  fill:#fff;
}

.csc-account-auth-mini-card{
  filter:drop-shadow(0 10px 18px rgba(74,147,200,.08));
}

.csc-account-auth-mini-lock rect{
  fill:var(--csc-primary-soft);
}

.csc-account-auth-mini-heart{
  fill:#efbf93;
  stroke:none;
  transform-box:fill-box;
  transform-origin:center;
  animation:cscAccountMiniHeart 2.8s ease-in-out infinite;
}

@keyframes cscAccountMiniHeart{
  0%,100%{transform:scale(1)}
  18%{transform:scale(1.12)}
  30%{transform:scale(1)}
}

/* Les tabs deviennent l'élément principal d'entrée. */
.csc-account-auth-tabs{
  margin:0 0 18px;
}

/* On retire l'effet "deux grosses cartes" du formulaire.
   Un seul mode est visible : le formulaire doit rester léger. */
.csc-account-login__woocommerce .woocommerce-form-login,
.csc-account-login__woocommerce .woocommerce-form-register{
  max-width:680px;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.csc-account-login__woocommerce h2{
  margin:0 0 8px;
  font-size:30px;
}

.csc-account-login__intro{
  max-width:620px;
  margin-bottom:22px;
}

/* Champs plus espacés mais sans gros bloc visuel. */
.csc-account-login__woocommerce .form-row{
  margin-bottom:17px!important;
}

.csc-account-login__woocommerce input.input-text,
.csc-account-login__woocommerce input[type="text"],
.csc-account-login__woocommerce input[type="email"],
.csc-account-login__woocommerce input[type="password"]{
  min-height:56px;
}

/* Ligne remember + bouton plus propre */
.csc-account-login__woocommerce .woocommerce-form-login__submit{
  min-width:150px;
}

.csc-account-login__woocommerce .woocommerce-form-login__rememberme{
  margin-right:14px;
}

/* Supprime toute ancienne zone hero au cas où. */
.csc-account-auth__hero,
.csc-account-auth__features,
.csc-account-auth__points,
.csc-account-auth__scene{
  display:none!important;
}

@media(max-width:760px){
  .csc-account-auth__compact-head{
    grid-template-columns:1fr 120px;
    gap:14px;
    align-items:end;
    padding-bottom:18px;
  }

  .csc-account-auth__compact-copy h1{
    font-size:42px;
  }

  .csc-account-auth__compact-copy p{
    font-size:13px;
  }

  .csc-account-auth__mini-scene{
    align-self:center;
  }
}

@media(max-width:520px){
  .csc-account-auth__compact-head{
    grid-template-columns:1fr;
  }

  .csc-account-auth__mini-scene{
    width:120px;
    justify-self:end;
    margin-top:-12px;
  }

  .csc-account-auth-tab{
    min-height:66px;
  }
}

@media(prefers-reduced-motion:reduce){
  .csc-account-auth-mini-heart{
    animation:none!important;
  }
}


/* =========================================================
   V9 — TITRE CENTRÉ + MINI SVG AU-DESSUS + ICÔNE MOT DE PASSE
   ========================================================= */

.csc-account-auth__compact-head{
  grid-template-columns:1fr!important;
  justify-items:center;
  text-align:center;
  gap:12px;
  padding-top:0;
}

.csc-account-auth__mini-scene{
  order:-1;
  width:150px;
  margin:0 auto -2px;
}

.csc-account-auth__compact-copy{
  display:grid;
  justify-items:center;
}

.csc-account-auth__compact-copy .csc-kicker{
  text-align:center;
}

.csc-account-auth__compact-copy h1{
  text-align:center;
}

.csc-account-auth__compact-copy p{
  max-width:760px;
  text-align:center;
}

/* WooCommerce affiche le bouton oeil en absolu dans le wrapper mot de passe. */
.csc-account-login__woocommerce .password-input{
  position:relative!important;
  display:block!important;
  width:100%!important;
}

.csc-account-login__woocommerce .password-input input{
  padding-right:54px!important;
}

.csc-account-login__woocommerce button.show-password-input{
  position:absolute!important;
  z-index:4;
  top:50%!important;
  right:8px!important;
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:11px!important;
  background:var(--csc-primary-soft)!important;
  color:var(--csc-primary)!important;
  box-shadow:none!important;
  transform:translateY(-50%)!important;
  cursor:pointer;
}

.csc-account-login__woocommerce button.show-password-input:hover{
  background:var(--csc-primary)!important;
  color:#fff!important;
}

.csc-account-login__woocommerce button.show-password-input::before{
  content:'';
  width:18px;
  height:18px;
  display:block;
  background:currentColor;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Zm9.5 3.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Zm9.5 3.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.csc-account-login__woocommerce button.show-password-input.display-password::before{
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18-1.4 1.4-3.2-3.2A11.5 11.5 0 0 1 12 20C6 20 2.5 14 2.5 14a19 19 0 0 1 3.2-4.1L1.6 5.8 3 4.4l18 18L19.6 24 3 7.4 3 3Zm6.1 9.1a3.2 3.2 0 0 0 4.8 4.8l-4.8-4.8ZM12 6c6 0 9.5 6 9.5 6a18.8 18.8 0 0 1-2.4 3.3l-2.4-2.4a4.8 4.8 0 0 0-5.6-5.6L9.3 5.5A11.7 11.7 0 0 1 12 6Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18-1.4 1.4-3.2-3.2A11.5 11.5 0 0 1 12 20C6 20 2.5 14 2.5 14a19 19 0 0 1 3.2-4.1L1.6 5.8 3 4.4l18 18L19.6 24 3 7.4 3 3Zm6.1 9.1a3.2 3.2 0 0 0 4.8 4.8l-4.8-4.8ZM12 6c6 0 9.5 6 9.5 6a18.8 18.8 0 0 1-2.4 3.3l-2.4-2.4a4.8 4.8 0 0 0-5.6-5.6L9.3 5.5A11.7 11.7 0 0 1 12 6Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.csc-account-login__woocommerce button.show-password-input::after{
  display:none!important;
  content:none!important;
}

@media(max-width:520px){
  .csc-account-auth__mini-scene{
    width:118px;
    justify-self:center;
    margin:0 auto;
  }

  .csc-account-auth__compact-copy h1{
    font-size:40px;
  }
}
