/* ==========================================================================
   FICHIER USER.CSS - CONFIGURATION EXPERTE JOOMLA 5.4.2
   Projet : Compagnie Saint Germain
   ========================================================================== */


/* --- 1. VARIABLES DE COULEURS (À adapter selon votre logo) --- */
:root {
    --cassiopeia-color-primary: #336699; /* Remplacez par le bleu/couleur de votre logo */
    --cassiopeia-color-hover: #5588BB;   /* Couleur de survol */
}

/* --- 2. ZONE A : HEADER (Logo gauche / Menu droite) --- */

/* Configuration pour écrans larges (Ordinateurs) */
header.header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 10px 20px !important;
}

/* Taille du logo */
header.header .navbar-brand img {
    max-width: 350px !important;
    height: 100px !important;
}

/* Menu horizontal */
header.header .container-nav ul.mod-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.header .container-nav ul.mod-menu > li {
    margin-left: 20px !important;
}

header.header .container-nav ul.mod-menu > li > a,
header.header .container-nav ul.mod-menu > li > span {
    white-space: nowrap !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    color: #333333;
}

/* Gestion du sous-menu (Patrimoine) */
.mod-menu__sub {
    position: absolute !important;
    background: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    padding: 10px !important;
    z-index: 1000 !important;
    display: none !important;
}

li.parent:hover .mod-menu__sub {
    display: block !important;
}



/* --- 4. LIEN DE CONNEXION DISCRET --- */
.nav-item.item-111 a { /* Remplacez 111 par l'ID réel de votre lien Connexion */
    font-size: 0.8em !important;
    opacity: 0.7;
}

/* --- CONFIGURATION MENU BURGER MOBILE --- */

@media (max-width: 400px) {
    /* 1. Aligner le logo à gauche et le bouton Burger à droite */
    header.header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: left !important;
        padding: 0px !important;
    }

    /* 2. Ajuster la taille du logo sur mobile */
    header.header .navbar-brand img {
        max-width: 200px !important;
        height: 60px !important;
    }

    /* 3. Style du bouton Burger (Toggler) */
    .navbar-toggler {
        border: 1px solid  !important; /* Bordure aux couleurs du logo */
        padding: 5px !important;
    }

    /* 4. Forcer le menu déroulant à prendre toute la largeur sous le header */
    .navbar-collapse {
        position: 10px !important;
        top: 10%; /* S'affiche juste en dessous du header */
        left: 0;
        right: 0;
        background-color: #336699 !important;
        z-index: 100 !important;
        padding: 15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }

    /* 5. Liens du menu en vertical une fois ouvert */
    .navbar-collapse ul.mod-menu {
        flex-direction: column !important;
        background-color: #336699 !important;
    }

    .navbar-collapse ul.mod-menu li {
        margin: 10px 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }
}



/* ============================================
   PERSONNALISATION JT HISTORIA
   ============================================ */

/* Timeline Container */
.jt-historia-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Navigation latérale */
.jt-historia-nav {
  background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.jt-historia-nav-item {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ECF0F1;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
}

.jt-historia-nav-item:hover {
  background: rgba(212, 175, 55, 0.2);
  padding-left: 25px;
}

.jt-historia-nav-item.active {
  background: #D4AF37;
  color: #2C3E50;
  border-left: 5px solid #8B4513;
  padding-left: 20px;
}

/* Timeline centrale */
.jt-historia-timeline {
  position: relative;
  padding-left: 40px;
}

/* Ligne verticale */
.jt-historia-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #8B4513 0%, #D4AF37 100%);
  border-radius: 2px;
}

/* Point sur la timeline */
.jt-historia-item::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #D4AF37;
  border: 4px solid #8B4513;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Carte de contenu */
.jt-historia-content {
  background: #FFFFFF;
  border: 1px solid #ECF0F1;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
  transition: all 0.3s ease;
}

.jt-historia-content:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
  transform: translateX(5px);
}

/* Titre de l'événement */
.jt-historia-content h3 {
  color: #2C3E50;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: 3px solid #D4AF37;
  padding-bottom: 10px;
}

/* Date de l'événement */
.jt-historia-date {
  color: #8B4513;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Image dans le contenu */
.jt-historia-content img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  float: left;
  margin: 0 20px 15px 0;
  max-width: 300px;
}

