@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

a {
    text-decoration: none;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 9px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #ccc;
}

.medfood {
    width: 80px;
    height: 40px;
}

/* ===== HEADER ===== */
header {
    background-color: #171717;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 8px;
    width: 100%;
}

.logos {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-evenly;
    gap: 4px;
    overflow-x: auto;
    padding: 0 4px;
    flex-wrap: nowrap;
    height: 100%;
}

.logos img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.dgrst,
.umbb {
    height: 52px;
    width: 52px;
}

.logos h4 {
    color: white;
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 5px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.3px;
}

/* Admin Login - invisible par défaut, visible au survol */
.admin-login {
    display: block;
    margin-left: auto;
    padding: 0 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

header:hover .admin-login {
    opacity: 1;
}

.admin-btn {
    display: inline-block;
    padding: 4px 10px;
    background-color: #29d9d5;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-btn:hover {
    background-color: #24bdb9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(41, 217, 213, 0.3);
}

.menu {
    display: flex;
    align-items: center;
}

.menu li {
    margin: 0 15px;
    list-style-type: none;
}

.menu li a {
    color: #fff;
    font-size: 14px;
}

.btn-reservation {
    color: #ffffff;
    font-size: 20px;
    border: 2px solid #29d9d5;
    padding: 5px 20px;
    transition: 0.5s;
    font-weight: bolder;
}

.btn-reservation:hover {
    background-color: #29d9d5;
    color: #fff;
}

.responsive-menu {
    display: none;
}

/* ===== HOME SECTION ===== */
#home {
    background-color: #b9f4b4;
    padding-top: 60px;
    padding-bottom: 0;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.desc_image {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.description {
    background-color: #b9f4b4;
    padding: 12px 20px;
    width: 70%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.description h3 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 6px;
}

.description p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.description h2 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
}

.description br {
    display: block;
    content: "";
    margin: 4px 0;
}

/* ===== ASIDE - Ajusté pour occuper tout l'espace ===== */
.Aside {
    background-color: #F5F5DC;
    padding: 8px 12px;
    width: 30%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribution uniforme */
    overflow-y: auto;
    height: 100%;
}

/* Image de l'Aside - plus grande pour occuper l'espace */
.Aside .medfood {
    width: 100%;
    height: auto;
    max-height: 140px; /* Augmenté pour occuper plus d'espace */
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
    flex-shrink: 0;
}

/* Contenu du Team - occupe l'espace restant */
.Aside .Team {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.Team ul,
.Team p {
    font-size: 12px;
    margin: 2px 0;
    line-height: 1.3;
}

.Team h2 {
    font-size: 14px;
    margin: 4px 0;
}

.Team ul {
    list-style-position: inside;
    margin-left: 5px;
}

.team-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-title h2 {
    margin: 0;
    font-size: 14px;
}

.team-logo {
    width: 35px;
    height: 25px;
    object-fit: contain;
}

/* ===== FIND TRIP DISCOVER ===== */
.find_trip_discover {
    display: flex;
    flex-direction: row;
    background-color: #b9f4b4;
    padding: 4px 0 8px 0;
    width: 100%;
    clear: both;
    margin: 0;
    flex-shrink: 0;
    height: auto;
    min-height: 75px;
    max-height: 90px;
}

#discover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18%;
    min-width: 120px;
    height: 44px;
    background-color: #0066cc;
    color: white;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px 0 0 4px;
    transition: 0.3s;
    flex-shrink: 0;
    align-self: center;
}

#discover:hover {
    background-color: #004499;
    transform: scale(1.02);
}

.find_trip {
    background-color: #092ee2;
    padding: 8px 15px;
    width: 82%;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.find_trip form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    flex-wrap: wrap;
    gap: 5px;
}

.find_trip form div {
    flex: 1;
    min-width: 100px;
    position: relative;
}

.find_trip form label {
    display: block;
    font-size: 14px;
    color: white;
    margin-bottom: 2px;
    font-weight: bold;
}

.find_trip form input[type="text"] {
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #29d9d5;
    outline: 0;
    width: 100%;
    font-size: 14px;
    color: #fff;
    border-radius: 4px;
    transition: border-color 0.3s;
    height: 35px;
}

.find_trip form input[type="text"]:hover {
    border-color: white;
}

.find_trip form input[type="text"]:focus {
    border-color: #29d9d5;
    background-color: rgba(255, 255, 255, 0.15);
}

.find_trip form input[type="submit"] {
    text-transform: uppercase;
    color: #29d9d5;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid #29d9d5;
    background-color: transparent;
    transition: 0.5s;
    padding: 6px 16px;
    border-radius: 4px;
    min-width: 90px;
    flex-shrink: 0;
    height: 35px;
    font-weight: bold;
}

.find_trip form input[type="submit"]:hover {
    box-shadow: 0 0 15px #29d9d5;
    background-color: #29d9d5;
    color: #222;
}

