:root {
  --primary: #112f4a;
  --primary-soft: #1d496b;
  --secondary: #c99a3d;
  --background: #f7f4ee;
  --white: #ffffff;
  --text: #20252b;
  --muted: #66717d;
  --border: #e3e7eb;
  --success: #1f7a4d;
  --danger: #b42318;
  --shadow: 0 18px 55px rgba(17, 47, 74, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

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

.topbar {
  background: #081c2d;
  color: #e7eef5;
  font-size: 0.9rem;
}

.topbar .container {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--primary);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: .95rem;
}

.nav-links a:hover { color: var(--secondary); }

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 1.7rem;
  cursor: pointer;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 27, 45, .96), rgba(17, 47, 74, .62)),
    radial-gradient(circle at 85% 15%, rgba(201,154,61,.8), transparent 26%),
    var(--primary);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 72px solid rgba(255,255,255,.07);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-block: 90px;
}

.eyebrow {
  display: inline-block;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 900;
}

.hero h1, .page-hero h1 {
  margin: 14px 0 18px;
  line-height: 1.05;
}

.hero h1 { font-size: clamp(2.7rem, 7vw, 5.5rem); }
.hero p { max-width: 720px; font-size: 1.16rem; color: #e6edf4; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 26px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 13px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  cursor: pointer;
}

.btn-primary { background: var(--secondary); color: var(--white); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-light { background: var(--background); color: var(--primary); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-outline { border: 1px solid rgba(255,255,255,.55); color: var(--white); background: transparent; }

.section { padding: 76px 0; }
.section-alt { background: var(--background); }

.section-title {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  margin: 8px 0 10px;
  line-height: 1.15;
}

.section-title p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 32px rgba(17,47,74,.06);
}

.card h3 {
  color: var(--primary);
  margin: 8px 0 10px;
}

.card-meta {
  color: var(--secondary);
  font-weight: 800;
  font-size: .85rem;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 13px;
  margin-bottom: 18px;
  background: #e9eef2;
}

.prose {
  white-space: pre-line;
  color: #3e4852;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, #0b2439, #2b5d7d);
  padding: 96px 0 66px;
}

.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }

.content-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 34px;
  align-items: start;
}

.info-panel {
  background: var(--primary);
  color: var(--white);
  border-radius: 18px;
  padding: 28px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 800; margin-bottom: 6px; }

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}

textarea.form-control { min-height: 145px; resize: vertical; }

.alert {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 13px 0;
}

.alert.show { display: block; }
.alert-success { background: #e9f8ef; color: var(--success); }
.alert-error { background: #fdecec; color: var(--danger); }

.footer {
  background: #081c2d;
  color: #dce6ef;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 30px;
}

.footer h4 { color: var(--white); margin-top: 0; }
.footer a { display: block; margin: 7px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px;
  padding-top: 18px;
  font-size: .9rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #0b2439, #316887);
}

.login-card {
  width: min(450px, 100%);
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.admin-body {
  min-height: 100vh;
  background: #eef2f5;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 265px 1fr;
}

.sidebar {
  background: var(--primary);
  color: var(--white);
  padding: 24px;
}

.sidebar a {
  display: block;
  padding: 11px 12px;
  margin: 5px 0;
  border-radius: 8px;
}

.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.12); }

.admin-main { padding: 30px; }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 13px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
th { background: #f7f9fb; color: var(--primary); }

.small { font-size: .86rem; color: var(--muted); }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .grid-3, .grid-2, .content-layout, .footer-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar .container { flex-direction: column; padding-block: 8px; }
  .hero { min-height: auto; }
  .hero-content { padding-block: 70px; }
  .section { padding: 56px 0; }
  .admin-main { padding: 17px; }
}


/* Présentation publique d'une page avec photo principale, notamment la biographie du pasteur. */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: start;
}

.profile-photo-wrap {
  position: sticky;
  top: 110px;
}

.profile-photo {
  width: 100%;
  min-height: 420px;
  max-height: 620px;
  object-fit: cover;
  border-radius: 20px;
  background: #e9eef2;
  box-shadow: var(--shadow);
}

.profile-photo-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 2px dashed var(--border);
  border-radius: 20px;
  color: var(--muted);
  background: var(--background);
}

.image-preview {
  width: min(280px, 100%);
  min-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--background);
  margin-top: 12px;
}

.upload-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 820px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-photo-wrap {
    position: static;
  }

  .profile-photo,
  .profile-photo-placeholder {
    min-height: 320px;
  }

  .upload-inline {
    grid-template-columns: 1fr;
  }
}

