/* ============================================
   IMPORT
   ============================================ */
/* TYPOS : Onest */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

/* ============================================
   BASE / TYPOGRAPHIE
   ============================================ */
::selection {
    background-color: #ADECA2;
    color: white;
}

.header-logo img {
    width: 240px !important;
    max-width: 240px !important;
    height: auto !important;
}

.header-right-gan img {
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
}

.footer-bottom img[src*="Logo-GROUPAMA_blanc"] {
    height: 65px !important;
    width: auto !important;
}

.footer-bottom img[src*="Logo_GP_Le_Cercle_Gestion_Patrimoine_Blanc"] {
    height: 45px !important;
    width: auto !important;
}

.single-post .footer-bottom{
    border-top:0 none;
}

body {
    font-family: "Onest", sans-serif;
    color: black;
    font-size: 16px;
    line-height: 20px;
}

h1 h2 h3 h4 h5 h6 {
    font-family: "Onest", sans-serif;
    font-weight: 100;
    color: #004028;

}

h4 {
    font-family: "Onest", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 22px;
    padding-top: 20px;
}

a {
    color: #004028;
}

a:hover {
    color: #ff9cb6;
}

a.lire {
    font-size: 110%;
    color: white;
    font-weight: 600;
    text-decoration: none;
}

a.lire:hover {
    font-size: 115%;

}

em {
    font-style: italic;
}

i {
    font-style: italic;
}

small {
    font-size: 85%;

}

strong {
    font-weight: 600;
}

p {
    font-family: 'Onest', sans-serif;
    font-weight: 300;
    color: black;
    hyphens: none;
    font-size: 16px;
    line-height: 22px;
    margin-top: 10px;
}

ol {
    font-family: "Onest", sans-serif;
    color: black;
    font-size: 16px;
    line-height: 20px;
    list-style: decimal;
    padding-left: 35px;
    padding-bottom: 5px;
    padding-top: 15px;
}

ol li {
    padding-bottom: 10px;
}

ul {
    list-style-type: "— ";
    font-family: "Onest", sans-serif;
    color: black;
    font-size: 16px;
    line-height: 20px;
    padding-left: 35px;
    padding-bottom: 5px;
    padding-top: 15px;
}

ul li {
    padding-bottom: 10px;
}
.contentcss figure{
    width:100% !important;
}
/* ============================================
   COULEURS / UTILITAIRES
   ============================================ */
.vert_fonce {
    color: #004028;
}

.vert_clair {
    color: #ADECA2;

}

.rose {
    color: #ff9cb6;
}

.blanc {
    color: white;
}

.bg-6 {
    background-color: #004028 !important;
}

.bg_white {
    background-color: white;
    border: none;
}

.align-right {
    text-align: right;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.center {
    display: block;
    margin: 0 auto;
}

.circle {
    display: inline-block;
    background-color: #68b475;
    border-radius: 100%;
    width: .57em;
    height: .57em;
    margin-right: 5px;
}

/* ============================================
   LAYOUT / GRILLE
   ============================================ */
.px-page {
    padding-left: 90px;
    padding-right: 90px;
    box-sizing: border-box;
}

.box-optimized {
    padding: 60px;
    border-radius: 12px !important;
}

.col-100 {
    width: 100%;
}

.col-34 {
    width: 34%;
}

.col-33 {
    width: 33%;
}

.col-50 {
    width: 50%;
}

.col-16 {
    width: 16%;
}

.col-28 {
    width: 28%;
}

/* ============================================
   HERO / BANNIÈRES
   ============================================ */
/* ============================================
   TITRE INCRUSTÉ SUR L'IMAGE (remplace le bandeau vert)
   ============================================ */
.box-image-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 12px 12px 0; /* indispensable : sans ça, overflow:hidden découpe en angle droit et cache l'arrondi */
}

.box-image-hero img {
    height: 410px;
    object-fit: cover;
    object-position: center 30%;
}

