/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
  --primary:        #0A2E5C;
  --secondary:       #1E5190;
  --accent:          #F4B400;
  --bg:              #FFFFFF;
  --text:            #2D3748;
  --text-light:      #718096;
  --border:          #E2E8F0;
  --surface:         #F7FAFC;
  --shadow:          0 2px 12px rgba(10,46,92,0.10);
  --radius:          4px;
  --ribbon-top-bg:   #071E3D;
  --ribbon-main-bg:  #092B58;
  --ribbon-hover:    #C9961A;
}

body,
.pkp_structure_page,
#headerNavigationContainer,
.pkp-ribbon-top {
  font-family: 'Lora', Georgia, serif;
}

/* =========================================================
   FORCER LE HEADER AU-DESSUS DE TOUT LE SITE
   ========================================================= */
.pkp-ribbon-main,
#headerNavigationContainer {
  position: relative !important;
  z-index: 999999 !important; /* Force la barre entière au premier plan */
  overflow: visible !important; /* Permet aux sous-menus de dépasser de la barre */
}

.pkp-ribbon-main-inner {
  position: relative !important;
  overflow: visible !important; /* Sécurité pour le conteneur interne */
}

/* (règle déplacée : voir bloc desktop @media (min-width: 992px) plus bas) */

/* =========================================================
   FORCER LE RUBAN DE TOP AU-DESSUS DU RESTE
   ========================================================= */
.pkp-ribbon-top {
  position: relative !important;
  z-index: 1000000 !important;  /* Légèrement supérieur au ruban 2 pour descendre par-dessus lui */
  overflow: visible !important;  /* Permet au sous-menu profil de déborder */
}

.pkp-ribbon-top-inner {
  position: relative !important;
  overflow: visible !important;
}

.pkp-ribbon-top .ribbon-top-menu li.dropdown .dropdown-menu {
  z-index: 1000001 !important;  /* S'assure que la boîte elle-même est au premier plan */
}

/* =========================================================
   RUBAN 1 — langues + menu utilisateur
   ========================================================= */
.pkp-ribbon-top {
  background-color: var(--ribbon-top-bg);
  width: 100%;
  padding: 6px 0;
}

.pkp-ribbon-top-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Aligne l'ensemble des éléments à droite */
  gap: 10px;                 /* Crée un espace contrôlé entre les langues et le menu */
  padding-left: 24px;
  padding-right: 10px;
}

.pkp-lang-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.pkp-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.pkp-lang-btn:hover,
.pkp-lang-btn.is-active,
.pkp-lang-btn:focus {
  background-color: var(--ribbon-hover);
  border-color: var(--ribbon-hover);
  color: var(--ribbon-top-bg);
  text-decoration: none;
}

/*.pkp-lang-btn.is-active {
  background-color: rgba(255,255,255,0.15);
  border-color: #ffffff;
}*/

.pkp-ribbon-top .ribbon-top-menu {
  display: flex;
  margin: 0;
}

.pkp-ribbon-top .ribbon-top-menu > li > a {
  color: #ffffff;
  font-size: 0.9rem;
  padding: 6px 14px;
}

.pkp-ribbon-top .ribbon-top-menu > li > a:hover,
.pkp-ribbon-top .ribbon-top-menu > li > a:focus {
  color: var(--ribbon-hover);
  background-color: transparent;
}

.pkp-ribbon-top .ribbon-top-menu li.dropdown {
  position: relative;
}

.pkp-ribbon-top .ribbon-top-menu li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  left: auto;
  background-color: var(--ribbon-top-bg) !important; /* Conserve le bleu très foncé en fond initial */
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  min-width: 200px;
  padding: 6px 0 !important;
}

.pkp-ribbon-top .ribbon-top-menu li.dropdown:hover .dropdown-menu,
.pkp-ribbon-top .ribbon-top-menu li.dropdown:focus-within .dropdown-menu {
  display: block;
}

