/**
Theme Name: Geneva Declaration
Author: Cédric Coustellié - PlanèteWP
Author URI: https://planetewp.com
Description: Custom theme for the Geneva Declaration Of Children\'s Rights
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geneva-declaration
Template: astra
*/

/* Global */

:root {
    --fontSize: 18px;
    --textColor: #0D3462;
    --textColorSecondary: #C44726;
    --accentColor: #60A4F4;
    --boxBgColor: #ACD1FC;
    --accentColorSecondary: #FA7E5A;
    --bgPrimary: #E3F0FF;
    --bgSecondary: #FFD5BF;
    --radius: 2em;
    --boxRadius: 10px;
    --shadow: 0px 4px 4px rgba(0, 0, 0, .25);
}

p {
    font-size: var(--fontSize);
    font-weight: 500;
}

h1, .entry-content h1,
.elementor-widget-heading h1.elementor-heading-title {
    display: inline;
    color: var(--textColor);
    line-height: 1.3;
}

h1 span, .entry-content h1 span ,
.elementor-widget-heading h1.elementor-heading-title span {
    background-color: var(--bgPrimary);
    display: inline-block;
    border-radius: var(--boxRadius);
    margin-bottom: 10px;
    padding: 0 10px;
}

h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6 {
    color: var(--textColor);
}
    
.elementor-element {
    --widgets-spacing: 0!important;
}

/* Helpers en vrac */

.d-none {
    display: none!important;
}

.hidden-profile {
    display: none;
}

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

.text-souligne {
    border-bottom: 3px solid var(--accentColor);
    padding-bottom: 2px;
}

#showMoreButton {
    font-size: .9em;
    display: inline-block;
    margin: 1em auto;
}

#showMoreButton:hover {
    cursor: pointer;
}

.icon-link-endorsers {
    width: 13px;
    fill: var(--textColor);
}

.icon-link-endorsers:hover {
    fill: var(--accentColorSecondary);
}

@media(max-width: 1279px){

    .citation br,
    h2 br {
        display: none;
    }
}

/* Header */
header.site-header {
    position: sticky;
    top: 0;
}

#header {
    z-index: 0;
}

.btn-sign-now a {
    display: inline-block;
    background-color: var(--textColorSecondary);
    border-radius: 2em;
    padding: 1em 2em!important;
    color: white!important;
    font-weight: 600;
}

.btn-sign-now:hover a {
    background-color: var(--textColor);
    color: white!important;
}

.pll-parent-menu-item img {
    width: auto!important;
    height: 14px!important;
}

.pll-parent-menu-item .sub-menu {
    width: 70px;
}

.pll-parent-menu-item .sub-menu .menu-link {
    padding: 0;
    text-align: center;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 1;
    font-weight: 600;
}

/* Sections avec Icône 100 ans */

.icone-orange-apres,
.icone-fleche-avant,
.icone-avant-bouton,
.icone-apres-bouton-bottom,
.icone-apres-bouton-gauche,
.icone-avant-titre-signataires h2,
.cta-endorse-orange {
    position: relative;
}

.icone-fleche-avant:after {
    content: "";
    width: 180px;
    height: 120px;
    position: absolute;
    left: 40%;
    top: -5em;
    background: url(brain/img/Fleche_1_blue.svg) no-repeat center;
    z-index: 1;
    transform: rotate(65deg);
}

.icone-orange-apres:after,
.cta-endorse-orange:after,
.section-eglantyne-blue:after,
.section-projet-tdh-orange:after {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    background-size: contain!important;
}

.icone-orange-apres:after {
    top: -85px;
    right: 10%;
    background: url('brain/img/etoile-brique.svg') no-repeat center;
}

.icone-orange-apres:lang(en):after {
    top: -85px;
    right: 10%;
    background: url('brain/img/etoile-brique-en.svg') no-repeat center;
}

.cta-endorse-orange:after {
    width: 80px;
    height: 80px;
    top: 1em;
    right: 1em;
    background: url('brain/img/etoile-orange.svg') no-repeat center;
}

.section-eglantyne-blue:after {
    top: -85px;
    left: 45%;
    background: url('brain/img/icone-100-years-blue.svg') no-repeat center;
}

.section-projet-tdh-orange:after {
    top: -75px;
    left: 10%;
    background: url('brain/img/etoile-brique.svg') no-repeat center;    
    transform: rotate(-90deg);
}

.section-projet-tdh-orange:lang(en):after {
    top: -75px;
    left: 10%;
    background: url('brain/img/etoile-brique-en.svg') no-repeat center;    
    transform: rotate(-90deg);
}

