/* ===========================================
   CSO Shortcodes — Frontend Styles
   =========================================== */

/* ---- Generic box ---- */
.cso-box {
    margin: 24px 0;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
}

.cso-box-header {
    padding: 12px 18px;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.cso-box-icon {
    margin-right: 4px;
}

.cso-box-content {
    padding: 14px 18px 16px;
    background: #fff;
}

.cso-box-content p:first-child { margin-top: 0; }
.cso-box-content p:last-child { margin-bottom: 0; }

/* ---- Attention (orange/red) ---- */
.cso-box-attention {
    border-color: #e8a838;
}
.cso-box-attention .cso-box-header {
    background: #fef3e2;
    color: #8a5d00;
    border-bottom: 1px solid #f0d9a8;
}
.cso-box-attention .cso-box-content {
    background: #fffcf6;
}

/* ---- Bon à savoir (green) ---- */
.cso-box-bon-a-savoir {
    border-color: #4caf50;
}
.cso-box-bon-a-savoir .cso-box-header {
    background: #e8f5e9;
    color: #2e7d32;
    border-bottom: 1px solid #c8e6c9;
}
.cso-box-bon-a-savoir .cso-box-content {
    background: #f9fdf9;
}

/* ---- Exemple (blue) ---- */
.cso-box-exemple {
    border-color: #42a5f5;
}
.cso-box-exemple .cso-box-header {
    background: #e3f2fd;
    color: #1565c0;
    border-bottom: 1px solid #bbdefb;
}
.cso-box-exemple .cso-box-content {
    background: #f8fbff;
}

/* ---- À retenir (purple) ---- */
.cso-box-a-retenir {
    border-color: #ab47bc;
}
.cso-box-a-retenir .cso-box-header {
    background: #f3e5f5;
    color: #7b1fa2;
    border-bottom: 1px solid #e1bee7;
}
.cso-box-a-retenir .cso-box-content {
    background: #fdf8fe;
}

/* ---- CTA (dark / branded) ---- */
.cso-box-cta {
    border-color: #1a3a5c;
    text-align: center;
}
.cso-box-cta .cso-box-header {
    background: #1a3a5c;
    color: #fff;
    border-bottom: none;
}
.cso-box-cta .cso-box-content {
    background: #f4f8fc;
    padding-bottom: 8px;
}
.cso-box-button {
    padding: 8px 18px 18px;
    background: #f4f8fc;
    text-align: center;
}
.cso-btn-cta {
    display: inline-block;
    padding: 12px 28px;
    background: #1a3a5c;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.cso-btn-cta:hover {
    background: #264d73;
    color: #fff !important;
}

/* ---- Loi / référence juridique ---- */
.cso-box-loi {
    border-color: #78909c;
}
.cso-box-loi .cso-box-header {
    background: #eceff1;
    color: #37474f;
    border-bottom: 1px solid #cfd8dc;
    font-style: italic;
}
.cso-box-loi .cso-box-content {
    background: #fafbfc;
    font-style: italic;
    color: #455a64;
}

/* ---- Chiffre clé ---- */
.cso-box-chiffre {
    border-color: #ff7043;
}
.cso-box-chiffre .cso-box-header {
    background: #fbe9e7;
    color: #bf360c;
    border-bottom: 1px solid #ffccbc;
}
.cso-box-chiffre .cso-box-content {
    background: #fffaf8;
}

/* ---- Témoignage ---- */
.cso-temoignage {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f9f9f9;
    border-left: 4px solid #90a4ae;
    border-radius: 0 6px 6px 0;
    font-style: normal;
    position: relative;
}
.cso-temoignage::before {
    content: "\201C";
    font-size: 48px;
    color: #cfd8dc;
    position: absolute;
    top: -4px;
    left: 12px;
    font-family: Georgia, serif;
    line-height: 1;
}
.cso-temoignage .cso-temoignage-content {
    padding-left: 28px;
}
.cso-temoignage .cso-temoignage-content p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.65;
    color: #444;
}
.cso-temoignage .cso-temoignage-content p:last-child {
    margin-bottom: 0;
}
.cso-temoignage-auteur {
    display: block;
    margin-top: 12px;
    padding-left: 28px;
    font-style: normal;
    font-weight: 600;
    color: #607d8b;
    font-size: 14px;
}

/* ---- FAQ ---- */
.cso-faq {
    margin: 32px 0;
}
.cso-faq-title {
    margin-bottom: 16px;
}
.cso-faq-item {
    margin-bottom: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.cso-faq-question {
    margin: 0;
    padding: 14px 18px;
    background: #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: default;
    border-bottom: 1px solid #e8e8e8;
}
.cso-faq-answer {
    padding: 14px 18px;
    background: #fff;
}
.cso-faq-answer p:first-child { margin-top: 0; }
.cso-faq-answer p:last-child { margin-bottom: 0; }

/* ---- Small images (cso-img-small) ---- */
.cso-img-small {
    display: block;
    max-width: 320px;
    margin: 24px auto;
    text-align: center;
}
.cso-img-small img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cso-img-small figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .cso-box { margin: 16px 0; }
    .cso-box-header { padding: 10px 14px; font-size: 14px; }
    .cso-box-content { padding: 12px 14px; font-size: 14px; }
    .cso-temoignage { padding: 16px; }
    .cso-temoignage::before { font-size: 36px; left: 8px; }
    .cso-temoignage .cso-temoignage-content { padding-left: 20px; }
    .cso-temoignage-auteur { padding-left: 20px; }
    .cso-btn-cta { padding: 10px 20px; font-size: 14px; }
    .cso-img-small { max-width: 240px; }
}
