:root{
    --white: #FFFFFF;
    --black: #000000;
    --alpha-blue: #2366AF34;
    --alpha-blue-2: #2367afb6;
    --alpha-light-blue: #d4e0ef4D;
    --light-blue: #A4C0DD;
    --blue: #2366AF;
    --red: #D0043C;
    --grey: #EEEEEE;
}

.bg-white{background-color: var(--white);}
.bg-alpha-blue{background-color: var(--alpha-blue);}
.bg-alpha-blue-2{background-color: var(--alpha-blue-2);}
.bg-light-blue{background-color: var(--light-blue);}
.bg-blue{background-color: var(--blue);}
.bg-alpha-light-blue{background-color: var(--alpha-light-blue);}
.bg-red{background-color: var(--red);}
.bg-grey{background-color: var(--grey);}
.text-white{color: var(--white);}
.text-black{color: var(--black);}
.text-blue{color: var(--blue);}
.text-red{color: var(--red);}
.text-grey{color: var(--grey);}
.text-alpha-blue{color: var(--alpha-blue);}
.text-light-blue{color: var(--light-blue);}
.text-blue{color: var(--blue);}
.text-red{color: var(--red);}
.text-grey{color: var(--grey);}
.border-blue{border-color: var(--blue);}

nav{
    &.scrolled{
        background-color: var(--blue);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);        
    }
}

#hero{
    background: linear-gradient(68deg, #283583 0%, #2366AF 100%) 0% 0% no-repeat padding-box;
}

/* Animation des images hero */
.hero-images-container {
    position: relative;
}

.hero-image-pair {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image-pair.opacity-100 {
    opacity: 1;
}

.hero-image-pair.opacity-0 {
    opacity: 0;
}

/* Styles personnalisés pour la section donation */
.donation-option {
    transition: all 0.3s ease;
    &.free{
        color: var(--blue);
        input{
            border: 0;
            &::placeholder{
                color: var(--blue);            
                opacity: .5;
                font-size: 14px;                
                @media (min-width: 1600px) {
                    font-size: 20px;
                }
            }
        }
    }    
}

.donation-option input[type="radio"] {
    display: none;
}

.donation-option label {
    transition: all 0.3s ease;
    color: var(--blue);
}

.donation-option input[type="radio"]:checked + label,
.donation-option .input-holder.active {
    border-color: var(--blue);
    background-color: var(--blue);
    color: var(--white);
    .dot{
        position: relative;
        background-color: var(--white);
        &::after{
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%)    ;
            width: 10px;
            height: 10px;
            background-color: var(--blue);
            border-radius: 50%;
        }
    } 
}

.donation-option input[type="number"] {
    /* border: 2px solid #e5e7eb; */
    transition: all 0.3s ease;
}

