/* ==========================================================================
   psy-jura.ch, feuille de style unique
   Direction B2 « Cabinet sombre ». Le proof de reference fait foi pour la
   mise en page : 01_CLIENTS\Blaise-Christe\4_Livrables\Web\proofs\
   proof-B2-cabinet-sombre.html
   Aucun style inline, aucun handler inline : la CSP se passe d'unsafe-inline.
   ========================================================================== */

/* ==========================================================================
   Fontes auto-hebergees (Fontsource, sous-ensemble latin, woff2)
   Deux graisses par famille, statiques. Voir CLAUDE.md pour l'arbitrage
   statique / variable.
   ========================================================================== */
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/newsreader-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/newsreader-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Jetons
   Sombre chaud volontaire : palette creme inversee, pas un noir bleute.
   Contrastes verifies le 07.09.2026, le plus faible est --mute sur --card
   a 5.39:1.
   ========================================================================== */
:root {
    --bg: #12100E;
    --card: #1A1815;
    --band: #171512;
    --line: #2E2A25;
    --thead: #211E1A;

    --ink: #F2EEE6;
    --body: #BCB6AB;
    --mute: #948D81;

    --accent: #B5342F;      /* aplats et boutons : blanc dessus = 6.01:1 */
    --accent-txt: #E0736B;  /* texte et filets sur fond sombre = 6.18:1 */

    --f-disp: 'Newsreader', Georgia, 'Times New Roman', serif;
    --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Helvetica, Arial, sans-serif;

    --s1: 8px;
    --s2: 16px;
    --s3: 24px;
    --s4: 32px;
    --s5: 48px;
    --s6: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation clavier : anneau visible partout, y compris sur les aplats. */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-txt);
    outline-offset: 3px;
    border-radius: 1px;
}

.wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--s3);
}

/* ==========================================================================
   Bandeau
   ========================================================================== */
.nav {
    background: rgba(18, 16, 14, .94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    gap: var(--s3);
}

.nav__brand {
    font-family: var(--f-disp);
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.nav__links {
    display: flex;
    gap: var(--s3);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__links a {
    font-size: 14px;
    color: var(--body);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a:focus {
    color: var(--accent-txt);
    border-color: var(--accent-txt);
}

/* ==========================================================================
   En-tete
   ========================================================================== */
/* Padding en longhand : si une de ces classes se retrouve un jour sur le meme
   element que .wrap, elle ne doit pas ecraser son padding horizontal. */
.hero {
    padding-top: var(--s6);
    padding-bottom: var(--s5);
}

.hero--slim {
    padding-top: var(--s5);
    padding-bottom: var(--s4);
}

.hero__grid {
    display: grid;
    gap: var(--s4);
    align-items: center;
    text-align: center;
    justify-items: center;
}

/* Le logo blanc du client tient directement sur ce fond : aucun cartouche. */
.hero__mark {
    width: 120px;
}

h1 {
    font-family: var(--f-disp);
    font-weight: 500;
    font-size: clamp(30px, 6vw, 44px);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 var(--s3);
    letter-spacing: -.01em;
}

.hero__rule {
    width: 56px;
    height: 2px;
    background: var(--accent-txt);
    margin: 0 auto var(--s3);
}

.hero__sub {
    margin: 0;
    color: var(--body);
    font-size: 16px;
}

.hero__eyebrow {
    font-family: var(--f-disp);
    font-size: 18px;
    color: var(--body);
    margin: 0 0 var(--s2);
}

/* ==========================================================================
   Encarts
   ========================================================================== */
.grid2 {
    display: grid;
    gap: var(--s4);
    padding-bottom: var(--s5);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: var(--s4);
}

.card h2 {
    font-family: var(--f-disp);
    font-weight: 600;
    font-size: 22px;
    color: var(--ink);
    margin: 0 0 var(--s2);
    line-height: 1.25;
}

.card h2::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent-txt);
    margin-top: var(--s2);
}

.card p {
    margin: var(--s2) 0 0;
}

/* .note : la vraie note de bas de tableau, l'asterisque de tarifs.html.
   Attenue et en italique, comme dans le proof. */
.note {
    font-size: 14px;
    color: var(--mute);
    font-style: italic;
}

/* .charge : les deux lignes « A charge de… » des encarts. Le proof les traitait
   comme des notes ; c'est pourtant l'information la plus utile de la page pour
   un patient age ou une personne convoquee. Couleur de corps et romain, taille
   inchangee : 8.79:1 sur --card au lieu de 5.39:1. (Decide le 08.09.2026.) */
.charge {
    font-size: 14px;
    color: var(--body);
}

.btn {
    display: inline-block;
    margin-top: var(--s3);
    padding: 11px 24px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    border-radius: 2px;
    transition: background .18s ease, color .18s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-txt);
    color: #12100E;
}

/* Au focus, le bouton prend le rouge clair : l'anneau doit donc changer de
   couleur pour rester detachable du fond du bouton. */
.btn:focus-visible {
    outline-color: var(--ink);
}

/* ==========================================================================
   Bande contact
   ========================================================================== */
.band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-top: var(--s5);
    padding-bottom: var(--s5);
    background: var(--band);
}

