
.ectr-wrapper {
    display: flex;
    font-family: sans-serif;
    margin-top: 20px;
}
.ectr-menu {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ectr-menu button {
    background-color: #14583e;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
}
.ectr-content {
    margin-left: 30px;
    flex-grow: 1;
}
.ectr-upload-form {
    margin-top: 15px;
}
.ectr-file-list {
    margin-top: 20px;
}
.ectr-file-list li {
    margin-bottom: 8px;
}
.ectr-file-list a {
    color: #f5842d;
    text-decoration: none;
}


/* Grid layout for file icons */
.ectr-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
    list-style-type: none;
    padding: 0;
}

.ectr-file-list li {
    background-color: #14583e;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: white;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.ectr-file-list li:hover {
    transform: scale(1.05);
}

.ectr-file-list li img {
    display: block;
    margin: 0 auto 8px;
    width: 48px;
    height: auto;
}

/* Make archived file text visible */
.archives-yearly-list ul {
    list-style-type: none;
    padding: 0;
}

.archives-yearly-list > ul > li {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #14583e;
    color: white;
}

.archives-yearly-list > ul > li > strong {
    display: block;
    background: #f5842d;
    color: white;
    padding: 10px;
    cursor: pointer;
}

.archives-yearly-list ul ul {
    background: #14583e;
    padding: 10px;
}

.archives-yearly-list ul ul li {
    margin: 5px 0;
}

.archives-yearly-list a {
    color: white;
    text-decoration: underline;
}

/* Vertical form layout for Mon profil */
.ectr-profile-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.ectr-profile-form label {
    font-weight: bold;
    margin-top: 8px;
}

.ectr-profile-form input[type="text"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.ectr-profile-form button {
    margin-top: 12px;
    background-color: #14583e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.ectr-profile-form button:hover {
    background-color: #0f4a32;
}

.file-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.file-container .file-box {
  width: calc(25% - 12px); /* 4 colonnes avec un petit espace */
  box-sizing: border-box;
}



/* Responsive grid for file upload boxes */
.file-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.file-box {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .file-box {
    width: calc(50% - 8px);
  }
}

@media (min-width: 900px) {
  .file-box {
    width: calc(25% - 12px);
  }
}


/* Extension pour la section Archives */
.archives-yearly-list {
    width: 100%;
    box-sizing: border-box;
}


/* Correctif largeur Archives */
.archives-yearly-list {
    width: 100%;
    box-sizing: border-box;
}

.archives-yearly-list ul {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ectr-content {
    max-width: none;
}


/* Correctif final - pleine largeur Archives */
.ectr-content,
.ectr-wrapper {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

.archives-yearly-list {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
}

.archives-yearly-list ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
