﻿/* FATT Theme - Fédération Algérienne de Tennis de Table Version: 2.0.0 (refonte visuelle) Author: Maokaa Ajoutez dans le <head> de votre site (avant ce fichier) : <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Cairo:wght@400;600;700&display=swap" rel="stylesheet"> */ /* ===================== VARIABLES ===================== */
:root {
  /* Couleurs */
  --navy-900: #0f1f30;
  --navy-800: #16293d;
  --navy-700: #1f3a54;
  --navy-600: #2c4a68;
  --green-500: #96bf11; /* vert FATT d'origine */
  --green-600: #7fa40d;
  --green-700: #67850a;
  /* texte vert lisible sur fond clair */
  --green-100: #f0f6d9;
  --ball: #f28c28;
  /* orange de la balle, accent rare */
  --ink: #1c2833;
  --muted: #66727f;
  --line: #e4e8ec;
  --paper: #f5f7f9;
  --white: #ffffff; /* Typographie */
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Nunito", system-ui, sans-serif;
  --font-arabic: "Cairo", "Nunito", sans-serif; /* Dimensions */
  --header-h: 170px;
  --nav-h: 60px; /* Rayons et ombres (hiérarchisés) */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 48, 0.06),
    0 2px 6px rgba(15, 31, 48, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 31, 48, 0.08),
    0 12px 28px rgba(15, 31, 48, 0.06);
  --shadow-lg: 0 10px 24px rgba(15, 31, 48, 0.12),
    0 24px 48px rgba(15, 31, 48, 0.1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
} /* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 16px);
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  padding: 0;
  padding-top: calc(var(--header-h) + var(--nav-h));
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p {
  max-width: 70ch;
}
a {
  color: var(--green-700);
  transition: color 0.2s;
}
a:hover {
  color: var(--navy-700);
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--green-500);
  color: var(--navy-900);
}
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
} /* ===================== HEADER (LOGO + TITRE) ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--white);
}
.header-top,
.fatt-header-top {
  background: var(--white);
  padding: 12px 0;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.fatt-header-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}
.logo-container,
.fatt-header-top .header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logo-img {
  height: 140px !important;
  min-height: 140px !important;
  width: auto;
  margin-right: 22px;
  filter: drop-shadow(0 4px 10px rgba(15, 31, 48, 0.18));
}
.site-title {
  color: var(--navy-800);
}
.site-title h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
}
.site-title .site-title-ar {
  font-family: var(--font-arabic);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.site-title h2 {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  direction: rtl;
  color: var(--green-700);
} /* Variante .fatt-header-top */
.fatt-header-top .navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 16px;
}
.fatt-header-top .brand-text {
  display: flex;
  flex-direction: column;
}
.fatt-header-top .brand-main {
  font-family: var(--font-display);
  color: var(--navy-800);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fatt-header-top .brand-arabic {
  font-family: var(--font-arabic);
  color: var(--navy-800);
  font-size: 1.2rem;
  direction: rtl;
  font-weight: 600;
} /* ===================== NAVBAR ===================== */
.fatt-navbar {
  background: var(--navy-800) !important;
  padding: 0;
  margin: 0;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  width: 100%;
  min-height: var(--nav-h);
  z-index: 1029;
  box-shadow: 0 6px 20px rgba(15, 31, 48, 0.22);
  border-bottom: 3px solid var(--green-500);
}
.fatt-navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 15px 20px;
}
.fatt-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.fatt-navbar .navbar-toggler i {
  color: var(--white);
}
.fatt-navbar .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 16px 12px !important;
  transition: color 0.25s, background-color 0.25s;
} /* Soulignement qui apparaît au survol */
.fatt-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.fatt-navbar .navbar-nav .nav-link:hover {
  color: var(--green-500) !important;
  background-color: rgba(255, 255, 255, 0.04);
}
.fatt-navbar .navbar-nav .nav-link:hover::after,
.fatt-navbar .nav-item.active .nav-link::after {
  transform: scaleX(1);
}
.fatt-navbar .nav-item.active .nav-link {
  color: var(--green-500) !important;
  font-weight: 600;
  background-color: rgba(150, 191, 17, 0.1);
}
.fatt-navbar .dropdown-toggle::after {
  display: none;
} /* évite le conflit avec le soulignement */ /* Menus déroulants */
.dropdown-menu,
.fatt-navbar .dropdown-menu {
  background-color: var(--navy-700);
  border: none;
  border-top: 3px solid var(--green-500);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: 0;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
}
.dropdown-item,
.fatt-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 10px 22px;
  font-size: 0.92rem;
  transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}
