/* ================================
   Style général du site
   ================================ */

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: url('/images/dove.jpg') center top no-repeat fixed;
  background-size: cover;
  color: #474848;
}

/* ================================
   Typographie & couleurs
   ================================ */

h1, h2, h3, h4, h5, h6 {
  color: #03628a;
  margin: 0 0 12px 0;
  font-weight: 600;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #03628a;
}

.site-title {
  font-size: 2.2rem;
  /* color: #0b45c0; */
  text-align: center;
  margin-bottom: 0;      /* évite un espace inutile */
  transform: translateY(-10px); /* micro-ajustement */
}

/* Liens */
a {
  color: #474848;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #03628a;
}

/* ================================
   Navbar
   ================================ */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 1000;
}




/* ================================
   Layout
   ================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ================================
   Cartes catégories
   ================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.card h3 {
  margin: 0 0 2px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #03628a;
}

.card p {
  margin: 0;
  font-size: 0.8rem;
  color: #474848;
}

/* ================================
   Bandeau slogan
   ================================ */
.bg {
  height: 200px;            /* ↓ réduit le hero */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;     /* ↓ moins d’espace sous le titre */
  color: #222;
}

/* ================================
   Recherche + login
   ================================ */
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search input {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
}
.login-btn {
  padding: 6px 12px;
  background: #007bff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.login-btn:hover {
  background: #0056b3;
  color: white;
}

/* ================================
   Drapeaux langues
   ================================ */
.flags {
  display: flex;
  gap: 6px;
}

.flag-icon {
  width: 36px;
  height: 24px;
}

.fi {
  width: 36px;
  height: 24px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  margin-right: 4px;
}

.fi:hover {
  transform: scale(1.1);
  border-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

/* ================================
   STYLE ADMIN MINIMAL MODERNE - FOND FIXÉ
   ================================ */

/* Neutralise le layout du front */
body.admin-page main.container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Conteneur principal de l'admin */
.admin-container {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  width: 90%;
  max-width: 1300px;
  margin: 60px auto;
  padding: 50px 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Le tableau reste à l’intérieur */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  table-layout: fixed;
  margin-top: 20px;
  margin-bottom: 30px;
  flex-grow: 1; /* étend le fond si besoin */
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table th {
  background: #f0f4f8;
  color: #03628a;
  font-weight: 600;
}

.admin-table tr:hover td {
  background: #f9fafc;
}

/* Boutons */
.btn {
  display: inline-block;
  background: #03628a;
  color: white !important;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:hover {
  background: #048bb5;
}

.btn:active {
  transform: scale(0.98);
}

/* Boutons dans les cellules */
.admin-table .btn {
  margin-right: 4px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Formulaire admin */
form.admin-form {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto;
}

form.admin-form input,
form.admin-form select,
form.admin-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

form.admin-form input:focus,
form.admin-form select:focus,
form.admin-form textarea:focus {
  border-color: #03628a;
  box-shadow: 0 0 4px rgba(3,98,138,0.3);
  outline: none;
}


/* ================================
   PAGE DE CONNEXION ADMIN - VERSION FINALE ALIGNÉE
   ================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px; /* espace pour le header */
  box-sizing: border-box;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 500px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.login-box h1 {
  text-align: center;
  color: #03628a;
  margin-bottom: 28px;
}

/* Structure du formulaire */
.login-box form {
  display: flex;
  flex-direction: column;
  gap: 14px; /* espace régulier entre les champs */
  box-sizing: border-box;
}

.login-box label {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  text-align: left;
  padding-left: 2px; /* alignement visuel parfait */
}

/* Champs */
.login-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box; /* corrige la largeur totale */
}

.login-box input:focus {
  border-color: #03628a;
  box-shadow: 0 0 4px rgba(3, 98, 138, 0.3);
  outline: none;
}

/* Bouton */
.login-box button {
  background-color: #03628a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: block;
  margin: 10px auto 0 auto; /* centrage parfait */
}

.login-box button:hover {
  background-color: #048bb5;
}

.login-box button:active {
  transform: scale(0.98);
}

/* Message d'erreur */
.login-box .alert {
  background: #ffe0e0;
  color: #a70000;
  border: 1px solid #ffb3b3;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  text-align: center;
}

/* Pied de page du login */
.login-box .login-footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 16px;
}

.login-box .login-footer a {
  color: #03628a;
  text-decoration: none;
}

.login-box .login-footer a:hover {
  text-decoration: underline;
}

/* ================================
   PPOST GRID (search + category)
   ================================ */

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* ================================
   POST CARD – BASE
   ================================ */

.post-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ================================
   TITLE
   ================================ */

.post-title {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: #1f4e79; /* основной синий сайта */
}

/* ================================
   META LAYOUT
   ================================ */

.post-meta-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* ================================
   LEFT COLUMN: DATE + CATEGORY
   ================================ */

.post-meta-left {
  font-size: 14px;
  line-height: 1.6;
}

.post-date {
  display: block;
  color: #6b7280; /* мягкий серый */
}

.post-category {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: #2563eb; /* акцентный синий */
}

/* ================================
   RIGHT COLUMN: INTRO + READ MORE
   ================================ */

.post-meta-right {
  font-size: 15px;
  line-height: 1.6;
}

.post-intro {
  margin: 0 0 12px;
  color: #374151;
}

.read-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  transition: color .2s ease;
}

.post-card:hover .read-more {
  color: #1d4ed8;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  .post-meta-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-title {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .post-card {
    padding: 22px 20px;
  }

  .post-title {
    font-size: 20px;
  }
}