.box-image-hero__overlay {
    position: absolute;
    inset: 0; /* toujours 0 — c'est le calque du dégradé, il doit couvrir toute l'image */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(0, 64, 40, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 85px 50px 0 50px; /* le padding-top remplace le margin-top */
    box-sizing: border-box;
}

/* seconde déclaration présente telle quelle dans le fichier d'origine */
.box-image-hero__overlay {

    text-align: left !important;

}

.box-image-hero__title {
    color: #004028 !important; /* remplace le blanc*/
    margin: 0;
}

.banner-hero {
    padding: 50px 0px 20px 0px;
    position: relative;

}

.banner-hero.banner-1 {
    background-color: #004028;
}

.banner-hero.banner-1::after {
    display: none;
}

.banner-hero.banner-1::before {
    display: none;
}

.banner-single {
    background-color: #004028 !important;
}

.text-heading-1 {
    font-family: "Onest", sans-serif;
    font-size: 40px;
    line-height: 45px;
    letter-spacing: 3px;
    color: white;
    font-weight: 400;
}

.text-intro {
    padding-top: 20px;
    font-family: "Onest", sans-serif;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 3px;
    color: white;
    font-weight: 400;
}

.hero-block {
    position: relative;
    width: 100%;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: white;
    padding-bottom: 5px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.text-hero-2 {
    font-family: "Onest", sans-serif;
    font-size: 35px;
    line-height: 33px;
    letter-spacing: 3px;
    font-weight: 400;
    color: white;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);


}

.hero-block p {
    color: white;
    padding-top: 20px;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.text-heading-2 {
    font-family: "Onest", sans-serif;
    font-size: 30px;
    line-height: 32px;
    letter-spacing: 1px;
    color: #004028;
    font-weight: 400;
}

.text-heading-6 {
    font-family: "Onest", sans-serif;

}

/* ============================================
   CARTES / BLOCS INFO
   ============================================ */
/* BLOC */
.highlight-card {
    background: #f7f5f2;
    border: 1px solid #004028;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 620px;
}

.highlight-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.highlight-card__item:last-child {
    margin-bottom: 0;
}

/* Icone en image  */
.highlight-card__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    background-image: url('images/pucxe-croix.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.highlight-card__text {
    color: var(--text-color);
    line-height: 1.5;
}

.info-box {
    border-radius: 16px;
    overflow: hidden;
    font-family: "Onest", s-ans-serif;
    margin: 24px 0;
}

.info-box__header {
    background-color: #004028;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    padding: 16px 24px;
}

.info-box__body {
    background-color: #EAE8E3;
    padding: 20px 24px;
}

.info-box__text {
    font-size: 15px;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.info-box__link {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: underline;
}

.info-box__link:hover {
    color: #ef829c;
}

/* POLAROID */
.polaroid {
    width: 200px;
    background: #ffffff;
    padding: 15px 15px 55px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.polaroid img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   BOUTONS / TAGS
   ============================================ */
.btn {
    font-family: "Onest", sans-serif;

}

.btn.btn-black {
    color: #ffffff;
    background-color: #ff9cb6;
    border-radius: 0px;
    font-size: 18px;
    line-height: 22px;
    font-family: "Onest", sans-serif;
    font-weight: 600;

}

.tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Onest", sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 400;
    color: #ff9cb6;
    text-transform: uppercase;
    line-height: 1;
    background-color: white;
    padding: 4px;
    width: 30%;
    border-radius: 0 32px 32px 0;
    opacity: 100%;
}

.tag img {
    width: 30px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.tag span {
    display: inline-block;
}

.tag_big {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Onest", sans-serif;
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 400;
    color: #ff9cb6;
    text-transform: uppercase;
    line-height: 1;
    background-color: white;
    padding: 4px;
    width: 30%;
    border-radius: 0 32px 32px 0;
    opacity: 70%;
}

.tag_big img {
    width: 50px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.tag-1 {
    font-family: "Onest", sans-serif;
    font-weight: 500;
    color: white;
    background-color: #004028;
    margin-bottom: 25px;
    font-size: 16px;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 12px;
    padding-bottom: 12px;


}

.tag-h5 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Onest", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.1;
    color: white;
    /*padding: 14px 20px;*/
    margin: 32px 0 16px 0;
}

.tag-h5::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 6px;
    height: 28px;
    background-color: #54c77a;
    border-radius: 20px;
}

#scrollUp {
    background-color: #ff9cb6;
}

/* ============================================
   CONTENU ARTICLE
   ============================================ */
.article-h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Onest", sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    color: #004028;
    /*padding: 14px 20px;*/
    margin: 32px 0 16px 0;
    padding-left:20px;
    position:relative;
}

.article-h2::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 6px;
    top:0;
    left:0;
    bottom:0;
    position:absolute;
    background-color: #54c77a;
    border-radius: 20px;
}

blockquote {
        position: relative;
    margin: 2rem 0;
    padding: 0 1.5rem;
    /*
    margin: 12px 0;
    margin-left: 30px;
    padding: 4px 0 4px 24px;
    */
    font-family: "Onest", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    font-style: normal;
    color: #1a1a1a;
}
/*
blockquote::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -0.2em;
    font-size: 2.5rem;
    line-height: 1;
    color: #ccc;
}

blockquote::after {
    content: "”";
    display: inline;
    margin-left: .15em;
    color: #ccc;
}
*/
blockquote p:last-child {
    display: inline;
}

