/* Kimoun — fiches d'aide statiques (support.kimoun.com/help/) */

:root {
    --blue: #0e4d6b;
    --blue-dark: #0a3a52;
    --orange: #d43900;
    --ink: #1d3540;
    --muted: #5b7482;
    --paper: #f6f9fa;
    --line: #dde7ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(14, 77, 107, .07), transparent 60%),
        radial-gradient(700px 400px at -10% 30%, rgba(212, 57, 0, .05), transparent 60%),
        var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: "Fredoka", "Nunito Sans", sans-serif;
    color: var(--blue);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 34px;
    margin: 8px 0 4px;
}

h2 {
    font-size: 22px;
    margin: 36px 0 8px;
}

a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* ---- En-tête / pied ---- */

.hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(6px);
}

.hd img {
    height: 30px;
    display: block;
}

/* Lock-up de marque : logo Kimoun + « Support » (texte, orange charte).
   align-items:baseline → la base du logo se cale sur la ligne de base de
   « Support » (le point orange du logo dépasse en haut, comme attendu). */
.hd a.hd-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
}

.hd .hd-support {
    font-family: Fredoka, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    color: #d43900;
}

/* Le sélecteur de langue réutilise .kp-langswitch (bandeau promo) qui a une
   marge basse : on la neutralise dans le header pour aligner logo / Support /
   FR·EN sur la même médiane. */
.hd .kp-langswitch {
    margin: 0;
    line-height: 1;
}

.hd nav a {
    color: var(--blue);
    font-size: 15px;
    margin-left: 18px;
}

main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    flex: 1;
}

.crumb {
    font-size: 14px;
    margin: 0 0 18px;
}

.crumb a {
    color: var(--muted);
    font-weight: 700;
}

.lead {
    font-size: 19px;
    color: var(--muted);
    margin: 0 0 28px;
}

footer {
    border-top: 1px solid var(--line);
    padding: 20px 24px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, .6);
}

footer .ft-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin-bottom: 10px;
}

footer .ft-links a {
    color: var(--blue);
    font-weight: 600;
}

footer .ft-links a:hover,
footer .ft-links a:focus {
    color: var(--orange);
}

footer .ft-meta {
    margin: 0;
    color: var(--muted);
}

/* Liens légaux (Mentions légales · Confidentialité · CGV) vers kimoun.com */
footer .ft-legal {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
}

footer .ft-legal a {
    color: var(--muted);
}

footer .ft-legal a:hover,
footer .ft-legal a:focus {
    color: var(--blue);
}

/* ---- Sommaire (index) ---- */

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.cards a {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    border-radius: 12px;
    padding: 18px 20px;
    color: inherit;
    font-weight: 400;
    transition: transform .15s ease, box-shadow .15s ease;
}

.cards a:hover,
.cards a:focus {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 77, 107, .12);
}

.cards strong {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 19px;
    color: var(--blue);
    margin-bottom: 4px;
}

.cards span {
    color: var(--muted);
    font-size: 15px;
}

/* ---- Étapes numérotées ---- */

ol.steps {
    list-style: none;
    counter-reset: step;
    margin: 24px 0;
    padding: 0;
}

ol.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 22px 52px;
}

ol.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

ol.steps > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 40px;
    bottom: 4px;
    width: 2px;
    background: var(--line);
}

ol.steps b {
    color: var(--blue);
}

/* ---- Tableau de paramètres ---- */

table.params {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    font-size: 16px;
}

table.params th,
table.params td {
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}

table.params th {
    background: var(--blue);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-weight: 500;
}

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

table.params code {
    background: #eef4f7;
    color: var(--blue-dark);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 15px;
}

/* ---- Encadrés ---- */

.callout {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 16px;
}

.callout.warn {
    border-left-color: var(--orange);
}

.callout b:first-child {
    color: var(--blue);
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 27px;
    }

    .hd nav a {
        margin-left: 10px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cards a {
        transition: none;
    }
}

/* ---- FAQ (GEO / citabilité IA) ---- */

.faq {
    margin-top: 44px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.faq > h2 {
    margin-bottom: 8px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-q {
    font-family: "Fredoka", "Nunito Sans", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--blue);
    margin: 0 0 8px;
}

.faq-a {
    margin: 0;
    color: var(--ink);
}

.faq-a a {
    font-weight: 700;
}

/* ---- Sélecteur de langue (en-tête des fiches) ---- */

.hd .lang-switch {
    margin-left: 18px;
    font-size: 15px;
    color: var(--muted);
}

.hd .lang-switch b {
    color: var(--orange);
}

.hd .lang-switch a {
    color: var(--blue);
    font-weight: 600;
}
