/* --- VARIABLES --- */
:root {
    /* Palette de couleurs */
    --color-primary: #F7F0E7;
    --color-beige: #F7F0E7;
    --color-yellow: #FDDB8A;
    --color-orange: #F0895D;
    --color-blue: #8BCBD0;
    --color-green: #A4D888;
    --color-navy: #072740;
    --color-white: #FFF;
    --color-black: #000;
    
    /* Typographie */
    --font-primary: 'Nunito', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-xl: 150px;
    --font-lg: 125px;
    --font-md: 55px;
    --font-sm: 18px;
    --font-body: 18px;
    
    /* Espacement */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    
    /* Bordures */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    padding:0;
    margin:0;
    scroll-behavior: smooth;
    overflow-x:hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-body);
    line-height: 1.6;
    color: var(--color-navy);
    background-color: var(--color-white);
    overflow-x: hidden;
    position:relative;
    padding:0;
    margin:0;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.1;
    color: var(--color-navy);
}

h1 {
    font-size: var(--font-xl);
    font-weight:500;
    margin:0;
    margin-bottom:20px;
}

h2 {
    font-size: var(--font-md);
    font-weight:500;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: var(--font-sm);
    font-weight:600;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

h4 {
    font-size: var(--font-sm);
    font-weight:600;
    margin-bottom: var(--spacing-xs);
}

@media (max-width: 992px) {
    h1 {
        font-size: 80px;
    }
    
    h2 {
        font-size: 45px;
    }
}

@media (max-width: 575px) {
    h1 {
        font-size: 60px;
    }
    
    h2 {
        font-size: 40px;
    }
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-navy);
}

a:visited{
    color:inherit;
}

img {
    width: 100%;
    max-width: none;
    height: auto;
}

/* --- LAYOUT --- */
.page{
    margin:0;
}

.container {
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 75px 50px 60px 50px;
}

@media screen and (min-width: 1750px) {
    .container {
        max-width: 1640px;
    }
}

@media screen and (max-width: 1749px) {
    .container {
        /*max-width: 1320px;*/
    }
}

@media screen and (max-width: 1399px) {
    .container {
        /*max-width: 1140px;*/
    }
}

@media screen and (max-width: 1199px) {
    .container {
        /*max-width: 960px;*/
    }
}

@media screen and (max-width: 991px) {
    .container {
        /*max-width: 720px;*/
        padding: 55px 30px 50px 30px;
    }
}

@media screen and (max-width: 767px) {
    .container {
        /*max-width: 540px;*/
    }
}

@media screen and (max-width: 575px) {
    .container {
        padding: 35px 15px 40px 15px;
    }
}

.row{
    display: flex;
    width: 100%;
    height:100%;
    align-items: center;
}

.row-start{
    align-items: flex-start;
}

.row-end{
    align-items: flex-end;
}

.row-column{
    flex-direction: column;
}

.row-center{
    justify-content: center;
}

.row-between{
    justify-content: space-between;
}

.row-wrap {
    flex-wrap: wrap;
}

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

.heading-with-bar {
    position: relative;
}
  
.heading-with-bar::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--color-orange);
}

.titre-2{
    font-weight: 600;
}

.titre-3{
    font-style: italic;
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.titre-3::before {
    content: "";
    position: absolute;
    background-color: var(--color-yellow);
    border-radius: 6px;
    top: -16px;
    left: -27px;
    right: -6px;
    bottom: 25px;
    z-index: -1;
}

.titre-4{
    font-style: italic;
    font-weight: 500;
    display: inline-block;
    position: relative;
    z-index: 0;
}

.titre-4::before {
    content: "";
    position: absolute;
    background-color: var(--color-blue);
    border-radius: 6px;
    top: 12px;
    left: -27px;
    right: -6px;
    bottom: 6px;
    z-index: -1;
}

/* --- BUTTONS --- */
button{
    border: none;
    background: none;
    color: inherit;
    line-height: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: flex;
    width: fit-content;
    border-radius: 35px;
    padding: 20px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-navy);
    gap:10px
}

@media screen and (max-width: 575px) {
    .btn {
        padding: 12px 20px
    }
}

.btn::after{
    content:'';
    width:38px;
    height:29px;
    display: inline-block;
    background-image: url('/wp-content/themes/jeunesse-inclusive/img/right-arrow.svg');
    transition: all 0.3s ease;
}

.btn:hover {
    padding-right:10px;
    gap:15px;
    padding-left:25px;
}

.btn-primary {
    background-color: var(--color-blue);
}
.btn-primary-orange{
    background-color: var(--color-orange);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-blue);
}

.btn-outline-plus {
    background-color: transparent;
    color: var(--color-navy);
    border: 1px solid #101822;
    align-items: center;
}

.btn-outline-plus::after{
    content:'';
    width:21px;
    height:21px;
    background-image: url('/wp-content/themes/jeunesse-inclusive/img/bouton-plus.svg');
    background-size: 21px 21px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(150%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-left {
    animation: fadeLeft 1s ease forwards;
}

/* --- 404 --- */
.error-404-page{
    background-color: var(--color-beige);
}

.error-404-page .page-header{
    padding-top: 150px;
    text-align: center;
}

.error-404-page .page-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-404-page .page-content h2{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top:50px;
}

.error-404-page .page-content .search-toggle-result {
    background: none;
    background-color: #fff;
    border: 1px solid var(--color-blue);
    border-radius: 50px;
    cursor: pointer;
    padding: 25px;
    /*margin-left: 35px;*/
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.error-404-page .page-content #search-bar-result {
    margin: 0;
    color: var(--color-blue);
    font-style: italic;
    font-size: 15px;
    font-family: var(--font-secondary);
    font-weight: 400;
    border: none;
    padding: 0;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    outline: none;

    width: 150px;
    margin-right: 15px;
    opacity: 1;
}

.error-404-page .page-content #search-submit-button-result {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

@media screen and (max-width: 575px) {
    .error-404-page .page-header h1{
        font-size:50px;
    }

    .error-404-page .page-content h2{
        font-size:35px;
    }
}

/* --- Default Simple Page Template -- */
.simple-page .entry-header{
    padding-top: 150px;
    padding-bottom:50px;
    text-align: center;
}

.simple-page .entry-header h1{
    font-size:80px;
}

.simple-page .entry-content h2{
    margin-top:50px;
    margin-bottom:20px;
    font-size:50px;
}

@media screen and (max-width: 575px) {
    .simple-page .entry-header h1{
        font-size:45px;
    }

    .simple-page .entry-content h2{
        font-size:35px;
    }
}