:root{--primary:#071a3d;--accent:#c8222d}.brand img{width:54px;height:54px;object-fit:contain;border-radius:50%}.hero-slider{height:min(82vh,760px);position:relative;overflow:hidden;background:#071a3d}.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.04);transition:opacity 1.2s ease,transform 6s ease;display:flex;align-items:center;color:white}.hero-slide.active{opacity:1;transform:scale(1)}.hero-content{position:relative;z-index:2}.hero-content h1{font-size:clamp(2.5rem,7vw,5.5rem);max-width:850px;margin:.4rem 0}.hero-content p{font-size:1.2rem;max-width:650px}.hero-logo{width:130px;height:130px;object-fit:contain;border-radius:50%;box-shadow:0 15px 60px rgba(0,0,0,.3)}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#020b1f,#0b2e64)}.login-card{width:min(460px,92vw);background:white;padding:34px;border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.35)}.login-logo{width:120px;display:block;margin:auto;border-radius:50%}.admin-logo{width:100px;height:100px;object-fit:contain;border-radius:50%;display:block;margin:0 auto 12px}.sidebar h3{color:white;text-align:center}.admin-user-card{padding:16px;border:1px solid var(--border);border-radius:14px;margin:12px 0}.thumb{width:80px;height:60px;object-fit:cover;border-radius:8px}.footer-logo{width:90px;height:90px;object-fit:contain;border-radius:50%}.bio-hero{background:linear-gradient(135deg,#020b1f,#102f65);color:white;padding:90px 0}.bio-hero-grid{display:grid;grid-template-columns:180px 1fr;gap:32px;align-items:center}.bio-logo{width:180px;border-radius:50%}.bio-timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.bio-timeline figure{margin:0;background:white;border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.bio-timeline img{width:100%;height:360px;object-fit:cover}.bio-timeline figcaption{padding:14px;font-weight:700}.card{margin-bottom:24px}.sidebar{overflow-y:auto}.admin-main{min-width:0}@media(max-width:900px){.admin-shell{display:block}.sidebar{position:relative;width:100%;height:auto}.admin-main{padding:20px}.bio-timeline{grid-template-columns:1fr 1fr}.bio-hero-grid{grid-template-columns:1fr}.hero-slider{height:72vh}}@media(max-width:600px){.bio-timeline{grid-template-columns:1fr}.hero-logo{width:90px;height:90px}.hero-content h1{font-size:2.5rem}.topbar{display:none}}


/* Version 4 : administration responsive et gestion des comptes */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.credential-box {
  margin: 18px 0;
  padding: 18px;
  border: 2px solid #d5aa42;
  border-radius: 14px;
  background: #fff9e8;
}

.credential-box code {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 7px;
  background: #111827;
  color: #fff;
  font-size: 1rem;
}

.admin-user-card {
  margin-top: 15px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.role-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eefb;
  font-size: .75rem;
  text-transform: uppercase;
}

.large-textarea {
  min-height: 260px;
}

.restricted-dashboard {
  pointer-events: none;
  opacity: .35;
  filter: grayscale(.5);
}

#password-required {
  position: relative;
  z-index: 5;
  border: 2px solid #d5aa42;
}

hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .admin-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .admin-main {
    width: 100%;
    padding: 16px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .button-row .btn {
    width: 100%;
  }
}


/* Correctif V4.1 : identité visuelle uniforme */
.brand img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: #071a3d;
  box-shadow: 0 4px 16px rgba(7, 26, 61, .18);
}

.hero-slider {
  min-height: 620px;
  background:
    linear-gradient(rgba(7, 26, 61, .95), rgba(7, 26, 61, .95)),
    url("/assets/logo-officiel-bleu.png") center / 280px no-repeat;
}

.slider-loading {
  display: grid;
  place-items: center;
  min-height: 620px;
  color: white;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
}

.hero-slide {
  background-color: #071a3d;
}

.hero-logo {
  background: rgba(255, 255, 255, .96);
  padding: 5px;
}

.footer-logo {
  background: white;
  padding: 5px;
}

@media (max-width: 700px) {
  .brand img {
    width: 48px;
    height: 48px;
  }

  .hero-slider,
  .slider-loading {
    min-height: 560px;
  }
}


/* V5 Premium : logo bleu recadré et Hero principal */
.brand img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: #06152f;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 7px 22px rgba(5, 20, 45, .24);
}

.premium-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #06152f;
}

.premium-hero .hero-slider {
  position: absolute;
  inset: 0;
  min-height: 720px;
}

.premium-hero .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition:
    opacity 1.4s ease,
    transform 7s ease;
}

.premium-hero .hero-slide.active {
  opacity: 1;
  transform: scale(1.12);
}

