/* Hola Nathalie - one page navigation
   Spec: charte-graphique-hola-nathalie.md, section 6 */

/* ------------------------------------------------------------------
   Content rails — content blocks share the floating nav's exact edges.
   The nav is `width: calc(100% - 60px); max-width: 1160px`, centered;
   every container below repeats those two values so left and right
   edges line up with the nav at every viewport size.
   ------------------------------------------------------------------ */
:root {
    --hn-rail-width: 1160px;
    --hn-rail-gutter: 30px;
    /* Lighter violet: the outline ring around every filled violet shape
       (H1 capsules, CTA buttons) — same role as Palmsquare's #FF76D1. */
    --color-action-soft: #D9CCFF;
}

/* Step 1 — let every Astra/Elementor wrapper run edge to edge. Nested
   containers would otherwise apply the gutter once per level. */
body.hn-custom-nav .site-content .ast-container,
body.hn-custom-nav .site-content .ast-row,
body.hn-custom-nav .site-content [class*="ast-col-"] {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Astra's .ast-container is a flex row, so .hn-page would shrink to fit its
   widest line instead of filling the row. */
body.hn-custom-nav .hn-page {
    flex: 1 1 100%;
    min-width: 0;
}

/* Step 2 — draw the rail exactly once, on the blocks themselves. */
body.hn-custom-nav .hn-page > *,
body.hn-custom-nav .entry-content,
body.hn-custom-nav .elementor-section.elementor-section-boxed > .elementor-container,
body.hn-custom-nav .e-con > .e-con-inner {
    width: calc(100% - (var(--hn-rail-gutter) * 2));
    max-width: var(--hn-rail-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Clear the fixed nav: 32px offset + 72px bar + breathing room */
body.hn-custom-nav .site-content {
    padding-top: 136px;
}

@media (max-width: 900px) {
    :root {
        --hn-rail-gutter: 16px;
    }

    /* 20px offset + 62px bar + breathing room */
    body.hn-custom-nav .site-content {
        padding-top: 106px;
    }
}

/* Astra's own header is replaced by .hn-nav on this page */
body.hn-custom-nav #ast-desktop-header,
body.hn-custom-nav #ast-mobile-header,
body.hn-custom-nav .ast-header-break-point {
    display: none !important;
}

/* Astra's own default footer (copyright bar + "Propulsé par Thème WordPress
   Astra" credit) is replaced by the custom Elementor footer template. */
body.hn-custom-nav #colophon.site-footer {
    display: none !important;
}

body.hn-custom-nav {
    padding-top: 0 !important;
}

.hn-nav {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - (var(--hn-rail-gutter) * 2));
    max-width: var(--hn-rail-width);
    z-index: 9999;
    /* Glassmorphism, Palmsquare-style: a semi-transparent surface plus a
       blur/saturate backdrop-filter, so whatever scrolls underneath shows
       through frosted instead of the nav looking like a flat white bar. */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(22, 16, 58, 0.06);
}

.hn-nav__bar {
    height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.hn-nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--color-text-primary) !important;
}

.hn-nav__logo:hover {
    color: var(--color-text-primary) !important;
}

.hn-nav__logo-img {
    display: block;
    height: 58px;
    width: auto;
}

.hn-nav__links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hn-nav__links li {
    list-style: none;
}

.hn-nav__link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-primary) !important;
    line-height: 1;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.hn-nav__link:hover,
.hn-nav__link.is-active {
    border-bottom-color: var(--color-detail);
    color: var(--color-text-primary) !important;
}

.hn-nav__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background-color: var(--color-action);
    border: 2px solid var(--color-action-soft);
    color: #fff !important;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.hn-nav__cta:hover {
    background-color: var(--color-action-hover);
    color: #fff !important;
}

.hn-nav__cta-short {
    display: none;
}

.hn-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent !important;
    color: var(--color-text-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    /* Kills the grey/white tap-highlight overlay mobile browsers draw on
       tap, which otherwise sits on top of the icon and can look like it
       stays "white" after tapping open/close. */
    -webkit-tap-highlight-color: transparent;
}

