/* ===================================================================
   FICHIER CSS GLOBAL POUR TOUTES LES PAGES (SAUF HOME)
   ================================================================= */

/* === RÈGLES COMMUNES === */

/* Header - Logo blanc par défaut pour toutes les pages sauf home */
.header-logo-picture {
    background-image: url(/.resources/images/logo-white--mini.svg);
}

/* Header - Masquer le CTA */
.header-navigation .navigation-list .cta {
    display: none !important;
}

/* Header - CTA responsive */
.header-cta {
    min-width: 13rem;
}

header.sticky .header-cta {
    display: none;
}

/* FAQ - Masquer liens non tooltipstered */
.faq-item-description a:not(.tooltipstered) {
    display: none;
}

/* Banner - Masquer tag bleu */
span.banner-hero-tag.blue-tag {
    display: none;
}

/* Banner - Masquer icon-text-wrapper sur première section */
main section:first-child>.black-box .icon-text-wrapper.cols-3 {
    display: none;
}

.header-cta{min-width:13rem;}
header.sticky .header-cta{display:none;}
span.banner-hero-tag.blue-tag {
    display: none;
}
main section:first-child > .black-box .icon-text-wrapper.cols-3 {
    display: none;
}

/* === STYLES SPÉCIFIQUES AUX PAGES DE DOCUMENTATION === */

/* Pages avec structure de documentation similaire */
body.documentation-r-glementaire-gbanque main section h2.blog-subtitle-module,
body.documents-conditions-reglementaires main section h2.blog-subtitle-module {
    text-align: center;
    font-size: 1rem;
    width: 100%;
}

