/* 
 * SQUELETTE CSS - EPOC
 * ---------------------
 * Ce fichier contient les styles de base pour le squelette de page EPOC.
 * Il est conçu pour être facilement extensible et personnalisable.
 */

/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ====================================
   ÉLÉMENTS FIXES - NE PAS MODIFIER
   ==================================== */
/* search box */
    .search-box { position: relative; width: 185px; }
    .search-box input {
      width: 100%; padding: 10px 10px 10px 36px;
      box-sizing: border-box; font-size: 16px;
    }
    .search-box::before {
      
      left: 10px; top: 50%;
      transform: translateY(-50%);
      font-size: 16px; color: #666; pointer-events: none;
    }
    .suggestions {
      position: absolute; top: 40px; left: 0; right: 0;
      border: 1px solid #ff7200;
      background: white; max-height: 200px;
      overflow-y: auto; z-index: 1000;
    }
    .suggestion {
      padding: 10px; cursor: pointer;
      text-decoration: none; display: block; color: black;
    }
    .suggestion:hover {
      background-color: #f0f0f0;
    }
/* Barre d'actualités défilante */
.news-ticker-link {
    display: block;
    width: 100%;
}
.news-tickers {  
	display: flex;
	height:15px;
 	position: fixed;
    background-color:#f5f5f5;
	top:0;
	left:250px;
	width: calc(100% - 250px - 20px); /* Largeur ajustée pour s'arrêter au bord droit de la deuxième carte */
    max-width: 1170px; /* Largeur maximale correspondant aux deux cartes */ 
	z-index: 1001;
	}
.news-ticker {
    display: flex;
    background-color: #e86c00;
    color: white;
    height: 40px;
    overflow: hidden;
    position: fixed;
    top: 10px;
    z-index: 1000;
    transition: background-color 0.3s;
    border-radius: 10px;
    left: 250px;
    width: calc(100% - 250px - 20px);
    max-width: 1170px;
}

.news-ticker:hover {
    background-color: #ff7b00;
}

.ticker-title {
    background-color: #e86c00;
    padding: 10px 15px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
    transition: background-color 0.3s;
    border-radius: 10px 0 0 10px;
    position: relative;
    left: 0;
}

.news-ticker:hover .ticker-title {
    background-color: #ff7b00;
}

.ticker-content {
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.ticker-content span {
    display: inline-block;
    animation: ticker 15s linear infinite;
    position: absolute;
}

@keyframes ticker {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-100%); }
}

/* Structure principale */
.main-container {
    display: flex;
    margin-top: 0;
    min-height: calc(100vh - 40px);
}

/* Barre latérale */
.sidebar {
	
    width: 215px;
    background-color: #00507D;
    color: white;
    padding: 0 15px 15px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 900;
}

/* Espace bleu au-dessus du logo */
.sidebar::before {
    content: "";
    display: block;
    height: 15px;
    background-color: #00507D;
    margin: 0 -15px;
    width: calc(100% + 30px);
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 15px;
}

.logo img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e86c00;
    border-radius: 10px;
    background-color: #0a3b73;
    padding: 5px;
}

.site-title {
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
    white-space: nowrap;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #0a3b73;
    border-radius: 5px;
    background-color: white;
}

/*.main-nav ul li {
    margin-bottom: 10px;
}

.main-nav ul li a {
    display: block;
    padding: 10px;
    background-color: #0a3b73;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    font-weight: bold;
}

.main-nav ul li a.active {
    background-color: #e86c00;
}

.main-nav ul li a:hover {
    opacity: 0.9;
} */
.main-nav {
    padding: 0;
    margin: 0 0 8px 0;
    width: var(--sidebar-content-width);
    margin-left: var(--sidebar-padding-left);
    box-sizing: border-box;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.main-nav ul li:last-child {
    border-bottom: none;
}

.main-nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.98rem;
    text-transform: uppercase;
    padding: 9px 0;
    position: relative;
    transition: color 0.18s;
    letter-spacing: 0.01em;
    background: transparent;
}

.main-nav ul li a::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}

.main-nav ul li a.active::before,
.main-nav ul li a:hover::before {
    background: #e86c00;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /*margin-top: 20px;*/
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #0a3b73;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 20px;
}

.social-icons a:hover {
    background-color: #e86c00;
}
  /* IcÃ´nes sociaux GRILLE 3x3 compacte */

    
    .sidebar-social-logos {
       display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px 6px;
      justify-items: center;
      align-items: center;
      padding: 7px 0 7px 0;
      width: 100%;
      margin: 350px auto 0;
      background: transparent;
      min-height: 58px;
      border-radius: 0;
      position: relative;
      z-index: 20;
      
    }
        .sidebar-social-logos i.fa-brands {

      color:#fff;
    }
    .sidebar-social-logos a {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: transparent;
      border: none;
      box-shadow: none;
      position: relative;
      transition: background 0.12s;
      padding: 0;
      text-decoration: none;
    }

    .sidebar-social-logos img {
      width: 19px;
      height: 19px;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 1px 3px #0002);
      margin-bottom: 1px;
    }
