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

htlm, body { 
    height: 100%;
    font-family: "Georgia", serif; 
    line-height: 1.6; 
    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;
}

/* ========================= 
    Header 
========================= */
header { 
    margin: 60px 5px 5px; 
    padding: 10px 10px; 
    font-family: 'Georgia', serif;    
}

 h1 { 
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center; 
}

header p { 
    display: flex;
    font-size: 1.1rem;
    margin: 20px 0; 
    padding: 10px 20px; 
}

/* ========================= 
     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;
}


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

.content-wrapper-index {
  display: flex;
  flex-direction: column; /* stack elements vertically */
  gap: 20px; /* spacing between text and image */
   text-indent: 1em;
  text-align: center;
  margin: 10px 60px 20px;
    padding: 5px 30px;
}

section.index-texte {
  flex: 0 0 auto;
  text-indent: 1em;
  text-align: justify;
  font-size: 1.1rem;
  padding: 20px;
  max-width: 2000px;
  margin: 10px 60px 20px;
}

/* Image Styling */
figure.image {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: 100%;
}

/* Image Styling with Gradient Background */
.image {
    display: block; /* Flexbox for centering */
    justify-content: center; /* Horizontally center the image */
    align-items: center; /* Vertically center the image */
    height: 60vh; /* Full viewport height */
    padding: 10px;
    position: relative; /* Allow child elements (image) to be positioned relative to this container */
}

/* Image itself */
.image .picture {
    display: block;
    max-width: 100%; /* Ensures the image respects the container's size */
    height: auto; /* Maintain aspect ratio */
    margin: auto; /* Center the image */
    border-radius: 50%; /* Make the image itself circular */
    position: relative; /* Make it movable */
    margin: 20px 20px ;
    padding: 10px 10px;
    
}


/* =========================
   digitalframework.html Page Layout 
========================= */


  .main-image {
    display: flex;
    justify-content: center; /* Horizontally center the image */
    align-items: center; /* Vertically center the image */
    width: 710px;
    height: 440px;
    margin: 40px auto;
    position: relative; 

  }

  .subpictures {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 60px auto 10px;
    max-width: 1000px;
  }

  .subpictures img {
        background: white;
    display: flex;
    width: 160px;
    height: 100px;
    border: 2px solid #ccc;
    transition: transform 0.2s ease;
  }

  .subpictures img:hover {
    display: flex;
    transform: scale(1.05);
    cursor: pointer;
  }


/* ========================= 
    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; 
}