/* ================================
   STYLE ADMIN POSTS
   ================================ */

.post-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 90%;
  max-width: 1500px;
  margin: 60px auto;
  padding: 50px 60px;
  box-sizing: border-box;
}

/* ================================
   TABLEAU POSTS – VERSION LARGE
   ================================ */

.post-table {
  max-width: 1500px;
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 20px;
  margin-bottom: 30px;
  table-layout: auto; /* on libère la largeur automatique */
}

/* Colonnes plus aérées */
.post-table th,
.post-table td {
  padding: 14px 18px; /* un peu plus large */
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Titre des colonnes */
.post-table th {
  background: #f0f4f8;
  color: #03628a;
  font-weight: 600;
}

/* Ligne survolée */
.post-table tr:hover td {
  background: #f9fafc;
}

/* Ajustement de la colonne "Actions" */
.post-table td:last-child {
  width: 200px; /* fixe l’espace des boutons */
  text-align: left;
}

/* Boutons plus petits mais lisibles */
.post-table .btn-blue {
  padding: 6px 14px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-table .btn-blue i {
  font-size: 1rem;
}


/* Boutons CRUD */
.btn-blue {
  background-color: #03628a;
  color: white !important;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-blue:hover {
  background-color: #048bb5;
}

.btn-red {
  background-color: #d9534f;
  color: white !important;
  border-radius: 6px;
  padding: 6px 14px;
  border: none;
  transition: background-color 0.2s;
}

.btn-red:hover {
  background-color: #c9302c;
}

.btn-gray {
  background-color: #6c757d;
  color: white !important;
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-gray:hover {
  background-color: #5a6268;
}

/* Formulaires post */
form.post-form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 0 auto;
}

form.post-form input,
form.post-form select,
form.post-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

form.post-form input:focus,
form.post-form select:focus,
form.post-form textarea:focus {
  border-color: #03628a;
  box-shadow: 0 0 4px rgba(3,98,138,0.3);
  outline: none;
}


/* ================================
   Navbar centrée avec logo au milieu
   ================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo centré sans translateX */
.navbar-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-logo img {
  height: 36px; /* taille réduite */
  width: auto;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Effet léger au survol */
.navbar-logo img:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
  .navbar-logo img {
    height: 30px;
  }
}

/* ============================================
   UNIFIED MODERN FORM DESIGN FOR ADMIN POST
   ============================================ */

.form-card {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    margin-bottom: 60px;
}

.form-card h2 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    color: #016093;
}

/* FORM ELEMENTS */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #023f59;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    border: 1px solid #cfd7e0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fefefe;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: #0085c7;
    box-shadow: 0 0 5px rgba(0, 133, 199, 0.25);
    outline: none;
}

/* CHECKBOX INLINE */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTONS */
.btn-primary {
    background: #03628a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    transition: 0.25s;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #048bb5;
}

.btn-secondary {
    background: #6b7a88;
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #55606b;
}

/* ERROR MESSAGES */
.form-error {
    color: #d9534f;
    margin-top: 6px;
    font-size: 14px;
}

.is-invalid {
    border-color: #d9534f !important;
    background: #ffeaea !important;
}


/* ============================================
   MODERN CREATE/EDIT FORM CARD
   ============================================ */

.form-card {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    margin-bottom: 40px;
}

.form-card h1,
.form-card h2 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    color: #016093;
}

