/* =========================================================
   1. Réglages — Marine et or
   ========================================================= */
:root {
    --navy: #0c2a57;
    --navy-deep: #081d3f;
    --gold: #b98c3a;
    --gold-hover: #d2aa60;
    --gold-ink: #755319;

    --background: #f7f8fb;
    --paper: #fff;
    --ink: #172843;
    --muted: #54647c;
    --on-dark: #d1dbea;

    --line: #dce3ee;
    --dark-line: #486083;
    --soft: #edf1f7;
    --gold-soft: #faf2e2;
    --window: #f0f3f7;
    --dot: #8d9bb0;

    --success: #176447;
    --success-bg: #edf8f1;
    --success-line: #93c8ad;
    --error: #a32424;
    --error-line: #c33f3f;

    --display: "DM Serif Display", Georgia, serif;
    --body: "DM Sans", system-ui, sans-serif;

    --radius: 14px;
    --button-radius: 12px;
    --width: 1120px;
    --gutter: 20px;
    --section-space: 56px;
    --header-offset: 190px;
    --gap: 20px;

    --shadow: 0 16px 44px rgb(8 29 63 / 7%);
}

/* =========================================================
   2. Base et accessibilité
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

html.js {
    --header-offset: 90px;
}

body {
    margin: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    background: var(--background);
    color: var(--ink);
    font: 16px/1.65 var(--body);
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
}

h3 {
    font-size: 1.12rem;
    line-height: 1.4;
}

p + p {
    margin-top: 16px;
}

img,
svg {
    max-width: 100%;
}

img {
    display: block;
}

a {
    color: inherit;
    text-underline-offset: .2em;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
summary {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--gold-ink);
    outline-offset: 4px;
}

.hero :focus-visible,
.dark-section :focus-visible {
    outline-color: var(--gold-hover);
}

.contact-panel :focus-visible {
    outline-color: var(--gold-ink);
}

.container {
    width: min(var(--width), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

.section--soft {
    background: var(--soft);
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 12px 18px;
    border-radius: var(--button-radius);
    background: var(--paper);
    color: var(--navy-deep);
    transform: translateY(-160%);
}

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

/* =========================================================
   3. En-tête et navigation
   ========================================================= */
.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    flex-shrink: 0;
    font: 1.65rem/1 var(--display);
    text-decoration: none;
}

.brand img,
.brand svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
    color: var(--gold-ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.login-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: .78rem;
    text-decoration: none;
}

.header-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding-bottom: 10px;
}

.header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    border-radius: 8px;
    font-size: .8rem;
    text-decoration: none;
}

.header-nav a:hover {
    background: var(--soft);
}

.js .header-nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    width: calc(100% + var(--gutter) * 2);
    padding: 14px var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--navy);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* =========================================================
   4. Boutons et libellés
   ========================================================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--button-radius);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s, border-color .18s;
}

.button--small {
    min-height: 44px;
    padding: 10px;
    font-size: .76rem;
}

.button--gold {
    background: var(--gold);
    color: var(--navy-deep);
}

.button--gold:hover {
    background: var(--gold-hover);
}

.button--navy {
    background: var(--navy-deep);
    color: var(--paper);
}

.button--navy:hover {
    background: var(--navy);
}

.button--outline-light {
    color: var(--paper);
    border-color: var(--on-dark);
    background: transparent;
}

.button--outline-light:hover {
    background: var(--navy);
    border-color: var(--gold-hover);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--gold-ink);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: 52px;
    background: var(--navy-deep);
    color: var(--paper);
}

.hero-silhouette {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--gold);
    opacity: .09;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.hero .eyebrow,
.dark-section .eyebrow {
    color: var(--gold-hover);
}

.hero h1 span {
    color: var(--gold-hover);
}

.hero-intro {
    margin-top: 24px;
    max-width: 610px;
    color: var(--on-dark);
}

.hero-buttons {
    margin-top: 28px;
    flex-direction: column;
}

.hero-buttons .button {
    flex: 1;
    width: 100%;
}

.hero-note {
    margin-top: 18px;
    color: var(--on-dark);
    font-size: .78rem;
}

/* =========================================================
   6. Captures et cadres de remplacement
   ========================================================= */
.capture {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.capture-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding-inline: 12px;
    background: var(--window);
    border-bottom: 1px solid var(--line);
}

.capture-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot);
}

.capture img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: var(--paper);
}

