/* Feuille de style principale */
/* Feuille de style principale avec IvyPresto Display */
@charset "UTF-8";

/* Import IvyPresto Display via Adobe Fonts */
@import url("https://use.typekit.net/ifl8mwx.css");
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Import Work Sans depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600&display=swap');


/* =====================
   VARIABLES & BASE TYPO
   ===================== */
:root {
  --font-ui: 'Inter', sans-serif;
  --font-editorial: 'IvyPresto Display', 'IvyPresto text', 'ivypresto-display', 'ivypresto-text', serif;
  --font-text: "Work Sans", sans-serif;
  --accent-amber: #FFBF00;
  --sidebar-bg: #fafafa;
  --sidebar-line: #e9ecef;
  --sidebar-hover: #f2f4f6;
  --sidebar-active: #ffffff;
  --sidebar-text: #222;
  --sidebar-muted: #6c757d;
}

/* =====================
  /* Base globale */
   ===================== */


body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  display: flex;

}


#main-wrapper, #site-header .container-fluid, footer .container {
    max-width: 100%; /* ou 100%, selon ton choix */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    
}
#site-header {
  margin-top: 0;         /* supprime espace au-dessus */
  padding-top: 0;  /* léger souffle si besoin */
  margin-bottom: 1.5rem; /* ajoute espace en-dessous */
}
header .navbar {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;           /* plus haute que la valeur par défaut */
  padding-top: 1rem;          /* plus d’air en haut */
  padding-bottom: 1rem;       /* plus d’air en bas */

    border-bottom: none !important;
    box-shadow: none !important;
}
.navbar-brand {
    font-size: 1.6rem; /* ou 2rem pour vraiment marquer le coup */
    font-weight: 700;
    letter-spacing: 1px;
    color: #906634; /*si tu veux rappeler ton accent visuel */
}
.navbar a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
}
.navbar a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar a:hover {
    background-color: #000;
    color: #c4843a;
    border-radius: 4px;
}
.navbar a.active {
    font-weight: bold;
    text-decoration: none;
}
/* Icône hamburger pour navbar claire sur Archives */
.navbar-toggler {
    border: none;
}

/* LOGO dans la navbar : version compacte, sans soulignement, bien aligné */
.navbar-brand.logo,
.navbar-brand.logo:hover,
.navbar-brand.logo:focus,
.navbar-brand.logo:active {
  font-family: var(--font-editorial, 'Inter'), sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  margin-right: .5rem;
  color: #000 !important;             /* fige la couleur (Bootstrap n’écrase plus) */
  text-decoration: none !important;   /* jamais de soulignement */
  margin-left: 0 !important;   /* enlève la marge automatique */
  padding-left: 0 !important;  /* enlève le padding par défaut de Bootstrap */
}

/* Accent sur EYE — et on le fige aussi au hover */
.navbar-brand.logo .eye,
.navbar-brand.logo:hover .eye {
  color: #f6c915;
  font-weight: inherit;
}

/* Mobile : logo un poil plus petit + navbar un peu plus compacte */
@media (max-width: 575.98px){
  .navbar-brand.logo { font-size: 1.25rem; }
  .navbar { padding-top: .5rem; padding-bottom: .5rem; }
}


/* === LAYOUT === */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
/* Colonnes Décennies / Années */
.menu-left, .menu-center {
    flex: 0 0 auto;
    width: 110px;
    background: #e0e0e0; /* gris clair */
    padding: 0.75rem;
    border-right: 1px solid #d0d0d0;
}
.menu-right {
    flex: 1 1 0%;
    background: #ebebeb; /* gris encore plus clair */
    padding: 0.75rem;
}
/* Titres colonnes */
.menu-left h2, .menu-center h2, .menu-right h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #444;
}
.menu-right img {
  width: 100%;
  height: auto;
  display: block;
}    
    
/* === LIENS (ARCHIVES + RÉCITS + GLOBAUX) === */
a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
    color: #000;
    text-decoration: none;
}
/* Sidebar (colonne droite) */
.right-column a {
    color: #333;
}
.right-column a:hover {
    color: #000;
}

/* === LISTES ARCHIVES & RÉCITS === */
#postsList, #postsListRecits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
/* Cartes : lien sur toute la surface */
#postsList li a, #postsListRecits li a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
#postsList li a:hover, #postsListRecits li a:hover {
    transform: translateY(-3px);
}
/* Image en haut */
#postsList li a img, #postsListRecits li a img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}
/* Titre en bas */
#postsList li a span, #postsListRecits li a span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    font-size: 0.85rem;
    text-align: center;
    background: #f7f7f7;
    color: #333;
}
/* Masquer tout à partir de la 7e carte */
.limited li:nth-child(n+7) {
    display: none;
}
/* Carte “Voir plus” */
.see-more-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}
/* === SIDEBAR (colonne droite) === */
.right-column .sidebar-random {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #ddd;
}
.right-column h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}
.right-column img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.flash {
    box-shadow: 0 0 0 3px #00aaff, 0 0 10px #00aaff, 0 0 20px #00aaff;
    transition: box-shadow 0.4s ease-out;
}
#site-footer {
  background-color: #222;
  color: #ccc;
  font-family: 'Georgia', serif;
  font-size: 0.8rem;
  padding: 0.8rem 1rem;
  margin-top: 2rem;
  width: 100%;
}
#site-footer .footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* centre le contenu horizontalement */
  align-items: center; /* optionnel : centre verticalement si plus d’une ligne */
  text-align: center;
}
.btn-ambre {
  background-color: #FFC107;
  color: #212529;
  border: none;
  transition: background-color 0.3s;
}
.btn-ambre:hover {
  background-color: #e0a800; /* Ambre foncé au survol */
  color: #fff;
}