.home-btn {
    display: none;
}

/* Suggestions */
.suggestions-box,
#recette-suggestions,
#allergie-suggestions,
#pays-suggestions {
    border: 1px solid #29d9d5;
    background-color: #222;
    color: #e6e6e6;
    max-height: 100px;
    overflow-y: auto;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    border-radius: 4px;
}

.suggestions-box div,
#recette-suggestions div,
#allergie-suggestions div,
#pays-suggestions div {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
}

.suggestions-box div:hover,
#recette-suggestions div:hover,
#allergie-suggestions div:hover,
#pays-suggestions div:hover {
    background-color: #29d9d5;
    color: #222;
}

/* ===== SECTION RESTE ===== */
#reste {
    background-color: #111;
    margin: 0 !important;
    padding: 0 !important;
    clear: both;
    border: none !important;
    display: block;
    position: relative;
    top: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #111;
    overflow-x: hidden;
}

/* ===== A PROPOS ===== */
#a-propos {
    margin-top: 0;
    margin-bottom: 50px;
    padding: 0 10%;
    width: 100%;
    background-color: #111;
}

.title {
    text-transform: capitalize;
    margin: 70px 0;
    font-weight: bold;
    color: #29d9d5;
    position: relative;
    margin-left: 15px;
    font-size: 18px;
}

.title::after {
    position: absolute;
    left: -15px;
    content: "";
    height: 100%;
    background-color: #fff;
    width: 5px;
}

.img-desc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.img-desc .left {
    position: relative;
    margin-left: 10px;
    height: 250px;
    width: 40%;
    overflow: hidden;
}

.img-desc .left video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-desc .right {
    width: 57%;
}

.img-desc .right h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-desc .right h2 {
    color: #999;
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== DESTINATION SECTIONS ===== */
#popular-destination,
#popular-destination1 {
    padding: 0 10%;
    margin-bottom: 50px;
}

#popular-destination .content,
#popular-destination1 .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

#popular-destination .content .box,
#popular-destination1 .content .box {
    overflow: hidden;
    position: relative;
    height: 250px;
    transition: 0.5s;
}

#popular-destination .content .box img,
#popular-destination1 .content .box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.box .content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: 1.1s;
}

.box .content h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.box .content p {
    padding: 2px;
    font-size: 12px;
    line-height: 1.4;
}

.box .content a {
    margin-top: 10px;
    padding: 10px 30px;
    border: 2px solid black;
    font-size: 12px;
    color: #29d9d5;
    font-weight: bold;
    display: inline-block;
}

.box .content a:hover {
    background-color: #29d9d5;
    color: #222;
}

.box:hover {
    box-shadow: 0 0 10px #29d9d5;
}

.box:hover .content {
    transform: translateX(0);
}

/* ===== TEAM & LINKS ===== */
.medfood {
    width: 100%;
    height: auto;
    display: block;
}

.Team ul,
.Team p {
    font-size: 14px;
}

.Team h2 {
    font-size: 17px;
}

.Team ul {
    list-style-position: inside;
    margin-left: 20px;
}

.team-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.team-title h2 {
    margin: 0;
}

.team-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

.project-link,
.sadjia-link,
.saida-link,
.halouane-link,
.ketfi-link,
.djenouhat-link,
.TERNICHE-link,
.wafa-link,
.team-alg {
    color: #0066cc;
    text-decoration: underline;
    font-weight: bold;
}

.project-link:hover,
.sadjia-link:hover,
.saida-link:hover,
.halouane-link:hover,
.ketfi-link:hover,
.djenouhat-link:hover,
.TERNICHE-link:hover,
.wafa-link:hover,
.team-alg:hover {
    color: #ff6600;
}

/* ===== FOOTER ===== */
footer {
    width: 100%;
    background-color: white;
    padding: 10px 0;
    font-size: 16px;
    text-align: center;
}

footer p {
    color: black;
    font-size: 14px;
}

footer p span {
    color: #29d9d5;
}

