/* ======================================================================
   aide.css — Warm styling for the user Help / guide page.
   Loaded AFTER main.css so its rules win on equal specificity.
   Scoped under .aide-page. Mirrors a-propos.css for masthead/nav/section
   consistency, plus a table of contents.
   ====================================================================== */

.aide-page {
    --warm-cream:       #FDFAF6;
    --warm-cream-soft:  #F5EDE0;
    --warm-tan:         #D9B98C;
    --warm-terracotta:  #C77B5C;
    --warm-brown:       #5A3E2B;
    --warm-text:        #3A2E27;
    --warm-muted:       #7B6A5C;
    --warm-line:        rgba(90, 62, 43, 0.22);
}

body.aide-page {
    background-color: var(--warm-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    color: var(--warm-text);
}

.aide-page .page {
    max-width: 1120px;
    padding: 12px 28px 0;
}

/* ── Masthead (identical to the other content pages) ─────────────────── */
.aide-page .masthead {
    position: relative;
    padding-top: 12px;
}

.aide-page .masthead__title {
    clear: both;
    width: 100%;
    text-align: center;
    font-family: var(--font-script);
    font-style: normal;
    font-weight: 400;
    font-size: 68px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--warm-brown);
    margin-top: 28px;
    margin-bottom: 6px;
}

.aide-page .masthead__sub-title-part1 {
    clear: both;
    width: 100%;
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 12.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-muted);
    margin-top: 10px;
}

.aide-page .masthead__sub-title-part2 {
    clear: both;
    width: 100%;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: 0.02em;
    color: var(--warm-brown);
    margin-top: 8px;
    margin-bottom: 0;
}

.aide-page .masthead__sub-title-part2::after {
    content: '';
    display: block;
    width: 88px;
    height: 1px;
    background: var(--warm-tan);
    margin: 22px auto 0;
}

.aide-page .masthead__disconnect-second {
    position: absolute;
    top: 10px;
    right: 0;
    margin: 0;
    padding: 6px 16px;
    width: auto;
    min-width: 110px;
    background: transparent;
    border: 1px solid var(--warm-line);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-brown);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: block;
}

.aide-page .masthead__disconnect-second:hover {
    background: var(--warm-terracotta);
    border-color: var(--warm-terracotta);
    color: #fff;
}

.aide-page .c-nav-main {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 12.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: var(--warm-text);
    margin: 26px 0 18px;
    padding: 16px 0;
    border-top: 1px solid var(--warm-line);
    border-bottom: 1px solid var(--warm-line);
    cursor: default;
}

.aide-page .c-nav-main__item {
    margin: 0 2px;
}

.aide-page .c-nav-main__link {
    font-size: 12.5px;
    padding: 6px 14px;
    color: var(--warm-text);
    transition: color 0.2s ease;
}

.aide-page .c-nav-main__link:hover {
    color: var(--warm-terracotta);
}

.aide-page .c-nav-main__link[aria-current="page"] {
    color: var(--warm-terracotta);
    border-bottom: 1px solid var(--warm-terracotta);
    cursor: default;
}

/* ── Content frame ───────────────────────────────────────────────────── */
.aide-page main[role="main"] {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 28px 72px;
}

.aide-page .aide__heading {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 34px;
    line-height: 1.15;
    text-align: center;
    color: var(--warm-brown);
    margin: 34px 0 0;
}

.aide-page .aide__lead {
    max-width: 680px;
    margin: 16px auto 34px;
    padding: 0 16px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.55;
    text-align: center;
    color: var(--warm-brown);
}

/* ── Table of contents ───────────────────────────────────────────────── */
.aide-page .aide__toc {
    margin: 0 auto 36px;
    padding: 22px 26px;
    background: var(--warm-cream-soft);
    border-radius: 10px;
    box-shadow: 0 12px 28px -20px rgba(90, 62, 43, 0.30);
}

.aide-page .aide__toc-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--warm-muted);
    margin: 0 0 12px;
}

.aide-page .aide__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Two columns that read TOP-DOWN: fill the first column, then the second
       (multi-column flow), rather than left-to-right across rows. */
    columns: 2;
    column-gap: 28px;
}

.aide-page .aide__toc-list li {
    break-inside: avoid;
    margin: 0 0 8px;
}

.aide-page .aide__toc-list li:last-child {
    margin-bottom: 0;
}

