/* ==========================================================================
   PAGE SIMULATEURS : courbe doree en haut de page, questions d'entree,
   4 simulateurs visibles d'un coup (apercu illustratif, sans montants),
   parcours en 3 etapes, bandeau rendez-vous.
   ========================================================================== */
.sm-page {
    --sm-navy: #0B243E;
    --sm-gold: #B49A58;
    --sm-gold-dark: #806a33;
    --sm-ink: #24303d;
    --sm-muted: #5f6b78;
    --sm-line: #EDE4D4;
    --sm-ivory: #FBF8F2;
    font-family: 'Montserrat', sans-serif;
}
.sm-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- Haut de page : courbe de croissance -------------------------------- */
.sm-hero .hero-content { position: relative; z-index: 2; }
.sim-growth { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.sim-growth .sim-guide { fill: none; stroke: rgba(216, 198, 154, 0.08); stroke-width: 1; stroke-dasharray: 4 10; }
.sim-growth .sim-draw { fill: none; stroke: #B49A58; stroke-width: 2; stroke-linecap: round; opacity: 0.7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: smDraw 2.8s cubic-bezier(0.45, 0, 0.2, 1) 0.3s forwards; }
.sim-growth .sim-pt { fill: #D8C69A; opacity: 0; transform-box: fill-box; transform-origin: center; animation: smPop 0.7s ease-out var(--d, 0s) forwards; }
.sim-growth .sim-pt.is-last { fill: #B49A58; animation: smPop 0.7s ease-out var(--d, 0s) forwards, smPulse 3.5s ease-in-out 3.4s infinite; }
@keyframes smDraw { to { stroke-dashoffset: 0; } }
@keyframes smPop { from { opacity: 0; transform: scale(0.2); } to { opacity: 0.9; transform: scale(1); } }
@keyframes smPulse { 0%, 100% { opacity: 0.9; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.35); } }

/* --- Introduction et questions ------------------------------------------ */
.sm-intro {
    padding: 100px 0 60px;
    text-align: center;
    background:
        radial-gradient(42% 60% at 95% 0%, rgba(216, 198, 154, 0.20) 0%, rgba(216, 198, 154, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, var(--sm-ivory) 100%);
}
.sm-title { margin: 0 0 16px; font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.2; color: var(--sm-navy); }
.sm-lead { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: var(--sm-muted); }
.sm-ask { display: inline-flex; align-items: center; gap: 12px; margin: 44px 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--sm-gold-dark); }
.sm-ask::before, .sm-ask::after { content: ""; width: 28px; height: 1px; background: var(--sm-gold); }
.sm-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 0 auto; }
.sm-questions a {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 14px;
    min-height: 0 !important;
    padding: 18px 22px !important;
    border: 1px solid var(--sm-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(11, 36, 62, 0.05);
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--sm-navy);
    text-align: left !important;
    text-decoration: none;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sm-questions a::after { content: "→"; flex: none; font-family: 'Montserrat', sans-serif; color: var(--sm-gold-dark); transition: transform 0.25s; }
.sm-questions a:hover { border-color: var(--sm-gold); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 36, 62, 0.09); }
.sm-questions a:hover::after { transform: translateX(4px); }

/* --- Grille des simulateurs --------------------------------------------- */
.sm-tools { padding: 40px 0 100px; background: var(--sm-ivory); }
.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.sm-card {
    scroll-margin-top: 150px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sm-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(11, 36, 62, 0.07);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.sm-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(11, 36, 62, 0.13); }
.sm-card:target { border-color: var(--sm-gold); box-shadow: 0 0 0 4px rgba(180, 154, 88, 0.18), 0 26px 60px rgba(11, 36, 62, 0.12); }
.sm-preview {
    margin: 12px 12px 0;
    border-radius: 18px;
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(180, 154, 88, 0.22) 0%, rgba(180, 154, 88, 0) 60%),
        linear-gradient(150deg, #0B243E 0%, #143a62 100%);
}
.sm-preview svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 150; }
.sm-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; text-align: left; }
.sm-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #FBF3E3; font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px; color: var(--sm-gold-dark); }
.sm-card h3 { margin: 14px 0 8px; font-family: 'Playfair Display', serif; font-size: 1.45rem; line-height: 1.25; color: var(--sm-navy); text-align: left; }
.sm-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: var(--sm-muted); text-align: left !important; }
.sm-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.sm-meta li { padding: 5px 11px; border: 1px solid var(--sm-line); border-radius: 999px; background: var(--sm-ivory); font-size: 12px; color: var(--sm-ink); }
.sm-btn {
    align-self: flex-start;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 0 !important;
    margin-top: auto;
    padding: 13px 22px !important;
    border-radius: 999px;
    background: var(--sm-navy);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s;
}
.sm-btn:hover { background: var(--sm-gold-dark); }
.sm-note { margin: 26px 0 0; font-size: 12.5px; color: var(--sm-muted); text-align: center; }

