:root {
    --blue-france: #000091;
    --blue-france-hover: #1212FF;
    --red-marianne: #E1000F;
    --grey-50: #F6F6F6;
    --grey-200: #E5E5E5;
    --grey-625: #929292;
    --grey-850: #3A3A3A;
    --grey-975: #161616;
    --green-tilleul: #B8FEC9;
    --green-emeraude: #00A95F;
}

body {
    font-family: "Marianne", arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.fr-header__service-title {
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--blue-france);
}

.fr-btn-part a {
    color: var(--blue-france) !important;
}

.fr-btn-pro a {
    color: var(--blue-france) !important;
}

.active-menu-particulier .fr-nav__link {
    color: var(--blue-france);
    box-shadow: inset 0 -2px 0 0 var(--blue-france);
}

.page-title {
    color: var(--grey-975);
}

.fr-tag {
    background-color: #E8EDFF;
    color: var(--blue-france);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.datePublished {
    color: var(--grey-625);
}

.node__contentfr-mt-5w h3 {
    color: var(--grey-975);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.node__contentfr-mt-5w ul,
.node__contentfr-mt-5w ol {
    padding-left: 1.5rem;
}

.node__contentfr-mt-5w li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.node__contentfr-mt-5w p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.qr-rate {
    border-top: 1px solid var(--grey-200);
    padding-top: 1.5rem;
}

.div-shadow {
    font-weight: 700;
}

.fr-share {
    border-top: 1px solid var(--grey-200);
}

.fr-btn-contact-header {
    background-color: #F5F5FE !important;
}

.hero-banner {
    background: linear-gradient(135deg, #000091 0%, #0063CB 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-banner h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-banner p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.section-particulier,
.section-professionnel {
    background-color: var(--grey-50);
    padding: 2rem;
    border-radius: 0.25rem;
    margin-bottom: 2rem;
}

.section-particulier {
    border-left: 4px solid var(--blue-france);
}

.section-professionnel {
    border-left: 4px solid var(--green-emeraude);
}

.btn-connect {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--blue-france);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.btn-connect:hover {
    background-color: var(--blue-france-hover);
}

.actu-card {
    background: #fff;
    border: 1px solid var(--grey-200);
    padding: 1.5rem;
    border-radius: 0.25rem;
    transition: box-shadow 0.2s;
}

.actu-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.actu-card h3 a {
    color: var(--grey-975);
    text-decoration: none;
}

.actu-card h3 a:hover {
    color: var(--blue-france);
}

.demarche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.demarche-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--grey-50);
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--grey-975);
    border: 1px solid var(--grey-200);
    transition: border-color 0.2s, background-color 0.2s;
}

.demarche-item:hover {
    border-color: var(--blue-france);
    background-color: #F5F5FE;
}

.demarche-item::before {
    content: "→";
    margin-right: 0.75rem;
    color: var(--blue-france);
    font-weight: 700;
}

.questions-frequentes {
    background: var(--grey-50);
    padding: 2rem;
    border-radius: 0.25rem;
    margin-top: 2rem;
}

.questions-frequentes h2 {
    margin-bottom: 1.5rem;
}

.question-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-200);
}

.question-item:last-child {
    border-bottom: none;
}

.question-item a {
    color: var(--grey-975);
    text-decoration: none;
    font-weight: 500;
}

.question-item a:hover {
    color: var(--blue-france);
}

.question-item .date {
    color: var(--grey-625);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* CTA Wallet */
.cta-wallet-section {
    background: linear-gradient(135deg, #000091 0%, #0063CB 100%);
    border-radius: 0.5rem;
    padding: 2rem 2.5rem;
    color: #fff;
}

.cta-wallet-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-wallet-text h2 {
    color: #fff;
}

.cta-wallet-text p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
}

.cta-wallet-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.btn-wallet {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background-color: #fff;
    color: #000091;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-wallet:hover {
    background-color: #E8EDFF;
    transform: translateY(-1px);
}

.cta-wallet-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* Risk callout */
.risk-callout {
    background-color: #FEF4F4;
    border-left: 4px solid #CE0500;
    padding: 1.5rem 2rem;
    border-radius: 0.25rem;
}

.risk-callout .fr-callout__title {
    color: #CE0500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.risk-callout-body ul {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.risk-callout-body li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.risk-callout-body p {
    line-height: 1.6;
}

/* Wallet modal */
.wallet-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.wallet-modal {
    background: #fff;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 480px;
    padding: 2rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.wallet-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--grey-625);
    line-height: 1;
    padding: 0.25rem;
}

.wallet-modal-close:hover {
    color: var(--grey-975);
}

.wallet-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.wallet-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    background: var(--grey-50);
    border: 2px solid var(--grey-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--grey-975);
}

.wallet-option:hover {
    border-color: var(--blue-france);
    background-color: #F5F5FE;
}

.wallet-secure-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #18753C;
    margin-top: 1rem;
}

/* Spinner */
.wallet-connecting {
    text-align: center;
    padding: 2rem 0;
}

.wallet-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--grey-200);
    border-top-color: var(--blue-france);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

/* Wallet success */
.wallet-success {
    text-align: center;
}

.wallet-success code {
    background: var(--grey-50);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    word-break: break-all;
}

.wallet-summary {
    background: var(--grey-50);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    text-align: left;
}

.wallet-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--grey-200);
    font-size: 0.9rem;
}

.wallet-summary-row:last-child {
    border-bottom: none;
}

.wallet-pv-positive {
    color: #18753C;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .demarche-grid {
        grid-template-columns: 1fr;
    }
    .cta-wallet-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-wallet-text p {
        max-width: 100%;
    }
    .wallet-modal {
        margin: 1rem;
        padding: 1.5rem;
    }
    .wallet-options {
        grid-template-columns: 1fr;
    }
}
