/* =========================================================
   Chorale Sainte Thérèse de l'Enfant Jésus — Palette & thème
   ========================================================= */
:root{
  --navy-deep:   #101a35;
  --navy:        #1c2c56;
  --navy-light:  #2a4077;
  --teal:        #38c8a0;
  --teal-dark:   #23a084;
  --teal-glow:   rgba(56,200,160,.18);
  --white:       #ffffff;
  --mist:        #cfd8ee;
  --danger:      #e5566b;
  --radius:      16px;
  --shadow:      0 20px 45px -20px rgba(8,14,32,.55);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family: var(--font-body);
  color: var(--navy-deep);
  background: linear-gradient(180deg,#eef1fb 0%, #e4e9f7 100%);
  min-height:100vh;
}

a{color:inherit;}

/* ---------- Layout shell ---------- */
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* ---------- Top banner (hero) ---------- */
.hero{
  position:relative;
  background:
    linear-gradient(160deg, rgba(16,26,53,.92) 0%, rgba(26,42,84,.85) 55%, rgba(35,160,132,.55) 130%),
    radial-gradient(circle at 80% 0%, rgba(56,200,160,.25), transparent 55%);
  color:var(--white);
  padding: 40px 24px 56px;
  text-align:center;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
  pointer-events:none;
}
.hero-inner{position:relative; max-width:760px; margin:0 auto;}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 22px;
  border-radius:999px;
  border:1px solid rgba(56,200,160,.55);
  background:rgba(56,200,160,.12);
  color:#7be8cd;
  font-size:.78rem;
  letter-spacing:.06em;
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:22px;
}

.logo-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-bottom:18px;
}
.logo-row img{
  height:56px; width:56px;
  border-radius:50%;
  background:#0d1730;
  padding:6px;
  box-shadow:0 0 0 3px rgba(56,200,160,.35);
}
.logo-row .logo-text{
  text-align:left;
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.35;
  color:var(--mist);
}
.logo-row .logo-text strong{
  display:block;
  color:var(--white);
  font-size:.86rem;
}

.hero h1{
  font-family: var(--font-display);
  font-weight:800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height:1.12;
  margin: 6px 0 10px;
}
.hero h1 .accent{color:var(--teal);}
.hero p.tag{
  color:var(--mist);
  font-style:italic;
  font-size:1.02rem;
  margin:0;
}

/* ---------- Main content card ---------- */
.container{
  flex:1;
  max-width:880px;
  width:100%;
  margin: -34px auto 60px;
  padding: 0 20px;
  position:relative;
  z-index:2;
}

.card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:36px 34px;
  border:1px solid #e7ebf7;
}

.card + .card{margin-top:24px;}

.section-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 6px;
}
.section-title .dot{
  width:10px;height:10px;border-radius:3px;
  background:var(--teal);
  transform:rotate(45deg);
}
.section-title h2{
  font-family:var(--font-display);
  font-size:1.5rem;
  margin:0;
  color:var(--navy);
}
.section-sub{
  color:#6b7593;
  margin:0 0 26px;
  font-size:.95rem;
}

/* ---------- Form ---------- */
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 22px;
}
.field{display:flex; flex-direction:column; gap:7px;}
.field.full{grid-column:1 / -1;}
.field label{
  font-size:.82rem;
  font-weight:600;
  color:var(--navy);
  letter-spacing:.01em;
}
.field label .req{color:var(--teal-dark);}

