/* === Couleurs principales === */
:root {
    --primary: #6366f1;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

/* === Reset & base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Exo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

/* === Navigation / Menu === */
.site-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}
.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}
.site-nav {
    display: flex;
    flex-wrap: nowrap;      /* Empêche le retour à la ligne */
    justify-content: center;
    font-size: 1.3rem;
	 gap: 1.2rem;            /* Ajuste l’espace entre les entrées */
}
.site-nav a {
    color: var(--light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}
.site-nav a:hover {
    color: var(--secondary);
    background: rgba(99, 102, 241, 0.1);
}
.hero .container {
  padding-left: 24px;
  padding-right: 24px;
}
.news-highlight {
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 1.5em 2em;
  margin: 2em 0;
  box-shadow: 0 2px 8px #0001;
}
.news-highlight h2 {
  margin-top: 0;
}
.news-item {
  margin-bottom: 1em;
}

/* === Bannière === */
.banner-container {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: #0f172a;
}
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    display: block;
}
.banner-slice {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
    border: none;
    padding: 0;
    z-index: 1;
}
.banner-slice-img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-overlay {
  position: absolute;
  top: 25%; left: 0; width: 100%; height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alignement en haut */
  padding: 3% 5%;
  z-index: 2;
  pointer-events: none; /* Pour laisser passer les clics à l’arrière si besoin */
}