.dropdown-item:hover,
.fatt-navbar .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--green-500) !important;
  padding-left: 28px;
} /* Ouverture au survol sur ordinateur */
@media (min-width: 992px) {
  .fatt-navbar .dropdown:hover > .dropdown-menu {
    display: block;
    animation: menuIn 0.2s var(--ease);
  }
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fatt-navbar .navbar-right .admin-link {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.88rem;
}
.fatt-navbar .navbar-right .admin-link:hover {
  color: var(--green-500) !important;
} /* ===================== HERO ===================== */
.page-hero {
  position: relative;
  background: linear-gradient(
      105deg,
      rgba(15, 31, 48, 0.88) 0%,
      rgba(15, 31, 48, 0.55) 55%,
      rgba(15, 31, 48, 0.35) 100%
    ),
    url("../assets/images/banner-accueil.jpg");
  background-size: cover;
  background-position: center;
  height: 60vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
} /* Fine bande verte-orange au bas du hero */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--green-500) 0 70%,
    var(--ball) 70% 100%
  );
} /* ===================== SECTIONS ===================== */
.section-title {
  position: relative;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: none;
} /* Trait court vert + point orange */
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--green-500);
}
.section-title i {
  color: var(--green-500);
  margin-right: 0.6rem;
}
.text-center .section-title::after,
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
} /* ===================== CARTES ===================== */
.news-card,
.competition-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s;
}
.news-card:hover,
.competition-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.news-card .card-img-top {
  transition: transform 0.6s var(--ease);
}
.news-card:hover .card-img-top {
  transform: scale(1.04);
}
.news-card .card-body,
.competition-card .card-body {
  padding: 1.5rem;
}
.news-card .card-title,
.competition-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-800);
}
.news-card .card-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
  background: var(--green-100);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 0.75rem;
} /* ===================== GALERIE ===================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  background: var(--navy-800);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), opacity 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.92;
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 31, 48, 0.92), transparent);
  padding: 28px 20px 18px;
  color: var(--white);
}
.gallery-caption h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--white);
}
.gallery-caption p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
} /* ===================== PARTENAIRES ===================== */
.sponsor-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease);
  height: 54px;
  object-fit: contain;
}
.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
/* ===================== FOOTER ===================== */
.fatt-footer {
  position: relative;
  background-color: var(--navy-900);
  color: var(--white);
  margin-top: 5rem;
  padding: 4rem 0 0;
}
.fatt-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--green-500) 0 70%,
    var(--ball) 70% 100%
  );
}
.fatt-footer .footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fatt-footer .footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.fatt-footer .footer-description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.fatt-footer .footer-address {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  font-style: normal;
  margin-bottom: 1.2rem;
}
.fatt-footer .footer-address p {
  margin-bottom: 0.5rem;
}
.fatt-footer .footer-address a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.fatt-footer .footer-address a:hover {
  color: var(--green-500);
}
.fatt-footer .footer-social {
  display: flex;
  gap: 10px;
}
.fatt-footer .social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease),
    border-color 0.25s;
}
.fatt-footer .social-link:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--navy-900);
  transform: translateY(-3px);
}
.fatt-footer .footer-column {
  position: relative;
}
.fatt-footer .footer-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.3rem;
  padding-bottom: 0.7rem;
  position: relative;
}
.fatt-footer .footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-500);
}
.fatt-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fatt-footer .footer-links li {
  margin-bottom: 0.65rem;
}
.fatt-footer .footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.fatt-footer .footer-links a:hover {
  color: var(--green-500);
  transform: translateX(4px);
}
.fatt-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.fatt-footer .copyright {
  margin: 0;
}
.fatt-footer .footer-legal {
  display: flex;
  gap: 0.75rem;
}
.fatt-footer .footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.fatt-footer .footer-legal a:hover {
  color: var(--green-500);
} /* ===================== FORMULAIRE DE CONTACT ===================== */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
}
.contact-form h3 {
  color: var(--navy-800);
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding-bottom: 0.75rem;
  position: relative;
}
.contact-form h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-500);
}
.form-group label,
.contact-form label {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.form-control {
  background-color: #fbfcfd;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form-control:hover {
  border-color: #cdd5dc;
}
.form-control:focus {
  background-color: var(--white);
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(150, 191, 17, 0.2);
}
.btn-primary {
  background-color: var(--green-500);
  border: 2px solid var(--green-500);
  color: white;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(150, 191, 17, 0.35);
  transition: background-color 0.25s, border-color 0.25s,
    transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--green-600);
  border-color: var(--green-600);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(150, 191, 17, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-outline-primary {
  color: var(--green-700);
  border: 2px solid var(--green-500);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.25s;
}
.btn-outline-primary:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--navy-900);
} 


