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

html {
    height: 100%;
}

body {
    padding-bottom: 0;
    font-family: Arial;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    width: 100%;
}


.navbar {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space the 3 blocks */
    padding: 10px 40px;
    background-color: white;
    border-bottom: 1px solid #ddd;
    font-family: sans-serif;
    position: relative;
    gap: 24px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 0 0 160px;
}

.logo img {
    width: 160px;
    height: auto;
}

.search-container {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar {
    width: 100%;
    padding: 12px 20px;
    border: 3px solid #555;
    border-radius: 10px;
    background-color: #e0e0e0;
    outline: none;
    font: 16px "Segoe UI";
}

.list-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 16px 0;
}

.inline-form {
    display: inline;
}

.u-ml-10 {
    margin-left: 10px;
}

.account-container {
    text-align: center;
    cursor: pointer;
}

.account {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 0 0 120px;
    position: relative;
}

.account a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.account a:hover,
.account a:focus,
.account a:active,
.account a:visited {
    text-decoration: none;
    color: inherit;
}

.user-icon {
    width: 70px;
    height: auto;
}

.user-icon img {
    width: 100%;
    height: auto;
}

.account-text {
    font-family: "Segoe UI";
    font-weight: bold;
}

.account-menu-toggle {
    display: none;
}

.account-menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 18px;
    background: #f3f3f3;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.nav-panel {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #c9d6e6;
    background: #ffffff;
    color: #2a63a4;
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
    font-weight: 700;
}

.nav-cta .icon-company {
    display: inline-flex;
    font-size: 18px;
}

.nav-cta:hover {
    background: #eef6ff;
    border-color: #2a63a4;
}

.company-btn {
    padding-left: 10px;
}

.account {
    display: flex;
    align-items: center;
}

.account-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    min-width: 160px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
}