body.documentation-r-glementaire-gbanque main section .blog-detail.center>.blog-content,
body.documents-conditions-reglementaires main section .blog-detail.center>.blog-content {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

body.documentation-r-glementaire-gbanque main section:first-child,
body.documents-conditions-reglementaires main section:first-child {
    padding: 0;
    margin: 0;
    background: black;
}

body.documentation-r-glementaire-gbanque main section:first-child h1,
body.documents-conditions-reglementaires main section:first-child h1 {
    color: white;
    text-align: center;
    font-size: 1.875rem;
    padding-bottom: 1.5em;
    width: 100%;
}

body.documentation-r-glementaire-gbanque main section:nth-child(2) .dropdown-list-module,
body.documents-conditions-reglementaires main section:nth-child(2) .dropdown-list-module {
    width: 100%;
    padding-top: 1em;
}

body.documentation-r-glementaire-gbanque main section:nth-child(2) .dropdown-item-body a,
body.documents-conditions-reglementaires main section:nth-child(2) .dropdown-item-body a {
    text-decoration: underline;
    color: black;
}

body.documentation-r-glementaire-gbanque main section:nth-child(2) h3.dropdown-item-title,
body.documents-conditions-reglementaires main section:nth-child(2) h3.dropdown-item-title {
    font-size: 1rem;
    font-family: 'Helvetica 75';
}

/* === STYLES SPÉCIFIQUES À LA PAGE ACCESSIBILITÉ === */

body.accessibilite .conformity-chart {
    text-align: right;
    margin-top: 1rem;
}

body.accessibilite .conformity-score {
    font-size: 12px;
}

body.accessibilite .conformity-chart img {
    width: 250px;
    height: 250px;
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

body.accessibilite .accessibility-table img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* === MEDIA QUERIES === */

@media (max-width: 768px) {
    body.accessibilite .conformity-chart {
        text-align: center;
    }

    body.accessibilite .conformity-chart img {
        float: none;
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem;
        display: block;
    }

    body.accessibilite .accessibility-table img {
        max-width: 100%;
    }
}

/* === STYLES MAIN UNIQUEMENT POUR LA PAGE HOME === */

body.home main section:nth-child(5) {
    padding-bottom: 0.5rem;
}

body.home main section,
#to_form-s {
    background: #fafafa;
}

body.home main section:nth-child(8) .title-wrapper.title-center {
    padding-top: 1rem;
}

body.home main section.section:nth-child(2) .container p {
    font-size: 16px;
    line-height: 22.4px;
}

body.home main section.section:nth-child(6) .container .blog-content-module {
    padding: 20px;
    background-color: #EEEEEE;
    border-radius: 8px;
}

body.home main section.section:nth-child(6) .container .blog-content-module .blog-subtitle-module {
    font-size: 24px;
    font-weight: 700;
    line-height: 28.8px;
}

body.home main section.section:nth-child(6) .container .blog-content-module p {
    margin-bottom: 0px;
}

body.home main section.section:nth-child(6) .container .blog-content-module p:nth-child(2) {
    font-size: 0.875rem;
}

body.home main section.section:nth-child(6) {
    padding-top: 1rem;
}

body.home main section.section:nth-child(2) {
    margin-bottom: 1.5rem;
    padding-top: 3rem;
}

body.home main section.section:nth-child(9) .container .title-center > * {
    text-align: left;
    margin-left: 0;
    width: 100%;
}

body.home main section.section:nth-child(9) .container .title-center {
    margin-left: 0;
    width: 100%;
    max-width: initial;
}

body.home main section.section:nth-child(9) .container .obf-pills-component {
    align-items: flex-start;
}

body.home main .section {
    margin-bottom: 0;
    padding-bottom: 0;
}

body.home main section:nth-child(8) h2.banner-item-text-title:before {
    content: "Phishing";
    display: block;
    font-size: 2.45rem;
}

body.home main section:nth-child(8) span.banner-item-text-tag.gray-tag,
body.home main section:nth-child(11) .faq-item-description a:not(.tooltipstered) {
    display: none;
}

body.home main section:nth-child(8) .title-wrapper.title-center {
    max-width: initial;
}

body.home main section:first-child > .black-box .icon-text-wrapper.cols-3 {
    display: none;
}

body.home main section:nth-last-child(-n + 3) i.icon-list-image {
    font-size: 1em;
}

body.home main section:nth-last-child(-n + 3) li {
    margin-top: 0.15rem;
}

body.home main section:nth-last-child(-n + 4) {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

body.home main section:nth-last-child(-n + 4) p,
body.home main section:nth-last-child(-n + 3) p,
body.home main section:nth-last-child(-n + 3) span {
    font-size: .875rem;
}

body.home main .section:nth-child(11) .title-section,
body.home main .section:nth-child(11) .title-wrapper,
body.home main .section:nth-child(11) .obf-pills-component,
body.home main .section:nth-child(11) .subtitle-section {
    text-align: left;
    width: 100%;
}

@media (max-width: 768px) {
    body.home .flex {
        flex-direction: column;
    }
}

@media (max-width: 940px) {
    body.home .flex {
        flex-direction: column;
    }

    body.home .to_form {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: stretch;
        align-content: stretch;
    }

    body.home .to_form-i {
        display: flex;
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: auto;
        align-self: auto;
        order: 0;
        width: calc(50% - 12px);
    }
}

@media (max-width: 592px) {
    body.home .to_form {
        flex-direction: column;
    }

    body.home .to_form-i {
        width: 100%;
    }
}

@media (min-width: 744px) {
    body.home .obf-pills-component .obf-pills-content div.tab-pane:nth-child(3) section:nth-child(1) {
        margin-bottom: 5rem;
    }
}

@media (min-width: 992px) {
    body.home main section.section:nth-child(9) .container h2.blog-subtitle-module,
    body.home main section.section:nth-child(5) .container h2.blog-subtitle-module,
    body.home main section.section:nth-child(4) .container h2.blog-subtitle-module,
    body.home main section.section:nth-child(2) .container h2.blog-subtitle-module {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    body.home .obf-pills-component .obf-pills-content section.section+.section {
        margin-top: 0rem;
    }

    body.home .obf-pills-component .obf-pills-content div.tab-pane:nth-child(3) section:nth-child(1) {
        margin-bottom: 5rem;
    }
}

/* Logo noir pour la home */
body.home .header-logo-picture {
    background-image: url(/.resources/images/logo-black--mini.svg);
}

/* Masquer le CTA dans la navigation */
body.home .header-navigation .navigation-list .cta {
    display: none !important;
}

/* CTA responsive (depuis alternative.css) */
body.home .header-cta {
    min-width: 13rem;
}

body.home header.sticky .header-cta {
    display: none;
}

/* FAQ - Masquer liens non tooltipstered */
body.home .faq-item-description a:not(.tooltipstered) {
    display: none;
}

/* Banner - Masquer tag bleu */
body.home span.banner-hero-tag.blue-tag {
    display: none;
}

/* Layout flex */
body.home .flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
}

/* Liens tooltipstered */
body.home p a.tooltipstered {
    color: #FF7900;
    text-decoration: none;
    font-size: 16px;
}

/* Colonnes wrapper */
body.home .flex .column-wrapper {
    width: 100%;
    display: flex;
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    gap: 16px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Icônes et textes dans colonnes */
body.home .column-wrapper .icon {
    font-size: 2.375rem;
    margin-bottom: 10px;
}

body.home .column-wrapper .text {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 22.4px;
    text-align: center;
}

body.home .column-wrapper .title {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 22.4px;
    text-align: center;
    font-weight: bold;
}

body.home .column-wrapper .title-b {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 22.4px;
    text-align: center;
    color: #FF7900;
    font-weight: bold;
}

body.home .column-wrapper a {
    font-size: 1rem;
    font-weight: 400;
    line-height: 22.4px;
    text-align: center;
    font-family: 'Helvetica 75';
    color: #FF7900;
}

body.home .column-wrapper a.text {
    font-size: 1rem;
    font-weight: 200;
    line-height: 22.4px;
    text-align: center;
    font-family: 'Helvetica 75';
    color: #000000;
    font-weight: normal;
}

body.home .column-wrapper a.text-simple {
    font-size: 1rem;
    line-height: 22.4px;
    text-align: center;
    color: #000000;
    font-weight: normal;
    font-family: 'Helvetica 55 Roman';
}

/* Highlight */
body.home .highlight {
    color: #FF7900;
}

/* Formulaire to_form */
body.home #to_form-s {
    padding-top: 0;
}

body.home .to_form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
}

body.home .to_form-i {
    display: flex;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
    width: calc(33% - 12px);
    background: white;
    margin: 6px;
    height: 120px;
    padding: 20px 12px 20px 20px;
    border-radius: 8px;
    color: black;
    flex-direction: row;
    align-items: center;
}

body.home .to_form-i:hover {
    color: #FF7900;
}

body.home .to_form-i h4 {
    font-family: 'Helvetica 75';
    font-size: 14px;
}

body.home .icon-b {
    width: 10%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

body.home .title-b {
    width: 90%;
}

body.home .to_form-i .title-b div {
    font-family: 'Helvetica 55 Roman';
    font-size: 12px;
    line-height: 16.8px;
    color: rgba(102, 102, 102, 1);
}

body.home .to_form-i span.icon-s {
    display: flex;
    color: black;
    font-size: 1.8rem;
    justify-content: flex-end;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Formulaires généraux */
body.home .form-o {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.6px;
    text-align: left;
}

body.home .form-o a:hover {
    text-decoration: underline;
}

body.home .subtitle-section a {
    color: #FF7900;
    font-family: 'Helvetica 75';
}

/* Sections spécifiques */
body.home section.section#contact {
    padding: 0rem;
}

body.home section.section#documents {
    padding: 1rem;
}

/* Boutons et CTA */
body.home a.btn.btn-primary[title='FAQ'] {
    margin-top: 3vw;
}

body.home li.cta > * {
    display: none !important;
}

/* Banner hero */
body.home .section-banner-hero.section-banner-home .banner-hero-text {
    width: 60%;
    max-width: initial;
}

body.home .banner-hero-text.black-box .linkTooltip {
    color: black;
    padding-left: 0;
}

body.home .banner-hero-text .linkTooltip-container,
body.home .banner-hero-buttons {
    margin-top: 1rem !important;
}

body.home .blog-content {
    width: 100%;
}

body.home .banner-hero-text.black-box > .banner-hero-description {
    font-size: 0.85rem;
    line-height: 1.2rem;
}

body.home .banner-hero-text.black-box > .banner-hero-title {
    font-size: 1.85rem;
    line-height: 2.5rem;
}

body.home .banner-hero-text.black-box {
    background: white;
}

body.home .banner-hero-text.black-box > .banner-hero-description,
body.home .banner-hero-text.black-box > .banner-hero-title {
    color: black;
}

/* Formulaire principal */
body.home #form-main {
    margin-top: 6.65rem;
    padding: 1rem;
    border: thin solid #e8e8e8;
    border-radius: 0.2rem;
}