.btn-outline-light {
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.25s;
}

.btn-lg {
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
}

/* ===================== CARTES D'INFORMATION ===================== */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-card h3 {
  color: var(--navy-800);
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.info-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}
.info-card a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: none;
}
.info-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
} /* ===================== BARRE LATÉRALE ===================== */
.sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sidebar-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-500);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eef1f4;
}
.sidebar-list li:last-child {
  border-bottom: none;
}
.sidebar-list a {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
  display: block;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.sidebar-list a:hover {
  color: var(--green-700);
  transform: translateX(3px);
}
.sidebar-list .date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
} /* ===================== PAGINATION ===================== */
.pagination .page-link {
  color: var(--navy-800);
  border: 1px solid var(--line);
  margin: 0 3px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s;
}
.pagination .page-link:hover {
  background-color: var(--green-100);
  border-color: var(--green-500);
  color: var(--green-700);
}
.pagination .page-item.active .page-link {
  background-color: var(--green-500);
  border-color: var(--green-500);
  color: var(--navy-900);
} /* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  :root {
    --header-h: 116px;
    --nav-h: 56px;
  }
  .header-top,
  .fatt-header-top {
    min-height: var(--header-h);
    padding: 10px 0;
  }
  .logo-img {
    height: 96px !important;
    min-height: 96px !important;
    width: auto;
  }
  .site-title h1 {
    font-size: 0.95rem;
  }
  .site-title h2 {
    font-size: 0.8rem;
  }
  .site-title .site-title-ar {
    font-size: 1.6rem;
  }
  .fatt-navbar .navbar-collapse {
    background: var(--navy-800);
    max-height: calc(100vh - var(--header-h) - var(--nav-h));
    overflow-y: auto;
  }
  .fatt-navbar .nav-link {
    padding: 12px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .fatt-navbar .nav-link::after {
    display: none;
  }
  .fatt-navbar .dropdown-menu {
    box-shadow: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.15);
  }
  .fatt-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .fatt-footer .footer-brand {
    grid-column: 1 / -1;
  }
  .fatt-footer .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
@media (max-width: 576px) {
  :root {
    --header-h: 100px;
  }
  .site-title h1 {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }
  .site-title h2 {
    font-size: 0.75rem;
  }
  .site-title .site-title-ar {
    font-size: 1.3rem;
  }
  .logo-img {
    height: 80px !important;
    min-height: 80px !important;
    width: auto;
    margin-right: 12px;
  }
  .page-hero {
    height: 40vh;
    min-height: 300px;
  }
  .page-hero h1 {
    font-size: 1.6rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
  .fatt-footer .footer-main {
    grid-template-columns: 1fr;
  }
} /* ===================== PAGE HEADER (interne) ===================== */
.page-header {
  position: relative;
  background: linear-gradient(
      105deg,
      rgba(15, 31, 48, 0.92) 0%,
      rgba(15, 31, 48, 0.72) 60%,
      rgba(15, 31, 48, 0.55) 100%
    ),
    url("../assets/images/banner-accueil.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 3.5rem 0;
  margin-bottom: 3rem;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--green-500) 0 70%,
    var(--ball) 70% 100%
  );
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-header .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
}
.page-header .breadcrumb-item a:hover {
  color: var(--green-500);
}
.page-header .breadcrumb-item.active {
  color: var(--green-500);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
} /* ===================== CONTENU RICHE ===================== */
.page-content {
  color: var(--ink);
}
.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 1.8rem;
  color: var(--navy-800);
}
.page-content img {
  border-radius: var(--radius-md);
}
.page-content a {
  color: var(--green-700);
  font-weight: 600;
}
.article-content {
  color: var(--ink);
  line-height: 1.85;
}
.article-content h2,
.article-content h3 {
  color: var(--navy-800);
  margin-top: 1.8rem;
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
} /* ===================== STATS / COMPTEURS ===================== */
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.stat-card .stat-icon {
  font-size: 2.2rem;
  color: var(--green-500);
  margin-bottom: 1rem;
}
.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
}
.stat-card .stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
} /* ===================== ACCESSIBILITÉ ===================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}




/* ============================================================
   FATT — PAGE NEWS (cartes horizontales + sidebar)
   ============================================================ */