/* === Blocs Ploquin/Gyl === */
.bloc-ploquin, .bloc-gyl {
  background: transparent;
  border-radius: 12px;
  padding: 18px 28px;
  max-width: 42vw;
  color: #f8fafc;
  pointer-events: auto;
  margin-bottom: 0;
}
.bloc-ploquin { text-align: left; }
.bloc-gyl { text-align: right; }
.bloc-ploquin h1 { font-size: 2rem; color: #6366f1; letter-spacing: 1px; }
.bloc-ploquin h2 { font-size: 1.1rem; color: #0ea5e9; font-weight: 400; }
.bloc-ploquin p { font-size: 1rem; color: #e0e7ef; margin-top: 0.5em; }
.bloc-gyl h1 { font-size: 2rem; color: #8b5cf6; letter-spacing: 1px; }
.bloc-gyl h2 { font-size: 1.1rem; color: #0ea5e9; font-weight: 400; }
.bloc-gyl p { font-size: 1rem; color: #e0e7ef; margin-top: 0.5em; }

/* === Contenu principal === */
.content-section {
    background: var(--dark);
    padding-left: 32px;
    padding-right: 32px;
    /* Ajoute aussi padding-top/bottom si besoin */              /* Haut/bas + marges latérales */
}
.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;					/* NE JAMAIS AJOUTER DE PADDING ICI !*/
}
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
}
.page-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
h1, h2, h3, .page-content h1, .page-content h2, .page-content h3 {
    margin-top: 2.2em;
    margin-bottom: 1em;
    line-height: 1.2;
}
.page-content h2 {
    color: var(--secondary);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}
.page-content h3 {
    color: var(--accent);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}
.page-content p {
    margin-bottom: 1.7em;
}
.portrait-bio {
    max-width: 320px;   /* ou la largeur souhaitée */
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;  /* pour centrer l’image */
    border-radius: 8px; /* optionnel, coins arrondis */
}
a {
  color: #0ea5e9;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s;
}
a:hover {
  color: #fff;
  background: #0ea5e9;
  border-radius: 5px;
  text-decoration: none;
  padding: 0.2em 0.6em;
}
.button, a.button {
  background: #0ea5e9;
  color: #fff;
  padding: 0.5em 1.2em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 0.5em;
  display: inline-block;
  transition: background 0.2s;
}
.button:hover, a.button:hover {
  background: #0369a1;
}

/* === Bandeau d'actualités === */
#a-la-une.floating {
  position: fixed;
  left: 0;
  width: calc(100% - 3em);
  z-index: 20;
  background: rgba(255, 255, 255, 0.18); /* même couleur que la bannière normale */
  color: #fff;         /* texte blanc */
  margin-top: 440px;
  margin-left: 1.5em;
  margin-right: 1.5em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s, position 0.3s;
}

/* === Couvertures de CD === */
.cd-album-img {
  cursor: pointer;
  transition: transform 0.2s;
}
.cd-album-img:hover {
  transform: scale(1.03);
}

/* === Popups de CD ===*/
#cd-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
#cd-popup > div {
  position: relative;
  width: 95vw;
  max-width: 500px;
  max-height: 90vh; /* ou 80vh */
  background: #222;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px #000a;
  padding: 2em;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* === Listes et citations === */
ul, ol, .page-content ul, .page-content ol {
    margin: 1.5em 0 1.5em 2em;
    line-height: 1.7;
}
blockquote, .page-content blockquote {
    margin: 2em 0;
    padding-left: 1.2em;
    border-left: 4px solid #0ea5e9;
    color: #bcdffb;
    font-style: italic;
    background: rgba(14, 165, 233, 0.05);
}

/* === Footer === */
.site-footer {
    background: var(--dark-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--primary);
    margin-top: 4rem;
}
.site-footer p {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

/* === Responsive === */
@media (max-width: 900px) {
  .banner-overlay {
    flex-direction: column;
    align-items: stretch;
    padding: 4% 3%;
    gap: 1.5rem;
  }
  .bloc-ploquin, .bloc-gyl {
    max-width: 100%;
    text-align: left;
  }
}
@media (max-width: 600px) {
  .banner-hero { height: 520px; }
  .banner-overlay { padding: 6% 2%; }
}

/* Menu hamburger */
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1em;
}

.menu-icon {
  display: none;
  font-size: 2em;
  cursor: pointer;
  padding: 0.5em;
}

#menu-toggle {
  display: none;
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
  .site-nav {
    justify-content: flex-end;
  }
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #222;
    width: 200px;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
  }
  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }
  .menu-icon {
    display: block;
    margin-left: auto;
  }
  .menu li {
    margin: 0.5em 0;
  }
  .banner-overlay {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 6rem 1rem 1rem; /* 1rem en haut au lieu de 2rem */
    align-items: center;
    justify-content: flex-start; /* Place les blocs en haut du conteneur */
    min-height: 100%;
  }
  .bloc-ploquin, .bloc-gyl {
    max-width: 100%;
    padding: 1rem;
    text-align: center;
    margin: 0;
  }
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto 1rem auto; /* 0 top, auto left/right, 1rem bottom */
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Styles pour le formatage markdown des articles de blog */
.markdown-content {
    line-height: 1.7;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

.markdown-content h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 2.5rem 0 1.5rem 0;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    color: #66BB6A;
}

.markdown-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.markdown-content strong {
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.05em;
}

.markdown-content em {
    font-style: italic;
    color: #B0BEC5;
}

/* Style spécial pour les noms des interlocuteurs */
.markdown-content p strong:first-child {
    color: #4CAF50;
    font-size: 1.1em;
    display: inline-block;
    margin-right: 0.5em;
}

.article-meta {
    color: #888;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.95em;
    text-align: center;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

/* === STYLES POUR LES APERÇUS D'ARTICLES DE BLOG === */

/* Conteneur des aperçus d'articles */
.blog-preview {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.blog-preview h3 a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 1.4em;
}

.blog-preview h3 a:hover {
    text-decoration: underline;
}

/* Métadonnées de l'article */
.blog-preview .article-meta {
    color: #888;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95em;
}

/* Formatage markdown dans les résumés */
.blog-preview .article-summary {
    margin: 1rem 0;
    line-height: 1.6;
}

.blog-preview .article-summary strong {
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.05em;
}

.blog-preview .article-summary em {
    font-style: italic;
    color: #B0BEC5;
}

/* Style spécial pour les noms des interlocuteurs dans les résumés */
.blog-preview .article-summary p strong:first-child {
    color: #4CAF50;
    font-size: 1.1em;
    display: inline-block;
    margin-right: 0.5em;
}

/* Lien "Lire la suite" */
.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* === STYLES POUR LES ARTICLES COMPLETS === */

/* Conteneur principal des articles */
.markdown-content {
    line-height: 1.7;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Titres H2 */
.markdown-content h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 2.5rem 0 1.5rem 0;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

/* Titres H3 */
.markdown-content h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    color: #66BB6A;
}

/* Paragraphes */
.markdown-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Texte en gras */
.markdown-content strong {
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.05em;
}

/* Texte en italique */
.markdown-content em {
    font-style: italic;
    color: #B0BEC5;
}

/* Style spécial pour les noms des interlocuteurs */
.markdown-content p strong:first-child {
    color: #4CAF50;
    font-size: 1.1em;
    display: inline-block;
    margin-right: 0.5em;
}

/* En-tête de page */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.article-meta {
    color: #888;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.95em;
    text-align: center;
}

/* Navigation entre articles */
.article-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.prev-article, .next-article {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    padding: 0.7rem 1.2rem;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.prev-article:hover, .next-article:hover {
    background-color: #4CAF50;
    color: #1a1a1a;
}

/* Sélecteur de langue fixe avec drapeaux */
.language-selector-fixed {
    position: fixed;
    left: 20px;
    top: 30%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;  /* Espacement agrandi entre les drapeaux */
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 12px;  /* Padding agrandi */
    border-radius: 30px;  /* Coins plus arrondis */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.lang-flag {
    font-size: 32px;  /* Drapeaux plus grands */
    line-height: 1;
    text-decoration: none;
    display: inline-block;
    padding: 8px;  /* Padding agrandi */
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
    opacity: 0.8;
}

.lang-flag:hover {
    transform: scale(1.15);  /* Effet hover plus prononcé */
    filter: grayscale(0);
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.lang-flag.current {
    filter: grayscale(0);
    opacity: 1;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.5);
}

/* Responsive : ajustement pour petits écrans */
@media (max-width: 480px) {
    .language-selector-fixed {
        left: 20px;  /* Moins décalé sur mobile */
        padding: 12px 8px;
    }
    
    .lang-flag {
        font-size: 24px;
        padding: 6px;
    }
}

/* Éviter le conflit avec le bouton panier */
#panier-btn {
    top: 20px;
    right: 20px;
}

