/* =========================================================
   MHPSS ProCare Firm
   Pages legales : Politique de confidentialite, Conditions
   d utilisation (bloc HZ Legal document)

   Le bloc rend l en-tete, le sommaire et les articles ;
   le texte est fait de blocs du coeur (groupes, titres,
   paragraphes, listes, tableaux). Les numeros d article et de
   sous-article sont des compteurs CSS : aucun numero a saisir.

   Aucun fond n est peint : le degrade du corps du document
   doit rester visible.
   ========================================================= */

.hzc-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #3b4756;
    line-height: 1.7;
    padding: 2rem 1.25rem 5rem;
    font-size: 1rem;
}

.hzc-page * {
    box-sizing: border-box;
}

.hzc-in {
    max-width: 68rem;
    margin: 0 auto;
}

/* Ligne des titres */

.wp-site-blocks .hzc-page {
    padding-top: calc(var(--hz-titre) - 41px) !important;
}

/* ---------------------------------------------------------
   En-tete
   --------------------------------------------------------- */

.hzc-hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Moins d air quand l encadre d urgence suit l en-tete. */
.hz-legal--notice .hzc-hero {
    margin-bottom: 2.5rem;
}

.hzc-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0e8388;
    margin-bottom: 1rem;
}

.hzc-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #17405e;
    margin: 0 0 0.75rem;
}

.hzc-firme {
    font-size: 1.05rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 1.25rem;
}

.hzc-maj {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #64748b;
    background: rgba(7, 71, 107, 0.06);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    margin: 0;
}

/* ---------------------------------------------------------
   Encadre d urgence (groupe au style « HZ – Encadre d urgence »)
   --------------------------------------------------------- */

.hzc-page .is-style-hz-urgence {
    max-width: 46rem;
    margin: 0 auto 3.5rem;
    background: #fff8f2;
    border: 1px solid #f5d9c0;
    border-left: 5px solid #fa7268;
    border-radius: 1rem;
    padding: 1.6rem 1.8rem;
    color: #7c3a26;
    box-shadow: 0 12px 30px rgba(250, 114, 104, 0.10);
}

.hzc-page .is-style-hz-urgence h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9a3412;
    margin: 0 0 0.9rem;
}