/* ---------- Titre de section ---------- */
.news-heading {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--navy-800);
  margin: 0 0 2rem;
  padding-bottom: .9rem;
}
.news-heading::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; border-radius: 4px;
  background: var(--green-500);
}

/* ---------- Carte actualité HORIZONTALE ---------- */
.news-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.news-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Image stylisée */
.news-item__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 200px;
  background: var(--navy-800);
}
.news-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease), opacity .3s;
}
.news-item:hover .news-item__media img { transform: scale(1.06); opacity: .94; }

.news-item__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15,31,48,.55));
  opacity: 0;
  transition: opacity .3s;
}
.news-item:hover .news-item__media::after { opacity: 1; }

.news-item__plus {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--navy-900);
  font-size: .8rem;
  box-shadow: 0 6px 16px rgba(150,191,17,.45);
  transform: scale(0);
  transition: transform .28s var(--ease);
  z-index: 2;
}
.news-item:hover .news-item__plus { transform: scale(1); }

/* Corps */
.news-item__body { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; }
.news-item__date {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600;
  color: var(--muted);
  margin-bottom: .5rem;
}
.news-item__date i { color: var(--green-500); }

.news-item__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .55rem;
}
.news-item__title a { color: var(--navy-800); text-decoration: none; transition: color .2s; }
.news-item__title a:hover { color: var(--green-700); }

.news-item__title .ar {
  display: inline-block;
  font-family: var(--font-arabic);
  color: var(--green-700);
  font-size: 1.05em;
  margin-inline-start: .35rem;
}

.news-item__text {
  color: var(--ink);
  font-size: .93rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.news-item__text [dir="rtl"],
.news-item__text.ar { font-family: var(--font-arabic); }

/* Bouton Détails */
.news-item__btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto;
  padding: .5rem 1.2rem;
  border-radius: 999px;
  background: var(--green-500);
  border: 2px solid var(--green-500);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(150,191,17,.35);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.news-item__btn:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(150,191,17,.4);
}
.news-item__btn i { font-size: .65rem; }

