/* 
FICHIER : styles.css
POSITION : /styles.css
VERSION : MVP1 — mise en page fluide en 3 colonnes, avec header et footer pleine largeur
*/

/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corps général */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #002244;
  color: white;
  padding: 1rem 2rem;
  border-bottom: 4px solid #004080;
}

/* Barre des langues (drapeaux) */
.lang-switch img {
  width: 70px;
  height: auto;
  margin-left: 0.5rem;
  cursor: pointer;
  vertical-align: middle;
}

/* Barre haute : langues */
#top-bar {
  height: 40px;
  background-color: #003366; /* ton bleu CV */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid white; /* liserai blanc fin */
}

/* Barre basse : logo + titre */
#main-bar {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: #ffffff;
}

#menu-bar {
  height: 40px;
  background-color: #003366;
  display: flex;
  justify-content: flex-end; /* ✅ alignement à droite */
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid white;
}

#main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

#main-menu li a {
  background-color: white;
  color: #003366;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

#main-menu li a:hover {
  background-color: #e0e0e0;
}

#site-logo {
  width: 150px;
  height: auto;
  margin-right: 20px;
}

#site-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #003366; /* même bleu que le haut */
  margin: 0;
}

/* CTA BTN - CALL TO ACTION BOUTONS - ON DEMAND*/

.cta-button {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  background-color: #004080;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #0055aa;
}

/* CORPS PRINCIPAL : 3 COLONNES */
.body-layout {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* =========================================================
   Colonnes latérales Gauche — Left-sidebar - composé de 3 sous zone Top Middle et Bottom
   ========================================================= */

/* Sidebar gauche */
.sidebar.left-sidebar {
  display: flex;
  flex-direction: column;
  width: 250px;
  background-color: #f9f9f9;
  border-right: 1px solid #ddd;
  box-sizing: border-box;
}

#listing-articles-section,
#listing-services-section,
#listing-glossaire-section {
  text-align: left; 
  padding-left: 20px;
}

#title-articles-section h3,
#title-services-section h3,
#title-glossaire-section h3,
.glossaire-slogan {
    text-align: center;
}

/* TOP Zone haute (articles à la une + derniers publiés) */
#left-sidebar-top {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 1;
  max-height: 40vh;
  overflow-y: auto;
}

/* Titre des articles */
#title-articles-section h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-align: center;
  color: #333;
}

/* Liste des articles */
#listing-articles-section .article-item {
  font-size: 0.85rem;
  margin: 4px 0;
}

#listing-articles-section .article-link {
  color: #004080;
  text-decoration: none;
}

#listing-articles-section .article-link:hover {
  text-decoration: underline;
}

.article-item,
.service-item,
.glossaire-term {
  text-align: left;
}

/*Zone Milieu de la left sitebar pour acceuillir les services*/

#left-sidebar-middle{
  padding: 15px;
  border-top: 1px solid #ddd;
  flex-grow: 0;
}

/* Titre des services */
#title-services-section h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-align: center;
  color: #333;
}

#listing-services-section {
  /* listing des services */
  padding-left: 20px;
  font-size: 0.85em;
  line-height: 1.4;
  
}

/* Liste des services */
.service-item {
  font-size: 0.85rem;
  margin: 4px 0;
}

.service-link {
  color: #004080;
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}

/* BOTTOM Zone basse (services) */
#left-sidebar-bottom {
  padding: 15px;
  border-top: 1px solid #ddd;
  flex-grow: 0;
}

/*GLOSSAIRE A GAUCHE*/
#title-glossaire-section{
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-align: center;
  color: #333;
}

slogan-glossaire-section{
  font-style: italic;
  font-size: 0.9em;
  margin-bottom: 10px;
  color: #333;
}

listing-glossaire-section{
  padding-left: 20px;
  font-size: 0.85em;
  line-height: 1.4;
}

#glossaire-section h3 {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: #003366;
}

.glossaire-slogan {
  font-style: italic;
  font-size: 0.9em;
  margin-bottom: 10px;
  color: #333;
}

#glossaire-section:empty,
.glossaire-loading {
  display: none;
}

#glossaire-section ul {
  padding-left: 20px;
  font-size: 0.85em;
  line-height: 1.4;
}

.glossaire-term {
  cursor: help;
  border-bottom: 1px dotted #666;
}

.glossaire-loading {
  display: block;
  font-size: 0.85em;
  color: #999;
  font-style: italic;
  padding: 5px 0;
}
/* FIN DE LEFT SITEBAR*/

/* Zone centrale */
.content-area {
  width: 70%;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* =========================================================
   ARTICLES CENTRAUX
   ========================================================= */
#articles-content .main-article {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee; /* séparation visuelle optionnelle */
}

#articles-content .main-article h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #002244;
}

#articles-content .main-article h3.subtitle {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #004080;
}

#articles-content .main-article .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

#articles-content .main-article .chapeau {
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

#articles-content .main-article .content {
  margin-bottom: 1rem;
}

#articles-content .main-article .reference,
#articles-content .main-article .deliverable,
#articles-content .main-article .keywords {
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background-color: #004080;
  color: white;
  border: none;
  cursor: pointer;
}

.pagination button:hover {
  background-color: #0066cc;
}

/*RIGHT SIDEBAR*/
#right-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 300px;
  background-color: #f9f9f9;
  border-left: 1px solid #ddd;
  padding: 15px;
}

#right-sidebar-bottom {
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

/*SOCIAL NETWORKS*/

.social-sitebar {
  width: 60px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  border-left: 1px solid #0055aa; /* Liseré bleu fin */
  background-color: #f9f9f9;       /* Optionnel : fond clair pour contraste */
  box-sizing: border-box;
}

.social-network-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-network-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon {
  margin: 5px;
}

.social-icon img {
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 4px;
}

.social-icon img:hover {
  transform: scale(1.1);
}

/*RIGHT SIDEBAR UTILS LINKS*/
/* Zone supérieure */
#right-sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px; /* ← marge intérieure à gauche et à droite */
  box-sizing: border-box;
}

#right-sidebar-top img {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 4px;
}

#portrait-viewer {
  min-height: 280px; /* hauteur de tes portraits */
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-caption {
  font-size: 0.8rem;     /* petite police */
  color: #444;           /* couleur discrète */
  text-align: center;    /* centrage horizontal */
  margin-top: 5px;       /* espace entre image et texte */
  max-width: 280px;      /* aligné sur la largeur de l’image */
}

.portrait-rank-label {
  font-size: 0.75rem;   /* plus petit que la caption */
  color: #666;          /* gris discret */
  text-align: center;   /* centré sous l’image */
  margin-top: 3px;      /* petit espace au-dessus */
  font-style: italic;   /* optionnel : style plus léger */
}


/* FOOTER */
.site-footer {
  background-color: #002244;
  color: white;
  text-align: center;
  padding: 1rem;
  border-top: 4px solid #004080;
  margin-top: auto;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .body-layout {
    flex-direction: column;
  }

  .left-sidebar,
  .right-sidebar,
  .content-area {
    width: 100%;
  }

  .lang-switch img {
    width: 50px;
  }
}