.donation-option input[type="number"]:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Fonts Futura PT */
@font-face {
    font-family: 'Futura PT';
    src: url('fonts/FuturaPT-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Futura PT';
    src: url('fonts/FuturaPT-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Futura PT';
    src: url('fonts/FuturaPT-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Futura PT';
    src: url('fonts/FuturaPT-Demi.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Futura PT';
    src: url('fonts/FuturaPT-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Futura PT';
    src: url('fonts/FuturaPT-BoldObl.woff') format('woff');
    font-weight: 700;
    font-style: italic;
}

/* Police Oswald */
.font-oswald {
    font-family: 'Oswald', sans-serif;
}

/* Police Epilogue */
.font-epilogue {
    font-family: 'Epilogue', sans-serif;
}

/* Police Outfit */
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Police Futura PT */
.font-futura {
    font-family: 'Futura PT', sans-serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-medium {
    font-weight: 500;
}

/* Styles personnalisés supplémentaires si nécessaire */
body {
    font-family: 'Futura PT', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

.container {
    @media (width >= 102rem) {
        max-width: 102rem;
    }
}

/* Styles pour la grille 2x2 */
a.bg-red,
a.bg-white{
    transition: all 0.3s ease;
}
a.bg-red:hover,
a.bg-white:hover{
    /* scale: 1.05; */
    background-color: #950f11;  
    color: var(--white);
}
.action-grid > div {
    @media screen and (min-width: 768px) {
        min-height: 300px;
    }
    @media screen and (min-width: 1280px) {
        min-height: 400px;
    }
}


.action-grid > div.relative {
    display: flex;
}

.action-grid img:not(.absolute) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frac-50-1-left {   
    clip-path: polygon(0 0, 100% 5.5%, 100% 100%, 0% 100%);
    margin-top: -10px;
}
.frac-50-1-right {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 90%);
}   
.frac-50-2-left {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.frac-50-2-right {
    clip-path: polygon(0 4.5%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -10px;
}

.equiv{
    background-color: var(--light-blue);
    transition: all 0.3s ease;
    cursor: pointer;
}
.equiv:hover,
.equiv.active{
    background-color: var(--blue);
}
.equiv::after{
    content: "";
    transition: all 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: var(--red);
    border: 3px solid var(--red);
    outline: 3px solid var(--light-blue);
    transform: skewX(6deg);
}
.equiv:hover::after,
.equiv.active::after{    
    background-color: var(--blue);
}

@media screen and (min-width: 768px) {
    .frac-50-1-left {   
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
        margin-right: -15px;
        margin-top: initial;
    }
    .frac-50-1-right {
        clip-path: polygon(9% 0, 100% 0, 100% 100%, 0% 100%);
        margin-left: -15px;
    }   
    .frac-50-2-left {
        clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
        margin-right: -38px;
    }
    .frac-50-2-right {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
        margin-left: -15px;
        margin-top: initial;
    }
}

@media screen and (min-width: 992px) {
    #hero{
        background: url('img/header-bg.jpg') no-repeat center center / cover;
    }
    .frac-50-1-left {   
        clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
        margin-right: -25px;
        margin-top: initial;
    }
    .frac-50-1-right {
        clip-path: polygon(9% 0, 100% 0, 100% 100%, 0% 100%);
        margin-left: -35px;
    }   
    .frac-50-2-left {
        clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
        margin-right: -35px;
    }
    .frac-50-2-right {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%);
        margin-left: -35px;
        margin-top: initial;
    }
}

/* Section fractionnée */
@media screen and (min-width: 1280px) {  
    .frac-50-1-left {   
        /* clip-path: polygon(0 0, 100% 0, 86.5% 100%, 0% 100%); */
        margin-right: -53px;
        /* margin-top: initial; */
    }
    .frac-50-1-right {
        /* clip-path: polygon(9% 0, 100% 0, 100% 100%, 0% 100%); */
        margin-left: -30px;
    }   
    .frac-50-2-left {
        /* clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%); */
        margin-right: -63px;
    }
    .frac-50-2-right {
        /* clip-path: polygon(0 0, 100% 0, 100% 100%, 16.5% 100%); */
        margin-left: -30px;
        /* margin-top: initial; */
    }
    .equiv::after{
        bottom: -15px;
        left: -15px;
        width: 37px;
        height: 37px;
        background-color: var(--red);
        border: 6px solid var(--red);
        outline: 3px solid var(--light-blue);
    }
    .equiv.active::after{    
        background-color: var(--blue);
    }
}

@media screen and (min-width: 1600px) {        
    .frac-50-1-right {        
        margin-left: -50px;
    }
    .frac-50-2-left {        
        margin-right: -70px;
    }
    .frac-50-2-right {        
        margin-left: -50px;
    }
}

@media (width >= 1400px) {
    #bouger .container{
        max-width: calc(100vw - 340px);
    }
}

@media (width >= 1754px) {
    #engagement .container{
        max-width: 1754px;
    }
    #bouger .container{
        max-width: calc(100vw - 440px);
    }
}

@media screen and (min-width: 1600px) {        
    nav .container{
        max-width: calc(100vw - 100px);
    }
}

.dot{
    border-radius: 50%;
    border: 1px solid var(--blue);
    width: 20px;
    height: 20px;
}

/* Styles Swiper pour les taxes */
.taxes-swiper .swiper-button-next,
.taxes-swiper .swiper-button-prev {
    color: var(--red);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.taxes-swiper .swiper-button-next:hover,
.taxes-swiper .swiper-button-prev:hover {
    background-color: var(--red);
    color: var(--white);
}

.taxes-swiper .swiper-button-next::after,
.taxes-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Styles Swiper pour les donations */
.donations-swiper {
    padding-bottom: 50px;
}

.donations-swiper .swiper-pagination {
    bottom: 0;
}

.donations-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.donations-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--white);
    transform: scale(1.2);
}

/* Styles Swiper pour les stats */
.stats-swiper {
    padding-bottom: 50px;
}

.stats-swiper .swiper-pagination {
    bottom: 0;
}

.stats-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--blue);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.stats-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--blue);
    transform: scale(1.2);
}