/* ==========================================================================
   Contacturer Capital — Réalisations / Opérations / Souscription
   Couleurs : variables de la charte globale (--cg-*), police : Poppins
   ========================================================================== */

.ccap-page { font-family: var(--cg-font, 'Poppins', sans-serif); color: var(--cg-text-dark, #0f172a); }

.ccap-section-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: var(--cg-primary-soft); border-radius: 100px; font-size: 12px;
    font-weight: 600; color: var(--cg-primary); letter-spacing: .02em;
}
.ccap-gradient-text {
    background: linear-gradient(135deg, var(--cg-primary-dark) 0%, var(--cg-primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ccap-section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; margin: 14px 0 12px; color: var(--cg-dark); }
.ccap-section-sub { color: var(--cg-gray); max-width: 680px; margin: 0 auto; line-height: 1.7; }
.ccap-muted { color: var(--cg-gray); }

/* Hero ------------------------------------------------------------------ */
.ccap-hero {
    position: relative; overflow: hidden; padding: 110px 0 80px;
    background: linear-gradient(135deg, var(--cg-dark) 0%, var(--cg-dark-light) 100%);
    color: #fff;
}
.ccap-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.ccap-hero-glow { position: absolute; inset: 0; opacity: .12; pointer-events: none; }
.ccap-hero-glow span { position: absolute; border-radius: 50%; filter: blur(70px); background: var(--cg-primary); }
.ccap-hero-glow span:nth-child(1) { width: 320px; height: 320px; top: 40px; left: 5%; }
.ccap-hero-glow span:nth-child(2) { width: 420px; height: 420px; bottom: -80px; right: 5%; background: var(--cg-primary-light); }
.ccap-hero-inner { position: relative; z-index: 2; text-align: center; }
.ccap-hero-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; margin-bottom: 22px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 100px;
    color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500; backdrop-filter: blur(6px);
}
.ccap-hero-pill i { color: var(--cg-primary-light); }
.ccap-hero h1 { font-size: clamp(34px, 5.5vw, 62px); font-weight: 800; line-height: 1.1; margin: 0 0 16px; color: #fff; }
.ccap-hero h1 em { font-style: normal; color: var(--cg-primary-light); }
.ccap-hero-subtitle { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.85); font-weight: 500; margin: 0 0 12px; }
.ccap-hero-desc { color: rgba(255,255,255,.6); max-width: 720px; margin: 0 auto; line-height: 1.75; font-size: 16px; }
.ccap-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

.ccap-hero-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 768px) { .ccap-hero-stats { grid-template-columns: repeat(4, 1fr); } }
.ccap-hero-stat-value { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--cg-primary-light); }
.ccap-hero-stat-label { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 4px; }