.section-eglantyne-blue a,
.section-projet-tdh-orange a {
    /* color: var(--bgPrimary); */
    text-decoration: none!important;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
}

.icone-avant-bouton:after {
    content: "";
    width: 150px;
    height: 50px;
    position: absolute;
    background-size: contain !important;
    top: 0;
    left: 20%;
    background: url('brain/img/fleche-orange-gauche.svg') no-repeat center;    
}

.icone-apres-bouton-bottom:after {
    content: "";
    width: 100px;
    height: 150px;
    position: absolute;
    background-size: contain !important;
    top: -5em;
    right: -70%;
    background: url('brain/img/fleche-bleue-bottom.svg') no-repeat center;    
}

.icone-apres-bouton-gauche:after {
    content: "";
    width: 100px;
    height: 150px;
    position: absolute;
    background-size: contain !important;
    top: -4em;
    right: 35%;
    background: url('brain/img/fleche-bleue-gauche.svg') no-repeat center;    
}

.icone-avant-titre-signataires h2 {
    display: inline-block;
}

.icone-avant-titre-signataires h2:after {
    content: "";
    width: 100px;
    height: 150px;
    position: absolute;
    background-size: contain !important;
    top: -2em;
    left: -50%;
    background: url('brain/img/gribouille-bleue.svg') no-repeat center;    
}

/* Module de recherche */

/* Styles pour l'overlay */

.search-input-wrapper {
    position: relative;
    z-index: 1001; /* Au-dessus de l'overlay */
}

.search-input-wrapper input {
    position: relative;
}

.search-input-wrapper:after {
    content: "";
    position: absolute;
    top: 1em;
    right: 1.5em;
    width: 25px;
    height: 25px;
    background: url('brain/img/icone-search-bar.webp') no-repeat center;
    background-size: contain;
}

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}


/* Classe pour figer le body */
body.search-active {
    overflow: hidden;
}

/* Ajuste le z-index des résultats */
.search-results {
    z-index: 1001;
    width: 94%;
    margin: auto;
}

.search-results p {
    margin-bottom: 0;
}

.search-signatories-container {
    position: relative;
    max-width: 768px;
    margin: 0 auto;
    z-index: 1000;

}
#search-signatories {
    width: 100%;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 2em;
    padding: 1em 2em;
    font-size: 18px;
    color: black;
    transition: border-color 0.3s ease;
}

#search-signatories:focus {
    border-color: var(--textColor);
    outline: none;
    box-shadow: 0 0 5px rgba(34, 113, 177, 0.2);
    z-index: 1001;

}
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-results-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.search-results-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--textColor);
}
.results-count {
    font-size: 14px;
    color: var(--textColor);
}

.results-list {
    list-style: none;
    margin: 0;
    padding-left: 0!important;
}

.result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.result-item:last-child {
    border-bottom: none;
}

.result-area {
    font-size: 15px;
    color: var(--textColor);
}

.indicator {
    background: var(--bgPrimary);
    color: var(--textColor);
    font-size: .9em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 5px;
}

.search-loader {
    padding: 20px;
    text-align: center;
    color: var(--textColor);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--textColor);
}

.search-error {
    padding: 20px;
    text-align: center;
    color: var(--textColorSecondary);
}


/* Buttons */

a.elementor-button {
    min-height: 50px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
}

.elementor-button.elementor-button-link {
    background: var(--textColor);
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.elementor-button.elementor-button-link:hover {
    background: var(--accentColor);
}

.elementor-button.elementor-button-link:hover {
    color: white;
}

.elementor-button.element-button-link .elementor-button-text {
    /* color: var(--textColor); */
}


/* Custom Shortcodes */

#listingContinents,
#listingAreas {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.listing-continent,
.listing-area {
    width: 100%;
    margin-bottom: 2em;
    padding: 1em;
    background: white;
    border: 1px solid rgb(220, 220, 220);
    border-radius:var(--boxRadius);
    box-shadow: var(--shadow);
    font-weight: 400;
}

.listing-continent h3,
.listing-area h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5em;
    text-transform: none;
    color: #456B99;
}

.listing-continent ul,
.listing-area ul {
    column-count: 3; /* Nombre de colonnes */
    column-gap: 30px; /* Espacement entre les colonnes */
}

.listing-continent ul li,
.listing-area ul li {
    list-style: none;
}

.listing-home .listing-area {
    min-height: 330px;
}

.listing-home .listing-continent ul, 
.listing-home .listing-area ul {
    column-count: 1;
    column-gap: 30px;
}

.badge-early {
    width: 20px;
    position: relative;
    top: -2px;
    left: -7px;
    margin-right: -5px;
}