.pkp-ribbon-top .ribbon-top-menu li.dropdown .dropdown-menu > li > a {
  color: #ffffff !important;
  font-family: 'Lora', Georgia, serif !important;
  font-size: 0.95rem !important;
  padding: 10px 18px !important; /* Zone de clic agrandie pour le confort */
  display: block !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pkp-ribbon-top .ribbon-top-menu li.dropdown .dropdown-menu > li > a:hover,
.pkp-ribbon-top .ribbon-top-menu li.dropdown .dropdown-menu > li > a:focus {
  background-color: var(--text) !important;  /* Fond gris foncé */
  color: var(--accent) !important;           /* Texte Or */
  text-decoration: none;
}

/* =========================================================
   RUBAN 2 — structure générale
   ========================================================= */
.pkp-ribbon-main {
  background-color: var(--ribbon-main-bg);
  border: none;
  margin-bottom: 0;
  border-radius: 0;
  min-height: 64px;
}

.pkp-ribbon-main-inner.container-fluid {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.pkp-ribbon-main-inner {
  position: relative;
  display: flex !important;
  align-items: center !important;       /* Centre verticalement tous les enfants */
  justify-content: space-between;       /* Aligne la marque à gauche et la recherche à droite */
  min-height: 64px;
}

/* Neutralise les marges négatives natives de Bootstrap
   (.navbar-header / .navbar-collapse : margin -15px)
   responsables du logo collé au bord et du décalage à gauche */
.pkp-ribbon-main-inner > .navbar-header,
.pkp-ribbon-main-inner > .navbar-collapse {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --- Bloc marque (gauche) --- */
.pkp-brand-col {
  flex: 0 0 auto;
  float: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pkp-brand-block {
  margin: 0 !important;
  text-align: left !important;
  display: flex;
  align-items: center;
}

.pkp-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.pkp-brand-logo {
  max-height: 40px;
  width: auto;
}

.pkp-brand-title {
  color: #ffffff !important;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.pkp-brand-link:hover,
.pkp-brand-link:focus,
.pkp-brand-link:hover .pkp-brand-title,
.pkp-brand-link:focus .pkp-brand-title {
  color: #ffffff !important;
  text-decoration: none;
  background-color: transparent;
}

/* =========================================================
   BOUTON HAMBURGER — design personnalisé avec halo doré
   ========================================================= */
.navbar-toggle {
  position: relative;
  z-index: 5;
  display: block;
  width: 46px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  background-color: rgba(255,255,255,0.04);
  cursor: pointer;
  pointer-events: auto !important;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.3s ease;
}

/* Les 3 barres, centrées, avec transition fluide vers la croix */
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.25s ease;
}

.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 5px;
}

/* Halo doré au survol / focus clavier */
.navbar-toggle:hover,
.navbar-toggle:focus {
  border-color: var(--ribbon-hover);
  background-color: rgba(201, 150, 26, 0.10);
  box-shadow:
    0 0 0 4px rgba(201, 150, 26, 0.18),
    0 0 20px 4px rgba(201, 150, 26, 0.40);
  outline: none;
}

.navbar-toggle:hover .icon-bar,
.navbar-toggle:focus .icon-bar {
  background-color: var(--ribbon-hover);
}

/* État "ouvert" : halo doré permanent tant que le menu est déplié.
   Bootstrap retire automatiquement la classe .collapsed du bouton
   quand #nav-menu est affiché (géré nativement par bootstrap.min.js). */
.navbar-toggle:not(.collapsed) {
  border-color: var(--ribbon-hover);
  background-color: rgba(201, 150, 26, 0.14);
  box-shadow:
    0 0 0 4px rgba(201, 150, 26, 0.16),
    0 0 16px 3px rgba(201, 150, 26, 0.30);
}

/* Transforme les 3 barres en croix (X) à l'ouverture */
.navbar-toggle:not(.collapsed) .icon-bar {
  background-color: var(--ribbon-hover);
}

.navbar-toggle:not(.collapsed) .icon-bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle:not(.collapsed) .icon-bar:nth-child(3) {
  opacity: 0;
}

.navbar-toggle:not(.collapsed) .icon-bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Liens de navigation et dropdowns (communs) --- */
.pkp-main-nav-col .navbar-nav > li > a {
  color: #ffffff;
  font-family: 'Lora', Georgia, serif;
}

.pkp-main-nav-col .navbar-nav > li > a:hover,
.pkp-main-nav-col .navbar-nav > li > a:focus {
  color: var(--ribbon-hover);
  background-color: transparent;
}

.pkp-main-nav-col .dropdown-menu {
  background-color: var(--ribbon-main-bg);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pkp-main-nav-col .dropdown-menu > li > a {
  color: #ffffff;
}

.pkp-main-nav-col .dropdown-menu > li > a:hover,
.pkp-main-nav-col .dropdown-menu > li > a:focus {
  color: var(--ribbon-hover);
  background-color: rgba(255,255,255,0.05);
}

@media (min-width: 992px) {
  .navbar-toggle {
    display: none !important;
  }

  #nav-menu.pkp-main-nav-col {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end; /* la recherche reste alignée à droite */
    width: auto;
    height: auto !important;
    overflow: visible !important; /* permet aux sous-menus de déborder du ruban */
    padding: 0;
    margin: 0;
    float: none;
  }

  /* Centrage absolu par rapport à TOUT le ruban (pas juste l'espace restant) */
  #nav-menu .navbar-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    float: none;
    margin: 0;
  }

  .pkp-search-col {
    flex: 0 0 auto;
    margin-left: 16px;
  }
}

/* --- Ajustement de la taille de la barre de recherche --- */
.pkp-search-col form .form-group {
  margin-bottom: 0;
}

.pkp-search-col .form-control {
  height: 30px !important;              /* Hauteur réduite du champ de texte */
  padding: 5px 10px !important;
  font-size: 0.85rem !important;
}

.pkp-search-col button[type="submit"],
.pkp-search-col .btn {
  padding: 4px 10px !important;         /* Taille réduite du bouton */
  font-size: 0.85rem !important;
  height: 30px !important;              /* Aligné sur la hauteur du champ */
  line-height: 1 !important;
}

/* --- Couleur d'accentuation sur le bouton de recherche --- */
.pkp-search-col button[type="submit"],
.pkp-search-col .btn-primary,
.pkp-search-col .btn {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--primary) !important; /* Texte en bleu foncé pour rester lisible sur fond or */
  font-weight: 700 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

/* Effet au survol du bouton */
.pkp-search-col button[type="submit"]:hover,
.pkp-search-col button[type="submit"]:focus,
.pkp-search-col .btn:hover,
.pkp-search-col .btn:focus {
  background-color: var(--secondary) !important; /* Passe au bleu secondaire au survol */
  border-color: var(--secondary) !important;
  color: #ffffff !important; /* Le texte devient blanc au survol */
}

/* =========================================================
   MOBILE (< 992px) : hamburger cache/affiche nav + recherche
   ========================================================= */
@media (max-width: 991px) {
  .pkp-ribbon-top-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pkp-ribbon-main-inner.container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* CRUCIAL : autorise le menu à passer sur une nouvelle ligne sous le
     bloc marque, au lieu de se faire écraser dans l'espace restant à
     côté du logo (c'est ce qui réduisait #nav-menu à ~100px de large). */
  .pkp-ribbon-main-inner {
    flex-wrap: wrap;
  }

  #nav-menu.pkp-main-nav-col {
    flex: 1 1 100%; /* prend toute la largeur sur sa propre ligne */
  }

  /* Bloc marque : logo à gauche, hamburger à droite */
  .pkp-brand-col {
    width: 100%;
    justify-content: space-between;
  }

  .pkp-brand-logo {
    max-height: 34px;
  }

  .pkp-brand-title {
    font-size: 1.05rem;
  }

  /* Force le hamburger à rester visible : Bootstrap le cache nativement
     dès 768px, il faut le réafficher explicitement jusqu'à 991px */
  .navbar-toggle {
    display: block !important;
  }

  /* Le hamburger contrôle ce bloc : nav + recherche ensemble */
  #nav-menu.pkp-main-nav-col {
    position: static;
    width: 100%;
    float: none;
    background-color: var(--ribbon-main-bg);
  }

  /* Bootstrap force nativement .navbar-collapse.collapse à rester
     display:block!important / height:auto!important / overflow:visible!important
     dès 768px (donc en permanence "ouvert" entre 768 et 991px).
     On bat ces règles avec une spécificité plus forte (ID + 2 classes)
     pour que le collapse fonctionne vraiment sur toute la plage mobile. */
  #nav-menu.pkp-main-nav-col.collapse:not(.in) {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  #nav-menu.pkp-main-nav-col.collapse.in {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Bootstrap donne par défaut 15px de padding + une ombre "border-top"
     à tout élément .navbar-collapse (donc à #nav-menu). C'est ce qui
     décalait le texte des liens par rapport au logo, et créait la
     ligne blanche en haut du menu déplié. On neutralise tout ça. */
  #nav-menu.pkp-main-nav-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
  }

  #nav-menu .navbar-nav {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* empile les éléments verticalement. */
  #nav-menu .navbar-nav > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
  }

  /* Aligne le texte des liens avec le logo/hamburger au-dessus : le
     conteneur a déjà 16px de padding, donc les liens n'ont plus besoin
     de leur propre indentation Bootstrap (qui décalait le texte). */
  #nav-menu .navbar-nav > li > a {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  /* Supprime les lignes de séparation blanches entre les éléments */
  #nav-menu .navbar-nav > li,
  #nav-menu .navbar-nav > li > a {
    border: none !important;
    box-shadow: none !important;
  }

  .pkp-main-nav-col .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    border: none;
    box-shadow: none;
    background-color: rgba(255,255,255,0.03);
  }

  /* Petit espace avant la recherche, sans ligne de séparation,
     et mêmes marges gauche/droite que le reste (alignement propre) */
  .pkp-search-col {
    width: 100%;
    padding: 0;
    margin-top: 16px;
    padding-bottom: 16px;
  }

  /* Bootstrap donne nativement à TOUTE .navbar-form un border-top/
     border-bottom "transparent" doublé d'un box-shadow blanc
     (inset 0 1px 0 rgba(255,255,255,.1)) — c'est ça, la vraie source
     des lignes autour de la recherche. On neutralise + on repart
     d'une marge/padding propres à nous. */
  .pkp-search-col form.navbar-form {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  /* Le champ de texte : prend tout l'espace restant */
  .pkp-search-col .form-group {
    flex: 1 1 auto !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
  }

  .pkp-search-col .form-group .form-control {
    width: 100% !important;
    height: 42px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  /* Le bouton "Rechercher" : 25% de largeur, collé à droite du champ */
  .pkp-search-col button[type="submit"] {
    flex: 0 0 25% !important;
    width: 25% !important;
    height: 42px !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
}
/* --- Fond au survol sur les éléments du menu principal --- */
@media (min-width: 992px) {
  #nav-menu .navbar-nav > li > a {
    padding: 12px 18px !important; /* Ajoute un peu d'espace interne pour créer un joli bloc */
    border-radius: var(--radius);  /* Arrondit légèrement les angles du fond */
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  #nav-menu .navbar-nav > li > a:hover,
  #nav-menu .navbar-nav > li > a:focus {
    background-color: var(--text) !important; /* Couleur de fond foncée demandée */
    color: var(--accent) !important;          /* Change le texte en Or au survol pour garantir le contraste */
  }
}

/* Version Mobile (< 992px) : Optionnel mais recommandé pour la cohérence */
@media (max-width: 991px) {
  #nav-menu .navbar-nav > li > a:hover,
  #nav-menu .navbar-nav > li > a:focus {
    background-color: var(--text) !important;
    color: var(--accent) !important;
  }
}

