/* ==========================================================================
   Charte graphique Nicolas Fassin — Kiné du sport (novembre 2026)
   Chargée en dernier : elle prend le pas sur theme-koya.css et kinebw.css.
   Référence : couleurs et polices de la carte de visite.
   ========================================================================== */

:root {
    --violet-500: #8366a3;   /* bandeau du nom, aplats, boutons */
    --violet-600: #7b5c9e;   /* titres et liens sur crème */
    --violet-700: #6a4c8c;   /* survols */
    --prune-900: #3c2960;    /* fonds sombres, pied de page */
    --lavande-300: #b1a3da;
    --or-500: #c0a04c;       /* accents décoratifs uniquement */
    --or-clair: #e8cb72;     /* or lisible sur prune */
    --creme-50: #faf7f2;     /* fond principal */
    --creme-100: #f5f0e7;    /* sections alternées */
    --encre: #1f1a26;        /* texte courant */
    --encre-douce: #5e5866;
    --filet: #e4dcd0;

    --font-display: Anton, Impact, "Arial Narrow", sans-serif;
    --font-titre: "League Spartan", Futura, sans-serif;
    --font-texte: Jost, Futura, "Century Gothic", sans-serif;
}

/* ---------- Base ---------- */
body,
.main-container {
    background: var(--creme-50);
}
body,
p, p.lead, li, span, td, th, label, input, textarea, select, button,
.post-meta, .widget, blockquote {
    font-family: var(--font-texte);
}
body {
    color: var(--encre);
    font-size: 17px;
    line-height: 1.6;
}
p, p.lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--encre);
}
section {
    background-color: var(--creme-50);
}
.bg-secondary {
    background: var(--creme-100);
}
hr {
    border-color: var(--filet);
}

/* ---------- Titres ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-titre);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--violet-600);
}
h5, h6 {
    font-family: var(--font-texte);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--violet-600);
}
h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font-size: 20px; line-height: 1.35; }

/* Grandes accroches (en-tête et bandeau violet) en Anton, comme le nom sur la carte */
.image-bg h1,
section.bg-primary h1,
footer h1 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1;
}

/* ---------- Liens ---------- */
a {
    color: var(--violet-600);
    font-weight: 500;
}
a:hover,
a:focus {
    color: var(--violet-700);
}
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--violet-700);
    outline-offset: 2px;
}

/* ---------- Barre d'action en haut ---------- */
.nf-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    background: var(--creme-50);
    border-bottom: 1px solid var(--filet);
}
.nf-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nf-topbar-brand img {
    width: 34px;
    height: auto;
}
.nf-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nf-topbar-account,
.nf-topbar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nf-topbar-account {
    border-radius: 9999px;
    border: 2px solid var(--violet-500);
    color: var(--violet-600);
}
.nf-topbar-account svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.nf-topbar-account:hover {
    background: var(--violet-500);
    color: var(--creme-50);
}
.nf-topbar-menu {
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
}
.nf-topbar-menu span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--violet-600);
    transition: transform 0.2s, opacity 0.2s;
}
.nf-topbar-menu:hover {
    background: var(--creme-100);
}
.nf-topbar-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nf-topbar-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nf-topbar-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nf-topbar-account:focus-visible,
.nf-topbar-menu:focus-visible {
    outline: 2px solid var(--violet-700);
    outline-offset: 2px;
}
.nf-menu {
    position: absolute;
    top: 64px;
    right: 0;
    width: 320px;
    max-width: 100%;
    background: var(--creme-50);
    border: 1px solid var(--filet);
    border-top: 0;
    box-shadow: 0 8px 24px rgba(60, 41, 96, 0.12);
}
.nf-menu[hidden] {
    display: none;
}
.nf-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.nf-menu li {
    margin: 0;
}
.nf-menu a {
    display: block;
    padding: 14px 24px;
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--violet-600);
    text-decoration: none;
}
.nf-menu a:hover {
    background: var(--creme-100);
    color: var(--violet-700);
}