/* Buttons --------------------------------------------------------------- */
.ccap-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 28px;
    border-radius: 100px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: all .25s ease; font-family: inherit; line-height: 1.2;
}
.ccap-btn-primary {
    background: linear-gradient(135deg, var(--cg-primary), var(--cg-primary-dark)); color: #fff !important;
    box-shadow: 0 10px 24px rgba(var(--cg-primary-rgb), .3);
}
.ccap-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--cg-primary-rgb), .4); color: #fff; }
.ccap-btn-ghost { background: rgba(255,255,255,.1); color: #fff !important; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.ccap-btn-ghost:hover { background: rgba(255,255,255,.2); }
.ccap-btn-outline { background: #fff; color: var(--cg-primary-dark) !important; border-color: var(--cg-primary); }
.ccap-btn-outline:hover { background: var(--cg-primary-soft); }
.ccap-btn-dark { background: var(--cg-dark); color: #fff !important; }
.ccap-btn-dark:hover { background: var(--cg-dark-light); }
.ccap-btn-sm { padding: 9px 18px; font-size: 13px; }
.ccap-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* Layout ---------------------------------------------------------------- */
.ccap-container { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
/* Mêmes marges que le header Capital (px-4 / sm:px-6 / lg:px-8) */
@media (min-width: 640px) { .ccap-container { padding: 0 24px; } }
@media (min-width: 1024px) { .ccap-container { padding: 0 32px; } }
.ccap-section { padding: 80px 0; }
.ccap-section-alt { background: var(--cg-off-white); }
.ccap-section-head { text-align: center; margin-bottom: 44px; }
.ccap-grid { display: grid; gap: 28px; }
.ccap-grid-2 { grid-template-columns: 1fr; }
.ccap-grid-3 { grid-template-columns: 1fr; }
.ccap-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .ccap-grid-2, .ccap-grid-3, .ccap-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ccap-grid-3 { grid-template-columns: repeat(3, 1fr); } .ccap-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Filters --------------------------------------------------------------- */
.ccap-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.ccap-filter-btn {
    padding: 9px 20px; border-radius: 100px; background: #fff; border: 1px solid var(--cg-gray-light);
    cursor: pointer; font-weight: 500; font-size: 14px; color: var(--cg-dark); transition: all .25s ease; font-family: inherit;
}
.ccap-filter-btn.active, .ccap-filter-btn:hover { background: var(--cg-primary); color: #fff; border-color: var(--cg-primary); }
.ccap-filter-group { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.ccap-filter-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cg-gray); font-weight: 600; margin-right: 6px; }

/* Realisation cards ----------------------------------------------------- */
.ccap-card {
    background: #fff; border: 1px solid rgba(var(--cg-primary-rgb), .15); border-radius: 22px; overflow: hidden;
    display: flex; flex-direction: column; height: 100%; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.ccap-card:hover { transform: translateY(-8px); border-color: var(--cg-primary); box-shadow: 0 24px 48px rgba(var(--cg-dark-rgb, 44,46,46), .12); }
.ccap-card-media {
    position: relative; height: 190px; background: linear-gradient(135deg, var(--cg-dark) 0%, var(--cg-dark-light) 100%);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ccap-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ccap-card:hover .ccap-card-media img { transform: scale(1.05); }
.ccap-card-media .ccap-card-placeholder { font-size: 44px; color: rgba(255,255,255,.35); }
.ccap-card-media-logo { padding: 24px; background: #fff; }
.ccap-card-media-logo img { object-fit: contain; }
.ccap-card-tag {
    position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 100px; background: rgba(255,255,255,.92);
    color: var(--cg-primary-dark); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ccap-card-year { position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 100px; background: var(--cg-primary); color: #fff; font-size: 12px; font-weight: 700; }
.ccap-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ccap-card-client { font-size: 12px; color: var(--cg-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.ccap-card-title { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; color: var(--cg-dark); }
.ccap-card-title a { color: inherit; text-decoration: none; }
.ccap-card-excerpt { color: var(--cg-gray); font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.ccap-card-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 14px 0; border-top: 1px solid rgba(var(--cg-primary-rgb), .12); margin-top: auto; }
.ccap-card-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cg-gray); }
.ccap-card-meta-item i { color: var(--cg-primary); }
.ccap-card-amount { font-size: 18px; font-weight: 800; color: var(--cg-dark); }
.ccap-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--cg-primary-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.ccap-card-link:hover { gap: 12px; }

/* Expertise cards -------------------------------------------------------- */
.ccap-expertise { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--cg-gray-light); transition: all .3s ease; height: 100%; }
.ccap-expertise:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.07); border-color: var(--cg-primary); }
.ccap-expertise-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--cg-primary-soft); display: flex; align-items: center; justify-content: center; color: var(--cg-primary); font-size: 22px; margin-bottom: 18px; }
.ccap-expertise h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--cg-dark); }
.ccap-expertise p { color: var(--cg-gray); font-size: 14px; line-height: 1.65; margin: 0; }

/* CTA -------------------------------------------------------------------- */
.ccap-cta { background: linear-gradient(135deg, var(--cg-dark) 0%, var(--cg-dark-light) 100%); border-radius: 30px; padding: 56px 32px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.ccap-cta::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--cg-primary); opacity: .12; filter: blur(80px); top: -150px; right: -100px; }
.ccap-cta h2 { color: #fff; font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin: 0 0 12px; position: relative; }
.ccap-cta p { color: rgba(255,255,255,.65); max-width: 620px; margin: 0 auto 28px; line-height: 1.7; position: relative; }
.ccap-cta .ccap-hero-actions { margin-top: 0; position: relative; }

/* Single réalisation ----------------------------------------------------- */
.ccap-single-hero { padding: 120px 0 60px; }
.ccap-single-hero .ccap-hero-inner { text-align: left; }
.ccap-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.ccap-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.ccap-breadcrumb a:hover { color: #fff; }
.ccap-single-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 1024px) { .ccap-single-layout { grid-template-columns: 2fr 1fr; } }
.ccap-prose { line-height: 1.8; color: var(--cg-text-dark); font-size: 16px; }
.ccap-prose p { margin: 0 0 18px; }
.ccap-prose h2, .ccap-prose h3 { color: var(--cg-dark); font-weight: 700; margin: 28px 0 12px; }
.ccap-prose ul { padding-left: 22px; margin-bottom: 18px; }
.ccap-prose img { max-width: 100%; border-radius: 16px; }
.ccap-sidecard { background: #fff; border: 1px solid var(--cg-gray-light); border-radius: 22px; padding: 26px; margin-bottom: 22px; }
.ccap-sidecard h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cg-primary-dark); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.ccap-detail-list { list-style: none; margin: 0; padding: 0; }
.ccap-detail-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--cg-gray-light); font-size: 14px; }
.ccap-detail-list li:last-child { border-bottom: 0; }
.ccap-detail-list span { color: var(--cg-gray); }
.ccap-detail-list strong { text-align: right; color: var(--cg-dark); }
.ccap-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ccap-highlight { background: var(--cg-primary-soft); border-radius: 16px; padding: 16px; text-align: center; }
.ccap-highlight-value { font-size: 22px; font-weight: 800; color: var(--cg-primary-dark); }
.ccap-highlight-label { font-size: 12px; color: var(--cg-gray); margin-top: 4px; }
.ccap-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .ccap-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.ccap-gallery-grid a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.ccap-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ccap-gallery-grid a:hover img { transform: scale(1.06); }
.ccap-related { margin-top: 60px; }

