/* ============================================================
   PATRIMOINE LANDING — Style Premium Bleu / Doré
   ============================================================ */

:root {
    /* Palette principale */
    --navy:        #1a2a4a;
    --navy-deep:   #0f1a30;
    --navy-light:  #2c3e6b;
    --gold:        #c9a84c;
    --gold-light:  #e0c872;
    --gold-soft:   #f5ecd4;
    --white:       #ffffff;
    --off-white:   #f8f9fb;
    --grey-100:    #f0f1f4;
    --grey-200:    #e2e4e9;
    --grey-400:    #9ba3b5;
    --grey-600:    #6b7280;
    --grey-800:    #374151;
    --red:         #dc3545;
    --green:       #28a745;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 680px;
    --section-gap:   3rem;
    --radius:        12px;
    --radius-sm:     8px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--grey-800);
    background: var(--off-white);
    line-height: 1.6;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201,168,76,0.25);
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title .gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--white);
    font-weight: 500;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.2rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--grey-600);
    font-weight: 400;
}

.trust-icon {
    font-size: 1.1rem;
}

/* ============================================================
   FORM SECTION — Multi-Step
   ============================================================ */
.form-section {
    max-width: var(--container-max);
    margin: var(--section-gap) auto;
    padding: 0 1.25rem;
}

/* ---- Progress Bar ---- */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 4px;
    background: var(--grey-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step-label {
    font-size: 0.75rem;
    color: var(--grey-400);
    font-weight: 400;
    transition: color 0.3s;
}

.step-label.active {
    color: var(--navy);
    font-weight: 500;
}

.step-label.completed {
    color: var(--gold);
    font-weight: 500;
}

/* ---- Steps ---- */
.form-step {
    display: none;
    animation: fadeSlideIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.5rem;
}

.step-desc {
    text-align: center;
    color: var(--grey-600);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ---- Objectif Cards (Step 1) ---- */
.objectif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 520px) {
    .objectif-grid { grid-template-columns: 1fr; }
}

.objectif-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--grey-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.objectif-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201,168,76,0.12);
}

.objectif-card[data-selected="true"],
.objectif-card.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, rgba(201,168,76,0.02) 100%);
    box-shadow: 0 4px 20px rgba(201,168,76,0.15);
}

.objectif-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.objectif-icon {
    font-size: 2rem;
}

.objectif-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}

.objectif-desc {
    font-size: 0.8rem;
    color: var(--grey-600);
    font-weight: 300;
    line-height: 1.4;
}

/* ---- Form Fields (Step 2) ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 520px) {
    .form-grid { grid-template-columns: 1fr; }
}

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

.field-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

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

.field-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--grey-800);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.field-group input::placeholder {
    color: var(--grey-400);
    font-weight: 300;
}

.field-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.field-group input.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,53,69,0.08);
}

/* ---- Consent ---- */
.consent-block {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--grey-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-200);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--grey-600);
    line-height: 1.5;
}

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

.consent-text a {
    color: var(--navy-light);
    text-decoration: underline;
}

/* ---- Form Actions ---- */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.btn-back {
    background: none;
    border: none;
    color: var(--grey-600);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--navy);
}

.btn-submit {
    flex: 1;
    max-width: 380px;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-deep);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(201,168,76,0.25);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26,42,74,0.3);
    border-top-color: var(--navy-deep);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-reassurance {
    text-align: center;
    font-size: 0.8rem;
    color: var(--grey-400);
    margin-top: 1rem;
}

.form-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(220,53,69,0.06);
    border: 1px solid rgba(220,53,69,0.15);
    border-radius: var(--radius-sm);
    color: var(--red);
    font-size: 0.85rem;
    text-align: center;
}

/* ---- Success / Step 3 ---- */
.success-block {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.calendly-container {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--grey-200);
    background: var(--white);
    min-height: 600px;
}

.calendly-container iframe {
    width: 100%;
    height: 650px;
    border: none;
}

.btn-calendly {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-deep);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(201,168,76,0.25);
    transition: all 0.25s;
}

.btn-calendly:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}

.redirect-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--grey-400);
}

.calendly-redirect {
    text-align: center;
    padding: 2rem 0;
}

/* ============================================================
   REASSURANCE SECTION
   ============================================================ */
.reassurance {
    max-width: var(--container-max);
    margin: 1rem auto var(--section-gap);
    padding: 0 1.25rem;
}

.reassurance-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    margin-bottom: 1.5rem;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 520px) {
    .reassurance-grid { grid-template-columns: 1fr; }
}

.reassurance-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
}

.reassurance-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.reassurance-label {
    font-size: 0.85rem;
    color: var(--grey-600);
    line-height: 1.5;
    font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--grey-400);
    font-size: 0.8rem;
    border-top: 1px solid var(--grey-200);
    margin-top: auto;
}

.footer-links {
    margin-top: 0.25rem;
}

.footer-links a {
    color: var(--grey-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--navy);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .hero { padding: 2.5rem 1.25rem 2rem; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.92rem; }
    .trust-bar { gap: 1rem; padding: 1rem 0.75rem; }
    .trust-item { font-size: 0.78rem; }
    .step-title { font-size: 1.35rem; }
    .form-actions { flex-direction: column; }
    .btn-submit { max-width: 100%; }
    .btn-back { order: 2; }
}