blockquote p {
    display: inline;
    line-height: 1.2
}
.full-link{
    display:flex;
    position:absolute;
    top:0;
    left:0;
    bottom:0;
    right:0;
}

.footnotes {
    margin-top: 48px;
    font-family: "Onest", sans-serif;

    color: #555;
}

.footnotes ol {
    padding-left: 20px;
}

.footnotes li {
    margin-bottom: 8px;
    line-height: 1.2;
    list-style: none;
    font-size: 14px;
    line-height: 16px;
}

.footnotes a {
    color: #4caf7d; /* ou ta couleur d'accent */
    text-decoration: none;
    margin-left: 4px;
}

.footnotes a:hover {
    text-decoration: underline;
}

sup a {
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    color: #ff9cb6;
    padding-left: 0px;
}

sup a:hover {
    text-decoration: underline;
}

.g_radius {
    border-radius: 0px 12px 12px 0px;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-right: 50px;
}

.g_radius_invert {
    border-radius: 12px 0px 0px 12px;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================
   NAVIGATION ARTICLE
   ============================================ */
.article-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    position: relative;
    font-family: "Montserrat", sans-serif;

}

.article-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.25s ease;
    font-family: "Montserrat", sans-serif;

}

.article-nav-item:hover {
    color: #004028;
}

.article-nav-arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s ease;
    color: #004028;
}

/* la flèche glisse légèrement vers la direction de lecture au survol */
.article-nav-prev:hover .article-nav-arrow {
    transform: translateX(-5px);
}

.article-nav-next:hover .article-nav-arrow {
    transform: translateX(5px);
}

/* bloc sommaire mis en avant au centre */
.article-nav-sommaire {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    font-family: "Montserrat", sans-serif;

}

