
/* Conseils publics : contenu éditorial et navigation. */

/* Public guides only. Application and homepage styles stay independent. */

.guide-page {
    background: #f8faff;
    color: #17233d;
    line-height: 1.65;
}

.guide-page * {
    box-sizing: border-box;
}

.guide-page a {
    color: #314fb5;
}

.guide-page .site-header {
    border-bottom: 1px solid #e3e9f5;
}

.guide-page .site-brand {
    color: #17233d;
}

.guide-page .site-actions .btn,.guide-page .guide-cta .btn {
    background: #3659c9;
    color: #fff;
}

.guide-page a:focus-visible,.guide-page button:focus-visible {
    outline: 3px solid #243c91;
    outline-offset: 4px;
}

.guide-skip {
    position: absolute;
    top: 8px;
    left: 8px;
    transform: translateY(-180%);
    padding: 10px 16px;
    background: #fff;
    z-index: 20;
}

.guide-skip:focus {
    transform: translateY(0);
}

.guide-main {
    width: min(100% - 40px,900px);
    margin: 0 auto;
    padding: 28px 0 64px;
}

.guide-breadcrumb {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .88rem;
    color: #596680;
    margin-bottom: 36px;
}

.guide-breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-heading {
    padding: 0 0 30px;
    border-bottom: 1px solid #dce4f2;
}

.guide-eyebrow {
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #3654a8;
    margin: 0 0 16px;
}

.guide-heading h1 {
    font-size: clamp(2rem,5vw,3.35rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    max-width: 850px;
    margin: 0 0 24px;
    overflow-wrap: break-word;
}

.guide-lead {
    font-size: 1.15rem;
    color: #475672;
    max-width: 760px;
    margin: 0;
}

.guide-content {
    max-width: 740px;
}

.guide-content section {
    margin-top: 34px;
}

.guide-content h2,.guide-cta h2,.guide-related h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: -.015em;
    margin: 0 0 12px;
}

.guide-content p {
    margin: 0 0 14px;
}

.guide-example {
    background: #edf2ff;
    border: 1px solid #cbd8f7;
    border-left: 4px solid #4d65ca;
    border-radius: 0 18px 18px 0;
    padding: 25px 28px;
    margin: 30px 0;
}

.guide-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #3d5298;
    margin-bottom: 12px;
}

.guide-example ul {
    padding-left: 20px;
    margin: 0 0 12px;
}

.guide-example li+li {
    margin-top: 8px;
}

.guide-example p:last-child {
    margin-bottom: 0;
}

.guide-cta {
    background: linear-gradient(120deg,#e6edff,#f0eaff);
    border: 1px solid #d9dff4;
    border-radius: 20px;
    padding: 28px 30px;
    margin-top: 38px;
}

.guide-cta p {
    margin: 0 0 16px;
    max-width: 620px;
}

.guide-cta .btn {
    margin: 0 18px 8px 0;
}

.guide-offer {
    display: inline-block;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 8px 0;
}

.guide-related {
    border-top: 1px solid #dce4f2;
    margin-top: 36px;
    padding-top: 26px;
}

.guide-related a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.guide-page footer {
    margin: 0;
    background: #fff;
    border-top: 1px solid #e3e9f5;
    padding: 26px 20px;
}

/* Adaptation de la mise en page : (max-width:700px). */

@media(max-width:700px) {
    .guide-page .site-header {
        height: auto;
        min-height: 74px;
        padding: 16px 20px;
        gap: 14px;
        flex-wrap: wrap;
    }

    .guide-page .site-nav {
        order: 3;
        width: 100%;
        gap: 22px;
        font-size: .87rem;
    }

    .guide-page .site-actions {
        gap: 10px;
        font-size: .82rem;
    }

    .guide-page .site-actions .btn {
        padding: 9px 12px;
        margin: 0;
    }

    .guide-page .site-brand {
        gap: 8px;
    }

    .guide-page .site-brand strong {
        font-size: 1.1rem;
    }

    .guide-page .logo {
        width: 32px;
        height: 32px;
    }

    .guide-main {
        padding-top: 20px;
    }

    .guide-breadcrumb {
        margin-bottom: 28px;
    }

    .guide-lead {
        font-size: 1.05rem;
    }

    .guide-example,.guide-cta {
        padding: 22px 20px;
    }

    .guide-heading h1 {
        max-width: 100%;
    }

    .guide-content h2 {
        font-size: 1.25rem;
    }

    .guide-page footer .legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

/* Adaptation de la mise en page : (max-width:360px). */

@media(max-width:360px) {
    .guide-page .site-actions>a:first-child {
        display: none;
    }
}
