:root{
    --hauteurHeader:5rem;
}

body {
    margin: 0;
    overflow-x: hidden;

    /* background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), url('/img/fond.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat; */
}


#menu-du-haut{
    position: absolute;
    top:0;
    left: 0;
    height: var(--hauteurHeader);
    width: 100%;
    box-sizing: border-box;
    border: solid;
    border-width: 0;
    border-bottom-width: 0.1875rem;
    border-color: rgb(225, 185, 137);
    background-color: bisque;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    padding-left: 1.875rem;
    padding-right: 1.875rem;
}

header{
    margin-top: var(--hauteurHeader);
}

#logo-site{
    transition: 0.5s;
    height: 90%;
    margin-left: 1.875rem;
}

#logo-site:hover{
    transition: 0.3s;
    transform: scale(1.2);
}

#table-bar {
    display: flex;
    justify-content: end;
    border-collapse: collapse;
    margin-left: 1.875rem;
    margin-right: 1.875rem;
}

#table-bar td {
    width: 12.5rem;
    height: 3.125rem;
    text-align: center;
    vertical-align: middle;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1.125rem;
    font-weight: 700;
    color: #795548;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

#table-bar td::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background-color: #fffaf0;
    border-radius: 1.5625rem;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    box-shadow: 0 0.25rem 0.375rem rgba(217, 119, 6, 0.25);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.2s ease;
}

#table-bar td:hover,
#table-bar td:active {
    color: #d97706; 
    transform: translateY(-0.125rem);
}

#table-bar td:hover::before,
#table-bar td:active::before {
    width: 90%;
    height: 85%;
    opacity: 1;
}

#table-bar td::after {
    content: "";
    position: absolute;
    bottom: -0.3125rem;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 0.5rem;
    height: 0.5rem;
    background-color: #d97706;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#table-bar td:hover::after,
#table-bar td:active::after {
    transform: translateX(-50%) scale(1);
}

/* =======================================================
   📱 ADAPTATION MOBILE (Ergonomie type Application "Dock")
   ======================================================= */
@media (max-width: 53.125rem) {
    #menu-du-haut {
        justify-content: center; /* Centre le logo */
        padding: 0;
    }

    #logo-site {
        margin-left: 0;
        height: 90%;
    }

    /* Transforme la liste en Dock flottant au bas de l'écran */
    #table-bar {
        position: fixed;
        bottom: 1.5625rem;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        margin: 0;
        display: flex;
        background: rgba(255, 228, 196, 0.75); /* Bisque + transparence */
        backdrop-filter: blur(0.9375rem); /* Effet verre / Glassmorphism */
        -webkit-backdrop-filter: blur(0.9375rem);
        border-radius: 2.5rem;
        box-shadow: 0 0.5rem 2rem rgba(121, 85, 72, 0.25);
        border: 0.125rem solid rgba(255, 255, 255, 0.5);
        z-index: 10000;
        padding: 0.3125rem 0;
    }

    /* On force le tableau à se comporter de manière flexible (flexbox) */
    #table-bar tbody, 
    #table-bar tr {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0;
        justify-content: space-evenly;
    }

    #table-bar td {
        width: auto;
        flex: 1;
        height: 3.125rem;
        font-size: 0.8125rem; /* Texte légèrement plus petit pour s'adapter */
        padding: 0.3125rem;
        padding-left: 0.625rem;
        padding-right: 0.625rem;
        line-height: 1.1;
        white-space: normal; /* Permet un retour à la ligne pour "Yo-Kai Watch 5" */

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ajuste la taille de la bulle hover pour le mobile */
    #table-bar td::before {
        border-radius: 1.25rem;
    }

    #table-bar td:hover::before,
    #table-bar td:active::before {
        width: 85%;
        height: 90%;
    }

    body {
        padding-bottom: 6.25rem;
    }
}


/* searchBar */

#searchBar{
    transition: 0.3s;
    min-width: 12.5rem;
    width: calc(100% - 5rem);
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    max-width: 31.25rem;
    height: 2.5rem;
    border: solid;
    border-color: rgb(177, 177, 177);
    display: flex;
    justify-self: center;
    border-radius: 1rem;
    box-shadow: 0.125rem 0.125rem 0.625rem rgb(177, 177, 177);
    margin-bottom: 1.25rem;
    background-color: white;
    position: relative;
    z-index: 20;
    overflow: visible;
}

#searchBar:hover{
    transition: 0.3s;
    box-shadow: 0.125rem 0.125rem 0.625rem rgb(99, 99, 99);
}

#icone-search{
    margin: 0.3125rem;
    filter:opacity(30%);
    /* fill-opacity: 1.25rem; */
}

#input-search{
    width: 100%;
    background-color: rgba(119, 119, 119, 0);
    border: none;
    outline: none;

    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1875rem;
    margin-left: 0.625rem;
    margin-right: 0.625rem;
}

#recommendation-space{
    position: absolute;
    top: 2.5rem; 
    left: -0.0625rem;
    
    width: 100%; 
    
    z-index: 10; 
    background-color: white;
    display: none;
    
    border: 0.0625rem solid rgb(177, 177, 177);
    border-top: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 0.625rem 0.625rem rgba(0,0,0,0.1);
}

.blockProposition{
    transition: 0.2s;
    display: flex;
    justify-content: left;
    align-items: center;
    margin-left: 1.875rem;
    text-decoration: none;
    color: inherit;
}

.blockProposition:hover{
    transition: 0.2s;
    background-color: #f0f3f7;
}
.blockProposition:focus{
    transition: 0.2s;
    background-color: #d3dde8;
}

.imgElement{
    height: 3.125rem;
    width: 3.125rem;
    object-fit: contain;
    margin-right: 0.625rem;
    background-color: transparent;
}

.nomElement{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3125rem;
    color: black;
    text-decoration: none;
}

.liste-element{
    display: flex;
    flex-direction: row;
    column-gap: 4rem;
    row-gap: 4rem;
    justify-self: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
}



/*footer*/
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 0rem 2rem 1rem; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 4rem;
    margin-bottom: 0px;
}

footer hr {
    border: none;
    height: 1px;
    background-color: #34495e;
    margin-bottom: 2rem;
}

.footer-social {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-social h6 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

.footer-social strong {
    color: #f39c12;
    font-weight: 600;
}

.footer-social .liste-element {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.icone-resaux-sociaux {
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: white;
    padding: 5px;
}

.icone-resaux-sociaux:hover {
    transform: scale(1.15) translateY(-5px);
    filter: brightness(1.2);
}

.footer-links {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f39c12;
}

.footer-legal {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #95a5a6;
}

.footer-legal a {
    color: #f39c12;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.disclaimer {
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.5;
    font-size: 0.85rem;
    padding-bottom: 1rem;
}

footer p:last-child {
    margin-bottom: 0;
}


.sansEffet {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;    
    color: inherit; 
    display: flex;
    align-items: center;
    justify-content: center;
}