input[type=text], input[type=tel], input[type=date], textarea, select, input[type=password]{
  font-family:var(--font-body);
  font-size:.95rem;
  padding:12px 14px;
  border-radius:10px;
  border:1.5px solid #dfe3f0;
  background:#f8f9fd;
  color:var(--navy-deep);
  transition:border-color .15s, box-shadow .15s, background .15s;
  width:100%;
}
textarea{resize:vertical; min-height:110px; font-family:var(--font-body);}
input:focus, textarea:focus, select:focus{
  outline:none;
  border-color:var(--teal);
  background:#ffffff;
  box-shadow:0 0 0 4px var(--teal-glow);
}
.hint{font-size:.78rem; color:#8891ab;}
.error-msg{
  font-size:.8rem;
  color:var(--danger);
  font-weight:600;
  display:none;
}
.field.invalid input, .field.invalid select{border-color:var(--danger); background:#fff5f6;}
.field.invalid .error-msg{display:block;}

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.95rem;
  padding:14px 28px;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .12s ease, box-shadow .12s ease, background .15s;
}
.btn-primary{
  background:linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color:#08281f;
  box-shadow:0 12px 24px -8px rgba(35,160,132,.55);
}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 16px 28px -8px rgba(35,160,132,.6);}
.btn-secondary{
  background:var(--navy);
  color:var(--white);
}
.btn-secondary:hover{background:var(--navy-light);}
.btn-ghost{
  background:transparent;
  color:var(--navy);
  border:1.5px solid #dfe3f0;
}
.btn-block{width:100%;}
.actions-row{display:flex; gap:14px; margin-top:8px; flex-wrap:wrap;}

/* ---------- Alerts ---------- */
.alert{
  border-radius:12px;
  padding:16px 18px;
  font-size:.92rem;
  margin-bottom:22px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.alert-success{background:#e6faf3; color:#0f6b52; border:1px solid #b7ecdb;}
.alert-error{background:#fdecee; color:#9a2b3a; border:1px solid #f7c6cd;}

/* ---------- Login ---------- */
.login-wrap{
  max-width:420px;
  margin:60px auto;
  padding:0 20px;
}
.login-logo{
  display:flex; justify-content:center; margin-bottom:18px;
}
.login-logo img{
  height:64px;width:64px;border-radius:50%;
  background:var(--navy-deep); padding:8px;
  box-shadow:0 0 0 4px var(--teal-glow);
}

/* ---------- Admin dashboard ---------- */
.topbar{
  background:var(--navy-deep);
  color:var(--white);
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.topbar .brand{display:flex; align-items:center; gap:12px;}
.topbar .brand img{height:38px;width:38px;border-radius:50%; background:#0d1730; padding:4px;}
.topbar .brand span{font-family:var(--font-display); font-weight:700; font-size:1.05rem;}
.topbar .user-menu{display:flex; align-items:center; gap:14px; font-size:.88rem; color:var(--mist);}
.topbar a.logout{color:#ffb3bc; text-decoration:none; font-weight:600;}

.stats-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:18px;
  margin-bottom:26px;
}
.stat-card{
  background:var(--white);
  border-radius:14px;
  padding:20px 22px;
  box-shadow:var(--shadow);
  border:1px solid #e7ebf7;
}
.stat-card .num{font-family:var(--font-display); font-size:2rem; color:var(--navy); font-weight:800;}
.stat-card .lbl{font-size:.82rem; color:#7a83a0; margin-top:4px;}

.table-wrap{overflow-x:auto;}
table.data{
  width:100%;
  border-collapse:collapse;
  font-size:.88rem;
}
table.data th{
  text-align:left;
  background:var(--navy);
  color:var(--white);
  padding:12px 14px;
  position:sticky; top:0;
  white-space:nowrap;
}
table.data th:first-child{border-top-left-radius:10px;}
table.data th:last-child{border-top-right-radius:10px;}
table.data td{
  padding:11px 14px;
  border-bottom:1px solid #eef0f8;
  vertical-align:top;
}
table.data tr:hover td{background:#f7f9ff;}
.motivation-cell{max-width:260px; white-space:pre-wrap; color:#4a5270;}
.pill{
  display:inline-block; padding:3px 10px; border-radius:999px;
  background:var(--teal-glow); color:var(--teal-dark); font-size:.74rem; font-weight:700;
}

.toolbar{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:14px; margin-bottom:18px;
}
.search-box{
  flex:1; min-width:220px;
  display:flex; align-items:center; gap:8px;
  background:var(--white); border:1.5px solid #dfe3f0; border-radius:10px;
  padding:9px 14px;
}
.search-box input{border:none; background:transparent; padding:2px; box-shadow:none;}
.export-buttons{display:flex; gap:10px;}

footer.site-footer{
  text-align:center;
  padding:22px;
  font-size:.8rem;
  color:#8891ab;
}

@media (max-width: 620px){
  .form-grid{grid-template-columns:1fr;}
  .card{padding:26px 20px;}
  .hero{padding:32px 16px 46px;}
}