.account-menu-item {
    text-decoration: none;
    color: #222;
    font-family: "Segoe UI";
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

.account-menu-item:hover,
.account-menu-item:focus {
    background: #f3f3f3;
}

.account-menu-toggle:checked + .account-menu-button .account-arrow {
    transform: rotate(90deg);
}

.account-menu-toggle:checked ~ .account-menu {
    display: flex;
}

.account-button {
    background-color: #348635;
    border: 2px solid #444;
    border-radius: 20px;
    padding: 8px 16px;
    color: #000;
    font-family: "Segoe UI";
}
.account-button {
    background-color: #2a63a4;
    border: 1px solid #224f85;
    border-radius: 18px;
    padding: 8px 14px;
    color: #ffffff;
    font-family: "Segoe UI";
    font-weight: 700;
    text-decoration: none;
}

.account-button:hover,
.account-button:focus {
    background-color: #1f4f86;
    color: #ffffff;
}

.nav-panel {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-icon {
    text-decoration: none;
    color: #17496E;
    font-family: "Segoe UI", sans-serif;
    font-weight: 600;
    padding: 8px 14px;
    margin-left: 12px;
    border-radius: 999px;
    border: 1px solid #17496E;
    background: #f0f7ff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-icon:hover,
.nav-icon:focus {
    background: #17496E;
    color: #ffffff;
    border-color: #17496E;
}

.site-footer {
    position: static;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #d9e2ee;
    background: linear-gradient(180deg, #f8fafd 0%, #f3f7fb 100%);
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    color: #4a5a70;
}

.footer-copy {
    margin: 0;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-link {
    text-decoration: none;
    color: #2a63a4;
    font-weight: 600;
    cursor: pointer;
}

.footer-link:hover {
    text-decoration: underline;
    color: #1f4f86;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d7dfeb;
    background: #ffffff;
    color: #17496E;
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-btn:hover,
.pagination-btn:focus {
    background: #f0f7ff;
    border-color: #17496E;
    color: #17496E;
}

.pagination-btn.is-active {
    background: #17496E;
    border-color: #17496E;
    color: #ffffff;
}

.pagination-btn.pagination-nav {
    padding: 10px 14px;
}

.entreprise-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #17496E;
    border: 1px solid #17496E;
    color: #ffffff;
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.entreprise-link:hover,
.entreprise-link:focus {
    background: #0f2f47;
    border-color: #0f2f47;
    color: #ffffff;
    text-decoration: none;
}

.stars-display {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.star {
    font-size: 20px;
    line-height: 1;
}

.star.filled {
    color: #f4b400;
}

.star.empty {
    color: #bcc6cf;
}

.rating-meta {
    margin-left: 8px;
    font-size: 14px;
    color: #4f5e6b;
    font-family: "Segoe UI", sans-serif;
}

/* Defensive reset in case legacy paragraph footer styles are still loaded. */
.site-footer p {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: inherit;
}

@media (max-width: 600px) {
    .navbar {
        padding: 10px 16px;
    }

    .logo img {
        width: 120px;
    }

    .nav-panel {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 0 0 auto;
    }

    .search-container {
        display: none;
        max-width: none;
        margin: 0;
        width: 100%;
    }

    .search-bar {
        border-width: 2px;
        padding: 10px 14px;
    }

    .account {
        display: none;
        flex-direction: row;
        gap: 10px;
    }

    .nav-icon {
        padding: 6px 12px;
        font-size: 14px;
    }

    .user-icon {
        width: 44px;
    }

    .account-text {
        font-size: 14px;
    }

    .site-footer {
        position: static;
        margin-top: auto;
    }

    .footer-inner {
        padding: 12px 14px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav {
        width: 100%;
    }
}

.mobile-menu-toggle,
.mobile-search-toggle {
    display: none;
}

.mobile-fab,
.mobile-menu,
.mobile-search {
    display: none;
}

@media (max-width: 600px) {
    .mobile-fab {
        display: flex;
        position: fixed !important;
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #17496E;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        align-items: center;
        justify-content: center;
        z-index: 3000;
        cursor: pointer;
    }

    .mobile-fab span,
    .mobile-fab span::before,
    .mobile-fab span::after {
        display: block;
        width: 24px;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        position: relative;
        transition: transform 0.2s ease, opacity 0.2s ease;
        content: "";
    }

    .mobile-fab span::before {
        position: absolute;
        top: -7px;
    }

    .mobile-fab span::after {
        position: absolute;
        top: 7px;
    }

    .mobile-menu {
        display: flex;
        position: fixed !important;
        right: 16px;
        bottom: 84px;
        flex-direction: column;
        gap: 10px;
        background: #ffffff;
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
        transform: scale(0.9);
        opacity: 0;
        pointer-events: none;
        transform-origin: bottom right;
        transition: transform 0.2s ease, opacity 0.2s ease;
        z-index: 3000;
    }

    .mobile-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: "Segoe UI", sans-serif;
        font-size: 14px;
        color: #222;
        text-decoration: none;
        cursor: pointer;
        padding: 8px 10px;
        border-radius: 10px;
        background: #f3f3f3;
        border: 1px solid #e0e0e0;
    }

    .mobile-menu-item--cta {
        background-color: #348635;
        border: 1px solid #444;
        color: #000;
        font-weight: 600;
    }

    .mobile-menu-item--cta:hover,
    .mobile-menu-item--cta:focus {
        background-color: #2f7a30;
        color: #000;
    }

    .mobile-menu-item--cta {
        background-color: #348635;
        border: 1px solid #444;
        color: #000;
        font-weight: 600;
    }

    .mobile-menu-item--cta:hover,
    .mobile-menu-item--cta:focus {
        background-color: #2f7a30;
        color: #000;
    }

    .mobile-menu-item img {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-toggle:checked ~ .mobile-menu {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-toggle:checked + .mobile-fab span {
        transform: rotate(45deg);
    }

    .mobile-menu-toggle:checked + .mobile-fab span::before {
        transform: rotate(90deg);
        top: 0;
    }

    .mobile-menu-toggle:checked + .mobile-fab span::after {
        opacity: 0;
    }

    .mobile-search {
        position: fixed;
        inset: 0;
        z-index: 3500;
        display: none;
    }

    .mobile-search-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
    }

    .mobile-search-box {
        position: relative;
        margin: 120px 20px 0 20px;
        background: #ffffff;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-search-title {
        font-family: "Segoe UI", sans-serif;
        font-weight: 600;
        font-size: 16px;
    }

    .mobile-search-toggle:checked ~ .mobile-search {
        display: block;
    }
}

.nav-icon {
    font-size: 14px;
    font-weight: 600;
    color: #17496E;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #17496E;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav-icon:hover {
    background: #17496E;
    color: white;
}