/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Navbar Styling */
header {
    background-color: #333;
    padding: 10px 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-evenly; /* Space evenly logo and nav */
}

/* Logo & App Name */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 50px;
    height: 50px;
    margin-right: 10px; /* Space between logo & name */
}

.logo-container h3 {
    color: white;
    font-size: 1.5rem;
}

/* Navbar Links */
nav {
    display: flex;
    gap: 15px; /* Space between links */
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background-color: #555;
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger button */
.menu-icon {
  display: none;
}

/* Default menu */
.menu-content {
  display: flex;
  gap: 15px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
  .navbar {
	position: relative;
  }

  .menu-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	color: white;
	cursor: pointer;
	position: relative;
	width: 50px;
	height: 50px;
  }

  .menu-icon .icon {
	position: absolute;
	transition: opacity 0.3s, transform 0.3s;
  }

  .menu-icon .close {
	opacity: 0;
	transform: rotate(-90deg);
  }

  #menu-toggle:checked ~ .menu-icon .open {
	opacity: 0;
	transform: rotate(90deg);
  }

  #menu-toggle:checked ~ .menu-icon .close {
	opacity: 1;
	transform: rotate(0deg);
  }

  .menu-content {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #333;
	z-index: 10;

	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  #menu-toggle:checked ~ .menu-content {
    max-height: 400px; /* Adjust based on content */
    opacity: 1;
  }

  .menu-content a {
    padding: 8px 12px;
    border-top: 1px solid #444;
	width: 100%;
  }
}

/* Main Content */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: justify;
}

p {
	margin: 10px;
}

h3 {
    color: #222;
}
h4 {
	margin-top: 20px;
}
ul {
	margin-left: 20px;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Download buttons */
.download-inline {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    gap: 12px; /* espace entre les éléments */
    margin: 12px 0;
    flex-wrap: wrap; /* pour éviter le débordement sur petit écran */
}

.download-inline img {
    height: 24px;
    width: auto;
    transition: transform 0.2s ease;
}

.download-inline img:hover {
    transform: scale(1.05);
}

/* FAQ accordion */
.accordion {
	margin: auto;
}

.accordion-item .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
    padding: 0 0;
}

.accordion-item input[type="checkbox"] {
    display: none;
}

.accordion-item label {
    display: block;
    cursor: pointer;
    font-weight: bold;
    padding: 1rem 0;
    position: relative;
}

.accordion-item label::after {
    content: "▾";
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.accordion-item input[type="checkbox"]:checked ~ .content {
    max-height: 800px; /* Adjust depending on content length */
    opacity: 1;
    padding: 0.5rem 0;
}

.accordion-item input[type="checkbox"]:checked + label::after {
    transform: rotate(180deg);
}


/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #333;
    color: white;
}