/* === Structure générale === */
body {
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

/* === Conteneur principal === */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

/* === Header et Footer en flex avec image à gauche === */
.header-flex,
.footer-flex {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* === Logo à gauche === */
.header-logo,
.footer-logo {
  flex: 0 0 auto;
  text-align: left;
}

.header-logo img,
.footer-logo img {
  max-width: 150px;
  height: auto;
  display: block;
}


/* === Texte à droite === */
.header-text,
.footer-text {
  flex: 1;
  text-align: left;
  color: #fff;
}

/* === Header spécifique === */
header {
  background-color: #204cc8;
  color: #fff;
  padding: 20px 0;
  border-bottom: 3px solid #77aaff;
}

header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* === Navigation === */
nav ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

nav ul li a:focus {
  outline: 2px dashed #fff;
  outline-offset: 4px;
}

/* === Footer spécifique === */
footer {
  background-color: #204cc8;
  color: #fff;
  padding: 20px 0;
  border-top: 3px solid #77aaff;
  text-align: left;
}

/* === Images générales === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Formulaires === */
form {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  border: 1px solid #f1f1f1;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), 0 5px 5px rgba(0, 0, 0, 0.24);
}

input[type=text],
input[type=password],
input[type=tel],
input[type=email],
input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  border: 1px solid #ccc;
  box-sizing: border-box;
}


input[type=submit] {
  background-color: #0046e2;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

input[type=submit]:hover {
  background-color: white;
  color: #53af57;
  border: 1px solid #53af57;
}

input[type=submit]:focus {
  outline: 2px solid #53af57;
  outline-offset: 2px;
}

/* === Messages === */
.message,
.adresse {
  background-color: white;
  color: red;
  border: 1px solid #53af57;
  text-align: center;
  font-weight: bold;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 20px auto;
  max-width: 90%;
}

/* === Sous-menu === */
.submenu {
  background-color: white;
  color: red;
  border: 1px solid #53af57;
  font-weight: bold;
  font-size: 10pt;
  text-align: right;
  padding: 10px;
}

/* === Responsive design === */
@media (max-width: 768px) {
  .header-flex,
  .footer-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-text,
  .footer-text {
    text-align: center;
  }

  .header-logo,
  .footer-logo {
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .adresse {
    float: none;
    text-align: center;
  }

  form {
    padding: 20px;
  }

  .submenu {
    text-align: center;
    font-size: 12pt;
  }
}

.header-logo img {
  max-width: 300px; /* ou 80px, selon ton besoin */
  height: auto;
}

.footer-logo img {
  max-width: 300px; /* ou 80px, selon ton besoin */
  height: auto;
}

table.num {
    counter-reset: rowNumber;
}

table.num tbody tr {
    counter-increment: rowNumber;
}

table.num tbody tr td:first-child::before {
    content: counter(rowNumber);
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
}
/* Style du menu déroulant */
.sidebar .dropdown {
  position: relative;
}

.sidebar .dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #f9f9f9;
  min-width: 180px;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 1000;
}

.sidebar .dropdown-content li {
  margin: 0;
}

.sidebar .dropdown-content li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}

.sidebar .dropdown-content li a:hover {
  background-color: #eee;
}

/* Affichage au survol */
.sidebar .dropdown:hover .dropdown-content {
  display: block;
}