.aide-page .aide__toc-link {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 17px;
    color: var(--warm-brown);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.aide-page .aide__toc-link:hover {
    color: var(--warm-terracotta);
    border-bottom-color: var(--warm-terracotta);
}

/* ── Sections ────────────────────────────────────────────────────────── */
.aide-page .aide__section {
    margin: 0 auto 26px;
    padding: 28px 32px 24px;
    background: var(--warm-cream-soft);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 12px 28px -20px rgba(90, 62, 43, 0.30);
    scroll-margin-top: 18px;
}

.aide-page .aide__section::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 32px;
    width: 36px;
    height: 1px;
    background: var(--warm-tan);
}

.aide-page .aide__section-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.2;
    color: var(--warm-brown);
    margin: 0 0 12px;
}

.aide-page .aide__section-text {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--warm-text);
    margin: 0 0 12px;
}

.aide-page .aide__section-text:last-child {
    margin-bottom: 0;
}

/* ── Numbered steps ──────────────────────────────────────────────────── */
.aide-page .aide__steps {
    list-style: none;          /* reset: we draw our own numbered badges */
    margin: 6px 0 4px;
    padding: 0;
    counter-reset: aide-step;
}

.aide-page .aide__step {
    position: relative;
    margin: 0 0 12px;
    padding: 1px 0 1px 42px;   /* room for the badge on the left */
    min-height: 26px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--warm-text);
    counter-increment: aide-step;
}

.aide-page .aide__step::before {
    content: counter(aide-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-terracotta);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    border-radius: 50%;
    box-shadow: 0 3px 7px -3px rgba(90, 62, 43, 0.55);
}

.aide-page .aide__step:last-child {
    margin-bottom: 0;
}

/* ── Options (bulleted choices, e.g. the photo actions) ──────────────── */
.aide-page .aide__options {
    list-style: none;
    margin: 6px 0 4px;
    padding: 0;
}

.aide-page .aide__option {
    position: relative;
    margin: 0 0 9px;
    padding: 0 0 0 22px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--warm-text);
}

.aide-page .aide__option::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    background: var(--warm-terracotta);
    border-radius: 50%;
}

.aide-page .aide__option:last-child {
    margin-bottom: 0;
}

/* ── Tip / "Astuce" callout ──────────────────────────────────────────── */
.aide-page .aide__tip {
    margin: 16px 0 0;
    padding: 13px 17px;
    background: rgba(199, 123, 92, 0.16);
    border-left: 4px solid var(--warm-terracotta);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: var(--warm-text);
}

.aide-page .aide__tip-label {
    font-weight: 700;
    color: var(--warm-brown);
    letter-spacing: 0.02em;
}

.aide-page .aide__contact-link {
    color: var(--warm-terracotta);
    text-decoration: none;
    border-bottom: 1px solid var(--warm-line);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.aide-page .aide__contact-link:hover {
    color: var(--warm-brown);
    border-bottom-color: var(--warm-terracotta);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .aide-page .masthead__title { font-size: 54px; }
    .aide-page .masthead__sub-title-part2 { font-size: 24px; }
    .aide-page main[role="main"] { padding: 8px 18px 56px; }
}

@media (max-width: 640px) {
    .aide-page .page { padding: 8px 16px 0; }
    .aide-page .masthead__title { font-size: 42px; margin-top: 18px; }
    .aide-page .masthead__sub-title-part2 { font-size: 20px; }
    .aide-page .c-nav-main { font-size: 11.5px; letter-spacing: 0.12em; padding: 12px 0; }
    .aide-page .c-nav-main__item { display: inline-block; margin: 2px 0; }
    .aide-page .c-nav-main__link { padding: 4px 8px; font-size: 11.5px; }
    .aide-page .masthead__disconnect-second {
        position: static; display: inline-block; margin: 6px 4px;
        min-width: 0; font-size: 10.5px; padding: 5px 12px;
    }
    .aide-page .aide__heading { font-size: 28px; }
    .aide-page .aide__lead { font-size: 17px; margin: 14px auto 26px; }
    .aide-page .aide__toc-list { columns: 1; }
    .aide-page .aide__section { padding: 24px 20px 20px; margin-bottom: 22px; }
    .aide-page .aide__section::before { left: 20px; }
    .aide-page .aide__section-title { font-size: 22px; }
    .aide-page .aide__section-text { font-size: 15px; }
    .aide-page .aide__step { font-size: 15px; padding-left: 38px; }
    .aide-page .aide__step::before { width: 24px; height: 24px; font-size: 12px; }
    .aide-page .aide__option { font-size: 15px; }
    .aide-page .aide__tip { font-size: 14px; }
}
