/* Feuille de style du front public — charte "AssurRebond".
   Volontairement sans framework ni dépendance externe (pas de police à charger, pas
   de bibliothèque JS) : l'app doit rester facile à maintenir pour un utilisateur
   non-développeur et fonctionner hors ligne. */

:root {
    --color-navy: #0F2A4A;
    --color-navy-dark: #081A2E;
    --color-navy-soft: #16375E;
    --color-gold: #D9A441;
    --color-gold-dark: #B9842F;
    --color-gold-light: #F1D9A6;
    --color-bg: #F7F5F1;
    --color-surface: #FFFFFF;
    --color-text: #1f2937;
    --color-text-muted: #5b6472;
    --color-border: #E4DFD5;
    --color-error: #b91c1c;
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-soft: 0 1px 3px rgba(15, 42, 74, 0.08), 0 8px 24px rgba(15, 42, 74, 0.06);
    --shadow-lift: 0 12px 32px rgba(15, 42, 74, 0.14);
    --radius-md: 10px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-system);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-system);
    color: var(--color-navy);
    line-height: 1.25;
}

a {
    color: var(--color-navy);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 640px;
    padding: 40px 20px 64px;
}

.page {
    width: 100%;
}

/* --- Animation discrète au scroll (progressive enhancement) ---
   Sans JS (ou navigateur sans IntersectionObserver), la classe "has-js" n'existe
   jamais et les éléments ".reveal" restent visibles nativement. */
.has-js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-js .reveal--visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .has-js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- En-tête --- */
.site-header {
    background: var(--color-navy);
    color: #fff;
}

.site-header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand__tagline {
    font-size: 0.75rem;
    color: var(--color-gold-light);
    font-weight: 400;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.site-header__nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-header__nav a:hover {
    color: #fff;
}

.site-header__cta {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-navy-dark);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.site-header__cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-dark) 70%);
    color: #fff;
    overflow: hidden;
    padding: 64px 0 56px;
}

.hero__decor {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(217, 164, 65, 0.35), transparent 42%),
        radial-gradient(circle at 8% 92%, rgba(217, 164, 65, 0.16), transparent 40%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    text-align: center;
    max-width: 760px;
}

.hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-gold-light);
    background: rgba(217, 164, 65, 0.14);
    border: 1px solid rgba(217, 164, 65, 0.4);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 20px;
}

.hero h1 {
    color: #fff;
    font-size: 2.1rem;
    margin: 0 0 18px;
}

.hero__highlight {
    color: var(--color-gold);
}

.hero__lead {
    font-size: 1.08rem;
    color: #dbe4ee;
    margin: 0 auto 30px;
    max-width: 620px;
}

.hero__actions {
    margin-bottom: 22px;
}

.hero__mini-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    padding: 0;
    margin: 0;
    color: #c9d6e4;
    font-size: 0.88rem;
}

.hero__mini-trust li {
    position: relative;
    padding-left: 18px;
}

.hero__mini-trust li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--color-gold);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy-dark);
    text-decoration: none;
    font-weight: 700;
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 1.05rem;
    box-shadow: 0 10px 24px rgba(217, 164, 65, 0.35);
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(217, 164, 65, 0.42);
}

.cta-button--large {
    padding: 17px 40px;
    font-size: 1.12rem;
}

/* --- Bandeau de réassurance --- */
.trust-band {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.trust-band__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 26px 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-navy);
}

.trust-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--color-gold-dark);
}

.trust-item__icon svg {
    width: 24px;
    height: 24px;
}

/* --- Sections génériques --- */
.section-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin: 0 auto 36px;
    max-width: 560px;
}

.steps {
    padding: 64px 0;
}

.steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}

.steps__item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
}

.steps__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-navy-dark);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 auto 16px;
}

.steps__item h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.steps__item p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

.why-us {
    padding: 8px 0 64px;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.why-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.why-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15, 42, 74, 0.06);
    color: var(--color-navy);
    margin-bottom: 16px;
}