.listing-continent li,
.listing-area li {
    line-height: 114%;
    margin-bottom: 0.6em;
}

@media(max-width: 1280px){
    .listing-continent ul,
    .listing-area ul {
        column-count: 2; /* Nombre de colonnes */
    }
}

@media(max-width: 767px){
    .listing-continent ul,
    .listing-area ul {
        column-count: 1; /* Nombre de colonnes */
    }
}

/* Counters */

.counter {
    width: 290px;
    height: 290px;
    text-align: center;
    background: var(--bgSecondary);
    margin-bottom: -5em;
    padding: .5em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* border: 1em solid var(--accentColorSecondary); */
    border-radius: 100%;
    color: var(--textColor);
    font-family: 'Barlow Condensed';
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.8em;
    box-shadow: 0px -8px 5px rgba(0,0,0,.25);
}

.before-big-count,
.after-big-count {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.3em;
    font-variant: all-small-caps;
    line-height: 1;
}

.big-count {
    display: inline-block;
    font-family: 'Barlow Condensed';
    color: var(--textColorSecondary);
    font-size: 3em;
    font-weight: 800;
    margin: -10px;
    line-height: 1;
}

/* Slider High People */

.listing-high-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.listing-high-profile .listing-article-box {
    width: 23.9%;
    position: relative;
}

.listing-article-box.children-quote {
    display: inline-flex!important;
    min-height: 350px;
    justify-content: center;
    flex-direction: column;
}

.listing-article-box .box-citation-full {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--boxBgColor);
    border-radius: var(--boxRadius);
    padding: 2em;
}

.viewCitation {
    background: var(--accentColor);
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    position: relative;
    line-height: 1;
    justify-content: center;
    align-items: center;
    color: white;
    transition: .2s;
}

.viewCitation:hover {
    background: var(--textColor);
    cursor: pointer;
    transition: .3s;
}

#close-citation-full {
    font-weight: 600;
    text-align: right;
    color: white;
    margin-bottom: 2em;
    transition: .2s;
}

#close-citation-full:hover {
    color: var(--textColor);
    cursor: pointer;
    transition: .3s;
}

.listing-article-box p {
    font-size: 16px;
    font-weight: 600;
    color: var(--textColor);
    margin-bottom: 0!important;
}

.listing-article-box img {
    margin-bottom: 1em!important;
    border-radius: var(--boxRadius)!important;
}

.listing-high-profile .listing-article-box h3,
.slides .listing-article-box h3 {
    text-transform: none;
    color: var(--textColor);
    font-weight: 600;
    font-family: 'Barlow Condensed';
    font-size: 1.4em;
    margin-top: .5em;
    margin-bottom: 0;
}

.listing-high-profile .elementor-button-wrapper {
    width: 100%;
}

.listing-high-profile .elementor-button-wrapper:hover,
.load-more:hover,
.show-less:hover {
    cursor: pointer;
}

.listing-articles .slides {
    padding-left: 9em;
}

.listing-article-box {
    position: relative;
    background: var(--boxBgColor);
    border-radius: var(--boxRadius);
    padding: 1em;
}

.slides .listing-article-box {
    padding: 2em;
}

.listing-articles .flex-control-paging li a,
.swiper-pagination-bullet {
    background: var(--accentColor)!important;
    width: 35px!important;
    height: 5px!important;
    box-shadow: none;
    border-radius: 5px!important;
}

.listing-articles .flex-control-paging li a.flex-active,
.swiper-pagination-bullet-active {
    background-color: var(--textColor)!important;
}

/* Forms */

.nf-form-content .list-select-wrap .nf-field-element>div, 
.nf-form-content input:not([type=button]), 
.nf-form-content textarea {
    color: var(--textColor)!important;
}

.nf-form-cont,
.nf-form-cont label {
    color: var(--bgPrimary);
}

.nf-field-label {
    margin-bottom: 0!important;
}

.nf-field-description {
    margin-bottom: 0;
}

.nf-field-description p,
.nf-field-description p span {
    font-size: 12px!important;
}

::placeholder,
.nf-form-content select.ninja-forms-field {
    color: var(--textColor)!important;
}

nf-form-content input[type="submit"] {
    background: var(--bgPrimary);
}

[id^="nf-form-"] .nf-error .nf-error-msg,
[id^="nf-form-"] .nf-error .nf-error-msg {
    color: var(--bgSecondary)!important;
}

.nf-form-content nf-fields-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
}

.nf-form-content input {
    border-radius: var(--radius);
    margin: 10px 0 0;

}

.nf-form-content .listselect-wrap .nf-field-element div, 
.nf-form-content .ninja-forms-field {
    margin: 10px 0 0!important;
}