/* Apercus illustratifs (aucun montant affiche) */
.sm-preview .sm-gl { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; stroke-dasharray: 3 6; }
.sm-preview .sm-line { fill: none; stroke: #B49A58; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sm-preview .sm-line.is-soft { stroke: rgba(216, 198, 154, 0.6); stroke-width: 2; }
.sm-preview .sm-area { fill: rgba(180, 154, 88, 0.14); opacity: 0; }
.sm-preview .sm-dot { fill: #D8C69A; opacity: 0; }
.sm-preview .sm-bar-bg { fill: rgba(255, 255, 255, 0.1); }
.sm-preview .sm-bar-fill { fill: #B49A58; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.sm-preview .sm-col { fill: rgba(216, 198, 154, 0.35); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.sm-preview .sm-col.is-gold { fill: #B49A58; }
.sm-preview .sm-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 14; }
.sm-preview .sm-ring { fill: none; stroke-width: 14; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); stroke-dasharray: 0 100; }
.sm-preview .sm-ring.is-a { stroke: #B49A58; }
.sm-preview .sm-ring.is-b { stroke: #D8C69A; }
.sm-preview .sm-ring.is-c { stroke: rgba(216, 198, 154, 0.4); }
/* Declenchement quand la carte apparait a l'ecran */
.sm-card.is-in .sm-line { animation: smDraw 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.2s forwards; }
.sm-card.is-in .sm-area { animation: smFade 1s ease 1.2s forwards; }
.sm-card.is-in .sm-dot { animation: smFade 0.6s ease 1.6s forwards; }
.sm-card.is-in .sm-bar-fill { animation: smGrowX 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards; }
.sm-card.is-in .sm-col { animation: smGrowY 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.sm-card.is-in .sm-col:nth-of-type(2) { animation-delay: 0.15s; }
.sm-card.is-in .sm-col:nth-of-type(3) { animation-delay: 0.3s; }
.sm-card.is-in .sm-col:nth-of-type(4) { animation-delay: 0.45s; }
.sm-card.is-in .sm-ring.is-a { animation: smRingA 1.2s ease forwards; }
.sm-card.is-in .sm-ring.is-b { animation: smRingB 1.2s ease 0.2s forwards; }
.sm-card.is-in .sm-ring.is-c { animation: smRingC 1.2s ease 0.4s forwards; }
@keyframes smFade { to { opacity: 1; } }
@keyframes smGrowX { to { transform: scaleX(1); } }
@keyframes smGrowY { to { transform: scaleY(1); } }
@keyframes smRingA { to { stroke-dasharray: 44 100; stroke-dashoffset: 0; } }
@keyframes smRingB { from { stroke-dashoffset: -46; } to { stroke-dasharray: 28 100; stroke-dashoffset: -46; } }
@keyframes smRingC { from { stroke-dashoffset: -76; } to { stroke-dasharray: 22 100; stroke-dashoffset: -76; } }

/* --- Parcours en 3 etapes ------------------------------------------------ */
.sm-steps { padding: 90px 0 70px; background: #ffffff; text-align: center; }
.sm-steps-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: none; }
.sm-steps-list::before { content: ""; position: absolute; top: 27px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, rgba(180, 154, 88, 0), #B49A58, rgba(180, 154, 88, 0)); }
.sm-steps-list li { position: relative; padding: 0 10px; }
.sm-step-num { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg, #F6EFE4, #EAD9BA); font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--sm-gold-dark); box-shadow: 0 0 0 8px #ffffff; }
.sm-steps-list h3 { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--sm-navy); }
.sm-steps-list p { max-width: 280px; margin: 0 auto; font-size: 14.5px; line-height: 1.65; color: var(--sm-muted); }

/* --- Bandeau final ------------------------------------------------------- */
.sm-final { padding: 20px 0 100px; background: #ffffff; }
.sm-final-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 54px 60px;
    border-radius: 32px;
    background:
        radial-gradient(55% 90% at 100% 0%, rgba(180, 154, 88, 0.26) 0%, rgba(180, 154, 88, 0) 60%),
        linear-gradient(135deg, #0B243E 0%, #143a62 100%);
    box-shadow: 0 34px 80px rgba(11, 36, 62, 0.22);
}
.sm-final-card h2 { margin: 0 0 10px; font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: #ffffff; text-align: left; }
.sm-final-card p { max-width: 560px; margin: 0; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.75); text-align: left; }
.sm-final-card a {
    flex: none;
    display: inline-flex !important;
    min-height: 0 !important;
    padding: 16px 28px !important;
    border-radius: 999px;
    background: linear-gradient(135deg, #D8C69A 0%, #B49A58 55%, #806a33 100%);
    color: #0B243E !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

@media (max-width: 900px) {
    .sm-grid { grid-template-columns: 1fr; }
    .sm-questions { grid-template-columns: 1fr; }
    .sm-steps-list { grid-template-columns: 1fr; gap: 30px; }
    .sm-steps-list::before { display: none; }
    .sm-final-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .sm-wrap { padding: 0 16px; }
    .sm-intro { padding: 64px 0 40px; }
    .sm-tools { padding: 30px 0 64px; }
    .sm-card-body { padding: 20px 20px 24px; }
    .sm-questions a { padding: 16px 18px !important; font-size: 1rem; }
    .sm-final { padding-bottom: 70px; }
    .sm-final-card { padding: 38px 24px; border-radius: 24px; }
    .sim-growth { opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
    .sim-growth .sim-draw, .sm-preview .sm-line { animation: none !important; stroke-dashoffset: 0; }
    .sim-growth .sim-pt { animation: none !important; opacity: 0.9; }
    .sm-preview .sm-area, .sm-preview .sm-dot { animation: none !important; opacity: 1; }
    .sm-preview .sm-bar-fill, .sm-preview .sm-col { animation: none !important; transform: none; }
    .sm-preview .sm-ring { animation: none !important; }
    .sm-preview .sm-ring.is-a { stroke-dasharray: 44 100; }
    .sm-preview .sm-ring.is-b { stroke-dasharray: 28 100; stroke-dashoffset: -46; }
    .sm-preview .sm-ring.is-c { stroke-dasharray: 22 100; stroke-dashoffset: -76; }
}
