/* Espace ambassadeur — layout dédié (sans nav voyageur).
   Après modification above-the-fold : synchroniser partials/ambassadeur_critical_css.html */

.ambassadeur-space {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f6f8fb;
}

.amb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0e1b2c;
    border-bottom: 1px solid #28405a;
}

.amb-header__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amb-header__brand {
    font-weight: 700;
    font-size: 1rem;
    color: #f4efe4;
    text-decoration: none;
    line-height: 1.2;
}

.amb-header__brand span {
    color: #e8a33d;
}

.amb-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid #28405a;
    border-radius: 8px;
    background: #16283d;
    cursor: pointer;
}

.amb-nav-toggle__bar {
    display: block;
    height: 2px;
    background: #f4efe4;
    border-radius: 1px;
}

.amb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.amb-nav a {
    color: #f4efe4;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.amb-nav a[aria-current="page"] {
    color: #55d6c4;
}

.amb-nav__logout {
    margin: 0;
}

.amb-nav__logout-btn {
    background: transparent;
    border: 1px solid #93a2b8;
    color: #f4efe4;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.amb-nav-backdrop {
    display: none;
}

.amb-main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.amb-footer {
    border-top: 1px solid #d8dee8;
    background: #fff;
    padding: 14px 16px;
}

.amb-footer__links {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-size: 0.85rem;
}

.amb-footer__links a {
    color: #4a5568;
    text-decoration: none;
}

.amb-footer__links a:hover {
    text-decoration: underline;
}

.amb-page-title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
}

.amb-page-lead {
    margin: 0 0 16px;
    color: #5a6578;
    font-size: 0.95rem;
}

.amb-inscription-guide {
    margin: 0 0 20px;
}

.amb-inscription-guide h2 {
    margin: 1.25em 0 0.5em;
    font-size: 1.05rem;
    color: #0e1b2c;
}

.amb-inscription-guide h2:first-child {
    margin-top: 0;
}

.amb-inscription-guide p,
.amb-inscription-guide li {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #334155;
}

.amb-inscription-guide p {
    margin: 0 0 0.75em;
}

.amb-inscription-guide ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.amb-inscription-guide li {
    margin-bottom: 0.65em;
}

.amb-inscription-guide li:last-child {
    margin-bottom: 0;
}

.amb-inscription-guide strong {
    color: #0e1b2c;
}

.amb-inscription-guide a {
    color: #0e7490;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.amb-inscription-guide a:hover {
    color: #155e75;
}

.amb-read-more {
    margin: 0 0 12px;
    border: none;
}

.amb-read-more__toggle {
    display: block;
    list-style: none;
    cursor: pointer;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #0e1b2c;
    color: #f4efe4;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
    user-select: none;
}

.amb-read-more__toggle::-webkit-details-marker {
    display: none;
}

.amb-read-more__toggle::after {
    content: " ▾";
    opacity: 0.85;
}

.amb-read-more[open] .amb-read-more__toggle::after {
    content: " ▴";
}

.amb-read-more__body {
    margin-top: 10px;
    padding: 0 2px;
}

.amb-inscription-note {
    margin: 0 0 0.75em;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    font-style: italic;
}

.amb-inscription-commission-lead {
    margin: 0.5em 0 0.75em;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #334155;
}

.amb-paliers-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0e1b2c;
    text-align: center;
}

.amb-paliers-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.amb-paliers-table {
    width: 100%;
    max-width: 22rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #0e1b2c;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(14, 27, 44, 0.08);
}

.amb-paliers-table th,
.amb-paliers-table td {
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    color: #0a0a0a;
    font-size: 0.82rem;
    line-height: 1.35;
    border-bottom: 1px solid #cbd5e1;
}

.amb-paliers-table th {
    background: #0e1b2c;
    color: #f4efe4;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.amb-paliers-table tbody tr:last-child td {
    border-bottom: none;
}

.amb-paliers-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.amb-card-grid {
    display: grid;
    gap: 12px;
}

.amb-prospect-card {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 12px 14px;
}

.amb-prospect-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 38%) 1fr;
    gap: 6px 10px;
    font-size: 0.88rem;
}

.amb-prospect-card dt {
    margin: 0;
    color: #5a6578;
    font-weight: 600;
}

.amb-prospect-card dd {
    margin: 0;
    color: #1a202c;
}

.amb-prospect-card__name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #0e1b2c;
}

.amb-table-desktop {
    display: block;
}

.amb-cards-mobile {
    display: none;
}

.amb-reglement {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 20px 18px;
}

.amb-reglement h1 {
    margin-top: 0;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.amb-reglement h2 {
    margin: 1.4em 0 0.5em;
    font-size: 1.05rem;
}

.amb-reglement p,
.amb-reglement li {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #334155;
}

.amb-reglement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 12px 0;
}

.amb-reglement-table th,
.amb-reglement-table td {
    border: 1px solid #d8dee8;
    padding: 8px 10px;
    text-align: left;
}

.amb-reglement-table th {
    background: #f1f5f9;
    font-weight: 600;
}

@media (max-width: 720px) {
    .amb-nav-toggle {
        display: flex;
    }

    .amb-nav {
        display: none;
        position: fixed;
        top: 57px;
        right: 12px;
        left: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #16283d;
        border: 1px solid #28405a;
        border-radius: 10px;
        padding: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .amb-nav.is-open {
        display: flex;
    }

    .amb-nav a {
        padding: 12px 10px;
        border-radius: 6px;
    }

    .amb-nav a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .amb-nav__logout {
        padding: 8px 10px 4px;
    }

    .amb-nav__logout-btn {
        width: 100%;
        padding: 10px;
    }

    .amb-nav-backdrop.is-visible {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 90;
    }

    .amb-table-desktop {
        display: none;
    }

    .amb-cards-mobile {
        display: block;
    }

    .amb-main {
        padding: 16px 12px 28px;
    }

    .amb-reglement {
        padding: 16px 14px;
    }

    .amb-reglement-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (min-width: 721px) {
    .amb-header__inner {
        padding: 14px 24px;
    }

    .amb-main {
        padding: 24px 24px 40px;
    }
}