.article-nav-icon {
    width: 38px;
    height: 38px;
    border: 1px solid #004028;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004028;
    font-size: 16px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.article-nav-sommaire:hover .article-nav-icon {
    background-color: #004028;
    color: #fff;
}

/* ============================================
   TABLEAUX
   ============================================ */
table {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: "Onest", sans-serif;
    color: black;
    font-size: 16px;
    line-height: 20px;
    /*border: 1px dotted gray;*/
}

table thead {
    background-color: #4caf7d;;
    color: white;
    /* border: 1px dotted gray; */
}

table thead tr th {
    padding: 5px;
    font-size: 16px;
    font-weight: 500;
}

table tr td {
    padding: 5px;
    border: 1px dotted gray;
}

.hdr-green {
    background-color: #54C77A;
    font-weight: bold;
}

.label-green {
    background-color: #54C77A;
    font-weight: bold;
    color: white;
}

caption {
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    caption-side: top;
    padding-bottom: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-copyright {
    font-family: "Onest", sans-serif;

}

footer {
    background-color: #004028;
    color: white;
    font-family: "Onest", sans-serif;

}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (max-width: 600px) {


    .section-box .row > div:has(> a > img),
    .section-box .row > div:has(> img) {
        order: -1;
    }
   

    .main-header {
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .header .main-header .header-left .header-logo {
        margin-right: 12px !important;
    }

    .header-logo img {
        width: 110px !important;
        max-width: 110px !important;
        height: auto !important;
    }

    .header-right-gan img {
        width: 120px !important;
        max-width: 120px !important;
        height: auto !important;
    }

    .header-right-gan {
        padding-right: 0 !important;
    }

    .footer-bottom img[src*="Logo-GROUPAMA_blanc"] {
        height: 35px !important;
        width: auto !important;
    }

    .footer-bottom img[src*="Logo_GP_Le_Cercle_Gestion_Patrimoine_Blanc"] {
        height: 25px !important;
        width: auto !important;
    }


    @media (max-width: 600px) {

        .box-image-hero img {
            height: 330px !important;
            object-position: 80% 30% !important; /* Décalage de l'mage à gauche */
        }

        .box-image-hero__overlay {
            padding: 35px 20px 30px 20px;
            gap: 8px;
            margin-left: 0 !important;
        }

        .box-image-hero .pl-100 {
            padding-left: 0 !important; /* annule le pl-100 hérité du HTML en desktop */
        }

        .box-image-hero .tag-h5 {
            font-size: 13px;
        }


        .box-image-hero img {
            height: 260px;
        }
    }

    @media (max-width: 600px) {
        .px-page {
            padding-left: 10px;
            padding-right: 10px;
        }
    }

    /* responsive : on empile proprement sur mobile */
    @media (max-width: 600px) {

        body {
            padding-left: 10px;
            padding-right: 10px;
        }

        .article-nav {
            flex-direction: column;
            gap: 20px;
            text-align: center;
        }

        .tag {
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: "Onest", sans-serif;
            font-size: 12px;
            letter-spacing: 3px;
            font-weight: 400;
            color: #ff9cb6;
            text-transform: uppercase;
            line-height: 1;
            background-color: white;
            padding: 4px;
            width: 80%;
            border-radius: 0 22px 22px 0;
            opacity: 100%;
        }

        .tag img {
            width: 27px;
        }


        /* position du tag */
        .img-wrapper {
            position: relative;
            display: block;
        }

        .img-wrapper img.img-rounded-right {
            display: block;
            width: 100%;
        }

        .tag--overlay {
            position: absolute;
            bottom: 24px;
            left: 0;
        }


        .text-heading-1 {
            font-family: "Onest", sans-serif;
            font-size: 25px;
            letter-spacing: 2px;
            color: white;
            font-weight: 400;
            line-height: 1.1; /* resserré par rapport au 1.15 précédent */

        }


        .text-intro {
            padding-top: 20px;
            font-family: "Onest", sans-serif;
            font-size: 14px;
            line-height: 16px;
            letter-spacing: 2px;
            color: white;
            font-weight: 400;
        }


        .hero-block {
            position: relative;
            width: 100%;
            min-height: 325px;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            color: white;
            padding-bottom: 5px;
            margin-top: 50px;
            margin-bottom: 60px;
        }


        .text-hero-2 {
            font-family: "Onest", sans-serif;
            font-size: 22px;
            line-height: 23px;
            letter-spacing: 1px;
            font-weight: 400;
            color: white;
            text-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);


        }

        .hero-block p {
            color: white;
            padding-top: 20px;
            padding-right: 20px;
            text-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
            display: none;
        }


        .text-heading-2 {
            font-family: "Onest", sans-serif;
            font-size: 25px;
            line-height: 26px;
            letter-spacing: 1px;
            color: #004028;
            font-weight: 600;
        }

        .site-copyright {
            font-family: "Onest", sans-serif;
        }

        .article-h2 {
            display: flex;
            align-items: center;
            gap: 14px;
            font-family: "Onest", sans-serif;
            font-weight: 700;
            font-size: 18px;
            line-height: 1.1;
            color: #004028;

        }

    }
}

.article-block__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.article-block__category {
  color: #004028;
}
.bg-footer{
    background-color: #004028;
    color:#fff;
}

.bg-footer p{
    color:#fff;
}
.single-post .box-image-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.single-post .box-image-hero img {
    display: block;
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center;
}

/* Désactive le second dégradé ajouté précédemment */
.single-post .box-image-hero::before {
    display: none;
}

.single-post .box-image-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    gap: 16px;
    padding: 0 50px 40px;
    box-sizing: border-box;

    /* Noir opaque en bas, puis disparition progressive */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.95) 15%,
        rgba(0, 0, 0, 0.75) 32%,
        rgba(0, 0, 0, 0.35) 52%,
        rgba(0, 0, 0, 0) 75%
    );
}


.single-post .box-image-hero__overlay h1,
.single-post .box-image-hero__overlay h5,
.single-post .box-image-hero__overlay a {
    color: #fff;
}

.contentcss table{
    width:100%;
}

@media (max-width: 767.98px) {
    .header-right {
        display: block !important;
    }
}

.hero-block.article-block--full {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    min-height: 520px;
    border-radius: 12px;

    background-image: var(--hero-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-block.article-block--full::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.95) 12%,
        rgba(0, 0, 0, 0.75) 28%,
        rgba(0, 0, 0, 0.35) 48%,
        rgba(0, 0, 0, 0) 70%
    );
}

.hero-block.article-block--full .row {
    position: relative;
    z-index: 1;
    min-height: inherit;
    align-items: flex-end;
}

.hero-block.article-block--full .text-hero-2,
.hero-block.article-block--full .tag-h5,
.hero-block.article-block--full .lire {
    color: #fff;
}
/* Accessibilité RAWEB 1 */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: 3px;
}

.header a:focus-visible,
.header button:focus-visible,
.footer a:focus-visible,
.bg-6 a:focus-visible,
.hero-block a:focus-visible {
    outline-color: #fff !important;
}

a.tag-h5 {
    display: inline-flex;
    text-decoration: none;
}

a.lire {
    font-size: 120%;
}