.hn-nav__toggle:hover,
.hn-nav__toggle:focus,
.hn-nav__toggle:active {
    background: transparent !important;
}

.hn-nav__icon {
    color: var(--color-text-primary) !important;
}

.hn-nav__icon--close {
    display: none;
}

.hn-nav__toggle[aria-expanded="true"] .hn-nav__icon--menu {
    display: none;
}

.hn-nav__toggle[aria-expanded="true"] .hn-nav__icon--close {
    display: block;
}

.hn-nav__panel {
    border-top: 1px solid var(--color-border);
    padding: 8px 16px 16px;
}

.hn-nav__panel-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hn-nav__panel-links li {
    list-style: none;
}

.hn-nav__panel-link {
    display: block;
    padding: 15px 4px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--color-text-primary) !important;
    border-bottom: 1px solid var(--color-border);
}

.hn-nav__panel-links li:last-child .hn-nav__panel-link {
    border-bottom: none;
}

.hn-nav__panel-cta {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 14px;
    background-color: var(--color-action);
    color: #fff !important;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.hn-nav__panel-cta:hover {
    background-color: var(--color-action-hover);
    color: #fff !important;
}

.hn-nav a:focus-visible,
.hn-nav button:focus-visible {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .hn-nav {
        top: 20px;
        border-radius: 14px;
    }

    .hn-nav__bar {
        height: 62px;
        padding: 0 16px;
        gap: 12px;
    }

    .hn-nav__logo-img {
        height: 46px;
    }

    .hn-nav__links {
        display: none;
    }

    .hn-nav__cta-full {
        display: none;
    }

    .hn-nav__cta-short {
        display: inline;
    }

    .hn-nav__cta {
        padding: 10px 18px;
        font-size: 14px;
    }

    .hn-nav__toggle {
        display: inline-flex;
    }
}

/* ==================================================================
   SECTION 1 — ACCROCHE (#haut)
   Spec: one-page-hola-nathalie.md, section 1
   ================================================================== */

.hn-hero {
    position: relative;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 100px !important;
    text-align: center;
}

/* Decorative illustrations flanking the title. Purely ornamental, so they
   live in CSS rather than in the content: nothing for a screen reader to
   read, and nothing in the editor for a text edit to break. */
.hn-hero::before,
.hn-hero::after {
    content: '';
    position: absolute;
    top: 40px;
    width: 127px;
    height: 140px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
}

.hn-hero::before {
    left: 0;
    background-image: url('assets/hero-left.svg');
}

.hn-hero::after {
    right: 0;
    top: 190px;
    background-image: url('assets/hero-right.svg');
}

/* Below ~1100px the illustrations start crowding the title, and on a phone
   they would steal the width the capsules need. */
@media (max-width: 1100px) {
    .hn-hero::before,
    .hn-hero::after {
        display: none;
    }
}

/* Round portrait inside the CTA, matching Palmsquare's 30px avatar.
   A background on ::before, not an <img> in the post content: a text edit
   in the block editor can never delete a pseudo-element. */
.hn-hero__cta::before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #fff;
    /* ?v= bumped by hand each time this file changes: the image itself is
       cached for a year, and its filename never changes, so without this
       a returning browser would never notice a new photo. */
    background-image: url('assets/portrait-nathalie.png?v=2');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* style.css caps every paragraph at 680px; without auto margins those
   boxes hug the left edge and the centred text inside them looks off-axis. */
.hn-hero > p {
    margin-left: auto;
    margin-right: auto;
}

/* Badge above the title — translucent white on a white ring, so the
   background gradient stays readable through it. */
.hn-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.52);
    border: 2px solid #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: none;
    margin: 0 auto 28px;
}

/* --- H1 in two overlapping capsules ---
   Each capsule sits on an identical soft-violet shape, offset 6px down
   and right and 4px larger all round: that offset silhouette is what
   reads as a stacked sticker, not a border. */
.hn-hero__title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 0 28px;
    font-size: inherit;
    line-height: 1;
}