.hero-brand-panel {
  position: relative;
  z-index: 4;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(380px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-brand-logo {
  width: min(520px, 44vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 30px 80px rgba(0,0,0,.46),
    0 0 0 8px rgba(255,255,255,.08);
  animation: logoFloat 5s ease-in-out infinite;
}

.hero-brand-copy {
  max-width: 690px;
  color: white;
  text-shadow: 0 3px 20px rgba(0,0,0,.36);
}

.hero-brand-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.hero-brand-copy p {
  max-width: 700px;
  font-size: clamp(1.05rem, 1.9vw, 1.42rem);
  line-height: 1.7;
  color: rgba(255,255,255,.92);
}

.hero-brand-copy .eyebrow {
  color: #efbf4b;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.footer-logo,
.admin-logo {
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: #06152f;
}

@media (max-width: 900px) {
  .premium-hero,
  .premium-hero .hero-slider,
  .hero-brand-panel {
    min-height: 760px;
  }

  .hero-brand-panel {
    grid-template-columns: 1fr;
    align-content: center;
    text-align: center;
    padding: 60px 0;
  }

  .hero-brand-logo {
    width: min(360px, 76vw);
    margin: 0 auto;
  }

  .hero-brand-copy {
    margin: 0 auto;
  }

  .hero-brand-copy .actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 52px;
    height: 52px;
  }

  .premium-hero,
  .premium-hero .hero-slider,
  .hero-brand-panel {
    min-height: 700px;
  }

  .hero-brand-panel {
    width: min(100% - 28px, 1180px);
    padding: 42px 0;
  }

  .hero-brand-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-brand-logo {
    width: min(290px, 78vw);
  }
}

/* V5.1 — gestion du diaporama et de la photo de l’Apôtre */
.admin-feature-card {
  border-top: 5px solid var(--primary);
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-section-heading h2 {
  margin: 5px 0 8px;
}

.admin-section-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-image-frame {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: #f7f9fc;
  color: var(--muted);
}

.admin-image-frame-wide {
  aspect-ratio: 16 / 7;
}

.admin-image-frame-portrait {
  width: min(100%, 310px);
  min-height: 360px;
  margin-inline: auto;
}

.admin-image-frame .image-preview {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.admin-image-frame-portrait .image-preview {
  object-position: top center;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-weight: 700;
}

.slider-thumb {
  width: 120px;
  height: 72px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.status-online {
  color: #0f6238;
  background: #def7e9;
}

.status-offline {
  color: #7a2730;
  background: #fde7e9;
}

.compact-actions {
  flex-wrap: wrap;
  gap: 6px;
}

.compact-actions .btn {
  padding: 8px 10px;
}

.compact-actions .btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #071a3d;
}

.hero-slides-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 680px;
  display: flex;
  align-items: center;
  /*
   * La première couche est le dégradé, la seconde est la photo.
   * La photo garde toute sa hauteur au lieu d'être agrandie et recadrée.
   */
  background-size: 100% 100%, auto 100%;
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity 1.1s ease, visibility 1.1s;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 54px;
  color: white;
  transform: none;
}

.hero-slide-content h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  font-size: clamp(2.45rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}

.hero-slide-content p {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 2px 15px rgba(0, 0, 0, .42);
}

.slider-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(4, 17, 42, .55);
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.slider-control:hover,
.slider-control:focus-visible {
  background: rgba(4, 17, 42, .86);
}

.slider-previous {
  left: 22px;
}

.slider-next {
  right: 22px;
}

.slider-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dot.active {
  width: 34px;
  border-radius: 999px;
  background: white;
}

.biography-text,
#home-apostle-text {
  white-space: pre-line;
}

.clamp-biography {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.contact-details-list {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.contact-detail {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.contact-detail strong,
.contact-detail span {
  display: block;
}

.contact-detail strong {
  margin-bottom: 5px;
  color: var(--primary);
}

@media (max-width: 760px) {
  .hero-slider,
  .hero-slide {
    min-height: 600px;
  }

  .hero-slide-content {
    width: min(100% - 38px, 1180px);
    padding-inline: 42px;
  }

  .slider-control {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .slider-previous {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .admin-section-heading {
    display: block;
  }
}


/* V5.2 — gestion sécurisée et remplacement des administrateurs */
.admin-security-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.admin-security-stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.admin-security-stat strong,
.admin-security-stat span {
  display: block;
}

.admin-security-stat strong {
  color: var(--primary);
  font-size: 1.45rem;
}

.admin-user-card {
  display: grid;
  gap: 10px;
  border-left: 5px solid var(--success);
}

.admin-user-card.is-suspended {
  border-left-color: var(--danger);
  background: #fff8f7;
}

.admin-account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.status-badge.is-active {
  color: #12613c;
  background: #dcf8e9;
}

.status-badge.is-suspended {
  color: #8e1f17;
  background: #fde7e4;
}

.admin-replacement-panel {
  margin: 24px 0;
  padding: 22px;
  border: 2px solid var(--secondary);
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.admin-replacement-panel h3 {
  margin-top: 0;
}

.admin-warning-text {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1d6;
  color: #6f4d00;
}

@media (max-width: 760px) {
  .admin-security-summary {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    /* Sur petit écran, l'image remplit la zone sans animation de zoom. */
    background-size: 100% 100%, cover;
    background-position: center, center;
  }

  .hero-slide-content {
    width: min(100% - 28px, 1160px);
    padding: 56px 42px;
  }

  .hero-slide-content h1 {
    font-size: clamp(2.25rem, 11vw, 3.8rem);
  }
}

/* V5.3 — correction du logo et reprise automatique du diaporama */
.brand img,
.footer-logo,
.admin-logo,
.login-logo {
  display: block;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  padding: 3px;
}

.brand img {
  flex: 0 0 auto;
}

.hero-slide {
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition-duration: .25s;
  }
}