.sidebar-social-logos a::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.17s;
  position: absolute;
  bottom: -6px;
  left: 40%;
  margin-top:0px;
  
}
    .sidebar-social-logos a:hover::after,
    .sidebar-social-logos a:focus::after {
      background: #ff7200;
    }
    .custom-fa-icon {
      width: 1.5em;
      height: 1.5em;
      display: inline-block;
      vertical-align: top;
      fill: currentColor;
      transition: color 0.3s;
    }


.sidebar-social-logos svg.custom-fa-icon {
  width: 1.5em;
  height: 1.5em;
  fill: #fff;
  display: block;
  margin-bottom: 1px;
  filter: drop-shadow(0 1px 3px #0002);

}
/* ====================================
   ZONE MODULAIRE - PERSONNALISABLE
   ==================================== */

/* Contenu principal */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 230px;
	margin-top:040px;
    display: grid;
    grid-template-columns: minmax(0, 1210px) 320px;
    grid-gap: 20px;
    max-width: 1550px;
}

/* Zone de contenu principal */
.page-content {
    grid-column: 1;
    width: 100%;
    max-width: 1210px;
}

/* Titre de section */
.section-title {
    color: #0e4c92;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}
.color-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Zone de contenu principal */
.main-content-area {
    margin-bottom: 40px;
}

/* Bloc de contenu */
.content-block {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content-block h2 {
    color: #00507D;
    margin-bottom: 15px;
    font-size: 20px;
}

.content-block h3 {
    color: #00507D;
    margin-bottom: 10px;
    font-size: 18px;
}

.content-block p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Zone de contenu secondaire */
.secondary-content-area {
    margin-bottom: 40px;
}

/* Blocs latéraux */
.sidebar-blocks {
    grid-column: 2;
    width: 100%;
    max-width: 300px;
     margin-top: 48px; /* Alignement avec le contenu principal */
}

.sidebar-block {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-block-title {
    background-color: #00507D;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-align: center;
}

.sidebar-block-content {
    padding: 15px;
}
/* Bloc Calendrier */
.election-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.election-bullet {
    width: 10px;
    height: 10px;
    background-color: #e86c00;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.election-info {
    flex-grow: 1;
}

.election-country {
    font-weight: bold;
    color: #00507D;
}

.election-type {
    font-size: 14px;
    color: #333;
}

.election-date {
    color: #e86c00;
    font-weight: bold;
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Bloc Explorer */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.explorer-item {
    background-color: #e86c00;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.explorer-item:hover {
    background-color: #ff7b00;
}

.explorer-item.full-width {
    grid-column: span 2;
}

.explorer-item i {
    font-size: 24px;
    margin-bottom: 5px;
}
/*-------CALENDRIER-------*/
/* Bloc Calendrier (aperçu) */
.calendar-block {
  /*border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);*/
  padding: 20px 24px;
  background: #fff;
  margin-bottom: 18px;
  position: relative;
}

.calendar-title {
  font-size: 1.18em;
  font-weight: bold;
  color: #185fa8;
  margin: 0 0 14px 0;
  letter-spacing: 0.5px;
}

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

 .calendar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size:1em;
}

.calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.calendar-country {
  flex: 1 1 auto;
  font-size: 0.98em;
}

.calendar-date {
  background: #f1f1f1;
  color: #00507D;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 7px;
  padding: 2px 10px;
  margin-left: 8px;
  
}

.calendar-btn {
    display: block;
    margin-top:32px ;
    margin-bottom: 0;
    margin-left: auto;
    margin-right:auto;
    background: #00507D;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.95em;
  font-weight: bold;
  /*margin: 16px 0 0 0;*/
  cursor: pointer;

  
}
.calendar-btn:hover {
  background: #133f75;
  box-shadow: 0 6px 18px rgba(24,95,168,0.14);
}
/* MODAL */
.calendar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 51, 0.35);
  z-index: 1002;
  cursor: pointer;
  animation: fadeIn 0.25s;
}

.calendar-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 95vw;
  max-width: 390px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(30, 56, 87, 0.18);
  transform: translate(-50%, -50%);
  z-index: 1003;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  animation: popIn 0.24s;
}
@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -43%) scale(0.95);}
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1);}
}

