:root{
    --primary-color: #8fc445;
    --secondary-color: #adae35;
}

@font-face {
  font-family: 'Roboto_Condensed'; /* set name */
  src: url("../../ressources/font/Roboto_Condensed-Black.ttf") format('truetype'); /* url of the font */
}

@font-face{
    font-family: 'Roboto_Thin'; /* set name */
    src: url("../../ressources/font/Roboto_SemiCondensed-Thin.ttf") format('truetype'); /* url of the font */
}

body{
    margin: 0;
	min-height: 100vh;
}

.navbar {
    background: #8FC445;
    background: linear-gradient(180deg,rgba(143, 196, 69, 1) 0%, rgba(119, 171, 46, 1) 100%);
    font-family: Roboto_Condensed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px black;
}

.navbar h3{
    margin: 0;
    font-family: Roboto_Thin;
}

.navbar a{
    font-family: Roboto_Thin;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: black;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    border: 1px solid black;
}

.navbar a:hover{
    background-color: var(--secondary-color);
    border: 1px solid white;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-family: Roboto_Thin;
    text-align: center;
    font-style: italic;
    margin-top: 30px;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px black;
}

.section-title::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    margin: auto;
    margin-top: 10px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #222 20%,
        #222 80%,
        transparent 100%
    );
}

.custom-section {
    background-color: white;
    font-family: Roboto_Condensed;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.admin-card {
    background: var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center;
    margin-top: 15px;
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-card img {
    width: 50%;
    height: 220px;
    object-fit: cover;
}

.admin-grid a {
    text-decoration: none;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.admin-content {
    padding: 20px;
}

.admin_form{
    width: 50%;
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
    font-family: Roboto_Condensed;
    margin: auto;
    margin-bottom: 20px;
}

.admin_form input[type=text], select, textarea, input[type=password], input[type=file]{
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */ 
    border: 1px solid #ccc; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

.admin_form input[type=submit]{
    display: block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: auto;
}

.admin_form input[type=submit]:hover{
    background-color: var(--secondary-color);
}

table{
    width: 75%;
    margin: auto;
    border-collapse: collapse;
    border: 2px solid rgb(140 140 140);
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: Roboto_Thin;
}

thead{
    background-color: var(--primary-color);
}

th,
td {
  border: 1px solid rgb(160 160 160);
  padding: 8px 10px;
  text-align: center;
}

.edit{
    font-family: Roboto_Condensed;
    text-shadow: 1px 1px 2px black;
    padding: 10px 25px;
    background-color: #ffa500;
    color: white;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 8px;
}

.edit:hover{
    border: 1px solid black;
    background-color: #e69e19;
    cursor: pointer;
}

.retour{
    display: block;
    background-color: var(--primary-color);
    border-radius: 6px;
    padding: 10px;
    width: 75px;
    margin: auto;
    color: white;
    text-decoration: none;
    font-family: Roboto_Thin;
    text-shadow: 1px 1px 2px black;
    text-align: center;
}

.retour:hover{
    background-color: var(--secondary-color);
}

.dis_msg{
    text-align: center;
    font-family: Roboto_Thin;
}