/* =========================================================
   CAS CLIENTS
   1. Cartes de l'accueil (liens vers la page dédiée)
   2. Page d'un cas client
   ========================================================= */

/* ---------------------------------------------------------
   1. Cartes
   --------------------------------------------------------- */
a.cc-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}
a.cc-card:focus-visible { outline: 3px solid #1DBF73; outline-offset: 3px; }

/* Flèche indiquant que la carte mène ailleurs */
.cc-chevron {
    position: absolute;
    right: 14px; bottom: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform .25s ease;
}
.cc-chevron::before {
    content: "";
    width: 7px; height: 7px;
    border-right: 2px solid #0077FF;
    border-bottom: 2px solid #0077FF;
    transform: translateX(-2px) rotate(-45deg);
}
a.cc-card:hover .cc-chevron { transform: translateX(3px); }

/* ---------------------------------------------------------
   2. Page d'un cas client
   --------------------------------------------------------- */
.cc-page {
    padding: 120px 24px 80px;
    background: #F8F9FB;
}

.cc-page-wrap {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.cc-breadcrumb {
    display: inline-block;
    margin-bottom: 22px;
    font-size: .85rem;
    font-weight: 700;
    color: #6B7280;
    text-decoration: none;
    transition: color .2s;
}
.cc-breadcrumb:hover { color: #1DBF73; }

.cc-page-head { margin-bottom: 26px; }
.cc-page-head h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 10px;
    text-align: left;
}
.cc-page-excerpt {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
    text-align: left;
    max-width: 70ch;
}

.cc-article {
    background: #FFF;
    border: 1px solid #E2E5EA;
    border-radius: 16px;
    box-shadow: 0 6px 26px rgba(0,0,0,.05);
    padding: 38px 42px;
    text-align: left;
}
.cc-article::after { content: ""; display: table; clear: both; }

/* ---------------------------------------------------------
   Image : six dispositions, largeur pilotée par --cc-img-w
   --------------------------------------------------------- */
.cc-article { --cc-img-w: 42%; }

.cc-figure { margin: 0 0 18px; }
.cc-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.cc-figure figcaption {
    margin-top: 8px;
    font-size: .8rem;
    line-height: 1.45;
    color: #6B7280;
    text-align: left;
}

/* Flottante : le texte habille l'image puis reprend la pleine largeur */
.cc-lay--float-left  .cc-figure { float: left;  width: var(--cc-img-w); margin-right: 32px; }
.cc-lay--float-right .cc-figure { float: right; width: var(--cc-img-w); margin-left: 32px; }

/* Colonne : le texte reste à côté de l'image */
.cc-lay--col-left,
.cc-lay--col-right {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.cc-lay--col-left  .cc-figure,
.cc-lay--col-right .cc-figure {
    width: var(--cc-img-w);
    flex-shrink: 0;
    margin-bottom: 0;
}
.cc-lay--col-left  .cc-body,
.cc-lay--col-right .cc-body { flex: 1; min-width: 0; }
.cc-lay--col-right .cc-figure { order: 2; }
.cc-lay--col-right .cc-body   { order: 1; }

/* Pleine largeur */
.cc-lay--top .cc-figure { width: 100%; margin-bottom: 26px; }
.cc-lay--bottom { display: flex; flex-direction: column; }
.cc-lay--bottom .cc-figure { order: 2; width: 100%; margin: 30px 0 0; }
.cc-lay--bottom .cc-body   { order: 1; }

.cc-noimg .cc-body { max-width: 84ch; }

/* ---------------------------------------------------------
   Typographie de l'article
   Préfixé .cc-article pour passer devant style.css
   --------------------------------------------------------- */
.cc-article .cc-body { text-align: left; }

.cc-article .cc-body h2 {
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 28px 0 10px;
    text-align: left;
}
.cc-article .cc-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 22px 0 8px;
    text-align: left;
}
.cc-article .cc-body h2:first-child,
.cc-article .cc-body h3:first-child { margin-top: 0; }

.cc-article .cc-body p {
    font-size: .98rem;
    line-height: 1.7;
    margin: 0 0 14px;
    text-align: left;
}

.cc-article .cc-body ul,
.cc-article .cc-body ol {
    margin: 0 0 16px;
    padding-left: 1.25em;
    line-height: 1.7;
    text-align: left;
}
.cc-article .cc-body li { margin-bottom: 6px; }

.cc-article .cc-body blockquote {
    margin: 18px 0;
    padding: 4px 0 4px 16px;
    border-left: 3px solid #1DBF73;
    color: #4B5563;
}

.cc-article .cc-body a { color: #0077FF; }
.cc-article .cc-body strong { font-weight: 700; }
.cc-article .cc-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* Lignes vides produites par l'éditeur */
.cc-article .cc-body p:empty { display: none; }
.cc-article .cc-body p:has(> br:only-child) { margin: 0; height: .5em; }

/* ---------------------------------------------------------
   Actions
   --------------------------------------------------------- */
.cc-actions {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.cc-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: .85rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #1DBF73, #0077FF);
    box-shadow: 0 6px 16px rgba(0,119,255,.18);
    transition: transform .18s, box-shadow .18s;
}
.cc-link:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,119,255,.24); }

.cc-close {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E2E5EA;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: .85rem;
    font-weight: 700;
    color: #6B7280;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.cc-close:hover { border-color: #1DBF73; color: #1DBF73; }

/* ---------------------------------------------------------
   Autres cas clients
   --------------------------------------------------------- */
.cc-more { margin-top: 48px; }
.cc-more h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 16px;
    text-align: left;
}
.cc-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.cc-more-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #FFF;
    border: 1px solid #E2E5EA;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .18s;
}
.cc-more-card:hover { border-color: #1DBF73; transform: translateY(-2px); }
.cc-more-img {
    width: 72px; height: 54px;
    flex-shrink: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}
.cc-more-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-more-txt strong { font-size: .9rem; font-weight: 700; }
.cc-more-txt em {
    font-style: normal;
    font-size: .78rem;
    color: #6B7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */
@media (max-width: 820px) {
    .cc-page { padding: 96px 14px 56px; }
    .cc-page-head h1 { font-size: 1.6rem; }
    .cc-article { padding: 24px 20px; border-radius: 12px; }

    .cc-lay--float-left  .cc-figure,
    .cc-lay--float-right .cc-figure,
    .cc-lay--col-left    .cc-figure,
    .cc-lay--col-right   .cc-figure,
    .cc-lay--top         .cc-figure {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }
    .cc-lay--col-left,
    .cc-lay--col-right { display: block; }
    .cc-lay--bottom .cc-figure { margin: 22px 0 0; }
}
