/* ========================= 
Global Styles
 ========================= */

htlm, body { 
    height: 100%;
    font-family: "Georgia", serif; 
    line-height: 1.6; 
    background-color: #f8f9fa; 
    color: #222; 
    margin: 0; 
    padding: 0;  
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  margin: 0 0 80px 0;
  padding: 40px 20px;
}

/* ========================= 
    Header 
========================= */
header { 
    margin: 0 auto 50px auto; 
    padding: 10px 20px; 
    text-align: center; 
}

header h1 { 
    font-size: 2.2rem; 
    margin-bottom: 5px; 
}

header p { 
    font-size: 1rem; 
    color: #555; 
}

/* ========================= 
     Sidebar
========================= */
aside { 
    height: 100%; 
    width: 0; 
    position: fixed; 
    z-index: 1; 
    top: 0; 
    left: 0; 
    background: #111; 
    overflow-x: hidden; 
    transition: 0.5s; 
    padding-top: 60px; 
    font-family: 'Times New Roman', serif; 
}

.sidebar a { 
    padding: 8px 12px 8px 16px; 
    text-decoration: none; 
    color: #818181; 
    display: block; 
    transition: 0.3s; 
}

.sidebar a:hover { 
    color: #f1f1f1; 
}

button .closebtn { 
    position: absolute; 
    top: 10px; 
    right: 20px; 
    font-size: 36px; 
}

/* =========================
   Navigation bar
========================= */
nav {
    display: flex;                  
    justify-content: space-between;  
    align-items: center;             
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(17, 18, 18, 1) 0%, rgba(205, 212, 208, 0.36) 50%, rgba(237, 240, 242, 0.85) 100%);
 /* Matrix GIF background, repeated 
    background: url('https://upload.wikimedia.org/wikipedia/commons/a/a0/Digital_rain_animation_small_letters_shine.gif') repeat;
    background-size: auto; /* keep original small size 
    background-position: top left;
    color: #00FF00; /* matrix green text */
}

/* Navigation button on left */
.openbtn { 
    font-size: 20px; 
    cursor: pointer; 
    background: #111; 
    color: #fff; 
    padding: 10px 15px; 
    border: none; 
    border-radius: 5px;
}

.openbtn:hover { 
    background: #444; 
}

.closebtn { 
    position: absolute; 
    top: 0; 
    right: 25px; 
    font-size: 36px; 
    margin-left: 50px; 
}

/* Download buttons  */
.download {
    display: flex;   
    gap: 10px;       
}

.download .button {
    display: inline-block;
    background-color: #eee;
    color: #222;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: background-color 0.3s ease;
}

.download .button:hover {
    background-color: #ddd;
}

/* ========================= 
    Section Titles
========================= */
section h2 { 
    font-size: 1.5rem; 
    margin-top: 0; 
    margin-bottom: 15px; 
    border-bottom: 1px solid #ccc; 
    padding-bottom: 5px; 
}

/* ========================= 
    Poem Styling 
========================= */
.line-number { 
    color: gray; 
    font-style: italic; 
    margin-right: 6px; 
}


/* =========================
   Text + Image Layout
========================= */
.content-wrapper {
  background: none;
  display: flex;
  flex-wrap: wrap; 
  gap: 20 px; 
   justify-content: space-between; 
}

.content-wrapper section.texte  {
    flex: 1; 
    font-size: 1.1rem;
    background: #fff; 
    padding: 10px; 
    margin:  0 auto; 
    max-width: 800px; 
    width: 100%; 
}

content-wrapper.figure{
    flex: 0 0 auto; 
    margin-left: 10px ;
}

.text-image { 
    flex: 0 0 auto; 
    max-width: 600px; 
    width: 80%; 
    margin-right: 150px; 
    padding: 10px;
}

figure.text-image img { 
    max-width: 100%; 
    height: auto; 
}


/* =========================
   Index.html Page Layout 
========================= */

.content-wrapper-index {
  background: none;
  display: flex;
  flex-direction: column; /* stack elements vertically */
  align-items: center;    /* center horizontally */
  justify-content: center;
  gap: 20px; /* spacing between text and image */
  text-align: center; /* center text content */
  padding: 20px;
}

.content-wrapper-index section.index-texte {
  flex: 0 0 auto;
  font-size: 1.1rem;
  background: none;
  padding: 20px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.index-image {
  display: flex;              /* use flexbox for easy centering */
  justify-content: center;    /* center horizontally */
  align-items: center;        /* center vertically if needed */
  width: 50%;
  padding: 10px;
}

figure.index-image {
  margin: 0;                  /* remove default figure margin */
}

figure.index-image img {
  display: block;
  max-width: 50%;
  height: auto;
}


/* ========================= 
    Credits
========================= */
#credits { 
    background: #f9f9f9; 
    padding: 10px 0; 
    text-align: center; 
    font: 14px Georgia, serif; 
    border-top: 2px solid #ccc; 
    width: 100%; 
}

#credits p { 
    margin: 0; 
    color: #555; 
}

#credits strong { 
    color: #111; 
}

/* ========================= 
    Footer
========================= */

footer { 
    background: #000;
    color: #fff;
    text-align: center;
    padding:  0;
    margin-top: auto; /* ensures it stays at bottom naturally */
}

figure.logos-images { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    max-width: 90%; 
    margin: 0 auto; 
    padding: 15px; 
}

figure.logos-images img { 
    height: 60px; 
    object-fit: contain; 
}