/* Decorative arrow filling the empty space beside the second, shorter
   capsule — anchored to it directly (not to the title block as a whole)
   because the first capsule is nearly as wide as the whole rail, which
   left the arrow stranded far to the right with nothing near it.
   Desktop only — there is no equivalent empty space once the capsules
   wrap to several lines on a narrow screen. */
.hn-capsule--2::after {
    content: '';
    display: none;
    position: absolute;
    top: -35px;
    right: -95px;
    width: 110px;
    height: 117px;
    background-image: url('assets/hero-arrow.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(8deg);
    pointer-events: none;
}

@media (min-width: 901px) {
    .hn-capsule--2::after {
        display: block;
    }
}

/* Solid violet fill inside a thicker ring of lighter violet — the ring is a
   real border, centred on the shape, not an offset silhouette. Padding is
   tight around the text on purpose: a thick pill reads as chunky/cheap,
   a thin one reads as a hand-drawn sticker. */
.hn-capsule {
    position: relative;
    display: inline-block;
    background: var(--color-action);
    border: 5px solid var(--color-action-soft);
    color: #fff;
    border-radius: 999px;
    /* Vertical padding is bigger than it looks like it should need to:
       Fraunces' descenders (the tail on "J", "g", "q"...) reach further
       down than most fonts, and got clipped by the pill edge at 8px. */
    padding: 16px 28px;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.3;
    white-space: nowrap;
}

/* A small tilt, just enough to feel hand-placed rather than a rigid,
   perfectly stacked block. */
.hn-capsule--1 {
    transform: rotate(-1.2deg) translateY(10px);
}

/* Second line sits level and centred directly under the first, with a
   small vertical gap. */
.hn-capsule--2 {
    position: relative;
    margin-top: 6px;
}

.hn-hero__subtitle {
    font-size: 17px;
    line-height: 1.55;
    color: var(--color-text-primary);
    max-width: 680px;
    margin: 0 auto 28px;
}

/* Forces "je vous conseille..." down to its own line on desktop, so "je"
   never dangles alone at the end of the line above. Off on mobile: the
   text already wraps to several short lines there, and forcing this break
   too would leave an oddly short line of its own. */
.hn-break-desktop {
    display: none;
}

@media (min-width: 901px) {
    .hn-break-desktop {
        display: block;
    }
}

/* Three proof pills on one line, wrapping to two on mobile */
.hn-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.hn-pills li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.52);
    border: 2px solid #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 16px;
    color: var(--color-text-primary);
    margin: 0;
    list-style: none;
}

/* `check-circle` bullet in apricot, per the charter's Lucide icon spec
   (20px, outline only, 1.5px stroke). Inlined as an SVG so no icon
   library needs loading for one glyph. */
.hn-pills li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2884B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.hn-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* Nudges the button 6px right so its centre lines up with the middle
       proof pill ("Site Internet & réseaux sociaux") above it — the two
       rows centre independently and land 6px apart by coincidence of
       their text widths otherwise. */
    margin-left: 12px;
    background-color: var(--color-action);
    border: 2px solid var(--color-action-soft);
    color: #fff !important;
    border-radius: 999px;
    /* Tighter on the left, where the round portrait sits */
    padding: 10px 26px 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.hn-hero__cta:hover {
    background-color: var(--color-action-hover);
    color: #fff !important;
}

.hn-hero__cta:active {
    transform: scale(0.98);
}

.hn-hero__reassurance {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: none;
    margin: 14px 0 0;
}

@media (max-width: 900px) {
    .hn-hero {
        margin-bottom: 64px !important;
    }

    .hn-capsule {
        font-size: 20px;
        padding: 8px 18px;
        border-width: 3px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hn-capsule--1 {
        transform: none;
    }

    .hn-capsule--2 {
        margin-top: -8px;
    }

    .hn-hero__subtitle {
        font-size: 16px;
    }

    .hn-pills li {
        font-size: 15px;
    }
}

/* Temporary — gives enough scroll length to test the floating nav's
   glassmorphism effect. Remove once settings are validated. */
.hn-scroll-test {
    padding: 200px 0;
    text-align: center;
}
