/* ═══════════════════════════════════════════════════════════════
   GIAC — CSS Personnalisé
   Couleurs : Jungle Green #3D6B1A | IAC Red #B02424 | Amber Gold #C8941A
═══════════════════════════════════════════════════════════════ */

:root {
  --giac-green:       #3D6B1A;
  --giac-green-dark:  #2d5012;
  --giac-green-light: #f0f5ea;
  --giac-red:         #B02424;
  --giac-red-dark:    #8e1c1c;
  --giac-gold:        #C8941A;
  --giac-gold-light:  #fdf5e4;
  --giac-dark:        #0d1a05;
  --giac-admin-bg:    #1e3d0a;
  --bs-font-sans-serif: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ─── Base ──────────────────────────────────────────────────── */
body { color: #1a1a1a; background: #fff; }
a { color: var(--giac-green); text-decoration: none; }
a:hover { color: var(--giac-green-dark); }

/* ─── Navbar ────────────────────────────────────────────────── */
.giac-navbar {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid #e8f0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 8px 0;
}
.giac-navbar .nav-link {
  color: #2d2d2d !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.giac-navbar .nav-link:hover,
.giac-navbar .nav-link.active {
  color: var(--giac-green) !important;
  background: var(--giac-green-light);
}
.giac-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--giac-green);
}
.logo-giac { color: var(--giac-green); }

/* ─── Boutons ───────────────────────────────────────────────── */
.btn-giac-green {
  background: var(--giac-green);
  color: #fff;
  border: 2px solid var(--giac-green);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-giac-green:hover { background: var(--giac-green-dark); border-color: var(--giac-green-dark); color: #fff; }

.btn-giac-red {
  background: var(--giac-red);
  color: #fff;
  border: 2px solid var(--giac-red);
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-giac-red:hover { background: var(--giac-red-dark); border-color: var(--giac-red-dark); color: #fff; }

.btn-giac-gold {
  background: var(--giac-gold);
  color: #fff;
  border: 2px solid var(--giac-gold);
  border-radius: 8px;
  font-weight: 600;
}
.btn-giac-gold:hover { opacity: 0.9; color: #fff; }

.btn-giac-gold-outline {
  background: transparent;
  color: var(--giac-gold);
  border: 1.5px solid var(--giac-gold);
  border-radius: 8px;
  font-weight: 600;
}
.btn-giac-gold-outline:hover { background: var(--giac-gold); color: #fff; }

.btn-giac-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  font-weight: 600;
}
.btn-giac-outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ─── Hero ──────────────────────────────────────────────────── */
.giac-hero {
  min-height: 90vh;
  background: var(--giac-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.giac-hero .hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.giac-hero .hero-content { position: relative; z-index: 2; width: 100%; }
.giac-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  margin-bottom: 20px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--giac-gold); border-radius: 50%; flex-shrink:0 }
.giac-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}
.giac-hero h1 .text-gold { color: var(--giac-gold); }
.giac-hero .lead { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 540px; }

/* ─── Sections ──────────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  background: var(--giac-green-light);
  color: var(--giac-green);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; color: #0d1a0a; }
.text-giac-green { color: var(--giac-green) !important; }
.text-giac-red   { color: var(--giac-red) !important; }
.text-giac-gold  { color: var(--giac-gold) !important; }

/* ─── Cards ─────────────────────────────────────────────────── */
.giac-card {
  border: 1px solid #e8f0e0;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.giac-card:hover { box-shadow: 0 8px 32px rgba(61,107,26,0.12); transform: translateY(-2px); }

.stat-card {
  background: #fff;
  border: 1px solid #e8f0e0;
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
}
.stat-card .stat-number { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--giac-green); }
.stat-card .stat-label  { font-size: 0.82rem; color: #666; font-weight: 500; }

/* ─── Table annuaire ─────────────────────────────────────────── */
.table-giac thead th {
  background: #f5f9f0;
  color: #2d2d2d;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #d4e6c0;
}
.table-giac tbody tr:hover { background: var(--giac-green-light); cursor: pointer; }
.badge-activite {
  background: #e8f4de;
  color: var(--giac-green);
  border: 1px solid #c5e0a8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ─── Newsletter ─────────────────────────────────────────────── */
.giac-newsletter {
  background: linear-gradient(135deg, var(--giac-dark) 0%, var(--giac-green-dark) 100%);
  border-radius: 20px;
  padding: 40px 28px;
  color: #fff;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.giac-footer { background: #0a1a04; color: #e0e8d8; }
.footer-title { color: #fff; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-text  { color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-links a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--giac-gold); }
.footer-social {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.footer-social:hover { background: var(--giac-gold); border-color: var(--giac-gold); color: #fff; }
.footer-bottom { background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom-text { color: rgba(255,255,255,0.35); }
.footer-admin-link { color: rgba(255,255,255,0.3); font-size: 0.78rem; transition: color 0.2s; }
.footer-admin-link:hover { color: var(--giac-gold); }

/* ─── Blog ───────────────────────────────────────────────────── */
.blog-card-img { height: 200px; object-fit: cover; width: 100%; }
.blog-cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--giac-green-light);
  color: var(--giac-green);
}

/* ─── Événements ─────────────────────────────────────────────── */
.event-date-badge {
  width: 56px;
  text-align: center;
  background: var(--giac-green);
  color: #fff;
  border-radius: 10px;
  padding: 8px 0;
  flex-shrink: 0;
}
.event-date-badge .day   { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.event-date-badge .month { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.event-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 50px;
  background: var(--giac-gold-light);
  color: var(--giac-gold);
  border: 1px solid #f0d88a;
}
.ev-card:focus { outline: 2px solid var(--giac-green); outline-offset: 2px; }

/* ─── Alert flash ────────────────────────────────────────────── */
.alert-giac { border-radius: 10px; border: none; font-size: 0.9rem; }

/* ─── Mot du Président ───────────────────────────────────────── */
.president-section { background: #fff; }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--giac-gold);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--giac-gold);
  flex-shrink: 0;
}

.president-heading {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: #0d1a0a;
}
.president-heading .accent { color: var(--giac-red); }

.president-body {
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
}

.president-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.president-signature .sig-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--giac-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.president-signature .sig-name   { font-weight: 700; font-size: 0.95rem; color: #0d1a0a; }
.president-signature .sig-title  { font-size: 0.8rem; color: #888; }

.president-img-wrap {
  position: relative;
}
.president-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.president-quote-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #fff;
  border-left: 4px solid var(--giac-gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.president-quote-card .quote-text {
  font-style: italic;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.55;
  margin: 0 0 8px;
}
.president-quote-card .quote-attr {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--giac-gold);
}

@media (max-width: 767.98px) {
  .president-quote-card { left: 12px; bottom: 12px; max-width: calc(100% - 24px); position: relative; bottom: auto; left: auto; margin-top: 16px; }
  .president-img-wrap img { height: 260px; }
}

/* ─── Page À propos ──────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════
   ORGANIGRAMME — oc- (org chart)
══════════════════════════════════════════════════════════════ */
:root { --oc-line: #8fc45c; --oc-v: 28px; }

.oc-wrap {
  overflow-x: auto;
  padding: 4px 0 24px;
  -webkit-overflow-scrolling: touch;
}

/* Tree base: flex row */
.oc-tree,
.oc-tree ul {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Root li */
.oc-tree > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Sub-UL: space above + vertical line coming from parent card */
.oc-tree li > ul {
  padding-top: var(--oc-v);
  position: relative;
}
.oc-tree li > ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: var(--oc-v);
  background: var(--oc-line);
}

/* Non-root LI: flex column + space above for connector zone */
.oc-tree li li {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: var(--oc-v);
  padding-left: 18px;
  padding-right: 18px;
}

/* LEFT half of horizontal connector */
.oc-tree li li::before {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: var(--oc-v);
  border-top: 2px solid var(--oc-line);
}
/* RIGHT half + vertical drop to card */
.oc-tree li li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: var(--oc-v);
  border-top: 2px solid var(--oc-line);
  border-left: 2px solid var(--oc-line);
}
/* First child: no left horizontal half */
.oc-tree li li:first-child::before { border: none; }
/* Last child: no right horizontal, only vertical drop */
.oc-tree li li:last-child::after   { width: 0; border-top: none; border-left: 2px solid var(--oc-line); }

/* ─── CARDS ──────────────────────────────────────────────────── */
.oc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 18px 14px;
  border-radius: 14px;
  min-width: 150px;
  max-width: 196px;
  position: relative;
  transition: transform .18s, box-shadow .18s;
  cursor: default;
}
.oc-card:hover { transform: translateY(-3px); }

/* Level 0 — Président/Directeur */
.oc-lv0 {
  background: linear-gradient(145deg, #1e3d0a 0%, #3d6b1a 100%);
  color: #fff;
  min-width: 190px;
  box-shadow: 0 10px 28px rgba(30,61,10,.32);
  border: 2px solid rgba(255,255,255,.1);
}
.oc-lv0 .oc-name    { color: #fff; font-size: .88rem; }
.oc-lv0 .oc-role    { color: #f5c842; }
.oc-lv0 .oc-division{ color: rgba(255,255,255,.6); }
.oc-lv0 .oc-initials{ background: rgba(255,255,255,.18); color: #fff; }

/* Level 1 — SG / VP */
.oc-lv1 {
  background: #fff;
  border: 1.5px solid #d4e6c0;
  box-shadow: 0 4px 16px rgba(61,107,26,.1);
}
.oc-lv1::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--giac-green);
  border-radius: 0 0 3px 3px;
}
.oc-lv1 .oc-name { color: #1a2e0a; font-size: .83rem; }
.oc-lv1 .oc-role { color: var(--giac-gold); }

/* Level 2+ — Régionaux / autres */
.oc-lv2 {
  background: #f4fae8;
  border: 1.5px solid #c8dca4;
  box-shadow: 0 2px 8px rgba(61,107,26,.07);
  padding: 12px 14px;
  min-width: 130px;
}
.oc-lv2 .oc-name { font-size: .78rem; }
.oc-lv2 .oc-role { color: var(--giac-green); }

/* Avatar & initiales */
.oc-avatar {
  width: 46px; height: 46px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 2px solid rgba(255,255,255,.35);
  flex-shrink: 0;
}
.oc-initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(61,107,26,.1);
  color: var(--giac-green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  margin-bottom: 8px; flex-shrink: 0;
}
.oc-name     { font-weight: 700; font-size: .82rem; line-height: 1.3; color: #1a2e0a; }
.oc-role     { font-size: .69rem; font-weight: 600; margin-top: 3px;
               text-transform: uppercase; letter-spacing: .45px; }
.oc-division { font-size: .67rem; color: #888; margin-top: 2px; }

/* ─── RESPONSIVE mobile : pile verticale ─────────────────────── */
@media (max-width: 767.98px) {
  .oc-tree, .oc-tree ul { flex-direction: column; align-items: center; }
  .oc-tree li li { padding-left: 0; padding-right: 0; }
  /* Suppress horizontal parts, keep only vertical drop */
  .oc-tree li li::before { display: none; }
  .oc-tree li li::after  {
    left: 50%; transform: translateX(-50%);
    width: 2px; border-top: none;
    border-left: 2px solid var(--oc-line);
  }
  .oc-tree li li:last-child::after {
    width: 2px; border-left: 2px solid var(--oc-line);
  }
}

/* OLD org- rules kept for backward compat (hidden) */
.org-node {
  background: #fff;
  border: 2px solid #e8f0e0;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  transition: all 0.2s;
}
.org-node.president  { border-color: var(--giac-red); background: #fff0f0; }
.org-node.sg         { border-color: var(--giac-gold); background: var(--giac-gold-light); }
.org-node.regional   { border-color: var(--giac-green); background: var(--giac-green-light); }
.org-connector { width: 2px; height: 32px; background: #cde4b0; margin: 0 auto; }
.org-connector-h { height: 2px; background: #cde4b0; flex: 1; margin-top: 40px; }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-form-card { border: 1px solid #e8f0e0; border-radius: 16px; }
.form-control-giac {
  border: 1.5px solid #dde8d0;
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.form-control-giac:focus {
  border-color: var(--giac-green);
  box-shadow: 0 0 0 3px rgba(61,107,26,0.1);
}
.form-label-sm { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #555; margin-bottom: 6px; }

/* ─── Catalogue ──────────────────────────────────────────────── */
.catalogue-img { height: 180px; object-fit: cover; }
.categorie-filter .btn { border-radius: 50px; font-size: 0.82rem; }
.categorie-filter .btn.active, .categorie-filter .btn:hover {
  background: var(--giac-green); color: #fff; border-color: var(--giac-green);
}

/* ─── Utilitaires ────────────────────────────────────────────── */
.rounded-12 { border-radius: 12px; }
.rounded-16 { border-radius: 16px; }
.shadow-sm-giac { box-shadow: 0 2px 12px rgba(61,107,26,0.08); }
.bg-giac-green   { background-color: var(--giac-green) !important; }
.bg-giac-red     { background-color: var(--giac-red) !important; }
.bg-giac-gold    { background-color: var(--giac-gold) !important; }
.bg-giac-dark    { background-color: var(--giac-dark) !important; }
.border-giac-green { border-color: var(--giac-green) !important; }
.min-w-0 { min-width: 0; }

/* ─── Admin ──────────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 256px;
  background: var(--giac-admin-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.admin-main { flex: 1; margin-left: 256px; min-height: 100vh; background: #f5f5f5; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-content { padding: 20px; flex: 1; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 1px 8px;
  text-decoration: none;
  transition: all 0.15s;
}
.admin-nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-link.active { background: rgba(200,148,26,0.15); color: var(--giac-gold); border: 1px solid rgba(200,148,26,0.25); }
.admin-nav-link i { width: 18px; text-align: center; opacity: 0.8; }
.admin-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.admin-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; cursor: pointer; transition: box-shadow 0.2s; }
.admin-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.admin-table th { background: #f9fafb; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; border-bottom: 1px solid #e5e7eb; padding: 10px 16px; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; font-size: 0.875rem; color: #374151; }
.admin-table tr:hover td { background: #fafafa; }
.admin-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; }
.badge-green  { background: #ecfdf5; color: #065f46; }
.badge-red    { background: #fef2f2; color: #991b1b; }
.badge-amber  { background: #fffbeb; color: #92400e; }
.badge-gray   { background: #f3f4f6; color: #374151; }
.badge-purple { background: #f5f3ff; color: #5b21b6; }
.badge-blue   { background: #eff6ff; color: #1e40af; }
.btn-action { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: none; cursor: pointer; transition: all 0.15s; font-size: 0.82rem; background: #f3f4f6; color: #6b7280; }
.btn-action:hover { background: #e5e7eb; color: #374151; }
.btn-action.edit:hover  { background: #fef3c7; color: #92400e; }
.btn-action.delete:hover { background: #fef2f2; color: #991b1b; }
.modal-giac .modal-content { border-radius: 16px; border: none; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.modal-giac .modal-header { border-bottom: 1px solid #f3f4f6; padding: 20px 24px 16px; }

/* ─── Article Journal ────────────────────────────────────────── */
.journal-header {
  background: #fafaf8;
  border-bottom: 1px solid #e8f0e0;
  padding: 48px 0 36px;
}
.journal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
  margin-bottom: 24px;
}
.journal-back:hover { color: var(--giac-green); }
.journal-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: #0d1a0a;
  margin-bottom: 16px;
  font-family: Georgia, 'Times New Roman', serif;
}
.journal-lead {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  border-left: 3px solid var(--giac-gold);
  padding-left: 16px;
}
.journal-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e8f0e0;
}
.byline-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--giac-green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.journal-hero-img { padding: 32px 0 0; }
.journal-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #222;
}
.journal-body p { margin-bottom: 1.4em; }
.journal-body h2, .journal-body h3 { font-family: Georgia, serif; margin: 2em 0 0.8em; color: #0d1a0a; }
.journal-body blockquote {
  border-left: 4px solid var(--giac-gold);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--giac-gold-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}
.journal-footer-bar { padding-top: 24px; }
.journal-sidebar { position: sticky; top: 80px; }
.journal-related {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}
.journal-related:hover { background: var(--giac-green-light); color: var(--giac-green); }
.journal-related-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.journal-related-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }

/* ─── Responsive Public ──────────────────────────────────────── */
@media (max-width: 991.98px) {
  .giac-hero { min-height: 75vh; }
  .giac-hero .lead { font-size: 0.95rem; }
  .giac-newsletter { padding: 32px 20px; }
}

@media (max-width: 767.98px) {
  .giac-hero { min-height: 65vh; padding: 20px 0; }
  .giac-hero h1 { font-size: 1.9rem; }
  .giac-hero .hero-badge { font-size: 0.72rem; padding: 4px 10px; }
  .giac-hero .lead { font-size: 0.9rem; }
  .giac-hero .btn { padding: 10px 18px; font-size: 0.9rem; }

  .section-title { font-size: 1.4rem; }
  .stat-card { padding: 16px 10px; }
  .stat-card .stat-number { font-size: 1.7rem; }

  .giac-newsletter { border-radius: 14px; padding: 28px 16px; }
  .giac-newsletter h3 { font-size: 1.1rem; }
  .giac-newsletter .d-flex { flex-direction: column; gap: 12px !important; }
  .giac-newsletter input { width: 100%; }

  /* Footer mobile */
  .giac-footer .row { flex-direction: column; gap: 24px; }

  /* Blog mobile */
  .blog-card-img { height: 160px; }

  /* Événements mobile */
  .event-date-badge { width: 48px; }
  .event-date-badge .day { font-size: 1.2rem; }

  /* À propos — organigramme */
  .org-branch .d-flex { flex-direction: column; align-items: center; }
}

@media (max-width: 575.98px) {
  .section-badge { font-size: 0.7rem; }
  .btn-giac-red, .btn-giac-outline { padding: 10px 16px; font-size: 0.875rem; }

  /* Navbar mobile */
  .giac-navbar { padding: 6px 0; }
  .navbar-collapse { background: rgba(255,255,255,0.98); border-radius: 0 0 12px 12px; padding: 8px 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

  /* Stats 2-col */
  .stat-card .stat-label { font-size: 0.75rem; }

  /* Articles 1-col */
  .categorie-filter { gap: 6px !important; }
  .categorie-filter .btn { font-size: 0.75rem; padding: 4px 10px; }

  /* Journal */
  .journal-header { padding: 28px 0 24px; }
  .journal-title { font-size: 1.5rem; }
  .journal-body { font-size: 0.95rem; }
  .journal-lead { font-size: 0.95rem; }

  /* Newsletter single-col */
  .giac-newsletter form { flex-direction: column; }
}

/* ─── Responsive Admin ───────────────────────────────────────── */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
  .admin-overlay.visible { display: block; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 12px; }
  .admin-table th, .admin-table td { padding: 8px 12px; }
}

@media (max-width: 575.98px) {
  .admin-stat-card { padding: 14px; }
  .admin-content { padding: 12px; }
  /* Stack admin table on very small screens */
  .admin-table { font-size: 0.8rem; }
  .admin-table .d-flex { flex-direction: column; gap: 2px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   NOUVELLES SECTIONS : Catalogue · Produit · Témoignages · Partenaires
═══════════════════════════════════════════════════════════════ */

/* ─── Catalogue public ───────────────────────────────────────── */
.produit-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8f0e0;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
  color: inherit;
  text-decoration: none;
}
.produit-card:hover {
  box-shadow: 0 12px 40px rgba(61,107,26,0.14);
  transform: translateY(-4px);
  color: inherit;
}
.produit-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f3f4f6;
}
.produit-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.produit-card:hover .produit-card-img { transform: scale(1.06); }

.produit-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,26,5,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.produit-card:hover .produit-card-overlay { opacity: 1; }

.produit-photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.produit-card-body {
  padding: 16px;
}

/* ─── Détail produit ─────────────────────────────────────────── */
.produit-prix {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--giac-green);
}
.produit-artisan-card {
  background: #f9fbf6;
  border: 1.5px solid #d4e6c0;
  border-radius: 14px;
  padding: 20px;
}
.mt-6 { margin-top: 4rem; }

/* ─── Témoignages carrousel ──────────────────────────────────── */
.temoignage-card {
  background: #fff;
  border: 1px solid #e8f0e0;
  border-radius: 16px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 16px rgba(61,107,26,0.06);
  transition: box-shadow 0.2s;
}
.temoignage-card:hover { box-shadow: 0 8px 32px rgba(61,107,26,0.12); }

.temoig-quote-icon {
  font-size: 2.8rem;
  line-height: 1;
  color: var(--giac-green);
  opacity: 0.15;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.temoig-text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #333;
  flex-grow: 1;
  font-style: italic;
  margin-bottom: 24px;
}
.temoig-author { border-top: 1px solid #e8f0e0; padding-top: 16px; }
.temoig-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--giac-green-light);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.temoig-name   { font-weight: 700; font-size: 0.9rem; color: #1a1a1a; }
.temoig-metier { font-size: 0.78rem; color: var(--giac-green); font-weight: 500; }

.temoig-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d4e6c0;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.temoig-dot.active { background: var(--giac-green); transform: scale(1.25); }

.temoig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1.5px solid #e8f0e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--giac-green);
  transition: all 0.2s;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.temoig-arrow:hover { background: var(--giac-green); color: #fff; border-color: var(--giac-green); }
.temoig-prev { left: -20px; }
.temoig-next { right: -20px; }

#temoignagesCarousel { position: relative; padding: 0 0 48px; }

@media (max-width: 767.98px) {
  .temoig-prev { left: 0; }
  .temoig-next { right: 0; }
  .temoignage-card { padding: 20px 16px 18px; }
}

/* ─── Partenaires carrousel ──────────────────────────────────── */
.partners-carousel-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 12px 0;
}
.partners-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: partnersScroll 28s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }
.partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #e8f0e0;
  border-radius: 12px;
  height: 70px;
  min-width: 160px;
  transition: all 0.2s;
}
.partner-item:hover {
  border-color: var(--giac-green);
  box-shadow: 0 4px 16px rgba(61,107,26,0.1);
}
.partner-logo {
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(0.6);
  opacity: 0.75;
  transition: all 0.2s;
}
.partner-item:hover .partner-logo { filter: grayscale(0); opacity: 1; }
.partner-name-box {
  font-size: 0.82rem;
  font-weight: 700;
  color: #555;
  text-align: center;
  padding: 0 8px;
}

@keyframes partnersScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 575.98px) {
  .partners-track { gap: 20px; animation-duration: 18s; }
  .partner-item { min-width: 120px; height: 56px; padding: 8px 12px; }
  .partner-logo { max-height: 34px; max-width: 100px; }
}

/* ─── Admin catalogue ────────────────────────────────────────── */
.btn-giac-green.active, .btn-giac-green:disabled { opacity: 0.75; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — PUBLIC SITE
═══════════════════════════════════════════════════════════════ */

/* ─── Navbar mobile ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-collapse { background: #fff; border-radius: 12px; margin-top: 8px; padding: 12px 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
  .navbar-nav .nav-link { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; }
  .navbar-nav .nav-link:last-child { border-bottom: none; }
  .navbar .btn { margin-top: 10px; width: 100%; text-align: center; }
}

/* ─── Hero ──────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .giac-hero { min-height: 72vh; }
  .giac-hero .display-3 { font-size: 2rem; }
  .giac-hero .lead { font-size: 0.93rem; }
  .giac-hero .d-flex.gap-3 { flex-direction: column; gap: 10px !important; }
  .giac-hero .btn { width: 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
  .giac-hero { min-height: 80vh; padding-bottom: 40px; }
}

/* ─── Stats bar ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .stats-bar .row > [class*="col"] { padding: 12px 0; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stats-bar .row > [class*="col"]:last-child { border-bottom: none; }
  .stat-card .stat-number { font-size: 1.6rem; }
}

/* ─── Sections générales ────────────────────────────────────── */
@media (max-width: 767.98px) {
  .py-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .section-title { font-size: 1.5rem; }
  .contact-form-card { padding: 24px 16px !important; }
  .produit-card-body { padding: 12px; }
}

/* ─── Catalogue — grille ────────────────────────────────────── */
@media (max-width: 575.98px) {
  .produit-card-img-wrap { aspect-ratio: 3/2; }
  .temoig-prev { left: 4px; }
  .temoig-next { right: 4px; }
}

/* ─── Carrousel témoignages ─────────────────────────────────── */
@media (max-width: 767.98px) {
  #temoignagesCarousel .col-md-6:nth-child(2) { display: none; }
}

/* ─── Détail produit ────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .produit-prix { font-size: 1.3rem; }
  .produit-artisan-card { padding: 14px; }
}

/* ─── Blog / articles ───────────────────────────────────────── */
@media (max-width: 575.98px) {
  .article-card-img { height: 180px; }
}

/* ─── Page contact ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .contact-form-card { border-radius: 12px; }
}

/* ─── Annuaire ──────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .artisan-card { text-align: center; }
}

/* ─── Overflow horizontal global ───────────────────────────── */
body { overflow-x: hidden; }
.container, .container-fluid { max-width: 100%; }

/* ─── Images responsive ─────────────────────────────────────── */
img { max-width: 100% }
/* img { max-width: 100%; height: auto; } */

/* ─── Tables admin sur mobile ───────────────────────────────── */
@media (max-width: 767.98px) {
  .admin-table td, .admin-table th { white-space: nowrap; font-size: 0.8rem; padding: 8px 10px; }
  .admin-table td:nth-child(3) { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}

/* ═══════════════════════════════════════════════════════════════
   ANNUAIRE — Mobile cards & avatars
═══════════════════════════════════════════════════════════════ */
.artisan-avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--giac-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
}
.artisan-avatar-md {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--giac-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.artisan-mobile-card {
  background: #fff;
  border: 1px solid #e8f0e0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.artisan-mobile-card:hover,
.artisan-mobile-card:active {
  border-color: var(--giac-green);
  box-shadow: 0 4px 16px rgba(61,107,26,0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CTA À PROPOS
═══════════════════════════════════════════════════════════════ */
.cta-apropos-banner {
  background: linear-gradient(135deg, #f0f7e8 0%, #fff 60%);
  border: 1.5px solid #d4e6c0;
  border-radius: 20px;
  padding: 40px 48px;
}
.cta-apropos-img {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 767.98px) {
  .cta-apropos-banner { padding: 24px 20px; }
  .cta-apropos-banner .btn-lg { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER — champs blancs sur fond vert
═══════════════════════════════════════════════════════════════ */
.nl-input {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 10px;
}
.nl-input::placeholder { color: rgba(255,255,255,0.55); }
.nl-input:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  box-shadow: none;
}

/* ─── Responsive newsletter form ─── */
@media (max-width: 575.98px) {
  .giac-newsletter { padding: 28px 20px; }
}