.capture-placeholder {
    display: flex;
    aspect-ratio: 16 / 10;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    color: var(--muted);
    background: var(--soft);
    text-align: center;
}

.capture-placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--gold-ink);
}

.capture-placeholder strong {
    color: var(--ink);
    font-size: 1rem;
}

.capture-placeholder span {
    font-size: .85rem;
}

.capture-placeholder small {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: .67rem;
}

/* =========================================================
   7. Réassurance
   ========================================================= */
.reassurance {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.reassurance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-block: 0;
    padding-block: 24px;
    padding-left: 0;
    list-style: none;
}

.reassurance-grid li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .8rem;
}

.reassurance-grid li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-ink);
}

/* =========================================================
   8. Cartes, problème et profils
   ========================================================= */
.section-heading {
    max-width: 670px;
    margin-bottom: 30px;
}

.section-heading > p:not(.eyebrow) {
    margin-top: 20px;
    color: var(--muted);
}

.three-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
}

.card {
    min-width: 0;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 12px;
}

.card > p {
    color: var(--muted);
    font-size: .93rem;
}

.card-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 22px;
    color: var(--gold-ink);
}

.card-index {
    display: block;
    margin-bottom: 20px;
    font: 1.4rem var(--display);
    color: var(--gold-ink);
}

/* =========================================================
   9. Fonctionnalités
   ========================================================= */
.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding-block: 34px;
}

.feature-row + .feature-row {
    border-top: 1px solid var(--line);
}

.feature-copy h3 {
    margin-bottom: 18px;
    font: 400 clamp(1.8rem, 2.7vw, 2.35rem)/1.18 var(--display);
}

.feature-copy > p:not(.eyebrow):not(.plan-note) {
    color: var(--muted);
}

.check-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 25px;
    font-size: .9rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .45em;
    width: 7px;
    height: 12px;
    border-right: 2px solid var(--gold-ink);
    border-bottom: 2px solid var(--gold-ink);
    transform: rotate(42deg);
}

.plan-note {
    margin-top: 20px;
    color: var(--gold-ink);
    font-size: .81rem;
}

.mini-grid {
    margin-top: 30px;
}

/* =========================================================
   10. Comment ça marche
   ========================================================= */
.steps {
    padding: 0;
    margin: 0;
    list-style: none;
}

.step-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-ink);
    font: 1.3rem var(--display);
}

.section-action {
    margin-top: 30px;
}

/* =========================================================
   11. Sécurité
   ========================================================= */
.dark-section {
    background: var(--navy-deep);
    color: var(--paper);
}

.dark-section .card {
    background: var(--navy);
    border-color: var(--dark-line);
    box-shadow: none;
}

.dark-section .card > p {
    color: var(--on-dark);
}

/* =========================================================
   12. Offre de lancement
   ========================================================= */
.pioneer-section {
    background: var(--gold-soft);
}

.pioneer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}

.pioneer-inner p:not(.eyebrow) {
    max-width: 700px;
    margin-top: 20px;
    color: var(--muted);
}

/* =========================================================
   13. Tarifs
   ========================================================= */
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.price-card--featured {
    border: 2px solid var(--gold);
}

.recommended {
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 5px 12px;
    border-radius: 30px;
    color: var(--paper);
    background: var(--navy-deep);
    font-size: .73rem;
}

