/* Guides Notely — styles communs */
.guide-body {
    background: var(--g50);
}

.guide-body main {
    overflow: hidden;
}

.guide-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 52px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 14%, rgba(245, 158, 11, .16), transparent 29rem),
        linear-gradient(145deg, #0f172a 0%, #172033 100%);
}

.guide-hero::after {
    content: "";
    position: absolute;
    inset: auto -12rem -18rem auto;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(255, 255, 255, .015);
    pointer-events: none;
}

.guide-hero .c {
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--g400);
    font-size: .78rem;
}

.breadcrumbs a {
    color: var(--g300);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumbs a:hover {
    color: var(--orange);
}

.guide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 6px 12px;
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: 999px;
    background: rgba(245, 158, 11, .1);
    color: #fbbf24;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.guide-title {
    max-width: 880px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 5vw, 3.55rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.guide-deck {
    max-width: 790px;
    color: var(--g300);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
    margin-top: 26px;
    color: var(--g400);
    font-size: .8rem;
}

.guide-author {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    font-weight: 700;
}

.guide-author img {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(245, 158, 11, .65);
    border-radius: 50%;
    object-fit: cover;
}

.guide-shell {
    display: grid;
    grid-template-columns: minmax(0, 760px) 260px;
    gap: 58px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 54px 24px 76px;
}

.guide-article {
    min-width: 0;
}

.guide-toc {
    position: sticky;
    top: 84px;
    padding: 22px;
    border: 1px solid var(--g200);
    border-radius: var(--r);
    background: #fff;
    box-shadow: var(--s-sm);
}

.guide-toc strong {
    display: block;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.guide-toc ol {
    margin: 0;
    padding-left: 19px;
}

.guide-toc li {
    margin: 8px 0;
    color: var(--g500);
    font-size: .78rem;
    line-height: 1.5;
}

.guide-toc a:hover {
    color: var(--orange-d);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quick-answer {
    margin-bottom: 38px;
    padding: 25px 26px;
    border: 1px solid #fde68a;
    border-left: 5px solid var(--orange);
    border-radius: 0 var(--r) var(--r) 0;
    background: var(--orange-xl);
    color: var(--navy2);
}

.quick-answer strong {
    display: block;
    margin-bottom: 7px;
    color: var(--orange-d);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.quick-answer p {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.75;
}

.guide-section {
    padding: 0;
    margin: 0 0 46px;
    scroll-margin-top: 88px;
}

.guide-section h2 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: clamp(1.42rem, 3vw, 1.9rem);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.guide-section h3 {
    margin: 25px 0 9px;
    color: var(--navy2);
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.4;
}

.guide-section p {
    margin-bottom: 16px;
    color: var(--g600);
    font-size: .98rem;
    line-height: 1.83;
}

.guide-section ul,
.guide-section ol {
    margin: 0 0 20px 21px;
    color: var(--g600);
}

.guide-section li {
    margin: 9px 0;
    padding-left: 4px;
    line-height: 1.7;
}

.guide-section a:not(.btn):not(.source-link) {
    color: #9a5a02;
    text-decoration: underline;
    text-decoration-color: #fcd34d;
    text-underline-offset: 3px;
}

.source-link {
    display: inline;
    color: #075985;
    font-size: .86em;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #7dd3fc;
    text-underline-offset: 3px;
}

.source-link::after {
    content: " ↗";
    font-size: .78em;
}

.info-box,
.warning-box,
.method-box {
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: var(--r);
}

.info-box {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
}

.warning-box {
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.method-box {
    border: 1px solid var(--g200);
    background: #fff;
}

.info-box strong,
.warning-box strong,
.method-box strong {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
}

.info-box p:last-child,
.warning-box p:last-child,
.method-box p:last-child {
    margin-bottom: 0;
}

.formula {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--g200);
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: .94rem;
    font-weight: 750;
    line-height: 1.6;
    text-align: center;
}

.guide-table-wrap {
    width: 100%;
    margin: 24px 0 28px;
    overflow-x: auto;
    border: 1px solid var(--g200);
    border-radius: var(--r);
    background: #fff;
    box-shadow: var(--s-sm);
}

.guide-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: .86rem;
}

.guide-table caption {
    padding: 16px 18px;
    color: var(--navy);
    font-weight: 800;
    text-align: left;
}

.guide-table th,
.guide-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--g200);
    color: var(--g600);
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
}

.guide-table th {
    background: var(--g50);
    color: var(--navy);
    font-weight: 750;
}

.numbered-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 26px;
}