.why-card__icon svg {
    width: 26px;
    height: 26px;
}

.why-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.why-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

/* --- Situations --- */
.situations {
    padding: 8px 0 72px;
    text-align: center;
}

.situations__list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.situations__list li {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-navy);
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.92rem;
}

.situations__cta {
    margin: 0;
}

/* --- Formulaire --- */
.form-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--color-gold);
}

.form-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    margin: 0 0 8px;
}

.form-card h1 {
    margin-top: 0;
    margin-bottom: 6px;
    color: var(--color-navy);
}

.form-card__intro {
    color: var(--color-text-muted);
    margin-top: 0;
    margin-bottom: 28px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-navy);
    font-size: 0.94rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.12);
}

.form-field select:disabled {
    background: #f1f1ee;
    color: var(--color-text-muted);
}

.form-error {
    color: var(--color-error);
    font-size: 0.88rem;
    margin: 6px 0 0;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.consent-field input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--color-navy);
}

.consent-field label {
    font-weight: 400;
    font-size: 0.92rem;
    color: var(--color-text);
}

.submit-button {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-soft));
    color: #fff;
    border: none;
    padding: 15px 28px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.submit-button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* --- Pages de statut (remerciement / désabonnement) --- */
.status-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.status-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 18px;
}

.status-card__icon svg {
    width: 30px;
    height: 30px;
}

.status-card--success {
    border-top: 4px solid var(--color-gold);
}

.status-card--success .status-card__icon {
    background: rgba(217, 164, 65, 0.16);
    color: var(--color-gold-dark);
}

.status-card--warning {
    border-top: 4px solid var(--color-error);
}

.status-card--warning .status-card__icon {
    background: rgba(185, 28, 28, 0.1);
    color: var(--color-error);
}

.status-card h1 {
    margin-top: 0;
}

.status-card p {
    color: var(--color-text-muted);
}

.status-card__back a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: none;
}

.status-card__back a:hover {
    text-decoration: underline;
}

/* --- Pied de page --- */
.site-footer {
    background: var(--color-navy-dark);
    color: #b7c3d1;
    margin-top: 0;
}

.site-footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px;
    text-align: center;
}

.site-footer__brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 8px;
}

.site-footer__note {
    font-size: 0.85rem;
    margin: 0 0 6px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer__note a {
    color: var(--color-gold-light);
}

.site-footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 14px 0 10px;
}

.site-footer__links a {
    color: #c9d6e4;
    text-decoration: none;
    font-size: 0.82rem;
}

.site-footer__links a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__copy {
    font-size: 0.78rem;
    color: #7f8ea0;
    margin: 0;
}

/* --- Pages légales (mentions légales, confidentialité, CGU, contact) --- */
.legal-page {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 36px 40px;
    margin: 40px 0;
}

.legal-page h1 {
    margin-top: 0;
}

.legal-page h2 {
    color: var(--color-navy);
    font-size: 1.1rem;
    margin: 28px 0 10px;
}

.legal-page p {
    line-height: 1.6;
}

.legal-page a {
    color: var(--color-navy);
}

.legal-updated {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: -8px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    line-height: 1.8;
}

/* --- Bandeau courtiers partenaires (page d'accueil) --- */
.broker-band {
    background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-dark) 70%);
    color: #fff;
}

.broker-band__inner {
    padding: 56px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.broker-band__text h2 {
    margin: 6px 0 10px;
    font-size: 1.6rem;
}

.broker-band__text p {
    color: #c9d6e4;
    max-width: 560px;
    margin: 0;
}

.broker-band__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.broker-band__login {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.broker-band__login:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 760px) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-header__nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        gap: 16px;
    }

    .trust-band__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .form-card {
        padding: 26px 20px;
    }

    .broker-band__inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 40px 20px;
    }

    .broker-band__actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .trust-band__grid {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        padding: 12px 16px;
    }

    .brand__tagline {
        display: none;
    }
}