/* Operation cards -------------------------------------------------------- */
.ccap-op {
    background: #fff; border: 1px solid rgba(var(--cg-primary-rgb), .18); border-radius: 22px; padding: 26px;
    display: flex; flex-direction: column; height: 100%; position: relative; transition: all .3s ease;
}
.ccap-op:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(var(--cg-dark-rgb, 44,46,46), .12); border-color: var(--cg-primary); }
.ccap-op.is-selected { border-color: var(--cg-primary); box-shadow: 0 0 0 3px var(--cg-primary-soft); }
.ccap-op-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.ccap-op-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--cg-off-white); border: 1px solid var(--cg-gray-light); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.ccap-op-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ccap-op-logo i { color: var(--cg-primary); font-size: 22px; }
.ccap-op-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ccap-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.ccap-badge-primaire { background: var(--cg-primary-soft); color: var(--cg-primary-dark); }
.ccap-badge-secondaire { background: rgba(var(--cg-dark-rgb, 44,46,46), .08); color: var(--cg-dark); }
.ccap-badge-ouverte { background: rgba(5,150,105,.12); color: #059669; }
.ccap-badge-a_venir { background: rgba(217,119,6,.12); color: #d97706; }
.ccap-badge-cloturee { background: rgba(220,38,38,.1); color: #dc2626; }
.ccap-badge-nature { background: #f1f5f9; color: var(--cg-gray); }
.ccap-op-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0; color: var(--cg-dark); }
.ccap-op-title a { color: inherit; text-decoration: none; }
.ccap-op-issuer { font-size: 13px; color: var(--cg-gray); margin-top: 2px; }
.ccap-op-price { background: var(--cg-off-white); border-radius: 16px; padding: 14px 16px; margin: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ccap-op-price-label { font-size: 12px; color: var(--cg-gray); }
.ccap-op-price-value { font-size: 20px; font-weight: 800; color: var(--cg-primary-dark); }
.ccap-op-price-value small { font-size: 12px; font-weight: 500; color: var(--cg-gray); }
.ccap-op-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13px; margin-bottom: 14px; }
.ccap-op-meta div { display: flex; align-items: center; gap: 7px; color: var(--cg-gray); }
.ccap-op-meta i { color: var(--cg-primary); width: 14px; text-align: center; }
.ccap-op-excerpt { font-size: 14px; color: var(--cg-gray); line-height: 1.65; margin-bottom: 16px; }
.ccap-op-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.ccap-op-actions .ccap-btn { flex: 1; }
.ccap-op-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ccap-op-docs a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cg-primary-dark); text-decoration: none; padding: 5px 10px; border-radius: 8px; background: var(--cg-primary-soft); }
.ccap-op-featured { position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, var(--cg-primary), var(--cg-primary-dark)); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 100px; }