/* =========================================================
   SOUS-MENU "A PROPOS" AU SURVOL (DESKTOP >= 992px)
   ========================================================= */
@media (min-width: 992px) {
  /* Rend le parent apte à contrôler l'affichage de son enfant */
  .pkp-main-nav-col .navbar-nav li.dropdown {
    position: relative !important;
  }

  /* Force l'apparition du bloc de sous-menu au survol */
  .pkp-main-nav-col .navbar-nav li.dropdown:hover > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Positionnement au premier plan et alignement strict */
  .pkp-main-nav-col .dropdown-menu {
    position: absolute !important;
    top: 100% !important;            /* Se cale pile en bas du bouton À propos */
    left: 0 !important;
    margin-top: 0 !important;        /* Supprime l'espace vide natif de Bootstrap */
    z-index: 99999 !important;       /* PASSE AU-DESSUS DE TOUT LE CONTENU DE LA PAGE */
    
    background-color: var(--ribbon-main-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    padding: 8px 0 !important;
    min-width: 260px !important;     
  }

  /* Rendre les éléments du sous-menu bien visibles et grands */
  .pkp-main-nav-col .dropdown-menu > li > a {
    color: #ffffff !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.05rem !important;   /* Taille bien lisible */
    font-weight: 500 !important;     
    padding: 10px 20px !important;   /* Large zone de clic */
    display: block !important;       /* Prend toute la largeur de la ligne */
    line-height: 1.4 !important;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  /* Effet au survol d'un élément du sous-menu */
  .pkp-main-nav-col .dropdown-menu > li > a:hover,
  .pkp-main-nav-col .dropdown-menu > li > a:focus {
    background-color: var(--text) !important;  
    color: var(--accent) !important;           
    text-decoration: none;
  }
}

/* =========================================================
   ADAPTATION MOBILE (< 992px) 
   ========================================================= */
@media (max-width: 991px) {
  /* En mode mobile, on laisse l'utilisateur cliquer pour ouvrir */
  .pkp-main-nav-col .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.04) !important; /* Léger fond pour distinguer le sous-menu */
    border: none !important;
    box-shadow: none !important;
  }

  .pkp-main-nav-col .dropdown-menu > li > a {
    padding-left: 30px !important; /* Décale les sous-éléments vers la droite */
    color: rgba(255, 255, 255, 0.85) !important;
  }
  
  .pkp-main-nav-col .dropdown-menu > li > a:hover {
    background-color: var(--text) !important;
    color: var(--accent) !important;
  }
}