/* Texte du contenu */
.jt-historia-text {
  color: #555;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

/* Bouton "Lire la suite" */
.jt-historia-readmore {
  display: inline-block;
  background: #8B4513;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.jt-historia-readmore:hover {
  background: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

/* Flèches de navigation */
.jt-historia-arrows {
  position: sticky;
  top: 50%;
  margin-top: 20px;
}

.jt-historia-arrow {
  width: 40px;
  height: 40px;
  background: #F8F9FA;
  border: 2px solid #8B4513;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.jt-historia-arrow:hover {
  background: #8B4513;
  color: white;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .jt-historia-nav {
    width: 100% !important;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
  }
  
  .jt-historia-timeline {
    padding-left: 20px;
  }
  
  .jt-historia-content img {
    float: none;
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
  }
  
  .jt-historia-item::before {
    left: -26px;
  }
}

/* ==== TEST ====  
body {
  background-color: #2C3E50 !important;
}
 ==== FIN TEST ==== */





/* ========================================
   MODÈLES D'ARTICLES FORMAT A ET B
   ======================================== */

/* ============ FORMAT A ============ */

.article-format-a {
  max-width: 900px;
  margin: 0 auto;
}

.article-title-a {
  font-size: 14px;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 0;
}

.spacer-large {
  height: 60px;
}

.content-with-thumbnail {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 0;
}

.text-zone {
  flex: 2;
}

.text-zone p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.thumbnail-zone {
  flex: 1;
  max-width: 200px;
}

.thumbnail-zone a {
  display: block;
  border: 1px solid #ECF0F1;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.thumbnail-zone a:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
  transform: translateY(-3px);
}

.thumbnail-zone img {
  display: block;
  width: 100%;
  height: auto;
}

.links-list {
  margin-top: 0;
}

.links-list p {
  margin: 10px 0;
}

.links-list a {
  color: #8B4513;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.links-list a:hover {
  color: #D4AF37;
  padding-left: 5px;
}

/* ============ FORMAT B ============ */

.article-format-b {
  max-width: 800px;
  margin: 0 auto;
}

.article-title-b {
  font-size: 14px;
  font-weight: bold;
  color: #2C3E50;
  text-align: center;
  margin-bottom: 0;
}

.spacer-medium {
  height: 40px;
}

.main-image {
  text-align: center;
  margin: 0 auto;
}

.main-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ECF0F1;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-content {
  line-height: 1.8;
}

.main-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.main-content h3 {
  font-size: 18px;
  color: #2C3E50;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #D4AF37;
  padding-bottom: 5px;
}

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

@media (max-width: 768px) {
  .content-with-thumbnail {
    flex-direction: column;
  }
  
  .thumbnail-zone {
    max-width: 100%;
    margin-top: 20px;
  }
  
  .main-image img {
    width: 100%;
    height: auto;
  }
}

/* ============ Modele A pour article 3 colonnes ============ */
.content-three-columns {
  display: flex;
  gap: 20px;
}

.content-three-columns > div {
  flex: 1;
}

.links-list a::before {
  content: "→ ";
  color: #D4AF37;
  font-weight: bold;
  margin-right: 5px;
}

.links-list {
  counter-reset: link-counter;
}

.links-list p {
  counter-increment: link-counter;
}

.links-list a::before {
  content: counter(link-counter) ". ";
  color: #D4AF37;
}



/* ========================================
   AGRANDIR ZONE MENU DANS LE HEADER
   ======================================== */

.site-branding {
  flex: 0 0 200px !important;
}

.container-nav {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 5px !important;
}



/* ========================================
   FOOTER - MENU HORIZONTAL AVEC SÉPARATEURS
   VERSION CORRIGÉE
   ======================================== */

/* Menu horizontal centré */
footer ul.nav, 
.footer ul.nav,
.site-footer ul.nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

/* Items du menu */
footer ul.nav li.nav-item,
.footer ul.nav li.nav-item,
.site-footer ul.nav li.nav-item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Séparateur vertical | */
footer ul.nav li.nav-item:not(:last-child)::after,
.footer ul.nav li.nav-item:not(:last-child)::after,
.site-footer ul.nav li.nav-item:not(:last-child)::after {
    content: "|" !important;
    margin: 0 15px !important;
    color: #999999 !important;
    font-size: 0.8rem !important;
}

/* Liens du footer - ÉTAT NORMAL (jaune/or) */
footer ul.nav li.nav-item a,
.footer ul.nav li.nav-item a,
.site-footer ul.nav li.nav-item a,
footer a,
.site-footer a {
    font-size: 0.85rem !important;
    color: #FFEB3B !important;  /* Jaune/Or */
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Liens du footer - ÉTAT HOVER (blanc) */
footer ul.nav li.nav-item a:hover,
.footer ul.nav li.nav-item a:hover,
.site-footer ul.nav li.nav-item a:hover,
footer a:hover,
footer a:active,
footer a:focus,
.site-footer a:hover {
    color: #FFFFFF !important;  /* Blanc au survol */
    text-decoration: none !important;  /* Pas de soulignement */
    background: transparent !important;
}

/* Lien visité */
footer a:visited,
.site-footer a:visited {
    color: #FFEB3B !important;
}


/* ========================================
   MODÈLE FORMAT D
   Texte/Image + Texte pleine largeur + Navigation
   ======================================== */

/* Container principal */
.article-format-d {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* --- ZONE 1 : TEXTE + IMAGE (50/50) --- */

.text-image-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* Texte gauche (50%) */
.text-left {
  flex: 1;
}

.title-format-d {
  font-size: 24px;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.text-left p {
  margin-bottom: 15px;
  line-height: 1.7;
  text-align: justify;
}

/* Image droite (50%) */
.image-right {
  flex: 1;
}

.image-right img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #ECF0F1;
}

/* --- ZONE 2 : TEXTE PLEINE LARGEUR --- */

.text-full-width {
  margin-bottom: 40px;
  padding: 30px;
  background: #F8F9FA;
  border-radius: 8px;
  border-left: 4px solid #D4AF37;
}

.text-full-width p {
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

.text-full-width h3 {
  font-size: 20px;
  color: #2C3E50;
  margin-top: 25px;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}

/* --- ZONE 3 : NAVIGATION FLÈCHES --- */

.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 2px solid #ECF0F1;
  margin-top: 30px;
}

.nav-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #8B4513;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-arrow:hover {
  background: #D4AF37;
  transform: translateX(0);
}

/* Flèche précédent à gauche */
.nav-prev:hover {
  transform: translateX(-5px);
}

/* Flèche suivant à droite */
.nav-next:hover {
  transform: translateX(5px);
}

.nav-arrow .arrow {
  font-size: 24px;
  font-weight: bold;
}

.nav-arrow .nav-text {
  font-size: 14px;
}

/* Si un seul lien (pas de précédent ou pas de suivant) */
.nav-arrow:only-child {
  margin: 0 auto;
}

/* --- RESPONSIVE MOBILE --- */

@media (max-width: 768px) {
  
  /* Zone texte/image en colonne sur mobile */
  .text-image-row {
    flex-direction: column;
  }
  
  .title-format-d {
    font-size: 20px;
  }
  
  /* Texte pleine largeur : moins de padding */
  .text-full-width {
    padding: 20px;
  }
  
  /* Navigation en colonne sur mobile */
  .article-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-arrow {
    width: 100%;
    justify-content: center;
  }  
}

/* --- Les brèves et flèche clignotante --- */
.breves-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
}

.breves-text {
  color: #00000;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.breves-arrow {
  margin-top: 5px;
  font-size: 18px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    color: #34495e;
  }
  50% {
    color: #ffffff;
  }
  100% {
    color: #34495e;
  }
}

/* ========================================
   BANDEAU DÉFILANT (POSITION BANNER)
   ======================================== */

/* Container principal */
.news-ticker-banner {
  background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  color: #FFFFFF;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid #D4AF37;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-family: 'Open Sans', sans-serif;
}

/* Contenu qui défile */
.ticker-wrapper {
  display: flex;
  animation: scroll-ticker 20s linear infinite;
  white-space: nowrap;
}

/* Items individuels */
.ticker-item {
  display: inline-block;
  padding: 0 60px;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
}

/* Puces séparatrices dorées */
.ticker-item::before {
  content: "●";
  margin-right: 20px;
  color: #D4AF37;
  font-size: 18px;
  vertical-align: middle;
}

/* Premier item sans puce */
.ticker-item:first-child::before {
  display: none;
}

/* Animation de défilement */
@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause au survol */
.news-ticker-banner:hover .ticker-wrapper {
  animation-play-state: paused;
  cursor: pointer;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .news-ticker-banner {
    padding: 10px 0;
  }
  
  .ticker-item {
    font-size: 13px;
    padding: 0 40px;
  }
  
  .ticker-item::before {
    margin-right: 15px;
    font-size: 16px;
  }
}

/* ========================================
   MENU HEADER - HARMONISATION AVEC FOOTER
   ======================================== */

/* Menu principal header - Liens jaune/or */
.container-header nav ul.mod-menu li a,
.container-header .navbar-nav .nav-item a {
  color: #D4AF37 !important;  /* Or */
  text-decoration: none !important;
  transition: color 0.3s ease;
}

/* Hover - Blanc */
.container-header nav ul.mod-menu li a:hover,
.container-header .navbar-nav .nav-item a:hover {
  color: #FFFFFF !important;  /* Blanc */
}

/* Lien actif (page actuelle) - Blanc */
.container-header nav ul.mod-menu li.active a,
.container-header .navbar-nav .nav-item.active a,
.container-header nav ul.mod-menu li.current a,
.container-header .navbar-nav .nav-item.current a {
  color: #FFFFFF !important;
  font-weight: 600;
}

/* Sous-menus (dropdowns) si vous en avez */
.container-header nav ul.mod-menu li ul li a {
  color: #D4AF37 !important;
  background: #2C3E50;
  padding: 10px 15px;
}

.container-header nav ul.mod-menu li ul li a:hover {
  color: #FFFFFF !important;
  background: #34495E;
}

/* Menu burger sur mobile - même style */
@media (max-width: 991px) {
  .navbar-collapse ul.mod-menu li a,
  .navbar-collapse .navbar-nav .nav-item a {
    color: #D4AF37 !important;
  }
  
  .navbar-collapse ul.mod-menu li a:hover,
  .navbar-collapse .navbar-nav .nav-item a:hover {
    color: #FFFFFF !important;
    background: rgba(255,255,255,0.1);
  }
}