/* ---------- En-tête (hero) ---------- */
.overlay:before {
    background: var(--prune-900);
    opacity: 0.35;
}
/* Le nom posé dans le bandeau violet de la carte */
.image-bg .container h1:first-child {
    display: inline-block;
    background: var(--violet-500);
    color: var(--creme-50);
    font-size: 64px;
    padding: 12px 24px 10px;
    margin-left: -24px;
    text-shadow: none;
}
/* Accueil : photo de couverture moins haute */
.image-bg.hero-accueil {
    padding-top: 100px;
    padding-bottom: 72px;
}
@media (max-width: 767px) {
    .image-bg.hero-accueil {
        padding-top: 48px;
        padding-bottom: 40px;
    }
}
/* Accueil : nom, métiers et boutons en grand */
.image-bg .hero-text h1:first-child {
    font-size: clamp(56px, 8vw, 104px);
    white-space: nowrap;
    padding: 18px 36px 14px;
    margin-left: -36px;
}
.image-bg .hero-text h5 {
    font-size: 22px;
    line-height: 1.45;
    max-width: 680px;
    margin: 24px 0 36px;
}
.hero-text .hero-actions {
    gap: 16px;
}
.hero-text .hero-actions .btn {
    font-size: 18px;
    padding: 20px 38px 17px;
}
.image-bg h1::after {
    display: none;
}
/* Métiers en capitales, comme sous le nom sur la carte */
.image-bg h5,
.image-bg h4 {
    font-family: var(--font-texte);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--creme-50);
    margin-top: 16px;
    text-shadow: 0 1px 6px rgba(60, 41, 96, 0.55);
}
.image-bg h3 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: none;
    font-size: 44px;
    color: var(--creme-50);
}

/* ---------- Bandeau violet (punchline) ---------- */
.bg-primary {
    background: var(--violet-500) !important;
}
/* Section riche en texte : violet-600, pour un texte crème lisible (5,1:1) */
section.bg-primary {
    background: var(--violet-600) !important;
}
section.bg-primary h1 {
    font-size: 48px;
    color: var(--creme-50);
}
section.bg-primary h1::after {
    background: var(--or-500);
}
section.bg-primary p,
section.bg-primary li,
section.bg-primary span {
    color: var(--creme-50);
}
section.bg-primary a {
    color: var(--creme-50);
    text-decoration: underline;
}

/* ---------- Boutons : « PRENDRE RDV » ---------- */
.btn,
.main-container .btn {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    height: auto;
    line-height: 1;
    padding: 15px 28px 13px;
    border-radius: 4px;
    border: 2px solid var(--violet-500);
    background: var(--violet-500);
    color: var(--creme-50);
}
.btn:hover,
.main-container .btn:hover {
    background: var(--violet-700);
    border-color: var(--violet-700);
    color: var(--creme-50);
}
.bg-primary .btn {
    background: var(--creme-50);
    border-color: var(--creme-50);
    color: var(--prune-900);
}
.bg-primary .btn:hover {
    background: var(--prune-900);
    border-color: var(--prune-900);
    color: var(--creme-50);
}

/* ---------- Boutons de l'en-tête : rendez-vous + contact ---------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-actions .btn {
    margin: 0;
    min-width: 0;
}
.image-bg .hero-btn-contact {
    background: transparent;
    border-color: var(--creme-50);
    color: var(--creme-50);
}
.image-bg .hero-btn-contact:hover {
    background: var(--creme-50);
    border-color: var(--creme-50);
    color: var(--prune-900);
}
/* Bandeau rendez-vous collé sous la photo, visible dès l'ouverture */
section.bandeau-rdv {
    padding: 14px 0;
    border-bottom: 1px solid var(--filet);
}
.bandeau-rdv-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.bandeau-rdv-row::before,
.bandeau-rdv-row::after {
    display: none;
}
.bandeau-rdv-note {
    text-align: right;
}
.bandeau-rdv iframe {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}
.rdv-note {
    margin: 0;
    font-size: 18px;
    color: var(--encre);
}
.rdv-note strong {
    color: var(--violet-600);
    font-weight: 600;
}

/* ---------- Bouton de prise de rendez-vous Doctoranytime ---------- */
.doctoranytime-widget .dat-button {
    display: inline-block;
    margin-top: 12px;
    padding: 15px 28px 13px;
    border-radius: 4px;
    background: var(--violet-500);
    border: 2px solid var(--violet-500);
    text-decoration: none;
}
.doctoranytime-widget .dat-button:hover {
    background: var(--violet-700);
    border-color: var(--violet-700);
}
.doctoranytime-widget .dat-button__spinner {
    display: none;
}
.doctoranytime-widget .dat-button__text {
    font-family: var(--font-titre);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--creme-50);
}
.doctoranytime-widget p {
    margin: 8px 0 0;
}

