.ca-espace { display: grid; gap: 22px; }
.ca-espace--compte { max-width: 640px; margin: 0 auto; width: 100%; }
.ca-espace a { overflow-wrap: anywhere; }

/* Bandeau d'accueil */
.ca-entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: #51145B; color: #fff; border-radius: 20px; }
.ca-bonjour { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: #fff; }
.ca-etat { margin: 4px 0 0; font-size: 16px; }
.ca-etat::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #D5DB2F; }
.ca-entete .ca-etat { color: #f0e4f2; }
.ca-entete__lien { flex: none; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff !important; font-weight: 600; text-decoration: none; }
.ca-entete__lien:hover, .ca-entete__lien:focus-visible { background: rgba(255, 255, 255, .26); }

/* Cartes */
.ca-carte { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: 0 2px 14px rgba(81, 20, 91, .07); }
.ca-carte h2 { margin: 0 0 12px; font-size: 1.2rem; color: #51145B; }
.ca-carte > :last-child { margin-bottom: 0; }
.ca-carte--etroite { max-width: 440px; margin: 0 auto; }
.ca-carte--message { max-width: 720px; margin: 0 auto; width: 100%; }

/* Question */
.ca-tchat { padding: 4px 0 0; }
.ca-tchat h2 { margin: 0 0 12px; font-family: Fraunces, Georgia, serif; font-size: 1.5rem; color: #51145B; }
.ca-tchat__form { display: flex; gap: 10px; align-items: stretch; }
.ca-tchat__form textarea { flex: 1; min-width: 0; min-height: 56px; padding: 14px 16px; border: 1.5px solid #cdb9d1; border-radius: 16px; background: #fff; font-size: 16px; resize: vertical; }
.ca-tchat__form textarea:focus { border-color: #51145B; outline: 2px solid rgba(81, 20, 91, .18); }
.ca-exemples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ca-exemple { padding: 7px 14px; border: 1px solid #dccbe0; border-radius: 999px; background: #fff; color: #51145B; font-size: 16px; cursor: pointer; }
.ca-exemple:hover, .ca-exemple:focus-visible { border-color: #E6007E; background: #fff; color: #51145B; }
.ca-tchat__resultat:not(:empty) { margin-top: 14px; padding: 6px 20px; background: #fff; border-radius: 16px; box-shadow: 0 2px 14px rgba(81, 20, 91, .07); }
.ca-tchat__liste { list-style: none; margin: 8px 0; padding: 0 !important; }
.ca-tchat__liste li { padding: 12px 0; border-bottom: 1px solid #f1e9f2; }
.ca-tchat__liste li:last-child { border-bottom: 0; }
.ca-tchat__liste a { font-weight: 600; }

/* Accès rapides */
.ca-tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ca-tuile { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border-radius: 16px; box-shadow: 0 2px 14px rgba(81, 20, 91, .07); color: #51145B !important; font-weight: 600; line-height: 1.3; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.ca-tuile:hover, .ca-tuile:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(81, 20, 91, .14); }
.ca-tuile svg { flex: none; color: #E6007E; }

/* À lire */
.ca-lire { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
.ca-docs { list-style: none; margin: 0; padding: 0 !important; }
.ca-docs li { padding: 10px 0; border-bottom: 1px solid #f1e9f2; }
.ca-docs li:first-child { padding-top: 0; }
.ca-docs li:last-child { border-bottom: 0; }
.ca-docs a { font-weight: 600; }
.ca-doc-info { display: block; margin-top: 2px; color: #5e5266; font-size: 16px; }
.ca-suite { margin: 12px 0 0; font-weight: 600; }

/* S'investir */
.ca-investir { padding: 20px 24px; border-radius: 20px; background: #F5EEF6; }
.ca-investir summary { display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; align-items: center; list-style: none; cursor: pointer; }
.ca-investir summary::-webkit-details-marker { display: none; }
.ca-investir__titre { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; font-weight: 600; color: #51145B; }
.ca-investir__texte { grid-column: 1; color: #3f3346; }
.ca-investir__action { grid-column: 2; grid-row: 1 / 3; padding: 10px 18px; border-radius: 999px; background: #51145B; color: #fff; font-weight: 600; white-space: nowrap; }
.ca-investir[open] .ca-investir__action { display: none; }
.ca-investir .ca-form { margin-top: 16px; }

/* Formulaires, boutons, messages */
.ca-form p { margin: 0 0 14px; }
.ca-form p:last-child { margin-bottom: 0; }
.ca-form label { display: block; margin-bottom: 5px; font-weight: 600; }
.ca-form input[type="email"], .ca-form input[type="password"], .ca-form input[type="tel"], .ca-form textarea { width: 100%; font-size: 16px; }
.ca-form .ca-note { display: block; margin-top: 5px; }
.ca-case label { font-weight: 400; }
.ca-bouton { display: inline-block; padding: 11px 22px; border: 0; border-radius: 999px; background: #51145B; color: #fff !important; font-weight: 600; text-decoration: none; cursor: pointer; }
.ca-bouton:hover, .ca-bouton:focus { background: #3b0e43; color: #fff; }
.ca-bouton--clair { background: #F5EEF6; color: #51145B !important; }
.ca-bouton--clair:hover, .ca-bouton--clair:focus { background: #eadfec; color: #51145B !important; }
.ca-note { margin: 10px 0 0; font-size: 16px; }
.ca-note--petite { margin-top: 12px; color: #5e5266; }
.ca-message { margin: 0; padding: 11px 15px; border-radius: 12px; background: #F5EEF6; color: #3b0e43; }
.ca-carte .ca-message { margin-bottom: 14px; }
.ca-message--succes { background: #eef6e2; color: #2f4a10; }
.ca-message--alerte { background: #fff4dc; color: #6a4700; }
.ca-message--erreur { background: #fde8ee; color: #8a0f3c; }
.ca-sortie { text-align: right; }
.ca-lien { padding: 0; border: 0; background: none; color: #51145B; text-decoration: underline; cursor: pointer; }
.ca-lien:hover, .ca-lien:focus { background: none; color: #E6007E; }
.ca-cadre { display: block; width: 100%; height: 75vh; border: 0; border-radius: 12px; background: #fff; }
#point { scroll-margin-top: 110px; }

@media (max-width: 860px) {
    .ca-tuiles { grid-template-columns: 1fr 1fr; }
    .ca-lire { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ca-entete { padding: 16px 18px; }
    .ca-carte { padding: 18px; }
    .ca-tchat__form { flex-direction: column; }
    .ca-tuile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
    .ca-investir summary { grid-template-columns: 1fr; }
    .ca-investir__action { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
}
.ca-tchat__form .ca-bouton { align-self: flex-start; }
@media (max-width: 480px) { .ca-tchat__form .ca-bouton { align-self: stretch; } }
.ca-entete__actions { display: flex; flex: none; align-items: center; gap: 14px; }
.ca-entete__actions form { margin: 0; }
.ca-entete__sortie, .ca-entete__sortie:hover, .ca-entete__sortie:focus { padding: 0; border: 0; background: none; color: #fff; font-size: 16px; text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) {
    .ca-entete { flex-direction: column; align-items: flex-start; }
    .ca-entete__actions { flex-wrap: wrap; }
}
