

/* ─── About ───────────────────────────────────────────────── */
.about-section { background: var(--warm-white); }

.about-card-modern {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 4rem; align-items: center;
  padding: 3.5rem; background: #fff;
  border: 1px solid var(--border-light); position: relative;
}
/* Red-to-green top accent stripe — mirrors logo colour split */
.about-card-modern::before {
  content: ''; position: absolute;
  top: -1px; left: 3.5rem; width: 80px; height: 3px;
  background: linear-gradient(to right, var(--red) 60%, var(--green) 100%);
}

.about-img { position: relative; }
.about-img img { width: 100%; height: 320px; object-fit: contain; display: block; }
.about-img-frame {
  position: absolute; bottom: -12px; right: -12px;
  width: 60%; height: 60%;
  border: 1px solid var(--red); opacity: 0.22; pointer-events: none;
}

.about-text p { font-size: 1rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 2rem; }

/* ─── Partners ────────────────────────────────────────────── */
.partners-section { background: #fff; overflow: hidden; }
.partners-section .section-heading { margin-bottom: 2.5rem; }

.slider { overflow: hidden; width: 100%; }
.slide-track {
  display: flex; width: calc(250px * 14);
  animation: scroll 28s linear infinite;
}
.slide-track .slide { display: flex; align-items: center; justify-content: center; padding: 0 1.5rem; }
.slide-track .slide img { filter: grayscale(1) opacity(.5); transition: filter .3s; }
.slide-track .slide:hover img { filter: grayscale(0) opacity(1); }
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7)); }
}

/* ─── President ───────────────────────────────────────────── */
.president-section { background: var(--warm-white); }
.president-grid {
  display: grid; grid-template-columns: 320px 1fr 200px;
  gap: 4rem; align-items: start;
}

.president-img-wrap { position: relative; }
.president-img-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
/* Green corner frame — secondary brand colour as accent */
.president-img-accent {
  position: absolute; bottom: -16px; left: -16px;
  width: 50%; height: 40%;
  border: 1px solid var(--green); opacity: 0.4; pointer-events: none;
}

.president-body .section-heading { margin-bottom: 1.5rem; }
.president-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300; font-style: italic;
  color: var(--text-body); margin-top: 0.75rem; margin-bottom: 1.75rem;
}
.president-body p { font-size: 0.95rem; line-height: 1.9; color: var(--text-muted); }

.president-links { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 3rem; }
.pres-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border: 1px solid var(--border-light);
  background: #fff; transition: border-color .3s, background .3s;
}
.pres-link:hover { border-color: var(--red); background: rgba(139, 26, 26, 0.04); }
.pres-link span {
  font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-body); font-weight: 500;
}

/* ─── Facts / Stats ───────────────────────────────────────── */
.facts-section {
  background: var(--dark-mid);
  padding: 6rem 0; position: relative; overflow: hidden;
}
/* Radial red–green glow echoing the logo's two-colour identity */
.facts-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(61, 107, 65, 0.09)  0%, transparent 60%);
  pointer-events: none;
}

.facts-grid {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.fact-item { flex: 1; text-align: center; padding: 2rem; }
.fact-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 300;
  color: var(--red-light); line-height: 1; margin-bottom: 0.75rem;
}
.fact-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem; font-weight: 300;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(247, 244, 240, 0.45); line-height: 1.6;
}
.fact-divider {
  width: 1px; height: 60px;
  background: rgba(139, 26, 26, 0.25); flex-shrink: 0;
}

.posts_grid_wrapper {
  display: grid;
 grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.post_grid_item {
  background: var(--warm-white);
  border: 0.5px solid #e5e3de;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.post_grid_item:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(139, 26, 26, 0.09);
}

/* Image */
.post_image_box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f3f2ef;
}
.post_thumbnail {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.post_grid_item:hover .post_thumbnail { transform: scale(1.03); }

/* Date badge */
.post_date_badge {
  position: absolute;
  top: 14px; left: 14px;
  background: #fff;
  border: 0.5px solid #e5e3de;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 44px;
  line-height: 1;
}
.post_date_badge h3 {
  font-size: 17px; font-weight: 500;
  color: var(--red); margin: 0 0 2px;
}
.post_date_badge p {
  font-size: 11px; color: #888;
  text-transform: uppercase; letter-spacing: 0.1em; margin: 0;
}

/* Body */
.post_content_box {
  padding: 1.25rem 1.25rem 1rem;
  display: flex; flex-direction: column;
  gap: 0.6rem; flex: 1;
}

.post_content_box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400;
  line-height: 1.3; color: var(--dark);
  margin: 0;
}
.post_content_box a { text-decoration: none; color: inherit; }
.post_content_box a:hover h2 { color: var(--red); }

.post_excerpt_text {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post_excerpt_text p { margin: 0; }

.post_meta_info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 0.5px solid #e5e3de;
  font-size: 12px;
}
.post_meta_info a {
  color: var(--red); font-weight: 500;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 5px;
}
/* ─── Contact ─────────────────────────────────────────────── */
.contact-section { background: var(--warm-white); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 440px;
  gap: 4rem; align-items: start;
}
.map-wrap {
  overflow: hidden; border: 1px solid var(--border-light); margin-bottom: 1.5rem;
}
.map-wrap iframe { display: block; }

.contact-info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: #fff;
  border: 1px solid var(--border-light); transition: border-color .3s;
}
.contact-info-item:hover { border-color: var(--red); }
.contact-info-item div    { display: flex; flex-direction: column; }
.contact-info-item strong { font-size: 0.9rem; font-weight: 500; color: var(--dark); }
.contact-info-item span   { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 0.15rem; }

/* Form */
.contact-form-col { padding-top: 0.5rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-body); margin-bottom: 0.45rem;
}
.form-field input,
.form-field textarea {
  width: 100%; background: #fff;
  border: 1px solid var(--border-light); border-radius: 0;
  padding: 0.9rem 1rem;
  font-family: 'Barlow', sans-serif; font-size: 0.9rem;
  font-weight: 300; color: var(--dark);
  outline: none; transition: border-color .3s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--red); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ── Contact notice ── */
.contact-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 2rem 1.5rem;
  padding: 0.9rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  border-left: 3px solid;
  animation: fadeIn .3s ease;
}
.contact-notice--success {
 background: rgba(26, 107, 60, 0.06);
  border-color: var(--green);
  color: var(--green);
}
.contact-notice--error {
  background: rgba(139, 26, 26, 0.06);
  border-color: var(--red);
  color: var(--red);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form--loading {
  position: relative;
  pointer-events: none;
  user-select: none;
  opacity: 0.65;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-card-modern { grid-template-columns: 1fr; }
  .president-grid    { grid-template-columns: 1fr 1fr; }
  .president-links   { grid-column: span 2; flex-direction: row; padding-top: 0; }
  .contact-grid      { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .president-grid  { grid-template-columns: 1fr; }
  .president-links { flex-direction: row; grid-column: unset; }
  .facts-grid      { flex-direction: column; }
  .fact-divider    { width: 60px; height: 1px; }
   .posts_grid_wrapper {
    grid-template-columns: 1fr;
  }
}

.slide-bg.lcp {
  background-image: url("../images/Ville_de_Annaba.webp");
  background-size: cover;
  background-position: center;
}