/* ---------- Blocs image + texte de l'accueil ---------- */
.image-square .content h1,
.image-square .content h2,
.image-square .content h3 {
    color: var(--violet-600);
}

/* ---------- Blog ---------- */
.post-title h1 {
    font-family: var(--font-titre);
    font-size: 38px;
    color: var(--violet-600);
}
.post-meta,
.post-meta span {
    color: var(--encre-douce);
    font-size: 14px;
}
.post-snippet img {
    border-radius: 8px;
}
.widget .title {
    font-family: var(--font-texte);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--violet-600);
}
blockquote {
    background: var(--creme-100);
    border-left: 0;
    border-top: 3px solid var(--violet-500);
    padding: 20px 24px;
    font-style: normal;
    color: var(--encre);
}

/* ---------- Pied de page prune ---------- */
footer.bg-primary {
    background: var(--prune-900) !important;
}
footer.bg-primary h1 {
    color: var(--creme-50);
    font-size: 48px;
    text-transform: none;
}
footer.bg-primary h1::after {
    background: var(--or-500);
}
footer.bg-primary h4,
footer.bg-primary p,
footer.bg-primary p.lead {
    color: var(--creme-50);
    font-family: var(--font-texte);
    font-weight: 400;
}
footer.bg-primary p.fade-1-4 {
    color: var(--or-clair);
    font-family: var(--font-texte);
}
footer.bg-primary .social-list .icon {
    color: var(--or-clair);
}
footer.bg-primary .social-list a:hover .icon {
    color: var(--creme-50);
}
.footer-logo {
    display: inline-block;
    width: 72px;
    height: auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    h1 { font-size: 32px; }
    .image-bg .container h1:first-child {
        font-size: 44px;
        margin-left: 0;
        padding: 10px 16px 8px;
    }
    section.bg-primary h1,
    footer.bg-primary h1 {
        font-size: 38px;
    }
    .nf-topbar {
        padding: 0 16px;
    }
    .nf-menu {
        width: 100%;
    }
    .hero-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }
    .image-bg .hero-text h1:first-child {
        font-size: clamp(36px, 12vw, 46px);
        padding: 10px 16px 8px;
        margin-left: 0;
        white-space: nowrap;
    }
    .image-bg .hero-text h5 {
        font-size: 18px;
        margin: 18px 0 28px;
    }
    .hero-text .hero-actions .btn {
        font-size: 17px;
        padding: 18px 20px 15px;
    }
    .rdv-note {
        font-size: 16px;
        text-align: center;
        margin-bottom: 4px;
    }
    .bandeau-rdv-note {
        text-align: center;
    }
}


/* ==========================================================================
   Pages « Service » et cartes « Mes accompagnements »
   ========================================================================== */
.nf-section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.1;
    color: var(--violet-600);
    margin-bottom: 32px;
}
section.nf-services {
    padding-top: 72px;
    padding-bottom: 72px;
}
.nf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.nf-service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--filet);
    border-top: 4px solid var(--violet-500);
    border-radius: 6px;
    color: var(--encre);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.nf-service-card:hover,
.nf-service-card:focus-visible {
    border-top-color: var(--or-500);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(60, 41, 96, .10);
    color: var(--encre);
    text-decoration: none;
}
.nf-service-icon {
    font-size: 30px;
    color: var(--violet-500);
}
.nf-service-title {
    font-family: var(--font-titre);
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
    color: var(--prune-900);
}
.nf-service-summary {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--encre-douce);
    flex: 1;
}
.nf-service-more {
    font-weight: 600;
    color: var(--violet-600);
}
.nf-service-card:hover .nf-service-more { color: var(--violet-700); }

