@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:slnt,wght@-8,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&display=swap');


/* Variables de thème */
:root {
  --primary-color: #f0a500;
  --primary-dark: #d4940a;
  --secondary-color: #28a745;
  --secondary-dark: #218838;
  --background: #fefefe;
  --footer-bg: #fff8e1;
  --border-color: #ddd;
  --text-color: #333;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-color: rgba(0,0,0,0.3);  
  --banner-bg: transparent;
}

/* Reset de base */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 20px;
  font-family: 'Space Grotesk', Verdana, sans-serif;
  color: var(--text-color);
  background: var(--background);
  line-height: 1.6;
}

/* Typographie personnalisée */
h1, h2, h3, h4, h5 {
    font-family: 'Bitcount Prop Single', Georgia, serif;
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; text-align: center; }
h2 { font-size: 2rem; border-bottom: 3px solid var(--primary-color); padding-bottom: .5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.0rem; }

/* Monospace élégant */
code, pre {
    font-family: 'Fira Code', Monaco, monospace;
  background: #f4f4f4;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Bannière en haut */
.site-header {
  position: relative; /* Required for absolute positioning */
  overflow: visible; /* Allows portrait to extend beyond header */    
  background: var(--banner-bg) center/cover no-repeat;
  background-image: url('/img/banner4.png');
  box-shadow: var(--shadow);
  color: white;
}
/* Logo centré */
.site-header .logo {
  display: block;
  margin: 100px auto 0;
  max-height: 80px;
  max-width: 95%;
}


/* .site-banner { */
/*   position: relative; /\* Anchor for absolute positioning *\/ */
/*   min-height: 300px; /\* Adjust to your banner height *\/ */
/*   overflow: hidden; /\* Contain portrait within banner *\/ */
/* } */

/* .banner-bg { */
/*   position: absolute; */
/*   width: 100%; */
/*   height: 100%; */
/*   background-image: url('banner-bg.jpg'); */
/*   background-size: cover; */
/*   background-position: center; */
/* } */

/* .banner-content { */
/*   position: relative; /\* Stack above bg *\/ */
/*   z-index: 1; */
/*   padding: 20px; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: space-between; */
/* } */

.site-header .portrait-overlay {
  position: absolute; /* Crucial for overlay */
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow);
  
  /* Bottom-right positioning */
  right: 20px; /* Distance from right edge */
  bottom: -30px; /* Half outside header */
  z-index: 2; /* Ensures visibility above header */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .portrait-overlay {
    width: 90px;
    height: 90px;
    right: 10px;
  }
}



/* .logo { */
/*   display: block; */
/*   margin: 0 auto; */
/*   max-height: 80px; */
/*   width: auto; /\* Control logo size *\/ */
/* } */

/* Navigation */
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1px 0px 20px 20px;
}

/* Nav responsive */
.site-masthead {
  background: var(--banner-bg);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 0;
}
.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: bold;
  background: var(--shadow-color);
}
.nav-link:hover,
.nav-link:focus {
  background: var(--primary-dark);
}

/* Ligne de séparation */
.site-masthead,
.site-footer {
  border-bottom: 1px solid var(--border-color);
}

/* Pied de page */
.site-footer {
  background: var(--footer-bg);
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}
.site-footer p {
  text-align: center;
  margin: 5px;
  color: var(--text-color);
}

/* Section de contenu */
.container {
  max-width: 800px;
  margin: 0 auto;
}
.site-post {
  margin-top: 20px;
  background: white;
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* Marges utilitaires */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Texte caché visible au besoin */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Responsive */
@media (max-width: 768px) {
  body { padding: 10px; }
  h1 { font-size: 2rem; }
  .nav {
    flex-direction: column;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }
}