.calendar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding:10px 10px 0 10px;
  border-bottom: 1px solid #f2f2f2;
  border-radius: 8px;
  padding-bottom: 10px;
  background-color: #0e4c92;
}

.calendar-modal-title {
  font-size: 1.13em;
  font-weight: 700;
  color:#fff;
  
}

.calendar-modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.7em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.15s;
}
.calendar-modal-close:hover {
  color: #185fa8;
}
/* Boutons "Voir tout" */
.view-all-button {
    display: block;
    background-color: #00507D;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.view-all-button:hover {
    background-color: #0a3b73;
}

/* Bloc Décès */
.death-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.death-info {
    flex-grow: 1;
}

.death-name {
    /*font-weight: bold;
    color: #0e4c92;*/
	color: #00507D;
    font-size: 16px;
	font-weight:600;
    margin: 0 0 0 5px;
}

.death-details {
    /*font-size: 14px;
    color: #333;*/
	color: gray;
    font-size: 13px;
	font-weight:600;
    margin: 0 0 2px 5px;
}

.death-details span {
    color: #e86c00;
}


/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Responsive Design */
@media (max-width: 1500px) {
    .content {
        grid-template-columns: minmax(0, 900px) 300px; /* Réduire la largeur des colonnes */
    }
}

@media (max-width: 1200px) {
    .content {
        grid-template-columns: 1fr; /* Une seule colonne sur écrans plus petits */
    }
    
    .main-content {
        grid-column: 1;
    }
    
    .sidebar-blocks {
        grid-column: 1;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr); /* Maintenu à 4 colonnes sur desktop */
    }
}

@media (max-width: 992px) {
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr); /* Maintenu à 4 colonnes sur desktop */
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
		margin-top:40px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 0 15px 15px; /* Ajustement du padding pour mobile */
    }
    
    .sidebar::before {
        margin: 0 -15px;
        width: calc(100% + 30px);
    }
    .search-box { width: 100%; }
    .content {
        margin-left: 0;
		margin-top:0;
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .page-content {
    width: 100%;
    max-width: 768px;
}
.content-block {
    padding: 0px;
    
}
    .social-icons {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .carousel-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        overflow-x: hidden;
        position: relative;
    }
    
    .carousel {
        width: 100%;
    }
    
    .carousel-item {
        display: none;
    }
    
    .carousel-item.active {
        display: block;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    }
    
    .article-image {
        height: auto;
        width: 100%;
    }
    
    /* Effet de surbrillance pour mobile */
    .news-ticker:active {
        background-color: #ff7b00;
    }
    
    .news-ticker:active .ticker-title {
        background-color: #ff7b00;
    }
    
    /* Alignement du bandeau DERNIÈRE ACTUALITÉ sur mobile */
	    .news-tickers {
        width: 0%; /* Occuper toute la largeur sur mobile */
		background:none;
        margin-left: 0;
        left: 0;
        right: 0;
		top:0;
        padding-left: 15px; /* Aligner avec le bord gauche du cadre du logo */
       
    }
    .news-ticker {
        width: 100%; /* Occuper toute la largeur sur mobile */
        margin-left: 0;
        left: 0;
        right: 0;
		top:0;
        padding-left: 15px; /* Aligner avec le bord gauche du cadre du logo */
        border-radius: 0; /* Pas de bords arrondis sur mobile */
    }
    
    .ticker-title {
        border-radius: 0; /* Pas de bords arrondis sur mobile */
        position: static; /* Réinitialiser la position sur mobile */
		background-color: #e86c00;
   		padding: 10px 15px;
		margin-left:-15px;
	}
  /* Masquer les profils 3 et 4 sur mobile */
    .profile-card:nth-child(n+3) {
        display: none; 
		

   
} 
	.sidebar-social-logos {
      
      margin: 0 auto 0;
       grid-template-columns: repeat(9, 1fr);
      
    }
  }
    
   

@media (max-width: 576px) {
	.main-container {  margin-top: 40px; }
    .social-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-image {
        height: auto;
    }
    
    .profile-image {
        height: 150px;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    }
    
    .explorer-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur très petit écran */
    }
    
    .explorer-item.full-width {
        grid-column: span 1;
    }
 

}
/* Marges */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Couleurs de texte */
.text-primary { color: #0e4c92; }
.text-secondary { color: #e86c00; }
.text-dark { color: #333; }
.text-light { color: #f5f5f5; }

/* Alignements de texte */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #0e4c92;
    color: white;
}

.btn-primary:hover {
    background-color: #0a3b73;
}

.btn-secondary {
    background-color: #e86c00;
    color: white;
}

.btn-secondary:hover {
    background-color: #ff7b00;
}

.btn-full {
    display: block;
    width: 100%;
}