/* ---------- Sidebar compétitions ---------- */
.competition-list { list-style: none; padding: 0; margin: 0; }
.competition-list li + li { margin-top: .7rem; }
.competition-list a {
  display: block;
  padding: .9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--paper);
  border-left: 4px solid var(--ball);
  text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease), border-color .2s;
}
.competition-list a:hover {
  background: var(--green-100);
  transform: translateX(4px);
  border-left-color: var(--green-500);
}
.comp-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-800);
  font-size: .92rem;
  line-height: 1.35;
}
.comp-date {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .3rem;
  font-size: .76rem;
  color: var(--muted);
}
.comp-date i { color: var(--green-700); }

/* ---------- Pagination ---------- */
.pagination { justify-content: center; gap: 6px; margin-top: 2.5rem; }
.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 .8rem;
  color: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--white);
  margin: 0;
  transition: all .2s;
}
.pagination .page-link:hover {
  background-color: var(--green-100);
  border-color: var(--green-500);
  color: var(--green-700);
}
.pagination .page-item.active .page-link {
  background-color: var(--green-500);
  border-color: var(--green-500);
  color: var(--navy-900);
  box-shadow: 0 6px 16px rgba(150,191,17,.35);
}
.pagination .page-item.disabled .page-link {
  color: #b8c0c9;
  background: var(--paper);
  border-color: var(--line);
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .news-item { grid-template-columns: 200px 1fr; }
}
@media (max-width: 767.98px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item__media { min-height: 210px; }
  .news-item__body { padding: 1.2rem 1.3rem; }
}


/**************** Edition ***********************/

/* Boutons d'édition du menu : visibles au survol de l'élément de menu.
   Contourne l'opacité 0 par défaut de inline-edit.css (prévue pour .ie-menu-editable
   dans .welcome-header, structure que version4 n'utilise pas). */
.ie-menu-actions {
  position: absolute;
  top: 50%;
  right: .3rem;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  padding: .2rem;
  border: 1px solid #e7ebf1;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(15 23 42 / 14%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, visibility .16s ease;
  z-index: 30;
}
/* Position dans les dropdowns : aligné à droite de l'item */
.fatt-navbar .dropdown-menu > li[data-ie-menu-item] { position: relative; }
.fatt-navbar .dropdown-menu > li[data-ie-menu-item] .ie-menu-actions {
  top: 50%;
  right: .25rem;
}
li[data-ie-menu-item] { position: relative; }
li[data-ie-menu-item]:hover > .ie-menu-actions,
li[data-ie-menu-item]:focus-within > .ie-menu-actions {
  opacity: 1;
  visibility: visible;
}
.ie-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f3a54;
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ie-menu-btn:hover { background: #f0f6d9; color: #67850a; }
.ie-menu-btn.danger:hover { background: #fee; color: #c0392b; }
/* Bouton "Ajouter" du menu */
.fatt-navbar .ie-menu-add {
  color: rgba(255,255,255,.85) !important;
  font-size: .8rem;
  opacity: .7;
  transition: opacity .2s;
}
.fatt-navbar .ie-menu-add:hover { opacity: 1; }
/* --- Bouton d'édition des colonnes du footer (admin) --- */
.footer-column { position: relative; }
.ie-footer-edit,
.btn-footer-edit {
  position: absolute;
  top: -.6rem;
  right: -.2rem;
  z-index: 20;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #e7ebf1;
  border-radius: 50%;
  background: #fff;
  color: #1f3a54;
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .16s ease, background .15s, color .15s, transform .15s;
  box-shadow: 0 4px 12px rgb(15 23 42 / 12%);
}
.footer-column:hover > .ie-footer-edit,
.footer-column:focus-within > .ie-footer-edit {
  opacity: 1;
  visibility: visible;
}
.ie-footer-edit:hover {
  background: #f0f6d9;
  color: #67850a;
  transform: scale(1.08);
}
