/* =====================================================
   Anaëlle – page d'accueil 2026 (template-anaelle-accueil.php)
   Chargé uniquement sur les pages qui utilisent ce modèle.
   Créé le 2026-10-07 (Claude / Yoann)
   ===================================================== */

body.page-template-template-anaelle-accueil {
    overflow-x: hidden;
}

body.page-template-template-anaelle-accueil #main {
    padding-top: 0;
    padding-bottom: 0;
}

/* [2026-10-22] La page est en "barre latérale à droite" dans The7 : la barre
   est vide mais sa colonne reste réservée (marge à droite). On la retire. */
body.page-template-template-anaelle-accueil #main .wf-container-main {
    display: block;
}

body.page-template-template-anaelle-accueil #main #content {
    width: 100%;
    max-width: none;
}

body.page-template-template-anaelle-accueil #main #sidebar {
    display: none;
}

#main .am-home {
    --am-ink: #00033d;
    --am-ink-soft: #3d4068;
    --am-rose: #dc9d89;
    --am-rose-deep: #b86f58;
    --am-rose-pale: #fbf0ec;
    --am-teal: #396c70;
    --am-teal-pale: #edf4f3;
    --am-paper: #ffffff;
    --am-line: #e4dedb;
    --am-on-ink: #ffffff;
    --am-on-ink-soft: #c9cbe6;
    --am-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --am-body: "Quicksand", "quicksand", "Trebuchet MS", Verdana, sans-serif;

    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--am-paper);
    color: var(--am-ink);
    font-family: var(--am-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

#main .am-home *,
#main .am-home *::before,
#main .am-home *::after {
    box-sizing: border-box;
}

#main .am-home .am-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

#main .am-home h1,
#main .am-home h2,
#main .am-home h3 {
    margin: 0;
    font-family: var(--am-display);
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
    text-transform: none;
    text-wrap: balance;
}

#main .am-home h1 { font-size: clamp(32px, 4.6vw, 52px); }
#main .am-home h2 { font-size: clamp(26px, 3.2vw, 37px); }
#main .am-home h3 { font-size: 20px; }

#main .am-home p,
#main .am-home figure,
#main .am-home blockquote {
    margin: 0;
}

#main .am-home a {
    color: inherit;
}

#main .am-home a:focus-visible,
#main .am-home button:focus-visible,
#main .am-home summary:focus-visible {
    outline: 3px solid var(--am-teal);
    outline-offset: 3px;
}

#main .am-home .am-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--am-teal);
}

#main .am-home .am-textlink {
    font-weight: 700;
    color: var(--am-teal);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ----- Boutons ----- */

#main .am-home .am-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--am-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#main .am-home .am-btn--main { background: var(--am-rose); color: var(--am-ink); }
#main .am-home .am-btn--main:hover { background: var(--am-rose-deep); color: var(--am-on-ink); }
#main .am-home .am-btn--line { border-color: var(--am-ink); color: var(--am-ink); }
#main .am-home .am-btn--line:hover { background: var(--am-ink); color: var(--am-on-ink); }
#main .am-home .am-btn--light { border-color: var(--am-on-ink); color: var(--am-on-ink); }
#main .am-home .am-btn--light:hover { background: var(--am-on-ink); color: var(--am-ink); }

#main .am-home .am-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ----- Hero ----- */

#main .am-home .am-hero {
    background: var(--am-rose-pale);
}

#main .am-home .am-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}

#main .am-home .am-hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    min-width: 0;
}

#main .am-home .am-accroche {
    font-family: var(--am-display);
    font-style: italic;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.35;
    color: var(--am-rose-deep);
}

#main .am-home .am-lead {
    max-width: 56ch;
    font-size: 18px;
    color: var(--am-ink-soft);
}

#main .am-home .am-avis {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

#main .am-home .am-stars {
    color: var(--am-rose-deep);
    letter-spacing: 0.1em;
}

#main .am-home .am-portrait {
    position: relative;
    min-width: 0;
}

#main .am-home .am-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    object-position: 40% 20%;
    border-radius: 220px 220px 18px 18px;
}

#main .am-home .am-portrait figcaption {
    position: absolute;
    left: -14px;
    bottom: 22px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--am-paper);
    box-shadow: 0 8px 24px rgba(0, 3, 61, 0.12);
    font-size: 14px;
    font-weight: 700;
}

/* ----- Thématiques ----- */

#main .am-home .am-theme__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    padding-top: 64px;
    padding-bottom: 64px;
}

#main .am-home .am-theme--alt {
    background: var(--am-teal-pale);
}

#main .am-home .am-theme--flip .am-diag {
    order: -1;
}

#main .am-home .am-theme__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

#main .am-home .am-theme__main > p {
    max-width: 60ch;
    color: var(--am-ink-soft);
}

#main .am-home .am-sub {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#main .am-home .am-articles {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--am-line);
}

#main .am-home .am-articles li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--am-line);
}

#main .am-home .am-articles a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 2px;
    font-family: var(--am-display);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

