/* ============================================================
   CA Plan de Cuques — Feuille de style partagée
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Arial', sans-serif;
  background: #f0f0f0;
  color: #333;
}

/* ─── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: #2e7d32;
  color: #aaa;
  font-size: 11px;
  padding: 4px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #aaa; text-decoration: none; }
.topbar a:hover { color: #fff; }
.admin-badge {
  background: #e8282d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 4px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: #0d1b2a;
  background-image: url('https://s1.static-footeo.com/uploads/caplandecuques/themes/default/images/banner__saeb61.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 20px 30px;
  gap: 24px;
  position: relative;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.65);
}
.header-logo {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}
.header-title {
  position: relative;
  z-index: 1;
}
.header-title h1 {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.header-title p {
  font-size: 13px;
  color: #cde;
  margin-top: 4px;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
nav {
  background: #2e7d32;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
nav a {
  color: #dce8f5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 16px;
  display: block;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav a:hover, nav a.active {
  background: #e8282d;
  color: #fff;
}
.nav-divider { flex: 1; }

/* ─── ADMIN BAR ───────────────────────────────────────────── */
.admin-bar {
  background: #1a1a2e;
  border-bottom: 2px solid #e8282d;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #aaa;
  max-width: 100%;
}
.admin-bar .admin-label {
  font-weight: 700;
  color: #e8282d;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
}
.admin-bar .btn-add {
  background: #e8282d;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.admin-bar .btn-add:hover { background: #c0242a; }
.admin-bar .btn-logout {
  background: transparent;
  color: #888;
  border: 1px solid #444;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  margin-left: auto;
  text-transform: uppercase;
}
.admin-bar .btn-logout:hover { border-color: #aaa; color: #ccc; }

/* ─── MAIN LAYOUT ─────────────────────────────────────────── */
.page-wrapper {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}
.page-narrow { max-width: 860px; }
.page-narrower { max-width: 760px; }
.page-wrapper.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ─── SECTION TITLE ───────────────────────────────────────── */
.section-title {
  background: #2e7d32;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 6px 6px 0 0;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .dot {
  width: 8px; height: 8px;
  background: #e8282d;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── WIDGET / CARD ───────────────────────────────────────── */
.widget {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.widget-body { padding: 14px 16px; }
.news-section {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  margin-bottom: 24px;
}

/* ─── FEED TABS ───────────────────────────────────────────── */
.feed-tabs {
  display: flex;
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}
.feed-tab {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  user-select: none;
}
.feed-tab.active {
  color: #e8282d;
  border-bottom-color: #e8282d;
}

/* ─── PHOTOS GRID ─────────────────────────────────────────── */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
}
.photo-thumb {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  transition: opacity .2s;
}
.photo-thumb:hover { opacity: .8; }

/* ─── TABLE ───────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead th {
  background: #f0f3f7;
  color: #444;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid #f0f0f0; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafcff; }
tbody td { padding: 8px 10px; }
.result-w { color: #2e7d32; font-weight: 700; }
.result-l { color: #c62828; font-weight: 700; }
.result-d { color: #f57c00; font-weight: 700; }
.news-tag {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #2e7d32;
  color: #aaa;
  margin-top: 40px;
  padding: 32px 20px 16px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.footer-grid p { font-size: 12px; line-height: 1.7; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 6px; }
.footer-grid ul li a { color: #aaa; text-decoration: none; font-size: 12px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #888; text-decoration: none; }
.footer-bottom a:hover { color: #ccc; }
.footer-logo {
  width: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  opacity: .85;
}

/* ─── LOGIN PAGE ──────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: #0d1b2a;
  background-image: url('https://s1.static-footeo.com/uploads/caplandecuques/themes/default/images/banner__saeb61.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.8);
}
.login-card {
  position: relative;
  z-index: 1;
  background: rgba(20, 34, 54, 0.97);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 40px 36px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
  text-align: center;
}
.login-card .header-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.login-card h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.login-card .club-name {
  color: #7a9cbd;
  font-size: 13px;
  margin-bottom: 32px;
}
.login-card #username-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #2a4060;
  background: rgba(13, 27, 42, 0.8);
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color .2s;
}

.login-card input[type=password] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #2a4060;
  background: rgba(13, 27, 42, 0.8);
  color: #fff;
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color .2s;

}
.login-card input[type=password]:focus { border-color: #2e7d32; }
.login-card input[type=password]::placeholder { color: #556; }
.btn-primary {
  width: 100%;
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top:12px;
  transition: background .2s;
}
.btn-primary:hover { background: #256029; }
.login-error {
  color: #e8282d;
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-10px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.shake { animation: shake .4s ease; }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.modal-box h2 {
  font-size: 18px;
  color: #0d1b2a;
  margin-bottom: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #2e7d32; }
.form-group textarea { min-height: 90px; resize: vertical; }
/* Quill éditeur riche dans les modales */
.form-group .quill-editor {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 150px;
}
.form-group .quill-editor .ql-editor {
  min-height: 120px;
  font-size: 14px;
  font-family: inherit;
}
.form-group .quill-editor .ql-toolbar {
  border-radius: 4px 4px 0 0;
  border-color: #ddd;
}
.form-group .quill-editor .ql-container {
  border-radius: 0 0 4px 4px;
  border-color: #ddd;
}
.modal-box:has(.quill-editor) { max-width: 680px; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.btn-save {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-save:hover { background: #256029; }
.btn-cancel {
  background: #f0f0f0;
  color: #555;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
.btn-cancel:hover { background: #e0e0e0; }

/* ─── BIO PAGE ────────────────────────────────────────────── */
.bio-profile-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  margin-bottom: 24px;
}
.bio-photo {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: top;
  display: block;
  background: #c8d0da;
}
.bio-name-bar {
  background: #0d1b2a;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bio-name {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}
.bio-number {
  background: #e8282d;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 4px;
  padding: 4px 14px;
  min-width: 48px;
  text-align: center;
}
.bio-edit-btn {
  background: rgba(255,255,255,.15);
  color: #dce8f5;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  transition: background .2s;
}
.bio-edit-btn:hover { background: rgba(255,255,255,.25); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.stat-card {
  background: #f7f8fa;
  border-radius: 6px;
  padding: 14px 10px;
  text-align: center;
  border-top: 3px solid #2e7d32;
}
.stat-card.accent { border-top-color: #e8282d; }
.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: #0d1b2a;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .3px;
}
.bio-text-block {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  margin-bottom: 24px;
  overflow: hidden;
}
.bio-text-block .body { padding: 16px; font-size: 14px; color: #444; line-height: 1.8; }

/* ─── ACTUALITÉS PAGE ─────────────────────────────────────── */
.news-post {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  margin-bottom: 20px;
  overflow: hidden;
}
.news-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.news-post-date {
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.news-post-title {
  font-size: 16px;
  font-weight: 700;
  color: #0d1b2a;
  flex: 1;
}
.news-post-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.news-post-body {
  padding: 16px;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  white-space: normal;
}
.post-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}
.btn-edit {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-edit:hover { background: #256029; }
.btn-delete {
  background: #e8282d;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-delete:hover { background: #c0242a; }
.empty-state {
  text-align: center;
  color: #aaa;
  padding: 48px 16px;
  font-size: 14px;
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ─── SIDEBAR CATÉGORIES ──────────────────────────────────── */
.pv-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1200px;
  padding: 0 16px;
}
.pv-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: #2e7d32;
  border-radius: 6px 0 0 6px;
  border-right: 1px solid #e0e0e0;
  align-self: stretch;
}
.sidebar-header {
  padding: 14px 16px 8px;
  font-weight: 600;
  font-size: .78rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
}
#category-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}
.cat-item {
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  font-size: .92rem;
  color: #fff;

  transition: background .15s;
}
.cat-item:hover { background: #648e66; }
.cat-item.active {
  color: #fff;
  border-left-color: #fff;
  font-weight: 600;
}
.cat-item-delete {
  float: right;
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}
.cat-item-delete:hover { color: #fff; }
.pv-main {
  flex: 1;
  min-width: 0;
  border-radius: 0 6px 6px 0;
}

/* ─── PHOTOS & VIDÉOS PAGE ────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 12px;
}
.media-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #c0cad6;
}
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
  display: block;
}
.media-item:hover img { transform: scale(1.06); }
.media-item .media-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-size: 11px;
  padding: 20px 8px 8px;
  opacity: 0;
  transition: opacity .2s;
}
.media-item:hover .media-caption { opacity: 1; }
.media-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(232,40,45,.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.media-item:hover .media-delete-btn { display: flex; }

.video-list { display: flex; flex-direction: column; gap: 16px; padding: 12px; }
.video-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.video-embed {
  position: relative;
  padding-top: 56.25%;
  background: #0d1b2a;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-meta {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.video-title {
  font-size: 14px;
  font-weight: 700;
  color: #0d1b2a;
  flex: 1;
}
.video-date {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}
.media-tab-content { display: none; }
.media-tab-content.active { display: block; }

/* ─── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ─── CHECKBOXES SÉLECTION MEDIA ─────────────────────────── */
.media-checkbox,
.video-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #2e7d32;
  z-index: 2;
}
.photo-item { position: relative; }
.video-item { position: relative; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */

/* Hamburger (masqué par défaut sur desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 10px 16px;
  cursor: pointer;
  line-height: 1;
}

/* Iframe La Une */
.une-iframe { height: 820px; }

@media (max-width: 768px) {
  .pv-wrapper { flex-direction: column; }
  .pv-sidebar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  #category-list {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0 8px 8px;
  }
  .cat-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 8px 14px;
  }
  .cat-item.active {
    border-left: none;
    border-bottom-color: #2e7d32;
  }
  .pv-main { border-radius: 0 0 6px 6px; }
}
@media (max-width: 900px) {
  .page-wrapper.with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-title h1 { font-size: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* Navigation hamburger */
  .nav-toggle { display: block; }
  .nav-inner { display: none; flex-direction: column; width: 100%; }
  .nav-inner.open { display: flex; }
  nav a { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.1); }

  /* Header */
  .header-logo { width: 60px; height: 60px; }
  .site-header { padding: 12px 16px; gap: 12px; }
  .header-title h1 { font-size: 18px; letter-spacing: 1px; }
  .header-title p { font-size: 11px; }

  /* Admin bar */
  .admin-bar { padding: 8px 12px; gap: 8px; }

  /* Layout */
  .footer-grid { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: repeat(3,1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-name { font-size: 20px; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .bio-photo { max-height: 260px; }

  /* Modal */
  .modal-overlay { padding: 8px; }
  .modal-box { padding: 20px 16px; max-width: 100%; border-radius: 8px; }
  .modal-box h2 { font-size: 16px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn-save,
  .modal-actions .btn-cancel { width: 100%; text-align: center; padding: 12px; }

  /* Tap targets */
  .topbar { min-height: 44px; align-items: center; }
  .feed-tab { padding: 12px 16px; font-size: 13px; }
  .btn-edit, .btn-delete { padding: 8px 16px; font-size: 12px; }
  .media-delete-btn { width: 34px; height: 34px; font-size: 16px; }

  /* News */
  .news-post-body { padding: 12px; font-size: 13px; }
  .news-post-img { max-height: 240px; }

  /* La Une iframe */
  .une-iframe { height: 560px; }
}
@media (max-width: 400px) {
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-name { font-size: 16px; }
  .bio-name-bar { padding: 12px 14px; gap: 10px; }
  .une-iframe { height: 480px; }
}

/* Appareils tactiles : boutons admin toujours visibles */
@media (hover: none) {
  .media-item .media-delete-btn,
  .photo-item .media-delete-btn,
  .video-item .media-delete-btn { display: flex; }
}

/* ─── PAGE PROFIL ─────────────────────────────────────────── */
.profile-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  margin-bottom: 24px;
  overflow: hidden;
}
.profile-card .section-title { border-radius: 8px 8px 0 0; }
.profile-card .widget-body { padding: 20px; }

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.profile-username {
  font-size: 20px;
  font-weight: 900;
  color: #0d1b2a;
}
.pwd-feedback {
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}
.pwd-feedback.ok    { color: #2e7d32; }
.pwd-feedback.error { color: #e8282d; }

/* ─── TABLE UTILISATEURS ──────────────────────────────────── */
.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}
.user-table th {
  background: #f0f3f7;
  color: #444;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}
.user-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.user-table tr:last-child td { border-bottom: none; }
.user-table tr:hover td { background: #fafcff; }
.user-table .current-user td { background: #f0fff0; font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