.ccap-market-notes { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
@media (min-width: 768px) { .ccap-market-notes { grid-template-columns: 1fr 1fr; } }
.ccap-market-note { border-radius: 18px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--cg-gray-light); background: #fff; }
.ccap-market-note i { font-size: 22px; color: var(--cg-primary); flex-shrink: 0; margin-top: 2px; }
.ccap-market-note strong { display: block; margin-bottom: 4px; color: var(--cg-dark); }
.ccap-market-note p { margin: 0; font-size: 14px; color: var(--cg-gray); line-height: 1.6; }

/* Steps ------------------------------------------------------------------ */
.ccap-step { text-align: center; padding: 10px; }
.ccap-step-icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--cg-primary-soft); display: flex; align-items: center; justify-content: center; color: var(--cg-primary); font-size: 26px; position: relative; }
.ccap-step-num { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--cg-primary); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ccap-step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--cg-dark); }
.ccap-step p { color: var(--cg-gray); font-size: 14px; line-height: 1.6; margin: 0; }

/* FAQ -------------------------------------------------------------------- */
.ccap-faq { max-width: 820px; margin: 0 auto; }
.ccap-faq-item { background: #fff; border: 1px solid var(--cg-gray-light); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.ccap-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: none; border: 0; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--cg-dark); text-align: left; cursor: pointer; }
.ccap-faq-q i { color: var(--cg-primary); transition: transform .3s ease; }
.ccap-faq-item.open .ccap-faq-q i { transform: rotate(180deg); }
.ccap-faq-a { display: none; padding: 0 22px 20px; color: var(--cg-gray); font-size: 14.5px; line-height: 1.7; }
.ccap-faq-item.open .ccap-faq-a { display: block; }

/* Formulaire ------------------------------------------------------------- */
.ccap-form-wrap { max-width: 980px; margin: 0 auto; background: #fff; border-radius: 28px; border: 1px solid var(--cg-gray-light); box-shadow: 0 30px 60px rgba(0,0,0,.06); overflow: hidden; }
.ccap-form-head { background: linear-gradient(135deg, var(--cg-dark) 0%, var(--cg-dark-light) 100%); color: #fff; padding: 30px 34px; }
.ccap-form-head h2 { color: #fff; margin: 8px 0 6px; font-size: 24px; font-weight: 700; }
.ccap-form-head p { color: rgba(255,255,255,.65); margin: 0; font-size: 14px; }
.ccap-steps { display: flex; gap: 6px; padding: 18px 34px 0; background: var(--cg-off-white); border-bottom: 1px solid var(--cg-gray-light); overflow-x: auto; }
.ccap-steps-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; font-size: 13px; font-weight: 600; color: var(--cg-gray); border-bottom: 3px solid transparent; white-space: nowrap; }
.ccap-steps-item span { width: 24px; height: 24px; border-radius: 50%; background: var(--cg-gray-light); color: var(--cg-dark); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ccap-steps-item.active { color: var(--cg-primary-dark); border-bottom-color: var(--cg-primary); }
.ccap-steps-item.active span { background: var(--cg-primary); color: #fff; }
.ccap-steps-item.done span { background: #059669; color: #fff; }
.ccap-form-body { padding: 30px 34px 34px; }
@media (max-width: 640px) { .ccap-form-head, .ccap-form-body { padding: 22px 18px; } .ccap-steps { padding: 12px 18px 0; } }
.ccap-step-panel { display: none; }
.ccap-step-panel.active { display: block; animation: ccapFade .3s ease; }
@keyframes ccapFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ccap-fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.ccap-fieldset legend { font-size: 15px; font-weight: 700; color: var(--cg-primary-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--cg-gray-light); width: 100%; display: flex; align-items: center; gap: 8px; }
.ccap-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .ccap-row-2 { grid-template-columns: 1fr 1fr; } .ccap-row-3 { grid-template-columns: repeat(3, 1fr); } }
.ccap-field label { display: block; font-size: 13px; font-weight: 600; color: var(--cg-dark); margin-bottom: 6px; }
.ccap-field label .req { color: #dc2626; }
.ccap-field input[type=text], .ccap-field input[type=email], .ccap-field input[type=tel], .ccap-field input[type=number], .ccap-field input[type=date], .ccap-field select, .ccap-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--cg-gray-light); border-radius: 12px; font-family: inherit; font-size: 15px; color: var(--cg-dark); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.ccap-field input:focus, .ccap-field select:focus, .ccap-field textarea:focus { outline: none; border-color: var(--cg-primary); box-shadow: 0 0 0 3px var(--cg-primary-soft); }
.ccap-field.has-error input, .ccap-field.has-error select, .ccap-field.has-error textarea { border-color: #dc2626; }
.ccap-field-error { color: #dc2626; font-size: 12px; margin-top: 5px; display: none; }
.ccap-field.has-error .ccap-field-error { display: block; }
.ccap-help { font-size: 12px; color: var(--cg-gray); margin-top: 5px; }
.ccap-choice { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px) { .ccap-choice { grid-template-columns: 1fr 1fr; } }
.ccap-choice label { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--cg-gray-light); border-radius: 16px; cursor: pointer; transition: all .2s; }
.ccap-choice label:hover { border-color: var(--cg-primary-light); }
.ccap-choice input { margin-top: 3px; accent-color: var(--cg-primary); }
.ccap-choice label.checked { border-color: var(--cg-primary); background: var(--cg-primary-soft); }
.ccap-choice strong { display: block; font-size: 15px; color: var(--cg-dark); }
.ccap-choice span { font-size: 13px; color: var(--cg-gray); }
.ccap-file { border: 2px dashed var(--cg-gray-light); border-radius: 14px; padding: 16px; text-align: center; transition: border-color .2s; position: relative; }
.ccap-file:hover { border-color: var(--cg-primary); }
.ccap-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ccap-file i { color: var(--cg-primary); font-size: 22px; margin-bottom: 6px; display: block; }
.ccap-file .ccap-file-name { font-size: 13px; font-weight: 600; color: var(--cg-dark); }
.ccap-file .ccap-file-hint { font-size: 12px; color: var(--cg-gray); }
.ccap-summary { background: var(--cg-off-white); border-radius: 18px; padding: 20px 22px; margin-bottom: 20px; }
.ccap-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--cg-gray-light); font-size: 14px; }
.ccap-summary-row:last-child { border-bottom: 0; }
.ccap-summary-row span { color: var(--cg-gray); }
.ccap-summary-row strong { text-align: right; color: var(--cg-dark); }
.ccap-summary-total { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--cg-primary-dark), var(--cg-primary)); color: #fff; border-radius: 14px; padding: 16px 20px; margin-top: 12px; font-weight: 700; font-size: 18px; }
.ccap-summary-total small { display: block; font-size: 12px; font-weight: 400; opacity: .85; }
.ccap-bank { border: 1px solid var(--cg-gray-light); border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.ccap-bank-head { background: var(--cg-dark); color: #fff; padding: 14px 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ccap-bank-body { padding: 18px 20px; }
.ccap-bank-body .ccap-detail-list strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.ccap-bank-note { font-size: 13px; color: var(--cg-gray); background: var(--cg-primary-soft); border-radius: 12px; padding: 12px 14px; margin-top: 12px; line-height: 1.6; }
.ccap-alert { border-radius: 14px; padding: 14px 18px; font-size: 14px; margin-bottom: 18px; display: none; }
.ccap-alert.show { display: block; }
.ccap-alert-error { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.2); }
.ccap-alert-info { background: var(--cg-primary-soft); color: var(--cg-primary-dark); border: 1px solid rgba(var(--cg-primary-rgb), .3); }
.ccap-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--cg-text-dark); line-height: 1.6; padding: 16px; background: var(--cg-off-white); border-radius: 14px; }
.ccap-consent input { margin-top: 4px; accent-color: var(--cg-primary); flex-shrink: 0; }
.ccap-form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ccap-hidden { display: none !important; }
.ccap-success { text-align: center; padding: 20px 0; }
.ccap-success-icon { width: 90px; height: 90px; border-radius: 50%; background: rgba(5,150,105,.12); color: #059669; display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 20px; }
.ccap-success h3 { font-size: 24px; font-weight: 700; margin: 0 0 8px; color: var(--cg-dark); }
.ccap-success-number { display: inline-block; margin: 12px 0 20px; padding: 10px 22px; border-radius: 100px; background: var(--cg-primary-soft); color: var(--cg-primary-dark); font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.ccap-success .ccap-bank, .ccap-success .ccap-summary { text-align: left; }
.ccap-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: ccapSpin .8s linear infinite; }
@keyframes ccapSpin { to { transform: rotate(360deg); } }
.ccap-empty { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed var(--cg-gray-light); border-radius: 22px; color: var(--cg-gray); }
.ccap-empty i { font-size: 36px; color: var(--cg-primary); margin-bottom: 12px; display: block; }
.ccap-qty-control { display: flex; align-items: stretch; }
.ccap-qty-control button { width: 46px; border: 1px solid var(--cg-gray-light); background: var(--cg-off-white); font-size: 18px; cursor: pointer; color: var(--cg-dark); font-family: inherit; }
.ccap-qty-control button:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.ccap-qty-control button:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.ccap-qty-control input { border-radius: 0 !important; text-align: center; font-weight: 700; }
.ccap-live-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--cg-primary-soft); border-radius: 16px; padding: 16px 20px; margin-top: 8px; }
.ccap-live-total span { font-size: 13px; color: var(--cg-primary-dark); }
.ccap-live-total strong { font-size: 22px; font-weight: 800; color: var(--cg-primary-dark); }


/* Page Réalisations : introduction claire + cartes numérotées ------------ */
.ccap-real-section { padding: 64px 0 88px; background: var(--cg-off-white, #f8fafb); }
.ccap-real-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.ccap-real-intro .ccap-section-badge i { margin-right: 6px; }
.ccap-real-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.15; margin: 14px 0 16px; color: var(--cg-dark); }
.ccap-real-text { color: var(--cg-gray); font-size: 16px; line-height: 1.75; }
.ccap-real-text p { margin: 0 0 12px; }
.ccap-real-text p:last-child { margin-bottom: 0; }
.ccap-real-section .ccap-filters { margin-bottom: 36px; }

.ccap-real-card { border-radius: 18px; border-color: rgba(var(--cg-primary-rgb), .14); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.ccap-real-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 23, 42, .08); }
.ccap-real-card .ccap-card-media { height: auto; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(var(--cg-primary-rgb), .10) 0%, rgba(var(--cg-primary-rgb), .22) 100%); }
.ccap-real-card .ccap-card-placeholder { font-size: 40px; color: var(--cg-primary); opacity: .55; }
.ccap-real-card .ccap-card-tag { box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.ccap-real-card .ccap-card-body { padding: 22px 22px 20px; }
.ccap-real-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.ccap-real-num { flex-shrink: 0; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--cg-primary-rgb), .10); color: var(--cg-primary-dark, var(--cg-primary)); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccap-real-head-text { min-width: 0; }
.ccap-real-card .ccap-card-client { margin-bottom: 4px; font-size: 11.5px; }
.ccap-real-card .ccap-card-title { font-size: 17px; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccap-real-card .ccap-card-title a:hover { color: var(--cg-primary-dark, var(--cg-primary)); }
.ccap-real-card .ccap-card-excerpt { font-size: 14px; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccap-real-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid rgba(var(--cg-primary-rgb), .12); }
.ccap-real-fact { min-width: 0; }
.ccap-real-fact-amount { grid-column: 1 / -1; }
.ccap-real-fact dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cg-gray); margin-bottom: 2px; }
.ccap-real-fact dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--cg-dark); line-height: 1.4; overflow-wrap: anywhere; }
.ccap-real-fact-amount dd { font-size: 18px; font-weight: 700; }
.ccap-real-card .ccap-card-link { margin-top: 18px; }
@media (max-width: 640px) {
    .ccap-real-section { padding: 40px 0 64px; }
    .ccap-real-intro { margin-bottom: 32px; }
    .ccap-real-text { font-size: 15px; }
}
.ccap-empty .ccap-empty-icon { display: block; text-align: center; margin-bottom: 12px; }
.ccap-empty .ccap-empty-icon i { display: inline-block; margin: 0; }