/* =========================================================== */
/* ===== RESPONSIVE MOBILE ===== */
/* =========================================================== */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    header {
        height: 50px;
        padding: 0 4px;
    }

    .logos {
        gap: 2px;
        padding: 0 2px;
        flex: 1;
        justify-content: flex-start;
    }

    .logos img {
        width: 28px;
        height: 28px;
    }

    .dgrst,
    .umbb {
        height: 32px;
        width: 32px;
    }

    .logos h4 {
        font-size: 9px;
        display: block;
    }

    .admin-login {
        display: none;
    }

    .admin-btn {
        display: none;
    }

    header .menu {
        display: none;
    }

    .btn-reservation {
        display: none;
    }

    .responsive-menu {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        cursor: pointer;
        flex-shrink: 0;
    }

    .responsive-menu::after {
        position: absolute;
        content: "";
        height: 2px;
        background-color: #29d9d5;
        width: 18px;
        box-shadow: 0 6px 0 #29d9d5;
        transform: translateY(-6px);
        transition: 0.5s;
    }

    .responsive-menu.active::after {
        box-shadow: 0 0 0 #29d9d5;
        transform: rotate(45deg);
    }

    .responsive-menu::before {
        position: absolute;
        content: "";
        height: 2px;
        background-color: #29d9d5;
        width: 18px;
        transform: translateY(6px);
        transition: 0.5s;
    }

    .responsive-menu.active::before {
        transform: rotate(-45deg);
    }

    header .menu.responsive {
        display: flex;
        position: absolute;
        top: 50px;
        right: 0;
        flex-direction: column;
        background-color: #222;
        align-items: unset;
        animation: animate-menu 0.5s forwards;
        width: 150px;
    }

    header .menu.responsive li {
        margin: 6px 10px;
        width: 100%;
        padding-left: 10px;
    }

    @keyframes animate-menu {
        0% {
            transform: translateY(-20px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    #home {
        padding-top: 50px;
        min-height: auto;
        height: auto;
        overflow: visible;
        margin: 0;
        padding-bottom: 0;
    }

    .desc_image {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .description {
        width: 100%;
        padding: 10px 12px;
        min-height: auto;
        overflow-y: visible;
        justify-content: flex-start;
    }

    .description h3 {
        font-size: 18px;
    }

    .description p {
        font-size: 13px;
    }

    .description h2 {
        font-size: 16px;
    }

    .description br {
        margin: 2px 0;
    }

    .Aside {
        width: 100%;
        padding: 8px 10px;
        min-height: auto;
        overflow-y: visible;
        height: auto;
    }

    .Aside .medfood {
        max-height: 100px;
    }

    .Team ul,
    .Team p {
        font-size: 11px;
    }

    .Team h2 {
        font-size: 13px;
    }

    .team-logo {
        width: 30px;
        height: 22px;
    }

    .find_trip_discover {
        flex-direction: column;
        padding: 4px 0 8px 0;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    #discover {
        width: 100%;
        min-width: unset;
        border-radius: 4px 4px 0 0;
        height: 36px;
        font-size: 15px;
        align-self: auto;
    }

    .find_trip {
        width: 100%;
        padding: 8px;
        border-radius: 0 0 8px 8px;
    }

    .find_trip form {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .find_trip form div {
        width: 100%;
        min-width: unset;
    }

    .find_trip form label {
        font-size: 12px;
    }

    .find_trip form input[type="text"] {
        font-size: 12px;
        padding: 5px 8px;
        height: 30px;
    }

    .find_trip form input[type="submit"] {
        width: 100%;
        padding: 5px;
        font-size: 12px;
        min-width: unset;
        height: 30px;
    }

    .suggestions-box,
    #recette-suggestions,
    #allergie-suggestions,
    #pays-suggestions {
        width: 100%;
    }

    #a-propos {
        padding: 0 5%;
    }

    .img-desc {
        flex-direction: column;
        gap: 12px;
    }

    .img-desc .left,
    .img-desc .right {
        width: 100%;
    }

    .img-desc .left {
        height: 140px;
        margin-left: 0;
    }

    .img-desc .right h3 {
        font-size: 15px;
        white-space: normal;
    }

    .img-desc .right h2 {
        font-size: 12px;
    }

    .title {
        font-size: 13px;
        margin: 25px 0;
    }

    #popular-destination,
    #popular-destination1 {
        padding: 0 5%;
        margin-bottom: 25px;
    }

    #popular-destination .content,
    #popular-destination1 .content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #popular-destination .content .box,
    #popular-destination1 .content .box {
        height: 160px;
    }

    .box .content {
        transform: translateY(100%);
    }

    .box:hover .content {
        transform: translateY(0);
    }

    .box .content h4 {
        font-size: 15px;
    }

    .box .content p {
        font-size: 9px;
    }

    .box .content a {
        padding: 5px 14px;
        font-size: 9px;
    }

    footer {
        font-size: 10px;
        padding: 6px 4px;
    }

    footer p {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .logos img {
        width: 20px;
        height: 20px;
    }

    .dgrst,
    .umbb {
        height: 22px;
        width: 22px;
    }

    .logos h4 {
        font-size: 7px;
    }

    .description h3 {
        font-size: 15px;
    }

    .description p {
        font-size: 12px;
    }

    .img-desc .left {
        height: 100px;
    }

    #popular-destination .content .box,
    #popular-destination1 .content .box {
        height: 120px;
    }

    .box .content h4 {
        font-size: 13px;
    }

    .box .content p {
        font-size: 8px;
    }

    .box .content a {
        padding: 4px 8px;
        font-size: 8px;
    }
}