.numbered-card {
    padding: 20px;
    border: 1px solid var(--g200);
    border-radius: var(--r);
    background: #fff;
}

.numbered-card span {
    display: grid;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 9px;
    background: var(--orange-l);
    color: var(--orange-d);
    font-size: .82rem;
    font-weight: 900;
}

.numbered-card h3 {
    margin: 0 0 7px;
    font-size: .96rem;
}

.numbered-card p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.65;
}

.inline-cta {
    margin: 42px 0;
    padding: 27px;
    border-radius: var(--r-lg);
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(245, 158, 11, .18), transparent 18rem),
        var(--navy);
}

.inline-cta h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.3rem;
}

.inline-cta p {
    max-width: 590px;
    margin-bottom: 17px;
    color: var(--g300);
    font-size: .91rem;
}

.calculator {
    margin: 28px 0 34px;
    padding: 26px;
    border: 1px solid var(--g200);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--s-md);
}

.calculator h3 {
    margin: 0 0 7px;
    font-size: 1.22rem;
}

.calculator > p {
    margin-bottom: 22px;
    color: var(--g500);
    font-size: .88rem;
}

.calc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy2);
    font-size: .78rem;
    font-weight: 750;
}

.field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--g300);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 16px;
}

.field input:focus {
    outline: 3px solid rgba(245, 158, 11, .2);
    border-color: var(--orange);
}

.field small {
    display: block;
    margin-top: 5px;
    color: var(--g500);
    font-size: .7rem;
    line-height: 1.4;
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.calc-result {
    padding: 15px;
    border-radius: 10px;
    background: var(--g50);
    border: 1px solid var(--g200);
}

.calc-result small {
    display: block;
    margin-bottom: 4px;
    color: var(--g500);
    font-size: .7rem;
}

.calc-result output {
    color: var(--navy);
    font-size: 1.12rem;
    font-weight: 900;
}

.calc-result.highlight {
    background: var(--orange-xl);
    border-color: #fde68a;
}

.calc-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 13px;
}

.calc-reset {
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--g300);
    border-radius: 8px;
    background: #fff;
    color: var(--g600);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.calc-reset:hover {
    border-color: var(--orange);
    color: var(--orange-d);
}

.faq-section {
    padding: 64px 0;
    background: #fff;
    border-top: 1px solid var(--g200);
    border-bottom: 1px solid var(--g200);
}

.faq-section .section-head,
.sources-section .section-head,
.related-section .section-head {
    max-width: 760px;
    margin-bottom: 26px;
}

.section-head .eyebrow {
    margin-bottom: 7px;
    color: var(--orange-d);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-head h2 {
    color: var(--navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.25;
}

.guide-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.guide-faq details {
    border: 1px solid var(--g200);
    border-radius: 12px;
    background: var(--g50);
}

.guide-faq details[open] {
    border-color: #fcd34d;
    background: #fff;
}

.guide-faq summary {
    position: relative;
    padding: 17px 44px 17px 18px;
    color: var(--navy);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.guide-faq summary::-webkit-details-marker {
    display: none;
}

.guide-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--orange-d);
    font-size: 1.2rem;
    transform: translateY(-50%);
}

.guide-faq details[open] summary::after {
    content: "−";
}

.guide-faq details p {
    padding: 0 18px 18px;
    color: var(--g600);
    font-size: .84rem;
    line-height: 1.75;
}

.sources-section {
    padding: 64px 0;
    background: var(--g50);
}

.source-list {
    display: grid;
    gap: 9px;
    max-width: 850px;
    list-style: none;
}

.source-list li {
    padding: 14px 16px;
    border: 1px solid var(--g200);
    border-radius: 10px;
    background: #fff;
    color: var(--g600);
    font-size: .82rem;
    line-height: 1.6;
}

.source-list a {
    color: #075985;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.related-section {
    padding: 64px 0;
    background: #fff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.related-card {
    display: flex;
    min-height: 180px;
    padding: 22px;
    flex-direction: column;
    border: 1px solid var(--g200);
    border-radius: var(--r);
    background: var(--g50);
    transition: .2s ease;
}

.related-card:hover {
    border-color: var(--orange);
    background: #fff;
    box-shadow: var(--s-md);
    transform: translateY(-2px);
}

.related-card small {
    margin-bottom: 9px;
    color: var(--orange-d);
    font-weight: 750;
}

.related-card strong {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.45;
}

.related-card span {
    margin-top: auto;
    padding-top: 18px;
    color: var(--g500);
    font-size: .79rem;
}

.audit-cta {
    padding: 68px 0;
    color: #fff;
    background:
        radial-gradient(circle at 14% 0, rgba(245, 158, 11, .22), transparent 24rem),
        var(--navy);
}

.audit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 54px;
    align-items: center;
}

