html {
    scrollbar-width: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    background: linear-gradient(to bottom, #ecfeff, #e0f2fe);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: white;
}

li {
    list-style: none;
}

header.expanded {
    height: 220px;
}

header {
    background: #0d9488;
    height: 60px
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;

    .menu-container {
        width: 100%;
    }

    .menu-container ul {
        flex-direction: column;
        align-items: center;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        display: none;
    }

    .menu-container ul li {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .menu-container ul li a {
        text-decoration: none;
        padding: 10px 25px;
        border-radius: 5px;
        transition: background 0.3s;
        margin: 10px 0;
        font-size: 20px;
        font-style: normal;
        font-weight: normal;
        line-height: normal;
        letter-spacing: 3px;
        text-transform: capitalize;
    }

    .burger-menu {
        display: flex;
        cursor: pointer;
        justify-content: right;
        font-size: 24px;
    }

    .burger-menu div span {
        color: white;
    }
}


.hero {
    position: relative;
    height: 500px;
    margin-top: 2rem;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0d9488;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.3s;
    width: fit-content;
}

.cta-button:hover {
    background-color: #0f766e;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card h2 {
    color: #0d9488;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: #4b5563;
}

.otter-list, .healer-list {
    padding: 3rem;
}

.otter-list h1, .healer-list h1 {
    text-align: center;
    color: #0f766e;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.otter-grid, .healer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.otter-card, .healer-card {
    padding: 15px;
    max-width: 400px;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s;
}

.otter-card:hover, .healer-card:hover {
    transform: translateY(-0.25rem);
}

.otter-image {
    position: relative;
    height: 250px;
}

.otter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 9999px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.favorite-btn:hover {
    background: white;
}

.favorite-btn svg {
    color: #ef4444;
}

.otter-info {
    padding: 1.5rem;
}

.otter-info h2 {
    color: #0d9488;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.scientific-name {
    color: #6b7280;
    font-style: italic;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.description {
    color: #4b5563;
    margin-bottom: 1rem;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label {
    color: #0d9488;
    font-weight: 600;
}

.status {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}   

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.search-label {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.search-input {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-bottom: nnexion10px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #0d9488;
    outline: none;
}

.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0d9488;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #0d9488;
}

.search-results {
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.search-results ul {
    list-style-type: none;
    padding: 0;
}

.search-results li {
    padding: 8px;
    margin: 5px 0;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-results li:hover {
    background-color: #e0e0e0;
}

.alert {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    width: 80%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.alert.hide {
    animation: fadeOut 1s ease-in-out forwards;
}

.footer {
    background-color: #0d9488;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-direction: column;
}

.footer-section {
    width: 30%;
    padding: 10px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 5px 0;
}           

.footer-section a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.footer-bottom {
    padding: 10px;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

.admin-container, .page-container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.admin-buttons button, .buttons button {
    background-color: #0d9488;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.admin-buttons button:hover, .buttons button:hover {
    background-color: #0d9488;
}

.buttons .btn-back {
    background-color: rgb(122, 6, 6)!important;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.data-table th {
    background-color: #f2f2f2;
}

button {
    background-color: #0d9488;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;    
}

button:hover {
    background-color: #0a6a62;
}

/* Style pour les liens Modifier et Supprimer */
.btn-modify, .btn-delete {
    text-decoration: none;
    padding: 6px 12px;
    margin-right: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

/* Style pour le bouton Modifier */
.btn-modify {
    background-color: #4CAF50; /* Vert pour Modifier */
    color: white;
    border: 1px solid #45a049;
}

.btn-modify:hover {
    background-color: #45a049;
    border-color: #3e8e41;
}

/* Style pour le bouton Supprimer */
.btn-delete {
    background-color: #f44336;
    color: white;
    border: 1px solid #f33529;
}

.btn-delete:hover {
    background-color: #e53935;
    border-color: #c62828;
}

.btn-modify:hover, .btn-delete:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
form input, form select, form button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form button {
    background: #0d9488;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
form button:hover {
    background: #0b766d;
}
form input[type="file"] {
    display: none;
}
.file-label {
    display: block;
    background: #0d9488;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.file-label:hover {
    background: #0b766d;
}
form select {
    background: #ffffff;
    cursor: pointer;
}
form select {
    background: #ffffff;
    cursor: pointer;
}



@media screen and (min-width: 576px) {

    header nav .burger-menu {
        display: none;
    }

    header nav {
        justify-content: center;
        background: none;
        box-shadow: none;
        position: absolute;
    }

    header nav .menu-container ul {
        display: flex!important;
        justify-content: center;
        flex-direction: row!important;
    }

    .footer-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .footer-section {
        width: 80%;
        text-align: center;
    }
}