.nf-form-content .list-select-wrap .nf-field-element>div, 
.nf-form-content input:not([type=button]), 
.nf-form-content textarea {
    border-radius: 5px!important;
}

.nf-form-fields-required {
    display: none;
}

/* #nf-form-2-cont nf-field {
    width: 100%;
} */

#nf-form-2-cont nf-field,
#nf-form-3-cont nf-field,
#nf-form-4-cont nf-field,
#nf-form-8-cont nf-field {
    width: 48%;
}


#nf-form-2-cont nf-field:nth-child(3),
#nf-form-2-cont nf-field:nth-child(4),
#nf-form-8-cont nf-field:nth-child(3),
#nf-form-8-cont nf-field:nth-child(4),
#nf-form-3-cont nf-field:nth-child(7),
#nf-form-3-cont nf-field:nth-child(8),
#nf-form-4-cont nf-field:nth-child(7),
#nf-form-4-cont nf-field:nth-child(8) {
    width: 100%;
}

#nf-form-2-cont nf-field:last-child,
#nf-form-3-cont nf-field:last-child,
#nf-form-4-cont nf-field:last-child,
#nf-form-8-cont nf-field:last-child {
    text-align: center;
    width: 100%;
}

#nf-form-2-cont .nf-form-content button, .nf-form-content input[type=button], 
#nf-form-2-cont .nf-form-content input[type=submit],
#nf-form-3-cont .nf-form-content button, .nf-form-content input[type=button], 
#nf-form-3-cont .nf-form-content input[type=submit],
#nf-form-4-cont .nf-form-content button, .nf-form-content input[type=button], 
#nf-form-4-cont .nf-form-content input[type=submit],
#nf-form-8-cont .nf-form-content button, .nf-form-content input[type=button], 
#nf-form-8-cont .nf-form-content input[type=submit] {
    background: var(--accentColor);
    border: 0;
    color: var(--textColor);
    border-radius: var(--radius)!important;
    font-weight: 700;
    padding-left: 2em;
    padding-right: 2em;
}

#nf-form-2-cont .nf-form-content button, .nf-form-content input[type=button]:hover, 
#nf-form-2-cont .nf-form-content input[type=submit]:hover,
#nf-form-3-cont .nf-form-content button, .nf-form-content input[type=button]:hover, 
#nf-form-3-cont .nf-form-content input[type=submit]:hover,
#nf-form-4-cont .nf-form-content button, .nf-form-content input[type=button]:hover, 
#nf-form-4-cont .nf-form-content input[type=submit]:hover,
#nf-form-8-cont .nf-form-content button, .nf-form-content input[type=button]:hover, 
#nf-form-8-cont .nf-form-content input[type=submit]:hover {
    background: var(--accentColorSecondary);
}

.nf-error-msg, .ninja-forms-req-symbol {
    color: #ff9679!important;
}

/* PDF Files */

#downloadBtn {
    width: 100%;
    margin-top: 1.3em;
    background-color: var(--accentColor);
    color: white;
}

#downloadBtn:hover {
    background-color: var(--accentColorSecondary);
}

#downloadBtn.disabled {
    cursor: not-allowed;
    background-color: #69727d;
}

#downloadBtn.disabled:hover {
    background-color: #69727d;
}

/* Footer */

.ast-scroll-to-top-right {
    right: 40px;
    bottom: 90px;
}

.grecaptcha-badge {
    z-index: 1;
}

#colophon h2, #colophon h3 {
    color: var(--textColor);
    font-size: 1.375rem;
}

#colophon a {
    font-weight: 600;
}

#colophon p {
    font-size: 1em;
}

.ast-footer-copyright p {
    font-size: 1.1em;
}

@media (max-width: 921px) {
    .ast-builder-grid-row-container.ast-builder-grid-row-tablet-3-equal .ast-builder-grid-row {
        grid-template-columns: repeat(1, 1fr);
        padding: 4em 2em;
    }

    .icone-avant-titre-signataires h2:after,
    .icone-avant-bouton:after,
    .icone-apres-bouton-gauche:after,
    .icone-apres-bouton-bottom:after,
    .icone-fleche-avant:after  {
        display: none;
    }

    .section-projet-tdh-orange:after {
        left: 5%;
    }
}

@media(max-width: 767px){
    .listing-article-box,
    .listing-high-profile .listing-article-box {
        min-width: 340px;
        width: 100%;
    }

    .listing-articles .slides {
        padding-left: 1em;
    }

    #nf-form-2-cont nf-field, 
    #nf-form-3-cont nf-field {
        width: 100%;
    }
}