.form-row {
    margin-bottom: 22px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #023f59;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    border: 1px solid #cfd7e0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fefefe;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: #0085c7;
    box-shadow: 0 0 5px rgba(0, 133, 199, 0.25);
    outline: none;
}

.is-invalid {
    border-color: #d9534f !important;
    background: #ffeaea !important;
}

.form-error {
    color: #d9534f;
    margin-top: 6px;
    font-size: 14px;
}

.btn-primary {
    background: #03628a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #048bb5;
}

.btn-secondary {
    background: #6b7a88;
    color: white !important;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #55606b;
}


.form-error {
    color: #d9534f !important;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.form-error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border: 2px solid #d9534f !important;
    background: #ffecec !important;
}

/* Footer */
.site-footer {
  background: rgba(230, 238, 249, 0.8);
  color: rgb(14, 14, 14);
  padding: 48px 32px 24px;
  margin-top: 200px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-section h4 {

  font-size: 1.1rem;
  margin: 0 0 16px 0;
  color: #0073d2;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #353535;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #f6e05e;
}

.footer-section p {
  color: #353535;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #a0aec0;
  font-size: 0.85rem;
}


/* Static Pages du footer(About, Contact, Legal, Privacy) */

.static-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px 10px;
}

.static-page h1 {

  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #1a365d;
  text-align: center;
}

.static-page h2 {
  margin-top: 30px;
  color: #2d4368;
  font-size: 1.4rem;
  font-weight: 600;
}

.static-page p,
.static-page li {
  font-size: 1rem;
  line-height: 1.75;
  color: #2d3748;
}

.static-page ul {
  list-style: disc;
  margin-left: 25px;
}

.static-page .lead {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #1a202c;
  text-align: center;
}


/* ======================================
   TSTLG - Barre langues + nouvelle navbar
   ====================================== */

.tstlg-header-wrapper {
  width: 100%;
}

/* --- Barre blanche des langues --- */

.tstlg-language-bar {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tstlg-language-inner {
  padding: 4px 16px 6px;
}

/* Ligne de drapeaux répartis sur toute la largeur */
.tstlg-language-list {
  display: flex;
  justify-content: space-between; /* premier à gauche, dernier à droite, autres espacés */
  align-items: flex-end;
  width: 100%;
}

/* Un item = 1 drapeau + texte langue */
.tstlg-language-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  color: #222;
}

.tstlg-language-item .fi {
  width: 32px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tstlg-language-item:hover .fi {
  transform: scale(1.08);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}

/* Texte sous chaque drapeau */
.tstlg-language-label {
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Navbar principale sous la barre langues --- */

.tstlg-navbar {
  width: 100%;
}

.tstlg-navbar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
}

@media (max-width: 900px) {
  .tstlg-language-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .tstlg-language-item {
    min-width: 60px;
    margin: 2px 4px;
  }
}


/* Forcer drapeau AU-DESSUS du texte pour la barre des langues */

.tstlg-language-list {
  display: flex;
  justify-content: space-between; /* premier à gauche, dernier à droite */
  align-items: flex-start;
  width: 100%;
}

.tstlg-language-list .tstlg-language-item {
  display: flex;
  flex-direction: column;   
  align-items: center;
  text-decoration: none;
  gap: 4px;
}

.tstlg-language-list .tstlg-language-item .fi {
  display: block;
  width: 32px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.18);
}

.tstlg-language-list .tstlg-language-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: #222;
}


/* Categories Card home page */

/* GRID */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: -40px; /* ⚠️ plus -120px */
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* CARD WRAPPER */
.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* NEW */
}

.category-card-inner {
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;

    display: flex;           /* NEW */
    flex-direction: column;  /* NEW */
    height: 100%;            /* NEW */
}

.category-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: rgba(37, 99, 235, 0.4);
}

/* IMAGE */
.category-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card-inner:hover .category-img {
    transform: scale(1.05);
}

/* CONTENT */
.category-content {
    padding: 24px;
    flex-grow: 1; /* NEW */
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* FOOTER */
.category-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #2563eb;
}

.category-arrow {
    transition: transform 0.3s ease;
}

.category-card-inner:hover .category-arrow {
    transform: translateX(4px);
}


/* ========================================
   FULL WIDTH JUST FOR HOME CATEGORY GRID
   ======================================== */

.home-fullwidth-wrapper {
    width: 100vw;           /* occupe toute la largeur du viewport */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;     /* cassure du container */
    margin-right: -50vw;
}

.home-fullwidth {
    max-width: 1400px;      /* tu peux mettre 1600px si tu veux plus large */
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;        /* petit padding */
}