body.home .form-post-com {
    height: 65px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    padding-left: 12px;
    padding-right: 12px;
    background-color: #fff;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.125;
    font-family: HelveticaNeue, sans-serif;
    letter-spacing: normal;
}

body.home .form-post-com input {
    border: none;
    display: block;
    height: 2rem;
    font-size: 1.25em;
}

body.home .form-post-com label {
    font-size: 0.8rem;
}

/* Pills component */
body.home .obf-pills-component .obf-pills-content section.section + .section {
    margin-top: 0rem;
}

body.home .obf-pills-component .obf-nav-pills {
    text-align: left;
    width: 100%;
}

/* Blog content module */
body.home .blog-content-module div.leftBox {
    border-left: 1px solid #000000;
    padding-left: 10px;
    font-size: .875rem;
    line-height: 1.25rem;
    margin: 1.5rem 0;
}

body.home .blog-content-module div.leftBox div:nth-child(1) {
    margin-bottom: 10px;
}

body.home .blog-content-module div.leftBox a {
    font-family: 'Helvetica 75';
    text-decoration: underline;
    color: #000000;
    margin-left: 10px;
}

body.home .blog-content-module div.leftBox a:hover {
    color: #FF7900;
}

/* Listes de référence */
body.home ul.list-ref {
    display: flex;
    list-style: none;
    padding-left: 0 !important;
}

body.home ul.list-ref li {
    display: flex;
}

body.home ul.list-ref li a {
    font-family: "Helvetica 75";
    text-decoration: none !important;
    background: white;
    padding: 20px 12px 20px 20px;
    border-radius: 8px;
    margin-right: 12px;
}

body.home ul.list-ref li a span:after {
    content: ">";
    display: flex;
    width: 25%;
}

/* Sections banner */
body.home section.section.section-banner-home.section-banner-hero {
    margin-bottom: 0;
}

/* Titre vOrangeBank */
body.home .section-banner-hero.section-banner-home .banner-hero-title {
    color: black;
    line-height: 2.25rem;
}

body.home .section-banner-hero.section-banner-home .banner-hero-title > p {
    font-size: 1.85rem;
    margin-top: 0;
}

body.home .section-banner-hero.section-banner-home .banner-hero-description > p:nth-child(2) {
    margin-top: -1em;
}

/* Images du contenu accessibilité */
body.home .conformity-chart {
    text-align: right;
    margin-top: 1rem;
}

body.home .conformity-chart img {
    width: 250px;
    height: 250px;
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

body.home .accessibility-table img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 1rem auto;
}