.price-card .price {
    margin: 26px 0 0;
    color: var(--navy-deep);
    font-size: clamp(1.75rem, 2.7vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.price-card .price-period {
    margin-top: 6px;
    font-size: .83rem;
}

.price-card .annual-price {
    margin-top: 18px;
    font-size: .82rem;
}

.annual-price span {
    display: block;
    color: var(--gold-ink);
}

.price-card .check-list {
    margin-bottom: 26px;
}

.price-card .plan-note {
    margin: 0 0 24px;
    color: var(--gold-ink);
}

.price-card .button {
    width: 100%;
    margin-top: auto;
}

.pricing-note,
.pricing-help {
    max-width: 800px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

.pricing-help {
    margin-top: 10px;
}

.pricing-help a {
    display: inline-block;
    min-height: 44px;
    padding-block: 10px;
    color: var(--gold-ink);
}

/* =========================================================
   14. Fondateur
   ========================================================= */
.founder-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.founder-portrait {
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--soft);
}

.founder-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-portrait span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font: 2.8rem var(--display);
    color: var(--navy);
}

.founder-copy h3 {
    margin-top: 22px;
}

.founder-role {
    margin-top: 6px;
    color: var(--gold-ink);
    font-size: .88rem;
}

.founder-text {
    margin-top: 20px;
    color: var(--muted);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.founder-copy .button {
    margin-top: 24px;
}

/* =========================================================
   15. Questions fréquentes
   ========================================================= */
.faq-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
    border-top: 1px solid var(--line);
}

.faq-list summary {
    min-height: 60px;
    padding: 19px 6px;
    font-size: .94rem;
    font-weight: 600;
}

.faq-list summary::marker {
    color: var(--gold-ink);
}

.faq-list details > div {
    padding: 0 6px 22px;
    color: var(--muted);
    font-size: .91rem;
}

.faq-list a {
    display: inline-block;
    min-height: 44px;
    padding-block: 10px;
}

/* =========================================================
   16. Contact et formulaire
   ========================================================= */
.contact-copy > p:not(.eyebrow) {
    margin-top: 24px;
    color: var(--on-dark);
}

.contact-copy .button-row {
    margin-top: 28px;
}

.contact-email {
    overflow-wrap: anywhere;
}

.contact-panel {
    min-width: 0;
    padding: 25px;
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: .84rem;
    font-weight: 600;
}

.field label span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--muted);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
}

.field select {
    padding-right: 22px;
}

.field textarea {
    resize: vertical;
}

.field [aria-invalid="true"] {
    border: 2px solid var(--error-line);
}

.field-error {
    margin-top: 8px;
    color: var(--error);
    font-size: .8rem;
}

.contact-panel button[type="submit"] {
    width: 100%;
    margin-top: 24px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid;
    border-radius: 8px;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.alert--success {
    color: var(--success);
    border-color: var(--success-line);
    background: var(--success-bg);
}

/* =========================================================
   17. Pied de page et actions mobiles
   ========================================================= */
.site-footer {
    padding-block: 30px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .82rem;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-inner > p {
    color: var(--muted);
    font-size: .77rem;
}

.mobile-actions {
    position: fixed;
    z-index: 45;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.mobile-actions .button {
    min-height: 44px;
    padding: 10px 8px;
    font-size: .84rem;
}

/* =========================================================
   18. Responsive
   ========================================================= */
@media (min-width: 701px) {
    :root {
        --gutter: 28px;
        --section-space: 84px;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-buttons .button {
        width: auto;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field--full {
        grid-column: 1 / -1;
    }

    .reassurance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .founder-panel {
        grid-template-columns: 160px minmax(0, 1fr);
        padding: 42px;
    }

    .founder-portrait {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 861px) {
    .three-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-row {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 52px;
        padding-block: 50px;
    }

    .feature-row--reverse {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    }

    .feature-row--reverse .feature-copy {
        order: 2;
    }

    .faq-layout {
        grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
        gap: 64px;
    }

    .contact-layout {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 55px;
    }

    .pioneer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .pioneer-inner .button {
        flex-shrink: 0;
    }
}

@media (min-width: 960px) {
    :root,
    html.js {
        --header-offset: 100px;
    }

    body {
        padding-bottom: 0;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 20px;
        min-height: 82px;
    }

    .brand {
        font-size: 1.9rem;
    }

    .brand img,
    .brand svg {
        width: 36px;
        height: 36px;
    }

    .header-actions {
        order: 3;
        gap: 16px;
    }

    .login-link {
        font-size: .85rem;
    }

    .header-nav,
    .js .header-nav {
        position: static;
        display: flex;
        width: auto;
        padding: 0;
        gap: 5px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .header-nav a {
        padding-inline: 7px;
        font-size: .82rem;
    }

    .hero {
        padding-block: 82px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 38px;
    }

    .hero-capture {
        width: calc(100% + 30px);
    }

    .reassurance-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    .mobile-actions {
        display: none;
    }
}

@media (min-width: 961px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }
}

@media (max-width: 360px) {
    :root {
        --gutter: 12px;
    }

    .brand {
        font-size: 1.45rem;
        gap: 4px;
    }

    .brand img,
    .brand svg {
        width: 24px;
        height: 24px;
    }

    .header-actions {
        gap: 4px;
    }

    .login-link {
        font-size: .73rem;
    }

    .button--small {
        padding-inline: 8px;
        font-size: .72rem;
    }

    .founder-panel {
        padding: 24px;
    }
}

/* =========================================================
   19. Réduction des animations
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none;
        animation: none;
    }
}
