/* ==========================================================================
   BÉTHANIE CULTE — ADMIN.CSS
   Même identité visuelle que le site public :
   bleu profond, jaune, turquoise, blocs éditoriaux, responsive.
   ========================================================================== */

*,
*::before,
*::after{
  box-sizing:border-box;
}

:root{
  --navy:#203f50;
  --navy-deep:#173745;
  --navy-dark:#112d39;

  --gold:#f3c94d;
  --gold-hover:#ffd65c;

  --teal:#42b4a2;
  --teal-dark:#2f9d8e;

  --green:#0d573f;

  --cream:#f2f1ee;
  --offwhite:#f8f8f6;
  --white:#fff;

  --ink:#203f50;
  --text:#354047;
  --muted:#6c767c;

  --line:#dedfdd;

  --danger:#b42318;
  --danger-bg:#fff0ee;

  --success:#166b4d;
  --success-bg:#e9f7f2;

  --container:1220px;

  --shadow:0 18px 55px rgba(9,35,46,.12);
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  background:#fff;
  color:var(--text);
  font-family:
    "Trebuchet MS",
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

button,
input{
  font:inherit;
}

button{
  color:inherit;
}

[hidden]{
  display:none !important;
}

.container{
  width:min(var(--container),calc(100% - 46px));
  margin-inline:auto;
}


/* ==========================================================================
   HEADER ADMIN
   ========================================================================== */

.admin-site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--navy);
  color:#fff;
}

.admin-header-inner{
  min-height:74px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:stretch;
  gap:28px;
}

.admin-brand{
  display:flex;
  align-items:center;
  gap:11px;
}

.admin-brand-logo{
  width:38px;
  height:38px;
  flex:0 0 38px;
  overflow:hidden;
  border-radius:50%;
}

.admin-brand-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.admin-brand-copy strong,
.admin-brand-copy small{
  display:block;
}

.admin-brand-copy strong{
  color:#fff;
  font-size:15px;
  line-height:1;
  font-weight:900;
  letter-spacing:.13em;
}

.admin-brand-copy small{
  margin-top:5px;
  color:rgba(255,255,255,.60);
  font-size:8px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.admin-top-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
}

.admin-top-nav a{
  min-height:74px;
  display:flex;
  align-items:center;
  padding:0 14px;
  color:rgba(255,255,255,.88);
  font-size:12px;
}

.admin-top-nav a:hover{
  color:#fff;
  background:rgba(255,255,255,.05);
}