.audit-copy h2 {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    line-height: 1.2;
}

.audit-copy p {
    max-width: 570px;
    color: var(--g300);
    line-height: 1.75;
}

.audit-points {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    color: var(--g300);
    font-size: .86rem;
}

.audit-points span::before {
    content: "✓";
    margin-right: 8px;
    color: var(--green);
    font-weight: 900;
}

.guide-form {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .07);
}

.guide-form .form-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.guide-form label:not(.consent-label) {
    display: block;
    margin-bottom: 5px;
    color: var(--g300);
    font-size: .73rem;
    font-weight: 700;
}

.guide-form input[type="text"],
.guide-form input[type="tel"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 16px;
}

.guide-form input:focus {
    outline: 3px solid rgba(245, 158, 11, .3);
    border-color: var(--orange);
}

.consent-label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: var(--g300);
    font-size: .72rem;
    line-height: 1.5;
}

.consent-label input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: var(--orange);
}

.consent-label a {
    text-decoration: underline;
}

.guide-form button {
    min-height: 50px;
    border: 0;
    border-radius: 9px;
    background: var(--orange);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.guide-form button:hover {
    background: var(--orange-d);
}

.form-note {
    color: var(--g400);
    font-size: .7rem;
    line-height: 1.45;
    text-align: center;
}

.cookie-bar {
    position: fixed;
    z-index: 2000;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 14px 20px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .2);
}

.cookie-bar.show {
    display: block;
}

.cookie-in {
    display: flex;
    max-width: 1120px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.cookie-in p {
    max-width: 680px;
    color: var(--g300);
    font-size: .78rem;
    line-height: 1.5;
}

.cookie-btns {
    display: flex;
    gap: 8px;
}

.cookie-btns button {
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
}

.ck-yes {
    background: var(--orange);
}

.ck-no {
    background: rgba(255, 255, 255, .08);
}

@media (max-width: 900px) {
    .guide-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .guide-toc {
        position: static;
        grid-row: 1;
    }

    .guide-article {
        grid-row: 2;
    }

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

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

@media (max-width: 640px) {
    .guide-hero {
        padding: 40px 0 42px;
    }

    .guide-shell {
        padding: 34px 18px 55px;
    }

    .quick-answer,
    .calculator,
    .inline-cta {
        padding: 20px;
    }

    .numbered-grid,
    .calc-fields,
    .calc-results,
    .guide-faq {
        grid-template-columns: 1fr;
    }

    .faq-section,
    .sources-section,
    .related-section,
    .audit-cta {
        padding: 48px 0;
    }

    .cookie-btns {
        width: 100%;
    }

    .cookie-btns button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Sur ordinateur, conserver les appels à l'action visibles pendant
   le choix de consentement. */
@media (min-width: 769px) {
    .cookie-bar {
        right: auto;
        bottom: 16px;
        left: 16px;
        width: min(560px, calc(100% - 32px));
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 14px;
        box-shadow: 0 14px 44px rgba(2, 6, 23, .28);
    }

    .cookie-in {
        max-width: none;
        margin: 0;
    }

    .cookie-in p {
        max-width: 330px;
    }
}