/* En-tête d'une page service */
section.nf-service-hero {
    background: var(--prune-900);
    padding-top: 140px;
    padding-bottom: 64px;
}
.nf-service-eyebrow {
    font-family: var(--font-texte);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 14px;
    color: var(--or-clair);
    margin-bottom: 12px;
}
.nf-service-eyebrow .icon { margin-right: 6px; }
h1.nf-service-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 56px;
    line-height: 1.05;
    color: var(--creme-50);
    margin-bottom: 18px;
}
h1.nf-service-h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 16px;
    background: var(--or-500);
}
p.nf-service-intro {
    font-size: 20px;
    line-height: 1.55;
    color: var(--creme-50);
    max-width: 640px;
}
.nf-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.nf-service-actions .btn { margin: 0; }
.btn.nf-btn-or {
    background: var(--or-500);
    border-color: var(--or-500);
    color: var(--prune-900);
}
.btn.nf-btn-or:hover {
    background: var(--or-clair);
    border-color: var(--or-clair);
    color: var(--prune-900);
}
.btn.nf-btn-ligne {
    background: transparent;
    border-color: var(--creme-50);
    color: var(--creme-50);
}
.btn.nf-btn-ligne:hover {
    background: var(--creme-50);
    color: var(--prune-900);
}
section.nf-service-photo {
    padding: 0;
    background: var(--creme-50);
}
section.nf-service-photo img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -1px;
}
section.nf-service-body {
    padding-top: 64px;
    padding-bottom: 64px;
}
.nf-prose { max-width: 720px; }
.nf-prose h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 14px;
}
.nf-prose h2:first-child { margin-top: 0; }
.nf-prose h3 {
    font-size: 21px;
    margin-top: 28px;
    margin-bottom: 10px;
}
.nf-prose ul, .nf-prose ol {
    padding-left: 22px;
    margin-bottom: 20px;
}
.nf-prose li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 6px;
}
.nf-prose ul li::marker { color: var(--or-500); }
section.nf-service-cta {
    padding-top: 56px;
    padding-bottom: 56px;
}
h2.nf-cta-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    color: var(--creme-50);
}

@media (max-width: 991px) {
    .nf-services-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    section.nf-service-hero { padding-top: 110px; padding-bottom: 48px; }
    h1.nf-service-h1 { font-size: 40px; }
    p.nf-service-intro { font-size: 18px; }
    .nf-section-title { font-size: 30px; }
    section.nf-services { padding-top: 56px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .nf-service-card { transition: none; }
    .nf-service-card:hover { transform: none; }
}
.nf-service-eyebrow .icon {
    font-size: 14px;
    color: inherit;
    display: inline;
    line-height: inherit;
}
.nf-prose ul { list-style: disc; }
.nf-prose ol { list-style: decimal; }
.nf-prose ul li, .nf-prose ol li { display: list-item; }
.nf-service-cta .btn,
.nf-service-actions .btn,
.nf-service-card,
.nf-service-card * { text-decoration: none; }

ul.nf-lieux {
    list-style: none;
    padding-left: 0;
    margin: 0 0 24px;
}
ul.nf-lieux li {
    color: var(--creme-50);
    margin-bottom: 6px;
}
ul.nf-lieux strong { color: var(--or-clair); }

/* ---------- Blog : même langage visuel que les pages service ---------- */
.nf-service-eyebrow a { color: var(--or-clair); text-decoration: none; }
.nf-service-eyebrow a:hover { color: var(--creme-50); }
p.nf-article-byline {
    color: var(--lavande-300);
    font-size: 16px;
    margin: 0;
}
section.nf-blog-list {
    padding-top: 56px;
    padding-bottom: 72px;
}
section.nf-blog-autres {
    padding-top: 0;
}
.nf-blog-filtres {
    background: transparent;
    position: static;
    width: auto;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.nf-blog-filtres a {
    padding: 6px 16px;
    border: 1px solid var(--violet-500);
    border-radius: 999px;
    color: var(--violet-600);
    font-size: 15px;
    text-decoration: none;
}
.nf-blog-filtres a:hover { background: var(--creme-100); }
.nf-blog-filtres a.actif {
    background: var(--violet-500);
    color: #fff;
}
.nf-article-card { padding-top: 0; overflow: hidden; }
.nf-article-img {
    display: block;
    width: calc(100% + 48px);
    max-width: none;
    height: auto;
    margin: 0 -24px 4px;
}
.nf-article-card:not(:has(.nf-article-img)) { padding-top: 28px; }
.nf-article-meta {
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--encre-douce);
}
.nf-prose p {
    font-size: 17px;
    line-height: 1.7;
}
.nf-prose-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 6px;
}
.nf-blog-vide { color: var(--encre-douce); }