.admin-header-cta{
  min-width:175px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:calc((100vw - min(var(--container),calc(100vw - 46px))) / -2);
  padding:0 25px;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:12px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.admin-header-cta:hover{
  background:var(--gold-hover);
}


/* ==========================================================================
   DASHBOARD HERO
   ========================================================================== */

.admin-hero{
  background:
    linear-gradient(
      110deg,
      var(--navy-deep),
      var(--navy) 65%,
      #285669
    );
  color:#fff;
}

.admin-hero-inner{
  min-height:330px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:70px;
}

.admin-overline{
  display:block;
  margin-bottom:12px;
  color:var(--teal-dark);
  font-size:10px;
  font-weight:900;
  letter-spacing:.20em;
  text-transform:uppercase;
}

.admin-overline-light{
  color:var(--gold);
}

.admin-hero h1{
  max-width:650px;
  margin:0;
  color:#fff;
  font-size:clamp(46px,5.6vw,74px);
  line-height:1.04;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.admin-hero h1 span{
  display:block;
  color:var(--gold);
}

.admin-hero p{
  max-width:620px;
  margin:22px 0 0;
  color:rgba(255,255,255,.76);
  font-size:14px;
  line-height:1.75;
}

.admin-hero-meta{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  background:rgba(255,255,255,.08);
}

.admin-hero-stat,
.admin-hero-account{
  min-height:145px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:28px;
  border:1px solid rgba(255,255,255,.11);
}

.admin-hero-stat span,
.admin-hero-account span{
  color:rgba(255,255,255,.60);
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.admin-hero-stat strong{
  margin-top:8px;
  color:var(--gold);
  font-size:46px;
  line-height:1;
}

.admin-hero-account strong{
  margin-top:8px;
  color:#fff;
  font-size:13px;
  line-height:1.45;
  overflow-wrap:anywhere;
}


/* ==========================================================================
   CONTENU DASHBOARD
   ========================================================================== */

.admin-content-section{
  padding:72px 0 90px;
  background:#fff;
}

.admin-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(380px,.82fr) minmax(0,1.18fr);
  align-items:start;
  gap:28px;
}

.admin-form-panel,
.admin-list-panel,
.edit-form-card{
  border:1px solid var(--line);
  background:#fff;
}

.admin-form-panel{
  position:sticky;
  top:96px;
  padding:36px;
}

.admin-list-panel{
  padding:36px;
}

.admin-panel-heading{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin-bottom:32px;
}

.admin-panel-number{
  width:58px;
  height:58px;
  flex:0 0 58px;
  display:grid;
  place-items:center;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:12px;
  font-weight:900;
}

.admin-panel-heading h2,
.admin-list-heading h2,
.edit-form-card h2{
  margin:0;
  color:var(--navy);
  font-size:27px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.admin-panel-heading p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.admin-list-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin-bottom:28px;
}

.admin-total-badge{
  min-width:54px;
  height:54px;
  display:grid;
  place-items:center;
  background:var(--teal);
  color:#fff;
  font-size:17px;
  font-weight:900;
}


/* ==========================================================================
   FORMULAIRES
   ========================================================================== */

.admin-fields-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.admin-field{
  margin-bottom:18px;
}

.admin-field label{
  display:block;
  margin-bottom:8px;
  color:var(--navy);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.admin-input{
  width:100%;
  min-height:50px;
  padding:0 14px;
  border:1px solid #cfd3d3;
  border-radius:0;
  outline:0;
  background:#fff;
  color:#2f383d;
  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.admin-input:hover{
  border-color:#aeb6b7;
}

.admin-input:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(66,180,162,.12);
}

.admin-file-input{
  padding:12px;
}

.admin-help{
  margin:7px 0 0;
  color:var(--muted);
  font-size:11px;
}

.admin-upload-zone{
  position:relative;
  min-height:210px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px dashed #bfc6c6;
  background:var(--offwhite);
  cursor:pointer;
  transition:
    background .18s ease,
    border-color .18s ease;
}

.admin-upload-zone:hover,
.admin-upload-zone.is-dragging{
  border-color:var(--teal);
  background:#f2faf8;
}

.admin-upload-zone input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
}

.admin-upload-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:25px;
  text-align:center;
}

.admin-upload-symbol{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  margin-bottom:13px;
  background:var(--teal);
  color:#fff;
  font-size:27px;
}

.admin-upload-placeholder strong{
  color:var(--navy);
  font-size:13px;
  letter-spacing:.05em;
}

.admin-upload-placeholder span:last-child{
  margin-top:6px;
  color:var(--muted);
  font-size:10px;
}

.admin-upload-preview{
  width:100%;
  height:250px;
  object-fit:cover;
}

.admin-primary-button,
.admin-secondary-button{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  padding:0 26px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  cursor:pointer;
}

.admin-primary-button{
  width:100%;
  background:var(--gold);
  color:var(--navy-dark);
}

.admin-primary-button:hover{
  background:var(--gold-hover);
}

.admin-secondary-button{
  border:1px solid var(--navy);
  background:#fff;
  color:var(--navy);
}


/* ==========================================================================
   FLASH
   ========================================================================== */

.admin-flash{
  margin-bottom:20px;
  padding:14px 17px;
  border-left:4px solid currentColor;
  font-size:13px;
  font-weight:700;
}

.admin-flash.success{
  background:var(--success-bg);
  color:var(--success);
}

.admin-flash.error{
  background:var(--danger-bg);
  color:var(--danger);
}


/* ==========================================================================
   LISTE DES ÉGLISES
   ========================================================================== */

.admin-church-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.admin-church-card{
  position:relative;
  display:grid;
  grid-template-columns:150px minmax(0,1fr) auto;
  align-items:stretch;
  min-height:145px;
  border:1px solid var(--line);
  background:#fff;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.admin-church-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 34px rgba(9,35,46,.08);
}

.admin-church-index{
  position:absolute;
  z-index:2;
  top:0;
  left:0;
  min-width:44px;
  height:44px;
  display:grid;
  place-items:center;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:10px;
  font-weight:900;
}

.admin-church-photo{
  overflow:hidden;
  background:#dde3e4;
}

.admin-church-photo img{
  width:100%;
  height:100%;
  min-height:145px;
  object-fit:cover;
}

.admin-church-copy{
  min-width:0;
  padding:22px 24px;
}

.admin-church-copy > span{
  color:var(--teal-dark);
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.admin-church-copy h3{
  margin:6px 0 6px;
  color:var(--navy);
  font-size:19px;
  line-height:1.15;
}

.admin-church-city{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.admin-church-pastor{
  margin:14px 0 0;
  padding-top:11px;
  border-top:1px solid var(--line);
}

.admin-church-pastor small,
.admin-church-pastor strong{
  display:block;
}

.admin-church-pastor small{
  color:#8b9295;
  font-size:8px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.admin-church-pastor strong{
  margin-top:4px;
  color:var(--navy);
  font-size:12px;
}

.admin-card-actions{
  width:120px;
  display:flex;
  flex-direction:column;
  border-left:1px solid var(--line);
}

.admin-card-actions form{
  flex:1;
  display:flex;
}

.admin-action{
  flex:1;
  width:100%;
  min-height:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  border:0;
  background:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}

.admin-action.edit{
  color:var(--navy);
  border-bottom:1px solid var(--line);
}

.admin-action.edit:hover{
  background:var(--teal);
  color:#fff;
}

.admin-action.delete{
  color:var(--danger);
}

.admin-action.delete:hover{
  background:var(--danger);
  color:#fff;
}

.admin-empty{
  padding:65px 25px;
  border:1px dashed #c9cece;
  background:var(--offwhite);
  text-align:center;
}

.admin-empty > span{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin:0 auto 17px;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:26px;
}

.admin-empty h3{
  margin:0 0 8px;
  color:var(--navy);
}

.admin-empty p{
  max-width:410px;
  margin:0 auto;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}


/* ==========================================================================
   FOOTER ADMIN
   ========================================================================== */

.admin-footer{
  background:var(--navy);
  color:#fff;
}

.admin-footer .container{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:10px;
}


/* ==========================================================================
   PAGE MODIFIER
   ========================================================================== */

.edit-hero{
  background:
    linear-gradient(
      110deg,
      var(--navy-deep),
      var(--navy)
    );
  color:#fff;
}

.edit-hero-inner{
  min-height:255px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

.edit-hero h1{
  max-width:780px;
  margin:0;
  color:#fff;
  font-size:clamp(36px,5vw,62px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.edit-hero h1 span{
  display:block;
  color:var(--gold);
}

.edit-back-link{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 22px;
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.edit-section{
  padding:70px 0 90px;
}

.edit-layout{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  align-items:start;
  gap:30px;
}

.edit-preview{
  position:sticky;
  top:96px;
  padding:30px;
  background:var(--cream);
}

.edit-preview-image{
  margin-top:15px;
  overflow:hidden;
  background:#d9dede;
}

.edit-preview-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.edit-preview-copy{
  padding:23px 0 0;
}

.edit-preview-copy h2{
  margin:0 0 7px;
  color:var(--navy);
  font-size:25px;
}

.edit-preview-copy > p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.edit-preview-copy > div{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #d8d9d6;
}

.edit-preview-copy > div span,
.edit-preview-copy > div strong{
  display:block;
}

.edit-preview-copy > div span{
  color:#7c8486;
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.edit-preview-copy > div strong{
  margin-top:5px;
  color:var(--navy);
  font-size:13px;
}

.edit-form-card{
  padding:38px;
}

.edit-form-actions{
  display:flex;
  gap:12px;
  margin-top:24px;
}

.edit-form-actions .admin-primary-button{
  width:auto;
  flex:1;
}


/* ==========================================================================
   LOGIN
   ========================================================================== */

.login-page{
  background:#fff;
}

.login-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.12fr .88fr;
}

.login-visual{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background-image:url("images/embleme-bethanie.jpg");
  background-position:center;
  background-size:cover;
}

.login-visual-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      145deg,
      rgba(23,55,69,.90),
      rgba(23,55,69,.72) 50%,
      rgba(13,87,63,.78)
    );
}

.login-visual-content{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:48px 60px;
  color:#fff;
}

.login-logo{
  width:max-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:12px;
}

.login-logo img{
  width:47px;
  height:47px;
  object-fit:cover;
  border-radius:50%;
}

.login-logo strong,
.login-logo small{
  display:block;
}

.login-logo strong{
  font-size:15px;
  letter-spacing:.12em;
}

.login-logo small{
  margin-top:5px;
  color:rgba(255,255,255,.65);
  font-size:8px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.login-message{
  max-width:700px;
}

.login-message h1{
  margin:0;
  color:#fff;
  font-size:clamp(50px,6vw,82px);
  line-height:1.04;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.login-message h1 span{
  display:block;
  color:var(--gold);
}

.login-message p{
  max-width:620px;
  margin:24px 0 0;
  color:rgba(255,255,255,.76);
  font-size:14px;
  line-height:1.8;
}

.login-verse{
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:13px;
}

.login-verse strong{
  margin-left:6px;
  color:var(--gold);
}

.login-form-side{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:50px;
  background:var(--offwhite);
}

.login-card{
  width:min(460px,100%);
  padding:45px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.login-card h2{
  margin:0;
  color:var(--navy);
  font-size:39px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.login-intro{
  margin:13px 0 30px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.login-submit{
  margin-top:5px;
}

.login-back{
  display:inline-block;
  margin-top:22px;
  color:var(--navy);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.login-back:hover{
  color:var(--teal-dark);
}


/* ==========================================================================
   RESPONSIVE 1050
   ========================================================================== */

@media (max-width:1050px){

  .admin-dashboard-grid{
    grid-template-columns:1fr;
  }

  .admin-form-panel{
    position:static;
  }

  .admin-hero-inner{
    gap:35px;
  }

  .admin-fields-row{
    grid-template-columns:1fr 1fr;
  }

  .edit-layout{
    grid-template-columns:1fr;
  }

  .edit-preview{
    position:static;
  }

  .login-layout{
    grid-template-columns:1fr 1fr;
  }

  .login-visual-content{
    padding:42px;
  }
}


/* ==========================================================================
   RESPONSIVE 820
   ========================================================================== */

@media (max-width:820px){

  .container{
    width:min(100% - 30px,var(--container));
  }

  .admin-header-inner{
    min-height:68px;
    grid-template-columns:1fr auto;
  }

  .admin-top-nav{
    display:none;
  }

  .admin-header-cta{
    min-width:145px;
    margin-right:0;
    padding-inline:18px;
  }

  .admin-hero-inner{
    min-height:auto;
    grid-template-columns:1fr;
    gap:32px;
    padding-block:55px;
  }

  .admin-hero h1{
    font-size:50px;
  }

  .admin-hero-meta{
    max-width:600px;
  }

  .admin-church-card{
    grid-template-columns:125px minmax(0,1fr);
  }

  .admin-card-actions{
    width:auto;
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr 1fr;
    border-top:1px solid var(--line);
    border-left:0;
  }

  .admin-action.edit{
    border-right:1px solid var(--line);
    border-bottom:0;
  }

  .admin-card-actions form{
    display:flex;
  }

  .edit-hero-inner{
    min-height:auto;
    padding-block:48px;
  }

  .login-layout{
    grid-template-columns:1fr;
  }

  .login-visual{
    min-height:480px;
  }

  .login-visual-content{
    min-height:480px;
  }

  .login-form-side{
    min-height:auto;
    padding:60px 30px;
  }
}


/* ==========================================================================
   RESPONSIVE 600
   ========================================================================== */

@media (max-width:600px){

  .container{
    width:min(100% - 22px,var(--container));
  }

  .admin-brand-copy strong{
    font-size:11px;
  }

  .admin-brand-copy small{
    display:none;
  }

  .admin-header-cta{
    min-width:0;
    padding:0 15px;
    font-size:9px;
  }

  .admin-hero h1{
    font-size:39px;
    letter-spacing:.09em;
  }

  .admin-hero p{
    font-size:13px;
  }

  .admin-hero-meta{
    grid-template-columns:1fr;
  }

  .admin-hero-stat,
  .admin-hero-account{
    min-height:110px;
    padding:22px;
  }

  .admin-content-section{
    padding:48px 0 65px;
  }

  .admin-form-panel,
  .admin-list-panel,
  .edit-form-card{
    padding:24px;
  }

  .admin-fields-row{
    grid-template-columns:1fr;
    gap:0;
  }

  .admin-panel-heading{
    flex-direction:column;
  }

  .admin-panel-heading h2,
  .admin-list-heading h2,
  .edit-form-card h2{
    font-size:23px;
  }

  .admin-church-card{
    grid-template-columns:1fr;
  }

  .admin-church-photo img{
    height:auto;
    min-height:0;
    aspect-ratio:16/10;
  }

  .admin-card-actions{
    grid-column:auto;
  }

  .admin-footer .container{
    min-height:78px;
    align-items:flex-start;
    flex-direction:column;
    justify-content:center;
    gap:5px;
  }

  .edit-hero-inner{
    align-items:flex-start;
    flex-direction:column;
  }

  .edit-hero h1{
    font-size:34px;
  }

  .edit-form-actions{
    flex-direction:column;
  }

  .edit-form-actions .admin-primary-button,
  .edit-form-actions .admin-secondary-button{
    width:100%;
  }

  .login-visual{
    min-height:430px;
  }

  .login-visual-content{
    min-height:430px;
    padding:28px 24px;
  }

  .login-message h1{
    font-size:42px;
  }

  .login-form-side{
    padding:42px 16px;
  }

  .login-card{
    padding:30px 24px;
    box-shadow:none;
  }

  .login-card h2{
    font-size:31px;
  }
}


/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

@media (prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
}


/* ==========================================================================
   DEMANDES D'ADHÉSION — ADMINISTRATION
   ========================================================================== */

.admin-nav-memberships{
  gap:8px;
}

.admin-nav-badge{
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:9px;
  font-weight:900;
}

.admin-membership-shortcut{
  display:grid;
  grid-template-columns:62px minmax(0,1fr) auto;
  align-items:center;
  gap:20px;
  margin-bottom:28px;
  padding:22px 25px;
  border:1px solid var(--line);
  background:var(--cream);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.admin-membership-shortcut:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 34px rgba(9,35,46,.08);
}

.admin-membership-shortcut-icon{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:22px;
  font-weight:900;
}

.admin-membership-shortcut-copy{
  min-width:0;
}

.admin-membership-shortcut-copy .admin-overline{
  margin-bottom:6px;
}

.admin-membership-shortcut-copy strong,
.admin-membership-shortcut-copy small{
  display:block;
}

.admin-membership-shortcut-copy strong{
  color:var(--navy);
  font-size:18px;
  line-height:1.25;
}

.admin-membership-shortcut-copy small{
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}

.admin-membership-shortcut-arrow{
  color:var(--navy);
  font-size:24px;
}


/* HERO */

.membership-admin-hero{
  background:
    linear-gradient(
      110deg,
      var(--navy-deep),
      var(--navy) 65%,
      #285669
    );
  color:#fff;
}

.membership-admin-hero-inner{
  min-height:300px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:60px;
}

.membership-admin-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(42px,5.4vw,70px);
  line-height:1.04;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.membership-admin-hero h1 span{
  display:block;
  color:var(--gold);
}

.membership-admin-hero p{
  max-width:610px;
  margin:20px 0 0;
  color:rgba(255,255,255,.75);
  font-size:13px;
  line-height:1.75;
}

.membership-admin-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  background:rgba(255,255,255,.08);
}

.membership-admin-stats > div{
  min-height:125px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px;
  border:1px solid rgba(255,255,255,.11);
}

.membership-admin-stats span{
  color:rgba(255,255,255,.55);
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.membership-admin-stats strong{
  margin-top:7px;
  color:var(--gold);
  font-size:34px;
}


/* CONTENT */

.membership-admin-content{
  padding:65px 0 90px;
  background:#fff;
}

.membership-filter-bar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:30px;
}

.membership-filter-bar h2{
  margin:0;
  color:var(--navy);
  font-size:28px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.membership-filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}

.membership-filters a{
  min-height:39px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 13px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

.membership-filters a span{
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0 5px;
  background:#eef0ef;
  font-size:9px;
}

.membership-filters a:hover,
.membership-filters a.is-active{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff;
}

.membership-filters a.is-active span{
  background:var(--gold);
  color:var(--navy-dark);
}


/* REQUEST CARDS */

.membership-request-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.membership-request-card{
  border:1px solid var(--line);
  background:#fff;
}

.membership-request-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  padding:24px 26px;
  border-bottom:1px solid var(--line);
  background:var(--offwhite);
}

.membership-request-identity{
  min-width:0;
  display:flex;
  align-items:center;
  gap:15px;
}

.membership-request-avatar{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:14px;
  font-weight:900;
}

.membership-request-kicker{
  color:var(--teal-dark);
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.membership-request-identity h3{
  margin:5px 0 3px;
  color:var(--navy);
  font-size:21px;
  line-height:1.15;
}

.membership-request-identity p{
  margin:0;
  color:var(--muted);
  font-size:10px;
}

.membership-status{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.membership-status--new{
  background:#fff2c9;
  color:#71580d;
}

.membership-status--contacted{
  background:#e8f7f4;
  color:#166b5c;
}

.membership-status--accepted{
  background:#e9f7ee;
  color:#166b3a;
}

.membership-status--rejected{
  background:#fff0ee;
  color:#a32b23;
}

.membership-request-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  background:var(--line);
  border-bottom:1px solid var(--line);
}

.membership-request-detail{
  min-width:0;
  padding:20px 22px;
  background:#fff;
}

.membership-request-detail--wide{
  grid-column:span 2;
}

.membership-request-detail span,
.membership-request-detail strong,
.membership-request-detail a{
  display:block;
}

.membership-request-detail span{
  margin-bottom:6px;
  color:#8a9295;
  font-size:8px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.membership-request-detail strong,
.membership-request-detail a{
  color:var(--navy);
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.membership-request-detail a:hover{
  color:var(--teal-dark);
  text-decoration:underline;
}

.membership-request-message{
  padding:22px 26px;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.membership-request-message span{
  display:block;
  margin-bottom:8px;
  color:#8a9295;
  font-size:8px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.membership-request-message p{
  margin:0;
  color:#424d52;
  font-size:13px;
  line-height:1.7;
}

.membership-request-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:17px 20px;
  background:var(--offwhite);
}

.membership-request-actions form{
  margin:0;
}

.membership-action{
  min-height:40px;
  padding:0 15px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
  cursor:pointer;
}

.membership-action--contacted:hover{
  border-color:var(--teal);
  background:var(--teal);
  color:#fff;
}

.membership-action--accepted:hover{
  border-color:var(--green);
  background:var(--green);
  color:#fff;
}

.membership-action--rejected:hover,
.membership-action--delete:hover{
  border-color:var(--danger);
  background:var(--danger);
  color:#fff;
}

.membership-action--delete{
  color:var(--danger);
}

.membership-admin-empty{
  padding:70px 25px;
  border:1px dashed #c9cece;
  background:var(--offwhite);
  text-align:center;
}

.membership-admin-empty > span{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin:0 auto 17px;
  background:var(--gold);
  color:var(--navy-dark);
}

.membership-admin-empty h3{
  margin:0 0 8px;
  color:var(--navy);
}

.membership-admin-empty p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}


/* RESPONSIVE */

@media (max-width:950px){

  .membership-admin-hero-inner{
    grid-template-columns:1fr;
    gap:30px;
    padding-block:50px;
  }

  .membership-admin-stats{
    max-width:650px;
  }

  .membership-filter-bar{
    align-items:flex-start;
    flex-direction:column;
  }

  .membership-filters{
    justify-content:flex-start;
  }

  .membership-request-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}


@media (max-width:600px){

  .admin-membership-shortcut{
    grid-template-columns:50px minmax(0,1fr);
    gap:13px;
    padding:17px;
  }

  .admin-membership-shortcut-icon{
    width:50px;
    height:50px;
    font-size:18px;
  }

  .admin-membership-shortcut-arrow{
    display:none;
  }

  .membership-admin-hero h1{
    font-size:36px;
  }

  .membership-admin-stats{
    grid-template-columns:1fr 1fr 1fr;
  }

  .membership-admin-stats > div{
    min-height:95px;
    padding:13px;
  }

  .membership-admin-stats strong{
    font-size:26px;
  }

  .membership-admin-content{
    padding:45px 0 65px;
  }

  .membership-filter-bar h2{
    font-size:23px;
  }

  .membership-filters{
    width:100%;
  }

  .membership-filters a{
    flex:1 1 calc(50% - 7px);
    justify-content:space-between;
  }

  .membership-request-head{
    align-items:flex-start;
    flex-direction:column;
    padding:20px;
  }

  .membership-request-grid{
    grid-template-columns:1fr;
  }

  .membership-request-detail--wide{
    grid-column:auto;
  }

  .membership-request-detail{
    padding:17px 20px;
  }

  .membership-request-message{
    padding:20px;
  }

  .membership-request-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:14px;
  }

  .membership-request-actions form,
  .membership-action{
    width:100%;
  }

}


/* ==========================================================================
   DOSSIERS OFFICIELS D'AFFILIATION — DÉTAIL ADMIN
   ========================================================================== */

.affiliation-admin-card{
  scroll-margin-top:95px;
}

.affiliation-admin-details{
  border-bottom:1px solid var(--line);
  background:#fff;
}

.affiliation-admin-details > summary{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:0 22px;
  color:var(--navy);
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  list-style:none;
}

.affiliation-admin-details > summary::-webkit-details-marker{
  display:none;
}

.affiliation-admin-details > summary::after{
  content:"+";
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  margin-left:auto;
  background:var(--gold);
  color:var(--navy-dark);
  font-size:18px;
}

.affiliation-admin-details[open] > summary::after{
  content:"−";
}

.affiliation-admin-details > summary span{
  margin-left:8px;
  padding:5px 8px;
  background:#eef6f4;
  color:var(--teal-dark);
  font-size:8px;
  letter-spacing:.06em;
}

.affiliation-admin-details-body{
  padding:0 22px 24px;
}

.affiliation-admin-official-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  margin-top:4px;
  background:var(--line);
  border:1px solid var(--line);
}

.affiliation-admin-official-grid > div{
  min-width:0;
  padding:16px;
  background:#fff;
}

.affiliation-admin-official-grid span,
.affiliation-admin-official-grid strong{
  display:block;
}

.affiliation-admin-official-grid span{
  color:#889194;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.affiliation-admin-official-grid strong{
  margin-top:5px;
  color:var(--navy);
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.affiliation-admin-validations{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:14px;
}

.affiliation-admin-validations span{
  padding:8px 10px;
  background:#eaf7f2;
  color:#166b4d;
  font-size:9px;
  font-weight:800;
}

.affiliation-admin-members{
  margin-top:24px;
}

.affiliation-admin-members h4{
  margin:0 0 12px;
  color:var(--navy);
  font-size:13px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.affiliation-admin-members-table{
  border:1px solid #9ca3a5;
  background:#fff;
}

.affiliation-admin-members-head,
.affiliation-admin-member-row{
  display:grid;
  grid-template-columns:45px 1.15fr 1.45fr .8fr 1fr;
}

.affiliation-admin-members-head{
  min-height:36px;
  align-items:center;
  background:#eef0ef;
  border-bottom:1px solid #9ca3a5;
}

.affiliation-admin-members-head span{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  border-right:1px solid #b7bcbc;
  color:var(--navy);
  font-size:8px;
  font-weight:900;
  text-align:center;
  text-transform:uppercase;
}

.affiliation-admin-members-head span:last-child{
  border-right:0;
}

.affiliation-admin-member-row{
  min-height:38px;
  border-bottom:1px solid #d2d5d5;
}

.affiliation-admin-member-row:last-child{
  border-bottom:0;
}

.affiliation-admin-member-row > span,
.affiliation-admin-member-row > strong{
  min-width:0;
  display:flex;
  align-items:center;
  padding:7px 8px;
  border-right:1px solid #e0e2e2;
  color:#3c474c;
  font-size:10px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.affiliation-admin-member-row > *:last-child{
  border-right:0;
}

.affiliation-admin-member-row > strong{
  color:var(--navy);
}

.affiliation-sensitive{
  font-family:monospace;
  letter-spacing:.04em;
}


/* ==========================================================================
   RESPONSIVE — DOSSIERS
   ========================================================================== */

@media (max-width:900px){

  .affiliation-admin-official-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .affiliation-admin-members-table{
    overflow-x:auto;
  }

  .affiliation-admin-members-head,
  .affiliation-admin-member-row{
    min-width:780px;
  }

}

@media (max-width:600px){

  .affiliation-admin-details > summary{
    align-items:flex-start;
    flex-wrap:wrap;
    padding:14px 16px;
  }

  .affiliation-admin-details > summary span{
    margin-left:0;
  }

  .affiliation-admin-details-body{
    padding:0 14px 18px;
  }

  .affiliation-admin-official-grid{
    grid-template-columns:1fr;
  }

}

/* ==========================================================================
   PHOTO RESPONSABLE — ADMIN
   ========================================================================== */

.edit-pastor-preview{
  margin-top:20px;
}

.edit-pastor-preview img{
  width:96px;
  height:96px;

  margin-top:10px;

  object-fit:cover;
  object-position:center top;

  border-radius:50%;

  border:4px solid #fff;

  box-shadow:
    0 10px 30px
    rgba(9,35,46,.14);
}


.admin-remove-photo{
  display:flex !important;

  align-items:flex-start;

  gap:10px;

  margin-top:12px !important;

  padding:13px 14px;

  border:1px solid #e5c9c6;

  background:#fff5f4;

  color:var(--danger) !important;

  font-size:10px !important;

  line-height:1.45;

  cursor:pointer;
}


.admin-remove-photo input{
  width:16px;
  height:16px;

  flex:0 0 16px;

  margin:0;
}


@media (max-width:600px){

  .edit-pastor-preview img{
    width:82px;
    height:82px;
  }

}