﻿.public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(246, 245, 241, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.public-header-inner {
    min-height: 88px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
    box-sizing: border-box;
}

.public-header-separator {
    color: #bbb;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* =========================
   GAUCHE : LOGO + TAGLINE
   ========================= */

.public-header-brand {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.public-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .public-header-logo img {
        width: 42px;
        height: 42px;
        display: block;
    }

.public-header-tagline {
    font-size: 0.8rem;
    font-weight: 400;
    color: #777;
    opacity: 0.7;
    white-space: nowrap;
}

.public-header-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.public-header-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.public-header-identity .public-header-tagline {
    line-height: 1.3;
}

/* =========================
   CENTRE : NAVIGATION
   ========================= */

.public-header-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

    .public-header-nav > a {
        color: #2a2a2a;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        transition: color 0.18s ease;
    }

        .public-header-nav > a:hover {
            color: #ed5946;
        }


/* =========================
   LANGUES
   ========================= */

.public-header-language {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #aaa;
}

    .public-header-language a {
        color: #777;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.18s ease;
    }

        .public-header-language a.active {
            color: #ed5946;
        }

        .public-header-language a:hover {
            color: #ed5946;
        }


/* =========================
   DROITE : COMPTE
   ========================= */

.public-header-account {
    justify-self: end;
    white-space: nowrap;
}

    .public-header-account a {
        color: #2a2a2a;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        transition: color 0.18s ease;
    }

        .public-header-account a:hover {
            color: #ed5946;
        }


/* =========================
   TABLETTE / MOBILE
   ========================= */

@media (max-width: 768px) {

    .public-header-inner {
        min-height: 72px;
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    .public-header-tagline {
        display: none;
    }

    .public-header-nav {
        justify-self: center;
        gap: 14px;
    }

    .public-header-logo img {
        width: 36px;
        height: 36px;
    }

    .public-header-nav > a,
    .public-header-account a {
        font-size: 0.9rem;
    }

    .public-header-language {
        font-size: 0.8rem;
    }
}


/* =========================
   PETIT MOBILE
   ========================= */

@media (max-width: 576px) {

    .public-header-inner {
        min-height: 62px;
        gap: 10px;
        padding: 0 20px;
    }

    .public-header-logo img {
        width: 30px;
        height: 30px;
    }

    .public-header-nav {
        gap: 10px;
    }

        .public-header-nav > a,
        .public-header-account a {
            font-size: 0.82rem;
        }

    .public-header-language {
        gap: 4px;
        font-size: 0.74rem;
    }
}

.app-public-url-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #c96f5b;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

    .app-public-url-badge:hover {
        opacity: 0.85;
    }

.app-page-intro {
    margin-top: 16px;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .site-footer a {
        color: inherit;
        text-decoration: none;
    }

        .site-footer a:hover {
            text-decoration: underline;
        }


.contact-page-header {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    max-width: 720px;
    margin: 2.5rem auto 0;
    padding: 2rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

    .contact-form .form-group {
        margin-bottom: 1.4rem;
    }

    .contact-form label {
        display: block;
        margin-bottom: 0.45rem;
        font-weight: 600;
    }

    .contact-form .form-control {
        width: 100%;
        box-sizing: border-box;
        padding: 0.9rem 1rem;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 14px;
        background: #fff;
        font: inherit;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .contact-form .form-control:focus {
            outline: none;
            border-color: var(--qlii-primary);
            box-shadow: 0 0 0 3px rgba(191, 103, 78, 0.12);
        }

    .contact-form textarea.form-control {
        resize: vertical;
        min-height: 170px;
    }

    .contact-form .text-danger {
        display: block;
        margin-top: 0.35rem;
        font-size: 0.85rem;
    }

    .contact-form .public-primary-button {
        width: 100%;
        margin-top: 0.4rem;
        border: 0;
        cursor: pointer;
    }

@media (max-width: 768px) {
    .contact-form {
        margin-top: 1.5rem;
        padding: 1.4rem;
        border-radius: 18px;
    }
}

.contact-success {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(46, 125, 50, 0.10);
    border: 1px solid rgba(46, 125, 50, 0.25);
    color: #2e6b32;
    text-align: center;
    font-weight: 600;
}

.public-header-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .public-header-account-icon img {
        width: 22px;
        height: 22px;
        display: block;
    }



/* Desktop */
.public-header-language-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
}

.public-header-language-mobile {
    display: none;
}

/* Mobile */
@media (max-width: 1200px) {

    .public-header-language-desktop {
        display: none;
    }

    .public-header-language-mobile {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

        .public-header-language-mobile select {
            width: 72px;
            padding: 7px 8px;
            border-radius: 10px;
            border: 1px solid rgba(128, 128, 128, .25);
            background: transparent;
            color: inherit;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
        }

        .public-header-language-mobile option {
            color: #222;
            background: #fff;
        }
}




.app-login-google {
    margin-top: 22px;
}

.app-login-separator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: #888;
    font-size: 13px;
}

    .app-login-separator::before,
    .app-login-separator::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #ddd;
    }

.app-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: #fff;
    color: #202124;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

    .app-google-button img {
        width: 32px;
        height: 32px;
    }

    .app-google-button:hover {
        background: #f8f9fa;
    }




.app-contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .app-contacts-header h2 {
        margin: 0;
    }

.app-contacts-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.app-contacts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

    .app-contacts-table th,
    .app-contacts-table td {
        padding: 13px 14px;
        text-align: left;
        border-bottom: 1px solid #e8e8e8;
        white-space: nowrap;
    }

    .app-contacts-table th {
        color: #777;
        font-weight: 600;
    }

    .app-contacts-table tbody tr:hover {
        background: #faf7f5;
    }

.app-contact-vcard-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .app-contact-vcard-link:hover {
        color: #C03A78;
    }