#main .am-home .am-articles a:hover span:first-child {
    text-decoration: underline;
    text-underline-offset: 4px;
}

#main .am-home .am-articles__go {
    font-family: var(--am-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--am-teal);
    white-space: nowrap;
}

#main .am-home .am-livre-ligne {
    font-size: 16px;
}

/* ----- Carte diagnostic (reprend les classes .anaelle-form-entry des articles) ----- */

#main .am-home .am-diag {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--am-line);
    border-radius: 16px;
    background: var(--am-paper);
    box-shadow: 0 10px 30px rgba(0, 3, 61, 0.06);
}

#main .am-home .am-diag .anaelle-form-entry__question {
    margin-top: 0;
}

#main .am-home .am-diag .anaelle-form-entry__question-label {
    margin: 0 0 14px;
    font-family: var(--am-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--am-ink);
}

#main .am-home .am-diag .anaelle-form-entry__choice {
    color: var(--am-ink);
    font-weight: 600;
}

#main .am-home .am-diag .anaelle-form-entry__choice:hover,
#main .am-home .am-diag .anaelle-form-entry__choice.is-selected {
    border-color: var(--am-rose-deep);
    background: var(--am-rose-pale);
    color: var(--am-ink);
}

#main .am-home .am-diag__hint {
    font-size: 14px;
    color: var(--am-ink-soft);
}

/* ----- Hypnose humaniste, bio et livre ----- */

#main .am-home .am-about {
    background: var(--am-ink);
    color: var(--am-on-ink);
}

#main .am-home .am-about .am-eyebrow,
#main .am-home .am-about .am-textlink,
#main .am-home .am-about .am-articles__go {
    color: var(--am-rose);
}

#main .am-home .am-about .am-theme__main > p {
    color: var(--am-on-ink-soft);
}

#main .am-home .am-about .am-sub {
    color: var(--am-on-ink);
}

#main .am-home .am-about .am-articles,
#main .am-home .am-about .am-articles li {
    border-color: rgba(255, 255, 255, 0.22);
}

#main .am-home .am-book {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    scroll-margin-top: 120px;
}

#main .am-home .am-book__cover {
    display: block;
    width: min(240px, 100%);
    height: auto;
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

#main .am-home .am-book p:not(.am-eyebrow) {
    font-size: 16px;
    color: var(--am-on-ink-soft);
}

#main .am-home .am-book p.am-book__mention {
    font-size: 12px;
}

#main .am-home .am-theme,
#main .am-home .am-about {
    scroll-margin-top: 100px;
}

/* ----- Témoignages ----- */

#main .am-home .am-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 64px;
    padding-bottom: 64px;
}

#main .am-home .am-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 24px;
}

#main .am-home .am-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

#main .am-home .am-review-grid blockquote {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 3px solid var(--am-rose);
    background: none;
    font-style: normal;
}

#main .am-home .am-review-grid blockquote p {
    font-size: 16px;
    color: var(--am-ink-soft);
}

#main .am-home .am-review-grid footer {
    font-size: 15px;
    font-weight: 700;
}

#main .am-home .am-review-grid footer span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--am-ink-soft);
}

/* ----- FAQ ----- */

#main .am-home .am-faq {
    background: var(--am-rose-pale);
}

#main .am-home .am-faq__list {
    max-width: 820px;
    border-top: 1px solid var(--am-line);
}

#main .am-home .am-faq__list details {
    border-bottom: 1px solid var(--am-line);
}

#main .am-home .am-faq__list summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 2px;
    font-family: var(--am-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}

#main .am-home .am-faq__list summary::-webkit-details-marker {
    display: none;
}

#main .am-home .am-faq__list summary::after {
    content: "+";
    font-family: var(--am-body);
    font-size: 24px;
    line-height: 1;
    color: var(--am-rose-deep);
}

#main .am-home .am-faq__list details[open] summary::after {
    content: "–";
}

#main .am-home .am-faq__list details p {
    max-width: 68ch;
    padding: 0 2px 20px;
    color: var(--am-ink-soft);
}

/* ----- Appel final ----- */

#main .am-home .am-final {
    background: var(--am-teal);
    color: var(--am-on-ink);
    text-align: center;
}

#main .am-home .am-final__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 64px;
    padding-bottom: 64px;
}

#main .am-home .am-final p {
    max-width: 56ch;
}

#main .am-home .am-final .am-actions {
    justify-content: center;
}

#main .am-home .am-final .am-btn--main:hover {
    background: var(--am-ink);
}

/* ----- Mobile ----- */

@media (max-width: 860px) {
    #main .am-home .am-hero__grid,
    #main .am-home .am-theme__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    #main .am-home .am-theme--flip .am-diag {
        order: 0;
    }

    #main .am-home .am-portrait {
        max-width: 420px;
    }

    #main .am-home .am-portrait figcaption {
        left: 10px;
    }

    #main .am-home .am-review-grid {
        grid-template-columns: 1fr;
    }

    #main .am-home .am-stack,
    #main .am-home .am-final__inner {
        padding-top: 44px;
        padding-bottom: 44px;
    }
}
