/* === Base Reset & Typography === */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

body, h1, h3, h4, h5, h6, p, ul, li, input, textarea, select, button {
  margin: 0;
  padding: 0;
  font-family: inherit;
  box-sizing: border-box;
}

/* === Layout === */
body {
  background: #f5f5f5;
  color: #333;
  padding: 20px;
}

.container {
  background: #fff;
  max-width: 700px;
  margin: 0 auto; /* centre horizontalement */
  width: 100%;
  padding: 30px;
  padding-bottom: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === Headings & Text === */
header {
  position: relative; 
}

header h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

header h1 img {
  
width: 150px;
max-width: 100%;
height: auto;

}

p img {
max-width: 100%;
height: auto;
}

main h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

main p {
  margin-bottom: 10px;
  line-height: 1.6;
}

main h4 {
  background: #f8fbff;
  color: #005fa3;
  padding: 8px 14px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 25px 0 6px;
}

main h5 {
  color: #0078d4;
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 12px;
}

main h6 {
  color: #0078d4;
  font-size: 1rem;
  font-weight: 800;
  padding: 12px 0px;
}

/* === Planning List === */
main ul.planning {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

main li.planning {
  font-size: 1rem;
  padding: 4px 0;
  margin-bottom: 2px;
}

/* === Button Group === */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  width: 100%;
}

.button-group .btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #0078d4;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.button-group .btn:hover {
  background: #005fa3;
}

.btn-logout {
  position: absolute;
  right: 0px;
  font-size: 16px;
  padding: 3px 3px;
  height: 30px;
  width: 30px;
  background: #eee;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background: #ccc;
}

/* === Form Styles === */
.formulaire {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.formulaire input,
.formulaire textarea,
.formulaire select {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.formulaire input[type="checkbox"] {
  margin: 5px;
  width: auto;
}

.formulaire button {
  align-self: flex-start;
  padding: 10px 20px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulaire button:hover {
  background: #218838;
}

/* === Link Boxes === */
.link-boxes {
  margin-top: 30px;
}

.link-boxes h3 {
  margin-bottom: 15px;
}

.link-boxes ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-boxes a {
  display: block;
  padding: 12px;
  background: #e9f0f7;
  color: #0078d4;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.link-boxes a:hover {
  background: #d0e4f5;
}

/* === Alerts & Info === */
.alert {
  background: #ffe5e5;
  color: #cc0000;
  padding: 12px;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.blue {
  background: #e6f0ff;
  color: #004a99;
  padding: 12px;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.unavailable {
  color: grey;
}


p a, label a, ul.planning a {
 display: inline; 
 background-color: #f0f0f0; 
 border-radius: 4px;
 padding: 0px 2px;
 color: #004a99;
 text-decoration: none;
 transition: background-color 0.3s, color 0.3s;
}



p a:hover, label a:hover, ul.planning a:hover {
 background-color: #004a99;
 color: white;
}

.blue a {
 background-color: white; 
 color: #004a99;
}

/* === Responsive === */
@media (max-width: 600px) {
  .button-group .btn {
    flex: 1 1 48%;
  }

  .button-group button {
    flex: 1 1 100%;
  }
}