.band h2,
.sec h2 {
    font-family: var(--f-disp);
    font-weight: 600;
    font-size: 26px;
    color: var(--ink);
    margin: 0 0 var(--s3);
}

.contact-grid {
    display: grid;
    gap: var(--s3);
}

.contact-grid dt {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 4px;
}

.contact-grid dd {
    margin: 0;
    font-size: 17px;
    color: var(--ink);
}

.contact-grid a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-txt);
}

.contact-grid a:hover {
    color: var(--accent-txt);
}

/* ==========================================================================
   Sections et tableau des tarifs
   ========================================================================== */
.sec {
    padding-top: var(--s5);
    padding-bottom: var(--s5);
}

.tbl-wrap {
    overflow-x: auto;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background: var(--card);
    border: 1px solid var(--line);
}

.tbl th {
    text-align: left;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--thead);
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tbl td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.tbl tr:last-child td {
    border-bottom: 0;
}

/* Le proof utilise ici la graisse 500 d'Inter. Ramene a 600 pour tenir la
   limite de deux graisses par famille : l'ecart 500/600 a 16px est invisible,
   une fonte de plus pese 24 Ko. */
.tbl td + td,
.tbl th + th {
    text-align: right;
    white-space: nowrap;
    color: var(--ink);
    font-weight: 600;
}

/* ==========================================================================
   Pages de texte : 404, mentions legales, politique de confidentialite
   ========================================================================== */
.prose {
    padding-top: var(--s5);
    padding-bottom: var(--s6);
}

.prose h2 {
    font-family: var(--f-disp);
    font-weight: 600;
    font-size: 22px;
    color: var(--ink);
    margin: var(--s5) 0 var(--s2);
    line-height: 1.25;
}

.prose h2:first-of-type {
    margin-top: var(--s4);
}

.prose p {
    margin: 0 0 var(--s2);
    max-width: 68ch;
}

.prose ul {
    margin: 0 0 var(--s2);
    padding-left: var(--s3);
    max-width: 68ch;
}

.prose li {
    margin-bottom: var(--s1);
}

.prose a,
.back a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-txt);
}

.prose a:hover,
.back a:hover {
    color: var(--accent-txt);
}

/* Lien de retour en fin de page de contenu. */
.back {
    margin-top: var(--s5);
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
footer {
    padding-top: var(--s4);
    padding-bottom: var(--s4);
    font-size: 14px;
    color: var(--mute);
    border-top: 1px solid var(--line);
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    justify-content: space-between;
}

footer a {
    color: var(--mute);
}

/* ==========================================================================
   Point de rupture unique
   ========================================================================== */
@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 150px 1fr;
        text-align: left;
        justify-items: start;
        gap: var(--s5);
    }

    .hero__mark {
        width: 150px;
    }

    .hero__rule {
        margin-left: 0;
    }

    .grid2 {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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