/* (c) Thomas RICHEZ */

/* General Styles */
body
{
  background-color: #FFFFFF;
  line-height: 1.6;
}	

a
{
  color: #4682B4; /* SteelBlue */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Layout */
#corps
{
  background-color: #F8F8F8; /* Suggested new background color */
  max-width: 899px; /* Max width for larger screens */
  width: 90%; /* Fluid width for smaller screens */
  margin: 15px auto;
  border-radius: 0px 0px 10px 10px;
  box-shadow: -1px 2px 5px 1px rgba(0, 0, 0, 0.7),
              inset 0 0 10px rgba(0,0,0,0.1); /* New subtle inner shadow */
  font-size: 1em;
  font-family: 'Roboto', sans-serif;
}

header
{
  width: 100%;
  height: auto; /* Make height flexible */
  padding: 20px 0; /* Add vertical padding */
  background: linear-gradient(to right, #003300, #90EE90); /* More accentuated green gradient */
  color: #FFF; /* Text color for header content */
  text-align: center; /* Center any text content */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow */
}

header h1 {
  margin: 0;
  font-size: 2.5em; /* Increased font size */
  font-weight: 700;
  padding-bottom: 10px; /* Space below title */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Subtle text shadow */
  display: flex; /* Use flexbox for alignment */
  flex-direction: column; /* Stack lines vertically */
  align-items: center; /* Center horizontally */
}

header h1 .line1 {
  font-size: 1em; /* Base size */
  letter-spacing: 2px;
}

header h1 .line2 {
  font-size: 0.7em; /* Smaller size for second line */
  opacity: 0.8; /* Slightly less prominent */
}

.main-content /* New class for content areas that need padding and width restriction */
{
  width: 85%;
  margin: auto;
  text-align: justify;
  padding: 30px;
}

/* Navigation */
nav
{
  width: 100%;
  margin-top: 0; /* Remove top margin to connect with header */
  margin-bottom: 20px;
  background: linear-gradient(to right, #003300, #90EE90); /* Same accentuated green gradient as header */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Consistent shadow with header */
  position: relative; /* Needed for absolute positioning of hamburger */
}

#hamburger-icon {
  display: none; /* Hidden by default */
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 15px;
  z-index: 1000;
}

#hamburger-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #90EE90; /* LightGreen for hamburger icon */
  margin: 5px 0;
  transition: 0.4s;
}

nav ul
{
  margin: auto;
  list-style-type: none;
  text-align: center;
}

nav li
{
  display: inline-block;
  margin: 0 10px; /* Adjust margin for better spacing */
}

nav a
{
  color: #FFF;
  font-size: 1.2em;
  padding: 10px 15px; /* Add padding for larger clickable area */
  display: block; /* Make padding work */
}

nav a:hover
{
  color: #FFF; /* Keep text white on hover */
  background-color: #2E8B57; /* SeaGreen background on hover */
  border-radius: 5px; /* Slightly rounded corners on hover */
}

/* Typography */
section h2
{
  margin: 0px;
  padding: 0px;
  text-align: center;
  color: #3CB371;
} 

section h3
{
  margin: 0px;
  padding: 0px;
  text-align:center;
  font: 1.4em 'Roboto', sans-serif;
  color: #3CB371;
} 

section h4
{
  margin: 0px;
  padding: 0px;
  text-align:center;
  font: 1.2em 'Roboto', sans-serif;
  color: #3CB371;
} 

section p
{
  margin-bottom: 1em;
}

section p:first-letter
{
  font-size: 1.4em;
  font-weight: bold;
  color: #3CB371;
}

/* Images and Icons */
.cadenas
{
  vertical-align: middle;
  margin-left: 20px;
  margin-right: 20px;
}

table img
{
  vertical-align: middle;
}

/* Tables */
.case_vide
{
  width: 30px;
}

.tableau,
.tableau_liste
{
  margin: auto;
  margin-top: 30px;
  border-collapse: collapse;
  border-spacing: 0; /* Remove space between cells */
  width: 100%; /* Make tables full width */
  border: none; /* Remove all borders from the table */
}

.tableau th,
.tableau td,
.tableau_liste th,
.tableau_liste td
{
  padding: 5px;
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: center;
  border: none; /* Remove all borders from cells */
}

.tableau th,
.tableau_liste th {
  background-color: #F2F2F2; /* Light background for headers */
  font-weight: bold;
}

.tableau tbody tr:nth-child(even),
.tableau_liste tbody tr:nth-child(even) {
  background-color: #F9F9F9; /* Striped rows */
}

.tableau tbody tr:nth-child(odd),
.tableau_liste tbody tr:nth-child(odd) {
  background-color: #F5F5F5; /* Light grey for odd rows */
}

.tableau tbody tr:hover,
.tableau_liste tbody tr:hover {
  background-color: #E0E0E0; /* Hover effect for rows */
  transition: background-color 0.3s ease;
}

.tableau ul,
.tableau_liste ul
{
  margin: auto;
  text-align: left;
}

.tableau caption,
.tableau_liste caption
{
  margin-bottom: 10px;
  padding: 0px;
  text-align:center;
  font: 1.2em 'Roboto', sans-serif;
  color: #3CB371;
}

/* Buttons */
.boutton,
.boutton_maj
{
  padding: 10px;
  color: #FFF;
  font-weight: bold;
  border-radius: 0.40rem;
  box-shadow: 3px 3px 3px silver;
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.boutton {
  background-color: #3CB371;
}

.boutton:hover {
  transform: translateY(-2px); /* Lift effect */
  box-shadow: 3px 5px 8px rgba(0,0,0,0.2); /* Darker, more spread shadow */
}

.boutton_maj
{
  background-color: #8C65E5;
}

.boutton_maj:hover {
  transform: translateY(-2px); /* Lift effect */
  box-shadow: 3px 5px 8px rgba(0,0,0,0.2); /* Darker, more spread shadow */
}

/* Footer */
footer
{
  width: 100%;
  font-size: 0.8em;
  color: #999;
  text-align: center;
}

footer p
{
  padding: 15px 0;
}

/* Responsiveness */
@media (max-width: 768px) {
  #hamburger-icon {
    display: block; /* Show hamburger on small screens */
  }

  nav ul {
    display: none; /* Hide nav links by default on small screens */
    flex-direction: column;
    width: 100%;
    background-color: #003300; /* DarkGreen for mobile nav background */
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 70px; /* Space for hamburger icon and title */
  }

  nav ul.active {
    display: flex; /* Show nav links when active */
  }

  nav li {
    display: block;
    margin: 10px 0;
  }

  section {
    width: 95%;
  }

  .cadenas {
    margin-left: 5px;
    margin-right: 5px;
  }

  /* Hamburger icon animation */
  #hamburger-icon.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  #hamburger-icon.open span:nth-child(2) {
    opacity: 0;
  }

  #hamburger-icon.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