/* Cartes Réalisations : zone logo claire */
.ccap-real-card .ccap-card-media.ccap-real-logo { aspect-ratio: auto; height: 170px; padding: 46px 28px 22px; background: #fff; border-bottom: 1px solid rgba(var(--cg-primary-rgb), .10); }
.ccap-real-card .ccap-real-logo img { width: auto; height: auto; max-width: 78%; max-height: 100%; object-fit: contain; transition: transform .4s ease; }
.ccap-real-card:hover .ccap-real-logo img { transform: scale(1.04); }
.ccap-real-monogram { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ccap-real-monogram-badge { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cg-primary), var(--cg-primary-dark, var(--cg-primary))); color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.ccap-real-monogram-name { font-size: 15px; font-weight: 700; color: var(--cg-dark); line-height: 1.3; }
.ccap-real-card .ccap-card-tag { top: 12px; left: 12px; background: rgba(var(--cg-primary-rgb), .10); color: var(--cg-primary-dark, var(--cg-primary)); box-shadow: none; font-size: 10.5px; }
.ccap-real-card .ccap-card-year { top: 12px; right: 12px; font-size: 11.5px; }
.ccap-single-logo { display: flex; align-items: center; justify-content: center; width: 132px; height: 92px; padding: 14px; margin-bottom: 18px; background: #fff; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.ccap-single-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ccap-real-card .ccap-real-logo img { max-width: min(190px, 72%); max-height: 86px; }
@media (max-width: 640px) {
    .ccap-real-section .ccap-filters { margin-left: -16px; margin-right: -16px; }
    .ccap-real-section .ccap-filter-group { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .ccap-real-section .ccap-filter-group::-webkit-scrollbar { display: none; }
    .ccap-real-section .ccap-filter-btn, .ccap-real-section .ccap-filter-label { flex-shrink: 0; white-space: nowrap; }
}