.hzc-page .is-style-hz-urgence h2::before {
    content: "!";
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fa7268;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

.hzc-page .is-style-hz-urgence p {
    margin: 0 0 0.7rem;
    font-size: 0.96rem;
}

.hzc-page .is-style-hz-urgence p:last-child {
    margin-bottom: 0;
}

.hzc-page .is-style-hz-urgence strong {
    color: #9a3412;
}

.hzc-page .is-style-hz-urgence .is-style-hz-cle {
    font-size: 1rem;
}

.hzc-page .is-style-hz-urgence .wp-block-list {
    margin: 0.6rem 0 0.9rem;
}

.hzc-page .is-style-hz-urgence .wp-block-list li::marker {
    color: #fa7268;
}

/* ---------------------------------------------------------
   Deux colonnes : sommaire et texte
   --------------------------------------------------------- */

.hzc-corps {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.hzc-somm {
    position: sticky;
    top: calc(var(--hz-bandeau, 5.1rem) + 1.5rem);
}

.hzc-somm>span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    padding-bottom: 0.7rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #dbe3ea;
}

.hzc-somm ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hzc-somm a {
    display: flex;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.83rem;
    line-height: 1.4;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hzc-somm a:hover {
    color: #0e8388;
}

.hzc-som-no {
    flex: 0 0 1.1rem;
    font-weight: 700;
    color: #a8b4c2;
}

/* ---------------------------------------------------------
   Articles
   --------------------------------------------------------- */

.hz-legal .hzc-texte {
    counter-reset: hzc-art;
}

.hz-legal .hzc-art {
    counter-increment: hzc-art;
    counter-reset: hzc-sous;
}

.hzc-art {
    scroll-margin-top: calc(var(--hz-bandeau, 5.1rem) + 1.5rem);
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e3eaf0;
}

.hzc-art:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.hzc-art h2 {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    color: #17405e;
    margin: 0 0 1.2rem;
}

.hz-legal .hzc-art h3 {
    counter-increment: hzc-sous;
}

.hzc-art h3 {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #07476b;
    margin: 2rem 0 0.8rem;
}

.hzc-art h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #07476b;
    margin: 1.5rem 0 0.6rem;
}

/* Numeros : 1, 2... pour les articles, 2.1, 2.2... pour les
   sous-articles. */
.hz-legal .hzc-art>h2::before,
.hz-legal .hzc-art>h3::before {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    color: #a8cf38;
    font-weight: 800;
}

.hz-legal .hzc-art>h2::before {
    content: counter(hzc-art);
}

.hz-legal .hzc-art>h3::before {
    content: counter(hzc-art) "." counter(hzc-sous);
    font-size: 0.9em;
    color: #b6c2cf;
}

/* .hzc-page en tete : l emporte sur la regle du coeur qui retire la
   marge du dernier bloc d un groupe (:root :where(.is-layout-flow)). */
.hzc-page .hzc-art p {
    margin: 0 0 0.9rem;
}

.hzc-art strong {
    color: #17405e;
    font-weight: 700;
}

/* Une phrase entierement en gras devient un point d appui
   (paragraphe au style « HZ – Point d appui »). */
.hzc-page .is-style-hz-cle {
    background: rgba(168, 207, 56, 0.10);
    border-left: 3px solid #a8cf38;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.8rem 1.1rem;
    margin: 1.1rem 0 1.2rem !important;
}

.hzc-page .is-style-hz-cle strong {
    color: #17405e;
}

.hzc-page .wp-block-list {
    margin: 0 0 1.1rem;
    padding-left: 1.2rem;
}

.hzc-page .wp-block-list li {
    margin-bottom: 0.5rem;
}

.hzc-page .wp-block-list li::marker {
    color: #a8cf38;
}

/* ---------------------------------------------------------
   Tableaux (bloc Tableau du coeur, sans ses bordures)
   --------------------------------------------------------- */

.hzc-page .wp-block-table {
    overflow-x: auto;
    margin: 1.2rem 0 1.5rem;
    border: 1px solid #e3eaf0;
    border-radius: 0.9rem;
    background: #ffffff;
}

.hzc-page .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.hzc-page .wp-block-table thead {
    border-bottom: 0;
}

.hzc-page .wp-block-table th {
    text-align: left;
    padding: 0.85rem 1.1rem;
    background: rgba(7, 71, 107, 0.05);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #17405e;
    border: 0;
    border-bottom: 1px solid #e3eaf0;
}

.hzc-page .wp-block-table td {
    padding: 0.85rem 1.1rem;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    vertical-align: top;
}

.hzc-page .wp-block-table tr:last-child td {
    border-bottom: 0;
}

.hzc-page .wp-block-table td:first-child {
    font-weight: 600;
    color: #17405e;
}

.hzc-page .wp-block-table strong {
    color: #17405e;
}

/* ---------------------------------------------------------
   Liens
   --------------------------------------------------------- */

.hzc-art a {
    color: #0e8388;
    font-weight: 600;
}

/* ---------------------------------------------------------
   Tablette : le sommaire passe au-dessus, sur deux colonnes
   --------------------------------------------------------- */

@media (max-width: 980px) {
    .hzc-corps {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hzc-somm {
        position: static;
    }

    .hzc-somm ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1.5rem;
    }
}

/* ---------------------------------------------------------
   Telephone
   --------------------------------------------------------- */

@media (max-width: 640px) {
    .hzc-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hzc-somm ol {
        grid-template-columns: minmax(0, 1fr);
    }

    .hzc-page .is-style-hz-urgence {
        padding: 1.3rem 1.2rem;
    }

    .hzc-art h2 {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hzc-somm a {
        transition: none;
    }
}