/* =========================================================
   STYLE DU FOOTER - ALIGNEMENT ET ÉTIREMENT 100% DE L'ÉCRAN
   ========================================================= */

/* 1. L'enveloppe parente d'OJS : on la force à prendre toute la largeur */
.pkp_structure_footer_wrapper {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Le corps du footer */
.pkp-footer {
  background-color: var(--ribbon-main-bg) !important; /* Bleu de l'entête */
  color: #e2e8f0 !important;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 40px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  width: 100% !important;
}

/* Conteneur interne des 4 colonnes : aligné sur la grille du site */
.pkp-footer-inner {
  max-width: 1200px; /* S'aligne sur la largeur globale de votre site */
  margin: 0 auto !important; /* Centre le bloc de contenu */
  padding: 55px 15px 45px 15px !important; /* Même marge gauche/droite que le reste */
}

/* --- Barre de Copyright Basse (Footer Bottom) --- */
.footer-bottom {
  background-color: var(--ribbon-top-bg) !important; /* Bleu nuit profond */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e0 !important;
  font-size: 1rem !important;
  padding: 24px 0 !important; /* Padding vertical uniquement */
  margin-bottom: 0 !important;
  width: 100% !important; /* Prend toute la largeur */
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Conteneur interne du copyright : assure l'alignement parfait aux extrémités */
.footer-bottom-inner {
  display: flex;
  justify-content: space-between; /* Aligne le copyright à gauche et les crédits à droite */
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 1200px; /* Même largeur maximale que le reste du site */
  margin: 0 auto !important; /* Centre parfaitement le bloc */
  padding: 0 15px !important; /* Applique exactement la même marge que le footer du dessus */
}

/* Alignements explicites */
.copyright-left {
  text-align: left;
}

.copyright-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* --- Ajustement du Logo --- */
.footer-logo-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-link {
  display: inline-block;
  flex-shrink: 0;
}

.footer-brand-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Titres des colonnes --- */
.footer-col-title {
  color: var(--accent);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
  max-width: 450px;
}

/* Badges */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges .badge {
  background-color: #ffffff;
  color: #1a202c;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-badges .badge-index {
  background-color: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* --- Listes de Liens --- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: #ffffff !important;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  color: var(--secondary);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent) !important;
  padding-left: 6px;
}

.footer-links a:hover i {
  color: var(--accent);
  transform: translateX(2px);
}

/* --- Section Contact --- */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-contact-list li:first-child {
  align-items: flex-start;
}

.footer-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.footer-contact-list li:first-child .footer-icon-wrapper {
  margin-top: 3px;
}

.footer-svg-icon {
  width: 20px;
  height: 20px;
  color: #ffffff !important;
}

.footer-bottom a, 
.footer-bottom strong {
  color: #ffffff;
}

.badge-cc-small {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.separator {
  color: rgba(255, 255, 255, 0.25);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .footer-col {
    margin-bottom: 35px;
  }
}

@media (max-width: 767px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .copyright-right {
    justify-content: center;
  }
}

/* Force le lien de contact à rester blanc et sans soulignement, même au survol */
.footer-contact-list li a,
.footer-contact-list li a:hover,
.footer-contact-list li a:focus,
.footer-contact-list li a:active {
  color: #ffffff !important;
  text-decoration: none !important; /* Supprime le soulignement au survol */
  outline: none !important;
}

/* S'assure que l'enveloppe d'OJS ne bloque pas la largeur à 100% */
.pkp_structure_footer_wrapper,
.pkp_structure_footer_wrapper .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* 2. Neutralise TOUTES les marges et paddings parasites sur l'enveloppe OJS */
.pkp_structure_footer,
.pkp_structure_footer_wrapper,
.pkp_structure_footer_wrapper .container,
.pkp-footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

a:focus,
a:active,
button:focus,
button:active,
.btn:focus,
.btn:active,
input:focus,
select:focus,
textarea:focus,
[role="button"]:focus {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* boutons de traduction */
.footer-langs {
    display: block !important;
    margin-top: 25px !important;
    padding-top: 5px !important;
}

.footer-langs .btn-lang {
    display: inline-block !important;
    padding: 6px 16px !important;
    margin-right: 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    background: transparent !important;
    transition: all 0.25s ease-in-out !important;
}

.footer-langs .btn-lang:hover {
    color: #ffffff !important;
    border-color: #e5a93b !important; /* Ta couleur dorée */
    background-color: rgba(229, 169, 59, 0.1) !important; /* Léger fond doré */
}

.footer-langs .btn-lang.active {
    color: #102a43 !important; /* Bleu foncé pour contraster sur le fond doré */
    background-color: #e5a93b !important; /* Fond doré pour la langue active */
    border-color: #e5a93b !important;
}

/* =========================================================
   STYLE DU BLOC D'ACCUEIL (HERO CARD)
   ========================================================= */
.flsh-hero-card {
  position: relative;
  background-color: var(--ribbon-main-bg) !important; /* Même bleu que le header et le footer */
  border-radius: 12px;
  padding: 40px 55px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  color: #ffffff;
  display: block !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  clear: both !important;
}

.flsh-hero-content {
  position: relative;
  z-index: 2; /* Reste au-dessus des cercles de fond */
  max-width: 85%;
}

/* --- Sous-titre avec petite ligne dorée --- */
.flsh-hero-subtitle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.flsh-hero-line {
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: var(--accent, #e5a93b); /* Couleur Or */
}

.flsh-hero-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem !important;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent, #e5a93b);
  text-transform: uppercase;
}

/* --- Titre Principal --- */
.flsh-hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 3.5rem !important; /* Très grand (était à 3.2rem) */
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 30px;
  color: #ffffff;
}

.flsh-hero-title .text-gold {
  color: var(--accent, #e5a93b);
}

/* --- Texte descriptif --- */
.flsh-hero-text {
  font-size: 1.6rem !important; /* Très grand (était à 1.3rem) */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 950px;
}

/* --- Badges en bas --- */
.flsh-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.flsh-badge {
  font-size: 1.1rem !important; /* Agrandi (était à 0.95rem) */
  font-weight: 700;
  padding: 12px 24px !important; /* Plus d'espace à l'intérieur */
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badges dorés */
.badge-gold {
  border: 1px solid var(--accent, #e5a93b);
  color: var(--accent, #e5a93b);
}

/* Badges blancs à bordure fine */
.badge-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

/* --- Positionnement des cercles de décoration --- */
.flsh-hero-deco {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .flsh-hero-content {
    max-width: 100%;
  }
  .flsh-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .flsh-hero-card {
    padding: 25px 25px; /* Marges réduites pour mobile */
  }
  .flsh-hero-title {
    font-size: 2rem;
  }
  .flsh-hero-text {
    font-size: 1.15rem;
  }
  .flsh-hero-badges {
    gap: 8px;
  }
  .flsh-badge {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

/* Force le bloc Hero à prendre 100% de la largeur de la page */
.page_index_journal {
  display: block !important;
  width: 100% !important;
}

/* 1. On masque la barre latérale uniquement sur la page d'accueil */
body.pkp_page_index .pkp_structure_sidebar,
body.pkp_page_index_journal .pkp_structure_sidebar,
body.pkp_page_index .sidebar,
body.pkp_page_index_journal .sidebar {
  display: none !important;
}

/* 2. On force le contenu principal à prendre 100% de la largeur */
body.pkp_page_index .pkp_structure_main,
body.pkp_page_index_journal .pkp_structure_main,
body.pkp_page_index #main-content,
body.pkp_page_index_journal #main-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  float: none !important;
}

/* --- RESPONSIVE AJUSTÉ --- */
@media (max-width: 991px) {
  .flsh-hero-content {
    max-width: 100%;
  }
  .flsh-hero-title {
    font-size: 2.5rem;
  }
  .flsh-hero-card {
    padding: 35px 40px; /* Marges réduites pour tablette */
  }
}



/* =========================================================
   GESTION MULTILINGUE DU BLOC HERO (LIÉE AUX BOUTONS OJS)
   ========================================================= */

/* Par défaut, on masque tout pour éviter les sauts d'affichage */
.flsh-hero-card .lang-fr,
.flsh-hero-card .lang-en {
  display: none;
}

/* Si OJS met le site en français, on affiche uniquement les textes FR */
html[lang^="fr"] .flsh-hero-card .lang-fr {
  display: inline-block;
}

/* Si OJS met le site en anglais, on affiche uniquement les textes EN */
html[lang^="en"] .flsh-hero-card .lang-en {
  display: inline-block;
}

/* =========================================================
   STYLE DES GARANTIES ÉDITORIALES
   ========================================================= */
.editorial-guarantees {
    margin: 50px 0;
}

.editorial-guarantees .section-title {
    margin-bottom: 30px;
    color: var(--ribbon-main-bg);
    border-bottom: 2px solid var(--accent, #e5a93b);
    display: inline-block;
    padding-bottom: 10px;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.guarantee-box {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 30px; /* Un peu plus d'espace interne pour l'aération */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.guarantee-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.guarantee-box h3 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.4rem !important; /* Agrandi */
    font-weight: 700 !important; /* Mis en gras (Bold) */
    margin-bottom: 20px;
    line-height: 1.3;
}

.guarantee-box p {
    font-size: 1.1rem !important; /* Agrandi pour la lisibilité */
    line-height: 1.7;
    color: #333; /* Texte un peu plus foncé pour mieux contraster */
    margin-bottom: 20px;
}

.guarantee-box .status {
    font-weight: 700;
    font-size: 0.95rem !important; /* Agrandi */
    color: var(--accent, #e5a93b);
    text-transform: uppercase;
    display: block;
    margin-top: auto;
}

/* Gestion automatique multilingue (héritée de la logique précédente) */
.editorial-guarantees .lang-fr,
.editorial-guarantees .lang-en { display: none; }

html[lang^="fr"] .editorial-guarantees .lang-fr { display: inline; }
html[lang^="en"] .editorial-guarantees .lang-en { display: inline; }
/* =========================================================
   STYLE UNIFIÉ DES TITRES DE SECTIONS
   ========================================================= */
/* On applique le même style de titre aux Garanties ET aux Domaines */
.editorial-guarantees .section-title,
.research-fields .section-title {
    margin-bottom: 30px;
    color: var(--ribbon-main-bg);
    border-bottom: 2px solid var(--accent, #e5a93b);
    display: inline-block;
    padding-bottom: 10px;
}

/* =========================================================
   STYLE ET MULTILINGUE DES DOMAINES DE RECHERCHE
   ========================================================= */
.research-fields {
    margin: 50px 0;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.field-item {
    background: #ffffff; 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    border-left: 5px solid var(--accent, #e5a93b); /* Bande dorée très légèrement épaissie */
    padding: 22px 25px; /* Plus d'espace interne pour agrandir la boîte (était 15px 20px) */
    font-size: 1.2rem !important; /* Texte nettement agrandi (était 1.05rem) */
    font-weight: 600;
    color: var(--secondary);
    border-radius: 6px; /* Angles un poil plus doux */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* NOUVEAU : Ombre légère mais bien présente */
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.field-item:hover {
    transform: translateX(5px); 
    background: #fdfbf7;
    border-color: rgba(0, 0, 0, 0.15); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12); /* L'ombre s'agrandit au survol pour un effet 3D */
}

/* Gestion automatique multilingue pour cette nouvelle section */
.research-fields .lang-fr,
.research-fields .lang-en { 
    display: none; 
}
html[lang^="fr"] .research-fields .lang-fr { 
    display: inline; 
}
html[lang^="en"] .research-fields .lang-en { 
    display: inline; 
}

.editorial-note {
    margin: 40px 0 60px 0; 
    background-color: #fdfbf7; 
    border: 1px solid rgba(229, 169, 59, 0.4); /* Bordure unifiée (bande gauche retirée) */
    padding: 35px 40px; /* Espace interne agrandi */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.editorial-note .note-content {
    font-size: 1.4rem !important; /* Texte considérablement agrandi */
    line-height: 1.8;
    color: #111111; /* Noir presque pur pour un contraste maximal */
}

.editorial-note strong {
    color: var(--secondary); 
    font-weight: 700;
    font-size: 1.5rem !important; /* Le "Note importante" est encore plus grand */
    margin-right: 8px;
}

/* Gestion automatique multilingue pour la note */
.editorial-note .lang-fr,
.editorial-note .lang-en { 
    display: none; 
}
html[lang^="fr"] .editorial-note .lang-fr { 
    display: block; 
}
html[lang^="en"] .editorial-note .lang-en { 
    display: block; 
}

/* =====================
   PAGE "NUMÉRO COURANT"
   ===================== */

/* 1. Embellir la grande couverture du numéro */
.issue-toc .cover img, 
.issue-details .cover img,
.issue-toc .thumbnail img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease !important;
}

.issue-toc .cover img:hover,
.issue-details .cover img:hover {
    transform: scale(1.02);
}

/* Espacement et style de la date de publication */
.issue-toc .published,
.issue-toc .date-published {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-top: 15px;
}

/* 2. Moderniser le bouton bleu de téléchargement ("Annales intégrale...") */
.issue-toc .galley-link,
.issue-toc .galleys .btn,
.issue-toc .galley-links .btn,
.issue-toc .galleys_links a,
.issue-toc .btn-primary {
    background-color: var(--secondary, #102a43) !important; /* Ton bleu principal */
    border-color: var(--secondary, #102a43) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none !important;
}

.issue-toc .galley-link:hover,
.issue-toc .galleys .btn:hover,
.issue-toc .galley-links .btn:hover,
.issue-toc .galleys_links a:hover,
.issue-toc .btn-primary:hover {
    background-color: var(--accent, #e5a93b) !important; /* Devient doré au survol */
    border-color: var(--accent, #e5a93b) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 169, 59, 0.3) !important;
}

/* 3. Transformer la liste des articles en belles cartes (Cards) blanches */
.article-summary,
.obj_article_summary,
.issue-toc .article-summary {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.article-summary:hover,
.obj_article_summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(229, 169, 59, 0.3) !important; /* Bordure dorée très légère au survol */
}

/* Titres des articles à l'intérieur des cartes */
.article-summary .title a,
.obj_article_summary .title a,
.article-summary h4 a {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--secondary, #102a43) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    line-height: 1.4;
}

.article-summary .title a:hover,
.obj_article_summary .title a:hover,
.article-summary h4 a:hover {
    color: var(--accent, #e5a93b) !important;
}

/* Auteurs des articles */
.article-summary .authors,
.obj_article_summary .authors,
.article-summary .meta .authors {
    font-size: 1.05rem !important;
    color: #555 !important;
    font-style: italic !important;
    margin-top: 8px;
    margin-bottom: 10px;
}

/* Vignettes des couvertures d'articles (Thumbnails) */
.article-summary .cover img,
.obj_article_summary .cover img,
.article-summary .media-object {
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* 1. On supprime la grande bordure grise par défaut de Bootstrap 3 */
.page-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 15px !important;
}

/* 2. On applique ton style avec le soulignement doré (sans le gras) */
.page-header h1,
.page-header h2,
.issue-toc h1,
.issue-toc h2,
.current_issue h2 {
    color: var(--ribbon-main-bg) !important; 
    border-bottom: 2px solid var(--accent, #e5a93b) !important; 
    display: inline-block !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
    font-weight: normal !important; /* <-- C'est ici que j'ai enlevé le gras (bold) */
}

/* =======================
   BANNIÈRE DE SOUMISSION
   ======================= */

/* Forcer le centrage parfait du bloc sur la page */
.submit-banner-container {
    margin: 50px auto !important;
    float: none !important;
    clear: both !important;
    max-width: 1170px; /* Aligné sur la largeur max de Bootstrap 3 */
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.submit-banner {
    background-color: var(--secondary, #102a43) !important; /* Votre bleu principal */
    border-radius: 10px !important;
    padding: 45px 50px !important; /* Plus d'espace interne */
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Texte à gauche : On l'agrandit nettement */
.submit-banner-text {
    color: #ffffff !important;
    max-width: 65%;
    z-index: 2;
}

.submit-banner-text h3 {
    color: #ffffff !important;
    font-size: 32px !important; /* Titre très grand et visible */
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
}

.submit-banner-text p {
    color: #e2e8f0 !important; /* Couleur plus claire pour un meilleur contraste */
    font-size: 18px !important; /* Texte de description très lisible */
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Bouton à droite : Plus grand et plus imposant */
.submit-banner-action {
    z-index: 2;
    flex-shrink: 0; /* Empêche le bouton de se déformer */
    margin-left: 30px;
}

.btn-submit-banner {
    background-color: var(--accent, #e5a93b) !important; /* Votre doré */
    color: var(--secondary, #102a43) !important;
    font-weight: 700 !important;
    font-size: 16px !important; /* Écrit plus gros */
    letter-spacing: 1px;
    padding: 16px 35px !important; /* Bouton plus large et haut */
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* Évite que le texte du bouton s'affiche sur 2 lignes */
}

.btn-submit-banner:hover {
    background-color: #ffffff !important;
    color: var(--secondary, #102a43) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* Cercles décoratifs en arrière-plan */
.submit-banner::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -40%;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Version mobile responsive */
@media (max-width: 991px) {
    .submit-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 30px !important;
    }
    .submit-banner-text {
        max-width: 100%;
    }
    .submit-banner-action {
        margin-left: 0;
        width: 100%;
    }
    .btn-submit-banner {
        display: block;
        text-align: center;
    }
}
/* Par défaut, on cache les deux langues dans la bannière */
.submit-banner .lang-fr,
.submit-banner .lang-en { 
    display: none; 
}

/* Si la langue du site est le français, on affiche le français */
html[lang^="fr"] .submit-banner .lang-fr { 
    display: inline; 
}

/* Si la langue du site est l'anglais, on affiche l'anglais */
html[lang^="en"] .submit-banner .lang-en { 
    display: inline; 
}

/* =========================================================
   PAGE DE CONNEXION, INSCRIPTION & MOT DE PASSE (CORRIGÉE)
   ========================================================= */

/* 1. Fond de page global doux */
.pkp_page_login, 
.page_register,
.pkp_page_lostpassword,
.pkp_page_lostPassword,
.pkp_op_lostPassword,
.pkp_op_requestResetPassword,
.pkp_op_resetPassword,
.pkp_op_savePassword {
    background-color: #f8fafc !important; 
}

/* Enlever la bordure sous le titre de la page et le centrer */
.pkp_page_login .page-header,
.page_register .page-header,
.pkp_page_lostpassword .page-header,
.pkp_page_lostPassword .page-header,
.page_lost_password .page-header,
.page_reset_password .page-header {
    border-bottom: none !important;
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}

/* 2. CENTRAGE DE LA COLONNE PRINCIPALE (SANS TOUCHER AU FOOTER) 
   On cible toutes les variantes de pages d'inscription, connexion et mot de passe d'OJS */
.pkp_structure_main:has(.page_register),
.pkp_structure_main:has(.page_login),
.pkp_structure_main:has(.page_lost_password),
.pkp_structure_main:has(.page_lostPassword),
.pkp_structure_main:has(.page_lostpassword),
.pkp_structure_main:has(.page_reset_password),
.pkp_structure_main:has(.page_resetpassword),
/* Ciblage de secours via les classes de la balise body d'OJS */
body.pkp_op_lostPassword .pkp_structure_main,
body.pkp_op_requestResetPassword .pkp_structure_main,
body.pkp_op_resetPassword .pkp_structure_main,
body.pkp_op_savePassword .pkp_structure_main,
body.pkp_op_register .pkp_structure_main,
body.pkp_page_login .pkp_structure_main {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Masquer la barre latérale (sidebar) uniquement sur ces pages */
.pkp_structure_main:has(.page_register) + .pkp_structure_sidebar,
.pkp_structure_main:has(.page_login) + .pkp_structure_sidebar,
.pkp_structure_main:has(.page_lost_password) + .pkp_structure_sidebar,
.pkp_structure_main:has(.page_lostPassword) + .pkp_structure_sidebar,
.pkp_structure_main:has(.page_reset_password) + .pkp_structure_sidebar,
body.pkp_op_lostPassword .pkp_structure_sidebar,
body.pkp_op_requestResetPassword .pkp_structure_sidebar,
body.pkp_op_resetPassword .pkp_structure_sidebar,
body.pkp_op_savePassword .pkp_structure_sidebar {
    display: none !important;
}

/* 3. Transformation des formulaires en de belles "Cartes" blanches centrées */
#login, 
#register, 
#lostPasswordForm,
#resetPasswordForm {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    padding: 40px !important;
    box-shadow: 0 10px 25px rgba(16, 42, 67, 0.08) !important;
    
    width: 100% !important;
    margin: 20px auto 60px auto !important; /* Centrage parfait horizontal */
    float: none !important;
    display: block !important;
}

#login, 
#lostPasswordForm,
#resetPasswordForm {
    max-width: 480px !important; /* Format plus serré pour la connexion / mot de passe */
}

#register {
    max-width: 680px !important; /* Format idéal pour l'inscription */
}

/* 4. Modernisation des champs de saisie (Inputs et Selects) */
#login .form-control,
#register .form-control,
#lostPasswordForm .form-control,
#resetPasswordForm .form-control,
#register select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    height: auto !important;
    font-size: 15px !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

#login .form-control:focus,
#register .form-control:focus,
#lostPasswordForm .form-control:focus,
#resetPasswordForm .form-control:focus,
#register select:focus {
    border-color: var(--accent, #e5a93b) !important;
    box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.15) !important;
    outline: 0 !important;
}

/* Labels des formulaires */
#login label,
#register label,
#lostPasswordForm label,
#resetPasswordForm label {
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

/* 5. MISE EN PAGE SUR 2 COLONNES DES CHAMPS (SÉCURISÉE) */
@media (min-width: 768px) {
    #register .fields {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 15px !important;
        width: 100% !important;
    }

    #register .fields .form-group {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* Duo 1 : Prénom / Nom */
    #register .fields .form-group:has([id^="givenName"]),
    #register .fields .form-group:has([id^="familyName"]),
    #register .fields .form-group:has([name^="givenName"]),
    #register .fields .form-group:has([name^="familyName"]),
    
    /* Duo 2 : Affiliation / Pays */
    #register .fields .form-group:has([id^="affiliation"]),
    #register .fields .form-group:has([id^="country"]),
    #register .fields .form-group:has([name^="affiliation"]),
    #register .fields .form-group:has([name^="country"]),
    
    /* Duo 3 : Mot de passe / Confirmation */
    #register .fields .form-group:has([id^="password"]),
    #register .fields .form-group:has([id^="repeatPassword"]),
    #register .fields .form-group:has([name^="password"]),
    #register .fields .form-group:has([name^="repeatPassword"]) {
        width: calc(50% - 8px) !important;
    }
}

/* 6. STYLE UNIFIÉ DES BOUTONS PRINCIPAUX (Se connecter, S'inscrire, Envoyer) */
#login button[type="submit"],
#register button[type="submit"],
#lostPasswordForm button[type="submit"],
#resetPasswordForm button[type="submit"],
#login .btn-primary,
#register .btn-primary,
#lostPasswordForm .btn-primary,
#resetPasswordForm .btn-primary {
    background-color: var(--secondary, #102a43) !important;
    border-color: var(--secondary, #102a43) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 10px rgba(16, 42, 67, 0.15) !important;
}

#login button[type="submit"]:hover,
#register button[type="submit"]:hover,
#lostPasswordForm button[type="submit"]:hover,
#resetPasswordForm button[type="submit"]:hover,
#login .btn-primary:hover,
#register .btn-primary:hover,
#lostPasswordForm .btn-primary:hover,
#resetPasswordForm .btn-primary:hover {
    background-color: var(--accent, #e5a93b) !important;
    border-color: var(--accent, #e5a93b) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(229, 169, 59, 0.25) !important;
}

/* 7. CONTENEUR ET BOUTONS SECONDAIRES (Retour, Connexion, etc.) */
#login .buttons,
#register .buttons,
#lostPasswordForm .buttons,
#resetPasswordForm .buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 20px !important;
    width: 100% !important;
}

/* Boutons secondaires transparents avec bordure grise */
#login .btn-default,
#register .btn-default,
#lostPasswordForm .btn-default,
#resetPasswordForm .btn-default,
#login .buttons .btn-default,
#register .buttons .btn-default,
#lostPasswordForm .buttons .btn-default,
#resetPasswordForm .buttons .btn-default {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
    box-shadow: none !important;
}

#login .btn-default:hover,
#register .btn-default:hover,
#lostPasswordForm .btn-default:hover,
#resetPasswordForm .btn-default:hover,
#login .buttons .btn-default:hover,
#register .buttons .btn-default:hover,
#lostPasswordForm .buttons .btn-default:hover,
#resetPasswordForm .buttons .btn-default:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    text-decoration: none !important;
}

/* Liens textuels simples internes aux cartes (comme "Mot de passe oublié ?") */
#login a,
#lostPasswordForm a,
#resetPasswordForm a {
    color: var(--secondary, #102a43) !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

#login a:hover,
#lostPasswordForm a:hover,
#resetPasswordForm a:hover {
    color: var(--accent, #e5a93b) !important;
    text-decoration: none !important;
}

/* =========================================================
   PAGE ARCHIVES - CONFIGURATION SPÉCIFIQUE BOOTSTRAP 3
   ========================================================= */

/* 1. Conteneur global de la liste des archives */
.page_issue_archive .issues_list {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important; /* Espacement régulier entre les cartes */
    margin-top: 30px !important;
    margin-bottom: 60px !important;
}

/* 2. Transformation du composant Media de Bootstrap 3 en Carte moderne */
.issue-summary.media,
.obj_issue_summary {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(16, 42, 67, 0.04) !important;
    transition: all 0.3s ease-in-out !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    /* Force le flexbox pour aligner la couverture et le texte */
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
}

/* Effet de survol sur la carte (contour doré très adouci) */
.issue-summary.media:hover,
.obj_issue_summary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(16, 42, 67, 0.08) !important;
    border-color: rgba(229, 169, 59, 0.3) !important; /* Doré très subtil et atténué */
}

/* 3. NEUTRALISATION DE BOOTSTRAP 3 */
.issue-summary.media .media-left,
.issue-summary.media .media-right,
.issue-summary.media .media-body {
    display: block !important;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

/* 4. Style de l'image de couverture (à gauche) */
.issue-summary .media-left,
.issue-summary .cover,
.obj_issue_summary .cover {
    max-width: 140px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.issue-summary .media-object,
.issue-summary .cover img,
.obj_issue_summary .cover img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.issue-summary:hover .media-object,
.issue-summary:hover .cover img,
.obj_issue_summary:hover .cover img {
    transform: scale(1.03) !important;
}

/* 5. Contenu textuel (à droite) */
.issue-summary .media-body,
.obj_issue_summary > div:not(.cover) {
    flex-grow: 1 !important;
}

/* Titre du numéro (ex: Vol. 10 No. 2) */
.issue-summary .media-heading,
.issue-summary .title,
.obj_issue_summary .title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.issue-summary .media-heading a,
.issue-summary .title a,
.obj_issue_summary .title a {
    color: var(--secondary, #102a43) !important; /* Garde la couleur d'origine */
    text-decoration: none !important;
    transition: none !important; /* Pas de transition de couleur */
}

/* Désactivation du changement de couleur au survol du titre */
.issue-summary .media-heading a:hover,
.issue-summary .title a:hover,
.obj_issue_summary .title a:hover {
    color: var(--secondary, #102a43) !important; /* Reste bleu au survol */
    text-decoration: underline !important; /* Soulignement léger classique */
}

/* Date de publication */
.issue-summary .published,
.obj_issue_summary .published {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Description / Présentation du numéro */
.issue-summary .description,
.obj_issue_summary .description {
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* 6. ADAPTATION RESPONSIVE (Mobiles) */
@media (max-width: 576px) {
    .issue-summary.media,
    .obj_issue_summary {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
    }

    .issue-summary .media-left,
    .issue-summary .cover,
    .obj_issue_summary .cover {
        max-width: 120px !important;
        margin-bottom: 15px !important;
    }
}

/* Style du titre de la page du numéro courant */
.page_issue .page-header {
    border-bottom: none !important; /* Supprime la barre grise Bootstrap 3 sous le titre */
    margin-top: 20px !important;
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
}

.page_issue .issue-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--secondary, #102a43) !important; /* Ton bleu principal */
    line-height: 1.3 !important;
}

/* Style moderne aligné à gauche (non gras) pour le titre */
.page_issue_archive .section-title {
    text-align: left !important;             /* Aligné à gauche */
    font-size: 28px !important;
    font-weight: normal !important;          /* Pas de gras (équivalent à 400) */
    color: var(--secondary, #102a43) !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    position: relative !important;
}

/* Petite ligne dorée décorative alignée à gauche sous le titre */
.page_issue_archive .section-title::after {
    content: "" !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background-color: var(--accent, #e5a93b) !important;
    margin: 12px 0 0 0 !important;          /* Alignée à gauche */
    border-radius: 2px !important;
}

/* =========================================================
   SYSTÈME DE TRADUCTION GLOBALE (FRANÇAIS / ANGLAIS)
   ========================================================= */

/* --- 1. SI LA LANGUE ACTIVE EST LE FRANÇAIS --- */
/* On masque l'anglais partout sur le site */
html[lang^="fr"] .lang-en,
body.lang-fr .lang-en,
body.fr_CA .lang-en,
body.fr_FR .lang-en {
    display: none !important;
}

/* --- 2. SI LA LANGUE ACTIVE EST L'ANGLAIS --- */
/* On masque le français partout sur le site */
html[lang^="en"] .lang-fr,
body.lang-en .lang-fr,
body.en_US .lang-fr,
body.en_GB .lang-fr {
    display: none !important;
}