:root{
    --bg: #1e1e1e;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --gold: #cb9b51;
    --gold-bright: #f6e27a;
    --gold-line: rgba(203, 155, 81, 0.28);
    --text: #ececec;
    --muted: #a6a6a6;
    --link: var(--pbs-gold-bright);
    --gold-gradient: linear-gradient(
        to right,
        #ffee9b 0,
        #f6e27a 15%,
        #d6b457 45%,
        #f6e27a 55%,
        #d6b457 85%,
        #ffec8f 100%
    );
}

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

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--bg);
    background-image:
        radial-gradient(120% 380px at 50% -80px, rgba(203, 155, 81, 0.16) 0%, rgba(203, 155, 81, 0) 70%);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: var(--pbs-font-text);
    font-size: 0.95rem;
    line-height: 1.7;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* ---------- En-tête ---------- */
header{
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-line);
}

.back-arrow{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: var(--surface);
    transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.back-arrow:hover,
.back-arrow:focus-visible{
    border-color: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(203, 155, 81, 0.35);
}
header img{
    width: 22px;
    height: 22px;
}

header h1{
    flex: 1 1 auto;
    margin: 0;
    padding-right: 40px;
    font-family: var(--pbs-font-logo);
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
}
header h1 a{
    background-image: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* ---------- Titre de page ---------- */
.page-head{
    max-width: 780px;
    margin: 0 auto;
    padding: 34px 18px 6px;
    text-align: center;
}
.eyebrow{
    display: block;
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}
.title-mentions{
    display: block;
    margin: 10px 0 14px;
    font-family: var(--pbs-font-title);
    font-size: 1.45rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.title-mentions .amp{
    color: var(--gold-bright);
    font-family: var(--pbs-font-title);
    font-weight: 400;
}
.page-sub{
    margin: 0 auto;
    max-width: 46ch;
    font-size: 0.88rem;
    color: var(--muted);
}
.page-head::after{
    content: "";
    display: block;
    width: 160px;
    height: 1px;
    margin: 22px auto 0;
    background-image: linear-gradient(to right, rgba(255,255,255,0), var(--gold), rgba(255,255,255,0));
}

/* ---------- Sommaire ---------- */
.toc{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 780px;
    margin: 22px auto 0;
    padding: 0 18px;
}
.toc a{
    padding: 6px 14px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--gold-bright);
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .25s ease, background-color .25s ease, transform .2s ease;
}
.toc a:hover,
.toc a:focus-visible{
    border-color: var(--gold-bright);
    background: var(--surface-strong);
    transform: translateY(-1px);
}

/* ---------- Contenu ---------- */
main{
    max-width: 780px;
    margin: 0 auto;
    padding: 8px 18px 40px;
}

.card{
    position: relative;
    margin-top: 26px;
    padding: 26px 20px 24px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    scroll-margin-top: 76px;
}
.card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-bright) 50%, var(--gold) 80%, transparent);
}

main h2{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--pbs-font-title);
    color: var(--gold-bright);
}
main h2 .num{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    background: rgba(203, 155, 81, 0.1);
    color: var(--gold);
    font-family: var(--pbs-font-title);
    font-size: 1rem;
    letter-spacing: 0;
}

main h3{
    margin: 26px 0 8px;
    padding-left: 12px;
    border-left: 2px solid var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold);
}
main h3:first-of-type{
    margin-top: 18px;
}

main h4{
    margin: 22px 0 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
}
main h4::before{
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
}

main p{
    margin: 0 0 14px;
    color: var(--text);
    text-align: justify;
    hyphens: auto;
}
main p:last-child{
    margin-bottom: 0;
}

main ul{
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
main li{
    position: relative;
    margin: 7px 0;
    padding-left: 18px;
    color: var(--text);
}
main li::before{
    content: "";
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

/* Bloc identité / hébergeur : libellé + valeur */
.info-list{
    margin: 0 0 4px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.info-list li{
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px 14px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.info-list li:last-child{
    border-bottom: 0;
    padding-bottom: 0;
}
.info-list li:first-child{
    padding-top: 0;
}
.info-list li::before{
    display: none;
}
.info-list .k{
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 0.4px;
}
.info-list .v{
    color: #ffffff;
    overflow-wrap: anywhere;
}

.note{
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 2px solid var(--gold);
    border-radius: 0 8px 8px 0;
    background: rgba(203, 155, 81, 0.07);
    color: #ffffff;
    text-align: left;
}

main a{
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid rgba(130, 157, 241, 0.4);
    transition: color .2s ease, border-color .2s ease;
}
main a:hover,
main a:focus-visible{
    color: #aec2ff;
    border-color: #aec2ff;
}

/* ---------- Pied de page ---------- */
footer{
    padding: 26px 18px 34px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 12, 12, 0.6);
}
.back-home{
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    color: var(--gold-bright);
    font-size: 0.82rem;
    text-decoration: none;
    transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.back-home:hover,
.back-home:focus-visible{
    border-color: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(203, 155, 81, 0.3);
}
.copy{
    margin-top: 14px;
    font-size: 0.72rem;
    color: #6f6f6f;
}

:focus-visible{
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

@media only screen and (min-width: 600px){
    body{font-size: 1rem;}
    header h1{font-size: 1.9rem;}
    .title-mentions{font-size: 1.9rem;}
    .card{padding: 30px 30px 28px;}
    main h2{font-size: 1.15rem;}
    .info-list li{grid-template-columns: 215px 1fr; align-items: baseline;}
}

@media (prefers-reduced-motion: reduce){
    html{scroll-behavior: auto;}
    *{transition: none !important;}
}
